pex-unix.c (pexecute): Use vfork instead of fork, with appropriate changes to make...
[official-gcc.git] / libstdc++-v3 / configure
blob571f5d52376d06a2c9f86656f579028894d8c389
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='package-unused'
269 PACKAGE_TARNAME='libstdc++'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="src/ios.cc"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
767 # Report the --help message.
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
775 Usage: $0 [OPTION]... [VAR=VALUE]...
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
780 Defaults for the options are specified in brackets.
782 Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793 _ACEOF
795 cat <<_ACEOF
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
798 [$ac_default_prefix]
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 [PREFIX]
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
807 For better control, use the options below.
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822 _ACEOF
824 cat <<\_ACEOF
826 Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835 _ACEOF
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of package-unused version-unused:";;
841 esac
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-multilib build many library versions (default)
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --disable-hosted-libstdcxx
855 only build freestanding C++ runtime support
856 --enable-sjlj-exceptions
857 force use of builtin_setjmp for exceptions
858 [default=auto]
859 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
860 [default=$is_hosted]
861 --enable-cstdio=PACKAGE use target-specific I/O package
862 [default=stdio]
863 --enable-clocale[=MODEL]
864 use MODEL for target locale package
865 [default=auto]
866 --enable-nls use Native Language Support (default)
867 --enable-libstdcxx-allocator=KIND
868 use KIND for target std::allocator base
869 [default=auto]
870 --enable-cheaders=KIND construct "C" headers for g++
871 [default=$c_model]
872 --enable-c-mbchar enable multibyte (wide) characters
873 [default=yes]
874 --enable-c99 turns on ISO/IEC 9899:1999 support
875 [default=yes]
876 --enable-long-long enables I/O support for 'long long'
877 [default=yes]
878 --enable-concept-checks use Boost-derived template checks [default=no]
879 --enable-libstdcxx-debug-flags=FLAGS
880 pass compiler FLAGS when building debug library
881 [default="-g3 -O0"]
882 --enable-libstdcxx-debug
883 build extra debug library [default=no]
884 --enable-cxx-flags=FLAGS
885 pass compiler FLAGS when building library
886 [default=]
887 --enable-symvers=STYLE enables symbol versioning of the shared library
888 [default=yes]
889 --enable-version-specific-runtime-libs
890 Specify that runtime libraries should be installed
891 in a compiler-specific directory
893 Optional Packages:
894 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
895 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
896 --with-target-subdir=SUBDIR
897 configuring in a subdirectory
898 --with-cross-host=HOST configuring with a cross compiler
899 --with-newlib assume newlib as a system C library
900 --with-gnu-ld assume the C compiler uses GNU ld default=no
901 --with-pic try to use only PIC/non-PIC objects default=use both
902 --with-gxx-include-dir=DIR
903 installation directory for include files
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
912 CXX C++ compiler command
913 CXXFLAGS C++ compiler flags
914 CXXCPP C++ preprocessor
915 CPP C preprocessor
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
920 _ACEOF
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
925 ac_popdir=`pwd`
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
928 ac_builddir=.
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935 ac_dir_suffix= ac_top_builddir=
938 case $srcdir in
939 .) # No --srcdir option. We are building in place.
940 ac_srcdir=.
941 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=.
943 else
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945 fi ;;
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
949 *) # Relative path.
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
956 case `pwd` in
957 .) ac_abs_builddir="$ac_dir";;
959 case "$ac_dir" in
960 .) ac_abs_builddir=`pwd`;;
961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
968 case ${ac_top_builddir}. in
969 .) ac_abs_top_builddir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
977 case $ac_srcdir in
978 .) ac_abs_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
986 case $ac_top_srcdir in
987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 esac;;
991 esac
993 cd $ac_dir
994 # Check for guested configure; otherwise get Cygnus style configure.
995 if test -f $ac_srcdir/configure.gnu; then
996 echo
997 $SHELL $ac_srcdir/configure.gnu --help=recursive
998 elif test -f $ac_srcdir/configure; then
999 echo
1000 $SHELL $ac_srcdir/configure --help=recursive
1001 elif test -f $ac_srcdir/configure.ac ||
1002 test -f $ac_srcdir/configure.in; then
1003 echo
1004 $ac_configure --help
1005 else
1006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 cd $ac_popdir
1009 done
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1014 cat <<\_ACEOF
1015 package-unused configure version-unused
1016 generated by GNU Autoconf 2.59
1018 Copyright (C) 2003 Free Software Foundation, Inc.
1019 This configure script is free software; the Free Software Foundation
1020 gives unlimited permission to copy, distribute and modify it.
1021 _ACEOF
1022 exit 0
1024 exec 5>config.log
1025 cat >&5 <<_ACEOF
1026 This file contains any messages produced by compilers while
1027 running configure, to aid debugging if configure makes a mistake.
1029 It was created by package-unused $as_me version-unused, which was
1030 generated by GNU Autoconf 2.59. Invocation command line was
1032 $ $0 $@
1034 _ACEOF
1036 cat <<_ASUNAME
1037 ## --------- ##
1038 ## Platform. ##
1039 ## --------- ##
1041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1050 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1051 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1054 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1055 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1056 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 _ASUNAME
1060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 for as_dir in $PATH
1063 IFS=$as_save_IFS
1064 test -z "$as_dir" && as_dir=.
1065 echo "PATH: $as_dir"
1066 done
1068 } >&5
1070 cat >&5 <<_ACEOF
1073 ## ----------- ##
1074 ## Core tests. ##
1075 ## ----------- ##
1077 _ACEOF
1080 # Keep a trace of the command line.
1081 # Strip out --no-create and --no-recursion so they do not pile up.
1082 # Strip out --silent because we don't want to record it for future runs.
1083 # Also quote any args containing shell meta-characters.
1084 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_configure_args=
1086 ac_configure_args0=
1087 ac_configure_args1=
1088 ac_sep=
1089 ac_must_keep_next=false
1090 for ac_pass in 1 2
1092 for ac_arg
1094 case $ac_arg in
1095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 continue ;;
1099 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 esac
1102 case $ac_pass in
1103 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1105 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106 if test $ac_must_keep_next = true; then
1107 ac_must_keep_next=false # Got value, back to normal.
1108 else
1109 case $ac_arg in
1110 *=* | --config-cache | -C | -disable-* | --disable-* \
1111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113 | -with-* | --with-* | -without-* | --without-* | --x)
1114 case "$ac_configure_args0 " in
1115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 esac
1118 -* ) ac_must_keep_next=true ;;
1119 esac
1121 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122 # Get rid of the leading space.
1123 ac_sep=" "
1125 esac
1126 done
1127 done
1128 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1131 # When interrupted or exit'd, cleanup temporary files, and complete
1132 # config.log. We remove comments because anyway the quotes in there
1133 # would cause problems or look ugly.
1134 # WARNING: Be sure not to use single quotes in there, as some shells,
1135 # such as our DU 5.0 friend, will then `close' the trap.
1136 trap 'exit_status=$?
1137 # Save into config.log some information that might help in debugging.
1139 echo
1141 cat <<\_ASBOX
1142 ## ---------------- ##
1143 ## Cache variables. ##
1144 ## ---------------- ##
1145 _ASBOX
1146 echo
1147 # The following way of writing the cache mishandles newlines in values,
1149 (set) 2>&1 |
1150 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 *ac_space=\ *)
1152 sed -n \
1153 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157 sed -n \
1158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 esac;
1162 echo
1164 cat <<\_ASBOX
1165 ## ----------------- ##
1166 ## Output variables. ##
1167 ## ----------------- ##
1168 _ASBOX
1169 echo
1170 for ac_var in $ac_subst_vars
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1174 done | sort
1175 echo
1177 if test -n "$ac_subst_files"; then
1178 cat <<\_ASBOX
1179 ## ------------- ##
1180 ## Output files. ##
1181 ## ------------- ##
1182 _ASBOX
1183 echo
1184 for ac_var in $ac_subst_files
1186 eval ac_val=$`echo $ac_var`
1187 echo "$ac_var='"'"'$ac_val'"'"'"
1188 done | sort
1189 echo
1192 if test -s confdefs.h; then
1193 cat <<\_ASBOX
1194 ## ----------- ##
1195 ## confdefs.h. ##
1196 ## ----------- ##
1197 _ASBOX
1198 echo
1199 sed "/^$/d" confdefs.h | sort
1200 echo
1202 test "$ac_signal" != 0 &&
1203 echo "$as_me: caught signal $ac_signal"
1204 echo "$as_me: exit $exit_status"
1205 } >&5
1206 rm -f core *.core &&
1207 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 exit $exit_status
1210 for ac_signal in 1 2 13 15; do
1211 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 done
1213 ac_signal=0
1215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1216 rm -rf conftest* confdefs.h
1217 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 echo >confdefs.h
1220 # Predefined preprocessor variables.
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 _ACEOF
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 _ACEOF
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 _ACEOF
1247 # Let the site file select an alternate cache file if it wants to.
1248 # Prefer explicitly selected file to automatically selected ones.
1249 if test -z "$CONFIG_SITE"; then
1250 if test "x$prefix" != xNONE; then
1251 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1252 else
1253 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256 for ac_site_file in $CONFIG_SITE; do
1257 if test -r "$ac_site_file"; then
1258 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259 echo "$as_me: loading site script $ac_site_file" >&6;}
1260 sed 's/^/| /' "$ac_site_file" >&5
1261 . "$ac_site_file"
1263 done
1265 if test -r "$cache_file"; then
1266 # Some versions of bash will fail to source /dev/null (special
1267 # files actually), so we avoid doing that.
1268 if test -f "$cache_file"; then
1269 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270 echo "$as_me: loading cache $cache_file" >&6;}
1271 case $cache_file in
1272 [\\/]* | ?:[\\/]* ) . $cache_file;;
1273 *) . ./$cache_file;;
1274 esac
1276 else
1277 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278 echo "$as_me: creating cache $cache_file" >&6;}
1279 >$cache_file
1282 # Check that the precious variables saved in the cache have kept the same
1283 # value.
1284 ac_cache_corrupted=false
1285 for ac_var in `(set) 2>&1 |
1286 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288 eval ac_new_set=\$ac_env_${ac_var}_set
1289 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290 eval ac_new_val="\$ac_env_${ac_var}_value"
1291 case $ac_old_set,$ac_new_set in
1292 set,)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,set)
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1300 ,);;
1302 if test "x$ac_old_val" != "x$ac_new_val"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1306 echo "$as_me: former value: $ac_old_val" >&2;}
1307 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1308 echo "$as_me: current value: $ac_new_val" >&2;}
1309 ac_cache_corrupted=:
1310 fi;;
1311 esac
1312 # Pass precious variables to config.status.
1313 if test "$ac_new_set" = set; then
1314 case $ac_new_val in
1315 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317 *) ac_arg=$ac_var=$ac_new_val ;;
1318 esac
1319 case " $ac_configure_args " in
1320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1321 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 esac
1324 done
1325 if $ac_cache_corrupted; then
1326 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330 { (exit 1); exit 1; }; }
1333 ac_ext=c
1334 ac_cpp='$CPP $CPPFLAGS'
1335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 ac_config_headers="$ac_config_headers config.h"
1369 # This works around the fact that libtool configuration may change LD
1370 # for this particular configuration, but some shells, instead of
1371 # keeping the changes in LD private, export them just because LD is
1372 # exported. Only used at the end of this file.
1373 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1375 # For libtool versioning info, format is CURRENT:REVISION:AGE
1376 libtool_VERSION=6:0:0
1379 # Find the rest of the source tree framework.
1381 # Sets up multi_basedir, which is srcdir/.. plus the usual
1382 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1383 # Default to --enable-multilib
1384 # Check whether --enable-multilib or --disable-multilib was given.
1385 if test "${enable_multilib+set}" = set; then
1386 enableval="$enable_multilib"
1387 case "$enableval" in
1388 yes) multilib=yes ;;
1389 no) multilib=no ;;
1390 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1391 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1392 { (exit 1); exit 1; }; } ;;
1393 esac
1394 else
1395 multilib=yes
1398 # We may get other options which we leave undocumented:
1399 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1400 # See config-ml.in if you want the gory details.
1402 if test "$srcdir" = "."; then
1403 if test "$with_target_subdir" != "."; then
1404 multi_basedir="$srcdir/$with_multisrctop../.."
1405 else
1406 multi_basedir="$srcdir/$with_multisrctop.."
1408 else
1409 multi_basedir="$srcdir/.."
1413 ac_config_commands="$ac_config_commands default-1"
1416 # The generated code is exactly the same, except that automake's looks in
1417 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1418 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1419 # know what they are or what the other differences might be (and they keep
1420 # changing anyhow).
1422 # Looking in multi_basedir seems smarter, so actually execute that branch.
1423 if false; then
1424 # this is for automake
1425 ac_aux_dir=
1426 for ac_dir in .. $srcdir/..; do
1427 if test -f $ac_dir/install-sh; then
1428 ac_aux_dir=$ac_dir
1429 ac_install_sh="$ac_aux_dir/install-sh -c"
1430 break
1431 elif test -f $ac_dir/install.sh; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/install.sh -c"
1434 break
1435 elif test -f $ac_dir/shtool; then
1436 ac_aux_dir=$ac_dir
1437 ac_install_sh="$ac_aux_dir/shtool install -c"
1438 break
1440 done
1441 if test -z "$ac_aux_dir"; then
1442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1444 { (exit 1); exit 1; }; }
1446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1450 else
1451 # this is for autoconf
1452 ac_aux_dir=
1453 for ac_dir in ${multi_basedir}; do
1454 if test -f $ac_dir/install-sh; then
1455 ac_aux_dir=$ac_dir
1456 ac_install_sh="$ac_aux_dir/install-sh -c"
1457 break
1458 elif test -f $ac_dir/install.sh; then
1459 ac_aux_dir=$ac_dir
1460 ac_install_sh="$ac_aux_dir/install.sh -c"
1461 break
1462 elif test -f $ac_dir/shtool; then
1463 ac_aux_dir=$ac_dir
1464 ac_install_sh="$ac_aux_dir/shtool install -c"
1465 break
1467 done
1468 if test -z "$ac_aux_dir"; then
1469 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1470 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1471 { (exit 1); exit 1; }; }
1473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1481 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1483 # You will slowly go insane if you do not grok the following fact: when
1484 # building v3 as part of the compiler, the top-level /target/ becomes the
1485 # library's /host/. configure then causes --target to default to --host,
1486 # exactly like any other package using autoconf. Therefore, 'target' and
1487 # 'host' will always be the same. This makes sense both for native and
1488 # cross compilers, just think about it for a little while. :-)
1490 # Also, if v3 is being configured as part of a cross compiler, the top-level
1491 # configure script will pass the "real" host as $with_cross_host.
1493 # Do not delete or change the following two lines. For why, see
1494 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1495 # Make sure we can run config.sub.
1496 $ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499 { (exit 1); exit 1; }; }
1501 echo "$as_me:$LINENO: checking build system type" >&5
1502 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503 if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 ac_cv_build_alias=$build_alias
1507 test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509 test -z "$ac_cv_build_alias" &&
1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
1513 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520 echo "${ECHO_T}$ac_cv_build" >&6
1521 build=$ac_cv_build
1522 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 echo "$as_me:$LINENO: checking host system type" >&5
1528 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1529 if test "${ac_cv_host+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532 ac_cv_host_alias=$host_alias
1533 test -z "$ac_cv_host_alias" &&
1534 ac_cv_host_alias=$ac_cv_build_alias
1535 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1541 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1542 echo "${ECHO_T}$ac_cv_host" >&6
1543 host=$ac_cv_host
1544 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549 echo "$as_me:$LINENO: checking target system type" >&5
1550 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1551 if test "${ac_cv_target+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 ac_cv_target_alias=$target_alias
1555 test "x$ac_cv_target_alias" = "x" &&
1556 ac_cv_target_alias=$ac_cv_host_alias
1557 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1564 echo "${ECHO_T}$ac_cv_target" >&6
1565 target=$ac_cv_target
1566 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571 # The aliases save the names the user supplied, while $host etc.
1572 # will get canonicalized.
1573 test -n "$target_alias" &&
1574 test "$program_prefix$program_suffix$program_transform_name" = \
1575 NONENONEs,x,x, &&
1576 program_prefix=${target_alias}-
1577 target_alias=${target_alias-$host_alias}
1579 # Handy for debugging:
1580 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1582 if test "$build" != "$host"; then
1583 # We are being configured with some form of cross compiler.
1584 GLIBCXX_IS_NATIVE=false
1586 else
1587 GLIBCXX_IS_NATIVE=true
1590 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1591 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1592 # 1.x: minimum required version
1593 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1594 # of other PACKAGE_* variables will, however, and there's nothing
1595 # we can do about that; they come from AC_INIT).
1596 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1597 # file in the top srcdir, etc, etc), so stop complaining.
1598 # no-dependencies: turns off auto dependency generation (just for now)
1599 # -Wall: turns on all automake warnings...
1600 # -Wno-portability: ...except this one, since GNU make is now required.
1601 am__api_version="1.8"
1602 # Find a good install program. We prefer a C program (faster),
1603 # so one script is as good as another. But avoid the broken or
1604 # incompatible versions:
1605 # SysV /etc/install, /usr/sbin/install
1606 # SunOS /usr/etc/install
1607 # IRIX /sbin/install
1608 # AIX /bin/install
1609 # AmigaOS /C/install, which installs bootblocks on floppy discs
1610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 # OS/2's system install, which has a completely different semantic
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1617 if test -z "$INSTALL"; then
1618 if test "${ac_cv_path_install+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 # Account for people who put trailing slashes in PATH elements.
1627 case $as_dir/ in
1628 ./ | .// | /cC/* | \
1629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1630 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1631 /usr/ucb/* ) ;;
1633 # OSF1 and SCO ODT 3.0 have their own names for install.
1634 # Don't use installbsd from OSF since it installs stuff as root
1635 # by default.
1636 for ac_prog in ginstall scoinst install; do
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1639 if test $ac_prog = install &&
1640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641 # AIX install. It has an incompatible calling convention.
1643 elif test $ac_prog = install &&
1644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645 # program-specific install script used by HP pwplus--don't use.
1647 else
1648 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1649 break 3
1652 done
1653 done
1655 esac
1656 done
1660 if test "${ac_cv_path_install+set}" = set; then
1661 INSTALL=$ac_cv_path_install
1662 else
1663 # As a last resort, use the slow shell script. We don't cache a
1664 # path for INSTALL within a source directory, because that will
1665 # break other packages using the cache if that directory is
1666 # removed, or if the path is relative.
1667 INSTALL=$ac_install_sh
1670 echo "$as_me:$LINENO: result: $INSTALL" >&5
1671 echo "${ECHO_T}$INSTALL" >&6
1673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1674 # It thinks the first close brace ends the variable substitution.
1675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1681 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1682 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1683 # Just in case
1684 sleep 1
1685 echo timestamp > conftest.file
1686 # Do `set' in a subshell so we don't clobber the current shell's
1687 # arguments. Must try -L first in case configure is actually a
1688 # symlink; some systems play weird games with the mod time of symlinks
1689 # (eg FreeBSD returns the mod time of the symlink's containing
1690 # directory).
1691 if (
1692 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1693 if test "$*" = "X"; then
1694 # -L didn't work.
1695 set X `ls -t $srcdir/configure conftest.file`
1697 rm -f conftest.file
1698 if test "$*" != "X $srcdir/configure conftest.file" \
1699 && test "$*" != "X conftest.file $srcdir/configure"; then
1701 # If neither matched, then we have a broken ls. This can happen
1702 # if, for instance, CONFIG_SHELL is bash and it inherits a
1703 # broken ls alias from the environment. This has actually
1704 # happened. Such a system could not be considered "sane".
1705 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1706 alias in your environment" >&5
1707 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1708 alias in your environment" >&2;}
1709 { (exit 1); exit 1; }; }
1712 test "$2" = conftest.file
1714 then
1715 # Ok.
1717 else
1718 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1719 Check your system clock" >&5
1720 echo "$as_me: error: newly created file is older than distributed files!
1721 Check your system clock" >&2;}
1722 { (exit 1); exit 1; }; }
1724 echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1726 test "$program_prefix" != NONE &&
1727 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1728 # Use a double $ so make ignores it.
1729 test "$program_suffix" != NONE &&
1730 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1731 # Double any \ or $. echo might interpret backslashes.
1732 # By default was `s,x,x', remove it if useless.
1733 cat <<\_ACEOF >conftest.sed
1734 s/[\\$]/&&/g;s/;s,x,x,$//
1735 _ACEOF
1736 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1737 rm conftest.sed
1739 # expand $ac_aux_dir to an absolute path
1740 am_aux_dir=`cd $ac_aux_dir && pwd`
1742 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1743 # Use eval to expand $SHELL
1744 if eval "$MISSING --run true"; then
1745 am_missing_run="$MISSING --run "
1746 else
1747 am_missing_run=
1748 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1749 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1752 if mkdir -p -- . 2>/dev/null; then
1753 # Keeping the `.' argument allows $(mkdir_p) to be used without
1754 # argument. Indeed, we sometimes output rules like
1755 # $(mkdir_p) $(somedir)
1756 # where $(somedir) is conditionally defined.
1757 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1758 # expensive solution, as it forces Make to start a sub-shell.)
1759 mkdir_p='mkdir -p -- .'
1760 else
1761 # On NextStep and OpenStep, the `mkdir' command does not
1762 # recognize any option. It will interpret all options as
1763 # directories to create, and then abort because `.' already
1764 # exists.
1765 for d in ./-p ./--;
1767 test -d $d && rmdir $d
1768 done
1769 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770 if test -f "$ac_aux_dir/mkinstalldirs"; then
1771 mkdir_p='$(mkinstalldirs)'
1772 else
1773 mkdir_p='$(install_sh) -d'
1777 for ac_prog in gawk mawk nawk awk
1779 # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy $ac_prog; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 if test -n "$AWK"; then
1787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_AWK="$ac_prog"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1800 done
1801 done
1805 AWK=$ac_cv_prog_AWK
1806 if test -n "$AWK"; then
1807 echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1809 else
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1814 test -n "$AWK" && break
1815 done
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 cat >conftest.make <<\_ACEOF
1824 all:
1825 @echo 'ac_maketemp="$(MAKE)"'
1826 _ACEOF
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830 eval ac_cv_prog_make_${ac_make}_set=yes
1831 else
1832 eval ac_cv_prog_make_${ac_make}_set=no
1834 rm -f conftest.make
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837 echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839 SET_MAKE=
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 SET_MAKE="MAKE=${MAKE-make}"
1846 rm -rf .tst 2>/dev/null
1847 mkdir .tst 2>/dev/null
1848 if test -d .tst; then
1849 am__leading_dot=.
1850 else
1851 am__leading_dot=_
1853 rmdir .tst 2>/dev/null
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857 test -f $srcdir/config.status; then
1858 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860 { (exit 1); exit 1; }; }
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865 if (cygpath --version) >/dev/null 2>/dev/null; then
1866 CYGPATH_W='cygpath -w'
1867 else
1868 CYGPATH_W=echo
1873 # Define the identity of the package.
1874 PACKAGE='libstdc++'
1875 VERSION='version-unused'
1878 # Some tools Automake needs.
1880 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1883 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1886 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1889 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1892 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1895 AMTAR=${AMTAR-"${am_missing_run}tar"}
1897 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1899 # Installed binaries are usually stripped using `strip' when the user
1900 # run `make install-strip'. However `strip' might not be the right
1901 # tool to use in cross-compilation environments, therefore Automake
1902 # will honor the `STRIP' environment variable to overrule this program.
1903 if test "$cross_compiling" != no; then
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}strip; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_STRIP+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$STRIP"; then
1913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1931 STRIP=$ac_cv_prog_STRIP
1932 if test -n "$STRIP"; then
1933 echo "$as_me:$LINENO: result: $STRIP" >&5
1934 echo "${ECHO_T}$STRIP" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_STRIP"; then
1942 ac_ct_STRIP=$STRIP
1943 # Extract the first word of "strip", so it can be a program name with args.
1944 set dummy strip; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$ac_ct_STRIP"; then
1951 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_STRIP="strip"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1967 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1971 if test -n "$ac_ct_STRIP"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1973 echo "${ECHO_T}$ac_ct_STRIP" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1979 STRIP=$ac_ct_STRIP
1980 else
1981 STRIP="$ac_cv_prog_STRIP"
1985 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1987 # We need awk for the "check" target. The system "awk" is bad on
1988 # some platforms.
1993 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1994 # up critical shell variables.
1996 # Keep these sync'd with the list in Makefile.am. The first provides an
1997 # expandable list at autoconf time; the second provides an expandable list
1998 # (i.e., shell variable) at configure time.
2000 SUBDIRS='include libmath libsupc++ src po testsuite'
2002 # These need to be absolute paths, yet at the same time need to
2003 # canonicalize only relative paths, because then amd will not unmount
2004 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2005 glibcxx_builddir=`${PWDCMD-pwd}`
2006 case $srcdir in
2007 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2008 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2009 esac
2010 toplevel_srcdir=${glibcxx_srcdir}/..
2015 # We use these options to decide which functions to include. They are
2016 # set from the top level.
2018 # Check whether --with-target-subdir or --without-target-subdir was given.
2019 if test "${with_target_subdir+set}" = set; then
2020 withval="$with_target_subdir"
2025 # Check whether --with-cross-host or --without-cross-host was given.
2026 if test "${with_cross_host+set}" = set; then
2027 withval="$with_cross_host"
2032 # Check whether --with-newlib or --without-newlib was given.
2033 if test "${with_newlib+set}" = set; then
2034 withval="$with_newlib"
2038 # We're almost certainly being configured before anything else which uses
2039 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2040 # we not cache the value of CXX that we "discover" here, because it's set
2041 # to something unique for us and libjava. Other target libraries need to
2042 # find CXX for themselves. We yank the rug out from under the normal AC_*
2043 # process by sneakily renaming the cache variable. This also lets us debug
2044 # the value of "our" CXX in postmortems.
2046 # We must also force CXX to /not/ be a precious variable, otherwise the
2047 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2048 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2049 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2050 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2052 # -fno-builtin must be present here so that a non-conflicting form of
2053 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2058 save_CXXFLAGS="$CXXFLAGS"
2059 CXXFLAGS="$CXXFLAGS -fno-builtin"
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094 echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2102 if test -z "$ac_cv_prog_CC"; then
2103 ac_ct_CC=$CC
2104 # Extract the first word of "gcc", so it can be a program name with args.
2105 set dummy gcc; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$ac_ct_CC"; then
2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 ac_cv_prog_ac_ct_CC="gcc"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2125 done
2126 done
2130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131 if test -n "$ac_ct_CC"; then
2132 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133 echo "${ECHO_T}$ac_ct_CC" >&6
2134 else
2135 echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2139 CC=$ac_ct_CC
2140 else
2141 CC="$ac_cv_prog_CC"
2144 if test -z "$CC"; then
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}cc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="${ac_tool_prefix}cc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2182 if test -z "$ac_cv_prog_CC"; then
2183 ac_ct_CC=$CC
2184 # Extract the first word of "cc", so it can be a program name with args.
2185 set dummy cc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_ac_ct_CC="cc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215 echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2219 CC=$ac_ct_CC
2220 else
2221 CC="$ac_cv_prog_CC"
2225 if test -z "$CC"; then
2226 # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 ac_prog_rejected=no
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245 ac_prog_rejected=yes
2246 continue
2248 ac_cv_prog_CC="cc"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2252 done
2253 done
2255 if test $ac_prog_rejected = yes; then
2256 # We found a bogon in the path, so make sure we never use it.
2257 set dummy $ac_cv_prog_CC
2258 shift
2259 if test $# != 0; then
2260 # We chose a different compiler from the bogus one.
2261 # However, it has the same basename, so the bogon will be chosen
2262 # first if we set CC to just the basename; use the full file name.
2263 shift
2264 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271 echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2279 if test -z "$CC"; then
2280 if test -n "$ac_tool_prefix"; then
2281 for ac_prog in cl
2283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2318 test -n "$CC" && break
2319 done
2321 if test -z "$CC"; then
2322 ac_ct_CC=$CC
2323 for ac_prog in cl
2325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2326 set dummy $ac_prog; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 if test -n "$ac_ct_CC"; then
2333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_ac_ct_CC="$ac_prog"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2346 done
2347 done
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354 echo "${ECHO_T}$ac_ct_CC" >&6
2355 else
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2360 test -n "$ac_ct_CC" && break
2361 done
2363 CC=$ac_ct_CC
2369 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2375 # Provide some information about the compiler.
2376 echo "$as_me:$LINENO:" \
2377 "checking for C compiler version" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380 (eval $ac_compiler --version </dev/null >&5) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385 (eval $ac_compiler -v </dev/null >&5) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390 (eval $ac_compiler -V </dev/null >&5) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h. */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2403 main ()
2407 return 0;
2409 _ACEOF
2410 # FIXME: Cleanup?
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412 (eval $ac_link) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 gcc_no_link=no
2417 else
2418 gcc_no_link=yes
2421 if test x$gcc_no_link = xyes; then
2422 # Setting cross_compile will disable run tests; it will
2423 # also disable AC_CHECK_FILE but that's generally
2424 # correct if we can't link.
2425 cross_compiling=yes
2426 EXEEXT=
2427 else
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2436 main ()
2440 return 0;
2442 _ACEOF
2443 ac_clean_files_save=$ac_clean_files
2444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2445 # Try to create an executable without -o first, disregard a.out.
2446 # It will help us diagnose broken compilers, and finding out an intuition
2447 # of exeext.
2448 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2449 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2452 (eval $ac_link_default) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # Find the output, starting from the most likely. This scheme is
2457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2458 # resort.
2460 # Be careful to initialize this variable, since it used to be cached.
2461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 ac_cv_exeext=
2463 # b.out is created by i960 compilers.
2464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2466 test -f "$ac_file" || continue
2467 case $ac_file in
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2470 conftest.$ac_ext )
2471 # This is the source file.
2473 [ab].out )
2474 # We found the default executable, but exeext='' is most
2475 # certainly right.
2476 break;;
2477 *.* )
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 # FIXME: I believe we export ac_cv_exeext for Libtool,
2480 # but it would be cool to find out if it's true. Does anybody
2481 # maintain Libtool? --akim.
2482 export ac_cv_exeext
2483 break;;
2485 break;;
2486 esac
2487 done
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: C compiler cannot create executables
2495 See \`config.log' for more details." >&2;}
2496 { (exit 77); exit 77; }; }
2499 ac_exeext=$ac_cv_exeext
2500 echo "$as_me:$LINENO: result: $ac_file" >&5
2501 echo "${ECHO_T}$ac_file" >&6
2503 # Check the compiler produces executables we can run. If not, either
2504 # the compiler is broken, or we cross compile.
2505 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2508 # If not cross compiling, check that we can run a simple program.
2509 if test "$cross_compiling" != yes; then
2510 if { ac_try='./$ac_file'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 cross_compiling=no
2517 else
2518 if test "$cross_compiling" = maybe; then
2519 cross_compiling=yes
2520 else
2521 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run. If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555 test -f "$ac_file" || continue
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559 export ac_cv_exeext
2560 break;;
2561 * ) break;;
2562 esac
2563 done
2564 else
2565 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }
2572 rm -f conftest$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2574 echo "${ECHO_T}$ac_cv_exeext" >&6
2576 rm -f conftest.$ac_ext
2577 EXEEXT=$ac_cv_exeext
2578 ac_exeext=$EXEEXT
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2593 main ()
2597 return 0;
2599 _ACEOF
2600 rm -f conftest.o conftest.obj
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607 case $ac_file in
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610 break;;
2611 esac
2612 done
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&2;}
2621 { (exit 1); exit 1; }; }
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2627 echo "${ECHO_T}$ac_cv_objext" >&6
2628 OBJEXT=$ac_cv_objext
2629 ac_objext=$OBJEXT
2630 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2631 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2632 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h. */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2643 main ()
2645 #ifndef __GNUC__
2646 choke me
2647 #endif
2650 return 0;
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
2656 ac_status=$?
2657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -z "$ac_c_werror_flag"
2663 || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2675 ac_compiler_gnu=yes
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 ac_compiler_gnu=no
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2686 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2687 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2688 GCC=`test $ac_compiler_gnu = yes && echo yes`
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 CFLAGS="-g"
2692 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2693 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2694 if test "${ac_cv_prog_cc_g+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2705 main ()
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_g=yes
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 ac_cv_prog_cc_g=no
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2745 if test "$ac_test_CFLAGS" = set; then
2746 CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748 if test "$GCC" = yes; then
2749 CFLAGS="-g -O2"
2750 else
2751 CFLAGS="-g"
2753 else
2754 if test "$GCC" = yes; then
2755 CFLAGS="-O2"
2756 else
2757 CFLAGS=
2760 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2761 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2762 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 ac_cv_prog_cc_stdc=no
2766 ac_save_CC=$CC
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <stdarg.h>
2774 #include <stdio.h>
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2781 char **p;
2782 int i;
2784 return p[i];
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2788 char *s;
2789 va_list v;
2790 va_start (v,p);
2791 s = g (p, va_arg (v,int));
2792 va_end (v);
2793 return s;
2796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2797 function prototypes and stuff, but not '\xHH' hex character constants.
2798 These don't provoke an error unfortunately, instead are silently treated
2799 as 'x'. The following induces an error, until -std1 is added to get
2800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2801 array size at least. It's necessary to write '\x00'==0 to get something
2802 that's true only with -std1. */
2803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2805 int test (int i, double x);
2806 struct s1 {int (*f) (int a);};
2807 struct s2 {int (*f) (double a);};
2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2809 int argc;
2810 char **argv;
2812 main ()
2814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2816 return 0;
2818 _ACEOF
2819 # Don't try gcc -ansi; that turns off useful extensions and
2820 # breaks some systems' header files.
2821 # AIX -qlanglvl=ansi
2822 # Ultrix and OSF/1 -std1
2823 # HP-UX 10.20 and later -Ae
2824 # HP-UX older versions -Aa -D_HPUX_SOURCE
2825 # SVR4 -Xc -D__EXTENSIONS__
2826 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2828 CC="$ac_save_CC $ac_arg"
2829 rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831 (eval $ac_compile) 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
2838 { ac_try='test -z "$ac_c_werror_flag"
2839 || test ! -s conftest.err'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_prog_cc_stdc=$ac_arg
2852 break
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2858 rm -f conftest.err conftest.$ac_objext
2859 done
2860 rm -f conftest.$ac_ext conftest.$ac_objext
2861 CC=$ac_save_CC
2865 case "x$ac_cv_prog_cc_stdc" in
2866 x|xno)
2867 echo "$as_me:$LINENO: result: none needed" >&5
2868 echo "${ECHO_T}none needed" >&6 ;;
2870 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2872 CC="$CC $ac_cv_prog_cc_stdc" ;;
2873 esac
2875 # Some people use a C++ compiler to compile C. Since we use `exit',
2876 # in C++ we need to declare it. In case someone uses the same compiler
2877 # for both compiling C and C++ we need to have the C++ compiler decide
2878 # the declaration of exit, since it's the most demanding environment.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #ifndef __cplusplus
2881 choke me
2882 #endif
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 for ac_declaration in \
2907 '' \
2908 'extern "C" void std::exit (int) throw (); using std::exit;' \
2909 'extern "C" void std::exit (int); using std::exit;' \
2910 'extern "C" void exit (int) throw ();' \
2911 'extern "C" void exit (int);' \
2912 'void exit (int);'
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 $ac_declaration
2921 #include <stdlib.h>
2923 main ()
2925 exit (42);
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 (eval $ac_compile) 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -z "$ac_c_werror_flag"
2940 || test ! -s conftest.err'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 continue
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 $ac_declaration
2968 main ()
2970 exit (42);
2972 return 0;
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 break
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 done
3005 rm -f conftest*
3006 if test -n "$ac_declaration"; then
3007 echo '#ifdef __cplusplus' >>confdefs.h
3008 echo $ac_declaration >>confdefs.h
3009 echo '#endif' >>confdefs.h
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 ac_ext=cc
3025 ac_cpp='$CXXCPP $CPPFLAGS'
3026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 if test -n "$CXX"; then
3040 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3058 CXX=$glibcxx_cv_prog_CXX
3059 if test -n "$CXX"; then
3060 echo "$as_me:$LINENO: result: $CXX" >&5
3061 echo "${ECHO_T}$CXX" >&6
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3067 test -n "$CXX" && break
3068 done
3070 if test -z "$CXX"; then
3071 ac_ct_CXX=$CXX
3072 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$ac_ct_CXX"; then
3082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3101 if test -n "$ac_ct_CXX"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3103 echo "${ECHO_T}$ac_ct_CXX" >&6
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3109 test -n "$ac_ct_CXX" && break
3110 done
3111 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3113 CXX=$ac_ct_CXX
3117 # Provide some information about the compiler.
3118 echo "$as_me:$LINENO:" \
3119 "checking for C++ compiler version" >&5
3120 ac_compiler=`set X $ac_compile; echo $2`
3121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3122 (eval $ac_compiler --version </dev/null >&5) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }
3126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3127 (eval $ac_compiler -v </dev/null >&5) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }
3131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3132 (eval $ac_compiler -V </dev/null >&5) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }
3137 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3138 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3139 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3150 main ()
3152 #ifndef __GNUC__
3153 choke me
3154 #endif
3157 return 0;
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_compiler_gnu=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_compiler_gnu=no
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3193 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3195 GXX=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CXXFLAGS=${CXXFLAGS+set}
3197 ac_save_CXXFLAGS=$CXXFLAGS
3198 CXXFLAGS="-g"
3199 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3200 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3201 if test "${ac_cv_prog_cxx_g+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_cxx_werror_flag"
3229 || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_prog_cxx_g=yes
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_cv_prog_cxx_g=no
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3252 if test "$ac_test_CXXFLAGS" = set; then
3253 CXXFLAGS=$ac_save_CXXFLAGS
3254 elif test $ac_cv_prog_cxx_g = yes; then
3255 if test "$GXX" = yes; then
3256 CXXFLAGS="-g -O2"
3257 else
3258 CXXFLAGS="-g"
3260 else
3261 if test "$GXX" = yes; then
3262 CXXFLAGS="-O2"
3263 else
3264 CXXFLAGS=
3267 for ac_declaration in \
3268 '' \
3269 'extern "C" void std::exit (int) throw (); using std::exit;' \
3270 'extern "C" void std::exit (int); using std::exit;' \
3271 'extern "C" void exit (int) throw ();' \
3272 'extern "C" void exit (int);' \
3273 'void exit (int);'
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 $ac_declaration
3282 #include <stdlib.h>
3284 main ()
3286 exit (42);
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_cxx_werror_flag"
3301 || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 continue
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 $ac_declaration
3329 main ()
3331 exit (42);
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_cxx_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 break
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 done
3366 rm -f conftest*
3367 if test -n "$ac_declaration"; then
3368 echo '#ifdef __cplusplus' >>confdefs.h
3369 echo $ac_declaration >>confdefs.h
3370 echo '#endif' >>confdefs.h
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 CXXFLAGS="$save_CXXFLAGS"
3384 # For directory versioning (e.g., headers) and other variables.
3385 echo "$as_me:$LINENO: checking for GCC version number" >&5
3386 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3387 gcc_version=`$CXX -dumpversion`
3388 echo "$as_me:$LINENO: result: $gcc_version" >&5
3389 echo "${ECHO_T}$gcc_version" >&6
3391 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3392 # available). Uncomment the next line to force a particular method.
3393 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3394 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3395 LN_S=$as_ln_s
3396 if test "$LN_S" = "ln -s"; then
3397 echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3399 else
3400 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3401 echo "${ECHO_T}no, using $LN_S" >&6
3404 #LN_S='cp -p'
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}as; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_AS+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$AS"; then
3415 ac_cv_prog_AS="$AS" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_AS="${ac_tool_prefix}as"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3433 AS=$ac_cv_prog_AS
3434 if test -n "$AS"; then
3435 echo "$as_me:$LINENO: result: $AS" >&5
3436 echo "${ECHO_T}$AS" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_AS"; then
3444 ac_ct_AS=$AS
3445 # Extract the first word of "as", so it can be a program name with args.
3446 set dummy as; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_AS"; then
3453 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_AS="as"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3471 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3472 if test -n "$ac_ct_AS"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3474 echo "${ECHO_T}$ac_ct_AS" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 AS=$ac_ct_AS
3481 else
3482 AS="$ac_cv_prog_AS"
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ar; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_AR+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test -n "$AR"; then
3494 ac_cv_prog_AR="$AR" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_AR="${ac_tool_prefix}ar"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3507 done
3508 done
3512 AR=$ac_cv_prog_AR
3513 if test -n "$AR"; then
3514 echo "$as_me:$LINENO: result: $AR" >&5
3515 echo "${ECHO_T}$AR" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3522 if test -z "$ac_cv_prog_AR"; then
3523 ac_ct_AR=$AR
3524 # Extract the first word of "ar", so it can be a program name with args.
3525 set dummy ar; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 if test -n "$ac_ct_AR"; then
3532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_AR="ar"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3545 done
3546 done
3550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3551 if test -n "$ac_ct_AR"; then
3552 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3553 echo "${ECHO_T}$ac_ct_AR" >&6
3554 else
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 AR=$ac_ct_AR
3560 else
3561 AR="$ac_cv_prog_AR"
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3567 echo "$as_me:$LINENO: checking for $ac_word" >&5
3568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569 if test "${ac_cv_prog_RANLIB+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572 if test -n "$RANLIB"; then
3573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3586 done
3587 done
3591 RANLIB=$ac_cv_prog_RANLIB
3592 if test -n "$RANLIB"; then
3593 echo "$as_me:$LINENO: result: $RANLIB" >&5
3594 echo "${ECHO_T}$RANLIB" >&6
3595 else
3596 echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3601 if test -z "$ac_cv_prog_RANLIB"; then
3602 ac_ct_RANLIB=$RANLIB
3603 # Extract the first word of "ranlib", so it can be a program name with args.
3604 set dummy ranlib; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if test -n "$ac_ct_RANLIB"; then
3611 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_ac_ct_RANLIB="ranlib"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3624 done
3625 done
3627 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3631 if test -n "$ac_ct_RANLIB"; then
3632 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3633 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3639 RANLIB=$ac_ct_RANLIB
3640 else
3641 RANLIB="$ac_cv_prog_RANLIB"
3645 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3646 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3647 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3648 if test "${enable_maintainer_mode+set}" = set; then
3649 enableval="$enable_maintainer_mode"
3650 USE_MAINTAINER_MODE=$enableval
3651 else
3652 USE_MAINTAINER_MODE=no
3654 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3655 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3658 if test $USE_MAINTAINER_MODE = yes; then
3659 MAINTAINER_MODE_TRUE=
3660 MAINTAINER_MODE_FALSE='#'
3661 else
3662 MAINTAINER_MODE_TRUE='#'
3663 MAINTAINER_MODE_FALSE=
3666 MAINT=$MAINTAINER_MODE_TRUE
3670 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3671 # which are themselves conditionally expanded.
3672 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3673 ## other macros from doing the same. This should be automated.) -pme
3674 need_libmath=no
3675 enable_wchar_t=no
3676 #enable_libstdcxx_debug=no
3677 #enable_libstdcxx_pch=no
3678 #enable_cheaders=c
3679 #c_compatibility=no
3680 #enable_abi_check=no
3681 #enable_symvers=no
3682 #enable_hosted_libstdcxx=yes
3684 # Find platform-specific directories containing configuration info.
3685 # Also possibly modify flags used elsewhere, as needed by the platform.
3687 . $glibcxx_srcdir/configure.host
3688 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3689 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3690 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3691 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3695 #AC_MSG_NOTICE([====== Starting libtool configuration])
3697 # Check whether --enable-shared or --disable-shared was given.
3698 if test "${enable_shared+set}" = set; then
3699 enableval="$enable_shared"
3700 p=${PACKAGE-default}
3701 case $enableval in
3702 yes) enable_shared=yes ;;
3703 no) enable_shared=no ;;
3705 enable_shared=no
3706 # Look at the argument we got. We use all the common list separators.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708 for pkg in $enableval; do
3709 if test "X$pkg" = "X$p"; then
3710 enable_shared=yes
3712 done
3713 IFS="$ac_save_ifs"
3715 esac
3716 else
3717 enable_shared=yes
3719 # Check whether --enable-static or --disable-static was given.
3720 if test "${enable_static+set}" = set; then
3721 enableval="$enable_static"
3722 p=${PACKAGE-default}
3723 case $enableval in
3724 yes) enable_static=yes ;;
3725 no) enable_static=no ;;
3727 enable_static=no
3728 # Look at the argument we got. We use all the common list separators.
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3730 for pkg in $enableval; do
3731 if test "X$pkg" = "X$p"; then
3732 enable_static=yes
3734 done
3735 IFS="$ac_save_ifs"
3737 esac
3738 else
3739 enable_static=yes
3741 # Check whether --enable-fast-install or --disable-fast-install was given.
3742 if test "${enable_fast_install+set}" = set; then
3743 enableval="$enable_fast_install"
3744 p=${PACKAGE-default}
3745 case $enableval in
3746 yes) enable_fast_install=yes ;;
3747 no) enable_fast_install=no ;;
3749 enable_fast_install=no
3750 # Look at the argument we got. We use all the common list separators.
3751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3752 for pkg in $enableval; do
3753 if test "X$pkg" = "X$p"; then
3754 enable_fast_install=yes
3756 done
3757 IFS="$ac_save_ifs"
3759 esac
3760 else
3761 enable_fast_install=yes
3764 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3765 if test "${with_gnu_ld+set}" = set; then
3766 withval="$with_gnu_ld"
3767 test "$withval" = no || with_gnu_ld=yes
3768 else
3769 with_gnu_ld=no
3771 ac_prog=ld
3772 if test "$GCC" = yes; then
3773 # Check if gcc -print-prog-name=ld gives a path.
3774 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3775 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3776 case $host in
3777 *-*-mingw*)
3778 # gcc leaves a trailing carriage return which upsets mingw
3779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3782 esac
3783 case $ac_prog in
3784 # Accept absolute paths.
3785 [\\/]* | [A-Za-z]:[\\/]*)
3786 re_direlt='/[^/][^/]*/\.\./'
3787 # Canonicalize the path of ld
3788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3791 done
3792 test -z "$LD" && LD="$ac_prog"
3795 # If it fails, then pretend we aren't using GCC.
3796 ac_prog=ld
3799 # If it is relative, then search for the first ld in PATH.
3800 with_gnu_ld=unknown
3802 esac
3803 elif test "$with_gnu_ld" = yes; then
3804 echo "$as_me:$LINENO: checking for GNU ld" >&5
3805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3806 else
3807 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3810 if test "${lt_cv_path_LD+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 if test -z "$LD"; then
3814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3815 for ac_dir in $PATH; do
3816 test -z "$ac_dir" && ac_dir=.
3817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3818 lt_cv_path_LD="$ac_dir/$ac_prog"
3819 # Check to see if the program is GNU ld. I'd rather use --version,
3820 # but apparently some GNU ld's only accept -v.
3821 # Break only if it was the GNU/non-GNU ld that we prefer.
3822 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3823 test "$with_gnu_ld" != no && break
3824 else
3825 test "$with_gnu_ld" != yes && break
3828 done
3829 IFS="$ac_save_ifs"
3830 else
3831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3835 LD="$lt_cv_path_LD"
3836 if test -n "$LD"; then
3837 echo "$as_me:$LINENO: result: $LD" >&5
3838 echo "${ECHO_T}$LD" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3845 { (exit 1); exit 1; }; }
3846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3852 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3853 lt_cv_prog_gnu_ld=yes
3854 else
3855 lt_cv_prog_gnu_ld=no
3858 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3859 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3860 with_gnu_ld=$lt_cv_prog_gnu_ld
3863 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3864 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3865 if test "${lt_cv_ld_reload_flag+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 lt_cv_ld_reload_flag='-r'
3870 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3871 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3872 reload_flag=$lt_cv_ld_reload_flag
3873 test -n "$reload_flag" && reload_flag=" $reload_flag"
3875 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3876 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3877 if test "${lt_cv_path_NM+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 if test -n "$NM"; then
3881 # Let the user override the test.
3882 lt_cv_path_NM="$NM"
3883 else
3884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3885 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3886 test -z "$ac_dir" && ac_dir=.
3887 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3888 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3889 # Check to see if the nm accepts a BSD-compat flag.
3890 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3891 # nm: unknown option "B" ignored
3892 # Tru64's nm complains that /dev/null is an invalid object file
3893 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3894 lt_cv_path_NM="$tmp_nm -B"
3895 break
3896 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3897 lt_cv_path_NM="$tmp_nm -p"
3898 break
3899 else
3900 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3901 continue # so that we can try to find one that supports BSD flags
3904 done
3905 IFS="$ac_save_ifs"
3906 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3910 NM="$lt_cv_path_NM"
3911 echo "$as_me:$LINENO: result: $NM" >&5
3912 echo "${ECHO_T}$NM" >&6
3914 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3915 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3916 if test "${lt_cv_deplibs_check_method+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 lt_cv_file_magic_cmd='$MAGIC_CMD'
3920 lt_cv_file_magic_test_file=
3921 lt_cv_deplibs_check_method='unknown'
3922 # Need to set the preceding variable on all platforms that support
3923 # interlibrary dependencies.
3924 # 'none' -- dependencies not supported.
3925 # `unknown' -- same as none, but documents that we really don't know.
3926 # 'pass_all' -- all dependencies passed with no checks.
3927 # 'test_compile' -- check by making test program.
3928 # 'file_magic [regex]' -- check by looking for files in library path
3929 # which responds to the $file_magic_cmd with a given egrep regex.
3930 # If you have `file' or equivalent on your system and you're not sure
3931 # whether `pass_all' will *always* work, you probably want this one.
3933 case $host_os in
3934 aix*)
3935 lt_cv_deplibs_check_method=pass_all
3938 beos*)
3939 lt_cv_deplibs_check_method=pass_all
3942 bsdi4*)
3943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3944 lt_cv_file_magic_cmd='/usr/bin/file -L'
3945 lt_cv_file_magic_test_file=/shlib/libc.so
3948 cygwin* | mingw* |pw32*)
3949 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950 lt_cv_file_magic_cmd='$OBJDUMP -f'
3953 darwin* | rhapsody*)
3954 # this will be overwritten by pass_all, but leave it in just in case
3955 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3956 lt_cv_file_magic_cmd='/usr/bin/file -L'
3957 case "$host_os" in
3958 rhapsody* | darwin1.012)
3959 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3961 *) # Darwin 1.3 on
3962 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3964 esac
3965 lt_cv_deplibs_check_method=pass_all
3968 freebsd* )
3969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970 case $host_cpu in
3971 i*86 )
3972 # Not sure whether the presence of OpenBSD here was a mistake.
3973 # Let's accept both of them until this is cleared up.
3974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3975 lt_cv_file_magic_cmd=/usr/bin/file
3976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3978 esac
3979 else
3980 lt_cv_deplibs_check_method=pass_all
3984 gnu*)
3985 lt_cv_deplibs_check_method=pass_all
3988 hpux10.20*|hpux11*)
3989 case $host_cpu in
3990 hppa*)
3991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3992 lt_cv_file_magic_cmd=/usr/bin/file
3993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3995 ia64*)
3996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3997 lt_cv_file_magic_cmd=/usr/bin/file
3998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4000 esac
4003 irix5* | irix6*)
4004 case $host_os in
4005 irix5*)
4006 # this will be overridden with pass_all, but let us keep it just in case
4007 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4010 case $LD in
4011 *-32|*"-32 ") libmagic=32-bit;;
4012 *-n32|*"-n32 ") libmagic=N32;;
4013 *-64|*"-64 ") libmagic=64-bit;;
4014 *) libmagic=never-match;;
4015 esac
4016 # this will be overridden with pass_all, but let us keep it just in case
4017 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4019 esac
4020 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4021 lt_cv_deplibs_check_method=pass_all
4024 # This must be Linux ELF.
4025 linux-gnu*)
4026 case $host_cpu in
4027 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4028 lt_cv_deplibs_check_method=pass_all ;;
4030 # glibc up to 2.1.1 does not perform some relocations on ARM
4031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4032 esac
4033 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4036 netbsd*)
4037 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4038 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4039 else
4040 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4044 newsos6)
4045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4046 lt_cv_file_magic_cmd=/usr/bin/file
4047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4050 osf3* | osf4* | osf5*)
4051 # this will be overridden with pass_all, but let us keep it just in case
4052 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4053 lt_cv_file_magic_test_file=/shlib/libc.so
4054 lt_cv_deplibs_check_method=pass_all
4057 sco3.2v5*)
4058 lt_cv_deplibs_check_method=pass_all
4061 solaris*)
4062 lt_cv_deplibs_check_method=pass_all
4063 lt_cv_file_magic_test_file=/lib/libc.so
4066 sysv5uw[78]* | sysv4*uw2*)
4067 lt_cv_deplibs_check_method=pass_all
4070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4071 case $host_vendor in
4072 ncr)
4073 lt_cv_deplibs_check_method=pass_all
4075 motorola)
4076 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]'
4077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 esac
4081 esac
4084 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4085 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4086 file_magic_cmd=$lt_cv_file_magic_cmd
4087 deplibs_check_method=$lt_cv_deplibs_check_method
4093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4095 # Only perform the check for file, if the check method requires it
4096 case $deplibs_check_method in
4097 file_magic*)
4098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4099 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 case $MAGIC_CMD in
4106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4108 ?:/*)
4109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4112 ac_save_MAGIC_CMD="$MAGIC_CMD"
4113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4114 ac_dummy="/usr/bin:$PATH"
4115 for ac_dir in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir=.
4117 if test -f $ac_dir/${ac_tool_prefix}file; then
4118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4119 if test -n "$file_magic_test_file"; then
4120 case $deplibs_check_method in
4121 "file_magic "*)
4122 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4125 egrep "$file_magic_regex" > /dev/null; then
4127 else
4128 cat <<EOF 1>&2
4130 *** Warning: the command libtool uses to detect shared libraries,
4131 *** $file_magic_cmd, produces output that libtool cannot recognize.
4132 *** The result is that libtool may fail to recognize shared libraries
4133 *** as such. This will affect the creation of libtool libraries that
4134 *** depend on shared libraries, but programs linked with such libtool
4135 *** libraries will work regardless of this problem. Nevertheless, you
4136 *** may want to report the problem to your system manager and/or to
4137 *** bug-libtool@gnu.org
4140 fi ;;
4141 esac
4143 break
4145 done
4146 IFS="$ac_save_ifs"
4147 MAGIC_CMD="$ac_save_MAGIC_CMD"
4149 esac
4152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4153 if test -n "$MAGIC_CMD"; then
4154 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4155 echo "${ECHO_T}$MAGIC_CMD" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 if test -z "$lt_cv_path_MAGIC_CMD"; then
4162 if test -n "$ac_tool_prefix"; then
4163 echo "$as_me:$LINENO: checking for file" >&5
4164 echo $ECHO_N "checking for file... $ECHO_C" >&6
4165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 case $MAGIC_CMD in
4170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4172 ?:/*)
4173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4176 ac_save_MAGIC_CMD="$MAGIC_CMD"
4177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4178 ac_dummy="/usr/bin:$PATH"
4179 for ac_dir in $ac_dummy; do
4180 test -z "$ac_dir" && ac_dir=.
4181 if test -f $ac_dir/file; then
4182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4183 if test -n "$file_magic_test_file"; then
4184 case $deplibs_check_method in
4185 "file_magic "*)
4186 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4189 egrep "$file_magic_regex" > /dev/null; then
4191 else
4192 cat <<EOF 1>&2
4194 *** Warning: the command libtool uses to detect shared libraries,
4195 *** $file_magic_cmd, produces output that libtool cannot recognize.
4196 *** The result is that libtool may fail to recognize shared libraries
4197 *** as such. This will affect the creation of libtool libraries that
4198 *** depend on shared libraries, but programs linked with such libtool
4199 *** libraries will work regardless of this problem. Nevertheless, you
4200 *** may want to report the problem to your system manager and/or to
4201 *** bug-libtool@gnu.org
4204 fi ;;
4205 esac
4207 break
4209 done
4210 IFS="$ac_save_ifs"
4211 MAGIC_CMD="$ac_save_MAGIC_CMD"
4213 esac
4216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4217 if test -n "$MAGIC_CMD"; then
4218 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4219 echo "${ECHO_T}$MAGIC_CMD" >&6
4220 else
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4225 else
4226 MAGIC_CMD=:
4232 esac
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_RANLIB+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 if test -n "$RANLIB"; then
4243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4261 RANLIB=$ac_cv_prog_RANLIB
4262 if test -n "$RANLIB"; then
4263 echo "$as_me:$LINENO: result: $RANLIB" >&5
4264 echo "${ECHO_T}$RANLIB" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4271 if test -z "$ac_cv_prog_RANLIB"; then
4272 ac_ct_RANLIB=$RANLIB
4273 # Extract the first word of "ranlib", so it can be a program name with args.
4274 set dummy ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$ac_ct_RANLIB"; then
4281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_ac_ct_RANLIB="ranlib"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4297 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4301 if test -n "$ac_ct_RANLIB"; then
4302 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4303 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4304 else
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 RANLIB=$ac_ct_RANLIB
4310 else
4311 RANLIB="$ac_cv_prog_RANLIB"
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}strip; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_STRIP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 if test -n "$STRIP"; then
4323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4341 STRIP=$ac_cv_prog_STRIP
4342 if test -n "$STRIP"; then
4343 echo "$as_me:$LINENO: result: $STRIP" >&5
4344 echo "${ECHO_T}$STRIP" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4351 if test -z "$ac_cv_prog_STRIP"; then
4352 ac_ct_STRIP=$STRIP
4353 # Extract the first word of "strip", so it can be a program name with args.
4354 set dummy strip; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if test -n "$ac_ct_STRIP"; then
4361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_STRIP="strip"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4377 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381 if test -n "$ac_ct_STRIP"; then
4382 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383 echo "${ECHO_T}$ac_ct_STRIP" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4389 STRIP=$ac_ct_STRIP
4390 else
4391 STRIP="$ac_cv_prog_STRIP"
4395 # Check for any special flags to pass to ltconfig.
4396 libtool_flags="--cache-file=$cache_file"
4397 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4398 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4399 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4400 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4401 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406 enableval="$enable_libtool_lock"
4409 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4410 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4413 # Check whether --with-pic or --without-pic was given.
4414 if test "${with_pic+set}" = set; then
4415 withval="$with_pic"
4416 pic_mode="$withval"
4417 else
4418 pic_mode=default
4420 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4421 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4423 # Some flags need to be propagated to the compiler or linker for good
4424 # libtool support.
4425 case $host in
4426 *-*-irix6*)
4427 # Find out which ABI we are using.
4428 echo '#line 4428 "configure"' > conftest.$ac_ext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; then
4434 if test "$lt_cv_prog_gnu_ld" = yes; then
4435 case `/usr/bin/file conftest.$ac_objext` in
4436 *32-bit*)
4437 LD="${LD-ld} -melf32bsmip"
4439 *N32*)
4440 LD="${LD-ld} -melf32bmipn32"
4442 *64-bit*)
4443 LD="${LD-ld} -melf64bmip"
4445 esac
4446 else
4447 case `/usr/bin/file conftest.$ac_objext` in
4448 *32-bit*)
4449 LD="${LD-ld} -32"
4451 *N32*)
4452 LD="${LD-ld} -n32"
4454 *64-bit*)
4455 LD="${LD-ld} -64"
4457 esac
4460 rm -rf conftest*
4463 ia64-*-hpux*)
4464 # Find out which ABI we are using.
4465 echo 'int i;' > conftest.$ac_ext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; then
4471 case "`/usr/bin/file conftest.o`" in
4472 *ELF-32*)
4473 HPUX_IA64_MODE="32"
4475 *ELF-64*)
4476 HPUX_IA64_MODE="64"
4478 esac
4480 rm -rf conftest*
4483 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4484 # Find out which ABI we are using.
4485 echo 'int i;' > conftest.$ac_ext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; then
4491 case "`/usr/bin/file conftest.o`" in
4492 *32-bit*)
4493 case $host in
4494 x86_64-*linux*)
4495 LD="${LD-ld} -m elf_i386"
4497 ppc64-*linux*|powerpc64-*linux*)
4498 LD="${LD-ld} -m elf32ppclinux"
4500 s390x-*linux*)
4501 LD="${LD-ld} -m elf_s390"
4503 sparc64-*linux*)
4504 LD="${LD-ld} -m elf32_sparc"
4506 esac
4508 *64-bit*)
4509 case $host in
4510 x86_64-*linux*)
4511 LD="${LD-ld} -m elf_x86_64"
4513 ppc*-*linux*|powerpc*-*linux*)
4514 LD="${LD-ld} -m elf64ppc"
4516 s390*-*linux*)
4517 LD="${LD-ld} -m elf64_s390"
4519 sparc*-*linux*)
4520 LD="${LD-ld} -m elf64_sparc"
4522 esac
4524 esac
4526 rm -rf conftest*
4529 *-*-sco3.2v5*)
4530 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4531 SAVE_CFLAGS="$CFLAGS"
4532 CFLAGS="$CFLAGS -belf"
4533 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4534 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4535 if test "${lt_cv_cc_needs_belf+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 if test x$gcc_no_link = xyes; then
4547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4549 { (exit 1); exit 1; }; }
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4559 main ()
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568 (eval $ac_link) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest$ac_exeext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 lt_cv_cc_needs_belf=yes
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 lt_cv_cc_needs_belf=no
4595 rm -f conftest.err conftest.$ac_objext \
4596 conftest$ac_exeext conftest.$ac_ext
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4608 CFLAGS="$SAVE_CFLAGS"
4613 esac
4616 # Save cache, so that ltconfig can load it
4617 cat >confcache <<\_ACEOF
4618 # This file is a shell script that caches the results of configure
4619 # tests run on this system so they can be shared between configure
4620 # scripts and configure runs, see configure's option --config-cache.
4621 # It is not useful on other systems. If it contains results you don't
4622 # want to keep, you may remove or edit it.
4624 # config.status only pays attention to the cache file if you give it
4625 # the --recheck option to rerun configure.
4627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4629 # following values.
4631 _ACEOF
4633 # The following way of writing the cache mishandles newlines in values,
4634 # but we know of no workaround that is simple, portable, and efficient.
4635 # So, don't put newlines in cache variables' values.
4636 # Ultrix sh set writes to stderr and can't be redirected directly,
4637 # and sets the high bit in the cache file unless we assign to the vars.
4639 (set) 2>&1 |
4640 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4641 *ac_space=\ *)
4642 # `set' does not quote correctly, so add quotes (double-quote
4643 # substitution turns \\\\ into \\, and sed turns \\ into \).
4644 sed -n \
4645 "s/'/'\\\\''/g;
4646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4649 # `set' quotes correctly as required by POSIX, so do not add quotes.
4650 sed -n \
4651 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4653 esac;
4655 sed '
4656 t clear
4657 : clear
4658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4659 t end
4660 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4661 : end' >>confcache
4662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4663 if test -w $cache_file; then
4664 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4665 cat confcache >$cache_file
4666 else
4667 echo "not updating unwritable cache $cache_file"
4670 rm -f confcache
4672 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4673 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4674 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4675 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4676 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4677 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4678 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4679 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4680 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4681 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4682 echo "$as_me: error: libtool configure failed" >&2;}
4683 { (exit 1); exit 1; }; }
4685 # Reload cache, that may have been modified by ltconfig
4686 if test -r "$cache_file"; then
4687 # Some versions of bash will fail to source /dev/null (special
4688 # files actually), so we avoid doing that.
4689 if test -f "$cache_file"; then
4690 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4691 echo "$as_me: loading cache $cache_file" >&6;}
4692 case $cache_file in
4693 [\\/]* | ?:[\\/]* ) . $cache_file;;
4694 *) . ./$cache_file;;
4695 esac
4697 else
4698 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4699 echo "$as_me: creating cache $cache_file" >&6;}
4700 >$cache_file
4704 # This can be used to rebuild libtool when needed
4705 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4707 # Always use our own libtool.
4708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4710 # Redirect the config.log output again, so that the ltconfig log is not
4711 # clobbered by the next message.
4712 exec 5>>./config.log
4714 ac_ext=cc
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4720 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4721 if test -z "$CXXCPP"; then
4722 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 # Double quotes because CXXCPP needs to be expanded
4726 for CXXCPP in "$CXX -E" "/lib/cpp"
4728 ac_preproc_ok=false
4729 for ac_cxx_preproc_warn_flag in '' yes
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748 Syntax error
4749 _ACEOF
4750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null; then
4758 if test -s conftest.err; then
4759 ac_cpp_err=$ac_cxx_preproc_warn_flag
4760 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4761 else
4762 ac_cpp_err=
4764 else
4765 ac_cpp_err=yes
4767 if test -z "$ac_cpp_err"; then
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 # Broken: fails on valid input.
4774 continue
4776 rm -f conftest.err conftest.$ac_ext
4778 # OK, works on sane cases. Now check whether non-existent headers
4779 # can be detected and how.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } >/dev/null; then
4796 if test -s conftest.err; then
4797 ac_cpp_err=$ac_cxx_preproc_warn_flag
4798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4799 else
4800 ac_cpp_err=
4802 else
4803 ac_cpp_err=yes
4805 if test -z "$ac_cpp_err"; then
4806 # Broken: success on invalid input.
4807 continue
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 # Passes both tests.
4813 ac_preproc_ok=:
4814 break
4816 rm -f conftest.err conftest.$ac_ext
4818 done
4819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4820 rm -f conftest.err conftest.$ac_ext
4821 if $ac_preproc_ok; then
4822 break
4825 done
4826 ac_cv_prog_CXXCPP=$CXXCPP
4829 CXXCPP=$ac_cv_prog_CXXCPP
4830 else
4831 ac_cv_prog_CXXCPP=$CXXCPP
4833 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4834 echo "${ECHO_T}$CXXCPP" >&6
4835 ac_preproc_ok=false
4836 for ac_cxx_preproc_warn_flag in '' yes
4838 # Use a header file that comes with gcc, so configuring glibc
4839 # with a fresh cross-compiler works.
4840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841 # <limits.h> exists even on freestanding compilers.
4842 # On the NeXT, cc -E runs the code through the compiler's parser,
4843 # not just through cpp. "Syntax error" is here to catch this case.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855 Syntax error
4856 _ACEOF
4857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null; then
4865 if test -s conftest.err; then
4866 ac_cpp_err=$ac_cxx_preproc_warn_flag
4867 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4868 else
4869 ac_cpp_err=
4871 else
4872 ac_cpp_err=yes
4874 if test -z "$ac_cpp_err"; then
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 # Broken: fails on valid input.
4881 continue
4883 rm -f conftest.err conftest.$ac_ext
4885 # OK, works on sane cases. Now check whether non-existent headers
4886 # can be detected and how.
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } >/dev/null; then
4903 if test -s conftest.err; then
4904 ac_cpp_err=$ac_cxx_preproc_warn_flag
4905 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4906 else
4907 ac_cpp_err=
4909 else
4910 ac_cpp_err=yes
4912 if test -z "$ac_cpp_err"; then
4913 # Broken: success on invalid input.
4914 continue
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 # Passes both tests.
4920 ac_preproc_ok=:
4921 break
4923 rm -f conftest.err conftest.$ac_ext
4925 done
4926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4927 rm -f conftest.err conftest.$ac_ext
4928 if $ac_preproc_ok; then
4930 else
4931 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4932 See \`config.log' for more details." >&5
4933 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4934 See \`config.log' for more details." >&2;}
4935 { (exit 1); exit 1; }; }
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4947 lt_save_CC="$CC"
4948 lt_save_CFLAGS="$CFLAGS"
4949 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4950 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4951 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4952 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4953 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4954 deplibs_check_method="$deplibs_check_method" \
4955 file_magic_cmd="$file_magic_cmd" \
4956 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4957 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4958 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4959 echo "$as_me: error: libtool tag configuration failed" >&2;}
4960 { (exit 1); exit 1; }; }
4961 CC="$lt_save_CC"
4962 CFLAGS="$lt_save_CFLAGS"
4964 # Redirect the config.log output again, so that the ltconfig log is not
4965 # clobbered by the next message.
4966 exec 5>>./config.log
4975 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4977 # Possibly disable most of the library.
4978 ## XXX Consider skipping unncessary tests altogether in this case, rather
4979 ## than just ignoring the results. Faster /and/ more correct, win win.
4981 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4982 if test "${enable_hosted_libstdcxx+set}" = set; then
4983 enableval="$enable_hosted_libstdcxx"
4985 else
4986 enable_hosted_libstdcxx=yes
4988 if test "$enable_hosted_libstdcxx" = no; then
4989 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4990 echo "$as_me: Only freestanding libraries will be built" >&6;}
4991 is_hosted=no
4992 hosted_define=0
4993 enable_abi_check=no
4994 enable_libstdcxx_pch=no
4995 else
4996 is_hosted=yes
4997 hosted_define=1
5001 cat >>confdefs.h <<_ACEOF
5002 #define _GLIBCXX_HOSTED $hosted_define
5003 _ACEOF
5007 # Check for support bits and g++ features that don't require linking.
5009 echo "$as_me:$LINENO: checking for exception model to use" >&5
5010 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5013 ac_ext=cc
5014 ac_cpp='$CXXCPP $CPPFLAGS'
5015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5019 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5020 if test "${enable_sjlj_exceptions+set}" = set; then
5021 enableval="$enable_sjlj_exceptions"
5023 case "$enableval" in
5024 yes|no|auto) ;;
5025 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
5026 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028 esac
5030 else
5031 enable_sjlj_exceptions=auto
5035 if test $enable_sjlj_exceptions = auto; then
5036 # Botheration. Now we've got to detect the exception model. Link tests
5037 # against libgcc.a are problematic since we've not been given proper -L
5038 # bits for single-tree newlib and libgloss.
5040 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5041 cat > conftest.$ac_ext << EOF
5042 #line 5042 "configure"
5043 struct S { ~S(); };
5044 void bar();
5045 void foo()
5047 S s;
5048 bar();
5051 old_CXXFLAGS="$CXXFLAGS"
5052 CXXFLAGS=-S
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; then
5058 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5059 enable_sjlj_exceptions=yes
5060 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5061 enable_sjlj_exceptions=no
5064 CXXFLAGS="$old_CXXFLAGS"
5065 rm -f conftest*
5068 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5069 # to two different models.
5070 case $enable_sjlj_exceptions in
5071 yes)
5073 cat >>confdefs.h <<\_ACEOF
5074 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5075 _ACEOF
5077 ac_exception_model_name=sjlj
5080 ac_exception_model_name="call frame"
5083 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5084 echo "$as_me: error: unable to detect exception model" >&2;}
5085 { (exit 1); exit 1; }; }
5087 esac
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5095 echo "${ECHO_T}$ac_exception_model_name" >&6
5098 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5099 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5100 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5101 if test "${enable_libstdcxx_pch+set}" = set; then
5102 enableval="$enable_libstdcxx_pch"
5104 case "$enableval" in
5105 yes|no) ;;
5106 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5107 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5109 esac
5111 else
5112 enable_libstdcxx_pch=$is_hosted
5115 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5116 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5118 if test $enable_libstdcxx_pch = yes; then
5119 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5120 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5121 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 ac_save_CXXFLAGS="$CXXFLAGS"
5125 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5128 ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134 echo '#include <math.h>' > conftest.h
5135 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5136 -o conftest.h.gch 1>&5 2>&1 &&
5137 echo '#error "pch failed"' > conftest.h &&
5138 echo '#include "conftest.h"' > conftest.cc &&
5139 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5140 then
5141 glibcxx_cv_prog_CXX_pch=yes
5142 else
5143 glibcxx_cv_prog_CXX_pch=no
5145 rm -f conftest*
5146 CXXFLAGS=$ac_save_CXXFLAGS
5147 ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5156 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5157 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5161 if test $enable_libstdcxx_pch = yes; then
5162 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5163 else
5164 glibcxx_PCHFLAGS=""
5169 # Enable all the variable C++ runtime options.
5170 # NB: C_MBCHAR must come early.
5172 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5173 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5174 # Check whether --enable-cstdio or --disable-cstdio was given.
5175 if test "${enable_cstdio+set}" = set; then
5176 enableval="$enable_cstdio"
5178 case "$enableval" in
5179 stdio) ;;
5180 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5181 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5183 esac
5185 else
5186 enable_cstdio=stdio
5190 # Now that libio has been removed, you can have any color you want as long
5191 # as it's black. This is one big no-op until other packages are added, but
5192 # showing the framework never hurts.
5193 case ${enable_cstdio} in
5194 stdio)
5195 CSTDIO_H=config/io/c_io_stdio.h
5196 BASIC_FILE_H=config/io/basic_file_stdio.h
5197 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5198 echo "$as_me:$LINENO: result: stdio" >&5
5199 echo "${ECHO_T}stdio" >&6
5201 esac
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5214 # On Suns, sometimes $CPP names a directory.
5215 if test -n "$CPP" && test -d "$CPP"; then
5216 CPP=
5218 if test -z "$CPP"; then
5219 if test "${ac_cv_prog_CPP+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 # Double quotes because CPP needs to be expanded
5223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5225 ac_preproc_ok=false
5226 for ac_c_preproc_warn_flag in '' yes
5228 # Use a header file that comes with gcc, so configuring glibc
5229 # with a fresh cross-compiler works.
5230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5231 # <limits.h> exists even on freestanding compilers.
5232 # On the NeXT, cc -E runs the code through the compiler's parser,
5233 # not just through cpp. "Syntax error" is here to catch this case.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #ifdef __STDC__
5241 # include <limits.h>
5242 #else
5243 # include <assert.h>
5244 #endif
5245 Syntax error
5246 _ACEOF
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258 else
5259 ac_cpp_err=
5261 else
5262 ac_cpp_err=yes
5264 if test -z "$ac_cpp_err"; then
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 # Broken: fails on valid input.
5271 continue
5273 rm -f conftest.err conftest.$ac_ext
5275 # OK, works on sane cases. Now check whether non-existent headers
5276 # can be detected and how.
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <ac_nonexistent.h>
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null; then
5293 if test -s conftest.err; then
5294 ac_cpp_err=$ac_c_preproc_warn_flag
5295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296 else
5297 ac_cpp_err=
5299 else
5300 ac_cpp_err=yes
5302 if test -z "$ac_cpp_err"; then
5303 # Broken: success on invalid input.
5304 continue
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5313 rm -f conftest.err conftest.$ac_ext
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then
5319 break
5322 done
5323 ac_cv_prog_CPP=$CPP
5326 CPP=$ac_cv_prog_CPP
5327 else
5328 ac_cv_prog_CPP=$CPP
5330 echo "$as_me:$LINENO: result: $CPP" >&5
5331 echo "${ECHO_T}$CPP" >&6
5332 ac_preproc_ok=false
5333 for ac_c_preproc_warn_flag in '' yes
5335 # Use a header file that comes with gcc, so configuring glibc
5336 # with a fresh cross-compiler works.
5337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338 # <limits.h> exists even on freestanding compilers.
5339 # On the NeXT, cc -E runs the code through the compiler's parser,
5340 # not just through cpp. "Syntax error" is here to catch this case.
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
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 { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } >/dev/null; then
5362 if test -s conftest.err; then
5363 ac_cpp_err=$ac_c_preproc_warn_flag
5364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5365 else
5366 ac_cpp_err=
5368 else
5369 ac_cpp_err=yes
5371 if test -z "$ac_cpp_err"; then
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 # Broken: fails on valid input.
5378 continue
5380 rm -f conftest.err conftest.$ac_ext
5382 # OK, works on sane cases. Now check whether non-existent headers
5383 # can be detected and how.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <ac_nonexistent.h>
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403 else
5404 ac_cpp_err=
5406 else
5407 ac_cpp_err=yes
5409 if test -z "$ac_cpp_err"; then
5410 # Broken: success on invalid input.
5411 continue
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5420 rm -f conftest.err conftest.$ac_ext
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5427 else
5428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442 echo "$as_me:$LINENO: checking for egrep" >&5
5443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5444 if test "${ac_cv_prog_egrep+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5448 then ac_cv_prog_egrep='grep -E'
5449 else ac_cv_prog_egrep='egrep'
5452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5454 EGREP=$ac_cv_prog_egrep
5457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459 if test "${ac_cv_header_stdc+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #include <stdlib.h>
5469 #include <stdarg.h>
5470 #include <string.h>
5471 #include <float.h>
5474 main ()
5478 return 0;
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_header_stdc=yes
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_header_stdc=no
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 if test $ac_cv_header_stdc = yes; then
5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <string.h>
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "memchr" >/dev/null 2>&1; then
5526 else
5527 ac_cv_header_stdc=no
5529 rm -f conftest*
5533 if test $ac_cv_header_stdc = yes; then
5534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <stdlib.h>
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "free" >/dev/null 2>&1; then
5547 else
5548 ac_cv_header_stdc=no
5550 rm -f conftest*
5554 if test $ac_cv_header_stdc = yes; then
5555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556 if test "$cross_compiling" = yes; then
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <ctype.h>
5566 #if ((' ' & 0x0FF) == 0x020)
5567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569 #else
5570 # define ISLOWER(c) \
5571 (('a' <= (c) && (c) <= 'i') \
5572 || ('j' <= (c) && (c) <= 'r') \
5573 || ('s' <= (c) && (c) <= 'z'))
5574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #endif
5577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5579 main ()
5581 int i;
5582 for (i = 0; i < 256; i++)
5583 if (XOR (islower (i), ISLOWER (i))
5584 || toupper (i) != TOUPPER (i))
5585 exit(2);
5586 exit (0);
5588 _ACEOF
5589 rm -f conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5601 else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ( exit $ac_status )
5607 ac_cv_header_stdc=no
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615 if test $ac_cv_header_stdc = yes; then
5617 cat >>confdefs.h <<\_ACEOF
5618 #define STDC_HEADERS 1
5619 _ACEOF
5623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5634 inttypes.h stdint.h unistd.h
5636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5637 echo "$as_me:$LINENO: checking for $ac_header" >&5
5638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5650 #include <$ac_header>
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 eval "$as_ac_Header=yes"
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 eval "$as_ac_Header=no"
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5692 done
5696 echo "$as_me:$LINENO: checking for C locale to use" >&5
5697 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5698 # Check whether --enable-clocale or --disable-clocale was given.
5699 if test "${enable_clocale+set}" = set; then
5700 enableval="$enable_clocale"
5702 case "$enableval" in
5703 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5704 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5705 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5706 { (exit 1); exit 1; }; } ;;
5707 esac
5709 else
5710 enable_clocale=auto
5714 # If they didn't use this option switch, or if they specified --enable
5715 # with no specific model, we'll have to look for one. If they
5716 # specified --disable (???), do likewise.
5717 if test $enable_clocale = no || test $enable_clocale = yes; then
5718 enable_clocale=auto
5721 # Either a known package, or "auto"
5722 enable_clocale_flag=$enable_clocale
5724 # Probe for locale support if no specific model is specified.
5725 # Default to "generic".
5726 if test $enable_clocale_flag = auto; then
5727 case x${target_os} in
5728 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5736 #include <features.h>
5737 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5738 _GLIBCXX_ok
5739 #endif
5741 _ACEOF
5742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5743 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5744 enable_clocale_flag=gnu
5745 else
5746 enable_clocale_flag=generic
5748 rm -f conftest*
5751 # Test for bugs early in glibc-2.2.x series
5752 if test x$enable_clocale_flag = xgnu; then
5753 if test "$cross_compiling" = yes; then
5754 enable_clocale_flag=generic
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 #define _GNU_SOURCE 1
5764 #include <locale.h>
5765 #include <string.h>
5766 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5767 extern __typeof(newlocale) __newlocale;
5768 extern __typeof(duplocale) __duplocale;
5769 extern __typeof(strcoll_l) __strcoll_l;
5770 #endif
5771 int main()
5773 const char __one[] = "Äuglein Augmen";
5774 const char __two[] = "Äuglein";
5775 int i;
5776 int j;
5777 __locale_t loc;
5778 __locale_t loc_dup;
5779 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5780 loc_dup = __duplocale(loc);
5781 i = __strcoll_l(__one, __two, loc);
5782 j = __strcoll_l(__one, __two, loc_dup);
5783 return 0;
5786 _ACEOF
5787 rm -f conftest$ac_exeext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789 (eval $ac_link) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 enable_clocale_flag=gnu
5799 else
5800 echo "$as_me: program exited with status $ac_status" >&5
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ( exit $ac_status )
5805 enable_clocale_flag=generic
5807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5811 # ... at some point put __strxfrm_l tests in as well.
5814 enable_clocale_flag=generic
5816 esac
5819 # Deal with gettext issues. Default to not using it (=no) until we detect
5820 # support for it later. Let the user turn it off via --e/d, but let that
5821 # default to on for easier handling.
5822 USE_NLS=no
5823 # Check whether --enable-nls or --disable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825 enableval="$enable_nls"
5827 else
5828 enable_nls=yes
5831 # Set configure bits for specified locale package
5832 case ${enable_clocale_flag} in
5833 generic)
5834 echo "$as_me:$LINENO: result: generic" >&5
5835 echo "${ECHO_T}generic" >&6
5837 CLOCALE_H=config/locale/generic/c_locale.h
5838 CLOCALE_CC=config/locale/generic/c_locale.cc
5839 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5840 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5841 CCOLLATE_CC=config/locale/generic/collate_members.cc
5842 CCTYPE_CC=config/locale/generic/ctype_members.cc
5843 CMESSAGES_H=config/locale/generic/messages_members.h
5844 CMESSAGES_CC=config/locale/generic/messages_members.cc
5845 CMONEY_CC=config/locale/generic/monetary_members.cc
5846 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5847 CTIME_H=config/locale/generic/time_members.h
5848 CTIME_CC=config/locale/generic/time_members.cc
5849 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5851 gnu)
5852 echo "$as_me:$LINENO: result: gnu" >&5
5853 echo "${ECHO_T}gnu" >&6
5855 # Declare intention to use gettext, and add support for specific
5856 # languages.
5857 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5858 ALL_LINGUAS="de fr"
5860 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5861 # Extract the first word of "msgfmt", so it can be a program name with args.
5862 set dummy msgfmt; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 if test -n "$check_msgfmt"; then
5869 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_check_msgfmt="yes"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5882 done
5883 done
5885 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5888 check_msgfmt=$ac_cv_prog_check_msgfmt
5889 if test -n "$check_msgfmt"; then
5890 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5891 echo "${ECHO_T}$check_msgfmt" >&6
5892 else
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5897 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5898 USE_NLS=yes
5900 # Export the build objects.
5901 for ling in $ALL_LINGUAS; do \
5902 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5903 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5904 done
5908 CLOCALE_H=config/locale/gnu/c_locale.h
5909 CLOCALE_CC=config/locale/gnu/c_locale.cc
5910 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5911 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5912 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5913 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5914 CMESSAGES_H=config/locale/gnu/messages_members.h
5915 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5916 CMONEY_CC=config/locale/gnu/monetary_members.cc
5917 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5918 CTIME_H=config/locale/gnu/time_members.h
5919 CTIME_CC=config/locale/gnu/time_members.cc
5920 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5922 ieee_1003.1-2001)
5923 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5924 echo "${ECHO_T}IEEE 1003.1" >&6
5926 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5927 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5928 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5929 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5930 CCOLLATE_CC=config/locale/generic/collate_members.cc
5931 CCTYPE_CC=config/locale/generic/ctype_members.cc
5932 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5933 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5934 CMONEY_CC=config/locale/generic/monetary_members.cc
5935 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5936 CTIME_H=config/locale/generic/time_members.h
5937 CTIME_CC=config/locale/generic/time_members.cc
5938 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5940 esac
5942 # This is where the testsuite looks for locale catalogs, using the
5943 # -DLOCALEDIR define during testsuite compilation.
5944 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5947 # A standalone libintl (e.g., GNU libintl) may be in use.
5948 if test $USE_NLS = yes; then
5950 for ac_header in libintl.h
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 else
5962 # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 #include <$ac_header>
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_header_compiler=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_header_compiler=no
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #include <$ac_header>
6017 _ACEOF
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } >/dev/null; then
6026 if test -s conftest.err; then
6027 ac_cpp_err=$ac_c_preproc_warn_flag
6028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6029 else
6030 ac_cpp_err=
6032 else
6033 ac_cpp_err=yes
6035 if test -z "$ac_cpp_err"; then
6036 ac_header_preproc=yes
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_header_preproc=no
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6047 # So? What about this header?
6048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6049 yes:no: )
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054 ac_header_preproc=yes
6056 no:yes:* )
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6070 cat <<\_ASBOX
6071 ## ----------------------------------------- ##
6072 ## Report this to the package-unused lists. ##
6073 ## ----------------------------------------- ##
6074 _ASBOX
6076 sed "s/^/$as_me: WARNING: /" >&2
6078 esac
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 eval "$as_ac_Header=\$ac_header_preproc"
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091 cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093 _ACEOF
6095 else
6096 USE_NLS=no
6099 done
6101 echo "$as_me:$LINENO: checking for library containing gettext" >&5
6102 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6103 if test "${ac_cv_search_gettext+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 ac_func_search_save_LIBS=$LIBS
6107 ac_cv_search_gettext=no
6108 if test x$gcc_no_link = xyes; then
6109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6111 { (exit 1); exit 1; }; }
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 #ifdef __cplusplus
6122 extern "C"
6123 #endif
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6126 char gettext ();
6128 main ()
6130 gettext ();
6132 return 0;
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_gettext="none required"
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.err conftest.$ac_objext \
6164 conftest$ac_exeext conftest.$ac_ext
6165 if test "$ac_cv_search_gettext" = no; then
6166 for ac_lib in intl; do
6167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6168 if test x$gcc_no_link = xyes; then
6169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6171 { (exit 1); exit 1; }; }
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 /* Override any gcc2 internal prototype to avoid an error. */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6186 char gettext ();
6188 main ()
6190 gettext ();
6192 return 0;
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197 (eval $ac_link) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest$ac_exeext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_search_gettext="-l$ac_lib"
6218 break
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6224 rm -f conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6226 done
6228 LIBS=$ac_func_search_save_LIBS
6230 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6231 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6232 if test "$ac_cv_search_gettext" != no; then
6233 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6235 else
6236 USE_NLS=no
6240 if test $USE_NLS = yes; then
6241 cat >>confdefs.h <<\_ACEOF
6242 #define _GLIBCXX_USE_NLS 1
6243 _ACEOF
6263 echo "$as_me:$LINENO: checking for std::allocator base class to use" >&5
6264 echo $ECHO_N "checking for std::allocator base class to use... $ECHO_C" >&6
6265 # Check whether --enable-libstdcxx-allocator or --disable-libstdcxx-allocator was given.
6266 if test "${enable_libstdcxx_allocator+set}" = set; then
6267 enableval="$enable_libstdcxx_allocator"
6269 case "$enableval" in
6270 new|malloc|mt|bitmap|yes|no|auto) ;;
6271 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable libstdcxx-allocator" >&5
6272 echo "$as_me: error: Unknown argument to enable/disable libstdcxx-allocator" >&2;}
6273 { (exit 1); exit 1; }; } ;;
6274 esac
6276 else
6277 enable_libstdcxx_allocator=auto
6280 # If they didn't use this option switch, or if they specified --enable
6281 # with no specific model, we'll have to look for one. If they
6282 # specified --disable (???), do likewise.
6283 if test $enable_libstdcxx_allocator = no || test $enable_libstdcxx_allocator = yes; then
6284 enable_libstdcxx_allocator=auto
6287 # Either a known package, or "auto"
6288 enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
6290 # Probe for host-specific support if no specific model is specified.
6291 # Default to "new".
6292 if test $enable_libstdcxx_allocator_flag = auto; then
6293 case ${target_os} in
6295 enable_libstdcxx_allocator_flag=new
6297 esac
6299 echo "$as_me:$LINENO: result: $enable_libstdcxx_allocator_flag" >&5
6300 echo "${ECHO_T}$enable_libstdcxx_allocator_flag" >&6
6303 # Set configure bits for specified locale package
6304 case ${enable_libstdcxx_allocator_flag} in
6305 bitmap)
6306 ALLOCATOR_H=config/allocator/bitmap_allocator_base.h
6307 ALLOCATOR_NAME=__gnu_cxx::bitmap_allocator
6309 malloc)
6310 ALLOCATOR_H=config/allocator/malloc_allocator_base.h
6311 ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
6314 ALLOCATOR_H=config/allocator/mt_allocator_base.h
6315 ALLOCATOR_NAME=__gnu_cxx::__mt_alloc
6317 new)
6318 ALLOCATOR_H=config/allocator/new_allocator_base.h
6319 ALLOCATOR_NAME=__gnu_cxx::new_allocator
6321 esac
6327 # Check whether --enable-cheaders or --disable-cheaders was given.
6328 if test "${enable_cheaders+set}" = set; then
6329 enableval="$enable_cheaders"
6331 case "$enableval" in
6332 c|c_std) ;;
6333 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6334 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6335 { (exit 1); exit 1; }; } ;;
6336 esac
6338 else
6339 enable_cheaders=$c_model
6342 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6343 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6345 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6352 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6353 if test "${enable_c_mbchar+set}" = set; then
6354 enableval="$enable_c_mbchar"
6356 case "$enableval" in
6357 yes|no) ;;
6358 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6359 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6360 { (exit 1); exit 1; }; } ;;
6361 esac
6363 else
6364 enable_c_mbchar=yes
6367 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6371 # Check whether --enable-c99 or --disable-c99 was given.
6372 if test "${enable_c99+set}" = set; then
6373 enableval="$enable_c99"
6375 case "$enableval" in
6376 yes|no) ;;
6377 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6378 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6379 { (exit 1); exit 1; }; } ;;
6380 esac
6382 else
6383 enable_c99=yes
6389 ac_ext=cc
6390 ac_cpp='$CXXCPP $CPPFLAGS'
6391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6396 # Check for the existence of <math.h> functions used if C99 is enabled.
6397 ac_c99_math=yes;
6398 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6399 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 #include <math.h>
6408 main ()
6410 fpclassify(0.0);
6412 return 0;
6414 _ACEOF
6415 rm -f conftest.$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_cxx_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_c99_math=no
6444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 #include <math.h>
6453 main ()
6455 isfinite(0.0);
6457 return 0;
6459 _ACEOF
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_cxx_werror_flag"
6470 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 ac_c99_math=no
6489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <math.h>
6498 main ()
6500 isinf(0.0);
6502 return 0;
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_cxx_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest.$ac_objext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_c99_math=no
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 #include <math.h>
6543 main ()
6545 isnan(0.0);
6547 return 0;
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_cxx_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 ac_c99_math=no
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <math.h>
6588 main ()
6590 isnormal(0.0);
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597 (eval $ac_compile) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_cxx_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_c99_math=no
6624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <math.h>
6633 main ()
6635 signbit(0.0);
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_cxx_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_c99_math=no
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <math.h>
6678 main ()
6680 isgreater(0.0,0.0);
6682 return 0;
6684 _ACEOF
6685 rm -f conftest.$ac_objext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6687 (eval $ac_compile) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -z "$ac_cxx_werror_flag"
6695 || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest.$ac_objext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 ac_c99_math=no
6714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 #include <math.h>
6723 main ()
6725 isgreaterequal(0.0,0.0);
6727 return 0;
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732 (eval $ac_compile) 2>conftest.er1
6733 ac_status=$?
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -z "$ac_cxx_werror_flag"
6740 || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_c99_math=no
6759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <math.h>
6768 main ()
6770 isless(0.0,0.0);
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 (eval $ac_compile) 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try='test -z "$ac_cxx_werror_flag"
6785 || test ! -s conftest.err'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 (eval $ac_try) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try='test -s conftest.$ac_objext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_c99_math=no
6804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 #include <math.h>
6813 main ()
6815 islessequal(0.0,0.0);
6817 return 0;
6819 _ACEOF
6820 rm -f conftest.$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -z "$ac_cxx_werror_flag"
6830 || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest.$ac_objext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_c99_math=no
6849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <math.h>
6858 main ()
6860 islessgreater(0.0,0.0);
6862 return 0;
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867 (eval $ac_compile) 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -z "$ac_cxx_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest.$ac_objext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 ac_c99_math=no
6894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 #include <math.h>
6903 main ()
6905 isunordered(0.0,0.0);
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -z "$ac_cxx_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_c99_math=no
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6941 echo "${ECHO_T}$ac_c99_math" >&6
6943 if test x"$ac_c99_math" = x"yes"; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define _GLIBCXX_USE_C99_MATH 1
6946 _ACEOF
6950 # Check for the existence in <stdio.h> of vscanf, et. al.
6951 ac_c99_stdio=yes;
6952 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6953 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <stdio.h>
6962 main ()
6964 snprintf("12", 0, "%i");
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_cxx_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_c99_stdio=no
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 #include <stdio.h>
7006 #include <stdarg.h>
7007 void foo(char* fmt, ...)
7008 {va_list args; va_start(args, fmt);
7009 vfscanf(stderr, "%i", args);}
7011 main ()
7015 return 0;
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020 (eval $ac_compile) 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -z "$ac_cxx_werror_flag"
7028 || test ! -s conftest.err'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; } &&
7034 { ac_try='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_c99_stdio=no
7047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 #include <stdio.h>
7055 #include <stdarg.h>
7056 void foo(char* fmt, ...)
7057 {va_list args; va_start(args, fmt);
7058 vscanf("%i", args);}
7060 main ()
7064 return 0;
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_cxx_werror_flag"
7077 || test ! -s conftest.err'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; } &&
7083 { ac_try='test -s conftest.$ac_objext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_c99_stdio=no
7096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #include <stdio.h>
7104 #include <stdarg.h>
7105 void foo(char* fmt, ...)
7106 {va_list args; va_start(args, fmt);
7107 vsnprintf(fmt, 0, "%i", args);}
7109 main ()
7113 return 0;
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_cxx_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_c99_stdio=no
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 #include <stdio.h>
7153 #include <stdarg.h>
7154 void foo(char* fmt, ...)
7155 {va_list args; va_start(args, fmt);
7156 vsscanf(fmt, "%i", args);}
7158 main ()
7162 return 0;
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167 (eval $ac_compile) 2>conftest.er1
7168 ac_status=$?
7169 grep -v '^ *+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } &&
7174 { ac_try='test -z "$ac_cxx_werror_flag"
7175 || test ! -s conftest.err'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 (eval $ac_try) 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; } &&
7181 { ac_try='test -s conftest.$ac_objext'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; }; then
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7192 ac_c99_stdio=no
7194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7195 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7196 echo "${ECHO_T}$ac_c99_stdio" >&6
7198 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7199 ac_c99_stdlib=yes;
7200 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7201 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7202 if test "${ac_c99_lldiv_t+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <stdlib.h>
7214 main ()
7216 lldiv_t mydivt;
7218 return 0;
7220 _ACEOF
7221 rm -f conftest.$ac_objext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223 (eval $ac_compile) 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } &&
7230 { ac_try='test -z "$ac_cxx_werror_flag"
7231 || test ! -s conftest.err'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; } &&
7237 { ac_try='test -s conftest.$ac_objext'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 (eval $ac_try) 2>&5
7240 ac_status=$?
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 ac_c99_lldiv_t=yes
7244 else
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7248 ac_c99_lldiv_t=no
7250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7254 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7255 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7257 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7258 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <stdlib.h>
7267 main ()
7269 char* tmp; strtof("gnu", &tmp);
7271 return 0;
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7276 (eval $ac_compile) 2>conftest.er1
7277 ac_status=$?
7278 grep -v '^ *+' conftest.er1 >conftest.err
7279 rm -f conftest.er1
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -z "$ac_cxx_werror_flag"
7284 || test ! -s conftest.err'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; } &&
7290 { ac_try='test -s conftest.$ac_objext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 (eval $ac_try) 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 ac_c99_stdlib=no
7303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 #include <stdlib.h>
7312 main ()
7314 char* tmp; strtold("gnu", &tmp);
7316 return 0;
7318 _ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_cxx_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 ac_c99_stdlib=no
7348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349 cat >conftest.$ac_ext <<_ACEOF
7350 /* confdefs.h. */
7351 _ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h. */
7355 #include <stdlib.h>
7357 main ()
7359 llabs(10);
7361 return 0;
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366 (eval $ac_compile) 2>conftest.er1
7367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -z "$ac_cxx_werror_flag"
7374 || test ! -s conftest.err'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 (eval $ac_try) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; } &&
7380 { ac_try='test -s conftest.$ac_objext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7387 else
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7391 ac_c99_stdlib=no
7393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <stdlib.h>
7402 main ()
7404 lldiv(10,1);
7406 return 0;
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try='test -z "$ac_cxx_werror_flag"
7419 || test ! -s conftest.err'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; } &&
7425 { ac_try='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 ac_c99_stdlib=no
7438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <stdlib.h>
7447 main ()
7449 atoll("10");
7451 return 0;
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_cxx_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_c99_stdlib=no
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 #include <stdlib.h>
7492 main ()
7494 _Exit(0);
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_cxx_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest.$ac_objext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7522 else
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_c99_stdlib=no
7528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7529 if test x"$ac_c99_lldiv_t" = x"no"; then
7530 ac_c99_stdlib=no;
7532 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7533 echo "${ECHO_T}$ac_c99_stdlib" >&6
7535 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7536 # XXX the wchar.h checks should be rolled into the general C99 bits.
7537 ac_c99_wchar=yes;
7538 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7539 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7540 cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h. */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 #include <wchar.h>
7548 main ()
7550 wcstold(L"10.0", NULL);
7552 return 0;
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_cxx_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_c99_wchar=no
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 #include <wchar.h>
7593 main ()
7595 wcstoll(L"10", NULL, 10);
7597 return 0;
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_cxx_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7623 else
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 ac_c99_wchar=no
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 #include <wchar.h>
7638 main ()
7640 wcstoull(L"10", NULL, 10);
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -z "$ac_cxx_werror_flag"
7655 || test ! -s conftest.err'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7668 else
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7672 ac_c99_wchar=no
7674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7676 echo "${ECHO_T}$ac_c99_wchar" >&6
7678 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7679 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7680 if test x"$ac_c99_math" = x"no" ||
7681 test x"$ac_c99_stdio" = x"no" ||
7682 test x"$ac_c99_stdlib" = x"no" ||
7683 test x"$ac_c99_wchar" = x"no"; then
7684 enable_c99=no;
7686 echo "$as_me:$LINENO: result: $enable_c99" >&5
7687 echo "${ECHO_T}$enable_c99" >&6
7689 if test x"$ac_99_math" = x"yes"; then
7690 cat >>confdefs.h <<\_ACEOF
7691 #define _GLIBCXX_USE_C99_MATH 1
7692 _ACEOF
7696 # Option parsed, now set things appropriately
7697 if test x"$enable_c99" = x"yes"; then
7698 cat >>confdefs.h <<\_ACEOF
7699 #define _GLIBCXX_USE_C99 1
7700 _ACEOF
7704 ac_ext=c
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712 # Check whether --enable-long-long or --disable-long-long was given.
7713 if test "${enable_long_long+set}" = set; then
7714 enableval="$enable_long_long"
7716 case "$enableval" in
7717 yes|no) ;;
7718 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7719 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7720 { (exit 1); exit 1; }; } ;;
7721 esac
7723 else
7724 enable_long_long=yes
7730 ac_ext=cc
7731 ac_cpp='$CXXCPP $CPPFLAGS'
7732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7737 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7738 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7739 # iostreams require strtoll, strtoull to compile
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <stdlib.h>
7748 main ()
7750 char* tmp; strtoll("gnu", &tmp, 10);
7752 return 0;
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>conftest.er1
7758 ac_status=$?
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_cxx_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 (eval $ac_try) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 enable_long_long=no
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <stdlib.h>
7793 main ()
7795 char* tmp; strtoull("gnu", &tmp, 10);
7797 return 0;
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802 (eval $ac_compile) 2>conftest.er1
7803 ac_status=$?
7804 grep -v '^ *+' conftest.er1 >conftest.err
7805 rm -f conftest.er1
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } &&
7809 { ac_try='test -z "$ac_cxx_werror_flag"
7810 || test ! -s conftest.err'
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 (eval $ac_try) 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 enable_long_long=no
7829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7831 # Option parsed, now set things appropriately
7832 if test $enable_long_long = yes; then
7833 cat >>confdefs.h <<\_ACEOF
7834 #define _GLIBCXX_USE_LONG_LONG 1
7835 _ACEOF
7838 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7839 echo "${ECHO_T}$enable_long_long" >&6
7841 ac_ext=c
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7850 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7851 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7852 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7853 echo "${ECHO_T}$target_thread_file" >&6
7855 if test $target_thread_file != single; then
7856 cat >>confdefs.h <<\_ACEOF
7857 #define HAVE_GTHR_DEFAULT 1
7858 _ACEOF
7862 glibcxx_thread_h=gthr-$target_thread_file.h
7866 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7867 if test "${enable_concept_checks+set}" = set; then
7868 enableval="$enable_concept_checks"
7870 case "$enableval" in
7871 yes|no) ;;
7872 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7873 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7874 { (exit 1); exit 1; }; } ;;
7875 esac
7877 else
7878 enable_concept_checks=no
7881 if test $enable_concept_checks = yes; then
7882 cat >>confdefs.h <<\_ACEOF
7883 #define _GLIBCXX_CONCEPT_CHECKS 1
7884 _ACEOF
7889 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7890 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7891 enableval="$enable_libstdcxx_debug_flags"
7892 case "x$enable_libstdcxx_debug_flags" in
7893 xno | x) enable_libstdcxx_debug_flags= ;;
7894 x-*) ;;
7895 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7896 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7897 { (exit 1); exit 1; }; } ;;
7898 esac
7899 else
7900 enable_libstdcxx_debug_flags="-g3 -O0"
7904 # Option parsed, now set things appropriately
7905 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7908 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7909 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7912 echo "$as_me:$LINENO: checking for additional debug build" >&5
7913 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7914 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7915 if test "${enable_libstdcxx_debug+set}" = set; then
7916 enableval="$enable_libstdcxx_debug"
7918 case "$enableval" in
7919 yes|no) ;;
7920 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7921 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7922 { (exit 1); exit 1; }; } ;;
7923 esac
7925 else
7926 enable_libstdcxx_debug=no
7929 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7930 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7933 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7934 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7935 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7936 if test "${enable_cxx_flags+set}" = set; then
7937 enableval="$enable_cxx_flags"
7938 case "x$enable_cxx_flags" in
7939 xno | x) enable_cxx_flags= ;;
7940 x-*) ;;
7941 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7942 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7943 { (exit 1); exit 1; }; } ;;
7944 esac
7945 else
7946 enable_cxx_flags=
7950 # Run through flags (either default or command-line) and set anything
7951 # extra (e.g., #defines) that must accompany particular g++ options.
7952 if test -n "$enable_cxx_flags"; then
7953 for f in $enable_cxx_flags; do
7954 case "$f" in
7955 -fhonor-std) ;;
7956 -*) ;;
7957 *) # and we're trying to pass /what/ exactly?
7958 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7959 echo "$as_me: error: compiler flags start with a -" >&2;}
7960 { (exit 1); exit 1; }; } ;;
7961 esac
7962 done
7965 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7966 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7967 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7971 # No surprises, no surprises...
7972 if test $atomicity_dir = cpu/generic ; then
7973 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7974 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7975 if test $target_thread_file = single; then
7976 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7977 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7978 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7979 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7980 else
7981 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7982 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7983 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7984 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7989 if $GLIBCXX_IS_NATIVE; then
7991 # We can do more elaborate tests that assume a working linker.
7992 CANADIAN=no
7994 # Check for available headers.
8008 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8009 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
8010 sys/types.h
8012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8014 echo "$as_me:$LINENO: checking for $ac_header" >&5
8015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8021 else
8022 # Is the header compilable?
8023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 $ac_includes_default
8032 #include <$ac_header>
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8036 (eval $ac_compile) 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -z "$ac_c_werror_flag"
8044 || test ! -s conftest.err'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest.$ac_objext'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 ac_header_compiler=yes
8057 else
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_header_compiler=no
8063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8065 echo "${ECHO_T}$ac_header_compiler" >&6
8067 # Is the header present?
8068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8070 cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h. */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076 #include <$ac_header>
8077 _ACEOF
8078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } >/dev/null; then
8086 if test -s conftest.err; then
8087 ac_cpp_err=$ac_c_preproc_warn_flag
8088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8089 else
8090 ac_cpp_err=
8092 else
8093 ac_cpp_err=yes
8095 if test -z "$ac_cpp_err"; then
8096 ac_header_preproc=yes
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_header_preproc=no
8103 rm -f conftest.err conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105 echo "${ECHO_T}$ac_header_preproc" >&6
8107 # So? What about this header?
8108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8109 yes:no: )
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8114 ac_header_preproc=yes
8116 no:yes:* )
8117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8130 cat <<\_ASBOX
8131 ## ----------------------------------------- ##
8132 ## Report this to the package-unused lists. ##
8133 ## ----------------------------------------- ##
8134 _ASBOX
8136 sed "s/^/$as_me: WARNING: /" >&2
8138 esac
8139 echo "$as_me:$LINENO: checking for $ac_header" >&5
8140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 eval "$as_ac_Header=\$ac_header_preproc"
8146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151 cat >>confdefs.h <<_ACEOF
8152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8153 _ACEOF
8157 done
8161 # All these tests are for C++; save the language and the compiler flags.
8162 # The CXXFLAGS thing is suspicious, but based on similar bits previously
8163 # found in GLIBCXX_CONFIGURE.
8166 ac_ext=cc
8167 ac_cpp='$CXXCPP $CPPFLAGS'
8168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8172 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8173 ac_save_CXXFLAGS="$CXXFLAGS"
8175 # Check for maintainer-mode bits.
8176 if test x"$USE_MAINTAINER_MODE" = xno; then
8177 WERROR=''
8178 else
8179 WERROR='-Werror'
8182 # Check for -ffunction-sections -fdata-sections
8183 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8184 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8185 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8194 main ()
8196 int foo;
8198 return 0;
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_cxx_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest.$ac_objext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_fdsections=yes
8224 else
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_fdsections=no
8230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8231 if test "$ac_test_CXXFLAGS" = set; then
8232 CXXFLAGS="$ac_save_CXXFLAGS"
8233 else
8234 # this is the suspicious part
8235 CXXFLAGS=''
8237 if test x"$ac_fdsections" = x"yes"; then
8238 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8240 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8241 echo "${ECHO_T}$ac_fdsections" >&6
8243 ac_ext=c
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253 # If we're not using GNU ld, then there's no point in even trying these
8254 # tests. Check for that first. We should have already tested for gld
8255 # by now (in libtool), but require it now just to be safe...
8256 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8257 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8261 # The name set by libtool depends on the version of libtool. Shame on us
8262 # for depending on an impl detail, but c'est la vie. Older versions used
8263 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8264 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8265 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8266 # set (hence we're using an older libtool), then set it.
8267 if test x${with_gnu_ld+set} != xset; then
8268 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8269 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8270 with_gnu_ld=no
8271 else
8272 with_gnu_ld=$ac_cv_prog_gnu_ld
8276 # Start by getting the version number. I think the libtool test already
8277 # does some of this, but throws away the result.
8279 ldver=`$LD --version 2>/dev/null | head -1 | \
8280 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8282 glibcxx_gnu_ld_version=`echo $ldver | \
8283 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8285 # Set --gc-sections.
8286 if test "$with_gnu_ld" = "notbroken"; then
8287 # GNU ld it is! Joy and bunny rabbits!
8289 # All these tests are for C++; save the language and the compiler flags.
8290 # Need to do this so that g++ won't try to link in libstdc++
8291 ac_test_CFLAGS="${CFLAGS+set}"
8292 ac_save_CFLAGS="$CFLAGS"
8293 CFLAGS='-x c++ -Wl,--gc-sections'
8295 # Check for -Wl,--gc-sections
8296 # XXX This test is broken at the moment, as symbols required for linking
8297 # are now in libsupc++ (not built yet). In addition, this test has
8298 # cored on solaris in the past. In addition, --gc-sections doesn't
8299 # really work at the moment (keeps on discarding used sections, first
8300 # .eh_frame and now some of the glibc sections for iconv).
8301 # Bzzzzt. Thanks for playing, maybe next time.
8302 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8303 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8304 if test "$cross_compiling" = yes; then
8305 ac_sectionLDflags=yes
8306 else
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h. */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8314 int main(void)
8316 try { throw 1; }
8317 catch (...) { };
8318 return 0;
8321 _ACEOF
8322 rm -f conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 ac_sectionLDflags=yes
8334 else
8335 echo "$as_me: program exited with status $ac_status" >&5
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ( exit $ac_status )
8340 ac_sectionLDflags=no
8342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8344 if test "$ac_test_CFLAGS" = set; then
8345 CFLAGS="$ac_save_CFLAGS"
8346 else
8347 # this is the suspicious part
8348 CFLAGS=''
8350 if test "$ac_sectionLDflags" = "yes"; then
8351 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8353 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8354 echo "${ECHO_T}$ac_sectionLDflags" >&6
8357 # Set linker optimization flags.
8358 if test x"$with_gnu_ld" = x"yes"; then
8359 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8366 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8367 ac_save_CXXFLAGS="$CXXFLAGS"
8368 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8370 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8371 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8372 if test "${ac_cv_lib_m_sin+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 ac_check_lib_save_LIBS=$LIBS
8376 LIBS="-lm $LIBS"
8377 if test x$gcc_no_link = xyes; then
8378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8380 { (exit 1); exit 1; }; }
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8389 /* Override any gcc2 internal prototype to avoid an error. */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8395 char sin ();
8397 main ()
8399 sin ();
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_lib_m_sin=yes
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 ac_cv_lib_m_sin=no
8433 rm -f conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 LIBS=$ac_check_lib_save_LIBS
8437 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8438 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8439 if test $ac_cv_lib_m_sin = yes; then
8440 libm="-lm"
8443 ac_save_LIBS="$LIBS"
8444 LIBS="$LIBS $libm"
8448 echo "$as_me:$LINENO: checking for isinf declaration" >&5
8449 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8450 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8451 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8457 ac_ext=cc
8458 ac_cpp='$CXXCPP $CPPFLAGS'
8459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h. */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 #include <math.h>
8470 #ifdef HAVE_IEEEFP_H
8471 #include <ieeefp.h>
8472 #endif
8475 main ()
8477 isinf(0);
8479 return 0;
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_cxx_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 glibcxx_cv_func_isinf_use=yes
8505 else
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 glibcxx_cv_func_isinf_use=no
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 ac_ext=c
8513 ac_cpp='$CPP $CPPFLAGS'
8514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8523 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8525 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8527 for ac_func in isinf
8529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8530 echo "$as_me:$LINENO: checking for $ac_func" >&5
8531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8532 if eval "test \"\${$as_ac_var+set}\" = set"; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 if test x$gcc_no_link = xyes; then
8536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8538 { (exit 1); exit 1; }; }
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8548 #define $ac_func innocuous_$ac_func
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char $ac_func (); below.
8552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553 <limits.h> exists even on freestanding compilers. */
8555 #ifdef __STDC__
8556 # include <limits.h>
8557 #else
8558 # include <assert.h>
8559 #endif
8561 #undef $ac_func
8563 /* Override any gcc2 internal prototype to avoid an error. */
8564 #ifdef __cplusplus
8565 extern "C"
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570 char $ac_func ();
8571 /* The GNU C library defines this for functions which it implements
8572 to always fail with ENOSYS. Some functions are actually named
8573 something starting with __ and the normal name is an alias. */
8574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8575 choke me
8576 #else
8577 char (*f) () = $ac_func;
8578 #endif
8579 #ifdef __cplusplus
8581 #endif
8584 main ()
8586 return f != $ac_func;
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 eval "$as_ac_var=yes"
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 eval "$as_ac_var=no"
8620 rm -f conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8625 if test `eval echo '${'$as_ac_var'}'` = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8628 _ACEOF
8631 done
8633 else
8635 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8636 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8637 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8638 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8644 ac_ext=cc
8645 ac_cpp='$CXXCPP $CPPFLAGS'
8646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <math.h>
8657 #ifdef HAVE_IEEEFP_H
8658 #include <ieeefp.h>
8659 #endif
8662 main ()
8664 _isinf(0);
8666 return 0;
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_cxx_werror_flag"
8679 || test ! -s conftest.err'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; } &&
8685 { ac_try='test -s conftest.$ac_objext'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 glibcxx_cv_func__isinf_use=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 glibcxx_cv_func__isinf_use=no
8698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8699 ac_ext=c
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8710 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8712 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8714 for ac_func in _isinf
8716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8717 echo "$as_me:$LINENO: checking for $ac_func" >&5
8718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8719 if eval "test \"\${$as_ac_var+set}\" = set"; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722 if test x$gcc_no_link = xyes; then
8723 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8725 { (exit 1); exit 1; }; }
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8735 #define $ac_func innocuous_$ac_func
8737 /* System header to define __stub macros and hopefully few prototypes,
8738 which can conflict with char $ac_func (); below.
8739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8740 <limits.h> exists even on freestanding compilers. */
8742 #ifdef __STDC__
8743 # include <limits.h>
8744 #else
8745 # include <assert.h>
8746 #endif
8748 #undef $ac_func
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 #ifdef __cplusplus
8752 extern "C"
8754 #endif
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8757 char $ac_func ();
8758 /* The GNU C library defines this for functions which it implements
8759 to always fail with ENOSYS. Some functions are actually named
8760 something starting with __ and the normal name is an alias. */
8761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8762 choke me
8763 #else
8764 char (*f) () = $ac_func;
8765 #endif
8766 #ifdef __cplusplus
8768 #endif
8771 main ()
8773 return f != $ac_func;
8775 return 0;
8777 _ACEOF
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try='test -z "$ac_c_werror_flag"
8788 || test ! -s conftest.err'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; } &&
8794 { ac_try='test -s conftest$ac_exeext'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 eval "$as_ac_var=yes"
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 eval "$as_ac_var=no"
8807 rm -f conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8812 if test `eval echo '${'$as_ac_var'}'` = yes; then
8813 cat >>confdefs.h <<_ACEOF
8814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8815 _ACEOF
8818 done
8825 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8826 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8827 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8828 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8834 ac_ext=cc
8835 ac_cpp='$CXXCPP $CPPFLAGS'
8836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 #include <math.h>
8847 #ifdef HAVE_IEEEFP_H
8848 #include <ieeefp.h>
8849 #endif
8852 main ()
8854 isnan(0);
8856 return 0;
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_cxx_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 glibcxx_cv_func_isnan_use=yes
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 glibcxx_cv_func_isnan_use=no
8888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8889 ac_ext=c
8890 ac_cpp='$CPP $CPPFLAGS'
8891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8899 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8900 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8902 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8904 for ac_func in isnan
8906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8907 echo "$as_me:$LINENO: checking for $ac_func" >&5
8908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8909 if eval "test \"\${$as_ac_var+set}\" = set"; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 if test x$gcc_no_link = xyes; then
8913 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8915 { (exit 1); exit 1; }; }
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8925 #define $ac_func innocuous_$ac_func
8927 /* System header to define __stub macros and hopefully few prototypes,
8928 which can conflict with char $ac_func (); below.
8929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8930 <limits.h> exists even on freestanding compilers. */
8932 #ifdef __STDC__
8933 # include <limits.h>
8934 #else
8935 # include <assert.h>
8936 #endif
8938 #undef $ac_func
8940 /* Override any gcc2 internal prototype to avoid an error. */
8941 #ifdef __cplusplus
8942 extern "C"
8944 #endif
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8947 char $ac_func ();
8948 /* The GNU C library defines this for functions which it implements
8949 to always fail with ENOSYS. Some functions are actually named
8950 something starting with __ and the normal name is an alias. */
8951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8952 choke me
8953 #else
8954 char (*f) () = $ac_func;
8955 #endif
8956 #ifdef __cplusplus
8958 #endif
8961 main ()
8963 return f != $ac_func;
8965 return 0;
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -z "$ac_c_werror_flag"
8978 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 eval "$as_ac_var=yes"
8991 else
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 eval "$as_ac_var=no"
8997 rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
9000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9002 if test `eval echo '${'$as_ac_var'}'` = yes; then
9003 cat >>confdefs.h <<_ACEOF
9004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9005 _ACEOF
9008 done
9010 else
9012 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
9013 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
9014 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
9015 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 else
9021 ac_ext=cc
9022 ac_cpp='$CXXCPP $CPPFLAGS'
9023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 #include <math.h>
9034 #ifdef HAVE_IEEEFP_H
9035 #include <ieeefp.h>
9036 #endif
9039 main ()
9041 _isnan(0);
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_cxx_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 glibcxx_cv_func__isnan_use=yes
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 glibcxx_cv_func__isnan_use=no
9075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9076 ac_ext=c
9077 ac_cpp='$CPP $CPPFLAGS'
9078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9086 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
9087 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
9089 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
9091 for ac_func in _isnan
9093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9094 echo "$as_me:$LINENO: checking for $ac_func" >&5
9095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9096 if eval "test \"\${$as_ac_var+set}\" = set"; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 if test x$gcc_no_link = xyes; then
9100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9102 { (exit 1); exit 1; }; }
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9112 #define $ac_func innocuous_$ac_func
9114 /* System header to define __stub macros and hopefully few prototypes,
9115 which can conflict with char $ac_func (); below.
9116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9117 <limits.h> exists even on freestanding compilers. */
9119 #ifdef __STDC__
9120 # include <limits.h>
9121 #else
9122 # include <assert.h>
9123 #endif
9125 #undef $ac_func
9127 /* Override any gcc2 internal prototype to avoid an error. */
9128 #ifdef __cplusplus
9129 extern "C"
9131 #endif
9132 /* We use char because int might match the return type of a gcc2
9133 builtin and then its argument prototype would still apply. */
9134 char $ac_func ();
9135 /* The GNU C library defines this for functions which it implements
9136 to always fail with ENOSYS. Some functions are actually named
9137 something starting with __ and the normal name is an alias. */
9138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9139 choke me
9140 #else
9141 char (*f) () = $ac_func;
9142 #endif
9143 #ifdef __cplusplus
9145 #endif
9148 main ()
9150 return f != $ac_func;
9152 return 0;
9154 _ACEOF
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 eval "$as_ac_var=yes"
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 eval "$as_ac_var=no"
9184 rm -f conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9189 if test `eval echo '${'$as_ac_var'}'` = yes; then
9190 cat >>confdefs.h <<_ACEOF
9191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9192 _ACEOF
9195 done
9202 echo "$as_me:$LINENO: checking for finite declaration" >&5
9203 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9204 if test x${glibcxx_cv_func_finite_use+set} != xset; then
9205 if test "${glibcxx_cv_func_finite_use+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9211 ac_ext=cc
9212 ac_cpp='$CXXCPP $CPPFLAGS'
9213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <math.h>
9224 #ifdef HAVE_IEEEFP_H
9225 #include <ieeefp.h>
9226 #endif
9229 main ()
9231 finite(0);
9233 return 0;
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238 (eval $ac_compile) 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_cxx_werror_flag"
9246 || test ! -s conftest.err'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 (eval $ac_try) 2>&5
9249 ac_status=$?
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest.$ac_objext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 glibcxx_cv_func_finite_use=yes
9259 else
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 glibcxx_cv_func_finite_use=no
9265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9266 ac_ext=c
9267 ac_cpp='$CPP $CPPFLAGS'
9268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9276 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9277 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9279 if test x$glibcxx_cv_func_finite_use = x"yes"; then
9281 for ac_func in finite
9283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9284 echo "$as_me:$LINENO: checking for $ac_func" >&5
9285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_var+set}\" = set"; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289 if test x$gcc_no_link = xyes; then
9290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9292 { (exit 1); exit 1; }; }
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9302 #define $ac_func innocuous_$ac_func
9304 /* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char $ac_func (); below.
9306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307 <limits.h> exists even on freestanding compilers. */
9309 #ifdef __STDC__
9310 # include <limits.h>
9311 #else
9312 # include <assert.h>
9313 #endif
9315 #undef $ac_func
9317 /* Override any gcc2 internal prototype to avoid an error. */
9318 #ifdef __cplusplus
9319 extern "C"
9321 #endif
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9324 char $ac_func ();
9325 /* The GNU C library defines this for functions which it implements
9326 to always fail with ENOSYS. Some functions are actually named
9327 something starting with __ and the normal name is an alias. */
9328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9329 choke me
9330 #else
9331 char (*f) () = $ac_func;
9332 #endif
9333 #ifdef __cplusplus
9335 #endif
9338 main ()
9340 return f != $ac_func;
9342 return 0;
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347 (eval $ac_link) 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -z "$ac_c_werror_flag"
9355 || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 eval "$as_ac_var=yes"
9368 else
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 eval "$as_ac_var=no"
9374 rm -f conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9379 if test `eval echo '${'$as_ac_var'}'` = yes; then
9380 cat >>confdefs.h <<_ACEOF
9381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9382 _ACEOF
9385 done
9387 else
9389 echo "$as_me:$LINENO: checking for _finite declaration" >&5
9390 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9391 if test x${glibcxx_cv_func__finite_use+set} != xset; then
9392 if test "${glibcxx_cv_func__finite_use+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9398 ac_ext=cc
9399 ac_cpp='$CXXCPP $CPPFLAGS'
9400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 #include <math.h>
9411 #ifdef HAVE_IEEEFP_H
9412 #include <ieeefp.h>
9413 #endif
9416 main ()
9418 _finite(0);
9420 return 0;
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425 (eval $ac_compile) 2>conftest.er1
9426 ac_status=$?
9427 grep -v '^ *+' conftest.er1 >conftest.err
9428 rm -f conftest.er1
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -z "$ac_cxx_werror_flag"
9433 || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest.$ac_objext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 glibcxx_cv_func__finite_use=yes
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 glibcxx_cv_func__finite_use=no
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453 ac_ext=c
9454 ac_cpp='$CPP $CPPFLAGS'
9455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9463 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9464 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9466 if test x$glibcxx_cv_func__finite_use = x"yes"; then
9468 for ac_func in _finite
9470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9471 echo "$as_me:$LINENO: checking for $ac_func" >&5
9472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9473 if eval "test \"\${$as_ac_var+set}\" = set"; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 if test x$gcc_no_link = xyes; then
9477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9479 { (exit 1); exit 1; }; }
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9489 #define $ac_func innocuous_$ac_func
9491 /* System header to define __stub macros and hopefully few prototypes,
9492 which can conflict with char $ac_func (); below.
9493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9494 <limits.h> exists even on freestanding compilers. */
9496 #ifdef __STDC__
9497 # include <limits.h>
9498 #else
9499 # include <assert.h>
9500 #endif
9502 #undef $ac_func
9504 /* Override any gcc2 internal prototype to avoid an error. */
9505 #ifdef __cplusplus
9506 extern "C"
9508 #endif
9509 /* We use char because int might match the return type of a gcc2
9510 builtin and then its argument prototype would still apply. */
9511 char $ac_func ();
9512 /* The GNU C library defines this for functions which it implements
9513 to always fail with ENOSYS. Some functions are actually named
9514 something starting with __ and the normal name is an alias. */
9515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9516 choke me
9517 #else
9518 char (*f) () = $ac_func;
9519 #endif
9520 #ifdef __cplusplus
9522 #endif
9525 main ()
9527 return f != $ac_func;
9529 return 0;
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534 (eval $ac_link) 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag"
9542 || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 eval "$as_ac_var=yes"
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 eval "$as_ac_var=no"
9561 rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9566 if test `eval echo '${'$as_ac_var'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569 _ACEOF
9572 done
9579 echo "$as_me:$LINENO: checking for copysign declaration" >&5
9580 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9581 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9582 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9588 ac_ext=cc
9589 ac_cpp='$CXXCPP $CPPFLAGS'
9590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <math.h>
9602 main ()
9604 copysign(0, 0);
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>conftest.er1
9612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_cxx_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 glibcxx_cv_func_copysign_use=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 glibcxx_cv_func_copysign_use=no
9638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639 ac_ext=c
9640 ac_cpp='$CPP $CPPFLAGS'
9641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9649 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9650 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9652 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9654 for ac_func in copysign
9656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9657 echo "$as_me:$LINENO: checking for $ac_func" >&5
9658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9659 if eval "test \"\${$as_ac_var+set}\" = set"; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 if test x$gcc_no_link = xyes; then
9663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9665 { (exit 1); exit 1; }; }
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9675 #define $ac_func innocuous_$ac_func
9677 /* System header to define __stub macros and hopefully few prototypes,
9678 which can conflict with char $ac_func (); below.
9679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680 <limits.h> exists even on freestanding compilers. */
9682 #ifdef __STDC__
9683 # include <limits.h>
9684 #else
9685 # include <assert.h>
9686 #endif
9688 #undef $ac_func
9690 /* Override any gcc2 internal prototype to avoid an error. */
9691 #ifdef __cplusplus
9692 extern "C"
9694 #endif
9695 /* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9697 char $ac_func ();
9698 /* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9702 choke me
9703 #else
9704 char (*f) () = $ac_func;
9705 #endif
9706 #ifdef __cplusplus
9708 #endif
9711 main ()
9713 return f != $ac_func;
9715 return 0;
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 eval "$as_ac_var=yes"
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 eval "$as_ac_var=no"
9747 rm -f conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9752 if test `eval echo '${'$as_ac_var'}'` = yes; then
9753 cat >>confdefs.h <<_ACEOF
9754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9755 _ACEOF
9758 done
9760 else
9762 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9763 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9764 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9765 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9771 ac_ext=cc
9772 ac_cpp='$CXXCPP $CPPFLAGS'
9773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 #include <math.h>
9785 main ()
9787 _copysign(0, 0);
9789 return 0;
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794 (eval $ac_compile) 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_cxx_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 (eval $ac_try) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest.$ac_objext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 glibcxx_cv_func__copysign_use=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 glibcxx_cv_func__copysign_use=no
9821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822 ac_ext=c
9823 ac_cpp='$CPP $CPPFLAGS'
9824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9832 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9833 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9835 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9837 for ac_func in _copysign
9839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9840 echo "$as_me:$LINENO: checking for $ac_func" >&5
9841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9842 if eval "test \"\${$as_ac_var+set}\" = set"; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 if test x$gcc_no_link = xyes; then
9846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9848 { (exit 1); exit 1; }; }
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h. */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define $ac_func innocuous_$ac_func
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char $ac_func (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9865 #ifdef __STDC__
9866 # include <limits.h>
9867 #else
9868 # include <assert.h>
9869 #endif
9871 #undef $ac_func
9873 /* Override any gcc2 internal prototype to avoid an error. */
9874 #ifdef __cplusplus
9875 extern "C"
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880 char $ac_func ();
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9885 choke me
9886 #else
9887 char (*f) () = $ac_func;
9888 #endif
9889 #ifdef __cplusplus
9891 #endif
9894 main ()
9896 return f != $ac_func;
9898 return 0;
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 eval "$as_ac_var=yes"
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 eval "$as_ac_var=no"
9930 rm -f conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9935 if test `eval echo '${'$as_ac_var'}'` = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 _ACEOF
9941 done
9948 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9949 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9950 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9951 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9957 ac_ext=cc
9958 ac_cpp='$CXXCPP $CPPFLAGS'
9959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 #include <math.h>
9971 main ()
9973 sincos(0, 0, 0);
9975 return 0;
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980 (eval $ac_compile) 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_cxx_werror_flag"
9988 || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 (eval $ac_try) 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest.$ac_objext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 glibcxx_cv_func_sincos_use=yes
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 glibcxx_cv_func_sincos_use=no
10007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10008 ac_ext=c
10009 ac_cpp='$CPP $CPPFLAGS'
10010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10018 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
10019 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
10021 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
10023 for ac_func in sincos
10025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10026 echo "$as_me:$LINENO: checking for $ac_func" >&5
10027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10028 if eval "test \"\${$as_ac_var+set}\" = set"; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 if test x$gcc_no_link = xyes; then
10032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10034 { (exit 1); exit 1; }; }
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10044 #define $ac_func innocuous_$ac_func
10046 /* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char $ac_func (); below.
10048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10049 <limits.h> exists even on freestanding compilers. */
10051 #ifdef __STDC__
10052 # include <limits.h>
10053 #else
10054 # include <assert.h>
10055 #endif
10057 #undef $ac_func
10059 /* Override any gcc2 internal prototype to avoid an error. */
10060 #ifdef __cplusplus
10061 extern "C"
10063 #endif
10064 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10066 char $ac_func ();
10067 /* The GNU C library defines this for functions which it implements
10068 to always fail with ENOSYS. Some functions are actually named
10069 something starting with __ and the normal name is an alias. */
10070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10071 choke me
10072 #else
10073 char (*f) () = $ac_func;
10074 #endif
10075 #ifdef __cplusplus
10077 #endif
10080 main ()
10082 return f != $ac_func;
10084 return 0;
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 eval "$as_ac_var=yes"
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 eval "$as_ac_var=no"
10116 rm -f conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10121 if test `eval echo '${'$as_ac_var'}'` = yes; then
10122 cat >>confdefs.h <<_ACEOF
10123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10124 _ACEOF
10127 done
10129 else
10131 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
10132 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
10133 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
10134 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10140 ac_ext=cc
10141 ac_cpp='$CXXCPP $CPPFLAGS'
10142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h. */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 #include <math.h>
10154 main ()
10156 _sincos(0, 0, 0);
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163 (eval $ac_compile) 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -z "$ac_cxx_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 glibcxx_cv_func__sincos_use=yes
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 glibcxx_cv_func__sincos_use=no
10190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10191 ac_ext=c
10192 ac_cpp='$CPP $CPPFLAGS'
10193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10201 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10202 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10204 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10206 for ac_func in _sincos
10208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10209 echo "$as_me:$LINENO: checking for $ac_func" >&5
10210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10211 if eval "test \"\${$as_ac_var+set}\" = set"; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214 if test x$gcc_no_link = xyes; then
10215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10217 { (exit 1); exit 1; }; }
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10227 #define $ac_func innocuous_$ac_func
10229 /* System header to define __stub macros and hopefully few prototypes,
10230 which can conflict with char $ac_func (); below.
10231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10232 <limits.h> exists even on freestanding compilers. */
10234 #ifdef __STDC__
10235 # include <limits.h>
10236 #else
10237 # include <assert.h>
10238 #endif
10240 #undef $ac_func
10242 /* Override any gcc2 internal prototype to avoid an error. */
10243 #ifdef __cplusplus
10244 extern "C"
10246 #endif
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10249 char $ac_func ();
10250 /* The GNU C library defines this for functions which it implements
10251 to always fail with ENOSYS. Some functions are actually named
10252 something starting with __ and the normal name is an alias. */
10253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10254 choke me
10255 #else
10256 char (*f) () = $ac_func;
10257 #endif
10258 #ifdef __cplusplus
10260 #endif
10263 main ()
10265 return f != $ac_func;
10267 return 0;
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest$ac_exeext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 eval "$as_ac_var=yes"
10293 else
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 eval "$as_ac_var=no"
10299 rm -f conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10304 if test `eval echo '${'$as_ac_var'}'` = yes; then
10305 cat >>confdefs.h <<_ACEOF
10306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10307 _ACEOF
10310 done
10317 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10318 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10319 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10320 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10326 ac_ext=cc
10327 ac_cpp='$CXXCPP $CPPFLAGS'
10328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <math.h>
10339 #ifdef HAVE_IEEEFP_H
10340 #include <ieeefp.h>
10341 #endif
10344 main ()
10346 fpclass(0);
10348 return 0;
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
10360 { ac_try='test -z "$ac_cxx_werror_flag"
10361 || test ! -s conftest.err'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 glibcxx_cv_func_fpclass_use=yes
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 glibcxx_cv_func_fpclass_use=no
10380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381 ac_ext=c
10382 ac_cpp='$CPP $CPPFLAGS'
10383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10391 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10392 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10394 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10396 for ac_func in fpclass
10398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10399 echo "$as_me:$LINENO: checking for $ac_func" >&5
10400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_var+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 if test x$gcc_no_link = xyes; then
10405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10407 { (exit 1); exit 1; }; }
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10417 #define $ac_func innocuous_$ac_func
10419 /* System header to define __stub macros and hopefully few prototypes,
10420 which can conflict with char $ac_func (); below.
10421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422 <limits.h> exists even on freestanding compilers. */
10424 #ifdef __STDC__
10425 # include <limits.h>
10426 #else
10427 # include <assert.h>
10428 #endif
10430 #undef $ac_func
10432 /* Override any gcc2 internal prototype to avoid an error. */
10433 #ifdef __cplusplus
10434 extern "C"
10436 #endif
10437 /* We use char because int might match the return type of a gcc2
10438 builtin and then its argument prototype would still apply. */
10439 char $ac_func ();
10440 /* The GNU C library defines this for functions which it implements
10441 to always fail with ENOSYS. Some functions are actually named
10442 something starting with __ and the normal name is an alias. */
10443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10444 choke me
10445 #else
10446 char (*f) () = $ac_func;
10447 #endif
10448 #ifdef __cplusplus
10450 #endif
10453 main ()
10455 return f != $ac_func;
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 eval "$as_ac_var=yes"
10483 else
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 eval "$as_ac_var=no"
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10494 if test `eval echo '${'$as_ac_var'}'` = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10497 _ACEOF
10500 done
10502 else
10504 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10505 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10506 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10507 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10513 ac_ext=cc
10514 ac_cpp='$CXXCPP $CPPFLAGS'
10515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 #include <math.h>
10526 #ifdef HAVE_IEEEFP_H
10527 #include <ieeefp.h>
10528 #endif
10531 main ()
10533 _fpclass(0);
10535 return 0;
10537 _ACEOF
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540 (eval $ac_compile) 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_cxx_werror_flag"
10548 || test ! -s conftest.err'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest.$ac_objext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 glibcxx_cv_func__fpclass_use=yes
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 glibcxx_cv_func__fpclass_use=no
10567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10568 ac_ext=c
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10578 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10579 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10581 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10583 for ac_func in _fpclass
10585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10586 echo "$as_me:$LINENO: checking for $ac_func" >&5
10587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10588 if eval "test \"\${$as_ac_var+set}\" = set"; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 if test x$gcc_no_link = xyes; then
10592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10594 { (exit 1); exit 1; }; }
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h. */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10604 #define $ac_func innocuous_$ac_func
10606 /* System header to define __stub macros and hopefully few prototypes,
10607 which can conflict with char $ac_func (); below.
10608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10609 <limits.h> exists even on freestanding compilers. */
10611 #ifdef __STDC__
10612 # include <limits.h>
10613 #else
10614 # include <assert.h>
10615 #endif
10617 #undef $ac_func
10619 /* Override any gcc2 internal prototype to avoid an error. */
10620 #ifdef __cplusplus
10621 extern "C"
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char $ac_func ();
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10631 choke me
10632 #else
10633 char (*f) () = $ac_func;
10634 #endif
10635 #ifdef __cplusplus
10637 #endif
10640 main ()
10642 return f != $ac_func;
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 eval "$as_ac_var=yes"
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 eval "$as_ac_var=no"
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10681 if test `eval echo '${'$as_ac_var'}'` = yes; then
10682 cat >>confdefs.h <<_ACEOF
10683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10684 _ACEOF
10687 done
10694 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10695 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10696 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10697 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10703 ac_ext=cc
10704 ac_cpp='$CXXCPP $CPPFLAGS'
10705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include <math.h>
10716 #ifdef HAVE_IEEEFP_H
10717 #include <ieeefp.h>
10718 #endif
10721 main ()
10723 qfpclass(0);
10725 return 0;
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730 (eval $ac_compile) 2>conftest.er1
10731 ac_status=$?
10732 grep -v '^ *+' conftest.er1 >conftest.err
10733 rm -f conftest.er1
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -z "$ac_cxx_werror_flag"
10738 || test ! -s conftest.err'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; } &&
10744 { ac_try='test -s conftest.$ac_objext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 glibcxx_cv_func_qfpclass_use=yes
10751 else
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 glibcxx_cv_func_qfpclass_use=no
10757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10758 ac_ext=c
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10768 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10769 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10771 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10773 for ac_func in qfpclass
10775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10776 echo "$as_me:$LINENO: checking for $ac_func" >&5
10777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10778 if eval "test \"\${$as_ac_var+set}\" = set"; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 if test x$gcc_no_link = xyes; then
10782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10784 { (exit 1); exit 1; }; }
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h. */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10794 #define $ac_func innocuous_$ac_func
10796 /* System header to define __stub macros and hopefully few prototypes,
10797 which can conflict with char $ac_func (); below.
10798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10799 <limits.h> exists even on freestanding compilers. */
10801 #ifdef __STDC__
10802 # include <limits.h>
10803 #else
10804 # include <assert.h>
10805 #endif
10807 #undef $ac_func
10809 /* Override any gcc2 internal prototype to avoid an error. */
10810 #ifdef __cplusplus
10811 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10816 char $ac_func ();
10817 /* The GNU C library defines this for functions which it implements
10818 to always fail with ENOSYS. Some functions are actually named
10819 something starting with __ and the normal name is an alias. */
10820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821 choke me
10822 #else
10823 char (*f) () = $ac_func;
10824 #endif
10825 #ifdef __cplusplus
10827 #endif
10830 main ()
10832 return f != $ac_func;
10834 return 0;
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 eval "$as_ac_var=yes"
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 eval "$as_ac_var=no"
10866 rm -f conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10871 if test `eval echo '${'$as_ac_var'}'` = yes; then
10872 cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10874 _ACEOF
10877 done
10879 else
10881 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10882 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10883 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10884 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10890 ac_ext=cc
10891 ac_cpp='$CXXCPP $CPPFLAGS'
10892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 #include <math.h>
10903 #ifdef HAVE_IEEEFP_H
10904 #include <ieeefp.h>
10905 #endif
10908 main ()
10910 _qfpclass(0);
10912 return 0;
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917 (eval $ac_compile) 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } &&
10924 { ac_try='test -z "$ac_cxx_werror_flag"
10925 || test ! -s conftest.err'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 glibcxx_cv_func__qfpclass_use=yes
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 glibcxx_cv_func__qfpclass_use=no
10944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945 ac_ext=c
10946 ac_cpp='$CPP $CPPFLAGS'
10947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10955 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10956 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10958 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10960 for ac_func in _qfpclass
10962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10963 echo "$as_me:$LINENO: checking for $ac_func" >&5
10964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10965 if eval "test \"\${$as_ac_var+set}\" = set"; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968 if test x$gcc_no_link = xyes; then
10969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10971 { (exit 1); exit 1; }; }
10973 cat >conftest.$ac_ext <<_ACEOF
10974 /* confdefs.h. */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10981 #define $ac_func innocuous_$ac_func
10983 /* System header to define __stub macros and hopefully few prototypes,
10984 which can conflict with char $ac_func (); below.
10985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10986 <limits.h> exists even on freestanding compilers. */
10988 #ifdef __STDC__
10989 # include <limits.h>
10990 #else
10991 # include <assert.h>
10992 #endif
10994 #undef $ac_func
10996 /* Override any gcc2 internal prototype to avoid an error. */
10997 #ifdef __cplusplus
10998 extern "C"
11000 #endif
11001 /* We use char because int might match the return type of a gcc2
11002 builtin and then its argument prototype would still apply. */
11003 char $ac_func ();
11004 /* The GNU C library defines this for functions which it implements
11005 to always fail with ENOSYS. Some functions are actually named
11006 something starting with __ and the normal name is an alias. */
11007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11008 choke me
11009 #else
11010 char (*f) () = $ac_func;
11011 #endif
11012 #ifdef __cplusplus
11014 #endif
11017 main ()
11019 return f != $ac_func;
11021 return 0;
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>conftest.er1
11027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag"
11034 || test ! -s conftest.err'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 eval "$as_ac_var=yes"
11047 else
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11053 rm -f conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11064 done
11071 echo "$as_me:$LINENO: checking for hypot declaration" >&5
11072 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
11073 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
11074 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11080 ac_ext=cc
11081 ac_cpp='$CXXCPP $CPPFLAGS'
11082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <math.h>
11094 main ()
11096 hypot(0, 0);
11098 return 0;
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103 (eval $ac_compile) 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_cxx_werror_flag"
11111 || test ! -s conftest.err'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; } &&
11117 { ac_try='test -s conftest.$ac_objext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 glibcxx_cv_func_hypot_use=yes
11124 else
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 glibcxx_cv_func_hypot_use=no
11130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11131 ac_ext=c
11132 ac_cpp='$CPP $CPPFLAGS'
11133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11141 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
11142 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
11144 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
11146 for ac_func in hypot
11148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11149 echo "$as_me:$LINENO: checking for $ac_func" >&5
11150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11151 if eval "test \"\${$as_ac_var+set}\" = set"; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154 if test x$gcc_no_link = xyes; then
11155 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11156 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11157 { (exit 1); exit 1; }; }
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h. */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11167 #define $ac_func innocuous_$ac_func
11169 /* System header to define __stub macros and hopefully few prototypes,
11170 which can conflict with char $ac_func (); below.
11171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11172 <limits.h> exists even on freestanding compilers. */
11174 #ifdef __STDC__
11175 # include <limits.h>
11176 #else
11177 # include <assert.h>
11178 #endif
11180 #undef $ac_func
11182 /* Override any gcc2 internal prototype to avoid an error. */
11183 #ifdef __cplusplus
11184 extern "C"
11186 #endif
11187 /* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11189 char $ac_func ();
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11194 choke me
11195 #else
11196 char (*f) () = $ac_func;
11197 #endif
11198 #ifdef __cplusplus
11200 #endif
11203 main ()
11205 return f != $ac_func;
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext conftest$ac_exeext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212 (eval $ac_link) 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag"
11220 || test ! -s conftest.err'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; } &&
11226 { ac_try='test -s conftest$ac_exeext'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 eval "$as_ac_var=yes"
11233 else
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237 eval "$as_ac_var=no"
11239 rm -f conftest.err conftest.$ac_objext \
11240 conftest$ac_exeext conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11244 if test `eval echo '${'$as_ac_var'}'` = yes; then
11245 cat >>confdefs.h <<_ACEOF
11246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11247 _ACEOF
11250 done
11252 else
11254 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11255 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11256 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11257 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11263 ac_ext=cc
11264 ac_cpp='$CXXCPP $CPPFLAGS'
11265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #include <math.h>
11277 main ()
11279 _hypot(0, 0);
11281 return 0;
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -z "$ac_cxx_werror_flag"
11294 || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 glibcxx_cv_func__hypot_use=yes
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 glibcxx_cv_func__hypot_use=no
11313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11314 ac_ext=c
11315 ac_cpp='$CPP $CPPFLAGS'
11316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11324 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11325 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11327 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11329 for ac_func in _hypot
11331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332 echo "$as_me:$LINENO: checking for $ac_func" >&5
11333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11334 if eval "test \"\${$as_ac_var+set}\" = set"; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337 if test x$gcc_no_link = xyes; then
11338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11340 { (exit 1); exit 1; }; }
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h. */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11350 #define $ac_func innocuous_$ac_func
11352 /* System header to define __stub macros and hopefully few prototypes,
11353 which can conflict with char $ac_func (); below.
11354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355 <limits.h> exists even on freestanding compilers. */
11357 #ifdef __STDC__
11358 # include <limits.h>
11359 #else
11360 # include <assert.h>
11361 #endif
11363 #undef $ac_func
11365 /* Override any gcc2 internal prototype to avoid an error. */
11366 #ifdef __cplusplus
11367 extern "C"
11369 #endif
11370 /* We use char because int might match the return type of a gcc2
11371 builtin and then its argument prototype would still apply. */
11372 char $ac_func ();
11373 /* The GNU C library defines this for functions which it implements
11374 to always fail with ENOSYS. Some functions are actually named
11375 something starting with __ and the normal name is an alias. */
11376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11377 choke me
11378 #else
11379 char (*f) () = $ac_func;
11380 #endif
11381 #ifdef __cplusplus
11383 #endif
11386 main ()
11388 return f != $ac_func;
11390 return 0;
11392 _ACEOF
11393 rm -f conftest.$ac_objext conftest$ac_exeext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11395 (eval $ac_link) 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
11402 { ac_try='test -z "$ac_c_werror_flag"
11403 || test ! -s conftest.err'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest$ac_exeext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 eval "$as_ac_var=yes"
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 eval "$as_ac_var=no"
11422 rm -f conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11427 if test `eval echo '${'$as_ac_var'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11430 _ACEOF
11433 done
11440 echo "$as_me:$LINENO: checking for float trig functions" >&5
11441 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11442 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11448 ac_ext=cc
11449 ac_cpp='$CXXCPP $CPPFLAGS'
11450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11454 cat >conftest.$ac_ext <<_ACEOF
11455 /* confdefs.h. */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 #include <math.h>
11462 main ()
11464 `for x in acosf asinf atanf \
11465 cosf sinf tanf \
11466 coshf sinhf tanhf; do echo "$x (0);"; done`
11468 return 0;
11470 _ACEOF
11471 rm -f conftest.$ac_objext
11472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11473 (eval $ac_compile) 2>conftest.er1
11474 ac_status=$?
11475 grep -v '^ *+' conftest.er1 >conftest.err
11476 rm -f conftest.er1
11477 cat conftest.err >&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } &&
11480 { ac_try='test -z "$ac_cxx_werror_flag"
11481 || test ! -s conftest.err'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; } &&
11487 { ac_try='test -s conftest.$ac_objext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 glibcxx_cv_func_float_trig_use=yes
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 glibcxx_cv_func_float_trig_use=no
11500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11501 ac_ext=c
11502 ac_cpp='$CPP $CPPFLAGS'
11503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11510 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11511 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11521 for ac_func in acosf asinf atanf \
11522 cosf sinf tanf \
11523 coshf sinhf tanhf
11525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11526 echo "$as_me:$LINENO: checking for $ac_func" >&5
11527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11528 if eval "test \"\${$as_ac_var+set}\" = set"; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531 if test x$gcc_no_link = xyes; then
11532 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11534 { (exit 1); exit 1; }; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11544 #define $ac_func innocuous_$ac_func
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func (); below.
11548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11549 <limits.h> exists even on freestanding compilers. */
11551 #ifdef __STDC__
11552 # include <limits.h>
11553 #else
11554 # include <assert.h>
11555 #endif
11557 #undef $ac_func
11559 /* Override any gcc2 internal prototype to avoid an error. */
11560 #ifdef __cplusplus
11561 extern "C"
11563 #endif
11564 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11566 char $ac_func ();
11567 /* The GNU C library defines this for functions which it implements
11568 to always fail with ENOSYS. Some functions are actually named
11569 something starting with __ and the normal name is an alias. */
11570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571 choke me
11572 #else
11573 char (*f) () = $ac_func;
11574 #endif
11575 #ifdef __cplusplus
11577 #endif
11580 main ()
11582 return f != $ac_func;
11584 return 0;
11586 _ACEOF
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589 (eval $ac_link) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest$ac_exeext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 eval "$as_ac_var=yes"
11610 else
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 eval "$as_ac_var=no"
11616 rm -f conftest.err conftest.$ac_objext \
11617 conftest$ac_exeext conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11621 if test `eval echo '${'$as_ac_var'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11624 _ACEOF
11627 done
11632 echo "$as_me:$LINENO: checking for float round functions" >&5
11633 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11634 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11640 ac_ext=cc
11641 ac_cpp='$CXXCPP $CPPFLAGS'
11642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include <math.h>
11654 main ()
11656 `for x in ceilf floorf; do echo "$x (0);"; done`
11658 return 0;
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 (eval $ac_compile) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try='test -z "$ac_cxx_werror_flag"
11671 || test ! -s conftest.err'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 glibcxx_cv_func_float_round_use=yes
11684 else
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 glibcxx_cv_func_float_round_use=no
11690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11691 ac_ext=c
11692 ac_cpp='$CPP $CPPFLAGS'
11693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11699 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11700 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11701 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11704 for ac_func in ceilf floorf
11706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707 echo "$as_me:$LINENO: checking for $ac_func" >&5
11708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_var+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712 if test x$gcc_no_link = xyes; then
11713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11715 { (exit 1); exit 1; }; }
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725 #define $ac_func innocuous_$ac_func
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11738 #undef $ac_func
11740 /* Override any gcc2 internal prototype to avoid an error. */
11741 #ifdef __cplusplus
11742 extern "C"
11744 #endif
11745 /* We use char because int might match the return type of a gcc2
11746 builtin and then its argument prototype would still apply. */
11747 char $ac_func ();
11748 /* The GNU C library defines this for functions which it implements
11749 to always fail with ENOSYS. Some functions are actually named
11750 something starting with __ and the normal name is an alias. */
11751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11752 choke me
11753 #else
11754 char (*f) () = $ac_func;
11755 #endif
11756 #ifdef __cplusplus
11758 #endif
11761 main ()
11763 return f != $ac_func;
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 (eval $ac_link) 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 eval "$as_ac_var=no"
11797 rm -f conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11802 if test `eval echo '${'$as_ac_var'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 _ACEOF
11808 done
11814 echo "$as_me:$LINENO: checking for expf declaration" >&5
11815 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11816 if test x${glibcxx_cv_func_expf_use+set} != xset; then
11817 if test "${glibcxx_cv_func_expf_use+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11823 ac_ext=cc
11824 ac_cpp='$CXXCPP $CPPFLAGS'
11825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h. */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <math.h>
11836 #ifdef HAVE_IEEEFP_H
11837 #include <ieeefp.h>
11838 #endif
11841 main ()
11843 expf(0);
11845 return 0;
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11850 (eval $ac_compile) 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_cxx_werror_flag"
11858 || test ! -s conftest.err'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest.$ac_objext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 glibcxx_cv_func_expf_use=yes
11871 else
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 glibcxx_cv_func_expf_use=no
11877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11878 ac_ext=c
11879 ac_cpp='$CPP $CPPFLAGS'
11880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11888 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11889 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11891 if test x$glibcxx_cv_func_expf_use = x"yes"; then
11893 for ac_func in expf
11895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11898 if eval "test \"\${$as_ac_var+set}\" = set"; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901 if test x$gcc_no_link = xyes; then
11902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11904 { (exit 1); exit 1; }; }
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11914 #define $ac_func innocuous_$ac_func
11916 /* System header to define __stub macros and hopefully few prototypes,
11917 which can conflict with char $ac_func (); below.
11918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919 <limits.h> exists even on freestanding compilers. */
11921 #ifdef __STDC__
11922 # include <limits.h>
11923 #else
11924 # include <assert.h>
11925 #endif
11927 #undef $ac_func
11929 /* Override any gcc2 internal prototype to avoid an error. */
11930 #ifdef __cplusplus
11931 extern "C"
11933 #endif
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11936 char $ac_func ();
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11941 choke me
11942 #else
11943 char (*f) () = $ac_func;
11944 #endif
11945 #ifdef __cplusplus
11947 #endif
11950 main ()
11952 return f != $ac_func;
11954 return 0;
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_c_werror_flag"
11967 || test ! -s conftest.err'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest$ac_exeext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 eval "$as_ac_var=yes"
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 eval "$as_ac_var=no"
11986 rm -f conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11991 if test `eval echo '${'$as_ac_var'}'` = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11994 _ACEOF
11997 done
11999 else
12001 echo "$as_me:$LINENO: checking for _expf declaration" >&5
12002 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
12003 if test x${glibcxx_cv_func__expf_use+set} != xset; then
12004 if test "${glibcxx_cv_func__expf_use+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12010 ac_ext=cc
12011 ac_cpp='$CXXCPP $CPPFLAGS'
12012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 #include <math.h>
12023 #ifdef HAVE_IEEEFP_H
12024 #include <ieeefp.h>
12025 #endif
12028 main ()
12030 _expf(0);
12032 return 0;
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_cxx_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 glibcxx_cv_func__expf_use=yes
12058 else
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 glibcxx_cv_func__expf_use=no
12064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065 ac_ext=c
12066 ac_cpp='$CPP $CPPFLAGS'
12067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
12076 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
12078 if test x$glibcxx_cv_func__expf_use = x"yes"; then
12080 for ac_func in _expf
12082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083 echo "$as_me:$LINENO: checking for $ac_func" >&5
12084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12085 if eval "test \"\${$as_ac_var+set}\" = set"; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 if test x$gcc_no_link = xyes; then
12089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12091 { (exit 1); exit 1; }; }
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12101 #define $ac_func innocuous_$ac_func
12103 /* System header to define __stub macros and hopefully few prototypes,
12104 which can conflict with char $ac_func (); below.
12105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12106 <limits.h> exists even on freestanding compilers. */
12108 #ifdef __STDC__
12109 # include <limits.h>
12110 #else
12111 # include <assert.h>
12112 #endif
12114 #undef $ac_func
12116 /* Override any gcc2 internal prototype to avoid an error. */
12117 #ifdef __cplusplus
12118 extern "C"
12120 #endif
12121 /* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12123 char $ac_func ();
12124 /* The GNU C library defines this for functions which it implements
12125 to always fail with ENOSYS. Some functions are actually named
12126 something starting with __ and the normal name is an alias. */
12127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12128 choke me
12129 #else
12130 char (*f) () = $ac_func;
12131 #endif
12132 #ifdef __cplusplus
12134 #endif
12137 main ()
12139 return f != $ac_func;
12141 return 0;
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 eval "$as_ac_var=no"
12173 rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12178 if test `eval echo '${'$as_ac_var'}'` = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12181 _ACEOF
12184 done
12191 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12192 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12193 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12194 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12200 ac_ext=cc
12201 ac_cpp='$CXXCPP $CPPFLAGS'
12202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12206 cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h. */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 #include <math.h>
12213 #ifdef HAVE_IEEEFP_H
12214 #include <ieeefp.h>
12215 #endif
12218 main ()
12220 isnanf(0);
12222 return 0;
12224 _ACEOF
12225 rm -f conftest.$ac_objext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12227 (eval $ac_compile) 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -z "$ac_cxx_werror_flag"
12235 || test ! -s conftest.err'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 glibcxx_cv_func_isnanf_use=yes
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 glibcxx_cv_func_isnanf_use=no
12254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12255 ac_ext=c
12256 ac_cpp='$CPP $CPPFLAGS'
12257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12265 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12266 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12268 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12270 for ac_func in isnanf
12272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12275 if eval "test \"\${$as_ac_var+set}\" = set"; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 if test x$gcc_no_link = xyes; then
12279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12281 { (exit 1); exit 1; }; }
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12291 #define $ac_func innocuous_$ac_func
12293 /* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char $ac_func (); below.
12295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296 <limits.h> exists even on freestanding compilers. */
12298 #ifdef __STDC__
12299 # include <limits.h>
12300 #else
12301 # include <assert.h>
12302 #endif
12304 #undef $ac_func
12306 /* Override any gcc2 internal prototype to avoid an error. */
12307 #ifdef __cplusplus
12308 extern "C"
12310 #endif
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313 char $ac_func ();
12314 /* The GNU C library defines this for functions which it implements
12315 to always fail with ENOSYS. Some functions are actually named
12316 something starting with __ and the normal name is an alias. */
12317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12318 choke me
12319 #else
12320 char (*f) () = $ac_func;
12321 #endif
12322 #ifdef __cplusplus
12324 #endif
12327 main ()
12329 return f != $ac_func;
12331 return 0;
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 eval "$as_ac_var=yes"
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 eval "$as_ac_var=no"
12363 rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12368 if test `eval echo '${'$as_ac_var'}'` = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12371 _ACEOF
12374 done
12376 else
12378 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12379 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12380 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12381 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12387 ac_ext=cc
12388 ac_cpp='$CXXCPP $CPPFLAGS'
12389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <math.h>
12400 #ifdef HAVE_IEEEFP_H
12401 #include <ieeefp.h>
12402 #endif
12405 main ()
12407 _isnanf(0);
12409 return 0;
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>conftest.er1
12415 ac_status=$?
12416 grep -v '^ *+' conftest.er1 >conftest.err
12417 rm -f conftest.er1
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_cxx_werror_flag"
12422 || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest.$ac_objext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 glibcxx_cv_func__isnanf_use=yes
12435 else
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 glibcxx_cv_func__isnanf_use=no
12441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12442 ac_ext=c
12443 ac_cpp='$CPP $CPPFLAGS'
12444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12452 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12453 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12455 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12457 for ac_func in _isnanf
12459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12460 echo "$as_me:$LINENO: checking for $ac_func" >&5
12461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12462 if eval "test \"\${$as_ac_var+set}\" = set"; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465 if test x$gcc_no_link = xyes; then
12466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12468 { (exit 1); exit 1; }; }
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12478 #define $ac_func innocuous_$ac_func
12480 /* System header to define __stub macros and hopefully few prototypes,
12481 which can conflict with char $ac_func (); below.
12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483 <limits.h> exists even on freestanding compilers. */
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12491 #undef $ac_func
12493 /* Override any gcc2 internal prototype to avoid an error. */
12494 #ifdef __cplusplus
12495 extern "C"
12497 #endif
12498 /* We use char because int might match the return type of a gcc2
12499 builtin and then its argument prototype would still apply. */
12500 char $ac_func ();
12501 /* The GNU C library defines this for functions which it implements
12502 to always fail with ENOSYS. Some functions are actually named
12503 something starting with __ and the normal name is an alias. */
12504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12505 choke me
12506 #else
12507 char (*f) () = $ac_func;
12508 #endif
12509 #ifdef __cplusplus
12511 #endif
12514 main ()
12516 return f != $ac_func;
12518 return 0;
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 eval "$as_ac_var=yes"
12544 else
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 eval "$as_ac_var=no"
12550 rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12555 if test `eval echo '${'$as_ac_var'}'` = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558 _ACEOF
12561 done
12568 echo "$as_me:$LINENO: checking for isinff declaration" >&5
12569 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12570 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12571 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12577 ac_ext=cc
12578 ac_cpp='$CXXCPP $CPPFLAGS'
12579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h. */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 #include <math.h>
12590 #ifdef HAVE_IEEEFP_H
12591 #include <ieeefp.h>
12592 #endif
12595 main ()
12597 isinff(0);
12599 return 0;
12601 _ACEOF
12602 rm -f conftest.$ac_objext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_cxx_werror_flag"
12612 || test ! -s conftest.err'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest.$ac_objext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 glibcxx_cv_func_isinff_use=yes
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 glibcxx_cv_func_isinff_use=no
12631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 ac_ext=c
12633 ac_cpp='$CPP $CPPFLAGS'
12634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12642 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12643 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12645 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12647 for ac_func in isinff
12649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12650 echo "$as_me:$LINENO: checking for $ac_func" >&5
12651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12652 if eval "test \"\${$as_ac_var+set}\" = set"; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655 if test x$gcc_no_link = xyes; then
12656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12658 { (exit 1); exit 1; }; }
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h. */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12668 #define $ac_func innocuous_$ac_func
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char $ac_func (); below.
12672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12673 <limits.h> exists even on freestanding compilers. */
12675 #ifdef __STDC__
12676 # include <limits.h>
12677 #else
12678 # include <assert.h>
12679 #endif
12681 #undef $ac_func
12683 /* Override any gcc2 internal prototype to avoid an error. */
12684 #ifdef __cplusplus
12685 extern "C"
12687 #endif
12688 /* We use char because int might match the return type of a gcc2
12689 builtin and then its argument prototype would still apply. */
12690 char $ac_func ();
12691 /* The GNU C library defines this for functions which it implements
12692 to always fail with ENOSYS. Some functions are actually named
12693 something starting with __ and the normal name is an alias. */
12694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12695 choke me
12696 #else
12697 char (*f) () = $ac_func;
12698 #endif
12699 #ifdef __cplusplus
12701 #endif
12704 main ()
12706 return f != $ac_func;
12708 return 0;
12710 _ACEOF
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713 (eval $ac_link) 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest$ac_exeext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_var=yes"
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 eval "$as_ac_var=no"
12740 rm -f conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12745 if test `eval echo '${'$as_ac_var'}'` = yes; then
12746 cat >>confdefs.h <<_ACEOF
12747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12748 _ACEOF
12751 done
12753 else
12755 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12756 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12757 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12758 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12764 ac_ext=cc
12765 ac_cpp='$CXXCPP $CPPFLAGS'
12766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 #include <math.h>
12777 #ifdef HAVE_IEEEFP_H
12778 #include <ieeefp.h>
12779 #endif
12782 main ()
12784 _isinff(0);
12786 return 0;
12788 _ACEOF
12789 rm -f conftest.$ac_objext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_cxx_werror_flag"
12799 || test ! -s conftest.err'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 glibcxx_cv_func__isinff_use=yes
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 glibcxx_cv_func__isinff_use=no
12818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819 ac_ext=c
12820 ac_cpp='$CPP $CPPFLAGS'
12821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12830 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12832 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12834 for ac_func in _isinff
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12839 if eval "test \"\${$as_ac_var+set}\" = set"; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842 if test x$gcc_no_link = xyes; then
12843 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12844 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12845 { (exit 1); exit 1; }; }
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12855 #define $ac_func innocuous_$ac_func
12857 /* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char $ac_func (); below.
12859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860 <limits.h> exists even on freestanding compilers. */
12862 #ifdef __STDC__
12863 # include <limits.h>
12864 #else
12865 # include <assert.h>
12866 #endif
12868 #undef $ac_func
12870 /* Override any gcc2 internal prototype to avoid an error. */
12871 #ifdef __cplusplus
12872 extern "C"
12874 #endif
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12877 char $ac_func ();
12878 /* The GNU C library defines this for functions which it implements
12879 to always fail with ENOSYS. Some functions are actually named
12880 something starting with __ and the normal name is an alias. */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 choke me
12883 #else
12884 char (*f) () = $ac_func;
12885 #endif
12886 #ifdef __cplusplus
12888 #endif
12891 main ()
12893 return f != $ac_func;
12895 return 0;
12897 _ACEOF
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 eval "$as_ac_var=yes"
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 eval "$as_ac_var=no"
12927 rm -f conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12932 if test `eval echo '${'$as_ac_var'}'` = yes; then
12933 cat >>confdefs.h <<_ACEOF
12934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12935 _ACEOF
12938 done
12945 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
12946 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
12947 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
12948 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12954 ac_ext=cc
12955 ac_cpp='$CXXCPP $CPPFLAGS'
12956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12960 cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h. */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12966 #include <math.h>
12968 main ()
12970 atan2f(0, 0);
12972 return 0;
12974 _ACEOF
12975 rm -f conftest.$ac_objext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_cxx_werror_flag"
12985 || test ! -s conftest.err'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 glibcxx_cv_func_atan2f_use=yes
12998 else
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 glibcxx_cv_func_atan2f_use=no
13004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13005 ac_ext=c
13006 ac_cpp='$CPP $CPPFLAGS'
13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13015 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
13016 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
13018 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13020 for ac_func in atan2f
13022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13023 echo "$as_me:$LINENO: checking for $ac_func" >&5
13024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13025 if eval "test \"\${$as_ac_var+set}\" = set"; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 if test x$gcc_no_link = xyes; then
13029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13031 { (exit 1); exit 1; }; }
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13041 #define $ac_func innocuous_$ac_func
13043 /* System header to define __stub macros and hopefully few prototypes,
13044 which can conflict with char $ac_func (); below.
13045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13046 <limits.h> exists even on freestanding compilers. */
13048 #ifdef __STDC__
13049 # include <limits.h>
13050 #else
13051 # include <assert.h>
13052 #endif
13054 #undef $ac_func
13056 /* Override any gcc2 internal prototype to avoid an error. */
13057 #ifdef __cplusplus
13058 extern "C"
13060 #endif
13061 /* We use char because int might match the return type of a gcc2
13062 builtin and then its argument prototype would still apply. */
13063 char $ac_func ();
13064 /* The GNU C library defines this for functions which it implements
13065 to always fail with ENOSYS. Some functions are actually named
13066 something starting with __ and the normal name is an alias. */
13067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13068 choke me
13069 #else
13070 char (*f) () = $ac_func;
13071 #endif
13072 #ifdef __cplusplus
13074 #endif
13077 main ()
13079 return f != $ac_func;
13081 return 0;
13083 _ACEOF
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13086 (eval $ac_link) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 eval "$as_ac_var=yes"
13107 else
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 eval "$as_ac_var=no"
13113 rm -f conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13118 if test `eval echo '${'$as_ac_var'}'` = yes; then
13119 cat >>confdefs.h <<_ACEOF
13120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13121 _ACEOF
13124 done
13126 else
13128 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
13129 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
13130 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13131 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13137 ac_ext=cc
13138 ac_cpp='$CXXCPP $CPPFLAGS'
13139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h. */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 #include <math.h>
13151 main ()
13153 _atan2f(0, 0);
13155 return 0;
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -z "$ac_cxx_werror_flag"
13168 || test ! -s conftest.err'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 glibcxx_cv_func__atan2f_use=yes
13181 else
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 glibcxx_cv_func__atan2f_use=no
13187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13188 ac_ext=c
13189 ac_cpp='$CPP $CPPFLAGS'
13190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13199 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13201 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13203 for ac_func in _atan2f
13205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13206 echo "$as_me:$LINENO: checking for $ac_func" >&5
13207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13208 if eval "test \"\${$as_ac_var+set}\" = set"; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211 if test x$gcc_no_link = xyes; then
13212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13214 { (exit 1); exit 1; }; }
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13224 #define $ac_func innocuous_$ac_func
13226 /* System header to define __stub macros and hopefully few prototypes,
13227 which can conflict with char $ac_func (); below.
13228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 <limits.h> exists even on freestanding compilers. */
13231 #ifdef __STDC__
13232 # include <limits.h>
13233 #else
13234 # include <assert.h>
13235 #endif
13237 #undef $ac_func
13239 /* Override any gcc2 internal prototype to avoid an error. */
13240 #ifdef __cplusplus
13241 extern "C"
13243 #endif
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13246 char $ac_func ();
13247 /* The GNU C library defines this for functions which it implements
13248 to always fail with ENOSYS. Some functions are actually named
13249 something starting with __ and the normal name is an alias. */
13250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13251 choke me
13252 #else
13253 char (*f) () = $ac_func;
13254 #endif
13255 #ifdef __cplusplus
13257 #endif
13260 main ()
13262 return f != $ac_func;
13264 return 0;
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest$ac_exeext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 eval "$as_ac_var=yes"
13290 else
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 eval "$as_ac_var=no"
13296 rm -f conftest.err conftest.$ac_objext \
13297 conftest$ac_exeext conftest.$ac_ext
13299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13301 if test `eval echo '${'$as_ac_var'}'` = yes; then
13302 cat >>confdefs.h <<_ACEOF
13303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13304 _ACEOF
13307 done
13314 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13315 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13316 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13317 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13323 ac_ext=cc
13324 ac_cpp='$CXXCPP $CPPFLAGS'
13325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13329 cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h. */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 #include <math.h>
13336 #ifdef HAVE_IEEEFP_H
13337 #include <ieeefp.h>
13338 #endif
13341 main ()
13343 fabsf(0);
13345 return 0;
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350 (eval $ac_compile) 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_cxx_werror_flag"
13358 || test ! -s conftest.err'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 glibcxx_cv_func_fabsf_use=yes
13371 else
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13375 glibcxx_cv_func_fabsf_use=no
13377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13378 ac_ext=c
13379 ac_cpp='$CPP $CPPFLAGS'
13380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13388 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13389 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13391 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13393 for ac_func in fabsf
13395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13396 echo "$as_me:$LINENO: checking for $ac_func" >&5
13397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13398 if eval "test \"\${$as_ac_var+set}\" = set"; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401 if test x$gcc_no_link = xyes; then
13402 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13403 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13404 { (exit 1); exit 1; }; }
13406 cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h. */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13414 #define $ac_func innocuous_$ac_func
13416 /* System header to define __stub macros and hopefully few prototypes,
13417 which can conflict with char $ac_func (); below.
13418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13419 <limits.h> exists even on freestanding compilers. */
13421 #ifdef __STDC__
13422 # include <limits.h>
13423 #else
13424 # include <assert.h>
13425 #endif
13427 #undef $ac_func
13429 /* Override any gcc2 internal prototype to avoid an error. */
13430 #ifdef __cplusplus
13431 extern "C"
13433 #endif
13434 /* We use char because int might match the return type of a gcc2
13435 builtin and then its argument prototype would still apply. */
13436 char $ac_func ();
13437 /* The GNU C library defines this for functions which it implements
13438 to always fail with ENOSYS. Some functions are actually named
13439 something starting with __ and the normal name is an alias. */
13440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13441 choke me
13442 #else
13443 char (*f) () = $ac_func;
13444 #endif
13445 #ifdef __cplusplus
13447 #endif
13450 main ()
13452 return f != $ac_func;
13454 return 0;
13456 _ACEOF
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag"
13467 || test ! -s conftest.err'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try='test -s conftest$ac_exeext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 eval "$as_ac_var=yes"
13480 else
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 eval "$as_ac_var=no"
13486 rm -f conftest.err conftest.$ac_objext \
13487 conftest$ac_exeext conftest.$ac_ext
13489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13491 if test `eval echo '${'$as_ac_var'}'` = yes; then
13492 cat >>confdefs.h <<_ACEOF
13493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13494 _ACEOF
13497 done
13499 else
13501 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13502 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13503 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13504 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13510 ac_ext=cc
13511 ac_cpp='$CXXCPP $CPPFLAGS'
13512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13516 cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h. */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522 #include <math.h>
13523 #ifdef HAVE_IEEEFP_H
13524 #include <ieeefp.h>
13525 #endif
13528 main ()
13530 _fabsf(0);
13532 return 0;
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_cxx_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 glibcxx_cv_func__fabsf_use=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 glibcxx_cv_func__fabsf_use=no
13564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13565 ac_ext=c
13566 ac_cpp='$CPP $CPPFLAGS'
13567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13575 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13576 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13578 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13580 for ac_func in _fabsf
13582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13583 echo "$as_me:$LINENO: checking for $ac_func" >&5
13584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13585 if eval "test \"\${$as_ac_var+set}\" = set"; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 if test x$gcc_no_link = xyes; then
13589 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13591 { (exit 1); exit 1; }; }
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13601 #define $ac_func innocuous_$ac_func
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func (); below.
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
13608 #ifdef __STDC__
13609 # include <limits.h>
13610 #else
13611 # include <assert.h>
13612 #endif
13614 #undef $ac_func
13616 /* Override any gcc2 internal prototype to avoid an error. */
13617 #ifdef __cplusplus
13618 extern "C"
13620 #endif
13621 /* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13623 char $ac_func ();
13624 /* The GNU C library defines this for functions which it implements
13625 to always fail with ENOSYS. Some functions are actually named
13626 something starting with __ and the normal name is an alias. */
13627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13628 choke me
13629 #else
13630 char (*f) () = $ac_func;
13631 #endif
13632 #ifdef __cplusplus
13634 #endif
13637 main ()
13639 return f != $ac_func;
13641 return 0;
13643 _ACEOF
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13646 (eval $ac_link) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest$ac_exeext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 eval "$as_ac_var=yes"
13667 else
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 eval "$as_ac_var=no"
13673 rm -f conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13678 if test `eval echo '${'$as_ac_var'}'` = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681 _ACEOF
13684 done
13691 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13692 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13693 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13694 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13700 ac_ext=cc
13701 ac_cpp='$CXXCPP $CPPFLAGS'
13702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #include <math.h>
13714 main ()
13716 fmodf(0, 0);
13718 return 0;
13720 _ACEOF
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723 (eval $ac_compile) 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_cxx_werror_flag"
13731 || test ! -s conftest.err'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 glibcxx_cv_func_fmodf_use=yes
13744 else
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 glibcxx_cv_func_fmodf_use=no
13750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13751 ac_ext=c
13752 ac_cpp='$CPP $CPPFLAGS'
13753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13761 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13762 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13764 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13766 for ac_func in fmodf
13768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13769 echo "$as_me:$LINENO: checking for $ac_func" >&5
13770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13771 if eval "test \"\${$as_ac_var+set}\" = set"; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 if test x$gcc_no_link = xyes; then
13775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13777 { (exit 1); exit 1; }; }
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13787 #define $ac_func innocuous_$ac_func
13789 /* System header to define __stub macros and hopefully few prototypes,
13790 which can conflict with char $ac_func (); below.
13791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13792 <limits.h> exists even on freestanding compilers. */
13794 #ifdef __STDC__
13795 # include <limits.h>
13796 #else
13797 # include <assert.h>
13798 #endif
13800 #undef $ac_func
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 #ifdef __cplusplus
13804 extern "C"
13806 #endif
13807 /* We use char because int might match the return type of a gcc2
13808 builtin and then its argument prototype would still apply. */
13809 char $ac_func ();
13810 /* The GNU C library defines this for functions which it implements
13811 to always fail with ENOSYS. Some functions are actually named
13812 something starting with __ and the normal name is an alias. */
13813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13814 choke me
13815 #else
13816 char (*f) () = $ac_func;
13817 #endif
13818 #ifdef __cplusplus
13820 #endif
13823 main ()
13825 return f != $ac_func;
13827 return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest$ac_exeext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 eval "$as_ac_var=yes"
13853 else
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 eval "$as_ac_var=no"
13859 rm -f conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13864 if test `eval echo '${'$as_ac_var'}'` = yes; then
13865 cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13867 _ACEOF
13870 done
13872 else
13874 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13875 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13876 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13877 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13883 ac_ext=cc
13884 ac_cpp='$CXXCPP $CPPFLAGS'
13885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #include <math.h>
13897 main ()
13899 _fmodf(0, 0);
13901 return 0;
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -z "$ac_cxx_werror_flag"
13914 || test ! -s conftest.err'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 glibcxx_cv_func__fmodf_use=yes
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 glibcxx_cv_func__fmodf_use=no
13933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13934 ac_ext=c
13935 ac_cpp='$CPP $CPPFLAGS'
13936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13944 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
13945 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
13947 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13949 for ac_func in _fmodf
13951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13952 echo "$as_me:$LINENO: checking for $ac_func" >&5
13953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13954 if eval "test \"\${$as_ac_var+set}\" = set"; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 if test x$gcc_no_link = xyes; then
13958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13960 { (exit 1); exit 1; }; }
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13970 #define $ac_func innocuous_$ac_func
13972 /* System header to define __stub macros and hopefully few prototypes,
13973 which can conflict with char $ac_func (); below.
13974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13975 <limits.h> exists even on freestanding compilers. */
13977 #ifdef __STDC__
13978 # include <limits.h>
13979 #else
13980 # include <assert.h>
13981 #endif
13983 #undef $ac_func
13985 /* Override any gcc2 internal prototype to avoid an error. */
13986 #ifdef __cplusplus
13987 extern "C"
13989 #endif
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
13992 char $ac_func ();
13993 /* The GNU C library defines this for functions which it implements
13994 to always fail with ENOSYS. Some functions are actually named
13995 something starting with __ and the normal name is an alias. */
13996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13997 choke me
13998 #else
13999 char (*f) () = $ac_func;
14000 #endif
14001 #ifdef __cplusplus
14003 #endif
14006 main ()
14008 return f != $ac_func;
14010 return 0;
14012 _ACEOF
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14015 (eval $ac_link) 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_c_werror_flag"
14023 || test ! -s conftest.err'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; } &&
14029 { ac_try='test -s conftest$ac_exeext'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14035 eval "$as_ac_var=yes"
14036 else
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 eval "$as_ac_var=no"
14042 rm -f conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext conftest.$ac_ext
14045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14047 if test `eval echo '${'$as_ac_var'}'` = yes; then
14048 cat >>confdefs.h <<_ACEOF
14049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14050 _ACEOF
14053 done
14060 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
14061 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
14062 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
14063 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14069 ac_ext=cc
14070 ac_cpp='$CXXCPP $CPPFLAGS'
14071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 #include <math.h>
14083 main ()
14085 frexpf(0, 0);
14087 return 0;
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092 (eval $ac_compile) 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -z "$ac_cxx_werror_flag"
14100 || test ! -s conftest.err'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 glibcxx_cv_func_frexpf_use=yes
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 glibcxx_cv_func_frexpf_use=no
14119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120 ac_ext=c
14121 ac_cpp='$CPP $CPPFLAGS'
14122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14130 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
14131 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
14133 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14135 for ac_func in frexpf
14137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14138 echo "$as_me:$LINENO: checking for $ac_func" >&5
14139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14140 if eval "test \"\${$as_ac_var+set}\" = set"; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143 if test x$gcc_no_link = xyes; then
14144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14146 { (exit 1); exit 1; }; }
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14156 #define $ac_func innocuous_$ac_func
14158 /* System header to define __stub macros and hopefully few prototypes,
14159 which can conflict with char $ac_func (); below.
14160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14161 <limits.h> exists even on freestanding compilers. */
14163 #ifdef __STDC__
14164 # include <limits.h>
14165 #else
14166 # include <assert.h>
14167 #endif
14169 #undef $ac_func
14171 /* Override any gcc2 internal prototype to avoid an error. */
14172 #ifdef __cplusplus
14173 extern "C"
14175 #endif
14176 /* We use char because int might match the return type of a gcc2
14177 builtin and then its argument prototype would still apply. */
14178 char $ac_func ();
14179 /* The GNU C library defines this for functions which it implements
14180 to always fail with ENOSYS. Some functions are actually named
14181 something starting with __ and the normal name is an alias. */
14182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14183 choke me
14184 #else
14185 char (*f) () = $ac_func;
14186 #endif
14187 #ifdef __cplusplus
14189 #endif
14192 main ()
14194 return f != $ac_func;
14196 return 0;
14198 _ACEOF
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14201 (eval $ac_link) 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag"
14209 || test ! -s conftest.err'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest$ac_exeext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 eval "$as_ac_var=yes"
14222 else
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 eval "$as_ac_var=no"
14228 rm -f conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14233 if test `eval echo '${'$as_ac_var'}'` = yes; then
14234 cat >>confdefs.h <<_ACEOF
14235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14236 _ACEOF
14239 done
14241 else
14243 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14244 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14245 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14246 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14252 ac_ext=cc
14253 ac_cpp='$CXXCPP $CPPFLAGS'
14254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 #include <math.h>
14266 main ()
14268 _frexpf(0, 0);
14270 return 0;
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275 (eval $ac_compile) 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_cxx_werror_flag"
14283 || test ! -s conftest.err'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 glibcxx_cv_func__frexpf_use=yes
14296 else
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 glibcxx_cv_func__frexpf_use=no
14302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303 ac_ext=c
14304 ac_cpp='$CPP $CPPFLAGS'
14305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14313 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14314 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14316 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14318 for ac_func in _frexpf
14320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14321 echo "$as_me:$LINENO: checking for $ac_func" >&5
14322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_var+set}\" = set"; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326 if test x$gcc_no_link = xyes; then
14327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14329 { (exit 1); exit 1; }; }
14331 cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h. */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h. */
14337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14339 #define $ac_func innocuous_$ac_func
14341 /* System header to define __stub macros and hopefully few prototypes,
14342 which can conflict with char $ac_func (); below.
14343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14344 <limits.h> exists even on freestanding compilers. */
14346 #ifdef __STDC__
14347 # include <limits.h>
14348 #else
14349 # include <assert.h>
14350 #endif
14352 #undef $ac_func
14354 /* Override any gcc2 internal prototype to avoid an error. */
14355 #ifdef __cplusplus
14356 extern "C"
14358 #endif
14359 /* We use char because int might match the return type of a gcc2
14360 builtin and then its argument prototype would still apply. */
14361 char $ac_func ();
14362 /* The GNU C library defines this for functions which it implements
14363 to always fail with ENOSYS. Some functions are actually named
14364 something starting with __ and the normal name is an alias. */
14365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14366 choke me
14367 #else
14368 char (*f) () = $ac_func;
14369 #endif
14370 #ifdef __cplusplus
14372 #endif
14375 main ()
14377 return f != $ac_func;
14379 return 0;
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest$ac_exeext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 eval "$as_ac_var=yes"
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 eval "$as_ac_var=no"
14411 rm -f conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14416 if test `eval echo '${'$as_ac_var'}'` = yes; then
14417 cat >>confdefs.h <<_ACEOF
14418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14419 _ACEOF
14422 done
14429 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14430 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14431 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14432 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14438 ac_ext=cc
14439 ac_cpp='$CXXCPP $CPPFLAGS'
14440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 #include <math.h>
14452 main ()
14454 hypotf(0, 0);
14456 return 0;
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -z "$ac_cxx_werror_flag"
14469 || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 glibcxx_cv_func_hypotf_use=yes
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 glibcxx_cv_func_hypotf_use=no
14488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14489 ac_ext=c
14490 ac_cpp='$CPP $CPPFLAGS'
14491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14499 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14500 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14502 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14504 for ac_func in hypotf
14506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14507 echo "$as_me:$LINENO: checking for $ac_func" >&5
14508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14509 if eval "test \"\${$as_ac_var+set}\" = set"; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 if test x$gcc_no_link = xyes; then
14513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14515 { (exit 1); exit 1; }; }
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14525 #define $ac_func innocuous_$ac_func
14527 /* System header to define __stub macros and hopefully few prototypes,
14528 which can conflict with char $ac_func (); below.
14529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14530 <limits.h> exists even on freestanding compilers. */
14532 #ifdef __STDC__
14533 # include <limits.h>
14534 #else
14535 # include <assert.h>
14536 #endif
14538 #undef $ac_func
14540 /* Override any gcc2 internal prototype to avoid an error. */
14541 #ifdef __cplusplus
14542 extern "C"
14544 #endif
14545 /* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14547 char $ac_func ();
14548 /* The GNU C library defines this for functions which it implements
14549 to always fail with ENOSYS. Some functions are actually named
14550 something starting with __ and the normal name is an alias. */
14551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14552 choke me
14553 #else
14554 char (*f) () = $ac_func;
14555 #endif
14556 #ifdef __cplusplus
14558 #endif
14561 main ()
14563 return f != $ac_func;
14565 return 0;
14567 _ACEOF
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570 (eval $ac_link) 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest$ac_exeext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 eval "$as_ac_var=yes"
14591 else
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 eval "$as_ac_var=no"
14597 rm -f conftest.err conftest.$ac_objext \
14598 conftest$ac_exeext conftest.$ac_ext
14600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14602 if test `eval echo '${'$as_ac_var'}'` = yes; then
14603 cat >>confdefs.h <<_ACEOF
14604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14605 _ACEOF
14608 done
14610 else
14612 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14613 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14614 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14615 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14621 ac_ext=cc
14622 ac_cpp='$CXXCPP $CPPFLAGS'
14623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <math.h>
14635 main ()
14637 _hypotf(0, 0);
14639 return 0;
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -z "$ac_cxx_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 glibcxx_cv_func__hypotf_use=yes
14665 else
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 glibcxx_cv_func__hypotf_use=no
14671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14672 ac_ext=c
14673 ac_cpp='$CPP $CPPFLAGS'
14674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14682 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14683 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14685 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14687 for ac_func in _hypotf
14689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14690 echo "$as_me:$LINENO: checking for $ac_func" >&5
14691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14692 if eval "test \"\${$as_ac_var+set}\" = set"; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695 if test x$gcc_no_link = xyes; then
14696 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14698 { (exit 1); exit 1; }; }
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14708 #define $ac_func innocuous_$ac_func
14710 /* System header to define __stub macros and hopefully few prototypes,
14711 which can conflict with char $ac_func (); below.
14712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14713 <limits.h> exists even on freestanding compilers. */
14715 #ifdef __STDC__
14716 # include <limits.h>
14717 #else
14718 # include <assert.h>
14719 #endif
14721 #undef $ac_func
14723 /* Override any gcc2 internal prototype to avoid an error. */
14724 #ifdef __cplusplus
14725 extern "C"
14727 #endif
14728 /* We use char because int might match the return type of a gcc2
14729 builtin and then its argument prototype would still apply. */
14730 char $ac_func ();
14731 /* The GNU C library defines this for functions which it implements
14732 to always fail with ENOSYS. Some functions are actually named
14733 something starting with __ and the normal name is an alias. */
14734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14735 choke me
14736 #else
14737 char (*f) () = $ac_func;
14738 #endif
14739 #ifdef __cplusplus
14741 #endif
14744 main ()
14746 return f != $ac_func;
14748 return 0;
14750 _ACEOF
14751 rm -f conftest.$ac_objext conftest$ac_exeext
14752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14753 (eval $ac_link) 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -z "$ac_c_werror_flag"
14761 || test ! -s conftest.err'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; } &&
14767 { ac_try='test -s conftest$ac_exeext'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 eval "$as_ac_var=yes"
14774 else
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 eval "$as_ac_var=no"
14780 rm -f conftest.err conftest.$ac_objext \
14781 conftest$ac_exeext conftest.$ac_ext
14783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14785 if test `eval echo '${'$as_ac_var'}'` = yes; then
14786 cat >>confdefs.h <<_ACEOF
14787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14788 _ACEOF
14791 done
14798 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14799 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14800 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14801 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14807 ac_ext=cc
14808 ac_cpp='$CXXCPP $CPPFLAGS'
14809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <math.h>
14821 main ()
14823 ldexpf(0, 0);
14825 return 0;
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830 (eval $ac_compile) 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -z "$ac_cxx_werror_flag"
14838 || test ! -s conftest.err'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 glibcxx_cv_func_ldexpf_use=yes
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 glibcxx_cv_func_ldexpf_use=no
14857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14858 ac_ext=c
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14868 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14869 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14871 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14873 for ac_func in ldexpf
14875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14876 echo "$as_me:$LINENO: checking for $ac_func" >&5
14877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14878 if eval "test \"\${$as_ac_var+set}\" = set"; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881 if test x$gcc_no_link = xyes; then
14882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14884 { (exit 1); exit 1; }; }
14886 cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h. */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14894 #define $ac_func innocuous_$ac_func
14896 /* System header to define __stub macros and hopefully few prototypes,
14897 which can conflict with char $ac_func (); below.
14898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14899 <limits.h> exists even on freestanding compilers. */
14901 #ifdef __STDC__
14902 # include <limits.h>
14903 #else
14904 # include <assert.h>
14905 #endif
14907 #undef $ac_func
14909 /* Override any gcc2 internal prototype to avoid an error. */
14910 #ifdef __cplusplus
14911 extern "C"
14913 #endif
14914 /* We use char because int might match the return type of a gcc2
14915 builtin and then its argument prototype would still apply. */
14916 char $ac_func ();
14917 /* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14921 choke me
14922 #else
14923 char (*f) () = $ac_func;
14924 #endif
14925 #ifdef __cplusplus
14927 #endif
14930 main ()
14932 return f != $ac_func;
14934 return 0;
14936 _ACEOF
14937 rm -f conftest.$ac_objext conftest$ac_exeext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>conftest.er1
14940 ac_status=$?
14941 grep -v '^ *+' conftest.er1 >conftest.err
14942 rm -f conftest.er1
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -z "$ac_c_werror_flag"
14947 || test ! -s conftest.err'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; } &&
14953 { ac_try='test -s conftest$ac_exeext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 eval "$as_ac_var=yes"
14960 else
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 eval "$as_ac_var=no"
14966 rm -f conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14971 if test `eval echo '${'$as_ac_var'}'` = yes; then
14972 cat >>confdefs.h <<_ACEOF
14973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14974 _ACEOF
14977 done
14979 else
14981 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
14982 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
14983 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14984 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14990 ac_ext=cc
14991 ac_cpp='$CXXCPP $CPPFLAGS'
14992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <math.h>
15004 main ()
15006 _ldexpf(0, 0);
15008 return 0;
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_cxx_werror_flag"
15021 || test ! -s conftest.err'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 glibcxx_cv_func__ldexpf_use=yes
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 glibcxx_cv_func__ldexpf_use=no
15040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15041 ac_ext=c
15042 ac_cpp='$CPP $CPPFLAGS'
15043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15051 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
15052 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
15054 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
15056 for ac_func in _ldexpf
15058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15059 echo "$as_me:$LINENO: checking for $ac_func" >&5
15060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15061 if eval "test \"\${$as_ac_var+set}\" = set"; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064 if test x$gcc_no_link = xyes; then
15065 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15067 { (exit 1); exit 1; }; }
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h. */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15077 #define $ac_func innocuous_$ac_func
15079 /* System header to define __stub macros and hopefully few prototypes,
15080 which can conflict with char $ac_func (); below.
15081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15082 <limits.h> exists even on freestanding compilers. */
15084 #ifdef __STDC__
15085 # include <limits.h>
15086 #else
15087 # include <assert.h>
15088 #endif
15090 #undef $ac_func
15092 /* Override any gcc2 internal prototype to avoid an error. */
15093 #ifdef __cplusplus
15094 extern "C"
15096 #endif
15097 /* We use char because int might match the return type of a gcc2
15098 builtin and then its argument prototype would still apply. */
15099 char $ac_func ();
15100 /* The GNU C library defines this for functions which it implements
15101 to always fail with ENOSYS. Some functions are actually named
15102 something starting with __ and the normal name is an alias. */
15103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15104 choke me
15105 #else
15106 char (*f) () = $ac_func;
15107 #endif
15108 #ifdef __cplusplus
15110 #endif
15113 main ()
15115 return f != $ac_func;
15117 return 0;
15119 _ACEOF
15120 rm -f conftest.$ac_objext conftest$ac_exeext
15121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15122 (eval $ac_link) 2>conftest.er1
15123 ac_status=$?
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -z "$ac_c_werror_flag"
15130 || test ! -s conftest.err'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest$ac_exeext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142 eval "$as_ac_var=yes"
15143 else
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 eval "$as_ac_var=no"
15149 rm -f conftest.err conftest.$ac_objext \
15150 conftest$ac_exeext conftest.$ac_ext
15152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15154 if test `eval echo '${'$as_ac_var'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15157 _ACEOF
15160 done
15167 echo "$as_me:$LINENO: checking for logf declaration" >&5
15168 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
15169 if test x${glibcxx_cv_func_logf_use+set} != xset; then
15170 if test "${glibcxx_cv_func_logf_use+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15176 ac_ext=cc
15177 ac_cpp='$CXXCPP $CPPFLAGS'
15178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h. */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 #include <math.h>
15189 #ifdef HAVE_IEEEFP_H
15190 #include <ieeefp.h>
15191 #endif
15194 main ()
15196 logf(0);
15198 return 0;
15200 _ACEOF
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203 (eval $ac_compile) 2>conftest.er1
15204 ac_status=$?
15205 grep -v '^ *+' conftest.er1 >conftest.err
15206 rm -f conftest.er1
15207 cat conftest.err >&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } &&
15210 { ac_try='test -z "$ac_cxx_werror_flag"
15211 || test ! -s conftest.err'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; } &&
15217 { ac_try='test -s conftest.$ac_objext'
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15220 ac_status=$?
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15223 glibcxx_cv_func_logf_use=yes
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 glibcxx_cv_func_logf_use=no
15230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15231 ac_ext=c
15232 ac_cpp='$CPP $CPPFLAGS'
15233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15241 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15242 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15244 if test x$glibcxx_cv_func_logf_use = x"yes"; then
15246 for ac_func in logf
15248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15249 echo "$as_me:$LINENO: checking for $ac_func" >&5
15250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15251 if eval "test \"\${$as_ac_var+set}\" = set"; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254 if test x$gcc_no_link = xyes; then
15255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15257 { (exit 1); exit 1; }; }
15259 cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h. */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15267 #define $ac_func innocuous_$ac_func
15269 /* System header to define __stub macros and hopefully few prototypes,
15270 which can conflict with char $ac_func (); below.
15271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15272 <limits.h> exists even on freestanding compilers. */
15274 #ifdef __STDC__
15275 # include <limits.h>
15276 #else
15277 # include <assert.h>
15278 #endif
15280 #undef $ac_func
15282 /* Override any gcc2 internal prototype to avoid an error. */
15283 #ifdef __cplusplus
15284 extern "C"
15286 #endif
15287 /* We use char because int might match the return type of a gcc2
15288 builtin and then its argument prototype would still apply. */
15289 char $ac_func ();
15290 /* The GNU C library defines this for functions which it implements
15291 to always fail with ENOSYS. Some functions are actually named
15292 something starting with __ and the normal name is an alias. */
15293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15294 choke me
15295 #else
15296 char (*f) () = $ac_func;
15297 #endif
15298 #ifdef __cplusplus
15300 #endif
15303 main ()
15305 return f != $ac_func;
15307 return 0;
15309 _ACEOF
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312 (eval $ac_link) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag"
15320 || test ! -s conftest.err'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest$ac_exeext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 eval "$as_ac_var=yes"
15333 else
15334 echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15337 eval "$as_ac_var=no"
15339 rm -f conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15344 if test `eval echo '${'$as_ac_var'}'` = yes; then
15345 cat >>confdefs.h <<_ACEOF
15346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15347 _ACEOF
15350 done
15352 else
15354 echo "$as_me:$LINENO: checking for _logf declaration" >&5
15355 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15356 if test x${glibcxx_cv_func__logf_use+set} != xset; then
15357 if test "${glibcxx_cv_func__logf_use+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15363 ac_ext=cc
15364 ac_cpp='$CXXCPP $CPPFLAGS'
15365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 #include <math.h>
15376 #ifdef HAVE_IEEEFP_H
15377 #include <ieeefp.h>
15378 #endif
15381 main ()
15383 _logf(0);
15385 return 0;
15387 _ACEOF
15388 rm -f conftest.$ac_objext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15390 (eval $ac_compile) 2>conftest.er1
15391 ac_status=$?
15392 grep -v '^ *+' conftest.er1 >conftest.err
15393 rm -f conftest.er1
15394 cat conftest.err >&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -z "$ac_cxx_werror_flag"
15398 || test ! -s conftest.err'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest.$ac_objext'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 glibcxx_cv_func__logf_use=yes
15411 else
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 glibcxx_cv_func__logf_use=no
15417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15418 ac_ext=c
15419 ac_cpp='$CPP $CPPFLAGS'
15420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15429 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15431 if test x$glibcxx_cv_func__logf_use = x"yes"; then
15433 for ac_func in _logf
15435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 echo "$as_me:$LINENO: checking for $ac_func" >&5
15437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_var+set}\" = set"; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 if test x$gcc_no_link = xyes; then
15442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15444 { (exit 1); exit 1; }; }
15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h. */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15454 #define $ac_func innocuous_$ac_func
15456 /* System header to define __stub macros and hopefully few prototypes,
15457 which can conflict with char $ac_func (); below.
15458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459 <limits.h> exists even on freestanding compilers. */
15461 #ifdef __STDC__
15462 # include <limits.h>
15463 #else
15464 # include <assert.h>
15465 #endif
15467 #undef $ac_func
15469 /* Override any gcc2 internal prototype to avoid an error. */
15470 #ifdef __cplusplus
15471 extern "C"
15473 #endif
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15476 char $ac_func ();
15477 /* The GNU C library defines this for functions which it implements
15478 to always fail with ENOSYS. Some functions are actually named
15479 something starting with __ and the normal name is an alias. */
15480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15481 choke me
15482 #else
15483 char (*f) () = $ac_func;
15484 #endif
15485 #ifdef __cplusplus
15487 #endif
15490 main ()
15492 return f != $ac_func;
15494 return 0;
15496 _ACEOF
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499 (eval $ac_link) 2>conftest.er1
15500 ac_status=$?
15501 grep -v '^ *+' conftest.er1 >conftest.err
15502 rm -f conftest.er1
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag"
15507 || test ! -s conftest.err'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest$ac_exeext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 eval "$as_ac_var=yes"
15520 else
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 eval "$as_ac_var=no"
15526 rm -f conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15531 if test `eval echo '${'$as_ac_var'}'` = yes; then
15532 cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 _ACEOF
15537 done
15544 echo "$as_me:$LINENO: checking for log10f declaration" >&5
15545 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15546 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15547 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15553 ac_ext=cc
15554 ac_cpp='$CXXCPP $CPPFLAGS'
15555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h. */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 #include <math.h>
15566 #ifdef HAVE_IEEEFP_H
15567 #include <ieeefp.h>
15568 #endif
15571 main ()
15573 log10f(0);
15575 return 0;
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_cxx_werror_flag"
15588 || test ! -s conftest.err'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 glibcxx_cv_func_log10f_use=yes
15601 else
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15605 glibcxx_cv_func_log10f_use=no
15607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15608 ac_ext=c
15609 ac_cpp='$CPP $CPPFLAGS'
15610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15618 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
15619 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15621 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15623 for ac_func in log10f
15625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15626 echo "$as_me:$LINENO: checking for $ac_func" >&5
15627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15628 if eval "test \"\${$as_ac_var+set}\" = set"; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 if test x$gcc_no_link = xyes; then
15632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15634 { (exit 1); exit 1; }; }
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15644 #define $ac_func innocuous_$ac_func
15646 /* System header to define __stub macros and hopefully few prototypes,
15647 which can conflict with char $ac_func (); below.
15648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15649 <limits.h> exists even on freestanding compilers. */
15651 #ifdef __STDC__
15652 # include <limits.h>
15653 #else
15654 # include <assert.h>
15655 #endif
15657 #undef $ac_func
15659 /* Override any gcc2 internal prototype to avoid an error. */
15660 #ifdef __cplusplus
15661 extern "C"
15663 #endif
15664 /* We use char because int might match the return type of a gcc2
15665 builtin and then its argument prototype would still apply. */
15666 char $ac_func ();
15667 /* The GNU C library defines this for functions which it implements
15668 to always fail with ENOSYS. Some functions are actually named
15669 something starting with __ and the normal name is an alias. */
15670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15671 choke me
15672 #else
15673 char (*f) () = $ac_func;
15674 #endif
15675 #ifdef __cplusplus
15677 #endif
15680 main ()
15682 return f != $ac_func;
15684 return 0;
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689 (eval $ac_link) 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
15696 { ac_try='test -z "$ac_c_werror_flag"
15697 || test ! -s conftest.err'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest$ac_exeext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 eval "$as_ac_var=yes"
15710 else
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15714 eval "$as_ac_var=no"
15716 rm -f conftest.err conftest.$ac_objext \
15717 conftest$ac_exeext conftest.$ac_ext
15719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15721 if test `eval echo '${'$as_ac_var'}'` = yes; then
15722 cat >>confdefs.h <<_ACEOF
15723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15724 _ACEOF
15727 done
15729 else
15731 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15732 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15733 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15734 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15740 ac_ext=cc
15741 ac_cpp='$CXXCPP $CPPFLAGS'
15742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 #include <math.h>
15753 #ifdef HAVE_IEEEFP_H
15754 #include <ieeefp.h>
15755 #endif
15758 main ()
15760 _log10f(0);
15762 return 0;
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>conftest.er1
15768 ac_status=$?
15769 grep -v '^ *+' conftest.er1 >conftest.err
15770 rm -f conftest.er1
15771 cat conftest.err >&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } &&
15774 { ac_try='test -z "$ac_cxx_werror_flag"
15775 || test ! -s conftest.err'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 glibcxx_cv_func__log10f_use=yes
15788 else
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15792 glibcxx_cv_func__log10f_use=no
15794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15795 ac_ext=c
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15805 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15806 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15808 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15810 for ac_func in _log10f
15812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$as_ac_var+set}\" = set"; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818 if test x$gcc_no_link = xyes; then
15819 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15821 { (exit 1); exit 1; }; }
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15831 #define $ac_func innocuous_$ac_func
15833 /* System header to define __stub macros and hopefully few prototypes,
15834 which can conflict with char $ac_func (); below.
15835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15836 <limits.h> exists even on freestanding compilers. */
15838 #ifdef __STDC__
15839 # include <limits.h>
15840 #else
15841 # include <assert.h>
15842 #endif
15844 #undef $ac_func
15846 /* Override any gcc2 internal prototype to avoid an error. */
15847 #ifdef __cplusplus
15848 extern "C"
15850 #endif
15851 /* We use char because int might match the return type of a gcc2
15852 builtin and then its argument prototype would still apply. */
15853 char $ac_func ();
15854 /* The GNU C library defines this for functions which it implements
15855 to always fail with ENOSYS. Some functions are actually named
15856 something starting with __ and the normal name is an alias. */
15857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15858 choke me
15859 #else
15860 char (*f) () = $ac_func;
15861 #endif
15862 #ifdef __cplusplus
15864 #endif
15867 main ()
15869 return f != $ac_func;
15871 return 0;
15873 _ACEOF
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876 (eval $ac_link) 2>conftest.er1
15877 ac_status=$?
15878 grep -v '^ *+' conftest.er1 >conftest.err
15879 rm -f conftest.er1
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try='test -z "$ac_c_werror_flag"
15884 || test ! -s conftest.err'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest$ac_exeext'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 eval "$as_ac_var=yes"
15897 else
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 eval "$as_ac_var=no"
15903 rm -f conftest.err conftest.$ac_objext \
15904 conftest$ac_exeext conftest.$ac_ext
15906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15908 if test `eval echo '${'$as_ac_var'}'` = yes; then
15909 cat >>confdefs.h <<_ACEOF
15910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15911 _ACEOF
15914 done
15921 echo "$as_me:$LINENO: checking for modff declaration" >&5
15922 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
15923 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15924 if test "${glibcxx_cv_func_modff_use+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15930 ac_ext=cc
15931 ac_cpp='$CXXCPP $CPPFLAGS'
15932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <math.h>
15944 main ()
15946 modff(0, 0);
15948 return 0;
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15953 (eval $ac_compile) 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_cxx_werror_flag"
15961 || test ! -s conftest.err'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 glibcxx_cv_func_modff_use=yes
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 glibcxx_cv_func_modff_use=no
15980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15981 ac_ext=c
15982 ac_cpp='$CPP $CPPFLAGS'
15983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15991 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
15992 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
15994 if test x$glibcxx_cv_func_modff_use = x"yes"; then
15996 for ac_func in modff
15998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15999 echo "$as_me:$LINENO: checking for $ac_func" >&5
16000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16001 if eval "test \"\${$as_ac_var+set}\" = set"; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004 if test x$gcc_no_link = xyes; then
16005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16007 { (exit 1); exit 1; }; }
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h. */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16017 #define $ac_func innocuous_$ac_func
16019 /* System header to define __stub macros and hopefully few prototypes,
16020 which can conflict with char $ac_func (); below.
16021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16022 <limits.h> exists even on freestanding compilers. */
16024 #ifdef __STDC__
16025 # include <limits.h>
16026 #else
16027 # include <assert.h>
16028 #endif
16030 #undef $ac_func
16032 /* Override any gcc2 internal prototype to avoid an error. */
16033 #ifdef __cplusplus
16034 extern "C"
16036 #endif
16037 /* We use char because int might match the return type of a gcc2
16038 builtin and then its argument prototype would still apply. */
16039 char $ac_func ();
16040 /* The GNU C library defines this for functions which it implements
16041 to always fail with ENOSYS. Some functions are actually named
16042 something starting with __ and the normal name is an alias. */
16043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16044 choke me
16045 #else
16046 char (*f) () = $ac_func;
16047 #endif
16048 #ifdef __cplusplus
16050 #endif
16053 main ()
16055 return f != $ac_func;
16057 return 0;
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16062 (eval $ac_link) 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag"
16070 || test ! -s conftest.err'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest$ac_exeext'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }; then
16082 eval "$as_ac_var=yes"
16083 else
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16087 eval "$as_ac_var=no"
16089 rm -f conftest.err conftest.$ac_objext \
16090 conftest$ac_exeext conftest.$ac_ext
16092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095 cat >>confdefs.h <<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16097 _ACEOF
16100 done
16102 else
16104 echo "$as_me:$LINENO: checking for _modff declaration" >&5
16105 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
16106 if test x${glibcxx_cv_func__modff_use+set} != xset; then
16107 if test "${glibcxx_cv_func__modff_use+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16113 ac_ext=cc
16114 ac_cpp='$CXXCPP $CPPFLAGS'
16115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 #include <math.h>
16127 main ()
16129 _modff(0, 0);
16131 return 0;
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -z "$ac_cxx_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 glibcxx_cv_func__modff_use=yes
16157 else
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 glibcxx_cv_func__modff_use=no
16163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16164 ac_ext=c
16165 ac_cpp='$CPP $CPPFLAGS'
16166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16174 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
16175 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
16177 if test x$glibcxx_cv_func__modff_use = x"yes"; then
16179 for ac_func in _modff
16181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16182 echo "$as_me:$LINENO: checking for $ac_func" >&5
16183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16184 if eval "test \"\${$as_ac_var+set}\" = set"; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187 if test x$gcc_no_link = xyes; then
16188 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16190 { (exit 1); exit 1; }; }
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h. */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16200 #define $ac_func innocuous_$ac_func
16202 /* System header to define __stub macros and hopefully few prototypes,
16203 which can conflict with char $ac_func (); below.
16204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16205 <limits.h> exists even on freestanding compilers. */
16207 #ifdef __STDC__
16208 # include <limits.h>
16209 #else
16210 # include <assert.h>
16211 #endif
16213 #undef $ac_func
16215 /* Override any gcc2 internal prototype to avoid an error. */
16216 #ifdef __cplusplus
16217 extern "C"
16219 #endif
16220 /* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16222 char $ac_func ();
16223 /* The GNU C library defines this for functions which it implements
16224 to always fail with ENOSYS. Some functions are actually named
16225 something starting with __ and the normal name is an alias. */
16226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16227 choke me
16228 #else
16229 char (*f) () = $ac_func;
16230 #endif
16231 #ifdef __cplusplus
16233 #endif
16236 main ()
16238 return f != $ac_func;
16240 return 0;
16242 _ACEOF
16243 rm -f conftest.$ac_objext conftest$ac_exeext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16245 (eval $ac_link) 2>conftest.er1
16246 ac_status=$?
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest$ac_exeext'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 eval "$as_ac_var=yes"
16266 else
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 eval "$as_ac_var=no"
16272 rm -f conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
16275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16277 if test `eval echo '${'$as_ac_var'}'` = yes; then
16278 cat >>confdefs.h <<_ACEOF
16279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16280 _ACEOF
16283 done
16290 echo "$as_me:$LINENO: checking for powf declaration" >&5
16291 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16292 if test x${glibcxx_cv_func_powf_use+set} != xset; then
16293 if test "${glibcxx_cv_func_powf_use+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16299 ac_ext=cc
16300 ac_cpp='$CXXCPP $CPPFLAGS'
16301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16305 cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h. */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 #include <math.h>
16313 main ()
16315 powf(0, 0);
16317 return 0;
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16322 (eval $ac_compile) 2>conftest.er1
16323 ac_status=$?
16324 grep -v '^ *+' conftest.er1 >conftest.err
16325 rm -f conftest.er1
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } &&
16329 { ac_try='test -z "$ac_cxx_werror_flag"
16330 || test ! -s conftest.err'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; } &&
16336 { ac_try='test -s conftest.$ac_objext'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 glibcxx_cv_func_powf_use=yes
16343 else
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 glibcxx_cv_func_powf_use=no
16349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16350 ac_ext=c
16351 ac_cpp='$CPP $CPPFLAGS'
16352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16360 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16361 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16363 if test x$glibcxx_cv_func_powf_use = x"yes"; then
16365 for ac_func in powf
16367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16368 echo "$as_me:$LINENO: checking for $ac_func" >&5
16369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16370 if eval "test \"\${$as_ac_var+set}\" = set"; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 if test x$gcc_no_link = xyes; then
16374 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16375 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16376 { (exit 1); exit 1; }; }
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16386 #define $ac_func innocuous_$ac_func
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func (); below.
16390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391 <limits.h> exists even on freestanding compilers. */
16393 #ifdef __STDC__
16394 # include <limits.h>
16395 #else
16396 # include <assert.h>
16397 #endif
16399 #undef $ac_func
16401 /* Override any gcc2 internal prototype to avoid an error. */
16402 #ifdef __cplusplus
16403 extern "C"
16405 #endif
16406 /* We use char because int might match the return type of a gcc2
16407 builtin and then its argument prototype would still apply. */
16408 char $ac_func ();
16409 /* The GNU C library defines this for functions which it implements
16410 to always fail with ENOSYS. Some functions are actually named
16411 something starting with __ and the normal name is an alias. */
16412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16413 choke me
16414 #else
16415 char (*f) () = $ac_func;
16416 #endif
16417 #ifdef __cplusplus
16419 #endif
16422 main ()
16424 return f != $ac_func;
16426 return 0;
16428 _ACEOF
16429 rm -f conftest.$ac_objext conftest$ac_exeext
16430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16431 (eval $ac_link) 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } &&
16438 { ac_try='test -z "$ac_c_werror_flag"
16439 || test ! -s conftest.err'
16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 (eval $ac_try) 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; } &&
16445 { ac_try='test -s conftest$ac_exeext'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16451 eval "$as_ac_var=yes"
16452 else
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 eval "$as_ac_var=no"
16458 rm -f conftest.err conftest.$ac_objext \
16459 conftest$ac_exeext conftest.$ac_ext
16461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16463 if test `eval echo '${'$as_ac_var'}'` = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16466 _ACEOF
16469 done
16471 else
16473 echo "$as_me:$LINENO: checking for _powf declaration" >&5
16474 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16475 if test x${glibcxx_cv_func__powf_use+set} != xset; then
16476 if test "${glibcxx_cv_func__powf_use+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16482 ac_ext=cc
16483 ac_cpp='$CXXCPP $CPPFLAGS'
16484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h. */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 #include <math.h>
16496 main ()
16498 _powf(0, 0);
16500 return 0;
16502 _ACEOF
16503 rm -f conftest.$ac_objext
16504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16505 (eval $ac_compile) 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_cxx_werror_flag"
16513 || test ! -s conftest.err'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; } &&
16519 { ac_try='test -s conftest.$ac_objext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 glibcxx_cv_func__powf_use=yes
16526 else
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 glibcxx_cv_func__powf_use=no
16532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16533 ac_ext=c
16534 ac_cpp='$CPP $CPPFLAGS'
16535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16543 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16544 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16546 if test x$glibcxx_cv_func__powf_use = x"yes"; then
16548 for ac_func in _powf
16550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16551 echo "$as_me:$LINENO: checking for $ac_func" >&5
16552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16553 if eval "test \"\${$as_ac_var+set}\" = set"; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 if test x$gcc_no_link = xyes; then
16557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16559 { (exit 1); exit 1; }; }
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16569 #define $ac_func innocuous_$ac_func
16571 /* System header to define __stub macros and hopefully few prototypes,
16572 which can conflict with char $ac_func (); below.
16573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16574 <limits.h> exists even on freestanding compilers. */
16576 #ifdef __STDC__
16577 # include <limits.h>
16578 #else
16579 # include <assert.h>
16580 #endif
16582 #undef $ac_func
16584 /* Override any gcc2 internal prototype to avoid an error. */
16585 #ifdef __cplusplus
16586 extern "C"
16588 #endif
16589 /* We use char because int might match the return type of a gcc2
16590 builtin and then its argument prototype would still apply. */
16591 char $ac_func ();
16592 /* The GNU C library defines this for functions which it implements
16593 to always fail with ENOSYS. Some functions are actually named
16594 something starting with __ and the normal name is an alias. */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596 choke me
16597 #else
16598 char (*f) () = $ac_func;
16599 #endif
16600 #ifdef __cplusplus
16602 #endif
16605 main ()
16607 return f != $ac_func;
16609 return 0;
16611 _ACEOF
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614 (eval $ac_link) 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
16621 { ac_try='test -z "$ac_c_werror_flag"
16622 || test ! -s conftest.err'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 eval "$as_ac_var=yes"
16635 else
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 eval "$as_ac_var=no"
16641 rm -f conftest.err conftest.$ac_objext \
16642 conftest$ac_exeext conftest.$ac_ext
16644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16646 if test `eval echo '${'$as_ac_var'}'` = yes; then
16647 cat >>confdefs.h <<_ACEOF
16648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16649 _ACEOF
16652 done
16659 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16660 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16661 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16662 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16668 ac_ext=cc
16669 ac_cpp='$CXXCPP $CPPFLAGS'
16670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <math.h>
16681 #ifdef HAVE_IEEEFP_H
16682 #include <ieeefp.h>
16683 #endif
16686 main ()
16688 sqrtf(0);
16690 return 0;
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695 (eval $ac_compile) 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -z "$ac_cxx_werror_flag"
16703 || test ! -s conftest.err'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 glibcxx_cv_func_sqrtf_use=yes
16716 else
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 glibcxx_cv_func_sqrtf_use=no
16722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16723 ac_ext=c
16724 ac_cpp='$CPP $CPPFLAGS'
16725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16733 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16734 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16736 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16738 for ac_func in sqrtf
16740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16741 echo "$as_me:$LINENO: checking for $ac_func" >&5
16742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16743 if eval "test \"\${$as_ac_var+set}\" = set"; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746 if test x$gcc_no_link = xyes; then
16747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16749 { (exit 1); exit 1; }; }
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h. */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16759 #define $ac_func innocuous_$ac_func
16761 /* System header to define __stub macros and hopefully few prototypes,
16762 which can conflict with char $ac_func (); below.
16763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16764 <limits.h> exists even on freestanding compilers. */
16766 #ifdef __STDC__
16767 # include <limits.h>
16768 #else
16769 # include <assert.h>
16770 #endif
16772 #undef $ac_func
16774 /* Override any gcc2 internal prototype to avoid an error. */
16775 #ifdef __cplusplus
16776 extern "C"
16778 #endif
16779 /* We use char because int might match the return type of a gcc2
16780 builtin and then its argument prototype would still apply. */
16781 char $ac_func ();
16782 /* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16786 choke me
16787 #else
16788 char (*f) () = $ac_func;
16789 #endif
16790 #ifdef __cplusplus
16792 #endif
16795 main ()
16797 return f != $ac_func;
16799 return 0;
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804 (eval $ac_link) 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest$ac_exeext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 eval "$as_ac_var=yes"
16825 else
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 eval "$as_ac_var=no"
16831 rm -f conftest.err conftest.$ac_objext \
16832 conftest$ac_exeext conftest.$ac_ext
16834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16836 if test `eval echo '${'$as_ac_var'}'` = yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16839 _ACEOF
16842 done
16844 else
16846 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16847 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16848 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16849 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16855 ac_ext=cc
16856 ac_cpp='$CXXCPP $CPPFLAGS'
16857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 #include <math.h>
16868 #ifdef HAVE_IEEEFP_H
16869 #include <ieeefp.h>
16870 #endif
16873 main ()
16875 _sqrtf(0);
16877 return 0;
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882 (eval $ac_compile) 2>conftest.er1
16883 ac_status=$?
16884 grep -v '^ *+' conftest.er1 >conftest.err
16885 rm -f conftest.er1
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_cxx_werror_flag"
16890 || test ! -s conftest.err'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest.$ac_objext'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 glibcxx_cv_func__sqrtf_use=yes
16903 else
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 glibcxx_cv_func__sqrtf_use=no
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910 ac_ext=c
16911 ac_cpp='$CPP $CPPFLAGS'
16912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16920 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
16921 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
16923 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
16925 for ac_func in _sqrtf
16927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16928 echo "$as_me:$LINENO: checking for $ac_func" >&5
16929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16930 if eval "test \"\${$as_ac_var+set}\" = set"; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 if test x$gcc_no_link = xyes; then
16934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16936 { (exit 1); exit 1; }; }
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16946 #define $ac_func innocuous_$ac_func
16948 /* System header to define __stub macros and hopefully few prototypes,
16949 which can conflict with char $ac_func (); below.
16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951 <limits.h> exists even on freestanding compilers. */
16953 #ifdef __STDC__
16954 # include <limits.h>
16955 #else
16956 # include <assert.h>
16957 #endif
16959 #undef $ac_func
16961 /* Override any gcc2 internal prototype to avoid an error. */
16962 #ifdef __cplusplus
16963 extern "C"
16965 #endif
16966 /* We use char because int might match the return type of a gcc2
16967 builtin and then its argument prototype would still apply. */
16968 char $ac_func ();
16969 /* The GNU C library defines this for functions which it implements
16970 to always fail with ENOSYS. Some functions are actually named
16971 something starting with __ and the normal name is an alias. */
16972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16973 choke me
16974 #else
16975 char (*f) () = $ac_func;
16976 #endif
16977 #ifdef __cplusplus
16979 #endif
16982 main ()
16984 return f != $ac_func;
16986 return 0;
16988 _ACEOF
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991 (eval $ac_link) 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -z "$ac_c_werror_flag"
16999 || test ! -s conftest.err'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 eval "$as_ac_var=yes"
17012 else
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 eval "$as_ac_var=no"
17018 rm -f conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17023 if test `eval echo '${'$as_ac_var'}'` = yes; then
17024 cat >>confdefs.h <<_ACEOF
17025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17026 _ACEOF
17029 done
17036 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
17037 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
17038 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
17039 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17045 ac_ext=cc
17046 ac_cpp='$CXXCPP $CPPFLAGS'
17047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17051 cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h. */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 #include <math.h>
17059 main ()
17061 sincosf(0, 0, 0);
17063 return 0;
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068 (eval $ac_compile) 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_cxx_werror_flag"
17076 || test ! -s conftest.err'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 glibcxx_cv_func_sincosf_use=yes
17089 else
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 glibcxx_cv_func_sincosf_use=no
17095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096 ac_ext=c
17097 ac_cpp='$CPP $CPPFLAGS'
17098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17106 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
17107 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
17109 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
17111 for ac_func in sincosf
17113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17114 echo "$as_me:$LINENO: checking for $ac_func" >&5
17115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17116 if eval "test \"\${$as_ac_var+set}\" = set"; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119 if test x$gcc_no_link = xyes; then
17120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17122 { (exit 1); exit 1; }; }
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17132 #define $ac_func innocuous_$ac_func
17134 /* System header to define __stub macros and hopefully few prototypes,
17135 which can conflict with char $ac_func (); below.
17136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137 <limits.h> exists even on freestanding compilers. */
17139 #ifdef __STDC__
17140 # include <limits.h>
17141 #else
17142 # include <assert.h>
17143 #endif
17145 #undef $ac_func
17147 /* Override any gcc2 internal prototype to avoid an error. */
17148 #ifdef __cplusplus
17149 extern "C"
17151 #endif
17152 /* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
17154 char $ac_func ();
17155 /* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
17158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159 choke me
17160 #else
17161 char (*f) () = $ac_func;
17162 #endif
17163 #ifdef __cplusplus
17165 #endif
17168 main ()
17170 return f != $ac_func;
17172 return 0;
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 eval "$as_ac_var=yes"
17198 else
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 eval "$as_ac_var=no"
17204 rm -f conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17209 if test `eval echo '${'$as_ac_var'}'` = yes; then
17210 cat >>confdefs.h <<_ACEOF
17211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212 _ACEOF
17215 done
17217 else
17219 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
17220 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
17221 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
17222 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17228 ac_ext=cc
17229 ac_cpp='$CXXCPP $CPPFLAGS'
17230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17234 cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 #include <math.h>
17242 main ()
17244 _sincosf(0, 0, 0);
17246 return 0;
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_cxx_werror_flag"
17259 || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 glibcxx_cv_func__sincosf_use=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 glibcxx_cv_func__sincosf_use=no
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279 ac_ext=c
17280 ac_cpp='$CPP $CPPFLAGS'
17281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17289 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17290 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17292 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17294 for ac_func in _sincosf
17296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297 echo "$as_me:$LINENO: checking for $ac_func" >&5
17298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17299 if eval "test \"\${$as_ac_var+set}\" = set"; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302 if test x$gcc_no_link = xyes; then
17303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17305 { (exit 1); exit 1; }; }
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315 #define $ac_func innocuous_$ac_func
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17322 #ifdef __STDC__
17323 # include <limits.h>
17324 #else
17325 # include <assert.h>
17326 #endif
17328 #undef $ac_func
17330 /* Override any gcc2 internal prototype to avoid an error. */
17331 #ifdef __cplusplus
17332 extern "C"
17334 #endif
17335 /* We use char because int might match the return type of a gcc2
17336 builtin and then its argument prototype would still apply. */
17337 char $ac_func ();
17338 /* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
17341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17342 choke me
17343 #else
17344 char (*f) () = $ac_func;
17345 #endif
17346 #ifdef __cplusplus
17348 #endif
17351 main ()
17353 return f != $ac_func;
17355 return 0;
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17360 (eval $ac_link) 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest$ac_exeext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 eval "$as_ac_var=yes"
17381 else
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 eval "$as_ac_var=no"
17387 rm -f conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17392 if test `eval echo '${'$as_ac_var'}'` = yes; then
17393 cat >>confdefs.h <<_ACEOF
17394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17395 _ACEOF
17398 done
17405 echo "$as_me:$LINENO: checking for finitef declaration" >&5
17406 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17407 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17408 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17414 ac_ext=cc
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 #include <math.h>
17427 #ifdef HAVE_IEEEFP_H
17428 #include <ieeefp.h>
17429 #endif
17432 main ()
17434 finitef(0);
17436 return 0;
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441 (eval $ac_compile) 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_cxx_werror_flag"
17449 || test ! -s conftest.err'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 glibcxx_cv_func_finitef_use=yes
17462 else
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 glibcxx_cv_func_finitef_use=no
17468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17469 ac_ext=c
17470 ac_cpp='$CPP $CPPFLAGS'
17471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17479 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17480 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17482 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17484 for ac_func in finitef
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 if test x$gcc_no_link = xyes; then
17493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17495 { (exit 1); exit 1; }; }
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17505 #define $ac_func innocuous_$ac_func
17507 /* System header to define __stub macros and hopefully few prototypes,
17508 which can conflict with char $ac_func (); below.
17509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510 <limits.h> exists even on freestanding compilers. */
17512 #ifdef __STDC__
17513 # include <limits.h>
17514 #else
17515 # include <assert.h>
17516 #endif
17518 #undef $ac_func
17520 /* Override any gcc2 internal prototype to avoid an error. */
17521 #ifdef __cplusplus
17522 extern "C"
17524 #endif
17525 /* We use char because int might match the return type of a gcc2
17526 builtin and then its argument prototype would still apply. */
17527 char $ac_func ();
17528 /* The GNU C library defines this for functions which it implements
17529 to always fail with ENOSYS. Some functions are actually named
17530 something starting with __ and the normal name is an alias. */
17531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17532 choke me
17533 #else
17534 char (*f) () = $ac_func;
17535 #endif
17536 #ifdef __cplusplus
17538 #endif
17541 main ()
17543 return f != $ac_func;
17545 return 0;
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550 (eval $ac_link) 2>conftest.er1
17551 ac_status=$?
17552 grep -v '^ *+' conftest.er1 >conftest.err
17553 rm -f conftest.er1
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag"
17558 || test ! -s conftest.err'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest$ac_exeext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 eval "$as_ac_var=yes"
17571 else
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 eval "$as_ac_var=no"
17577 rm -f conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17582 if test `eval echo '${'$as_ac_var'}'` = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17585 _ACEOF
17588 done
17590 else
17592 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17593 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17594 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17595 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17601 ac_ext=cc
17602 ac_cpp='$CXXCPP $CPPFLAGS'
17603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17607 cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h. */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 #include <math.h>
17614 #ifdef HAVE_IEEEFP_H
17615 #include <ieeefp.h>
17616 #endif
17619 main ()
17621 _finitef(0);
17623 return 0;
17625 _ACEOF
17626 rm -f conftest.$ac_objext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17628 (eval $ac_compile) 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_cxx_werror_flag"
17636 || test ! -s conftest.err'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest.$ac_objext'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17648 glibcxx_cv_func__finitef_use=yes
17649 else
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 glibcxx_cv_func__finitef_use=no
17655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17656 ac_ext=c
17657 ac_cpp='$CPP $CPPFLAGS'
17658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17666 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17667 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17669 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17671 for ac_func in _finitef
17673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674 echo "$as_me:$LINENO: checking for $ac_func" >&5
17675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17676 if eval "test \"\${$as_ac_var+set}\" = set"; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679 if test x$gcc_no_link = xyes; then
17680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17682 { (exit 1); exit 1; }; }
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692 #define $ac_func innocuous_$ac_func
17694 /* System header to define __stub macros and hopefully few prototypes,
17695 which can conflict with char $ac_func (); below.
17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697 <limits.h> exists even on freestanding compilers. */
17699 #ifdef __STDC__
17700 # include <limits.h>
17701 #else
17702 # include <assert.h>
17703 #endif
17705 #undef $ac_func
17707 /* Override any gcc2 internal prototype to avoid an error. */
17708 #ifdef __cplusplus
17709 extern "C"
17711 #endif
17712 /* We use char because int might match the return type of a gcc2
17713 builtin and then its argument prototype would still apply. */
17714 char $ac_func ();
17715 /* The GNU C library defines this for functions which it implements
17716 to always fail with ENOSYS. Some functions are actually named
17717 something starting with __ and the normal name is an alias. */
17718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17719 choke me
17720 #else
17721 char (*f) () = $ac_func;
17722 #endif
17723 #ifdef __cplusplus
17725 #endif
17728 main ()
17730 return f != $ac_func;
17732 return 0;
17734 _ACEOF
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17737 (eval $ac_link) 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag"
17745 || test ! -s conftest.err'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest$ac_exeext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 eval "$as_ac_var=yes"
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 eval "$as_ac_var=no"
17764 rm -f conftest.err conftest.$ac_objext \
17765 conftest$ac_exeext conftest.$ac_ext
17767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17769 if test `eval echo '${'$as_ac_var'}'` = yes; then
17770 cat >>confdefs.h <<_ACEOF
17771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772 _ACEOF
17775 done
17782 echo "$as_me:$LINENO: checking for long double trig functions" >&5
17783 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17784 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17790 ac_ext=cc
17791 ac_cpp='$CXXCPP $CPPFLAGS'
17792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <math.h>
17804 main ()
17806 `for x in acosl asinl atanl \
17807 cosl sinl tanl \
17808 coshl sinhl tanhl; do echo "$x (0);"; done`
17810 return 0;
17812 _ACEOF
17813 rm -f conftest.$ac_objext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815 (eval $ac_compile) 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_cxx_werror_flag"
17823 || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 glibcxx_cv_func_long_double_trig_use=yes
17836 else
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 glibcxx_cv_func_long_double_trig_use=no
17842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17843 ac_ext=c
17844 ac_cpp='$CPP $CPPFLAGS'
17845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17851 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17852 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17853 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17863 for ac_func in acosl asinl atanl \
17864 cosl sinl tanl \
17865 coshl sinhl tanhl
17867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17868 echo "$as_me:$LINENO: checking for $ac_func" >&5
17869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17870 if eval "test \"\${$as_ac_var+set}\" = set"; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873 if test x$gcc_no_link = xyes; then
17874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17876 { (exit 1); exit 1; }; }
17878 cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h. */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17886 #define $ac_func innocuous_$ac_func
17888 /* System header to define __stub macros and hopefully few prototypes,
17889 which can conflict with char $ac_func (); below.
17890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17891 <limits.h> exists even on freestanding compilers. */
17893 #ifdef __STDC__
17894 # include <limits.h>
17895 #else
17896 # include <assert.h>
17897 #endif
17899 #undef $ac_func
17901 /* Override any gcc2 internal prototype to avoid an error. */
17902 #ifdef __cplusplus
17903 extern "C"
17905 #endif
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17908 char $ac_func ();
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17913 choke me
17914 #else
17915 char (*f) () = $ac_func;
17916 #endif
17917 #ifdef __cplusplus
17919 #endif
17922 main ()
17924 return f != $ac_func;
17926 return 0;
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest$ac_exeext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 eval "$as_ac_var=yes"
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 eval "$as_ac_var=no"
17958 rm -f conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17963 if test `eval echo '${'$as_ac_var'}'` = yes; then
17964 cat >>confdefs.h <<_ACEOF
17965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17966 _ACEOF
17969 done
17974 echo "$as_me:$LINENO: checking for long double round functions" >&5
17975 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
17976 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17982 ac_ext=cc
17983 ac_cpp='$CXXCPP $CPPFLAGS'
17984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h. */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 #include <math.h>
17996 main ()
17998 `for x in ceill floorl; do echo "$x (0);"; done`
18000 return 0;
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18005 (eval $ac_compile) 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -z "$ac_cxx_werror_flag"
18013 || test ! -s conftest.err'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try='test -s conftest.$ac_objext'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 glibcxx_cv_func_long_double_round_use=yes
18026 else
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 glibcxx_cv_func_long_double_round_use=no
18032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18033 ac_ext=c
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
18042 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
18043 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
18046 for ac_func in ceill floorl
18048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049 echo "$as_me:$LINENO: checking for $ac_func" >&5
18050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18051 if eval "test \"\${$as_ac_var+set}\" = set"; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054 if test x$gcc_no_link = xyes; then
18055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18057 { (exit 1); exit 1; }; }
18059 cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h. */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18067 #define $ac_func innocuous_$ac_func
18069 /* System header to define __stub macros and hopefully few prototypes,
18070 which can conflict with char $ac_func (); below.
18071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18072 <limits.h> exists even on freestanding compilers. */
18074 #ifdef __STDC__
18075 # include <limits.h>
18076 #else
18077 # include <assert.h>
18078 #endif
18080 #undef $ac_func
18082 /* Override any gcc2 internal prototype to avoid an error. */
18083 #ifdef __cplusplus
18084 extern "C"
18086 #endif
18087 /* We use char because int might match the return type of a gcc2
18088 builtin and then its argument prototype would still apply. */
18089 char $ac_func ();
18090 /* The GNU C library defines this for functions which it implements
18091 to always fail with ENOSYS. Some functions are actually named
18092 something starting with __ and the normal name is an alias. */
18093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18094 choke me
18095 #else
18096 char (*f) () = $ac_func;
18097 #endif
18098 #ifdef __cplusplus
18100 #endif
18103 main ()
18105 return f != $ac_func;
18107 return 0;
18109 _ACEOF
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18112 (eval $ac_link) 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag"
18120 || test ! -s conftest.err'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest$ac_exeext'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 eval "$as_ac_var=yes"
18133 else
18134 echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 eval "$as_ac_var=no"
18139 rm -f conftest.err conftest.$ac_objext \
18140 conftest$ac_exeext conftest.$ac_ext
18142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18144 if test `eval echo '${'$as_ac_var'}'` = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18147 _ACEOF
18150 done
18156 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
18157 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
18158 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
18159 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 else
18165 ac_ext=cc
18166 ac_cpp='$CXXCPP $CPPFLAGS'
18167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18171 cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h. */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 #include <math.h>
18178 #ifdef HAVE_IEEEFP_H
18179 #include <ieeefp.h>
18180 #endif
18183 main ()
18185 isnanl(0);
18187 return 0;
18189 _ACEOF
18190 rm -f conftest.$ac_objext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192 (eval $ac_compile) 2>conftest.er1
18193 ac_status=$?
18194 grep -v '^ *+' conftest.er1 >conftest.err
18195 rm -f conftest.er1
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -z "$ac_cxx_werror_flag"
18200 || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest.$ac_objext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 glibcxx_cv_func_isnanl_use=yes
18213 else
18214 echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18217 glibcxx_cv_func_isnanl_use=no
18219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18220 ac_ext=c
18221 ac_cpp='$CPP $CPPFLAGS'
18222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18230 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
18231 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
18233 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
18235 for ac_func in isnanl
18237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18238 echo "$as_me:$LINENO: checking for $ac_func" >&5
18239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18240 if eval "test \"\${$as_ac_var+set}\" = set"; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243 if test x$gcc_no_link = xyes; then
18244 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18246 { (exit 1); exit 1; }; }
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18256 #define $ac_func innocuous_$ac_func
18258 /* System header to define __stub macros and hopefully few prototypes,
18259 which can conflict with char $ac_func (); below.
18260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18261 <limits.h> exists even on freestanding compilers. */
18263 #ifdef __STDC__
18264 # include <limits.h>
18265 #else
18266 # include <assert.h>
18267 #endif
18269 #undef $ac_func
18271 /* Override any gcc2 internal prototype to avoid an error. */
18272 #ifdef __cplusplus
18273 extern "C"
18275 #endif
18276 /* We use char because int might match the return type of a gcc2
18277 builtin and then its argument prototype would still apply. */
18278 char $ac_func ();
18279 /* The GNU C library defines this for functions which it implements
18280 to always fail with ENOSYS. Some functions are actually named
18281 something starting with __ and the normal name is an alias. */
18282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18283 choke me
18284 #else
18285 char (*f) () = $ac_func;
18286 #endif
18287 #ifdef __cplusplus
18289 #endif
18292 main ()
18294 return f != $ac_func;
18296 return 0;
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301 (eval $ac_link) 2>conftest.er1
18302 ac_status=$?
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 eval "$as_ac_var=yes"
18322 else
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 eval "$as_ac_var=no"
18328 rm -f conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18333 if test `eval echo '${'$as_ac_var'}'` = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18336 _ACEOF
18339 done
18341 else
18343 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18344 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18345 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18346 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18352 ac_ext=cc
18353 ac_cpp='$CXXCPP $CPPFLAGS'
18354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h. */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 #include <math.h>
18365 #ifdef HAVE_IEEEFP_H
18366 #include <ieeefp.h>
18367 #endif
18370 main ()
18372 _isnanl(0);
18374 return 0;
18376 _ACEOF
18377 rm -f conftest.$ac_objext
18378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18379 (eval $ac_compile) 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_cxx_werror_flag"
18387 || test ! -s conftest.err'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest.$ac_objext'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 glibcxx_cv_func__isnanl_use=yes
18400 else
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18404 glibcxx_cv_func__isnanl_use=no
18406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18407 ac_ext=c
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18417 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18418 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18420 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18422 for ac_func in _isnanl
18424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18425 echo "$as_me:$LINENO: checking for $ac_func" >&5
18426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18427 if eval "test \"\${$as_ac_var+set}\" = set"; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430 if test x$gcc_no_link = xyes; then
18431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18433 { (exit 1); exit 1; }; }
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h. */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18443 #define $ac_func innocuous_$ac_func
18445 /* System header to define __stub macros and hopefully few prototypes,
18446 which can conflict with char $ac_func (); below.
18447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18448 <limits.h> exists even on freestanding compilers. */
18450 #ifdef __STDC__
18451 # include <limits.h>
18452 #else
18453 # include <assert.h>
18454 #endif
18456 #undef $ac_func
18458 /* Override any gcc2 internal prototype to avoid an error. */
18459 #ifdef __cplusplus
18460 extern "C"
18462 #endif
18463 /* We use char because int might match the return type of a gcc2
18464 builtin and then its argument prototype would still apply. */
18465 char $ac_func ();
18466 /* The GNU C library defines this for functions which it implements
18467 to always fail with ENOSYS. Some functions are actually named
18468 something starting with __ and the normal name is an alias. */
18469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18470 choke me
18471 #else
18472 char (*f) () = $ac_func;
18473 #endif
18474 #ifdef __cplusplus
18476 #endif
18479 main ()
18481 return f != $ac_func;
18483 return 0;
18485 _ACEOF
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18488 (eval $ac_link) 2>conftest.er1
18489 ac_status=$?
18490 grep -v '^ *+' conftest.er1 >conftest.err
18491 rm -f conftest.er1
18492 cat conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
18495 { ac_try='test -z "$ac_c_werror_flag"
18496 || test ! -s conftest.err'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest$ac_exeext'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18508 eval "$as_ac_var=yes"
18509 else
18510 echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 eval "$as_ac_var=no"
18515 rm -f conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18520 if test `eval echo '${'$as_ac_var'}'` = yes; then
18521 cat >>confdefs.h <<_ACEOF
18522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18523 _ACEOF
18526 done
18533 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18534 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18535 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18536 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18542 ac_ext=cc
18543 ac_cpp='$CXXCPP $CPPFLAGS'
18544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18548 cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h. */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h. */
18554 #include <math.h>
18555 #ifdef HAVE_IEEEFP_H
18556 #include <ieeefp.h>
18557 #endif
18560 main ()
18562 isinfl(0);
18564 return 0;
18566 _ACEOF
18567 rm -f conftest.$ac_objext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569 (eval $ac_compile) 2>conftest.er1
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_cxx_werror_flag"
18577 || test ! -s conftest.err'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest.$ac_objext'
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 glibcxx_cv_func_isinfl_use=yes
18590 else
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 glibcxx_cv_func_isinfl_use=no
18596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18597 ac_ext=c
18598 ac_cpp='$CPP $CPPFLAGS'
18599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18607 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18608 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18610 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18612 for ac_func in isinfl
18614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18615 echo "$as_me:$LINENO: checking for $ac_func" >&5
18616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18617 if eval "test \"\${$as_ac_var+set}\" = set"; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 else
18620 if test x$gcc_no_link = xyes; then
18621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18623 { (exit 1); exit 1; }; }
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h. */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18633 #define $ac_func innocuous_$ac_func
18635 /* System header to define __stub macros and hopefully few prototypes,
18636 which can conflict with char $ac_func (); below.
18637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18638 <limits.h> exists even on freestanding compilers. */
18640 #ifdef __STDC__
18641 # include <limits.h>
18642 #else
18643 # include <assert.h>
18644 #endif
18646 #undef $ac_func
18648 /* Override any gcc2 internal prototype to avoid an error. */
18649 #ifdef __cplusplus
18650 extern "C"
18652 #endif
18653 /* We use char because int might match the return type of a gcc2
18654 builtin and then its argument prototype would still apply. */
18655 char $ac_func ();
18656 /* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18660 choke me
18661 #else
18662 char (*f) () = $ac_func;
18663 #endif
18664 #ifdef __cplusplus
18666 #endif
18669 main ()
18671 return f != $ac_func;
18673 return 0;
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18678 (eval $ac_link) 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag"
18686 || test ! -s conftest.err'
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest$ac_exeext'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 eval "$as_ac_var=yes"
18699 else
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 eval "$as_ac_var=no"
18705 rm -f conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18710 if test `eval echo '${'$as_ac_var'}'` = yes; then
18711 cat >>confdefs.h <<_ACEOF
18712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18713 _ACEOF
18716 done
18718 else
18720 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18721 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18722 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18723 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18729 ac_ext=cc
18730 ac_cpp='$CXXCPP $CPPFLAGS'
18731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 #include <math.h>
18742 #ifdef HAVE_IEEEFP_H
18743 #include <ieeefp.h>
18744 #endif
18747 main ()
18749 _isinfl(0);
18751 return 0;
18753 _ACEOF
18754 rm -f conftest.$ac_objext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18756 (eval $ac_compile) 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_cxx_werror_flag"
18764 || test ! -s conftest.err'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 glibcxx_cv_func__isinfl_use=yes
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18781 glibcxx_cv_func__isinfl_use=no
18783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18784 ac_ext=c
18785 ac_cpp='$CPP $CPPFLAGS'
18786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18794 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18795 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18797 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18799 for ac_func in _isinfl
18801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18802 echo "$as_me:$LINENO: checking for $ac_func" >&5
18803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18804 if eval "test \"\${$as_ac_var+set}\" = set"; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807 if test x$gcc_no_link = xyes; then
18808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18810 { (exit 1); exit 1; }; }
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h. */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18820 #define $ac_func innocuous_$ac_func
18822 /* System header to define __stub macros and hopefully few prototypes,
18823 which can conflict with char $ac_func (); below.
18824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825 <limits.h> exists even on freestanding compilers. */
18827 #ifdef __STDC__
18828 # include <limits.h>
18829 #else
18830 # include <assert.h>
18831 #endif
18833 #undef $ac_func
18835 /* Override any gcc2 internal prototype to avoid an error. */
18836 #ifdef __cplusplus
18837 extern "C"
18839 #endif
18840 /* We use char because int might match the return type of a gcc2
18841 builtin and then its argument prototype would still apply. */
18842 char $ac_func ();
18843 /* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18847 choke me
18848 #else
18849 char (*f) () = $ac_func;
18850 #endif
18851 #ifdef __cplusplus
18853 #endif
18856 main ()
18858 return f != $ac_func;
18860 return 0;
18862 _ACEOF
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865 (eval $ac_link) 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -z "$ac_c_werror_flag"
18873 || test ! -s conftest.err'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; } &&
18879 { ac_try='test -s conftest$ac_exeext'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 eval "$as_ac_var=yes"
18886 else
18887 echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18890 eval "$as_ac_var=no"
18892 rm -f conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18897 if test `eval echo '${'$as_ac_var'}'` = yes; then
18898 cat >>confdefs.h <<_ACEOF
18899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18900 _ACEOF
18903 done
18910 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18911 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18912 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18913 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18919 ac_ext=cc
18920 ac_cpp='$CXXCPP $CPPFLAGS'
18921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h. */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 #include <math.h>
18933 main ()
18935 copysignl(0, 0);
18937 return 0;
18939 _ACEOF
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -z "$ac_cxx_werror_flag"
18950 || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 glibcxx_cv_func_copysignl_use=yes
18963 else
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 glibcxx_cv_func_copysignl_use=no
18969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18970 ac_ext=c
18971 ac_cpp='$CPP $CPPFLAGS'
18972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18980 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
18981 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
18983 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
18985 for ac_func in copysignl
18987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18988 echo "$as_me:$LINENO: checking for $ac_func" >&5
18989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18990 if eval "test \"\${$as_ac_var+set}\" = set"; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993 if test x$gcc_no_link = xyes; then
18994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18996 { (exit 1); exit 1; }; }
18998 cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h. */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19006 #define $ac_func innocuous_$ac_func
19008 /* System header to define __stub macros and hopefully few prototypes,
19009 which can conflict with char $ac_func (); below.
19010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011 <limits.h> exists even on freestanding compilers. */
19013 #ifdef __STDC__
19014 # include <limits.h>
19015 #else
19016 # include <assert.h>
19017 #endif
19019 #undef $ac_func
19021 /* Override any gcc2 internal prototype to avoid an error. */
19022 #ifdef __cplusplus
19023 extern "C"
19025 #endif
19026 /* We use char because int might match the return type of a gcc2
19027 builtin and then its argument prototype would still apply. */
19028 char $ac_func ();
19029 /* The GNU C library defines this for functions which it implements
19030 to always fail with ENOSYS. Some functions are actually named
19031 something starting with __ and the normal name is an alias. */
19032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19033 choke me
19034 #else
19035 char (*f) () = $ac_func;
19036 #endif
19037 #ifdef __cplusplus
19039 #endif
19042 main ()
19044 return f != $ac_func;
19046 return 0;
19048 _ACEOF
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19051 (eval $ac_link) 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } &&
19058 { ac_try='test -z "$ac_c_werror_flag"
19059 || test ! -s conftest.err'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; }; then
19071 eval "$as_ac_var=yes"
19072 else
19073 echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 eval "$as_ac_var=no"
19078 rm -f conftest.err conftest.$ac_objext \
19079 conftest$ac_exeext conftest.$ac_ext
19081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19083 if test `eval echo '${'$as_ac_var'}'` = yes; then
19084 cat >>confdefs.h <<_ACEOF
19085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19086 _ACEOF
19089 done
19091 else
19093 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
19094 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
19095 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
19096 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19102 ac_ext=cc
19103 ac_cpp='$CXXCPP $CPPFLAGS'
19104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19108 cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h. */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 #include <math.h>
19116 main ()
19118 _copysignl(0, 0);
19120 return 0;
19122 _ACEOF
19123 rm -f conftest.$ac_objext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19125 (eval $ac_compile) 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_cxx_werror_flag"
19133 || test ! -s conftest.err'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 glibcxx_cv_func__copysignl_use=yes
19146 else
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 glibcxx_cv_func__copysignl_use=no
19152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19153 ac_ext=c
19154 ac_cpp='$CPP $CPPFLAGS'
19155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19163 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
19164 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
19166 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
19168 for ac_func in _copysignl
19170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19171 echo "$as_me:$LINENO: checking for $ac_func" >&5
19172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19173 if eval "test \"\${$as_ac_var+set}\" = set"; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176 if test x$gcc_no_link = xyes; then
19177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19179 { (exit 1); exit 1; }; }
19181 cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h. */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19189 #define $ac_func innocuous_$ac_func
19191 /* System header to define __stub macros and hopefully few prototypes,
19192 which can conflict with char $ac_func (); below.
19193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19194 <limits.h> exists even on freestanding compilers. */
19196 #ifdef __STDC__
19197 # include <limits.h>
19198 #else
19199 # include <assert.h>
19200 #endif
19202 #undef $ac_func
19204 /* Override any gcc2 internal prototype to avoid an error. */
19205 #ifdef __cplusplus
19206 extern "C"
19208 #endif
19209 /* We use char because int might match the return type of a gcc2
19210 builtin and then its argument prototype would still apply. */
19211 char $ac_func ();
19212 /* The GNU C library defines this for functions which it implements
19213 to always fail with ENOSYS. Some functions are actually named
19214 something starting with __ and the normal name is an alias. */
19215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19216 choke me
19217 #else
19218 char (*f) () = $ac_func;
19219 #endif
19220 #ifdef __cplusplus
19222 #endif
19225 main ()
19227 return f != $ac_func;
19229 return 0;
19231 _ACEOF
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234 (eval $ac_link) 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag"
19242 || test ! -s conftest.err'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest$ac_exeext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 eval "$as_ac_var=yes"
19255 else
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 eval "$as_ac_var=no"
19261 rm -f conftest.err conftest.$ac_objext \
19262 conftest$ac_exeext conftest.$ac_ext
19264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19266 if test `eval echo '${'$as_ac_var'}'` = yes; then
19267 cat >>confdefs.h <<_ACEOF
19268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19269 _ACEOF
19272 done
19279 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19280 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19281 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19282 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19288 ac_ext=cc
19289 ac_cpp='$CXXCPP $CPPFLAGS'
19290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <math.h>
19302 main ()
19304 atan2l(0, 0);
19306 return 0;
19308 _ACEOF
19309 rm -f conftest.$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -z "$ac_cxx_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 glibcxx_cv_func_atan2l_use=yes
19332 else
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 glibcxx_cv_func_atan2l_use=no
19338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19339 ac_ext=c
19340 ac_cpp='$CPP $CPPFLAGS'
19341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19349 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19350 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19352 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19354 for ac_func in atan2l
19356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357 echo "$as_me:$LINENO: checking for $ac_func" >&5
19358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19359 if eval "test \"\${$as_ac_var+set}\" = set"; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362 if test x$gcc_no_link = xyes; then
19363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19365 { (exit 1); exit 1; }; }
19367 cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h. */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19375 #define $ac_func innocuous_$ac_func
19377 /* System header to define __stub macros and hopefully few prototypes,
19378 which can conflict with char $ac_func (); below.
19379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380 <limits.h> exists even on freestanding compilers. */
19382 #ifdef __STDC__
19383 # include <limits.h>
19384 #else
19385 # include <assert.h>
19386 #endif
19388 #undef $ac_func
19390 /* Override any gcc2 internal prototype to avoid an error. */
19391 #ifdef __cplusplus
19392 extern "C"
19394 #endif
19395 /* We use char because int might match the return type of a gcc2
19396 builtin and then its argument prototype would still apply. */
19397 char $ac_func ();
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19402 choke me
19403 #else
19404 char (*f) () = $ac_func;
19405 #endif
19406 #ifdef __cplusplus
19408 #endif
19411 main ()
19413 return f != $ac_func;
19415 return 0;
19417 _ACEOF
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420 (eval $ac_link) 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest$ac_exeext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 eval "$as_ac_var=yes"
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 eval "$as_ac_var=no"
19447 rm -f conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19452 if test `eval echo '${'$as_ac_var'}'` = yes; then
19453 cat >>confdefs.h <<_ACEOF
19454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19455 _ACEOF
19458 done
19460 else
19462 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19463 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19464 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19465 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19471 ac_ext=cc
19472 ac_cpp='$CXXCPP $CPPFLAGS'
19473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h. */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19483 #include <math.h>
19485 main ()
19487 _atan2l(0, 0);
19489 return 0;
19491 _ACEOF
19492 rm -f conftest.$ac_objext
19493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19494 (eval $ac_compile) 2>conftest.er1
19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_cxx_werror_flag"
19502 || test ! -s conftest.err'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; } &&
19508 { ac_try='test -s conftest.$ac_objext'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 glibcxx_cv_func__atan2l_use=yes
19515 else
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 glibcxx_cv_func__atan2l_use=no
19521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19522 ac_ext=c
19523 ac_cpp='$CPP $CPPFLAGS'
19524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19532 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19533 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19535 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19537 for ac_func in _atan2l
19539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540 echo "$as_me:$LINENO: checking for $ac_func" >&5
19541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19542 if eval "test \"\${$as_ac_var+set}\" = set"; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545 if test x$gcc_no_link = xyes; then
19546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19548 { (exit 1); exit 1; }; }
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19558 #define $ac_func innocuous_$ac_func
19560 /* System header to define __stub macros and hopefully few prototypes,
19561 which can conflict with char $ac_func (); below.
19562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19563 <limits.h> exists even on freestanding compilers. */
19565 #ifdef __STDC__
19566 # include <limits.h>
19567 #else
19568 # include <assert.h>
19569 #endif
19571 #undef $ac_func
19573 /* Override any gcc2 internal prototype to avoid an error. */
19574 #ifdef __cplusplus
19575 extern "C"
19577 #endif
19578 /* We use char because int might match the return type of a gcc2
19579 builtin and then its argument prototype would still apply. */
19580 char $ac_func ();
19581 /* The GNU C library defines this for functions which it implements
19582 to always fail with ENOSYS. Some functions are actually named
19583 something starting with __ and the normal name is an alias. */
19584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19585 choke me
19586 #else
19587 char (*f) () = $ac_func;
19588 #endif
19589 #ifdef __cplusplus
19591 #endif
19594 main ()
19596 return f != $ac_func;
19598 return 0;
19600 _ACEOF
19601 rm -f conftest.$ac_objext conftest$ac_exeext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19603 (eval $ac_link) 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag"
19611 || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest$ac_exeext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 eval "$as_ac_var=yes"
19624 else
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 eval "$as_ac_var=no"
19630 rm -f conftest.err conftest.$ac_objext \
19631 conftest$ac_exeext conftest.$ac_ext
19633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19635 if test `eval echo '${'$as_ac_var'}'` = yes; then
19636 cat >>confdefs.h <<_ACEOF
19637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19638 _ACEOF
19641 done
19648 echo "$as_me:$LINENO: checking for expl declaration" >&5
19649 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19650 if test x${glibcxx_cv_func_expl_use+set} != xset; then
19651 if test "${glibcxx_cv_func_expl_use+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19657 ac_ext=cc
19658 ac_cpp='$CXXCPP $CPPFLAGS'
19659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <math.h>
19670 #ifdef HAVE_IEEEFP_H
19671 #include <ieeefp.h>
19672 #endif
19675 main ()
19677 expl(0);
19679 return 0;
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684 (eval $ac_compile) 2>conftest.er1
19685 ac_status=$?
19686 grep -v '^ *+' conftest.er1 >conftest.err
19687 rm -f conftest.er1
19688 cat conftest.err >&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } &&
19691 { ac_try='test -z "$ac_cxx_werror_flag"
19692 || test ! -s conftest.err'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest.$ac_objext'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
19704 glibcxx_cv_func_expl_use=yes
19705 else
19706 echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19709 glibcxx_cv_func_expl_use=no
19711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19712 ac_ext=c
19713 ac_cpp='$CPP $CPPFLAGS'
19714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19722 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19723 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19725 if test x$glibcxx_cv_func_expl_use = x"yes"; then
19727 for ac_func in expl
19729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19730 echo "$as_me:$LINENO: checking for $ac_func" >&5
19731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19732 if eval "test \"\${$as_ac_var+set}\" = set"; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735 if test x$gcc_no_link = xyes; then
19736 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19738 { (exit 1); exit 1; }; }
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19748 #define $ac_func innocuous_$ac_func
19750 /* System header to define __stub macros and hopefully few prototypes,
19751 which can conflict with char $ac_func (); below.
19752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19753 <limits.h> exists even on freestanding compilers. */
19755 #ifdef __STDC__
19756 # include <limits.h>
19757 #else
19758 # include <assert.h>
19759 #endif
19761 #undef $ac_func
19763 /* Override any gcc2 internal prototype to avoid an error. */
19764 #ifdef __cplusplus
19765 extern "C"
19767 #endif
19768 /* We use char because int might match the return type of a gcc2
19769 builtin and then its argument prototype would still apply. */
19770 char $ac_func ();
19771 /* The GNU C library defines this for functions which it implements
19772 to always fail with ENOSYS. Some functions are actually named
19773 something starting with __ and the normal name is an alias. */
19774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19775 choke me
19776 #else
19777 char (*f) () = $ac_func;
19778 #endif
19779 #ifdef __cplusplus
19781 #endif
19784 main ()
19786 return f != $ac_func;
19788 return 0;
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19793 (eval $ac_link) 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } &&
19800 { ac_try='test -z "$ac_c_werror_flag"
19801 || test ! -s conftest.err'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; } &&
19807 { ac_try='test -s conftest$ac_exeext'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; }; then
19813 eval "$as_ac_var=yes"
19814 else
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 eval "$as_ac_var=no"
19820 rm -f conftest.err conftest.$ac_objext \
19821 conftest$ac_exeext conftest.$ac_ext
19823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19825 if test `eval echo '${'$as_ac_var'}'` = yes; then
19826 cat >>confdefs.h <<_ACEOF
19827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19828 _ACEOF
19831 done
19833 else
19835 echo "$as_me:$LINENO: checking for _expl declaration" >&5
19836 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19837 if test x${glibcxx_cv_func__expl_use+set} != xset; then
19838 if test "${glibcxx_cv_func__expl_use+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19844 ac_ext=cc
19845 ac_cpp='$CXXCPP $CPPFLAGS'
19846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h. */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 #include <math.h>
19857 #ifdef HAVE_IEEEFP_H
19858 #include <ieeefp.h>
19859 #endif
19862 main ()
19864 _expl(0);
19866 return 0;
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871 (eval $ac_compile) 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_cxx_werror_flag"
19879 || test ! -s conftest.err'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 glibcxx_cv_func__expl_use=yes
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 glibcxx_cv_func__expl_use=no
19898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19899 ac_ext=c
19900 ac_cpp='$CPP $CPPFLAGS'
19901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19909 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19910 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19912 if test x$glibcxx_cv_func__expl_use = x"yes"; then
19914 for ac_func in _expl
19916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19917 echo "$as_me:$LINENO: checking for $ac_func" >&5
19918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19919 if eval "test \"\${$as_ac_var+set}\" = set"; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922 if test x$gcc_no_link = xyes; then
19923 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19924 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19925 { (exit 1); exit 1; }; }
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h. */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19935 #define $ac_func innocuous_$ac_func
19937 /* System header to define __stub macros and hopefully few prototypes,
19938 which can conflict with char $ac_func (); below.
19939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19940 <limits.h> exists even on freestanding compilers. */
19942 #ifdef __STDC__
19943 # include <limits.h>
19944 #else
19945 # include <assert.h>
19946 #endif
19948 #undef $ac_func
19950 /* Override any gcc2 internal prototype to avoid an error. */
19951 #ifdef __cplusplus
19952 extern "C"
19954 #endif
19955 /* We use char because int might match the return type of a gcc2
19956 builtin and then its argument prototype would still apply. */
19957 char $ac_func ();
19958 /* The GNU C library defines this for functions which it implements
19959 to always fail with ENOSYS. Some functions are actually named
19960 something starting with __ and the normal name is an alias. */
19961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19962 choke me
19963 #else
19964 char (*f) () = $ac_func;
19965 #endif
19966 #ifdef __cplusplus
19968 #endif
19971 main ()
19973 return f != $ac_func;
19975 return 0;
19977 _ACEOF
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19980 (eval $ac_link) 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag"
19988 || test ! -s conftest.err'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; } &&
19994 { ac_try='test -s conftest$ac_exeext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 eval "$as_ac_var=yes"
20001 else
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 eval "$as_ac_var=no"
20007 rm -f conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20012 if test `eval echo '${'$as_ac_var'}'` = yes; then
20013 cat >>confdefs.h <<_ACEOF
20014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20015 _ACEOF
20018 done
20025 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
20026 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
20027 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
20028 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20034 ac_ext=cc
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h. */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 #include <math.h>
20047 #ifdef HAVE_IEEEFP_H
20048 #include <ieeefp.h>
20049 #endif
20052 main ()
20054 fabsl(0);
20056 return 0;
20058 _ACEOF
20059 rm -f conftest.$ac_objext
20060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20061 (eval $ac_compile) 2>conftest.er1
20062 ac_status=$?
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -z "$ac_cxx_werror_flag"
20069 || test ! -s conftest.err'
20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20072 ac_status=$?
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; } &&
20075 { ac_try='test -s conftest.$ac_objext'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 glibcxx_cv_func_fabsl_use=yes
20082 else
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20086 glibcxx_cv_func_fabsl_use=no
20088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20089 ac_ext=c
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20099 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
20100 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
20102 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
20104 for ac_func in fabsl
20106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107 echo "$as_me:$LINENO: checking for $ac_func" >&5
20108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20109 if eval "test \"\${$as_ac_var+set}\" = set"; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112 if test x$gcc_no_link = xyes; then
20113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20115 { (exit 1); exit 1; }; }
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20125 #define $ac_func innocuous_$ac_func
20127 /* System header to define __stub macros and hopefully few prototypes,
20128 which can conflict with char $ac_func (); below.
20129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20130 <limits.h> exists even on freestanding compilers. */
20132 #ifdef __STDC__
20133 # include <limits.h>
20134 #else
20135 # include <assert.h>
20136 #endif
20138 #undef $ac_func
20140 /* Override any gcc2 internal prototype to avoid an error. */
20141 #ifdef __cplusplus
20142 extern "C"
20144 #endif
20145 /* We use char because int might match the return type of a gcc2
20146 builtin and then its argument prototype would still apply. */
20147 char $ac_func ();
20148 /* The GNU C library defines this for functions which it implements
20149 to always fail with ENOSYS. Some functions are actually named
20150 something starting with __ and the normal name is an alias. */
20151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20152 choke me
20153 #else
20154 char (*f) () = $ac_func;
20155 #endif
20156 #ifdef __cplusplus
20158 #endif
20161 main ()
20163 return f != $ac_func;
20165 return 0;
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170 (eval $ac_link) 2>conftest.er1
20171 ac_status=$?
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest$ac_exeext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 eval "$as_ac_var=yes"
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 eval "$as_ac_var=no"
20197 rm -f conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20202 if test `eval echo '${'$as_ac_var'}'` = yes; then
20203 cat >>confdefs.h <<_ACEOF
20204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20205 _ACEOF
20208 done
20210 else
20212 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
20213 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
20214 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
20215 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20221 ac_ext=cc
20222 ac_cpp='$CXXCPP $CPPFLAGS'
20223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h. */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 #include <math.h>
20234 #ifdef HAVE_IEEEFP_H
20235 #include <ieeefp.h>
20236 #endif
20239 main ()
20241 _fabsl(0);
20243 return 0;
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248 (eval $ac_compile) 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -z "$ac_cxx_werror_flag"
20256 || test ! -s conftest.err'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } &&
20262 { ac_try='test -s conftest.$ac_objext'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 glibcxx_cv_func__fabsl_use=yes
20269 else
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 glibcxx_cv_func__fabsl_use=no
20275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20276 ac_ext=c
20277 ac_cpp='$CPP $CPPFLAGS'
20278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20286 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20287 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20289 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20291 for ac_func in _fabsl
20293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20294 echo "$as_me:$LINENO: checking for $ac_func" >&5
20295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20296 if eval "test \"\${$as_ac_var+set}\" = set"; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299 if test x$gcc_no_link = xyes; then
20300 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20301 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20302 { (exit 1); exit 1; }; }
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20312 #define $ac_func innocuous_$ac_func
20314 /* System header to define __stub macros and hopefully few prototypes,
20315 which can conflict with char $ac_func (); below.
20316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20317 <limits.h> exists even on freestanding compilers. */
20319 #ifdef __STDC__
20320 # include <limits.h>
20321 #else
20322 # include <assert.h>
20323 #endif
20325 #undef $ac_func
20327 /* Override any gcc2 internal prototype to avoid an error. */
20328 #ifdef __cplusplus
20329 extern "C"
20331 #endif
20332 /* We use char because int might match the return type of a gcc2
20333 builtin and then its argument prototype would still apply. */
20334 char $ac_func ();
20335 /* The GNU C library defines this for functions which it implements
20336 to always fail with ENOSYS. Some functions are actually named
20337 something starting with __ and the normal name is an alias. */
20338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20339 choke me
20340 #else
20341 char (*f) () = $ac_func;
20342 #endif
20343 #ifdef __cplusplus
20345 #endif
20348 main ()
20350 return f != $ac_func;
20352 return 0;
20354 _ACEOF
20355 rm -f conftest.$ac_objext conftest$ac_exeext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20357 (eval $ac_link) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest$ac_exeext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 eval "$as_ac_var=yes"
20378 else
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 eval "$as_ac_var=no"
20384 rm -f conftest.err conftest.$ac_objext \
20385 conftest$ac_exeext conftest.$ac_ext
20387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20389 if test `eval echo '${'$as_ac_var'}'` = yes; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20392 _ACEOF
20395 done
20402 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20403 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20404 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20405 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20411 ac_ext=cc
20412 ac_cpp='$CXXCPP $CPPFLAGS'
20413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20417 cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h. */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20423 #include <math.h>
20425 main ()
20427 fmodl(0, 0);
20429 return 0;
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434 (eval $ac_compile) 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try='test -z "$ac_cxx_werror_flag"
20442 || test ! -s conftest.err'
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest.$ac_objext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 glibcxx_cv_func_fmodl_use=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 glibcxx_cv_func_fmodl_use=no
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20462 ac_ext=c
20463 ac_cpp='$CPP $CPPFLAGS'
20464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20472 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20473 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20475 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20477 for ac_func in fmodl
20479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20480 echo "$as_me:$LINENO: checking for $ac_func" >&5
20481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_var+set}\" = set"; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485 if test x$gcc_no_link = xyes; then
20486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20488 { (exit 1); exit 1; }; }
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h. */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20498 #define $ac_func innocuous_$ac_func
20500 /* System header to define __stub macros and hopefully few prototypes,
20501 which can conflict with char $ac_func (); below.
20502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20503 <limits.h> exists even on freestanding compilers. */
20505 #ifdef __STDC__
20506 # include <limits.h>
20507 #else
20508 # include <assert.h>
20509 #endif
20511 #undef $ac_func
20513 /* Override any gcc2 internal prototype to avoid an error. */
20514 #ifdef __cplusplus
20515 extern "C"
20517 #endif
20518 /* We use char because int might match the return type of a gcc2
20519 builtin and then its argument prototype would still apply. */
20520 char $ac_func ();
20521 /* The GNU C library defines this for functions which it implements
20522 to always fail with ENOSYS. Some functions are actually named
20523 something starting with __ and the normal name is an alias. */
20524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20525 choke me
20526 #else
20527 char (*f) () = $ac_func;
20528 #endif
20529 #ifdef __cplusplus
20531 #endif
20534 main ()
20536 return f != $ac_func;
20538 return 0;
20540 _ACEOF
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20543 (eval $ac_link) 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -z "$ac_c_werror_flag"
20551 || test ! -s conftest.err'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest$ac_exeext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 eval "$as_ac_var=yes"
20564 else
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 eval "$as_ac_var=no"
20570 rm -f conftest.err conftest.$ac_objext \
20571 conftest$ac_exeext conftest.$ac_ext
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20575 if test `eval echo '${'$as_ac_var'}'` = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20578 _ACEOF
20581 done
20583 else
20585 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20586 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20587 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20588 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20594 ac_ext=cc
20595 ac_cpp='$CXXCPP $CPPFLAGS'
20596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 #include <math.h>
20608 main ()
20610 _fmodl(0, 0);
20612 return 0;
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_cxx_werror_flag"
20625 || test ! -s conftest.err'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try='test -s conftest.$ac_objext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 glibcxx_cv_func__fmodl_use=yes
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 glibcxx_cv_func__fmodl_use=no
20644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645 ac_ext=c
20646 ac_cpp='$CPP $CPPFLAGS'
20647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20656 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20658 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20660 for ac_func in _fmodl
20662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20663 echo "$as_me:$LINENO: checking for $ac_func" >&5
20664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20665 if eval "test \"\${$as_ac_var+set}\" = set"; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668 if test x$gcc_no_link = xyes; then
20669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20671 { (exit 1); exit 1; }; }
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h. */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20681 #define $ac_func innocuous_$ac_func
20683 /* System header to define __stub macros and hopefully few prototypes,
20684 which can conflict with char $ac_func (); below.
20685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20686 <limits.h> exists even on freestanding compilers. */
20688 #ifdef __STDC__
20689 # include <limits.h>
20690 #else
20691 # include <assert.h>
20692 #endif
20694 #undef $ac_func
20696 /* Override any gcc2 internal prototype to avoid an error. */
20697 #ifdef __cplusplus
20698 extern "C"
20700 #endif
20701 /* We use char because int might match the return type of a gcc2
20702 builtin and then its argument prototype would still apply. */
20703 char $ac_func ();
20704 /* The GNU C library defines this for functions which it implements
20705 to always fail with ENOSYS. Some functions are actually named
20706 something starting with __ and the normal name is an alias. */
20707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20708 choke me
20709 #else
20710 char (*f) () = $ac_func;
20711 #endif
20712 #ifdef __cplusplus
20714 #endif
20717 main ()
20719 return f != $ac_func;
20721 return 0;
20723 _ACEOF
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20726 (eval $ac_link) 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag"
20734 || test ! -s conftest.err'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest$ac_exeext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 eval "$as_ac_var=yes"
20747 else
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 eval "$as_ac_var=no"
20753 rm -f conftest.err conftest.$ac_objext \
20754 conftest$ac_exeext conftest.$ac_ext
20756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20758 if test `eval echo '${'$as_ac_var'}'` = yes; then
20759 cat >>confdefs.h <<_ACEOF
20760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20761 _ACEOF
20764 done
20771 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20772 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20773 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20774 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20780 ac_ext=cc
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 #include <math.h>
20794 main ()
20796 frexpl(0, 0);
20798 return 0;
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20803 (eval $ac_compile) 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
20810 { ac_try='test -z "$ac_cxx_werror_flag"
20811 || test ! -s conftest.err'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; } &&
20817 { ac_try='test -s conftest.$ac_objext'
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20820 ac_status=$?
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20823 glibcxx_cv_func_frexpl_use=yes
20824 else
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 glibcxx_cv_func_frexpl_use=no
20830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20831 ac_ext=c
20832 ac_cpp='$CPP $CPPFLAGS'
20833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20841 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20842 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20844 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20846 for ac_func in frexpl
20848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20849 echo "$as_me:$LINENO: checking for $ac_func" >&5
20850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20851 if eval "test \"\${$as_ac_var+set}\" = set"; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854 if test x$gcc_no_link = xyes; then
20855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20857 { (exit 1); exit 1; }; }
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20867 #define $ac_func innocuous_$ac_func
20869 /* System header to define __stub macros and hopefully few prototypes,
20870 which can conflict with char $ac_func (); below.
20871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20872 <limits.h> exists even on freestanding compilers. */
20874 #ifdef __STDC__
20875 # include <limits.h>
20876 #else
20877 # include <assert.h>
20878 #endif
20880 #undef $ac_func
20882 /* Override any gcc2 internal prototype to avoid an error. */
20883 #ifdef __cplusplus
20884 extern "C"
20886 #endif
20887 /* We use char because int might match the return type of a gcc2
20888 builtin and then its argument prototype would still apply. */
20889 char $ac_func ();
20890 /* The GNU C library defines this for functions which it implements
20891 to always fail with ENOSYS. Some functions are actually named
20892 something starting with __ and the normal name is an alias. */
20893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20894 choke me
20895 #else
20896 char (*f) () = $ac_func;
20897 #endif
20898 #ifdef __cplusplus
20900 #endif
20903 main ()
20905 return f != $ac_func;
20907 return 0;
20909 _ACEOF
20910 rm -f conftest.$ac_objext conftest$ac_exeext
20911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20912 (eval $ac_link) 2>conftest.er1
20913 ac_status=$?
20914 grep -v '^ *+' conftest.er1 >conftest.err
20915 rm -f conftest.er1
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } &&
20919 { ac_try='test -z "$ac_c_werror_flag"
20920 || test ! -s conftest.err'
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20923 ac_status=$?
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; } &&
20926 { ac_try='test -s conftest$ac_exeext'
20927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928 (eval $ac_try) 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 eval "$as_ac_var=yes"
20933 else
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 eval "$as_ac_var=no"
20939 rm -f conftest.err conftest.$ac_objext \
20940 conftest$ac_exeext conftest.$ac_ext
20942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20944 if test `eval echo '${'$as_ac_var'}'` = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20947 _ACEOF
20950 done
20952 else
20954 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
20955 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
20956 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
20957 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20963 ac_ext=cc
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 #include <math.h>
20977 main ()
20979 _frexpl(0, 0);
20981 return 0;
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20986 (eval $ac_compile) 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_cxx_werror_flag"
20994 || test ! -s conftest.err'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try='test -s conftest.$ac_objext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 glibcxx_cv_func__frexpl_use=yes
21007 else
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 glibcxx_cv_func__frexpl_use=no
21013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21014 ac_ext=c
21015 ac_cpp='$CPP $CPPFLAGS'
21016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21024 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
21025 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
21027 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
21029 for ac_func in _frexpl
21031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21032 echo "$as_me:$LINENO: checking for $ac_func" >&5
21033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21034 if eval "test \"\${$as_ac_var+set}\" = set"; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037 if test x$gcc_no_link = xyes; then
21038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21040 { (exit 1); exit 1; }; }
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h. */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21050 #define $ac_func innocuous_$ac_func
21052 /* System header to define __stub macros and hopefully few prototypes,
21053 which can conflict with char $ac_func (); below.
21054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21055 <limits.h> exists even on freestanding compilers. */
21057 #ifdef __STDC__
21058 # include <limits.h>
21059 #else
21060 # include <assert.h>
21061 #endif
21063 #undef $ac_func
21065 /* Override any gcc2 internal prototype to avoid an error. */
21066 #ifdef __cplusplus
21067 extern "C"
21069 #endif
21070 /* We use char because int might match the return type of a gcc2
21071 builtin and then its argument prototype would still apply. */
21072 char $ac_func ();
21073 /* The GNU C library defines this for functions which it implements
21074 to always fail with ENOSYS. Some functions are actually named
21075 something starting with __ and the normal name is an alias. */
21076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21077 choke me
21078 #else
21079 char (*f) () = $ac_func;
21080 #endif
21081 #ifdef __cplusplus
21083 #endif
21086 main ()
21088 return f != $ac_func;
21090 return 0;
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21095 (eval $ac_link) 2>conftest.er1
21096 ac_status=$?
21097 grep -v '^ *+' conftest.er1 >conftest.err
21098 rm -f conftest.er1
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
21102 { ac_try='test -z "$ac_c_werror_flag"
21103 || test ! -s conftest.err'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; } &&
21109 { ac_try='test -s conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 eval "$as_ac_var=yes"
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 eval "$as_ac_var=no"
21122 rm -f conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21127 if test `eval echo '${'$as_ac_var'}'` = yes; then
21128 cat >>confdefs.h <<_ACEOF
21129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21130 _ACEOF
21133 done
21140 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
21141 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
21142 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
21143 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21149 ac_ext=cc
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h. */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <math.h>
21163 main ()
21165 hypotl(0, 0);
21167 return 0;
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21172 (eval $ac_compile) 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } &&
21179 { ac_try='test -z "$ac_cxx_werror_flag"
21180 || test ! -s conftest.err'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; } &&
21186 { ac_try='test -s conftest.$ac_objext'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 glibcxx_cv_func_hypotl_use=yes
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 glibcxx_cv_func_hypotl_use=no
21199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21200 ac_ext=c
21201 ac_cpp='$CPP $CPPFLAGS'
21202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
21211 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
21213 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
21215 for ac_func in hypotl
21217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21218 echo "$as_me:$LINENO: checking for $ac_func" >&5
21219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21220 if eval "test \"\${$as_ac_var+set}\" = set"; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223 if test x$gcc_no_link = xyes; then
21224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21226 { (exit 1); exit 1; }; }
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21236 #define $ac_func innocuous_$ac_func
21238 /* System header to define __stub macros and hopefully few prototypes,
21239 which can conflict with char $ac_func (); below.
21240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21241 <limits.h> exists even on freestanding compilers. */
21243 #ifdef __STDC__
21244 # include <limits.h>
21245 #else
21246 # include <assert.h>
21247 #endif
21249 #undef $ac_func
21251 /* Override any gcc2 internal prototype to avoid an error. */
21252 #ifdef __cplusplus
21253 extern "C"
21255 #endif
21256 /* We use char because int might match the return type of a gcc2
21257 builtin and then its argument prototype would still apply. */
21258 char $ac_func ();
21259 /* The GNU C library defines this for functions which it implements
21260 to always fail with ENOSYS. Some functions are actually named
21261 something starting with __ and the normal name is an alias. */
21262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21263 choke me
21264 #else
21265 char (*f) () = $ac_func;
21266 #endif
21267 #ifdef __cplusplus
21269 #endif
21272 main ()
21274 return f != $ac_func;
21276 return 0;
21278 _ACEOF
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281 (eval $ac_link) 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
21288 { ac_try='test -z "$ac_c_werror_flag"
21289 || test ! -s conftest.err'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest$ac_exeext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 eval "$as_ac_var=yes"
21302 else
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 eval "$as_ac_var=no"
21308 rm -f conftest.err conftest.$ac_objext \
21309 conftest$ac_exeext conftest.$ac_ext
21311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21313 if test `eval echo '${'$as_ac_var'}'` = yes; then
21314 cat >>confdefs.h <<_ACEOF
21315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21316 _ACEOF
21319 done
21321 else
21323 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21324 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21325 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21326 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21332 ac_ext=cc
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #include <math.h>
21346 main ()
21348 _hypotl(0, 0);
21350 return 0;
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355 (eval $ac_compile) 2>conftest.er1
21356 ac_status=$?
21357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -z "$ac_cxx_werror_flag"
21363 || test ! -s conftest.err'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest.$ac_objext'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 glibcxx_cv_func__hypotl_use=yes
21376 else
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 glibcxx_cv_func__hypotl_use=no
21382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21383 ac_ext=c
21384 ac_cpp='$CPP $CPPFLAGS'
21385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21393 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21394 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21396 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21398 for ac_func in _hypotl
21400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21401 echo "$as_me:$LINENO: checking for $ac_func" >&5
21402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21403 if eval "test \"\${$as_ac_var+set}\" = set"; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406 if test x$gcc_no_link = xyes; then
21407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21409 { (exit 1); exit 1; }; }
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h. */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21419 #define $ac_func innocuous_$ac_func
21421 /* System header to define __stub macros and hopefully few prototypes,
21422 which can conflict with char $ac_func (); below.
21423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21424 <limits.h> exists even on freestanding compilers. */
21426 #ifdef __STDC__
21427 # include <limits.h>
21428 #else
21429 # include <assert.h>
21430 #endif
21432 #undef $ac_func
21434 /* Override any gcc2 internal prototype to avoid an error. */
21435 #ifdef __cplusplus
21436 extern "C"
21438 #endif
21439 /* We use char because int might match the return type of a gcc2
21440 builtin and then its argument prototype would still apply. */
21441 char $ac_func ();
21442 /* The GNU C library defines this for functions which it implements
21443 to always fail with ENOSYS. Some functions are actually named
21444 something starting with __ and the normal name is an alias. */
21445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21446 choke me
21447 #else
21448 char (*f) () = $ac_func;
21449 #endif
21450 #ifdef __cplusplus
21452 #endif
21455 main ()
21457 return f != $ac_func;
21459 return 0;
21461 _ACEOF
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464 (eval $ac_link) 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } &&
21471 { ac_try='test -z "$ac_c_werror_flag"
21472 || test ! -s conftest.err'
21473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474 (eval $ac_try) 2>&5
21475 ac_status=$?
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; } &&
21478 { ac_try='test -s conftest$ac_exeext'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21481 ac_status=$?
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; }; then
21484 eval "$as_ac_var=yes"
21485 else
21486 echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21489 eval "$as_ac_var=no"
21491 rm -f conftest.err conftest.$ac_objext \
21492 conftest$ac_exeext conftest.$ac_ext
21494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21496 if test `eval echo '${'$as_ac_var'}'` = yes; then
21497 cat >>confdefs.h <<_ACEOF
21498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21499 _ACEOF
21502 done
21509 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21510 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21511 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21512 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21518 ac_ext=cc
21519 ac_cpp='$CXXCPP $CPPFLAGS'
21520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 #include <math.h>
21532 main ()
21534 ldexpl(0, 0);
21536 return 0;
21538 _ACEOF
21539 rm -f conftest.$ac_objext
21540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21541 (eval $ac_compile) 2>conftest.er1
21542 ac_status=$?
21543 grep -v '^ *+' conftest.er1 >conftest.err
21544 rm -f conftest.er1
21545 cat conftest.err >&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } &&
21548 { ac_try='test -z "$ac_cxx_werror_flag"
21549 || test ! -s conftest.err'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try='test -s conftest.$ac_objext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 glibcxx_cv_func_ldexpl_use=yes
21562 else
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 glibcxx_cv_func_ldexpl_use=no
21568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21569 ac_ext=c
21570 ac_cpp='$CPP $CPPFLAGS'
21571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21579 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21580 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21582 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21584 for ac_func in ldexpl
21586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21587 echo "$as_me:$LINENO: checking for $ac_func" >&5
21588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21589 if eval "test \"\${$as_ac_var+set}\" = set"; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592 if test x$gcc_no_link = xyes; then
21593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21595 { (exit 1); exit 1; }; }
21597 cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h. */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21605 #define $ac_func innocuous_$ac_func
21607 /* System header to define __stub macros and hopefully few prototypes,
21608 which can conflict with char $ac_func (); below.
21609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21610 <limits.h> exists even on freestanding compilers. */
21612 #ifdef __STDC__
21613 # include <limits.h>
21614 #else
21615 # include <assert.h>
21616 #endif
21618 #undef $ac_func
21620 /* Override any gcc2 internal prototype to avoid an error. */
21621 #ifdef __cplusplus
21622 extern "C"
21624 #endif
21625 /* We use char because int might match the return type of a gcc2
21626 builtin and then its argument prototype would still apply. */
21627 char $ac_func ();
21628 /* The GNU C library defines this for functions which it implements
21629 to always fail with ENOSYS. Some functions are actually named
21630 something starting with __ and the normal name is an alias. */
21631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21632 choke me
21633 #else
21634 char (*f) () = $ac_func;
21635 #endif
21636 #ifdef __cplusplus
21638 #endif
21641 main ()
21643 return f != $ac_func;
21645 return 0;
21647 _ACEOF
21648 rm -f conftest.$ac_objext conftest$ac_exeext
21649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21650 (eval $ac_link) 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } &&
21657 { ac_try='test -z "$ac_c_werror_flag"
21658 || test ! -s conftest.err'
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; } &&
21664 { ac_try='test -s conftest$ac_exeext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 eval "$as_ac_var=yes"
21671 else
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 eval "$as_ac_var=no"
21677 rm -f conftest.err conftest.$ac_objext \
21678 conftest$ac_exeext conftest.$ac_ext
21680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21682 if test `eval echo '${'$as_ac_var'}'` = yes; then
21683 cat >>confdefs.h <<_ACEOF
21684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21685 _ACEOF
21688 done
21690 else
21692 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21693 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21694 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21695 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21701 ac_ext=cc
21702 ac_cpp='$CXXCPP $CPPFLAGS'
21703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21707 cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h. */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 #include <math.h>
21715 main ()
21717 _ldexpl(0, 0);
21719 return 0;
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21724 (eval $ac_compile) 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
21731 { ac_try='test -z "$ac_cxx_werror_flag"
21732 || test ! -s conftest.err'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest.$ac_objext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 glibcxx_cv_func__ldexpl_use=yes
21745 else
21746 echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21749 glibcxx_cv_func__ldexpl_use=no
21751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21752 ac_ext=c
21753 ac_cpp='$CPP $CPPFLAGS'
21754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21762 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21763 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21765 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21767 for ac_func in _ldexpl
21769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21770 echo "$as_me:$LINENO: checking for $ac_func" >&5
21771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21772 if eval "test \"\${$as_ac_var+set}\" = set"; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775 if test x$gcc_no_link = xyes; then
21776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21778 { (exit 1); exit 1; }; }
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h. */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21788 #define $ac_func innocuous_$ac_func
21790 /* System header to define __stub macros and hopefully few prototypes,
21791 which can conflict with char $ac_func (); below.
21792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21793 <limits.h> exists even on freestanding compilers. */
21795 #ifdef __STDC__
21796 # include <limits.h>
21797 #else
21798 # include <assert.h>
21799 #endif
21801 #undef $ac_func
21803 /* Override any gcc2 internal prototype to avoid an error. */
21804 #ifdef __cplusplus
21805 extern "C"
21807 #endif
21808 /* We use char because int might match the return type of a gcc2
21809 builtin and then its argument prototype would still apply. */
21810 char $ac_func ();
21811 /* The GNU C library defines this for functions which it implements
21812 to always fail with ENOSYS. Some functions are actually named
21813 something starting with __ and the normal name is an alias. */
21814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21815 choke me
21816 #else
21817 char (*f) () = $ac_func;
21818 #endif
21819 #ifdef __cplusplus
21821 #endif
21824 main ()
21826 return f != $ac_func;
21828 return 0;
21830 _ACEOF
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21833 (eval $ac_link) 2>conftest.er1
21834 ac_status=$?
21835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } &&
21840 { ac_try='test -z "$ac_c_werror_flag"
21841 || test ! -s conftest.err'
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; } &&
21847 { ac_try='test -s conftest$ac_exeext'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 eval "$as_ac_var=yes"
21854 else
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 eval "$as_ac_var=no"
21860 rm -f conftest.err conftest.$ac_objext \
21861 conftest$ac_exeext conftest.$ac_ext
21863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21865 if test `eval echo '${'$as_ac_var'}'` = yes; then
21866 cat >>confdefs.h <<_ACEOF
21867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21868 _ACEOF
21871 done
21878 echo "$as_me:$LINENO: checking for logl declaration" >&5
21879 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21880 if test x${glibcxx_cv_func_logl_use+set} != xset; then
21881 if test "${glibcxx_cv_func_logl_use+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21887 ac_ext=cc
21888 ac_cpp='$CXXCPP $CPPFLAGS'
21889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21893 cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h. */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 #include <math.h>
21900 #ifdef HAVE_IEEEFP_H
21901 #include <ieeefp.h>
21902 #endif
21905 main ()
21907 logl(0);
21909 return 0;
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914 (eval $ac_compile) 2>conftest.er1
21915 ac_status=$?
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
21921 { ac_try='test -z "$ac_cxx_werror_flag"
21922 || test ! -s conftest.err'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; } &&
21928 { ac_try='test -s conftest.$ac_objext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 glibcxx_cv_func_logl_use=yes
21935 else
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 glibcxx_cv_func_logl_use=no
21941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21942 ac_ext=c
21943 ac_cpp='$CPP $CPPFLAGS'
21944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21952 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
21953 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
21955 if test x$glibcxx_cv_func_logl_use = x"yes"; then
21957 for ac_func in logl
21959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21960 echo "$as_me:$LINENO: checking for $ac_func" >&5
21961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21962 if eval "test \"\${$as_ac_var+set}\" = set"; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965 if test x$gcc_no_link = xyes; then
21966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21968 { (exit 1); exit 1; }; }
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h. */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21978 #define $ac_func innocuous_$ac_func
21980 /* System header to define __stub macros and hopefully few prototypes,
21981 which can conflict with char $ac_func (); below.
21982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21983 <limits.h> exists even on freestanding compilers. */
21985 #ifdef __STDC__
21986 # include <limits.h>
21987 #else
21988 # include <assert.h>
21989 #endif
21991 #undef $ac_func
21993 /* Override any gcc2 internal prototype to avoid an error. */
21994 #ifdef __cplusplus
21995 extern "C"
21997 #endif
21998 /* We use char because int might match the return type of a gcc2
21999 builtin and then its argument prototype would still apply. */
22000 char $ac_func ();
22001 /* The GNU C library defines this for functions which it implements
22002 to always fail with ENOSYS. Some functions are actually named
22003 something starting with __ and the normal name is an alias. */
22004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22005 choke me
22006 #else
22007 char (*f) () = $ac_func;
22008 #endif
22009 #ifdef __cplusplus
22011 #endif
22014 main ()
22016 return f != $ac_func;
22018 return 0;
22020 _ACEOF
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22023 (eval $ac_link) 2>conftest.er1
22024 ac_status=$?
22025 grep -v '^ *+' conftest.er1 >conftest.err
22026 rm -f conftest.er1
22027 cat conftest.err >&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } &&
22030 { ac_try='test -z "$ac_c_werror_flag"
22031 || test ! -s conftest.err'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; } &&
22037 { ac_try='test -s conftest$ac_exeext'
22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039 (eval $ac_try) 2>&5
22040 ac_status=$?
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22043 eval "$as_ac_var=yes"
22044 else
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 eval "$as_ac_var=no"
22050 rm -f conftest.err conftest.$ac_objext \
22051 conftest$ac_exeext conftest.$ac_ext
22053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22055 if test `eval echo '${'$as_ac_var'}'` = yes; then
22056 cat >>confdefs.h <<_ACEOF
22057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22058 _ACEOF
22061 done
22063 else
22065 echo "$as_me:$LINENO: checking for _logl declaration" >&5
22066 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
22067 if test x${glibcxx_cv_func__logl_use+set} != xset; then
22068 if test "${glibcxx_cv_func__logl_use+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22074 ac_ext=cc
22075 ac_cpp='$CXXCPP $CPPFLAGS'
22076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h. */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22086 #include <math.h>
22087 #ifdef HAVE_IEEEFP_H
22088 #include <ieeefp.h>
22089 #endif
22092 main ()
22094 _logl(0);
22096 return 0;
22098 _ACEOF
22099 rm -f conftest.$ac_objext
22100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22101 (eval $ac_compile) 2>conftest.er1
22102 ac_status=$?
22103 grep -v '^ *+' conftest.er1 >conftest.err
22104 rm -f conftest.er1
22105 cat conftest.err >&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } &&
22108 { ac_try='test -z "$ac_cxx_werror_flag"
22109 || test ! -s conftest.err'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest.$ac_objext'
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 glibcxx_cv_func__logl_use=yes
22122 else
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22126 glibcxx_cv_func__logl_use=no
22128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22129 ac_ext=c
22130 ac_cpp='$CPP $CPPFLAGS'
22131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22139 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
22140 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
22142 if test x$glibcxx_cv_func__logl_use = x"yes"; then
22144 for ac_func in _logl
22146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22147 echo "$as_me:$LINENO: checking for $ac_func" >&5
22148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22149 if eval "test \"\${$as_ac_var+set}\" = set"; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152 if test x$gcc_no_link = xyes; then
22153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22155 { (exit 1); exit 1; }; }
22157 cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h. */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22165 #define $ac_func innocuous_$ac_func
22167 /* System header to define __stub macros and hopefully few prototypes,
22168 which can conflict with char $ac_func (); below.
22169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22170 <limits.h> exists even on freestanding compilers. */
22172 #ifdef __STDC__
22173 # include <limits.h>
22174 #else
22175 # include <assert.h>
22176 #endif
22178 #undef $ac_func
22180 /* Override any gcc2 internal prototype to avoid an error. */
22181 #ifdef __cplusplus
22182 extern "C"
22184 #endif
22185 /* We use char because int might match the return type of a gcc2
22186 builtin and then its argument prototype would still apply. */
22187 char $ac_func ();
22188 /* The GNU C library defines this for functions which it implements
22189 to always fail with ENOSYS. Some functions are actually named
22190 something starting with __ and the normal name is an alias. */
22191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22192 choke me
22193 #else
22194 char (*f) () = $ac_func;
22195 #endif
22196 #ifdef __cplusplus
22198 #endif
22201 main ()
22203 return f != $ac_func;
22205 return 0;
22207 _ACEOF
22208 rm -f conftest.$ac_objext conftest$ac_exeext
22209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22210 (eval $ac_link) 2>conftest.er1
22211 ac_status=$?
22212 grep -v '^ *+' conftest.er1 >conftest.err
22213 rm -f conftest.er1
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } &&
22217 { ac_try='test -z "$ac_c_werror_flag"
22218 || test ! -s conftest.err'
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; } &&
22224 { ac_try='test -s conftest$ac_exeext'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }; then
22230 eval "$as_ac_var=yes"
22231 else
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 eval "$as_ac_var=no"
22237 rm -f conftest.err conftest.$ac_objext \
22238 conftest$ac_exeext conftest.$ac_ext
22240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22242 if test `eval echo '${'$as_ac_var'}'` = yes; then
22243 cat >>confdefs.h <<_ACEOF
22244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22245 _ACEOF
22248 done
22255 echo "$as_me:$LINENO: checking for log10l declaration" >&5
22256 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
22257 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
22258 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 else
22264 ac_ext=cc
22265 ac_cpp='$CXXCPP $CPPFLAGS'
22266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 #include <math.h>
22277 #ifdef HAVE_IEEEFP_H
22278 #include <ieeefp.h>
22279 #endif
22282 main ()
22284 log10l(0);
22286 return 0;
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22291 (eval $ac_compile) 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } &&
22298 { ac_try='test -z "$ac_cxx_werror_flag"
22299 || test ! -s conftest.err'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; } &&
22305 { ac_try='test -s conftest.$ac_objext'
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311 glibcxx_cv_func_log10l_use=yes
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 glibcxx_cv_func_log10l_use=no
22318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319 ac_ext=c
22320 ac_cpp='$CPP $CPPFLAGS'
22321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22329 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22330 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22332 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22334 for ac_func in log10l
22336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22337 echo "$as_me:$LINENO: checking for $ac_func" >&5
22338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22339 if eval "test \"\${$as_ac_var+set}\" = set"; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 else
22342 if test x$gcc_no_link = xyes; then
22343 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22345 { (exit 1); exit 1; }; }
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h. */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22355 #define $ac_func innocuous_$ac_func
22357 /* System header to define __stub macros and hopefully few prototypes,
22358 which can conflict with char $ac_func (); below.
22359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22360 <limits.h> exists even on freestanding compilers. */
22362 #ifdef __STDC__
22363 # include <limits.h>
22364 #else
22365 # include <assert.h>
22366 #endif
22368 #undef $ac_func
22370 /* Override any gcc2 internal prototype to avoid an error. */
22371 #ifdef __cplusplus
22372 extern "C"
22374 #endif
22375 /* We use char because int might match the return type of a gcc2
22376 builtin and then its argument prototype would still apply. */
22377 char $ac_func ();
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22382 choke me
22383 #else
22384 char (*f) () = $ac_func;
22385 #endif
22386 #ifdef __cplusplus
22388 #endif
22391 main ()
22393 return f != $ac_func;
22395 return 0;
22397 _ACEOF
22398 rm -f conftest.$ac_objext conftest$ac_exeext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400 (eval $ac_link) 2>conftest.er1
22401 ac_status=$?
22402 grep -v '^ *+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_c_werror_flag"
22408 || test ! -s conftest.err'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; } &&
22414 { ac_try='test -s conftest$ac_exeext'
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22420 eval "$as_ac_var=yes"
22421 else
22422 echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22425 eval "$as_ac_var=no"
22427 rm -f conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22432 if test `eval echo '${'$as_ac_var'}'` = yes; then
22433 cat >>confdefs.h <<_ACEOF
22434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22435 _ACEOF
22438 done
22440 else
22442 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22443 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22444 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22445 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22451 ac_ext=cc
22452 ac_cpp='$CXXCPP $CPPFLAGS'
22453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h. */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 #include <math.h>
22464 #ifdef HAVE_IEEEFP_H
22465 #include <ieeefp.h>
22466 #endif
22469 main ()
22471 _log10l(0);
22473 return 0;
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22478 (eval $ac_compile) 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } &&
22485 { ac_try='test -z "$ac_cxx_werror_flag"
22486 || test ! -s conftest.err'
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; } &&
22492 { ac_try='test -s conftest.$ac_objext'
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 glibcxx_cv_func__log10l_use=yes
22499 else
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 glibcxx_cv_func__log10l_use=no
22505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22517 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22519 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22521 for ac_func in _log10l
22523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22524 echo "$as_me:$LINENO: checking for $ac_func" >&5
22525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22526 if eval "test \"\${$as_ac_var+set}\" = set"; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529 if test x$gcc_no_link = xyes; then
22530 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22532 { (exit 1); exit 1; }; }
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22542 #define $ac_func innocuous_$ac_func
22544 /* System header to define __stub macros and hopefully few prototypes,
22545 which can conflict with char $ac_func (); below.
22546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22547 <limits.h> exists even on freestanding compilers. */
22549 #ifdef __STDC__
22550 # include <limits.h>
22551 #else
22552 # include <assert.h>
22553 #endif
22555 #undef $ac_func
22557 /* Override any gcc2 internal prototype to avoid an error. */
22558 #ifdef __cplusplus
22559 extern "C"
22561 #endif
22562 /* We use char because int might match the return type of a gcc2
22563 builtin and then its argument prototype would still apply. */
22564 char $ac_func ();
22565 /* The GNU C library defines this for functions which it implements
22566 to always fail with ENOSYS. Some functions are actually named
22567 something starting with __ and the normal name is an alias. */
22568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22569 choke me
22570 #else
22571 char (*f) () = $ac_func;
22572 #endif
22573 #ifdef __cplusplus
22575 #endif
22578 main ()
22580 return f != $ac_func;
22582 return 0;
22584 _ACEOF
22585 rm -f conftest.$ac_objext conftest$ac_exeext
22586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22587 (eval $ac_link) 2>conftest.er1
22588 ac_status=$?
22589 grep -v '^ *+' conftest.er1 >conftest.err
22590 rm -f conftest.er1
22591 cat conftest.err >&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } &&
22594 { ac_try='test -z "$ac_c_werror_flag"
22595 || test ! -s conftest.err'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest$ac_exeext'
22602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; }; then
22607 eval "$as_ac_var=yes"
22608 else
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22612 eval "$as_ac_var=no"
22614 rm -f conftest.err conftest.$ac_objext \
22615 conftest$ac_exeext conftest.$ac_ext
22617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22619 if test `eval echo '${'$as_ac_var'}'` = yes; then
22620 cat >>confdefs.h <<_ACEOF
22621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22622 _ACEOF
22625 done
22632 echo "$as_me:$LINENO: checking for modfl declaration" >&5
22633 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22634 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22635 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22636 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22641 ac_ext=cc
22642 ac_cpp='$CXXCPP $CPPFLAGS'
22643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22647 cat >conftest.$ac_ext <<_ACEOF
22648 /* confdefs.h. */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653 #include <math.h>
22655 main ()
22657 modfl(0, 0);
22659 return 0;
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664 (eval $ac_compile) 2>conftest.er1
22665 ac_status=$?
22666 grep -v '^ *+' conftest.er1 >conftest.err
22667 rm -f conftest.er1
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } &&
22671 { ac_try='test -z "$ac_cxx_werror_flag"
22672 || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest.$ac_objext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 glibcxx_cv_func_modfl_use=yes
22685 else
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22689 glibcxx_cv_func_modfl_use=no
22691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692 ac_ext=c
22693 ac_cpp='$CPP $CPPFLAGS'
22694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22702 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22703 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22705 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22707 for ac_func in modfl
22709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22710 echo "$as_me:$LINENO: checking for $ac_func" >&5
22711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22712 if eval "test \"\${$as_ac_var+set}\" = set"; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22714 else
22715 if test x$gcc_no_link = xyes; then
22716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22718 { (exit 1); exit 1; }; }
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h. */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22728 #define $ac_func innocuous_$ac_func
22730 /* System header to define __stub macros and hopefully few prototypes,
22731 which can conflict with char $ac_func (); below.
22732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22733 <limits.h> exists even on freestanding compilers. */
22735 #ifdef __STDC__
22736 # include <limits.h>
22737 #else
22738 # include <assert.h>
22739 #endif
22741 #undef $ac_func
22743 /* Override any gcc2 internal prototype to avoid an error. */
22744 #ifdef __cplusplus
22745 extern "C"
22747 #endif
22748 /* We use char because int might match the return type of a gcc2
22749 builtin and then its argument prototype would still apply. */
22750 char $ac_func ();
22751 /* The GNU C library defines this for functions which it implements
22752 to always fail with ENOSYS. Some functions are actually named
22753 something starting with __ and the normal name is an alias. */
22754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22755 choke me
22756 #else
22757 char (*f) () = $ac_func;
22758 #endif
22759 #ifdef __cplusplus
22761 #endif
22764 main ()
22766 return f != $ac_func;
22768 return 0;
22770 _ACEOF
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773 (eval $ac_link) 2>conftest.er1
22774 ac_status=$?
22775 grep -v '^ *+' conftest.er1 >conftest.err
22776 rm -f conftest.er1
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } &&
22780 { ac_try='test -z "$ac_c_werror_flag"
22781 || test ! -s conftest.err'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; } &&
22787 { ac_try='test -s conftest$ac_exeext'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; }; then
22793 eval "$as_ac_var=yes"
22794 else
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 eval "$as_ac_var=no"
22800 rm -f conftest.err conftest.$ac_objext \
22801 conftest$ac_exeext conftest.$ac_ext
22803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22805 if test `eval echo '${'$as_ac_var'}'` = yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22808 _ACEOF
22811 done
22813 else
22815 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22816 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22817 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22818 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22824 ac_ext=cc
22825 ac_cpp='$CXXCPP $CPPFLAGS'
22826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22830 cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h. */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22836 #include <math.h>
22838 main ()
22840 _modfl(0, 0);
22842 return 0;
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22847 (eval $ac_compile) 2>conftest.er1
22848 ac_status=$?
22849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } &&
22854 { ac_try='test -z "$ac_cxx_werror_flag"
22855 || test ! -s conftest.err'
22856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857 (eval $ac_try) 2>&5
22858 ac_status=$?
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; } &&
22861 { ac_try='test -s conftest.$ac_objext'
22862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867 glibcxx_cv_func__modfl_use=yes
22868 else
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 glibcxx_cv_func__modfl_use=no
22874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875 ac_ext=c
22876 ac_cpp='$CPP $CPPFLAGS'
22877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22885 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22886 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22888 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22890 for ac_func in _modfl
22892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22893 echo "$as_me:$LINENO: checking for $ac_func" >&5
22894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22895 if eval "test \"\${$as_ac_var+set}\" = set"; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898 if test x$gcc_no_link = xyes; then
22899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22901 { (exit 1); exit 1; }; }
22903 cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h. */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22911 #define $ac_func innocuous_$ac_func
22913 /* System header to define __stub macros and hopefully few prototypes,
22914 which can conflict with char $ac_func (); below.
22915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22916 <limits.h> exists even on freestanding compilers. */
22918 #ifdef __STDC__
22919 # include <limits.h>
22920 #else
22921 # include <assert.h>
22922 #endif
22924 #undef $ac_func
22926 /* Override any gcc2 internal prototype to avoid an error. */
22927 #ifdef __cplusplus
22928 extern "C"
22930 #endif
22931 /* We use char because int might match the return type of a gcc2
22932 builtin and then its argument prototype would still apply. */
22933 char $ac_func ();
22934 /* The GNU C library defines this for functions which it implements
22935 to always fail with ENOSYS. Some functions are actually named
22936 something starting with __ and the normal name is an alias. */
22937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22938 choke me
22939 #else
22940 char (*f) () = $ac_func;
22941 #endif
22942 #ifdef __cplusplus
22944 #endif
22947 main ()
22949 return f != $ac_func;
22951 return 0;
22953 _ACEOF
22954 rm -f conftest.$ac_objext conftest$ac_exeext
22955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22956 (eval $ac_link) 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } &&
22963 { ac_try='test -z "$ac_c_werror_flag"
22964 || test ! -s conftest.err'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; } &&
22970 { ac_try='test -s conftest$ac_exeext'
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; }; then
22976 eval "$as_ac_var=yes"
22977 else
22978 echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 eval "$as_ac_var=no"
22983 rm -f conftest.err conftest.$ac_objext \
22984 conftest$ac_exeext conftest.$ac_ext
22986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22988 if test `eval echo '${'$as_ac_var'}'` = yes; then
22989 cat >>confdefs.h <<_ACEOF
22990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22991 _ACEOF
22994 done
23001 echo "$as_me:$LINENO: checking for powl declaration" >&5
23002 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
23003 if test x${glibcxx_cv_func_powl_use+set} != xset; then
23004 if test "${glibcxx_cv_func_powl_use+set}" = set; then
23005 echo $ECHO_N "(cached) $ECHO_C" >&6
23006 else
23010 ac_ext=cc
23011 ac_cpp='$CXXCPP $CPPFLAGS'
23012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23016 cat >conftest.$ac_ext <<_ACEOF
23017 /* confdefs.h. */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h. */
23022 #include <math.h>
23024 main ()
23026 powl(0, 0);
23028 return 0;
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23033 (eval $ac_compile) 2>conftest.er1
23034 ac_status=$?
23035 grep -v '^ *+' conftest.er1 >conftest.err
23036 rm -f conftest.er1
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } &&
23040 { ac_try='test -z "$ac_cxx_werror_flag"
23041 || test ! -s conftest.err'
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; } &&
23047 { ac_try='test -s conftest.$ac_objext'
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; }; then
23053 glibcxx_cv_func_powl_use=yes
23054 else
23055 echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23058 glibcxx_cv_func_powl_use=no
23060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23061 ac_ext=c
23062 ac_cpp='$CPP $CPPFLAGS'
23063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23071 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
23072 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
23074 if test x$glibcxx_cv_func_powl_use = x"yes"; then
23076 for ac_func in powl
23078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23079 echo "$as_me:$LINENO: checking for $ac_func" >&5
23080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23081 if eval "test \"\${$as_ac_var+set}\" = set"; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 if test x$gcc_no_link = xyes; then
23085 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23087 { (exit 1); exit 1; }; }
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h. */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23097 #define $ac_func innocuous_$ac_func
23099 /* System header to define __stub macros and hopefully few prototypes,
23100 which can conflict with char $ac_func (); below.
23101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23102 <limits.h> exists even on freestanding compilers. */
23104 #ifdef __STDC__
23105 # include <limits.h>
23106 #else
23107 # include <assert.h>
23108 #endif
23110 #undef $ac_func
23112 /* Override any gcc2 internal prototype to avoid an error. */
23113 #ifdef __cplusplus
23114 extern "C"
23116 #endif
23117 /* We use char because int might match the return type of a gcc2
23118 builtin and then its argument prototype would still apply. */
23119 char $ac_func ();
23120 /* The GNU C library defines this for functions which it implements
23121 to always fail with ENOSYS. Some functions are actually named
23122 something starting with __ and the normal name is an alias. */
23123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23124 choke me
23125 #else
23126 char (*f) () = $ac_func;
23127 #endif
23128 #ifdef __cplusplus
23130 #endif
23133 main ()
23135 return f != $ac_func;
23137 return 0;
23139 _ACEOF
23140 rm -f conftest.$ac_objext conftest$ac_exeext
23141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23142 (eval $ac_link) 2>conftest.er1
23143 ac_status=$?
23144 grep -v '^ *+' conftest.er1 >conftest.err
23145 rm -f conftest.er1
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } &&
23149 { ac_try='test -z "$ac_c_werror_flag"
23150 || test ! -s conftest.err'
23151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; } &&
23156 { ac_try='test -s conftest$ac_exeext'
23157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158 (eval $ac_try) 2>&5
23159 ac_status=$?
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; }; then
23162 eval "$as_ac_var=yes"
23163 else
23164 echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 eval "$as_ac_var=no"
23169 rm -f conftest.err conftest.$ac_objext \
23170 conftest$ac_exeext conftest.$ac_ext
23172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23174 if test `eval echo '${'$as_ac_var'}'` = yes; then
23175 cat >>confdefs.h <<_ACEOF
23176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23177 _ACEOF
23180 done
23182 else
23184 echo "$as_me:$LINENO: checking for _powl declaration" >&5
23185 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
23186 if test x${glibcxx_cv_func__powl_use+set} != xset; then
23187 if test "${glibcxx_cv_func__powl_use+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23193 ac_ext=cc
23194 ac_cpp='$CXXCPP $CPPFLAGS'
23195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23199 cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h. */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 #include <math.h>
23207 main ()
23209 _powl(0, 0);
23211 return 0;
23213 _ACEOF
23214 rm -f conftest.$ac_objext
23215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23216 (eval $ac_compile) 2>conftest.er1
23217 ac_status=$?
23218 grep -v '^ *+' conftest.er1 >conftest.err
23219 rm -f conftest.er1
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } &&
23223 { ac_try='test -z "$ac_cxx_werror_flag"
23224 || test ! -s conftest.err'
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; } &&
23230 { ac_try='test -s conftest.$ac_objext'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23236 glibcxx_cv_func__powl_use=yes
23237 else
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 glibcxx_cv_func__powl_use=no
23243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23244 ac_ext=c
23245 ac_cpp='$CPP $CPPFLAGS'
23246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23254 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
23255 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
23257 if test x$glibcxx_cv_func__powl_use = x"yes"; then
23259 for ac_func in _powl
23261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23262 echo "$as_me:$LINENO: checking for $ac_func" >&5
23263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23264 if eval "test \"\${$as_ac_var+set}\" = set"; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23266 else
23267 if test x$gcc_no_link = xyes; then
23268 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23270 { (exit 1); exit 1; }; }
23272 cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h. */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23280 #define $ac_func innocuous_$ac_func
23282 /* System header to define __stub macros and hopefully few prototypes,
23283 which can conflict with char $ac_func (); below.
23284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23285 <limits.h> exists even on freestanding compilers. */
23287 #ifdef __STDC__
23288 # include <limits.h>
23289 #else
23290 # include <assert.h>
23291 #endif
23293 #undef $ac_func
23295 /* Override any gcc2 internal prototype to avoid an error. */
23296 #ifdef __cplusplus
23297 extern "C"
23299 #endif
23300 /* We use char because int might match the return type of a gcc2
23301 builtin and then its argument prototype would still apply. */
23302 char $ac_func ();
23303 /* The GNU C library defines this for functions which it implements
23304 to always fail with ENOSYS. Some functions are actually named
23305 something starting with __ and the normal name is an alias. */
23306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23307 choke me
23308 #else
23309 char (*f) () = $ac_func;
23310 #endif
23311 #ifdef __cplusplus
23313 #endif
23316 main ()
23318 return f != $ac_func;
23320 return 0;
23322 _ACEOF
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325 (eval $ac_link) 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
23332 { ac_try='test -z "$ac_c_werror_flag"
23333 || test ! -s conftest.err'
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest$ac_exeext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 eval "$as_ac_var=yes"
23346 else
23347 echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23350 eval "$as_ac_var=no"
23352 rm -f conftest.err conftest.$ac_objext \
23353 conftest$ac_exeext conftest.$ac_ext
23355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23357 if test `eval echo '${'$as_ac_var'}'` = yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23360 _ACEOF
23363 done
23370 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23371 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23372 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23373 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23379 ac_ext=cc
23380 ac_cpp='$CXXCPP $CPPFLAGS'
23381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23385 cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h. */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23391 #include <math.h>
23392 #ifdef HAVE_IEEEFP_H
23393 #include <ieeefp.h>
23394 #endif
23397 main ()
23399 sqrtl(0);
23401 return 0;
23403 _ACEOF
23404 rm -f conftest.$ac_objext
23405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23406 (eval $ac_compile) 2>conftest.er1
23407 ac_status=$?
23408 grep -v '^ *+' conftest.er1 >conftest.err
23409 rm -f conftest.er1
23410 cat conftest.err >&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } &&
23413 { ac_try='test -z "$ac_cxx_werror_flag"
23414 || test ! -s conftest.err'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; } &&
23420 { ac_try='test -s conftest.$ac_objext'
23421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422 (eval $ac_try) 2>&5
23423 ac_status=$?
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; }; then
23426 glibcxx_cv_func_sqrtl_use=yes
23427 else
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23431 glibcxx_cv_func_sqrtl_use=no
23433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23434 ac_ext=c
23435 ac_cpp='$CPP $CPPFLAGS'
23436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23444 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23445 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23447 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23449 for ac_func in sqrtl
23451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23452 echo "$as_me:$LINENO: checking for $ac_func" >&5
23453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23454 if eval "test \"\${$as_ac_var+set}\" = set"; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23456 else
23457 if test x$gcc_no_link = xyes; then
23458 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23460 { (exit 1); exit 1; }; }
23462 cat >conftest.$ac_ext <<_ACEOF
23463 /* confdefs.h. */
23464 _ACEOF
23465 cat confdefs.h >>conftest.$ac_ext
23466 cat >>conftest.$ac_ext <<_ACEOF
23467 /* end confdefs.h. */
23468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23470 #define $ac_func innocuous_$ac_func
23472 /* System header to define __stub macros and hopefully few prototypes,
23473 which can conflict with char $ac_func (); below.
23474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23475 <limits.h> exists even on freestanding compilers. */
23477 #ifdef __STDC__
23478 # include <limits.h>
23479 #else
23480 # include <assert.h>
23481 #endif
23483 #undef $ac_func
23485 /* Override any gcc2 internal prototype to avoid an error. */
23486 #ifdef __cplusplus
23487 extern "C"
23489 #endif
23490 /* We use char because int might match the return type of a gcc2
23491 builtin and then its argument prototype would still apply. */
23492 char $ac_func ();
23493 /* The GNU C library defines this for functions which it implements
23494 to always fail with ENOSYS. Some functions are actually named
23495 something starting with __ and the normal name is an alias. */
23496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23497 choke me
23498 #else
23499 char (*f) () = $ac_func;
23500 #endif
23501 #ifdef __cplusplus
23503 #endif
23506 main ()
23508 return f != $ac_func;
23510 return 0;
23512 _ACEOF
23513 rm -f conftest.$ac_objext conftest$ac_exeext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23515 (eval $ac_link) 2>conftest.er1
23516 ac_status=$?
23517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
23522 { ac_try='test -z "$ac_c_werror_flag"
23523 || test ! -s conftest.err'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; } &&
23529 { ac_try='test -s conftest$ac_exeext'
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 eval "$as_ac_var=yes"
23536 else
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 eval "$as_ac_var=no"
23542 rm -f conftest.err conftest.$ac_objext \
23543 conftest$ac_exeext conftest.$ac_ext
23545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23547 if test `eval echo '${'$as_ac_var'}'` = yes; then
23548 cat >>confdefs.h <<_ACEOF
23549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23550 _ACEOF
23553 done
23555 else
23557 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23558 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23559 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23560 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23561 echo $ECHO_N "(cached) $ECHO_C" >&6
23562 else
23566 ac_ext=cc
23567 ac_cpp='$CXXCPP $CPPFLAGS'
23568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23572 cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h. */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23578 #include <math.h>
23579 #ifdef HAVE_IEEEFP_H
23580 #include <ieeefp.h>
23581 #endif
23584 main ()
23586 _sqrtl(0);
23588 return 0;
23590 _ACEOF
23591 rm -f conftest.$ac_objext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23593 (eval $ac_compile) 2>conftest.er1
23594 ac_status=$?
23595 grep -v '^ *+' conftest.er1 >conftest.err
23596 rm -f conftest.er1
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } &&
23600 { ac_try='test -z "$ac_cxx_werror_flag"
23601 || test ! -s conftest.err'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest.$ac_objext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23613 glibcxx_cv_func__sqrtl_use=yes
23614 else
23615 echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23618 glibcxx_cv_func__sqrtl_use=no
23620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23621 ac_ext=c
23622 ac_cpp='$CPP $CPPFLAGS'
23623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23631 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23632 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23634 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23636 for ac_func in _sqrtl
23638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23639 echo "$as_me:$LINENO: checking for $ac_func" >&5
23640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23641 if eval "test \"\${$as_ac_var+set}\" = set"; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644 if test x$gcc_no_link = xyes; then
23645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23647 { (exit 1); exit 1; }; }
23649 cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h. */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h. */
23655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23657 #define $ac_func innocuous_$ac_func
23659 /* System header to define __stub macros and hopefully few prototypes,
23660 which can conflict with char $ac_func (); below.
23661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23662 <limits.h> exists even on freestanding compilers. */
23664 #ifdef __STDC__
23665 # include <limits.h>
23666 #else
23667 # include <assert.h>
23668 #endif
23670 #undef $ac_func
23672 /* Override any gcc2 internal prototype to avoid an error. */
23673 #ifdef __cplusplus
23674 extern "C"
23676 #endif
23677 /* We use char because int might match the return type of a gcc2
23678 builtin and then its argument prototype would still apply. */
23679 char $ac_func ();
23680 /* The GNU C library defines this for functions which it implements
23681 to always fail with ENOSYS. Some functions are actually named
23682 something starting with __ and the normal name is an alias. */
23683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23684 choke me
23685 #else
23686 char (*f) () = $ac_func;
23687 #endif
23688 #ifdef __cplusplus
23690 #endif
23693 main ()
23695 return f != $ac_func;
23697 return 0;
23699 _ACEOF
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23702 (eval $ac_link) 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest$ac_exeext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 eval "$as_ac_var=yes"
23723 else
23724 echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23727 eval "$as_ac_var=no"
23729 rm -f conftest.err conftest.$ac_objext \
23730 conftest$ac_exeext conftest.$ac_ext
23732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23734 if test `eval echo '${'$as_ac_var'}'` = yes; then
23735 cat >>confdefs.h <<_ACEOF
23736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23737 _ACEOF
23740 done
23747 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23748 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23749 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23750 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23756 ac_ext=cc
23757 ac_cpp='$CXXCPP $CPPFLAGS'
23758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23762 cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h. */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 #include <math.h>
23770 main ()
23772 sincosl(0, 0, 0);
23774 return 0;
23776 _ACEOF
23777 rm -f conftest.$ac_objext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23779 (eval $ac_compile) 2>conftest.er1
23780 ac_status=$?
23781 grep -v '^ *+' conftest.er1 >conftest.err
23782 rm -f conftest.er1
23783 cat conftest.err >&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } &&
23786 { ac_try='test -z "$ac_cxx_werror_flag"
23787 || test ! -s conftest.err'
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23790 ac_status=$?
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; } &&
23793 { ac_try='test -s conftest.$ac_objext'
23794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795 (eval $ac_try) 2>&5
23796 ac_status=$?
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); }; }; then
23799 glibcxx_cv_func_sincosl_use=yes
23800 else
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23804 glibcxx_cv_func_sincosl_use=no
23806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23807 ac_ext=c
23808 ac_cpp='$CPP $CPPFLAGS'
23809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23817 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23818 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23820 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23822 for ac_func in sincosl
23824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23825 echo "$as_me:$LINENO: checking for $ac_func" >&5
23826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23827 if eval "test \"\${$as_ac_var+set}\" = set"; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23829 else
23830 if test x$gcc_no_link = xyes; then
23831 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23833 { (exit 1); exit 1; }; }
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h. */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23843 #define $ac_func innocuous_$ac_func
23845 /* System header to define __stub macros and hopefully few prototypes,
23846 which can conflict with char $ac_func (); below.
23847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23848 <limits.h> exists even on freestanding compilers. */
23850 #ifdef __STDC__
23851 # include <limits.h>
23852 #else
23853 # include <assert.h>
23854 #endif
23856 #undef $ac_func
23858 /* Override any gcc2 internal prototype to avoid an error. */
23859 #ifdef __cplusplus
23860 extern "C"
23862 #endif
23863 /* We use char because int might match the return type of a gcc2
23864 builtin and then its argument prototype would still apply. */
23865 char $ac_func ();
23866 /* The GNU C library defines this for functions which it implements
23867 to always fail with ENOSYS. Some functions are actually named
23868 something starting with __ and the normal name is an alias. */
23869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23870 choke me
23871 #else
23872 char (*f) () = $ac_func;
23873 #endif
23874 #ifdef __cplusplus
23876 #endif
23879 main ()
23881 return f != $ac_func;
23883 return 0;
23885 _ACEOF
23886 rm -f conftest.$ac_objext conftest$ac_exeext
23887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23888 (eval $ac_link) 2>conftest.er1
23889 ac_status=$?
23890 grep -v '^ *+' conftest.er1 >conftest.err
23891 rm -f conftest.er1
23892 cat conftest.err >&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } &&
23895 { ac_try='test -z "$ac_c_werror_flag"
23896 || test ! -s conftest.err'
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; } &&
23902 { ac_try='test -s conftest$ac_exeext'
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908 eval "$as_ac_var=yes"
23909 else
23910 echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23913 eval "$as_ac_var=no"
23915 rm -f conftest.err conftest.$ac_objext \
23916 conftest$ac_exeext conftest.$ac_ext
23918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23920 if test `eval echo '${'$as_ac_var'}'` = yes; then
23921 cat >>confdefs.h <<_ACEOF
23922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23923 _ACEOF
23926 done
23928 else
23930 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
23931 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
23932 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
23933 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
23934 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 else
23939 ac_ext=cc
23940 ac_cpp='$CXXCPP $CPPFLAGS'
23941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23945 cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h. */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23951 #include <math.h>
23953 main ()
23955 _sincosl(0, 0, 0);
23957 return 0;
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23962 (eval $ac_compile) 2>conftest.er1
23963 ac_status=$?
23964 grep -v '^ *+' conftest.er1 >conftest.err
23965 rm -f conftest.er1
23966 cat conftest.err >&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } &&
23969 { ac_try='test -z "$ac_cxx_werror_flag"
23970 || test ! -s conftest.err'
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; } &&
23976 { ac_try='test -s conftest.$ac_objext'
23977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23982 glibcxx_cv_func__sincosl_use=yes
23983 else
23984 echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23987 glibcxx_cv_func__sincosl_use=no
23989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23990 ac_ext=c
23991 ac_cpp='$CPP $CPPFLAGS'
23992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24000 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
24001 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
24003 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
24005 for ac_func in _sincosl
24007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24008 echo "$as_me:$LINENO: checking for $ac_func" >&5
24009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24010 if eval "test \"\${$as_ac_var+set}\" = set"; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013 if test x$gcc_no_link = xyes; then
24014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24016 { (exit 1); exit 1; }; }
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24026 #define $ac_func innocuous_$ac_func
24028 /* System header to define __stub macros and hopefully few prototypes,
24029 which can conflict with char $ac_func (); below.
24030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24031 <limits.h> exists even on freestanding compilers. */
24033 #ifdef __STDC__
24034 # include <limits.h>
24035 #else
24036 # include <assert.h>
24037 #endif
24039 #undef $ac_func
24041 /* Override any gcc2 internal prototype to avoid an error. */
24042 #ifdef __cplusplus
24043 extern "C"
24045 #endif
24046 /* We use char because int might match the return type of a gcc2
24047 builtin and then its argument prototype would still apply. */
24048 char $ac_func ();
24049 /* The GNU C library defines this for functions which it implements
24050 to always fail with ENOSYS. Some functions are actually named
24051 something starting with __ and the normal name is an alias. */
24052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24053 choke me
24054 #else
24055 char (*f) () = $ac_func;
24056 #endif
24057 #ifdef __cplusplus
24059 #endif
24062 main ()
24064 return f != $ac_func;
24066 return 0;
24068 _ACEOF
24069 rm -f conftest.$ac_objext conftest$ac_exeext
24070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24071 (eval $ac_link) 2>conftest.er1
24072 ac_status=$?
24073 grep -v '^ *+' conftest.er1 >conftest.err
24074 rm -f conftest.er1
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } &&
24078 { ac_try='test -z "$ac_c_werror_flag"
24079 || test ! -s conftest.err'
24080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; } &&
24085 { ac_try='test -s conftest$ac_exeext'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; }; then
24091 eval "$as_ac_var=yes"
24092 else
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 eval "$as_ac_var=no"
24098 rm -f conftest.err conftest.$ac_objext \
24099 conftest$ac_exeext conftest.$ac_ext
24101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24103 if test `eval echo '${'$as_ac_var'}'` = yes; then
24104 cat >>confdefs.h <<_ACEOF
24105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24106 _ACEOF
24109 done
24116 echo "$as_me:$LINENO: checking for finitel declaration" >&5
24117 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
24118 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
24119 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 else
24125 ac_ext=cc
24126 ac_cpp='$CXXCPP $CPPFLAGS'
24127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24131 cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h. */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 #include <math.h>
24138 #ifdef HAVE_IEEEFP_H
24139 #include <ieeefp.h>
24140 #endif
24143 main ()
24145 finitel(0);
24147 return 0;
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24152 (eval $ac_compile) 2>conftest.er1
24153 ac_status=$?
24154 grep -v '^ *+' conftest.er1 >conftest.err
24155 rm -f conftest.er1
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } &&
24159 { ac_try='test -z "$ac_cxx_werror_flag"
24160 || test ! -s conftest.err'
24161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162 (eval $ac_try) 2>&5
24163 ac_status=$?
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; } &&
24166 { ac_try='test -s conftest.$ac_objext'
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; }; then
24172 glibcxx_cv_func_finitel_use=yes
24173 else
24174 echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24177 glibcxx_cv_func_finitel_use=no
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180 ac_ext=c
24181 ac_cpp='$CPP $CPPFLAGS'
24182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24190 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
24191 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
24193 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
24195 for ac_func in finitel
24197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24198 echo "$as_me:$LINENO: checking for $ac_func" >&5
24199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24200 if eval "test \"\${$as_ac_var+set}\" = set"; then
24201 echo $ECHO_N "(cached) $ECHO_C" >&6
24202 else
24203 if test x$gcc_no_link = xyes; then
24204 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24206 { (exit 1); exit 1; }; }
24208 cat >conftest.$ac_ext <<_ACEOF
24209 /* confdefs.h. */
24210 _ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h. */
24214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24216 #define $ac_func innocuous_$ac_func
24218 /* System header to define __stub macros and hopefully few prototypes,
24219 which can conflict with char $ac_func (); below.
24220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24221 <limits.h> exists even on freestanding compilers. */
24223 #ifdef __STDC__
24224 # include <limits.h>
24225 #else
24226 # include <assert.h>
24227 #endif
24229 #undef $ac_func
24231 /* Override any gcc2 internal prototype to avoid an error. */
24232 #ifdef __cplusplus
24233 extern "C"
24235 #endif
24236 /* We use char because int might match the return type of a gcc2
24237 builtin and then its argument prototype would still apply. */
24238 char $ac_func ();
24239 /* The GNU C library defines this for functions which it implements
24240 to always fail with ENOSYS. Some functions are actually named
24241 something starting with __ and the normal name is an alias. */
24242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24243 choke me
24244 #else
24245 char (*f) () = $ac_func;
24246 #endif
24247 #ifdef __cplusplus
24249 #endif
24252 main ()
24254 return f != $ac_func;
24256 return 0;
24258 _ACEOF
24259 rm -f conftest.$ac_objext conftest$ac_exeext
24260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24261 (eval $ac_link) 2>conftest.er1
24262 ac_status=$?
24263 grep -v '^ *+' conftest.er1 >conftest.err
24264 rm -f conftest.er1
24265 cat conftest.err >&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } &&
24268 { ac_try='test -z "$ac_c_werror_flag"
24269 || test ! -s conftest.err'
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; } &&
24275 { ac_try='test -s conftest$ac_exeext'
24276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277 (eval $ac_try) 2>&5
24278 ac_status=$?
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; }; then
24281 eval "$as_ac_var=yes"
24282 else
24283 echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24286 eval "$as_ac_var=no"
24288 rm -f conftest.err conftest.$ac_objext \
24289 conftest$ac_exeext conftest.$ac_ext
24291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24293 if test `eval echo '${'$as_ac_var'}'` = yes; then
24294 cat >>confdefs.h <<_ACEOF
24295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24296 _ACEOF
24299 done
24301 else
24303 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
24304 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
24305 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
24306 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24308 else
24312 ac_ext=cc
24313 ac_cpp='$CXXCPP $CPPFLAGS'
24314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24318 cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h. */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h. */
24324 #include <math.h>
24325 #ifdef HAVE_IEEEFP_H
24326 #include <ieeefp.h>
24327 #endif
24330 main ()
24332 _finitel(0);
24334 return 0;
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24339 (eval $ac_compile) 2>conftest.er1
24340 ac_status=$?
24341 grep -v '^ *+' conftest.er1 >conftest.err
24342 rm -f conftest.er1
24343 cat conftest.err >&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); } &&
24346 { ac_try='test -z "$ac_cxx_werror_flag"
24347 || test ! -s conftest.err'
24348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24349 (eval $ac_try) 2>&5
24350 ac_status=$?
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); }; } &&
24353 { ac_try='test -s conftest.$ac_objext'
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24356 ac_status=$?
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; }; then
24359 glibcxx_cv_func__finitel_use=yes
24360 else
24361 echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24364 glibcxx_cv_func__finitel_use=no
24366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24367 ac_ext=c
24368 ac_cpp='$CPP $CPPFLAGS'
24369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24377 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24378 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24380 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24382 for ac_func in _finitel
24384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24385 echo "$as_me:$LINENO: checking for $ac_func" >&5
24386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24387 if eval "test \"\${$as_ac_var+set}\" = set"; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390 if test x$gcc_no_link = xyes; then
24391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24393 { (exit 1); exit 1; }; }
24395 cat >conftest.$ac_ext <<_ACEOF
24396 /* confdefs.h. */
24397 _ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24403 #define $ac_func innocuous_$ac_func
24405 /* System header to define __stub macros and hopefully few prototypes,
24406 which can conflict with char $ac_func (); below.
24407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24408 <limits.h> exists even on freestanding compilers. */
24410 #ifdef __STDC__
24411 # include <limits.h>
24412 #else
24413 # include <assert.h>
24414 #endif
24416 #undef $ac_func
24418 /* Override any gcc2 internal prototype to avoid an error. */
24419 #ifdef __cplusplus
24420 extern "C"
24422 #endif
24423 /* We use char because int might match the return type of a gcc2
24424 builtin and then its argument prototype would still apply. */
24425 char $ac_func ();
24426 /* The GNU C library defines this for functions which it implements
24427 to always fail with ENOSYS. Some functions are actually named
24428 something starting with __ and the normal name is an alias. */
24429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24430 choke me
24431 #else
24432 char (*f) () = $ac_func;
24433 #endif
24434 #ifdef __cplusplus
24436 #endif
24439 main ()
24441 return f != $ac_func;
24443 return 0;
24445 _ACEOF
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448 (eval $ac_link) 2>conftest.er1
24449 ac_status=$?
24450 grep -v '^ *+' conftest.er1 >conftest.err
24451 rm -f conftest.er1
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try='test -z "$ac_c_werror_flag"
24456 || test ! -s conftest.err'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; } &&
24462 { ac_try='test -s conftest$ac_exeext'
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; }; then
24468 eval "$as_ac_var=yes"
24469 else
24470 echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 eval "$as_ac_var=no"
24475 rm -f conftest.err conftest.$ac_objext \
24476 conftest$ac_exeext conftest.$ac_ext
24478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24480 if test `eval echo '${'$as_ac_var'}'` = yes; then
24481 cat >>confdefs.h <<_ACEOF
24482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24483 _ACEOF
24486 done
24494 echo "$as_me:$LINENO: checking for _float trig functions" >&5
24495 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24496 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24497 echo $ECHO_N "(cached) $ECHO_C" >&6
24498 else
24502 ac_ext=cc
24503 ac_cpp='$CXXCPP $CPPFLAGS'
24504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24508 cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h. */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 #include <math.h>
24516 main ()
24518 `for x in _acosf _asinf _atanf \
24519 _cosf _sinf _tanf \
24520 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24522 return 0;
24524 _ACEOF
24525 rm -f conftest.$ac_objext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24527 (eval $ac_compile) 2>conftest.er1
24528 ac_status=$?
24529 grep -v '^ *+' conftest.er1 >conftest.err
24530 rm -f conftest.er1
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
24534 { ac_try='test -z "$ac_cxx_werror_flag"
24535 || test ! -s conftest.err'
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest.$ac_objext'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 glibcxx_cv_func__float_trig_use=yes
24548 else
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 glibcxx_cv_func__float_trig_use=no
24554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24555 ac_ext=c
24556 ac_cpp='$CPP $CPPFLAGS'
24557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24563 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24564 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24565 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24575 for ac_func in _acosf _asinf _atanf \
24576 _cosf _sinf _tanf \
24577 _coshf _sinhf _tanhf
24579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24580 echo "$as_me:$LINENO: checking for $ac_func" >&5
24581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24582 if eval "test \"\${$as_ac_var+set}\" = set"; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585 if test x$gcc_no_link = xyes; then
24586 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24588 { (exit 1); exit 1; }; }
24590 cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h. */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h. */
24596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24598 #define $ac_func innocuous_$ac_func
24600 /* System header to define __stub macros and hopefully few prototypes,
24601 which can conflict with char $ac_func (); below.
24602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24603 <limits.h> exists even on freestanding compilers. */
24605 #ifdef __STDC__
24606 # include <limits.h>
24607 #else
24608 # include <assert.h>
24609 #endif
24611 #undef $ac_func
24613 /* Override any gcc2 internal prototype to avoid an error. */
24614 #ifdef __cplusplus
24615 extern "C"
24617 #endif
24618 /* We use char because int might match the return type of a gcc2
24619 builtin and then its argument prototype would still apply. */
24620 char $ac_func ();
24621 /* The GNU C library defines this for functions which it implements
24622 to always fail with ENOSYS. Some functions are actually named
24623 something starting with __ and the normal name is an alias. */
24624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24625 choke me
24626 #else
24627 char (*f) () = $ac_func;
24628 #endif
24629 #ifdef __cplusplus
24631 #endif
24634 main ()
24636 return f != $ac_func;
24638 return 0;
24640 _ACEOF
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643 (eval $ac_link) 2>conftest.er1
24644 ac_status=$?
24645 grep -v '^ *+' conftest.er1 >conftest.err
24646 rm -f conftest.er1
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -z "$ac_c_werror_flag"
24651 || test ! -s conftest.err'
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24654 ac_status=$?
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; } &&
24657 { ac_try='test -s conftest$ac_exeext'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663 eval "$as_ac_var=yes"
24664 else
24665 echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24668 eval "$as_ac_var=no"
24670 rm -f conftest.err conftest.$ac_objext \
24671 conftest$ac_exeext conftest.$ac_ext
24673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24675 if test `eval echo '${'$as_ac_var'}'` = yes; then
24676 cat >>confdefs.h <<_ACEOF
24677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24678 _ACEOF
24681 done
24686 echo "$as_me:$LINENO: checking for _float round functions" >&5
24687 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24688 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24694 ac_ext=cc
24695 ac_cpp='$CXXCPP $CPPFLAGS'
24696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24700 cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h. */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24706 #include <math.h>
24708 main ()
24710 `for x in _ceilf _floorf; do echo "$x (0);"; done`
24712 return 0;
24714 _ACEOF
24715 rm -f conftest.$ac_objext
24716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24717 (eval $ac_compile) 2>conftest.er1
24718 ac_status=$?
24719 grep -v '^ *+' conftest.er1 >conftest.err
24720 rm -f conftest.er1
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } &&
24724 { ac_try='test -z "$ac_cxx_werror_flag"
24725 || test ! -s conftest.err'
24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; } &&
24731 { ac_try='test -s conftest.$ac_objext'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; }; then
24737 glibcxx_cv_func__float_round_use=yes
24738 else
24739 echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24742 glibcxx_cv_func__float_round_use=no
24744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24745 ac_ext=c
24746 ac_cpp='$CPP $CPPFLAGS'
24747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24753 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24754 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24755 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24758 for ac_func in _ceilf _floorf
24760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24761 echo "$as_me:$LINENO: checking for $ac_func" >&5
24762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24763 if eval "test \"\${$as_ac_var+set}\" = set"; then
24764 echo $ECHO_N "(cached) $ECHO_C" >&6
24765 else
24766 if test x$gcc_no_link = xyes; then
24767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24769 { (exit 1); exit 1; }; }
24771 cat >conftest.$ac_ext <<_ACEOF
24772 /* confdefs.h. */
24773 _ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h. */
24777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24779 #define $ac_func innocuous_$ac_func
24781 /* System header to define __stub macros and hopefully few prototypes,
24782 which can conflict with char $ac_func (); below.
24783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24784 <limits.h> exists even on freestanding compilers. */
24786 #ifdef __STDC__
24787 # include <limits.h>
24788 #else
24789 # include <assert.h>
24790 #endif
24792 #undef $ac_func
24794 /* Override any gcc2 internal prototype to avoid an error. */
24795 #ifdef __cplusplus
24796 extern "C"
24798 #endif
24799 /* We use char because int might match the return type of a gcc2
24800 builtin and then its argument prototype would still apply. */
24801 char $ac_func ();
24802 /* The GNU C library defines this for functions which it implements
24803 to always fail with ENOSYS. Some functions are actually named
24804 something starting with __ and the normal name is an alias. */
24805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24806 choke me
24807 #else
24808 char (*f) () = $ac_func;
24809 #endif
24810 #ifdef __cplusplus
24812 #endif
24815 main ()
24817 return f != $ac_func;
24819 return 0;
24821 _ACEOF
24822 rm -f conftest.$ac_objext conftest$ac_exeext
24823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24824 (eval $ac_link) 2>conftest.er1
24825 ac_status=$?
24826 grep -v '^ *+' conftest.er1 >conftest.err
24827 rm -f conftest.er1
24828 cat conftest.err >&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } &&
24831 { ac_try='test -z "$ac_c_werror_flag"
24832 || test ! -s conftest.err'
24833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 (eval $ac_try) 2>&5
24835 ac_status=$?
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); }; } &&
24838 { ac_try='test -s conftest$ac_exeext'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24841 ac_status=$?
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24844 eval "$as_ac_var=yes"
24845 else
24846 echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24849 eval "$as_ac_var=no"
24851 rm -f conftest.err conftest.$ac_objext \
24852 conftest$ac_exeext conftest.$ac_ext
24854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24856 if test `eval echo '${'$as_ac_var'}'` = yes; then
24857 cat >>confdefs.h <<_ACEOF
24858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24859 _ACEOF
24862 done
24868 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24869 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24870 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 else
24876 ac_ext=cc
24877 ac_cpp='$CXXCPP $CPPFLAGS'
24878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24882 cat >conftest.$ac_ext <<_ACEOF
24883 /* confdefs.h. */
24884 _ACEOF
24885 cat confdefs.h >>conftest.$ac_ext
24886 cat >>conftest.$ac_ext <<_ACEOF
24887 /* end confdefs.h. */
24888 #include <math.h>
24890 main ()
24892 `for x in _acosl _asinl _atanl \
24893 _cosl _sinl _tanl \
24894 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24896 return 0;
24898 _ACEOF
24899 rm -f conftest.$ac_objext
24900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24901 (eval $ac_compile) 2>conftest.er1
24902 ac_status=$?
24903 grep -v '^ *+' conftest.er1 >conftest.err
24904 rm -f conftest.er1
24905 cat conftest.err >&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } &&
24908 { ac_try='test -z "$ac_cxx_werror_flag"
24909 || test ! -s conftest.err'
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; } &&
24915 { ac_try='test -s conftest.$ac_objext'
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; }; then
24921 glibcxx_cv_func__long_double_trig_use=yes
24922 else
24923 echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24926 glibcxx_cv_func__long_double_trig_use=no
24928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24929 ac_ext=c
24930 ac_cpp='$CPP $CPPFLAGS'
24931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24937 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
24938 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
24939 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
24949 for ac_func in _acosl _asinl _atanl \
24950 _cosl _sinl _tanl \
24951 _coshl _sinhl _tanhl
24953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24954 echo "$as_me:$LINENO: checking for $ac_func" >&5
24955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24956 if eval "test \"\${$as_ac_var+set}\" = set"; then
24957 echo $ECHO_N "(cached) $ECHO_C" >&6
24958 else
24959 if test x$gcc_no_link = xyes; then
24960 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24962 { (exit 1); exit 1; }; }
24964 cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h. */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24972 #define $ac_func innocuous_$ac_func
24974 /* System header to define __stub macros and hopefully few prototypes,
24975 which can conflict with char $ac_func (); below.
24976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977 <limits.h> exists even on freestanding compilers. */
24979 #ifdef __STDC__
24980 # include <limits.h>
24981 #else
24982 # include <assert.h>
24983 #endif
24985 #undef $ac_func
24987 /* Override any gcc2 internal prototype to avoid an error. */
24988 #ifdef __cplusplus
24989 extern "C"
24991 #endif
24992 /* We use char because int might match the return type of a gcc2
24993 builtin and then its argument prototype would still apply. */
24994 char $ac_func ();
24995 /* The GNU C library defines this for functions which it implements
24996 to always fail with ENOSYS. Some functions are actually named
24997 something starting with __ and the normal name is an alias. */
24998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24999 choke me
25000 #else
25001 char (*f) () = $ac_func;
25002 #endif
25003 #ifdef __cplusplus
25005 #endif
25008 main ()
25010 return f != $ac_func;
25012 return 0;
25014 _ACEOF
25015 rm -f conftest.$ac_objext conftest$ac_exeext
25016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25017 (eval $ac_link) 2>conftest.er1
25018 ac_status=$?
25019 grep -v '^ *+' conftest.er1 >conftest.err
25020 rm -f conftest.er1
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } &&
25024 { ac_try='test -z "$ac_c_werror_flag"
25025 || test ! -s conftest.err'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; } &&
25031 { ac_try='test -s conftest$ac_exeext'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25037 eval "$as_ac_var=yes"
25038 else
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 eval "$as_ac_var=no"
25044 rm -f conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25049 if test `eval echo '${'$as_ac_var'}'` = yes; then
25050 cat >>confdefs.h <<_ACEOF
25051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25052 _ACEOF
25055 done
25060 echo "$as_me:$LINENO: checking for _long double round functions" >&5
25061 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
25062 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
25063 echo $ECHO_N "(cached) $ECHO_C" >&6
25064 else
25068 ac_ext=cc
25069 ac_cpp='$CXXCPP $CPPFLAGS'
25070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25074 cat >conftest.$ac_ext <<_ACEOF
25075 /* confdefs.h. */
25076 _ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25080 #include <math.h>
25082 main ()
25084 `for x in _ceill _floorl; do echo "$x (0);"; done`
25086 return 0;
25088 _ACEOF
25089 rm -f conftest.$ac_objext
25090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25091 (eval $ac_compile) 2>conftest.er1
25092 ac_status=$?
25093 grep -v '^ *+' conftest.er1 >conftest.err
25094 rm -f conftest.er1
25095 cat conftest.err >&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } &&
25098 { ac_try='test -z "$ac_cxx_werror_flag"
25099 || test ! -s conftest.err'
25100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; } &&
25105 { ac_try='test -s conftest.$ac_objext'
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; }; then
25111 glibcxx_cv_func__long_double_round_use=yes
25112 else
25113 echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25116 glibcxx_cv_func__long_double_round_use=no
25118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25119 ac_ext=c
25120 ac_cpp='$CPP $CPPFLAGS'
25121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25127 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
25128 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
25129 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
25132 for ac_func in _ceill _floorl
25134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25135 echo "$as_me:$LINENO: checking for $ac_func" >&5
25136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25137 if eval "test \"\${$as_ac_var+set}\" = set"; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25139 else
25140 if test x$gcc_no_link = xyes; then
25141 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25143 { (exit 1); exit 1; }; }
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h. */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25153 #define $ac_func innocuous_$ac_func
25155 /* System header to define __stub macros and hopefully few prototypes,
25156 which can conflict with char $ac_func (); below.
25157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25158 <limits.h> exists even on freestanding compilers. */
25160 #ifdef __STDC__
25161 # include <limits.h>
25162 #else
25163 # include <assert.h>
25164 #endif
25166 #undef $ac_func
25168 /* Override any gcc2 internal prototype to avoid an error. */
25169 #ifdef __cplusplus
25170 extern "C"
25172 #endif
25173 /* We use char because int might match the return type of a gcc2
25174 builtin and then its argument prototype would still apply. */
25175 char $ac_func ();
25176 /* The GNU C library defines this for functions which it implements
25177 to always fail with ENOSYS. Some functions are actually named
25178 something starting with __ and the normal name is an alias. */
25179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25180 choke me
25181 #else
25182 char (*f) () = $ac_func;
25183 #endif
25184 #ifdef __cplusplus
25186 #endif
25189 main ()
25191 return f != $ac_func;
25193 return 0;
25195 _ACEOF
25196 rm -f conftest.$ac_objext conftest$ac_exeext
25197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25198 (eval $ac_link) 2>conftest.er1
25199 ac_status=$?
25200 grep -v '^ *+' conftest.er1 >conftest.err
25201 rm -f conftest.er1
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } &&
25205 { ac_try='test -z "$ac_c_werror_flag"
25206 || test ! -s conftest.err'
25207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25208 (eval $ac_try) 2>&5
25209 ac_status=$?
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); }; } &&
25212 { ac_try='test -s conftest$ac_exeext'
25213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; }; then
25218 eval "$as_ac_var=yes"
25219 else
25220 echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25223 eval "$as_ac_var=no"
25225 rm -f conftest.err conftest.$ac_objext \
25226 conftest$ac_exeext conftest.$ac_ext
25228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25230 if test `eval echo '${'$as_ac_var'}'` = yes; then
25231 cat >>confdefs.h <<_ACEOF
25232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25233 _ACEOF
25236 done
25241 LIBS="$ac_save_LIBS"
25242 CXXFLAGS="$ac_save_CXXFLAGS"
25246 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
25247 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
25248 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
25249 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25255 ac_ext=cc
25256 ac_cpp='$CXXCPP $CPPFLAGS'
25257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25261 cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h. */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h. */
25267 #include <math.h>
25269 main ()
25271 __builtin_abs(0);
25273 return 0;
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25278 (eval $ac_compile) 2>conftest.er1
25279 ac_status=$?
25280 grep -v '^ *+' conftest.er1 >conftest.err
25281 rm -f conftest.er1
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } &&
25285 { ac_try='test -z "$ac_cxx_werror_flag"
25286 || test ! -s conftest.err'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; } &&
25292 { ac_try='test -s conftest.$ac_objext'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; }; then
25298 glibcxx_cv_func___builtin_abs_use=yes
25299 else
25300 echo "$as_me: failed program was:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25303 glibcxx_cv_func___builtin_abs_use=no
25305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25306 ac_ext=c
25307 ac_cpp='$CPP $CPPFLAGS'
25308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25316 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
25317 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
25318 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
25319 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
25320 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
25321 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
25322 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25323 echo $ECHO_N "(cached) $ECHO_C" >&6
25324 else
25326 if test x$gcc_no_link = xyes; then
25327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25329 { (exit 1); exit 1; }; }
25331 cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h. */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 #include <math.h>
25339 main ()
25341 __builtin_abs(0);
25343 return 0;
25345 _ACEOF
25346 rm -f conftest.$ac_objext conftest$ac_exeext
25347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25348 (eval $ac_link) 2>conftest.er1
25349 ac_status=$?
25350 grep -v '^ *+' conftest.er1 >conftest.err
25351 rm -f conftest.er1
25352 cat conftest.err >&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } &&
25355 { ac_try='test -z "$ac_c_werror_flag"
25356 || test ! -s conftest.err'
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25359 ac_status=$?
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; } &&
25362 { ac_try='test -s conftest$ac_exeext'
25363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); }; }; then
25368 glibcxx_cv_func___builtin_abs_link=yes
25369 else
25370 echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25373 glibcxx_cv_func___builtin_abs_link=no
25375 rm -f conftest.err conftest.$ac_objext \
25376 conftest$ac_exeext conftest.$ac_ext
25381 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25382 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25383 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25384 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25385 cat >>confdefs.h <<_ACEOF
25386 #define ${ac_tr_func} 1
25387 _ACEOF
25393 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25394 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25395 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25396 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25402 ac_ext=cc
25403 ac_cpp='$CXXCPP $CPPFLAGS'
25404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25408 cat >conftest.$ac_ext <<_ACEOF
25409 /* confdefs.h. */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25414 #include <math.h>
25416 main ()
25418 __builtin_fabsf(0);
25420 return 0;
25422 _ACEOF
25423 rm -f conftest.$ac_objext
25424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25425 (eval $ac_compile) 2>conftest.er1
25426 ac_status=$?
25427 grep -v '^ *+' conftest.er1 >conftest.err
25428 rm -f conftest.er1
25429 cat conftest.err >&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } &&
25432 { ac_try='test -z "$ac_cxx_werror_flag"
25433 || test ! -s conftest.err'
25434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; } &&
25439 { ac_try='test -s conftest.$ac_objext'
25440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); }; }; then
25445 glibcxx_cv_func___builtin_fabsf_use=yes
25446 else
25447 echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25450 glibcxx_cv_func___builtin_fabsf_use=no
25452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25453 ac_ext=c
25454 ac_cpp='$CPP $CPPFLAGS'
25455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25463 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
25464 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25465 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25466 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25467 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25468 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25469 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 else
25473 if test x$gcc_no_link = xyes; then
25474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25476 { (exit 1); exit 1; }; }
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h. */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 #include <math.h>
25486 main ()
25488 __builtin_fabsf(0);
25490 return 0;
25492 _ACEOF
25493 rm -f conftest.$ac_objext conftest$ac_exeext
25494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25495 (eval $ac_link) 2>conftest.er1
25496 ac_status=$?
25497 grep -v '^ *+' conftest.er1 >conftest.err
25498 rm -f conftest.er1
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } &&
25502 { ac_try='test -z "$ac_c_werror_flag"
25503 || test ! -s conftest.err'
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; } &&
25509 { ac_try='test -s conftest$ac_exeext'
25510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); }; }; then
25515 glibcxx_cv_func___builtin_fabsf_link=yes
25516 else
25517 echo "$as_me: failed program was:" >&5
25518 sed 's/^/| /' conftest.$ac_ext >&5
25520 glibcxx_cv_func___builtin_fabsf_link=no
25522 rm -f conftest.err conftest.$ac_objext \
25523 conftest$ac_exeext conftest.$ac_ext
25528 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
25529 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25530 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25531 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25532 cat >>confdefs.h <<_ACEOF
25533 #define ${ac_tr_func} 1
25534 _ACEOF
25540 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25541 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25542 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25543 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25549 ac_ext=cc
25550 ac_cpp='$CXXCPP $CPPFLAGS'
25551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25555 cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h. */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25561 #include <math.h>
25563 main ()
25565 __builtin_fabs(0);
25567 return 0;
25569 _ACEOF
25570 rm -f conftest.$ac_objext
25571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25572 (eval $ac_compile) 2>conftest.er1
25573 ac_status=$?
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } &&
25579 { ac_try='test -z "$ac_cxx_werror_flag"
25580 || test ! -s conftest.err'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; } &&
25586 { ac_try='test -s conftest.$ac_objext'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; }; then
25592 glibcxx_cv_func___builtin_fabs_use=yes
25593 else
25594 echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 glibcxx_cv_func___builtin_fabs_use=no
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25600 ac_ext=c
25601 ac_cpp='$CPP $CPPFLAGS'
25602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25610 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25611 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25612 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25613 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25614 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25615 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25616 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25618 else
25620 if test x$gcc_no_link = xyes; then
25621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25623 { (exit 1); exit 1; }; }
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h. */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631 #include <math.h>
25633 main ()
25635 __builtin_fabs(0);
25637 return 0;
25639 _ACEOF
25640 rm -f conftest.$ac_objext conftest$ac_exeext
25641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25642 (eval $ac_link) 2>conftest.er1
25643 ac_status=$?
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
25649 { ac_try='test -z "$ac_c_werror_flag"
25650 || test ! -s conftest.err'
25651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; } &&
25656 { ac_try='test -s conftest$ac_exeext'
25657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658 (eval $ac_try) 2>&5
25659 ac_status=$?
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }; }; then
25662 glibcxx_cv_func___builtin_fabs_link=yes
25663 else
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25667 glibcxx_cv_func___builtin_fabs_link=no
25669 rm -f conftest.err conftest.$ac_objext \
25670 conftest$ac_exeext conftest.$ac_ext
25675 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25676 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25677 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25678 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25679 cat >>confdefs.h <<_ACEOF
25680 #define ${ac_tr_func} 1
25681 _ACEOF
25687 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25688 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25689 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25690 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 else
25696 ac_ext=cc
25697 ac_cpp='$CXXCPP $CPPFLAGS'
25698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25702 cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h. */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25708 #include <math.h>
25710 main ()
25712 __builtin_fabsl(0);
25714 return 0;
25716 _ACEOF
25717 rm -f conftest.$ac_objext
25718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25719 (eval $ac_compile) 2>conftest.er1
25720 ac_status=$?
25721 grep -v '^ *+' conftest.er1 >conftest.err
25722 rm -f conftest.er1
25723 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } &&
25726 { ac_try='test -z "$ac_cxx_werror_flag"
25727 || test ! -s conftest.err'
25728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729 (eval $ac_try) 2>&5
25730 ac_status=$?
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; } &&
25733 { ac_try='test -s conftest.$ac_objext'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; }; then
25739 glibcxx_cv_func___builtin_fabsl_use=yes
25740 else
25741 echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25744 glibcxx_cv_func___builtin_fabsl_use=no
25746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25747 ac_ext=c
25748 ac_cpp='$CPP $CPPFLAGS'
25749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25757 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25758 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25759 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25760 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25761 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25762 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25763 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25764 echo $ECHO_N "(cached) $ECHO_C" >&6
25765 else
25767 if test x$gcc_no_link = xyes; then
25768 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25769 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25770 { (exit 1); exit 1; }; }
25772 cat >conftest.$ac_ext <<_ACEOF
25773 /* confdefs.h. */
25774 _ACEOF
25775 cat confdefs.h >>conftest.$ac_ext
25776 cat >>conftest.$ac_ext <<_ACEOF
25777 /* end confdefs.h. */
25778 #include <math.h>
25780 main ()
25782 __builtin_fabsl(0);
25784 return 0;
25786 _ACEOF
25787 rm -f conftest.$ac_objext conftest$ac_exeext
25788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25789 (eval $ac_link) 2>conftest.er1
25790 ac_status=$?
25791 grep -v '^ *+' conftest.er1 >conftest.err
25792 rm -f conftest.er1
25793 cat conftest.err >&5
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } &&
25796 { ac_try='test -z "$ac_c_werror_flag"
25797 || test ! -s conftest.err'
25798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; } &&
25803 { ac_try='test -s conftest$ac_exeext'
25804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25805 (eval $ac_try) 2>&5
25806 ac_status=$?
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); }; }; then
25809 glibcxx_cv_func___builtin_fabsl_link=yes
25810 else
25811 echo "$as_me: failed program was:" >&5
25812 sed 's/^/| /' conftest.$ac_ext >&5
25814 glibcxx_cv_func___builtin_fabsl_link=no
25816 rm -f conftest.err conftest.$ac_objext \
25817 conftest$ac_exeext conftest.$ac_ext
25822 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25823 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25824 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25825 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25826 cat >>confdefs.h <<_ACEOF
25827 #define ${ac_tr_func} 1
25828 _ACEOF
25834 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25835 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25836 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25837 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25838 echo $ECHO_N "(cached) $ECHO_C" >&6
25839 else
25843 ac_ext=cc
25844 ac_cpp='$CXXCPP $CPPFLAGS'
25845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25849 cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h. */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 #include <math.h>
25857 main ()
25859 __builtin_labs(0);
25861 return 0;
25863 _ACEOF
25864 rm -f conftest.$ac_objext
25865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25866 (eval $ac_compile) 2>conftest.er1
25867 ac_status=$?
25868 grep -v '^ *+' conftest.er1 >conftest.err
25869 rm -f conftest.er1
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } &&
25873 { ac_try='test -z "$ac_cxx_werror_flag"
25874 || test ! -s conftest.err'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; } &&
25880 { ac_try='test -s conftest.$ac_objext'
25881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; }; then
25886 glibcxx_cv_func___builtin_labs_use=yes
25887 else
25888 echo "$as_me: failed program was:" >&5
25889 sed 's/^/| /' conftest.$ac_ext >&5
25891 glibcxx_cv_func___builtin_labs_use=no
25893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25894 ac_ext=c
25895 ac_cpp='$CPP $CPPFLAGS'
25896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25904 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25905 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25906 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25907 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25908 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25909 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25910 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25914 if test x$gcc_no_link = xyes; then
25915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25917 { (exit 1); exit 1; }; }
25919 cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h. */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h. */
25925 #include <math.h>
25927 main ()
25929 __builtin_labs(0);
25931 return 0;
25933 _ACEOF
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25936 (eval $ac_link) 2>conftest.er1
25937 ac_status=$?
25938 grep -v '^ *+' conftest.er1 >conftest.err
25939 rm -f conftest.er1
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } &&
25943 { ac_try='test -z "$ac_c_werror_flag"
25944 || test ! -s conftest.err'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; } &&
25950 { ac_try='test -s conftest$ac_exeext'
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 glibcxx_cv_func___builtin_labs_link=yes
25957 else
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25961 glibcxx_cv_func___builtin_labs_link=no
25963 rm -f conftest.err conftest.$ac_objext \
25964 conftest$ac_exeext conftest.$ac_ext
25969 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
25970 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
25971 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
25972 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25973 cat >>confdefs.h <<_ACEOF
25974 #define ${ac_tr_func} 1
25975 _ACEOF
25982 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
25983 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
25984 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
25985 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
25986 echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25991 ac_ext=cc
25992 ac_cpp='$CXXCPP $CPPFLAGS'
25993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25997 cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h. */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h. */
26003 #include <math.h>
26005 main ()
26007 __builtin_sqrtf(0);
26009 return 0;
26011 _ACEOF
26012 rm -f conftest.$ac_objext
26013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26014 (eval $ac_compile) 2>conftest.er1
26015 ac_status=$?
26016 grep -v '^ *+' conftest.er1 >conftest.err
26017 rm -f conftest.er1
26018 cat conftest.err >&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
26021 { ac_try='test -z "$ac_cxx_werror_flag"
26022 || test ! -s conftest.err'
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; } &&
26028 { ac_try='test -s conftest.$ac_objext'
26029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030 (eval $ac_try) 2>&5
26031 ac_status=$?
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); }; }; then
26034 glibcxx_cv_func___builtin_sqrtf_use=yes
26035 else
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 glibcxx_cv_func___builtin_sqrtf_use=no
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26042 ac_ext=c
26043 ac_cpp='$CPP $CPPFLAGS'
26044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26052 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
26053 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
26054 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
26055 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
26056 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
26057 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
26058 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6
26060 else
26062 if test x$gcc_no_link = xyes; then
26063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26065 { (exit 1); exit 1; }; }
26067 cat >conftest.$ac_ext <<_ACEOF
26068 /* confdefs.h. */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h. */
26073 #include <math.h>
26075 main ()
26077 __builtin_sqrtf(0);
26079 return 0;
26081 _ACEOF
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084 (eval $ac_link) 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest$ac_exeext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 glibcxx_cv_func___builtin_sqrtf_link=yes
26105 else
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26109 glibcxx_cv_func___builtin_sqrtf_link=no
26111 rm -f conftest.err conftest.$ac_objext \
26112 conftest$ac_exeext conftest.$ac_ext
26117 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
26118 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
26119 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
26120 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26121 cat >>confdefs.h <<_ACEOF
26122 #define ${ac_tr_func} 1
26123 _ACEOF
26129 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
26130 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
26131 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
26132 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
26134 else
26138 ac_ext=cc
26139 ac_cpp='$CXXCPP $CPPFLAGS'
26140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26144 cat >conftest.$ac_ext <<_ACEOF
26145 /* confdefs.h. */
26146 _ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h. */
26150 #include <math.h>
26152 main ()
26154 __builtin_sqrt(0);
26156 return 0;
26158 _ACEOF
26159 rm -f conftest.$ac_objext
26160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26161 (eval $ac_compile) 2>conftest.er1
26162 ac_status=$?
26163 grep -v '^ *+' conftest.er1 >conftest.err
26164 rm -f conftest.er1
26165 cat conftest.err >&5
26166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); } &&
26168 { ac_try='test -z "$ac_cxx_werror_flag"
26169 || test ! -s conftest.err'
26170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171 (eval $ac_try) 2>&5
26172 ac_status=$?
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); }; } &&
26175 { ac_try='test -s conftest.$ac_objext'
26176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26177 (eval $ac_try) 2>&5
26178 ac_status=$?
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); }; }; then
26181 glibcxx_cv_func___builtin_sqrt_use=yes
26182 else
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26186 glibcxx_cv_func___builtin_sqrt_use=no
26188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26189 ac_ext=c
26190 ac_cpp='$CPP $CPPFLAGS'
26191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26199 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
26200 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
26201 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
26202 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
26203 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
26204 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
26205 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
26206 echo $ECHO_N "(cached) $ECHO_C" >&6
26207 else
26209 if test x$gcc_no_link = xyes; then
26210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26212 { (exit 1); exit 1; }; }
26214 cat >conftest.$ac_ext <<_ACEOF
26215 /* confdefs.h. */
26216 _ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26220 #include <math.h>
26222 main ()
26224 __builtin_sqrt(0);
26226 return 0;
26228 _ACEOF
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26231 (eval $ac_link) 2>conftest.er1
26232 ac_status=$?
26233 grep -v '^ *+' conftest.er1 >conftest.err
26234 rm -f conftest.er1
26235 cat conftest.err >&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } &&
26238 { ac_try='test -z "$ac_c_werror_flag"
26239 || test ! -s conftest.err'
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; } &&
26245 { ac_try='test -s conftest$ac_exeext'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26248 ac_status=$?
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; }; then
26251 glibcxx_cv_func___builtin_sqrt_link=yes
26252 else
26253 echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26256 glibcxx_cv_func___builtin_sqrt_link=no
26258 rm -f conftest.err conftest.$ac_objext \
26259 conftest$ac_exeext conftest.$ac_ext
26264 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
26265 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
26266 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
26267 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26268 cat >>confdefs.h <<_ACEOF
26269 #define ${ac_tr_func} 1
26270 _ACEOF
26276 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
26277 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
26278 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
26279 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26281 else
26285 ac_ext=cc
26286 ac_cpp='$CXXCPP $CPPFLAGS'
26287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26291 cat >conftest.$ac_ext <<_ACEOF
26292 /* confdefs.h. */
26293 _ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h. */
26297 #include <math.h>
26299 main ()
26301 __builtin_sqrtl(0);
26303 return 0;
26305 _ACEOF
26306 rm -f conftest.$ac_objext
26307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26308 (eval $ac_compile) 2>conftest.er1
26309 ac_status=$?
26310 grep -v '^ *+' conftest.er1 >conftest.err
26311 rm -f conftest.er1
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -z "$ac_cxx_werror_flag"
26316 || test ! -s conftest.err'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; } &&
26322 { ac_try='test -s conftest.$ac_objext'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; }; then
26328 glibcxx_cv_func___builtin_sqrtl_use=yes
26329 else
26330 echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26333 glibcxx_cv_func___builtin_sqrtl_use=no
26335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26336 ac_ext=c
26337 ac_cpp='$CPP $CPPFLAGS'
26338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26346 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26347 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26348 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26349 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26350 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26351 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26352 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26354 else
26356 if test x$gcc_no_link = xyes; then
26357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26359 { (exit 1); exit 1; }; }
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h. */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 #include <math.h>
26369 main ()
26371 __builtin_sqrtl(0);
26373 return 0;
26375 _ACEOF
26376 rm -f conftest.$ac_objext conftest$ac_exeext
26377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26378 (eval $ac_link) 2>conftest.er1
26379 ac_status=$?
26380 grep -v '^ *+' conftest.er1 >conftest.err
26381 rm -f conftest.er1
26382 cat conftest.err >&5
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } &&
26385 { ac_try='test -z "$ac_c_werror_flag"
26386 || test ! -s conftest.err'
26387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; } &&
26392 { ac_try='test -s conftest$ac_exeext'
26393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394 (eval $ac_try) 2>&5
26395 ac_status=$?
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); }; }; then
26398 glibcxx_cv_func___builtin_sqrtl_link=yes
26399 else
26400 echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26403 glibcxx_cv_func___builtin_sqrtl_link=no
26405 rm -f conftest.err conftest.$ac_objext \
26406 conftest$ac_exeext conftest.$ac_ext
26411 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26412 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26413 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26414 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26415 cat >>confdefs.h <<_ACEOF
26416 #define ${ac_tr_func} 1
26417 _ACEOF
26424 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26425 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26426 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26427 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26428 echo $ECHO_N "(cached) $ECHO_C" >&6
26429 else
26433 ac_ext=cc
26434 ac_cpp='$CXXCPP $CPPFLAGS'
26435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26439 cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h. */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 #include <math.h>
26447 main ()
26449 __builtin_sinf(0);
26451 return 0;
26453 _ACEOF
26454 rm -f conftest.$ac_objext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26456 (eval $ac_compile) 2>conftest.er1
26457 ac_status=$?
26458 grep -v '^ *+' conftest.er1 >conftest.err
26459 rm -f conftest.er1
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } &&
26463 { ac_try='test -z "$ac_cxx_werror_flag"
26464 || test ! -s conftest.err'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest.$ac_objext'
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 glibcxx_cv_func___builtin_sinf_use=yes
26477 else
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 glibcxx_cv_func___builtin_sinf_use=no
26483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26484 ac_ext=c
26485 ac_cpp='$CPP $CPPFLAGS'
26486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26494 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26495 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26496 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26497 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26498 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26499 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26500 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26501 echo $ECHO_N "(cached) $ECHO_C" >&6
26502 else
26504 if test x$gcc_no_link = xyes; then
26505 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26506 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26507 { (exit 1); exit 1; }; }
26509 cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h. */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h. */
26515 #include <math.h>
26517 main ()
26519 __builtin_sinf(0);
26521 return 0;
26523 _ACEOF
26524 rm -f conftest.$ac_objext conftest$ac_exeext
26525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26526 (eval $ac_link) 2>conftest.er1
26527 ac_status=$?
26528 grep -v '^ *+' conftest.er1 >conftest.err
26529 rm -f conftest.er1
26530 cat conftest.err >&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } &&
26533 { ac_try='test -z "$ac_c_werror_flag"
26534 || test ! -s conftest.err'
26535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; } &&
26540 { ac_try='test -s conftest$ac_exeext'
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26543 ac_status=$?
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; }; then
26546 glibcxx_cv_func___builtin_sinf_link=yes
26547 else
26548 echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26551 glibcxx_cv_func___builtin_sinf_link=no
26553 rm -f conftest.err conftest.$ac_objext \
26554 conftest$ac_exeext conftest.$ac_ext
26559 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26560 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26561 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26562 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26563 cat >>confdefs.h <<_ACEOF
26564 #define ${ac_tr_func} 1
26565 _ACEOF
26571 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26572 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26573 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26574 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26576 else
26580 ac_ext=cc
26581 ac_cpp='$CXXCPP $CPPFLAGS'
26582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26586 cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h. */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26592 #include <math.h>
26594 main ()
26596 __builtin_sin(0);
26598 return 0;
26600 _ACEOF
26601 rm -f conftest.$ac_objext
26602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26603 (eval $ac_compile) 2>conftest.er1
26604 ac_status=$?
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } &&
26610 { ac_try='test -z "$ac_cxx_werror_flag"
26611 || test ! -s conftest.err'
26612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); }; } &&
26617 { ac_try='test -s conftest.$ac_objext'
26618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26619 (eval $ac_try) 2>&5
26620 ac_status=$?
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); }; }; then
26623 glibcxx_cv_func___builtin_sin_use=yes
26624 else
26625 echo "$as_me: failed program was:" >&5
26626 sed 's/^/| /' conftest.$ac_ext >&5
26628 glibcxx_cv_func___builtin_sin_use=no
26630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26631 ac_ext=c
26632 ac_cpp='$CPP $CPPFLAGS'
26633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26641 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26642 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26643 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26644 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26645 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26646 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26647 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26648 echo $ECHO_N "(cached) $ECHO_C" >&6
26649 else
26651 if test x$gcc_no_link = xyes; then
26652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26654 { (exit 1); exit 1; }; }
26656 cat >conftest.$ac_ext <<_ACEOF
26657 /* confdefs.h. */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h. */
26662 #include <math.h>
26664 main ()
26666 __builtin_sin(0);
26668 return 0;
26670 _ACEOF
26671 rm -f conftest.$ac_objext conftest$ac_exeext
26672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26673 (eval $ac_link) 2>conftest.er1
26674 ac_status=$?
26675 grep -v '^ *+' conftest.er1 >conftest.err
26676 rm -f conftest.er1
26677 cat conftest.err >&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } &&
26680 { ac_try='test -z "$ac_c_werror_flag"
26681 || test ! -s conftest.err'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26684 ac_status=$?
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; } &&
26687 { ac_try='test -s conftest$ac_exeext'
26688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689 (eval $ac_try) 2>&5
26690 ac_status=$?
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); }; }; then
26693 glibcxx_cv_func___builtin_sin_link=yes
26694 else
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 glibcxx_cv_func___builtin_sin_link=no
26700 rm -f conftest.err conftest.$ac_objext \
26701 conftest$ac_exeext conftest.$ac_ext
26706 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26707 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26708 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26709 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26710 cat >>confdefs.h <<_ACEOF
26711 #define ${ac_tr_func} 1
26712 _ACEOF
26718 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26719 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26720 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26721 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26722 echo $ECHO_N "(cached) $ECHO_C" >&6
26723 else
26727 ac_ext=cc
26728 ac_cpp='$CXXCPP $CPPFLAGS'
26729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26733 cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h. */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h. */
26739 #include <math.h>
26741 main ()
26743 __builtin_sinl(0);
26745 return 0;
26747 _ACEOF
26748 rm -f conftest.$ac_objext
26749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26750 (eval $ac_compile) 2>conftest.er1
26751 ac_status=$?
26752 grep -v '^ *+' conftest.er1 >conftest.err
26753 rm -f conftest.er1
26754 cat conftest.err >&5
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } &&
26757 { ac_try='test -z "$ac_cxx_werror_flag"
26758 || test ! -s conftest.err'
26759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760 (eval $ac_try) 2>&5
26761 ac_status=$?
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; } &&
26764 { ac_try='test -s conftest.$ac_objext'
26765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); }; }; then
26770 glibcxx_cv_func___builtin_sinl_use=yes
26771 else
26772 echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26775 glibcxx_cv_func___builtin_sinl_use=no
26777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26778 ac_ext=c
26779 ac_cpp='$CPP $CPPFLAGS'
26780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26788 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26789 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26790 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26791 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26792 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26793 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26794 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26795 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 else
26798 if test x$gcc_no_link = xyes; then
26799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26801 { (exit 1); exit 1; }; }
26803 cat >conftest.$ac_ext <<_ACEOF
26804 /* confdefs.h. */
26805 _ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h. */
26809 #include <math.h>
26811 main ()
26813 __builtin_sinl(0);
26815 return 0;
26817 _ACEOF
26818 rm -f conftest.$ac_objext conftest$ac_exeext
26819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26820 (eval $ac_link) 2>conftest.er1
26821 ac_status=$?
26822 grep -v '^ *+' conftest.er1 >conftest.err
26823 rm -f conftest.er1
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } &&
26827 { ac_try='test -z "$ac_c_werror_flag"
26828 || test ! -s conftest.err'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; } &&
26834 { ac_try='test -s conftest$ac_exeext'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26837 ac_status=$?
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; }; then
26840 glibcxx_cv_func___builtin_sinl_link=yes
26841 else
26842 echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26845 glibcxx_cv_func___builtin_sinl_link=no
26847 rm -f conftest.err conftest.$ac_objext \
26848 conftest$ac_exeext conftest.$ac_ext
26853 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26854 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26855 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26856 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26857 cat >>confdefs.h <<_ACEOF
26858 #define ${ac_tr_func} 1
26859 _ACEOF
26866 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26867 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26868 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26869 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26870 echo $ECHO_N "(cached) $ECHO_C" >&6
26871 else
26875 ac_ext=cc
26876 ac_cpp='$CXXCPP $CPPFLAGS'
26877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26881 cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h. */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26887 #include <math.h>
26889 main ()
26891 __builtin_cosf(0);
26893 return 0;
26895 _ACEOF
26896 rm -f conftest.$ac_objext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898 (eval $ac_compile) 2>conftest.er1
26899 ac_status=$?
26900 grep -v '^ *+' conftest.er1 >conftest.err
26901 rm -f conftest.er1
26902 cat conftest.err >&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } &&
26905 { ac_try='test -z "$ac_cxx_werror_flag"
26906 || test ! -s conftest.err'
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; } &&
26912 { ac_try='test -s conftest.$ac_objext'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918 glibcxx_cv_func___builtin_cosf_use=yes
26919 else
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 glibcxx_cv_func___builtin_cosf_use=no
26925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26926 ac_ext=c
26927 ac_cpp='$CPP $CPPFLAGS'
26928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26936 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
26937 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
26938 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
26939 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
26940 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
26941 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
26942 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26944 else
26946 if test x$gcc_no_link = xyes; then
26947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26949 { (exit 1); exit 1; }; }
26951 cat >conftest.$ac_ext <<_ACEOF
26952 /* confdefs.h. */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h. */
26957 #include <math.h>
26959 main ()
26961 __builtin_cosf(0);
26963 return 0;
26965 _ACEOF
26966 rm -f conftest.$ac_objext conftest$ac_exeext
26967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26968 (eval $ac_link) 2>conftest.er1
26969 ac_status=$?
26970 grep -v '^ *+' conftest.er1 >conftest.err
26971 rm -f conftest.er1
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } &&
26975 { ac_try='test -z "$ac_c_werror_flag"
26976 || test ! -s conftest.err'
26977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); }; } &&
26982 { ac_try='test -s conftest$ac_exeext'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; }; then
26988 glibcxx_cv_func___builtin_cosf_link=yes
26989 else
26990 echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26993 glibcxx_cv_func___builtin_cosf_link=no
26995 rm -f conftest.err conftest.$ac_objext \
26996 conftest$ac_exeext conftest.$ac_ext
27001 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
27002 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
27003 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
27004 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27005 cat >>confdefs.h <<_ACEOF
27006 #define ${ac_tr_func} 1
27007 _ACEOF
27013 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
27014 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
27015 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
27016 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27022 ac_ext=cc
27023 ac_cpp='$CXXCPP $CPPFLAGS'
27024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27028 cat >conftest.$ac_ext <<_ACEOF
27029 /* confdefs.h. */
27030 _ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h. */
27034 #include <math.h>
27036 main ()
27038 __builtin_cos(0);
27040 return 0;
27042 _ACEOF
27043 rm -f conftest.$ac_objext
27044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27045 (eval $ac_compile) 2>conftest.er1
27046 ac_status=$?
27047 grep -v '^ *+' conftest.er1 >conftest.err
27048 rm -f conftest.er1
27049 cat conftest.err >&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } &&
27052 { ac_try='test -z "$ac_cxx_werror_flag"
27053 || test ! -s conftest.err'
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; } &&
27059 { ac_try='test -s conftest.$ac_objext'
27060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); }; }; then
27065 glibcxx_cv_func___builtin_cos_use=yes
27066 else
27067 echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27070 glibcxx_cv_func___builtin_cos_use=no
27072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27073 ac_ext=c
27074 ac_cpp='$CPP $CPPFLAGS'
27075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27083 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
27084 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
27085 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
27086 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
27087 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
27088 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
27089 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 else
27093 if test x$gcc_no_link = xyes; then
27094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27096 { (exit 1); exit 1; }; }
27098 cat >conftest.$ac_ext <<_ACEOF
27099 /* confdefs.h. */
27100 _ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h. */
27104 #include <math.h>
27106 main ()
27108 __builtin_cos(0);
27110 return 0;
27112 _ACEOF
27113 rm -f conftest.$ac_objext conftest$ac_exeext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27115 (eval $ac_link) 2>conftest.er1
27116 ac_status=$?
27117 grep -v '^ *+' conftest.er1 >conftest.err
27118 rm -f conftest.er1
27119 cat conftest.err >&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } &&
27122 { ac_try='test -z "$ac_c_werror_flag"
27123 || test ! -s conftest.err'
27124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125 (eval $ac_try) 2>&5
27126 ac_status=$?
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; } &&
27129 { ac_try='test -s conftest$ac_exeext'
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27135 glibcxx_cv_func___builtin_cos_link=yes
27136 else
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27140 glibcxx_cv_func___builtin_cos_link=no
27142 rm -f conftest.err conftest.$ac_objext \
27143 conftest$ac_exeext conftest.$ac_ext
27148 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
27149 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
27150 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
27151 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27152 cat >>confdefs.h <<_ACEOF
27153 #define ${ac_tr_func} 1
27154 _ACEOF
27160 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
27161 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
27162 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
27163 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 else
27169 ac_ext=cc
27170 ac_cpp='$CXXCPP $CPPFLAGS'
27171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27175 cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h. */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h. */
27181 #include <math.h>
27183 main ()
27185 __builtin_cosl(0);
27187 return 0;
27189 _ACEOF
27190 rm -f conftest.$ac_objext
27191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27192 (eval $ac_compile) 2>conftest.er1
27193 ac_status=$?
27194 grep -v '^ *+' conftest.er1 >conftest.err
27195 rm -f conftest.er1
27196 cat conftest.err >&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } &&
27199 { ac_try='test -z "$ac_cxx_werror_flag"
27200 || test ! -s conftest.err'
27201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; } &&
27206 { ac_try='test -s conftest.$ac_objext'
27207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208 (eval $ac_try) 2>&5
27209 ac_status=$?
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; }; then
27212 glibcxx_cv_func___builtin_cosl_use=yes
27213 else
27214 echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27217 glibcxx_cv_func___builtin_cosl_use=no
27219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27220 ac_ext=c
27221 ac_cpp='$CPP $CPPFLAGS'
27222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27230 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
27231 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
27232 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
27233 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
27234 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
27235 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
27236 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27240 if test x$gcc_no_link = xyes; then
27241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27243 { (exit 1); exit 1; }; }
27245 cat >conftest.$ac_ext <<_ACEOF
27246 /* confdefs.h. */
27247 _ACEOF
27248 cat confdefs.h >>conftest.$ac_ext
27249 cat >>conftest.$ac_ext <<_ACEOF
27250 /* end confdefs.h. */
27251 #include <math.h>
27253 main ()
27255 __builtin_cosl(0);
27257 return 0;
27259 _ACEOF
27260 rm -f conftest.$ac_objext conftest$ac_exeext
27261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27262 (eval $ac_link) 2>conftest.er1
27263 ac_status=$?
27264 grep -v '^ *+' conftest.er1 >conftest.err
27265 rm -f conftest.er1
27266 cat conftest.err >&5
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); } &&
27269 { ac_try='test -z "$ac_c_werror_flag"
27270 || test ! -s conftest.err'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; } &&
27276 { ac_try='test -s conftest$ac_exeext'
27277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278 (eval $ac_try) 2>&5
27279 ac_status=$?
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; }; then
27282 glibcxx_cv_func___builtin_cosl_link=yes
27283 else
27284 echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27287 glibcxx_cv_func___builtin_cosl_link=no
27289 rm -f conftest.err conftest.$ac_objext \
27290 conftest$ac_exeext conftest.$ac_ext
27295 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
27296 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
27297 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
27298 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27299 cat >>confdefs.h <<_ACEOF
27300 #define ${ac_tr_func} 1
27301 _ACEOF
27307 dummyvar=no
27308 if test x$dummyvar = x"yes"; then
27309 cat >>confdefs.h <<\_ACEOF
27310 #define HAVE___BUILTIN_ABS 1
27311 _ACEOF
27313 cat >>confdefs.h <<\_ACEOF
27314 #define HAVE___BUILTIN_LABS 1
27315 _ACEOF
27317 cat >>confdefs.h <<\_ACEOF
27318 #define HAVE___BUILTIN_COS 1
27319 _ACEOF
27321 cat >>confdefs.h <<\_ACEOF
27322 #define HAVE___BUILTIN_COSF 1
27323 _ACEOF
27325 cat >>confdefs.h <<\_ACEOF
27326 #define HAVE___BUILTIN_COSL 1
27327 _ACEOF
27329 cat >>confdefs.h <<\_ACEOF
27330 #define HAVE___BUILTIN_FABS 1
27331 _ACEOF
27333 cat >>confdefs.h <<\_ACEOF
27334 #define HAVE___BUILTIN_FABSF 1
27335 _ACEOF
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE___BUILTIN_FABSL 1
27339 _ACEOF
27341 cat >>confdefs.h <<\_ACEOF
27342 #define HAVE___BUILTIN_SIN 1
27343 _ACEOF
27345 cat >>confdefs.h <<\_ACEOF
27346 #define HAVE___BUILTIN_SINF 1
27347 _ACEOF
27349 cat >>confdefs.h <<\_ACEOF
27350 #define HAVE___BUILTIN_SINL 1
27351 _ACEOF
27353 cat >>confdefs.h <<\_ACEOF
27354 #define HAVE___BUILTIN_SQRT 1
27355 _ACEOF
27357 cat >>confdefs.h <<\_ACEOF
27358 #define HAVE___BUILTIN_SQRTF 1
27359 _ACEOF
27361 cat >>confdefs.h <<\_ACEOF
27362 #define HAVE___BUILTIN_SQRTL 1
27363 _ACEOF
27369 echo "$as_me:$LINENO: checking for main in -lm" >&5
27370 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27371 if test "${ac_cv_lib_m_main+set}" = set; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27373 else
27374 ac_check_lib_save_LIBS=$LIBS
27375 LIBS="-lm $LIBS"
27376 if test x$gcc_no_link = xyes; then
27377 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27379 { (exit 1); exit 1; }; }
27381 cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h. */
27383 _ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h. */
27390 main ()
27392 main ();
27394 return 0;
27396 _ACEOF
27397 rm -f conftest.$ac_objext conftest$ac_exeext
27398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27399 (eval $ac_link) 2>conftest.er1
27400 ac_status=$?
27401 grep -v '^ *+' conftest.er1 >conftest.err
27402 rm -f conftest.er1
27403 cat conftest.err >&5
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); } &&
27406 { ac_try='test -z "$ac_c_werror_flag"
27407 || test ! -s conftest.err'
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
27414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
27419 ac_cv_lib_m_main=yes
27420 else
27421 echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27424 ac_cv_lib_m_main=no
27426 rm -f conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
27428 LIBS=$ac_check_lib_save_LIBS
27430 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27431 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27432 if test $ac_cv_lib_m_main = yes; then
27433 cat >>confdefs.h <<_ACEOF
27434 #define HAVE_LIBM 1
27435 _ACEOF
27437 LIBS="-lm $LIBS"
27442 for ac_func in copysignf
27444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27445 echo "$as_me:$LINENO: checking for $ac_func" >&5
27446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27447 if eval "test \"\${$as_ac_var+set}\" = set"; then
27448 echo $ECHO_N "(cached) $ECHO_C" >&6
27449 else
27450 if test x$gcc_no_link = xyes; then
27451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27453 { (exit 1); exit 1; }; }
27455 cat >conftest.$ac_ext <<_ACEOF
27456 /* confdefs.h. */
27457 _ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h. */
27461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27463 #define $ac_func innocuous_$ac_func
27465 /* System header to define __stub macros and hopefully few prototypes,
27466 which can conflict with char $ac_func (); below.
27467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468 <limits.h> exists even on freestanding compilers. */
27470 #ifdef __STDC__
27471 # include <limits.h>
27472 #else
27473 # include <assert.h>
27474 #endif
27476 #undef $ac_func
27478 /* Override any gcc2 internal prototype to avoid an error. */
27479 #ifdef __cplusplus
27480 extern "C"
27482 #endif
27483 /* We use char because int might match the return type of a gcc2
27484 builtin and then its argument prototype would still apply. */
27485 char $ac_func ();
27486 /* The GNU C library defines this for functions which it implements
27487 to always fail with ENOSYS. Some functions are actually named
27488 something starting with __ and the normal name is an alias. */
27489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27490 choke me
27491 #else
27492 char (*f) () = $ac_func;
27493 #endif
27494 #ifdef __cplusplus
27496 #endif
27499 main ()
27501 return f != $ac_func;
27503 return 0;
27505 _ACEOF
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27508 (eval $ac_link) 2>conftest.er1
27509 ac_status=$?
27510 grep -v '^ *+' conftest.er1 >conftest.err
27511 rm -f conftest.er1
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
27515 { ac_try='test -z "$ac_c_werror_flag"
27516 || test ! -s conftest.err'
27517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518 (eval $ac_try) 2>&5
27519 ac_status=$?
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; } &&
27522 { ac_try='test -s conftest$ac_exeext'
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27525 ac_status=$?
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; }; then
27528 eval "$as_ac_var=yes"
27529 else
27530 echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27533 eval "$as_ac_var=no"
27535 rm -f conftest.err conftest.$ac_objext \
27536 conftest$ac_exeext conftest.$ac_ext
27538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27540 if test `eval echo '${'$as_ac_var'}'` = yes; then
27541 cat >>confdefs.h <<_ACEOF
27542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27543 _ACEOF
27545 else
27546 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27548 done
27552 for ac_func in __signbit
27554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27555 echo "$as_me:$LINENO: checking for $ac_func" >&5
27556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27557 if eval "test \"\${$as_ac_var+set}\" = set"; then
27558 echo $ECHO_N "(cached) $ECHO_C" >&6
27559 else
27560 if test x$gcc_no_link = xyes; then
27561 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27563 { (exit 1); exit 1; }; }
27565 cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h. */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27573 #define $ac_func innocuous_$ac_func
27575 /* System header to define __stub macros and hopefully few prototypes,
27576 which can conflict with char $ac_func (); below.
27577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27578 <limits.h> exists even on freestanding compilers. */
27580 #ifdef __STDC__
27581 # include <limits.h>
27582 #else
27583 # include <assert.h>
27584 #endif
27586 #undef $ac_func
27588 /* Override any gcc2 internal prototype to avoid an error. */
27589 #ifdef __cplusplus
27590 extern "C"
27592 #endif
27593 /* We use char because int might match the return type of a gcc2
27594 builtin and then its argument prototype would still apply. */
27595 char $ac_func ();
27596 /* The GNU C library defines this for functions which it implements
27597 to always fail with ENOSYS. Some functions are actually named
27598 something starting with __ and the normal name is an alias. */
27599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27600 choke me
27601 #else
27602 char (*f) () = $ac_func;
27603 #endif
27604 #ifdef __cplusplus
27606 #endif
27609 main ()
27611 return f != $ac_func;
27613 return 0;
27615 _ACEOF
27616 rm -f conftest.$ac_objext conftest$ac_exeext
27617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27618 (eval $ac_link) 2>conftest.er1
27619 ac_status=$?
27620 grep -v '^ *+' conftest.er1 >conftest.err
27621 rm -f conftest.er1
27622 cat conftest.err >&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } &&
27625 { ac_try='test -z "$ac_c_werror_flag"
27626 || test ! -s conftest.err'
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27629 ac_status=$?
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
27633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634 (eval $ac_try) 2>&5
27635 ac_status=$?
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; }; then
27638 eval "$as_ac_var=yes"
27639 else
27640 echo "$as_me: failed program was:" >&5
27641 sed 's/^/| /' conftest.$ac_ext >&5
27643 eval "$as_ac_var=no"
27645 rm -f conftest.err conftest.$ac_objext \
27646 conftest$ac_exeext conftest.$ac_ext
27648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27650 if test `eval echo '${'$as_ac_var'}'` = yes; then
27651 cat >>confdefs.h <<_ACEOF
27652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27653 _ACEOF
27655 else
27656 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27658 done
27661 for ac_func in __signbitf
27663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27664 echo "$as_me:$LINENO: checking for $ac_func" >&5
27665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27666 if eval "test \"\${$as_ac_var+set}\" = set"; then
27667 echo $ECHO_N "(cached) $ECHO_C" >&6
27668 else
27669 if test x$gcc_no_link = xyes; then
27670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27672 { (exit 1); exit 1; }; }
27674 cat >conftest.$ac_ext <<_ACEOF
27675 /* confdefs.h. */
27676 _ACEOF
27677 cat confdefs.h >>conftest.$ac_ext
27678 cat >>conftest.$ac_ext <<_ACEOF
27679 /* end confdefs.h. */
27680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27682 #define $ac_func innocuous_$ac_func
27684 /* System header to define __stub macros and hopefully few prototypes,
27685 which can conflict with char $ac_func (); below.
27686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27687 <limits.h> exists even on freestanding compilers. */
27689 #ifdef __STDC__
27690 # include <limits.h>
27691 #else
27692 # include <assert.h>
27693 #endif
27695 #undef $ac_func
27697 /* Override any gcc2 internal prototype to avoid an error. */
27698 #ifdef __cplusplus
27699 extern "C"
27701 #endif
27702 /* We use char because int might match the return type of a gcc2
27703 builtin and then its argument prototype would still apply. */
27704 char $ac_func ();
27705 /* The GNU C library defines this for functions which it implements
27706 to always fail with ENOSYS. Some functions are actually named
27707 something starting with __ and the normal name is an alias. */
27708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27709 choke me
27710 #else
27711 char (*f) () = $ac_func;
27712 #endif
27713 #ifdef __cplusplus
27715 #endif
27718 main ()
27720 return f != $ac_func;
27722 return 0;
27724 _ACEOF
27725 rm -f conftest.$ac_objext conftest$ac_exeext
27726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27727 (eval $ac_link) 2>conftest.er1
27728 ac_status=$?
27729 grep -v '^ *+' conftest.er1 >conftest.err
27730 rm -f conftest.er1
27731 cat conftest.err >&5
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); } &&
27734 { ac_try='test -z "$ac_c_werror_flag"
27735 || test ! -s conftest.err'
27736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737 (eval $ac_try) 2>&5
27738 ac_status=$?
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); }; } &&
27741 { ac_try='test -s conftest$ac_exeext'
27742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27743 (eval $ac_try) 2>&5
27744 ac_status=$?
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); }; }; then
27747 eval "$as_ac_var=yes"
27748 else
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 eval "$as_ac_var=no"
27754 rm -f conftest.err conftest.$ac_objext \
27755 conftest$ac_exeext conftest.$ac_ext
27757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27759 if test `eval echo '${'$as_ac_var'}'` = yes; then
27760 cat >>confdefs.h <<_ACEOF
27761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27762 _ACEOF
27764 else
27765 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27767 done
27770 if test x$ac_cv_func_copysignl = x"yes"; then
27772 for ac_func in __signbitl
27774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27775 echo "$as_me:$LINENO: checking for $ac_func" >&5
27776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27777 if eval "test \"\${$as_ac_var+set}\" = set"; then
27778 echo $ECHO_N "(cached) $ECHO_C" >&6
27779 else
27780 if test x$gcc_no_link = xyes; then
27781 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27783 { (exit 1); exit 1; }; }
27785 cat >conftest.$ac_ext <<_ACEOF
27786 /* confdefs.h. */
27787 _ACEOF
27788 cat confdefs.h >>conftest.$ac_ext
27789 cat >>conftest.$ac_ext <<_ACEOF
27790 /* end confdefs.h. */
27791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27793 #define $ac_func innocuous_$ac_func
27795 /* System header to define __stub macros and hopefully few prototypes,
27796 which can conflict with char $ac_func (); below.
27797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27798 <limits.h> exists even on freestanding compilers. */
27800 #ifdef __STDC__
27801 # include <limits.h>
27802 #else
27803 # include <assert.h>
27804 #endif
27806 #undef $ac_func
27808 /* Override any gcc2 internal prototype to avoid an error. */
27809 #ifdef __cplusplus
27810 extern "C"
27812 #endif
27813 /* We use char because int might match the return type of a gcc2
27814 builtin and then its argument prototype would still apply. */
27815 char $ac_func ();
27816 /* The GNU C library defines this for functions which it implements
27817 to always fail with ENOSYS. Some functions are actually named
27818 something starting with __ and the normal name is an alias. */
27819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27820 choke me
27821 #else
27822 char (*f) () = $ac_func;
27823 #endif
27824 #ifdef __cplusplus
27826 #endif
27829 main ()
27831 return f != $ac_func;
27833 return 0;
27835 _ACEOF
27836 rm -f conftest.$ac_objext conftest$ac_exeext
27837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27838 (eval $ac_link) 2>conftest.er1
27839 ac_status=$?
27840 grep -v '^ *+' conftest.er1 >conftest.err
27841 rm -f conftest.er1
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } &&
27845 { ac_try='test -z "$ac_c_werror_flag"
27846 || test ! -s conftest.err'
27847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27848 (eval $ac_try) 2>&5
27849 ac_status=$?
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); }; } &&
27852 { ac_try='test -s conftest$ac_exeext'
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; }; then
27858 eval "$as_ac_var=yes"
27859 else
27860 echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27863 eval "$as_ac_var=no"
27865 rm -f conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
27868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27870 if test `eval echo '${'$as_ac_var'}'` = yes; then
27871 cat >>confdefs.h <<_ACEOF
27872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27873 _ACEOF
27875 else
27876 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27878 done
27882 # XXX Review this. Nothing uses it.
27883 if test -n "$LIBMATHOBJS"; then
27884 need_libmath=yes
27889 # Test wchar.h for mbstate_t, which is needed for char_traits and
27890 # others even if wchar_t support is not on.
27891 echo "$as_me:$LINENO: checking for mbstate_t" >&5
27892 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27893 cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h. */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27899 #include <wchar.h>
27901 main ()
27903 mbstate_t teststate;
27905 return 0;
27907 _ACEOF
27908 rm -f conftest.$ac_objext
27909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27910 (eval $ac_compile) 2>conftest.er1
27911 ac_status=$?
27912 grep -v '^ *+' conftest.er1 >conftest.err
27913 rm -f conftest.er1
27914 cat conftest.err >&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } &&
27917 { ac_try='test -z "$ac_c_werror_flag"
27918 || test ! -s conftest.err'
27919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920 (eval $ac_try) 2>&5
27921 ac_status=$?
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; } &&
27924 { ac_try='test -s conftest.$ac_objext'
27925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926 (eval $ac_try) 2>&5
27927 ac_status=$?
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); }; }; then
27930 have_mbstate_t=yes
27931 else
27932 echo "$as_me: failed program was:" >&5
27933 sed 's/^/| /' conftest.$ac_ext >&5
27935 have_mbstate_t=no
27937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27938 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27939 echo "${ECHO_T}$have_mbstate_t" >&6
27940 if test x"$have_mbstate_t" = xyes; then
27941 cat >>confdefs.h <<\_ACEOF
27942 #define HAVE_MBSTATE_T 1
27943 _ACEOF
27947 # Sanity check for existence of ISO C99 headers for extended encoding.
27949 for ac_header in wchar.h
27951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27953 echo "$as_me:$LINENO: checking for $ac_header" >&5
27954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27960 else
27961 # Is the header compilable?
27962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27964 cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h. */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 $ac_includes_default
27971 #include <$ac_header>
27972 _ACEOF
27973 rm -f conftest.$ac_objext
27974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27975 (eval $ac_compile) 2>conftest.er1
27976 ac_status=$?
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag"
27983 || test ! -s conftest.err'
27984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985 (eval $ac_try) 2>&5
27986 ac_status=$?
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; } &&
27989 { ac_try='test -s conftest.$ac_objext'
27990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; }; then
27995 ac_header_compiler=yes
27996 else
27997 echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
28000 ac_header_compiler=no
28002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28004 echo "${ECHO_T}$ac_header_compiler" >&6
28006 # Is the header present?
28007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28009 cat >conftest.$ac_ext <<_ACEOF
28010 /* confdefs.h. */
28011 _ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h. */
28015 #include <$ac_header>
28016 _ACEOF
28017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28019 ac_status=$?
28020 grep -v '^ *+' conftest.er1 >conftest.err
28021 rm -f conftest.er1
28022 cat conftest.err >&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } >/dev/null; then
28025 if test -s conftest.err; then
28026 ac_cpp_err=$ac_c_preproc_warn_flag
28027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28028 else
28029 ac_cpp_err=
28031 else
28032 ac_cpp_err=yes
28034 if test -z "$ac_cpp_err"; then
28035 ac_header_preproc=yes
28036 else
28037 echo "$as_me: failed program was:" >&5
28038 sed 's/^/| /' conftest.$ac_ext >&5
28040 ac_header_preproc=no
28042 rm -f conftest.err conftest.$ac_ext
28043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28044 echo "${ECHO_T}$ac_header_preproc" >&6
28046 # So? What about this header?
28047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28048 yes:no: )
28049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28053 ac_header_preproc=yes
28055 no:yes:* )
28056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28069 cat <<\_ASBOX
28070 ## ----------------------------------------- ##
28071 ## Report this to the package-unused lists. ##
28072 ## ----------------------------------------- ##
28073 _ASBOX
28075 sed "s/^/$as_me: WARNING: /" >&2
28077 esac
28078 echo "$as_me:$LINENO: checking for $ac_header" >&5
28079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28081 echo $ECHO_N "(cached) $ECHO_C" >&6
28082 else
28083 eval "$as_ac_Header=\$ac_header_preproc"
28085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28090 cat >>confdefs.h <<_ACEOF
28091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28092 _ACEOF
28093 ac_has_wchar_h=yes
28094 else
28095 ac_has_wchar_h=no
28098 done
28101 for ac_header in wctype.h
28103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28105 echo "$as_me:$LINENO: checking for $ac_header" >&5
28106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28108 echo $ECHO_N "(cached) $ECHO_C" >&6
28110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28112 else
28113 # Is the header compilable?
28114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28116 cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h. */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122 $ac_includes_default
28123 #include <$ac_header>
28124 _ACEOF
28125 rm -f conftest.$ac_objext
28126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28127 (eval $ac_compile) 2>conftest.er1
28128 ac_status=$?
28129 grep -v '^ *+' conftest.er1 >conftest.err
28130 rm -f conftest.er1
28131 cat conftest.err >&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } &&
28134 { ac_try='test -z "$ac_c_werror_flag"
28135 || test ! -s conftest.err'
28136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28137 (eval $ac_try) 2>&5
28138 ac_status=$?
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); }; } &&
28141 { ac_try='test -s conftest.$ac_objext'
28142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143 (eval $ac_try) 2>&5
28144 ac_status=$?
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); }; }; then
28147 ac_header_compiler=yes
28148 else
28149 echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.$ac_ext >&5
28152 ac_header_compiler=no
28154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28156 echo "${ECHO_T}$ac_header_compiler" >&6
28158 # Is the header present?
28159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28161 cat >conftest.$ac_ext <<_ACEOF
28162 /* confdefs.h. */
28163 _ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h. */
28167 #include <$ac_header>
28168 _ACEOF
28169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28171 ac_status=$?
28172 grep -v '^ *+' conftest.er1 >conftest.err
28173 rm -f conftest.er1
28174 cat conftest.err >&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); } >/dev/null; then
28177 if test -s conftest.err; then
28178 ac_cpp_err=$ac_c_preproc_warn_flag
28179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28180 else
28181 ac_cpp_err=
28183 else
28184 ac_cpp_err=yes
28186 if test -z "$ac_cpp_err"; then
28187 ac_header_preproc=yes
28188 else
28189 echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28192 ac_header_preproc=no
28194 rm -f conftest.err conftest.$ac_ext
28195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28196 echo "${ECHO_T}$ac_header_preproc" >&6
28198 # So? What about this header?
28199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28200 yes:no: )
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28205 ac_header_preproc=yes
28207 no:yes:* )
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28221 cat <<\_ASBOX
28222 ## ----------------------------------------- ##
28223 ## Report this to the package-unused lists. ##
28224 ## ----------------------------------------- ##
28225 _ASBOX
28227 sed "s/^/$as_me: WARNING: /" >&2
28229 esac
28230 echo "$as_me:$LINENO: checking for $ac_header" >&5
28231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235 eval "$as_ac_Header=\$ac_header_preproc"
28237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28242 cat >>confdefs.h <<_ACEOF
28243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28244 _ACEOF
28245 ac_has_wctype_h=yes
28246 else
28247 ac_has_wctype_h=no
28250 done
28253 # Only continue checking if the ISO C99 headers exist and support is on.
28254 if test x"$ac_has_wchar_h" = xyes &&
28255 test x"$ac_has_wctype_h" = xyes &&
28256 test x"$enable_c_mbchar" != xno; then
28258 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
28259 # numeric_limits can instantiate type_traits<wchar_t>
28260 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
28261 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
28262 cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h. */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28268 #include <wchar.h>
28270 main ()
28272 int i = WCHAR_MIN; int j = WCHAR_MAX;
28274 return 0;
28276 _ACEOF
28277 rm -f conftest.$ac_objext
28278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28279 (eval $ac_compile) 2>conftest.er1
28280 ac_status=$?
28281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } &&
28286 { ac_try='test -z "$ac_c_werror_flag"
28287 || test ! -s conftest.err'
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
28293 { ac_try='test -s conftest.$ac_objext'
28294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; }; then
28299 has_wchar_minmax=yes
28300 else
28301 echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.$ac_ext >&5
28304 has_wchar_minmax=no
28306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28307 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
28308 echo "${ECHO_T}$has_wchar_minmax" >&6
28310 # Test wchar.h for WEOF, which is what we use to determine whether
28311 # to specialize for char_traits<wchar_t> or not.
28312 echo "$as_me:$LINENO: checking for WEOF" >&5
28313 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
28314 cat >conftest.$ac_ext <<_ACEOF
28315 /* confdefs.h. */
28316 _ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h. */
28321 #include <wchar.h>
28322 #include <stddef.h>
28324 main ()
28326 wint_t i = WEOF;
28328 return 0;
28330 _ACEOF
28331 rm -f conftest.$ac_objext
28332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28333 (eval $ac_compile) 2>conftest.er1
28334 ac_status=$?
28335 grep -v '^ *+' conftest.er1 >conftest.err
28336 rm -f conftest.er1
28337 cat conftest.err >&5
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); } &&
28340 { ac_try='test -z "$ac_c_werror_flag"
28341 || test ! -s conftest.err'
28342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343 (eval $ac_try) 2>&5
28344 ac_status=$?
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; } &&
28347 { ac_try='test -s conftest.$ac_objext'
28348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349 (eval $ac_try) 2>&5
28350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; }; then
28353 has_weof=yes
28354 else
28355 echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28358 has_weof=no
28360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28361 echo "$as_me:$LINENO: result: $has_weof" >&5
28362 echo "${ECHO_T}$has_weof" >&6
28364 # Tests for wide character functions used in char_traits<wchar_t>.
28365 ac_wfuncs=yes
28372 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28375 echo "$as_me:$LINENO: checking for $ac_func" >&5
28376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28377 if eval "test \"\${$as_ac_var+set}\" = set"; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28379 else
28380 if test x$gcc_no_link = xyes; then
28381 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28383 { (exit 1); exit 1; }; }
28385 cat >conftest.$ac_ext <<_ACEOF
28386 /* confdefs.h. */
28387 _ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28393 #define $ac_func innocuous_$ac_func
28395 /* System header to define __stub macros and hopefully few prototypes,
28396 which can conflict with char $ac_func (); below.
28397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28398 <limits.h> exists even on freestanding compilers. */
28400 #ifdef __STDC__
28401 # include <limits.h>
28402 #else
28403 # include <assert.h>
28404 #endif
28406 #undef $ac_func
28408 /* Override any gcc2 internal prototype to avoid an error. */
28409 #ifdef __cplusplus
28410 extern "C"
28412 #endif
28413 /* We use char because int might match the return type of a gcc2
28414 builtin and then its argument prototype would still apply. */
28415 char $ac_func ();
28416 /* The GNU C library defines this for functions which it implements
28417 to always fail with ENOSYS. Some functions are actually named
28418 something starting with __ and the normal name is an alias. */
28419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28420 choke me
28421 #else
28422 char (*f) () = $ac_func;
28423 #endif
28424 #ifdef __cplusplus
28426 #endif
28429 main ()
28431 return f != $ac_func;
28433 return 0;
28435 _ACEOF
28436 rm -f conftest.$ac_objext conftest$ac_exeext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28438 (eval $ac_link) 2>conftest.er1
28439 ac_status=$?
28440 grep -v '^ *+' conftest.er1 >conftest.err
28441 rm -f conftest.er1
28442 cat conftest.err >&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
28445 { ac_try='test -z "$ac_c_werror_flag"
28446 || test ! -s conftest.err'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; } &&
28452 { ac_try='test -s conftest$ac_exeext'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 eval "$as_ac_var=yes"
28459 else
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 eval "$as_ac_var=no"
28465 rm -f conftest.err conftest.$ac_objext \
28466 conftest$ac_exeext conftest.$ac_ext
28468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28470 if test `eval echo '${'$as_ac_var'}'` = yes; then
28471 cat >>confdefs.h <<_ACEOF
28472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28473 _ACEOF
28475 else
28476 ac_wfuncs=no
28478 done
28481 # Checks for names injected into std:: by the c_std headers.
28528 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28529 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28530 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28531 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28532 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28533 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28536 echo "$as_me:$LINENO: checking for $ac_func" >&5
28537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28538 if eval "test \"\${$as_ac_var+set}\" = set"; then
28539 echo $ECHO_N "(cached) $ECHO_C" >&6
28540 else
28541 if test x$gcc_no_link = xyes; then
28542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28544 { (exit 1); exit 1; }; }
28546 cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h. */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28554 #define $ac_func innocuous_$ac_func
28556 /* System header to define __stub macros and hopefully few prototypes,
28557 which can conflict with char $ac_func (); below.
28558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28559 <limits.h> exists even on freestanding compilers. */
28561 #ifdef __STDC__
28562 # include <limits.h>
28563 #else
28564 # include <assert.h>
28565 #endif
28567 #undef $ac_func
28569 /* Override any gcc2 internal prototype to avoid an error. */
28570 #ifdef __cplusplus
28571 extern "C"
28573 #endif
28574 /* We use char because int might match the return type of a gcc2
28575 builtin and then its argument prototype would still apply. */
28576 char $ac_func ();
28577 /* The GNU C library defines this for functions which it implements
28578 to always fail with ENOSYS. Some functions are actually named
28579 something starting with __ and the normal name is an alias. */
28580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28581 choke me
28582 #else
28583 char (*f) () = $ac_func;
28584 #endif
28585 #ifdef __cplusplus
28587 #endif
28590 main ()
28592 return f != $ac_func;
28594 return 0;
28596 _ACEOF
28597 rm -f conftest.$ac_objext conftest$ac_exeext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599 (eval $ac_link) 2>conftest.er1
28600 ac_status=$?
28601 grep -v '^ *+' conftest.er1 >conftest.err
28602 rm -f conftest.er1
28603 cat conftest.err >&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); } &&
28606 { ac_try='test -z "$ac_c_werror_flag"
28607 || test ! -s conftest.err'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28610 ac_status=$?
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; } &&
28613 { ac_try='test -s conftest$ac_exeext'
28614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615 (eval $ac_try) 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 eval "$as_ac_var=yes"
28620 else
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 eval "$as_ac_var=no"
28626 rm -f conftest.err conftest.$ac_objext \
28627 conftest$ac_exeext conftest.$ac_ext
28629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28631 if test `eval echo '${'$as_ac_var'}'` = yes; then
28632 cat >>confdefs.h <<_ACEOF
28633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28634 _ACEOF
28636 else
28637 ac_wfuncs=no
28639 done
28642 # Checks for wide character functions that are not required
28643 # for basic wchar_t support. Don't disable support if they are missing.
28644 # Injection of these is wrapped with guard macros.
28650 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28653 echo "$as_me:$LINENO: checking for $ac_func" >&5
28654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28655 if eval "test \"\${$as_ac_var+set}\" = set"; then
28656 echo $ECHO_N "(cached) $ECHO_C" >&6
28657 else
28658 if test x$gcc_no_link = xyes; then
28659 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28661 { (exit 1); exit 1; }; }
28663 cat >conftest.$ac_ext <<_ACEOF
28664 /* confdefs.h. */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28671 #define $ac_func innocuous_$ac_func
28673 /* System header to define __stub macros and hopefully few prototypes,
28674 which can conflict with char $ac_func (); below.
28675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28676 <limits.h> exists even on freestanding compilers. */
28678 #ifdef __STDC__
28679 # include <limits.h>
28680 #else
28681 # include <assert.h>
28682 #endif
28684 #undef $ac_func
28686 /* Override any gcc2 internal prototype to avoid an error. */
28687 #ifdef __cplusplus
28688 extern "C"
28690 #endif
28691 /* We use char because int might match the return type of a gcc2
28692 builtin and then its argument prototype would still apply. */
28693 char $ac_func ();
28694 /* The GNU C library defines this for functions which it implements
28695 to always fail with ENOSYS. Some functions are actually named
28696 something starting with __ and the normal name is an alias. */
28697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28698 choke me
28699 #else
28700 char (*f) () = $ac_func;
28701 #endif
28702 #ifdef __cplusplus
28704 #endif
28707 main ()
28709 return f != $ac_func;
28711 return 0;
28713 _ACEOF
28714 rm -f conftest.$ac_objext conftest$ac_exeext
28715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28716 (eval $ac_link) 2>conftest.er1
28717 ac_status=$?
28718 grep -v '^ *+' conftest.er1 >conftest.err
28719 rm -f conftest.er1
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } &&
28723 { ac_try='test -z "$ac_c_werror_flag"
28724 || test ! -s conftest.err'
28725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726 (eval $ac_try) 2>&5
28727 ac_status=$?
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); }; } &&
28730 { ac_try='test -s conftest$ac_exeext'
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28733 ac_status=$?
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; }; then
28736 eval "$as_ac_var=yes"
28737 else
28738 echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28741 eval "$as_ac_var=no"
28743 rm -f conftest.err conftest.$ac_objext \
28744 conftest$ac_exeext conftest.$ac_ext
28746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28748 if test `eval echo '${'$as_ac_var'}'` = yes; then
28749 cat >>confdefs.h <<_ACEOF
28750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28751 _ACEOF
28754 done
28757 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28758 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28759 if test x"$has_weof" = xyes &&
28760 test x"$has_wchar_minmax" = xyes &&
28761 test x"$ac_wfuncs" = xyes;
28762 then
28763 ac_isoC99_wchar_t=yes
28764 else
28765 ac_isoC99_wchar_t=no
28767 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28768 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28770 # Use iconv for wchar_t to char conversions. As such, check for
28771 # X/Open Portability Guide, version 2 features (XPG2).
28772 if test "${ac_cv_header_iconv_h+set}" = set; then
28773 echo "$as_me:$LINENO: checking for iconv.h" >&5
28774 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28775 if test "${ac_cv_header_iconv_h+set}" = set; then
28776 echo $ECHO_N "(cached) $ECHO_C" >&6
28778 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28779 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28780 else
28781 # Is the header compilable?
28782 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28783 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28784 cat >conftest.$ac_ext <<_ACEOF
28785 /* confdefs.h. */
28786 _ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h. */
28790 $ac_includes_default
28791 #include <iconv.h>
28792 _ACEOF
28793 rm -f conftest.$ac_objext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28795 (eval $ac_compile) 2>conftest.er1
28796 ac_status=$?
28797 grep -v '^ *+' conftest.er1 >conftest.err
28798 rm -f conftest.er1
28799 cat conftest.err >&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try='test -z "$ac_c_werror_flag"
28803 || test ! -s conftest.err'
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28806 ac_status=$?
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; } &&
28809 { ac_try='test -s conftest.$ac_objext'
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28812 ac_status=$?
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
28815 ac_header_compiler=yes
28816 else
28817 echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28820 ac_header_compiler=no
28822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28824 echo "${ECHO_T}$ac_header_compiler" >&6
28826 # Is the header present?
28827 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28828 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28829 cat >conftest.$ac_ext <<_ACEOF
28830 /* confdefs.h. */
28831 _ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h. */
28835 #include <iconv.h>
28836 _ACEOF
28837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28839 ac_status=$?
28840 grep -v '^ *+' conftest.er1 >conftest.err
28841 rm -f conftest.er1
28842 cat conftest.err >&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); } >/dev/null; then
28845 if test -s conftest.err; then
28846 ac_cpp_err=$ac_c_preproc_warn_flag
28847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28848 else
28849 ac_cpp_err=
28851 else
28852 ac_cpp_err=yes
28854 if test -z "$ac_cpp_err"; then
28855 ac_header_preproc=yes
28856 else
28857 echo "$as_me: failed program was:" >&5
28858 sed 's/^/| /' conftest.$ac_ext >&5
28860 ac_header_preproc=no
28862 rm -f conftest.err conftest.$ac_ext
28863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28864 echo "${ECHO_T}$ac_header_preproc" >&6
28866 # So? What about this header?
28867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28868 yes:no: )
28869 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28870 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28872 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28873 ac_header_preproc=yes
28875 no:yes:* )
28876 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28877 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
28879 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28881 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
28883 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28885 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28886 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28887 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28889 cat <<\_ASBOX
28890 ## ----------------------------------------- ##
28891 ## Report this to the package-unused lists. ##
28892 ## ----------------------------------------- ##
28893 _ASBOX
28895 sed "s/^/$as_me: WARNING: /" >&2
28897 esac
28898 echo "$as_me:$LINENO: checking for iconv.h" >&5
28899 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28900 if test "${ac_cv_header_iconv_h+set}" = set; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28902 else
28903 ac_cv_header_iconv_h=$ac_header_preproc
28905 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28906 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28909 if test $ac_cv_header_iconv_h = yes; then
28910 ac_has_iconv_h=yes
28911 else
28912 ac_has_iconv_h=no
28916 if test "${ac_cv_header_langinfo_h+set}" = set; then
28917 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28918 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28919 if test "${ac_cv_header_langinfo_h+set}" = set; then
28920 echo $ECHO_N "(cached) $ECHO_C" >&6
28922 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28923 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28924 else
28925 # Is the header compilable?
28926 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28927 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28928 cat >conftest.$ac_ext <<_ACEOF
28929 /* confdefs.h. */
28930 _ACEOF
28931 cat confdefs.h >>conftest.$ac_ext
28932 cat >>conftest.$ac_ext <<_ACEOF
28933 /* end confdefs.h. */
28934 $ac_includes_default
28935 #include <langinfo.h>
28936 _ACEOF
28937 rm -f conftest.$ac_objext
28938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28939 (eval $ac_compile) 2>conftest.er1
28940 ac_status=$?
28941 grep -v '^ *+' conftest.er1 >conftest.err
28942 rm -f conftest.er1
28943 cat conftest.err >&5
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } &&
28946 { ac_try='test -z "$ac_c_werror_flag"
28947 || test ! -s conftest.err'
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; } &&
28953 { ac_try='test -s conftest.$ac_objext'
28954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; }; then
28959 ac_header_compiler=yes
28960 else
28961 echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28964 ac_header_compiler=no
28966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28968 echo "${ECHO_T}$ac_header_compiler" >&6
28970 # Is the header present?
28971 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
28972 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
28973 cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h. */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h. */
28979 #include <langinfo.h>
28980 _ACEOF
28981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28983 ac_status=$?
28984 grep -v '^ *+' conftest.er1 >conftest.err
28985 rm -f conftest.er1
28986 cat conftest.err >&5
28987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988 (exit $ac_status); } >/dev/null; then
28989 if test -s conftest.err; then
28990 ac_cpp_err=$ac_c_preproc_warn_flag
28991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28992 else
28993 ac_cpp_err=
28995 else
28996 ac_cpp_err=yes
28998 if test -z "$ac_cpp_err"; then
28999 ac_header_preproc=yes
29000 else
29001 echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29004 ac_header_preproc=no
29006 rm -f conftest.err conftest.$ac_ext
29007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29008 echo "${ECHO_T}$ac_header_preproc" >&6
29010 # So? What about this header?
29011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29012 yes:no: )
29013 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29014 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
29016 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
29017 ac_header_preproc=yes
29019 no:yes:* )
29020 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
29021 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
29022 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
29023 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
29024 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
29025 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
29027 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
29029 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
29031 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
29033 cat <<\_ASBOX
29034 ## ----------------------------------------- ##
29035 ## Report this to the package-unused lists. ##
29036 ## ----------------------------------------- ##
29037 _ASBOX
29039 sed "s/^/$as_me: WARNING: /" >&2
29041 esac
29042 echo "$as_me:$LINENO: checking for langinfo.h" >&5
29043 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
29044 if test "${ac_cv_header_langinfo_h+set}" = set; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29046 else
29047 ac_cv_header_langinfo_h=$ac_header_preproc
29049 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
29050 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
29053 if test $ac_cv_header_langinfo_h = yes; then
29054 ac_has_langinfo_h=yes
29055 else
29056 ac_has_langinfo_h=no
29061 # Check for existence of libiconv.a providing XPG2 wchar_t support.
29062 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
29063 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
29064 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29066 else
29067 ac_check_lib_save_LIBS=$LIBS
29068 LIBS="-liconv $LIBS"
29069 if test x$gcc_no_link = xyes; then
29070 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29072 { (exit 1); exit 1; }; }
29074 cat >conftest.$ac_ext <<_ACEOF
29075 /* confdefs.h. */
29076 _ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h. */
29081 /* Override any gcc2 internal prototype to avoid an error. */
29082 #ifdef __cplusplus
29083 extern "C"
29084 #endif
29085 /* We use char because int might match the return type of a gcc2
29086 builtin and then its argument prototype would still apply. */
29087 char iconv ();
29089 main ()
29091 iconv ();
29093 return 0;
29095 _ACEOF
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098 (eval $ac_link) 2>conftest.er1
29099 ac_status=$?
29100 grep -v '^ *+' conftest.er1 >conftest.err
29101 rm -f conftest.er1
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } &&
29105 { ac_try='test -z "$ac_c_werror_flag"
29106 || test ! -s conftest.err'
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29109 ac_status=$?
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; } &&
29112 { ac_try='test -s conftest$ac_exeext'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29115 ac_status=$?
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; }; then
29118 ac_cv_lib_iconv_iconv=yes
29119 else
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29123 ac_cv_lib_iconv_iconv=no
29125 rm -f conftest.err conftest.$ac_objext \
29126 conftest$ac_exeext conftest.$ac_ext
29127 LIBS=$ac_check_lib_save_LIBS
29129 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
29130 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
29131 if test $ac_cv_lib_iconv_iconv = yes; then
29132 libiconv="-liconv"
29135 ac_save_LIBS="$LIBS"
29136 LIBS="$LIBS $libiconv"
29142 for ac_func in iconv_open iconv_close iconv nl_langinfo
29144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29145 echo "$as_me:$LINENO: checking for $ac_func" >&5
29146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29147 if eval "test \"\${$as_ac_var+set}\" = set"; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 else
29150 if test x$gcc_no_link = xyes; then
29151 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29153 { (exit 1); exit 1; }; }
29155 cat >conftest.$ac_ext <<_ACEOF
29156 /* confdefs.h. */
29157 _ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h. */
29161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29163 #define $ac_func innocuous_$ac_func
29165 /* System header to define __stub macros and hopefully few prototypes,
29166 which can conflict with char $ac_func (); below.
29167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29168 <limits.h> exists even on freestanding compilers. */
29170 #ifdef __STDC__
29171 # include <limits.h>
29172 #else
29173 # include <assert.h>
29174 #endif
29176 #undef $ac_func
29178 /* Override any gcc2 internal prototype to avoid an error. */
29179 #ifdef __cplusplus
29180 extern "C"
29182 #endif
29183 /* We use char because int might match the return type of a gcc2
29184 builtin and then its argument prototype would still apply. */
29185 char $ac_func ();
29186 /* The GNU C library defines this for functions which it implements
29187 to always fail with ENOSYS. Some functions are actually named
29188 something starting with __ and the normal name is an alias. */
29189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29190 choke me
29191 #else
29192 char (*f) () = $ac_func;
29193 #endif
29194 #ifdef __cplusplus
29196 #endif
29199 main ()
29201 return f != $ac_func;
29203 return 0;
29205 _ACEOF
29206 rm -f conftest.$ac_objext conftest$ac_exeext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29208 (eval $ac_link) 2>conftest.er1
29209 ac_status=$?
29210 grep -v '^ *+' conftest.er1 >conftest.err
29211 rm -f conftest.er1
29212 cat conftest.err >&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
29215 { ac_try='test -z "$ac_c_werror_flag"
29216 || test ! -s conftest.err'
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
29219 ac_status=$?
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; } &&
29222 { ac_try='test -s conftest$ac_exeext'
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; }; then
29228 eval "$as_ac_var=yes"
29229 else
29230 echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29233 eval "$as_ac_var=no"
29235 rm -f conftest.err conftest.$ac_objext \
29236 conftest$ac_exeext conftest.$ac_ext
29238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29240 if test `eval echo '${'$as_ac_var'}'` = yes; then
29241 cat >>confdefs.h <<_ACEOF
29242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29243 _ACEOF
29244 ac_XPG2funcs=yes
29245 else
29246 ac_XPG2funcs=no
29248 done
29251 LIBS="$ac_save_LIBS"
29253 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
29254 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
29255 if test x"$ac_has_iconv_h" = xyes &&
29256 test x"$ac_has_langinfo_h" = xyes &&
29257 test x"$ac_XPG2funcs" = xyes;
29258 then
29259 ac_XPG2_wchar_t=yes
29260 else
29261 ac_XPG2_wchar_t=no
29263 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
29264 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
29266 # At the moment, only enable wchar_t specializations if all the
29267 # above support is present.
29268 if test x"$ac_isoC99_wchar_t" = xyes &&
29269 test x"$ac_XPG2_wchar_t" = xyes;
29270 then
29271 cat >>confdefs.h <<\_ACEOF
29272 #define _GLIBCXX_USE_WCHAR_T 1
29273 _ACEOF
29275 enable_wchar_t=yes
29278 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
29279 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
29280 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
29281 echo "${ECHO_T}$enable_wchar_t" >&6
29284 ac_test_CXXFLAGS="${CXXFLAGS+set}"
29285 ac_save_CXXFLAGS="$CXXFLAGS"
29286 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
29289 echo "$as_me:$LINENO: checking for strtold declaration" >&5
29290 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
29291 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
29292 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29298 ac_ext=cc
29299 ac_cpp='$CXXCPP $CPPFLAGS'
29300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29304 cat >conftest.$ac_ext <<_ACEOF
29305 /* confdefs.h. */
29306 _ACEOF
29307 cat confdefs.h >>conftest.$ac_ext
29308 cat >>conftest.$ac_ext <<_ACEOF
29309 /* end confdefs.h. */
29310 #include <stdlib.h>
29312 main ()
29314 strtold(0, 0);
29316 return 0;
29318 _ACEOF
29319 rm -f conftest.$ac_objext
29320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29321 (eval $ac_compile) 2>conftest.er1
29322 ac_status=$?
29323 grep -v '^ *+' conftest.er1 >conftest.err
29324 rm -f conftest.er1
29325 cat conftest.err >&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } &&
29328 { ac_try='test -z "$ac_cxx_werror_flag"
29329 || test ! -s conftest.err'
29330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29331 (eval $ac_try) 2>&5
29332 ac_status=$?
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); }; } &&
29335 { ac_try='test -s conftest.$ac_objext'
29336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337 (eval $ac_try) 2>&5
29338 ac_status=$?
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); }; }; then
29341 glibcxx_cv_func_strtold_use=yes
29342 else
29343 echo "$as_me: failed program was:" >&5
29344 sed 's/^/| /' conftest.$ac_ext >&5
29346 glibcxx_cv_func_strtold_use=no
29348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29349 ac_ext=c
29350 ac_cpp='$CPP $CPPFLAGS'
29351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29359 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
29360 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
29361 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
29363 for ac_func in strtold
29365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29366 echo "$as_me:$LINENO: checking for $ac_func" >&5
29367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29368 if eval "test \"\${$as_ac_var+set}\" = set"; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371 if test x$gcc_no_link = xyes; then
29372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29374 { (exit 1); exit 1; }; }
29376 cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h. */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h. */
29382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29384 #define $ac_func innocuous_$ac_func
29386 /* System header to define __stub macros and hopefully few prototypes,
29387 which can conflict with char $ac_func (); below.
29388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29389 <limits.h> exists even on freestanding compilers. */
29391 #ifdef __STDC__
29392 # include <limits.h>
29393 #else
29394 # include <assert.h>
29395 #endif
29397 #undef $ac_func
29399 /* Override any gcc2 internal prototype to avoid an error. */
29400 #ifdef __cplusplus
29401 extern "C"
29403 #endif
29404 /* We use char because int might match the return type of a gcc2
29405 builtin and then its argument prototype would still apply. */
29406 char $ac_func ();
29407 /* The GNU C library defines this for functions which it implements
29408 to always fail with ENOSYS. Some functions are actually named
29409 something starting with __ and the normal name is an alias. */
29410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29411 choke me
29412 #else
29413 char (*f) () = $ac_func;
29414 #endif
29415 #ifdef __cplusplus
29417 #endif
29420 main ()
29422 return f != $ac_func;
29424 return 0;
29426 _ACEOF
29427 rm -f conftest.$ac_objext conftest$ac_exeext
29428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29429 (eval $ac_link) 2>conftest.er1
29430 ac_status=$?
29431 grep -v '^ *+' conftest.er1 >conftest.err
29432 rm -f conftest.er1
29433 cat conftest.err >&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } &&
29436 { ac_try='test -z "$ac_c_werror_flag"
29437 || test ! -s conftest.err'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29440 ac_status=$?
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; } &&
29443 { ac_try='test -s conftest$ac_exeext'
29444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445 (eval $ac_try) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 eval "$as_ac_var=yes"
29450 else
29451 echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.$ac_ext >&5
29454 eval "$as_ac_var=no"
29456 rm -f conftest.err conftest.$ac_objext \
29457 conftest$ac_exeext conftest.$ac_ext
29459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29461 if test `eval echo '${'$as_ac_var'}'` = yes; then
29462 cat >>confdefs.h <<_ACEOF
29463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29464 _ACEOF
29467 done
29472 echo "$as_me:$LINENO: checking for strtof declaration" >&5
29473 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29474 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29475 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29476 echo $ECHO_N "(cached) $ECHO_C" >&6
29477 else
29481 ac_ext=cc
29482 ac_cpp='$CXXCPP $CPPFLAGS'
29483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29487 cat >conftest.$ac_ext <<_ACEOF
29488 /* confdefs.h. */
29489 _ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h. */
29493 #include <stdlib.h>
29495 main ()
29497 strtof(0, 0);
29499 return 0;
29501 _ACEOF
29502 rm -f conftest.$ac_objext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29504 (eval $ac_compile) 2>conftest.er1
29505 ac_status=$?
29506 grep -v '^ *+' conftest.er1 >conftest.err
29507 rm -f conftest.er1
29508 cat conftest.err >&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); } &&
29511 { ac_try='test -z "$ac_cxx_werror_flag"
29512 || test ! -s conftest.err'
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest.$ac_objext'
29519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; }; then
29524 glibcxx_cv_func_strtof_use=yes
29525 else
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29529 glibcxx_cv_func_strtof_use=no
29531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29532 ac_ext=c
29533 ac_cpp='$CPP $CPPFLAGS'
29534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29542 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29543 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29544 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29546 for ac_func in strtof
29548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29549 echo "$as_me:$LINENO: checking for $ac_func" >&5
29550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29551 if eval "test \"\${$as_ac_var+set}\" = set"; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554 if test x$gcc_no_link = xyes; then
29555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29557 { (exit 1); exit 1; }; }
29559 cat >conftest.$ac_ext <<_ACEOF
29560 /* confdefs.h. */
29561 _ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h. */
29565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29567 #define $ac_func innocuous_$ac_func
29569 /* System header to define __stub macros and hopefully few prototypes,
29570 which can conflict with char $ac_func (); below.
29571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29572 <limits.h> exists even on freestanding compilers. */
29574 #ifdef __STDC__
29575 # include <limits.h>
29576 #else
29577 # include <assert.h>
29578 #endif
29580 #undef $ac_func
29582 /* Override any gcc2 internal prototype to avoid an error. */
29583 #ifdef __cplusplus
29584 extern "C"
29586 #endif
29587 /* We use char because int might match the return type of a gcc2
29588 builtin and then its argument prototype would still apply. */
29589 char $ac_func ();
29590 /* The GNU C library defines this for functions which it implements
29591 to always fail with ENOSYS. Some functions are actually named
29592 something starting with __ and the normal name is an alias. */
29593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29594 choke me
29595 #else
29596 char (*f) () = $ac_func;
29597 #endif
29598 #ifdef __cplusplus
29600 #endif
29603 main ()
29605 return f != $ac_func;
29607 return 0;
29609 _ACEOF
29610 rm -f conftest.$ac_objext conftest$ac_exeext
29611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29612 (eval $ac_link) 2>conftest.er1
29613 ac_status=$?
29614 grep -v '^ *+' conftest.er1 >conftest.err
29615 rm -f conftest.er1
29616 cat conftest.err >&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } &&
29619 { ac_try='test -z "$ac_c_werror_flag"
29620 || test ! -s conftest.err'
29621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29623 ac_status=$?
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; } &&
29626 { ac_try='test -s conftest$ac_exeext'
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29629 ac_status=$?
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; }; then
29632 eval "$as_ac_var=yes"
29633 else
29634 echo "$as_me: failed program was:" >&5
29635 sed 's/^/| /' conftest.$ac_ext >&5
29637 eval "$as_ac_var=no"
29639 rm -f conftest.err conftest.$ac_objext \
29640 conftest$ac_exeext conftest.$ac_ext
29642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29644 if test `eval echo '${'$as_ac_var'}'` = yes; then
29645 cat >>confdefs.h <<_ACEOF
29646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29647 _ACEOF
29650 done
29655 CXXFLAGS="$ac_save_CXXFLAGS"
29658 # For showmanyc_helper().
29661 for ac_header in sys/ioctl.h sys/filio.h
29663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29665 echo "$as_me:$LINENO: checking for $ac_header" >&5
29666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29668 echo $ECHO_N "(cached) $ECHO_C" >&6
29670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29672 else
29673 # Is the header compilable?
29674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29676 cat >conftest.$ac_ext <<_ACEOF
29677 /* confdefs.h. */
29678 _ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h. */
29682 $ac_includes_default
29683 #include <$ac_header>
29684 _ACEOF
29685 rm -f conftest.$ac_objext
29686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29687 (eval $ac_compile) 2>conftest.er1
29688 ac_status=$?
29689 grep -v '^ *+' conftest.er1 >conftest.err
29690 rm -f conftest.er1
29691 cat conftest.err >&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); } &&
29694 { ac_try='test -z "$ac_c_werror_flag"
29695 || test ! -s conftest.err'
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; } &&
29701 { ac_try='test -s conftest.$ac_objext'
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; }; then
29707 ac_header_compiler=yes
29708 else
29709 echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29712 ac_header_compiler=no
29714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29716 echo "${ECHO_T}$ac_header_compiler" >&6
29718 # Is the header present?
29719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29721 cat >conftest.$ac_ext <<_ACEOF
29722 /* confdefs.h. */
29723 _ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h. */
29727 #include <$ac_header>
29728 _ACEOF
29729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29731 ac_status=$?
29732 grep -v '^ *+' conftest.er1 >conftest.err
29733 rm -f conftest.er1
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); } >/dev/null; then
29737 if test -s conftest.err; then
29738 ac_cpp_err=$ac_c_preproc_warn_flag
29739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29740 else
29741 ac_cpp_err=
29743 else
29744 ac_cpp_err=yes
29746 if test -z "$ac_cpp_err"; then
29747 ac_header_preproc=yes
29748 else
29749 echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29752 ac_header_preproc=no
29754 rm -f conftest.err conftest.$ac_ext
29755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29756 echo "${ECHO_T}$ac_header_preproc" >&6
29758 # So? What about this header?
29759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29760 yes:no: )
29761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29765 ac_header_preproc=yes
29767 no:yes:* )
29768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29781 cat <<\_ASBOX
29782 ## ----------------------------------------- ##
29783 ## Report this to the package-unused lists. ##
29784 ## ----------------------------------------- ##
29785 _ASBOX
29787 sed "s/^/$as_me: WARNING: /" >&2
29789 esac
29790 echo "$as_me:$LINENO: checking for $ac_header" >&5
29791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29793 echo $ECHO_N "(cached) $ECHO_C" >&6
29794 else
29795 eval "$as_ac_Header=\$ac_header_preproc"
29797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29802 cat >>confdefs.h <<_ACEOF
29803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29804 _ACEOF
29808 done
29811 if test "${glibcxx_cv_POLL+set}" = set; then
29812 echo $ECHO_N "(cached) $ECHO_C" >&6
29813 else
29815 if test x$gcc_no_link = xyes; then
29816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29818 { (exit 1); exit 1; }; }
29820 cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h. */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826 #include <poll.h>
29828 main ()
29830 struct pollfd pfd[1];
29831 pfd[0].events = POLLIN;
29832 poll(pfd, 1, 0);
29834 return 0;
29836 _ACEOF
29837 rm -f conftest.$ac_objext conftest$ac_exeext
29838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29839 (eval $ac_link) 2>conftest.er1
29840 ac_status=$?
29841 grep -v '^ *+' conftest.er1 >conftest.err
29842 rm -f conftest.er1
29843 cat conftest.err >&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); } &&
29846 { ac_try='test -z "$ac_c_werror_flag"
29847 || test ! -s conftest.err'
29848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849 (eval $ac_try) 2>&5
29850 ac_status=$?
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); }; } &&
29853 { ac_try='test -s conftest$ac_exeext'
29854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855 (eval $ac_try) 2>&5
29856 ac_status=$?
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); }; }; then
29859 glibcxx_cv_POLL=yes
29860 else
29861 echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29864 glibcxx_cv_POLL=no
29866 rm -f conftest.err conftest.$ac_objext \
29867 conftest$ac_exeext conftest.$ac_ext
29871 if test $glibcxx_cv_POLL = yes; then
29872 cat >>confdefs.h <<\_ACEOF
29873 #define HAVE_POLL 1
29874 _ACEOF
29879 if test "${glibcxx_cv_S_ISREG+set}" = set; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29881 else
29883 if test x$gcc_no_link = xyes; then
29884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29886 { (exit 1); exit 1; }; }
29888 cat >conftest.$ac_ext <<_ACEOF
29889 /* confdefs.h. */
29890 _ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29894 #include <sys/stat.h>
29896 main ()
29898 struct stat buffer;
29899 fstat(0, &buffer);
29900 S_ISREG(buffer.st_mode);
29902 return 0;
29904 _ACEOF
29905 rm -f conftest.$ac_objext conftest$ac_exeext
29906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29907 (eval $ac_link) 2>conftest.er1
29908 ac_status=$?
29909 grep -v '^ *+' conftest.er1 >conftest.err
29910 rm -f conftest.er1
29911 cat conftest.err >&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } &&
29914 { ac_try='test -z "$ac_c_werror_flag"
29915 || test ! -s conftest.err'
29916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917 (eval $ac_try) 2>&5
29918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; } &&
29921 { ac_try='test -s conftest$ac_exeext'
29922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923 (eval $ac_try) 2>&5
29924 ac_status=$?
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); }; }; then
29927 glibcxx_cv_S_ISREG=yes
29928 else
29929 echo "$as_me: failed program was:" >&5
29930 sed 's/^/| /' conftest.$ac_ext >&5
29932 glibcxx_cv_S_ISREG=no
29934 rm -f conftest.err conftest.$ac_objext \
29935 conftest$ac_exeext conftest.$ac_ext
29939 if test "${glibcxx_cv_S_IFREG+set}" = set; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
29941 else
29943 if test x$gcc_no_link = xyes; then
29944 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29945 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29946 { (exit 1); exit 1; }; }
29948 cat >conftest.$ac_ext <<_ACEOF
29949 /* confdefs.h. */
29950 _ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h. */
29954 #include <sys/stat.h>
29956 main ()
29958 struct stat buffer;
29959 fstat(0, &buffer);
29960 S_IFREG & buffer.st_mode;
29962 return 0;
29964 _ACEOF
29965 rm -f conftest.$ac_objext conftest$ac_exeext
29966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29967 (eval $ac_link) 2>conftest.er1
29968 ac_status=$?
29969 grep -v '^ *+' conftest.er1 >conftest.err
29970 rm -f conftest.er1
29971 cat conftest.err >&5
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); } &&
29974 { ac_try='test -z "$ac_c_werror_flag"
29975 || test ! -s conftest.err'
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest$ac_exeext'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 glibcxx_cv_S_IFREG=yes
29988 else
29989 echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.$ac_ext >&5
29992 glibcxx_cv_S_IFREG=no
29994 rm -f conftest.err conftest.$ac_objext \
29995 conftest$ac_exeext conftest.$ac_ext
29999 if test $glibcxx_cv_S_ISREG = yes; then
30000 cat >>confdefs.h <<\_ACEOF
30001 #define HAVE_S_ISREG 1
30002 _ACEOF
30004 elif test $glibcxx_cv_S_IFREG = yes; then
30005 cat >>confdefs.h <<\_ACEOF
30006 #define HAVE_S_IFREG 1
30007 _ACEOF
30012 # For xsputn_2().
30014 for ac_header in sys/uio.h
30016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30018 echo "$as_me:$LINENO: checking for $ac_header" >&5
30019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30021 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30025 else
30026 # Is the header compilable?
30027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30029 cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h. */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h. */
30035 $ac_includes_default
30036 #include <$ac_header>
30037 _ACEOF
30038 rm -f conftest.$ac_objext
30039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30040 (eval $ac_compile) 2>conftest.er1
30041 ac_status=$?
30042 grep -v '^ *+' conftest.er1 >conftest.err
30043 rm -f conftest.er1
30044 cat conftest.err >&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } &&
30047 { ac_try='test -z "$ac_c_werror_flag"
30048 || test ! -s conftest.err'
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest.$ac_objext'
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 ac_header_compiler=yes
30061 else
30062 echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30065 ac_header_compiler=no
30067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30069 echo "${ECHO_T}$ac_header_compiler" >&6
30071 # Is the header present?
30072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30074 cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h. */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h. */
30080 #include <$ac_header>
30081 _ACEOF
30082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30084 ac_status=$?
30085 grep -v '^ *+' conftest.er1 >conftest.err
30086 rm -f conftest.er1
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } >/dev/null; then
30090 if test -s conftest.err; then
30091 ac_cpp_err=$ac_c_preproc_warn_flag
30092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30093 else
30094 ac_cpp_err=
30096 else
30097 ac_cpp_err=yes
30099 if test -z "$ac_cpp_err"; then
30100 ac_header_preproc=yes
30101 else
30102 echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30105 ac_header_preproc=no
30107 rm -f conftest.err conftest.$ac_ext
30108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30109 echo "${ECHO_T}$ac_header_preproc" >&6
30111 # So? What about this header?
30112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30113 yes:no: )
30114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30118 ac_header_preproc=yes
30120 no:yes:* )
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30134 cat <<\_ASBOX
30135 ## ----------------------------------------- ##
30136 ## Report this to the package-unused lists. ##
30137 ## ----------------------------------------- ##
30138 _ASBOX
30140 sed "s/^/$as_me: WARNING: /" >&2
30142 esac
30143 echo "$as_me:$LINENO: checking for $ac_header" >&5
30144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30146 echo $ECHO_N "(cached) $ECHO_C" >&6
30147 else
30148 eval "$as_ac_Header=\$ac_header_preproc"
30150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30155 cat >>confdefs.h <<_ACEOF
30156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30157 _ACEOF
30161 done
30164 if test "${glibcxx_cv_WRITEV+set}" = set; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30166 else
30168 if test x$gcc_no_link = xyes; then
30169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30171 { (exit 1); exit 1; }; }
30173 cat >conftest.$ac_ext <<_ACEOF
30174 /* confdefs.h. */
30175 _ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h. */
30179 #include <sys/uio.h>
30181 main ()
30183 struct iovec iov[2];
30184 writev(0, iov, 0);
30186 return 0;
30188 _ACEOF
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191 (eval $ac_link) 2>conftest.er1
30192 ac_status=$?
30193 grep -v '^ *+' conftest.er1 >conftest.err
30194 rm -f conftest.er1
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } &&
30198 { ac_try='test -z "$ac_c_werror_flag"
30199 || test ! -s conftest.err'
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest$ac_exeext'
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 glibcxx_cv_WRITEV=yes
30212 else
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30216 glibcxx_cv_WRITEV=no
30218 rm -f conftest.err conftest.$ac_objext \
30219 conftest$ac_exeext conftest.$ac_ext
30223 if test $glibcxx_cv_WRITEV = yes; then
30224 cat >>confdefs.h <<\_ACEOF
30225 #define HAVE_WRITEV 1
30226 _ACEOF
30231 # For the __streamoff_base_type typedef.
30233 if test "${glibcxx_cv_INT64_T+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
30235 else
30237 cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h. */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30243 #include <stdint.h>
30245 main ()
30247 int64_t var;
30249 return 0;
30251 _ACEOF
30252 rm -f conftest.$ac_objext
30253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30254 (eval $ac_compile) 2>conftest.er1
30255 ac_status=$?
30256 grep -v '^ *+' conftest.er1 >conftest.err
30257 rm -f conftest.er1
30258 cat conftest.err >&5
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); } &&
30261 { ac_try='test -z "$ac_c_werror_flag"
30262 || test ! -s conftest.err'
30263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264 (eval $ac_try) 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; } &&
30268 { ac_try='test -s conftest.$ac_objext'
30269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270 (eval $ac_try) 2>&5
30271 ac_status=$?
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; }; then
30274 glibcxx_cv_INT64_T=yes
30275 else
30276 echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30279 glibcxx_cv_INT64_T=no
30281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30285 if test $glibcxx_cv_INT64_T = yes; then
30286 cat >>confdefs.h <<\_ACEOF
30287 #define HAVE_INT64_T 1
30288 _ACEOF
30293 # For LFS support.
30297 ac_ext=cc
30298 ac_cpp='$CXXCPP $CPPFLAGS'
30299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30303 ac_save_CXXFLAGS="$CXXFLAGS"
30304 CXXFLAGS="$CXXFLAGS -fno-exceptions"
30305 if test "${glibcxx_cv_LFS+set}" = set; then
30306 echo $ECHO_N "(cached) $ECHO_C" >&6
30307 else
30309 if test x$gcc_no_link = xyes; then
30310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30312 { (exit 1); exit 1; }; }
30314 cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h. */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30320 #include <unistd.h>
30321 #include <stdio.h>
30324 main ()
30326 FILE* fp;
30327 fopen64("t", "w");
30328 fseeko64(fp, 0, SEEK_CUR);
30329 ftello64(fp);
30330 lseek64(1, 0, SEEK_CUR);
30332 return 0;
30334 _ACEOF
30335 rm -f conftest.$ac_objext conftest$ac_exeext
30336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30337 (eval $ac_link) 2>conftest.er1
30338 ac_status=$?
30339 grep -v '^ *+' conftest.er1 >conftest.err
30340 rm -f conftest.er1
30341 cat conftest.err >&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } &&
30344 { ac_try='test -z "$ac_cxx_werror_flag"
30345 || test ! -s conftest.err'
30346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347 (eval $ac_try) 2>&5
30348 ac_status=$?
30349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); }; } &&
30351 { ac_try='test -s conftest$ac_exeext'
30352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353 (eval $ac_try) 2>&5
30354 ac_status=$?
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; }; then
30357 glibcxx_cv_LFS=yes
30358 else
30359 echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30362 glibcxx_cv_LFS=no
30364 rm -f conftest.err conftest.$ac_objext \
30365 conftest$ac_exeext conftest.$ac_ext
30369 if test $glibcxx_cv_LFS = yes; then
30370 cat >>confdefs.h <<\_ACEOF
30371 #define _GLIBCXX_USE_LFS 1
30372 _ACEOF
30375 CXXFLAGS="$ac_save_CXXFLAGS"
30376 ac_ext=c
30377 ac_cpp='$CPP $CPPFLAGS'
30378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30385 if test "${ac_cv_header_locale_h+set}" = set; then
30386 echo "$as_me:$LINENO: checking for locale.h" >&5
30387 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30388 if test "${ac_cv_header_locale_h+set}" = set; then
30389 echo $ECHO_N "(cached) $ECHO_C" >&6
30391 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30392 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30393 else
30394 # Is the header compilable?
30395 echo "$as_me:$LINENO: checking locale.h usability" >&5
30396 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30397 cat >conftest.$ac_ext <<_ACEOF
30398 /* confdefs.h. */
30399 _ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h. */
30403 $ac_includes_default
30404 #include <locale.h>
30405 _ACEOF
30406 rm -f conftest.$ac_objext
30407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30408 (eval $ac_compile) 2>conftest.er1
30409 ac_status=$?
30410 grep -v '^ *+' conftest.er1 >conftest.err
30411 rm -f conftest.er1
30412 cat conftest.err >&5
30413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414 (exit $ac_status); } &&
30415 { ac_try='test -z "$ac_c_werror_flag"
30416 || test ! -s conftest.err'
30417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30418 (eval $ac_try) 2>&5
30419 ac_status=$?
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); }; } &&
30422 { ac_try='test -s conftest.$ac_objext'
30423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30424 (eval $ac_try) 2>&5
30425 ac_status=$?
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); }; }; then
30428 ac_header_compiler=yes
30429 else
30430 echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30433 ac_header_compiler=no
30435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30437 echo "${ECHO_T}$ac_header_compiler" >&6
30439 # Is the header present?
30440 echo "$as_me:$LINENO: checking locale.h presence" >&5
30441 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30442 cat >conftest.$ac_ext <<_ACEOF
30443 /* confdefs.h. */
30444 _ACEOF
30445 cat confdefs.h >>conftest.$ac_ext
30446 cat >>conftest.$ac_ext <<_ACEOF
30447 /* end confdefs.h. */
30448 #include <locale.h>
30449 _ACEOF
30450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30452 ac_status=$?
30453 grep -v '^ *+' conftest.er1 >conftest.err
30454 rm -f conftest.er1
30455 cat conftest.err >&5
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); } >/dev/null; then
30458 if test -s conftest.err; then
30459 ac_cpp_err=$ac_c_preproc_warn_flag
30460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30461 else
30462 ac_cpp_err=
30464 else
30465 ac_cpp_err=yes
30467 if test -z "$ac_cpp_err"; then
30468 ac_header_preproc=yes
30469 else
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30473 ac_header_preproc=no
30475 rm -f conftest.err conftest.$ac_ext
30476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30477 echo "${ECHO_T}$ac_header_preproc" >&6
30479 # So? What about this header?
30480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30481 yes:no: )
30482 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30483 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30484 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30485 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30486 ac_header_preproc=yes
30488 no:yes:* )
30489 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30490 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30491 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
30492 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
30493 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30494 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30495 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
30496 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
30497 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30498 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30499 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30500 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30502 cat <<\_ASBOX
30503 ## ----------------------------------------- ##
30504 ## Report this to the package-unused lists. ##
30505 ## ----------------------------------------- ##
30506 _ASBOX
30508 sed "s/^/$as_me: WARNING: /" >&2
30510 esac
30511 echo "$as_me:$LINENO: checking for locale.h" >&5
30512 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30513 if test "${ac_cv_header_locale_h+set}" = set; then
30514 echo $ECHO_N "(cached) $ECHO_C" >&6
30515 else
30516 ac_cv_header_locale_h=$ac_header_preproc
30518 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30519 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30522 if test $ac_cv_header_locale_h = yes; then
30524 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30525 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30526 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30527 echo $ECHO_N "(cached) $ECHO_C" >&6
30528 else
30529 if test x$gcc_no_link = xyes; then
30530 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30532 { (exit 1); exit 1; }; }
30534 cat >conftest.$ac_ext <<_ACEOF
30535 /* confdefs.h. */
30536 _ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h. */
30540 #include <locale.h>
30542 main ()
30544 return LC_MESSAGES
30546 return 0;
30548 _ACEOF
30549 rm -f conftest.$ac_objext conftest$ac_exeext
30550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30551 (eval $ac_link) 2>conftest.er1
30552 ac_status=$?
30553 grep -v '^ *+' conftest.er1 >conftest.err
30554 rm -f conftest.er1
30555 cat conftest.err >&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); } &&
30558 { ac_try='test -z "$ac_c_werror_flag"
30559 || test ! -s conftest.err'
30560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561 (eval $ac_try) 2>&5
30562 ac_status=$?
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); }; } &&
30565 { ac_try='test -s conftest$ac_exeext'
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 ac_cv_val_LC_MESSAGES=yes
30572 else
30573 echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30576 ac_cv_val_LC_MESSAGES=no
30578 rm -f conftest.err conftest.$ac_objext \
30579 conftest$ac_exeext conftest.$ac_ext
30581 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30582 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30583 if test $ac_cv_val_LC_MESSAGES = yes; then
30584 cat >>confdefs.h <<\_ACEOF
30585 #define HAVE_LC_MESSAGES 1
30586 _ACEOF
30595 cat >conftest.$ac_ext <<_ACEOF
30596 /* confdefs.h. */
30597 _ACEOF
30598 cat confdefs.h >>conftest.$ac_ext
30599 cat >>conftest.$ac_ext <<_ACEOF
30600 /* end confdefs.h. */
30601 #include <setjmp.h>
30603 main ()
30605 sigjmp_buf env;
30606 while (! sigsetjmp (env, 1))
30607 siglongjmp (env, 1);
30610 return 0;
30612 _ACEOF
30613 rm -f conftest.$ac_objext
30614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30615 (eval $ac_compile) 2>conftest.er1
30616 ac_status=$?
30617 grep -v '^ *+' conftest.er1 >conftest.err
30618 rm -f conftest.er1
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); } &&
30622 { ac_try='test -z "$ac_c_werror_flag"
30623 || test ! -s conftest.err'
30624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625 (eval $ac_try) 2>&5
30626 ac_status=$?
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; } &&
30629 { ac_try='test -s conftest.$ac_objext'
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30632 ac_status=$?
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; }; then
30636 cat >>confdefs.h <<\_ACEOF
30637 #define HAVE_SIGSETJMP 1
30638 _ACEOF
30640 else
30641 echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30647 if test x$gcc_no_link = xyes; then
30648 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30649 ac_cv_func_mmap_fixed_mapped=no
30652 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30655 for ac_header in stdlib.h unistd.h
30657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30659 echo "$as_me:$LINENO: checking for $ac_header" >&5
30660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30662 echo $ECHO_N "(cached) $ECHO_C" >&6
30664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30666 else
30667 # Is the header compilable?
30668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30670 cat >conftest.$ac_ext <<_ACEOF
30671 /* confdefs.h. */
30672 _ACEOF
30673 cat confdefs.h >>conftest.$ac_ext
30674 cat >>conftest.$ac_ext <<_ACEOF
30675 /* end confdefs.h. */
30676 $ac_includes_default
30677 #include <$ac_header>
30678 _ACEOF
30679 rm -f conftest.$ac_objext
30680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30681 (eval $ac_compile) 2>conftest.er1
30682 ac_status=$?
30683 grep -v '^ *+' conftest.er1 >conftest.err
30684 rm -f conftest.er1
30685 cat conftest.err >&5
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); } &&
30688 { ac_try='test -z "$ac_c_werror_flag"
30689 || test ! -s conftest.err'
30690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30691 (eval $ac_try) 2>&5
30692 ac_status=$?
30693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694 (exit $ac_status); }; } &&
30695 { ac_try='test -s conftest.$ac_objext'
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30698 ac_status=$?
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; }; then
30701 ac_header_compiler=yes
30702 else
30703 echo "$as_me: failed program was:" >&5
30704 sed 's/^/| /' conftest.$ac_ext >&5
30706 ac_header_compiler=no
30708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30710 echo "${ECHO_T}$ac_header_compiler" >&6
30712 # Is the header present?
30713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30715 cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h. */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30721 #include <$ac_header>
30722 _ACEOF
30723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30725 ac_status=$?
30726 grep -v '^ *+' conftest.er1 >conftest.err
30727 rm -f conftest.er1
30728 cat conftest.err >&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); } >/dev/null; then
30731 if test -s conftest.err; then
30732 ac_cpp_err=$ac_c_preproc_warn_flag
30733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30734 else
30735 ac_cpp_err=
30737 else
30738 ac_cpp_err=yes
30740 if test -z "$ac_cpp_err"; then
30741 ac_header_preproc=yes
30742 else
30743 echo "$as_me: failed program was:" >&5
30744 sed 's/^/| /' conftest.$ac_ext >&5
30746 ac_header_preproc=no
30748 rm -f conftest.err conftest.$ac_ext
30749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30750 echo "${ECHO_T}$ac_header_preproc" >&6
30752 # So? What about this header?
30753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30754 yes:no: )
30755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30759 ac_header_preproc=yes
30761 no:yes:* )
30762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30775 cat <<\_ASBOX
30776 ## ----------------------------------------- ##
30777 ## Report this to the package-unused lists. ##
30778 ## ----------------------------------------- ##
30779 _ASBOX
30781 sed "s/^/$as_me: WARNING: /" >&2
30783 esac
30784 echo "$as_me:$LINENO: checking for $ac_header" >&5
30785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30787 echo $ECHO_N "(cached) $ECHO_C" >&6
30788 else
30789 eval "$as_ac_Header=\$ac_header_preproc"
30791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30796 cat >>confdefs.h <<_ACEOF
30797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30798 _ACEOF
30802 done
30805 for ac_func in getpagesize
30807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30808 echo "$as_me:$LINENO: checking for $ac_func" >&5
30809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30810 if eval "test \"\${$as_ac_var+set}\" = set"; then
30811 echo $ECHO_N "(cached) $ECHO_C" >&6
30812 else
30813 if test x$gcc_no_link = xyes; then
30814 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30815 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30816 { (exit 1); exit 1; }; }
30818 cat >conftest.$ac_ext <<_ACEOF
30819 /* confdefs.h. */
30820 _ACEOF
30821 cat confdefs.h >>conftest.$ac_ext
30822 cat >>conftest.$ac_ext <<_ACEOF
30823 /* end confdefs.h. */
30824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30826 #define $ac_func innocuous_$ac_func
30828 /* System header to define __stub macros and hopefully few prototypes,
30829 which can conflict with char $ac_func (); below.
30830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30831 <limits.h> exists even on freestanding compilers. */
30833 #ifdef __STDC__
30834 # include <limits.h>
30835 #else
30836 # include <assert.h>
30837 #endif
30839 #undef $ac_func
30841 /* Override any gcc2 internal prototype to avoid an error. */
30842 #ifdef __cplusplus
30843 extern "C"
30845 #endif
30846 /* We use char because int might match the return type of a gcc2
30847 builtin and then its argument prototype would still apply. */
30848 char $ac_func ();
30849 /* The GNU C library defines this for functions which it implements
30850 to always fail with ENOSYS. Some functions are actually named
30851 something starting with __ and the normal name is an alias. */
30852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30853 choke me
30854 #else
30855 char (*f) () = $ac_func;
30856 #endif
30857 #ifdef __cplusplus
30859 #endif
30862 main ()
30864 return f != $ac_func;
30866 return 0;
30868 _ACEOF
30869 rm -f conftest.$ac_objext conftest$ac_exeext
30870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30871 (eval $ac_link) 2>conftest.er1
30872 ac_status=$?
30873 grep -v '^ *+' conftest.er1 >conftest.err
30874 rm -f conftest.er1
30875 cat conftest.err >&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); } &&
30878 { ac_try='test -z "$ac_c_werror_flag"
30879 || test ! -s conftest.err'
30880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881 (eval $ac_try) 2>&5
30882 ac_status=$?
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); }; } &&
30885 { ac_try='test -s conftest$ac_exeext'
30886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887 (eval $ac_try) 2>&5
30888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; }; then
30891 eval "$as_ac_var=yes"
30892 else
30893 echo "$as_me: failed program was:" >&5
30894 sed 's/^/| /' conftest.$ac_ext >&5
30896 eval "$as_ac_var=no"
30898 rm -f conftest.err conftest.$ac_objext \
30899 conftest$ac_exeext conftest.$ac_ext
30901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30903 if test `eval echo '${'$as_ac_var'}'` = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30906 _ACEOF
30909 done
30911 echo "$as_me:$LINENO: checking for working mmap" >&5
30912 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30913 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30914 echo $ECHO_N "(cached) $ECHO_C" >&6
30915 else
30916 if test "$cross_compiling" = yes; then
30917 ac_cv_func_mmap_fixed_mapped=no
30918 else
30919 cat >conftest.$ac_ext <<_ACEOF
30920 /* confdefs.h. */
30921 _ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h. */
30925 $ac_includes_default
30926 /* malloc might have been renamed as rpl_malloc. */
30927 #undef malloc
30929 /* Thanks to Mike Haertel and Jim Avera for this test.
30930 Here is a matrix of mmap possibilities:
30931 mmap private not fixed
30932 mmap private fixed at somewhere currently unmapped
30933 mmap private fixed at somewhere already mapped
30934 mmap shared not fixed
30935 mmap shared fixed at somewhere currently unmapped
30936 mmap shared fixed at somewhere already mapped
30937 For private mappings, we should verify that changes cannot be read()
30938 back from the file, nor mmap's back from the file at a different
30939 address. (There have been systems where private was not correctly
30940 implemented like the infamous i386 svr4.0, and systems where the
30941 VM page cache was not coherent with the file system buffer cache
30942 like early versions of FreeBSD and possibly contemporary NetBSD.)
30943 For shared mappings, we should conversely verify that changes get
30944 propagated back to all the places they're supposed to be.
30946 Grep wants private fixed already mapped.
30947 The main things grep needs to know about mmap are:
30948 * does it exist and is it safe to write into the mmap'd area
30949 * how to use it (BSD variants) */
30951 #include <fcntl.h>
30952 #include <sys/mman.h>
30954 #if !STDC_HEADERS && !HAVE_STDLIB_H
30955 char *malloc ();
30956 #endif
30958 /* This mess was copied from the GNU getpagesize.h. */
30959 #if !HAVE_GETPAGESIZE
30960 /* Assume that all systems that can run configure have sys/param.h. */
30961 # if !HAVE_SYS_PARAM_H
30962 # define HAVE_SYS_PARAM_H 1
30963 # endif
30965 # ifdef _SC_PAGESIZE
30966 # define getpagesize() sysconf(_SC_PAGESIZE)
30967 # else /* no _SC_PAGESIZE */
30968 # if HAVE_SYS_PARAM_H
30969 # include <sys/param.h>
30970 # ifdef EXEC_PAGESIZE
30971 # define getpagesize() EXEC_PAGESIZE
30972 # else /* no EXEC_PAGESIZE */
30973 # ifdef NBPG
30974 # define getpagesize() NBPG * CLSIZE
30975 # ifndef CLSIZE
30976 # define CLSIZE 1
30977 # endif /* no CLSIZE */
30978 # else /* no NBPG */
30979 # ifdef NBPC
30980 # define getpagesize() NBPC
30981 # else /* no NBPC */
30982 # ifdef PAGESIZE
30983 # define getpagesize() PAGESIZE
30984 # endif /* PAGESIZE */
30985 # endif /* no NBPC */
30986 # endif /* no NBPG */
30987 # endif /* no EXEC_PAGESIZE */
30988 # else /* no HAVE_SYS_PARAM_H */
30989 # define getpagesize() 8192 /* punt totally */
30990 # endif /* no HAVE_SYS_PARAM_H */
30991 # endif /* no _SC_PAGESIZE */
30993 #endif /* no HAVE_GETPAGESIZE */
30996 main ()
30998 char *data, *data2, *data3;
30999 int i, pagesize;
31000 int fd;
31002 pagesize = getpagesize ();
31004 /* First, make a file with some known garbage in it. */
31005 data = (char *) malloc (pagesize);
31006 if (!data)
31007 exit (1);
31008 for (i = 0; i < pagesize; ++i)
31009 *(data + i) = rand ();
31010 umask (0);
31011 fd = creat ("conftest.mmap", 0600);
31012 if (fd < 0)
31013 exit (1);
31014 if (write (fd, data, pagesize) != pagesize)
31015 exit (1);
31016 close (fd);
31018 /* Next, try to mmap the file at a fixed address which already has
31019 something else allocated at it. If we can, also make sure that
31020 we see the same garbage. */
31021 fd = open ("conftest.mmap", O_RDWR);
31022 if (fd < 0)
31023 exit (1);
31024 data2 = (char *) malloc (2 * pagesize);
31025 if (!data2)
31026 exit (1);
31027 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
31028 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31029 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31030 exit (1);
31031 for (i = 0; i < pagesize; ++i)
31032 if (*(data + i) != *(data2 + i))
31033 exit (1);
31035 /* Finally, make sure that changes to the mapped area do not
31036 percolate back to the file as seen by read(). (This is a bug on
31037 some variants of i386 svr4.0.) */
31038 for (i = 0; i < pagesize; ++i)
31039 *(data2 + i) = *(data2 + i) + 1;
31040 data3 = (char *) malloc (pagesize);
31041 if (!data3)
31042 exit (1);
31043 if (read (fd, data3, pagesize) != pagesize)
31044 exit (1);
31045 for (i = 0; i < pagesize; ++i)
31046 if (*(data + i) != *(data3 + i))
31047 exit (1);
31048 close (fd);
31049 exit (0);
31051 _ACEOF
31052 rm -f conftest$ac_exeext
31053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31054 (eval $ac_link) 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059 (eval $ac_try) 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31063 ac_cv_func_mmap_fixed_mapped=yes
31064 else
31065 echo "$as_me: program exited with status $ac_status" >&5
31066 echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31069 ( exit $ac_status )
31070 ac_cv_func_mmap_fixed_mapped=no
31072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31075 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31076 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31077 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31079 cat >>confdefs.h <<\_ACEOF
31080 #define HAVE_MMAP 1
31081 _ACEOF
31084 rm -f conftest.mmap
31088 else
31090 # This lets us hard-code the functionality we know we'll have in the cross
31091 # target environment. "Let" is a sugar-coated word placed on an especially
31092 # dull and tedious hack, actually.
31094 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
31095 # that involve linking, can't be used:
31096 # "cannot open sim-crt0.o"
31097 # "cannot open crt0.o"
31098 # etc. All this is because there currently exists no unified, consistent
31099 # way for top level CC information to be passed down to target directories:
31100 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
31101 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
31102 # crosses can be removed.
31104 # If Canadian cross, then don't pick up tools from the build directory.
31105 # Used only in GLIBCXX_EXPORT_INCLUDES.
31106 if test -n "$with_cross_host" &&
31107 test x"$build_alias" != x"$with_cross_host" &&
31108 test x"$build" != x"$target";
31109 then
31110 CANADIAN=yes
31111 else
31112 CANADIAN=no
31115 # Construct crosses by hand, eliminating bits that need ld...
31116 # GLIBCXX_CHECK_COMPILER_FEATURES
31117 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
31118 # GLIBCXX_CHECK_MATH_SUPPORT
31120 # First, test for "known" system libraries. We may be using newlib even
31121 # on a hosted environment.
31122 if test "x${with_newlib}" = "xyes"; then
31123 os_include_dir="os/newlib"
31124 cat >>confdefs.h <<\_ACEOF
31125 #define HAVE_HYPOT 1
31126 _ACEOF
31129 # GLIBCXX_CHECK_STDLIB_SUPPORT
31130 cat >>confdefs.h <<\_ACEOF
31131 #define HAVE_STRTOF 1
31132 _ACEOF
31134 cat >>confdefs.h <<\_ACEOF
31135 #define HAVE_STRTOLD 1
31136 _ACEOF
31138 # AC_FUNC_MMAP
31139 cat >>confdefs.h <<\_ACEOF
31140 #define HAVE_MMAP 1
31141 _ACEOF
31144 cat >>confdefs.h <<\_ACEOF
31145 #define HAVE_ACOSF 1
31146 _ACEOF
31148 cat >>confdefs.h <<\_ACEOF
31149 #define HAVE_ASINF 1
31150 _ACEOF
31152 cat >>confdefs.h <<\_ACEOF
31153 #define HAVE_ATAN2F 1
31154 _ACEOF
31156 cat >>confdefs.h <<\_ACEOF
31157 #define HAVE_ATANF 1
31158 _ACEOF
31160 cat >>confdefs.h <<\_ACEOF
31161 #define HAVE_CEILF 1
31162 _ACEOF
31164 cat >>confdefs.h <<\_ACEOF
31165 #define HAVE_COPYSIGN 1
31166 _ACEOF
31168 cat >>confdefs.h <<\_ACEOF
31169 #define HAVE_COPYSIGNF 1
31170 _ACEOF
31172 cat >>confdefs.h <<\_ACEOF
31173 #define HAVE_COSF 1
31174 _ACEOF
31176 cat >>confdefs.h <<\_ACEOF
31177 #define HAVE_COSHF 1
31178 _ACEOF
31180 cat >>confdefs.h <<\_ACEOF
31181 #define HAVE_EXPF 1
31182 _ACEOF
31184 cat >>confdefs.h <<\_ACEOF
31185 #define HAVE_FABSF 1
31186 _ACEOF
31188 cat >>confdefs.h <<\_ACEOF
31189 #define HAVE_FLOORF 1
31190 _ACEOF
31192 cat >>confdefs.h <<\_ACEOF
31193 #define HAVE_FMODF 1
31194 _ACEOF
31196 cat >>confdefs.h <<\_ACEOF
31197 #define HAVE_FREXPF 1
31198 _ACEOF
31200 cat >>confdefs.h <<\_ACEOF
31201 #define HAVE_LDEXPF 1
31202 _ACEOF
31204 cat >>confdefs.h <<\_ACEOF
31205 #define HAVE_LOG10F 1
31206 _ACEOF
31208 cat >>confdefs.h <<\_ACEOF
31209 #define HAVE_LOGF 1
31210 _ACEOF
31212 cat >>confdefs.h <<\_ACEOF
31213 #define HAVE_MODFF 1
31214 _ACEOF
31216 cat >>confdefs.h <<\_ACEOF
31217 #define HAVE_POWF 1
31218 _ACEOF
31220 cat >>confdefs.h <<\_ACEOF
31221 #define HAVE_SINF 1
31222 _ACEOF
31224 cat >>confdefs.h <<\_ACEOF
31225 #define HAVE_SINHF 1
31226 _ACEOF
31228 cat >>confdefs.h <<\_ACEOF
31229 #define HAVE_SQRTF 1
31230 _ACEOF
31232 cat >>confdefs.h <<\_ACEOF
31233 #define HAVE_TANF 1
31234 _ACEOF
31236 cat >>confdefs.h <<\_ACEOF
31237 #define HAVE_TANHF 1
31238 _ACEOF
31241 cat >>confdefs.h <<\_ACEOF
31242 #define HAVE_S_ISREG 1
31243 _ACEOF
31245 cat >>confdefs.h <<\_ACEOF
31246 #define HAVE_S_IFREG 1
31247 _ACEOF
31249 else
31251 # Base decisions on target environment.
31252 case "${host}" in
31253 *-darwin*)
31254 # Darwin versions vary, but the linker should work in a cross environment,
31255 # so we just check for all the features here.
31256 # Check for available headers.
31270 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
31271 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
31272 sys/types.h
31274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31276 echo "$as_me:$LINENO: checking for $ac_header" >&5
31277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31279 echo $ECHO_N "(cached) $ECHO_C" >&6
31281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31283 else
31284 # Is the header compilable?
31285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31287 cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h. */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h. */
31293 $ac_includes_default
31294 #include <$ac_header>
31295 _ACEOF
31296 rm -f conftest.$ac_objext
31297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31298 (eval $ac_compile) 2>conftest.er1
31299 ac_status=$?
31300 grep -v '^ *+' conftest.er1 >conftest.err
31301 rm -f conftest.er1
31302 cat conftest.err >&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); } &&
31305 { ac_try='test -z "$ac_c_werror_flag"
31306 || test ! -s conftest.err'
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest.$ac_objext'
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 ac_header_compiler=yes
31319 else
31320 echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31323 ac_header_compiler=no
31325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31327 echo "${ECHO_T}$ac_header_compiler" >&6
31329 # Is the header present?
31330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31332 cat >conftest.$ac_ext <<_ACEOF
31333 /* confdefs.h. */
31334 _ACEOF
31335 cat confdefs.h >>conftest.$ac_ext
31336 cat >>conftest.$ac_ext <<_ACEOF
31337 /* end confdefs.h. */
31338 #include <$ac_header>
31339 _ACEOF
31340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31342 ac_status=$?
31343 grep -v '^ *+' conftest.er1 >conftest.err
31344 rm -f conftest.er1
31345 cat conftest.err >&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } >/dev/null; then
31348 if test -s conftest.err; then
31349 ac_cpp_err=$ac_c_preproc_warn_flag
31350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31351 else
31352 ac_cpp_err=
31354 else
31355 ac_cpp_err=yes
31357 if test -z "$ac_cpp_err"; then
31358 ac_header_preproc=yes
31359 else
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31363 ac_header_preproc=no
31365 rm -f conftest.err conftest.$ac_ext
31366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31367 echo "${ECHO_T}$ac_header_preproc" >&6
31369 # So? What about this header?
31370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31371 yes:no: )
31372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31376 ac_header_preproc=yes
31378 no:yes:* )
31379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31392 cat <<\_ASBOX
31393 ## ----------------------------------------- ##
31394 ## Report this to the package-unused lists. ##
31395 ## ----------------------------------------- ##
31396 _ASBOX
31398 sed "s/^/$as_me: WARNING: /" >&2
31400 esac
31401 echo "$as_me:$LINENO: checking for $ac_header" >&5
31402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31404 echo $ECHO_N "(cached) $ECHO_C" >&6
31405 else
31406 eval "$as_ac_Header=\$ac_header_preproc"
31408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31413 cat >>confdefs.h <<_ACEOF
31414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31415 _ACEOF
31419 done
31423 # All these tests are for C++; save the language and the compiler flags.
31424 # The CXXFLAGS thing is suspicious, but based on similar bits previously
31425 # found in GLIBCXX_CONFIGURE.
31428 ac_ext=cc
31429 ac_cpp='$CXXCPP $CPPFLAGS'
31430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31434 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31435 ac_save_CXXFLAGS="$CXXFLAGS"
31437 # Check for maintainer-mode bits.
31438 if test x"$USE_MAINTAINER_MODE" = xno; then
31439 WERROR=''
31440 else
31441 WERROR='-Werror'
31444 # Check for -ffunction-sections -fdata-sections
31445 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31446 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31447 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31448 cat >conftest.$ac_ext <<_ACEOF
31449 /* confdefs.h. */
31450 _ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h. */
31456 main ()
31458 int foo;
31460 return 0;
31462 _ACEOF
31463 rm -f conftest.$ac_objext
31464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31465 (eval $ac_compile) 2>conftest.er1
31466 ac_status=$?
31467 grep -v '^ *+' conftest.er1 >conftest.err
31468 rm -f conftest.er1
31469 cat conftest.err >&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); } &&
31472 { ac_try='test -z "$ac_cxx_werror_flag"
31473 || test ! -s conftest.err'
31474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31475 (eval $ac_try) 2>&5
31476 ac_status=$?
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); }; } &&
31479 { ac_try='test -s conftest.$ac_objext'
31480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31481 (eval $ac_try) 2>&5
31482 ac_status=$?
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; }; then
31485 ac_fdsections=yes
31486 else
31487 echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.$ac_ext >&5
31490 ac_fdsections=no
31492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31493 if test "$ac_test_CXXFLAGS" = set; then
31494 CXXFLAGS="$ac_save_CXXFLAGS"
31495 else
31496 # this is the suspicious part
31497 CXXFLAGS=''
31499 if test x"$ac_fdsections" = x"yes"; then
31500 SECTION_FLAGS='-ffunction-sections -fdata-sections'
31502 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31503 echo "${ECHO_T}$ac_fdsections" >&6
31505 ac_ext=c
31506 ac_cpp='$CPP $CPPFLAGS'
31507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31514 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31516 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31517 ac_save_CXXFLAGS="$CXXFLAGS"
31518 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31520 echo "$as_me:$LINENO: checking for sin in -lm" >&5
31521 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31522 if test "${ac_cv_lib_m_sin+set}" = set; then
31523 echo $ECHO_N "(cached) $ECHO_C" >&6
31524 else
31525 ac_check_lib_save_LIBS=$LIBS
31526 LIBS="-lm $LIBS"
31527 if test x$gcc_no_link = xyes; then
31528 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31530 { (exit 1); exit 1; }; }
31532 cat >conftest.$ac_ext <<_ACEOF
31533 /* confdefs.h. */
31534 _ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h. */
31539 /* Override any gcc2 internal prototype to avoid an error. */
31540 #ifdef __cplusplus
31541 extern "C"
31542 #endif
31543 /* We use char because int might match the return type of a gcc2
31544 builtin and then its argument prototype would still apply. */
31545 char sin ();
31547 main ()
31549 sin ();
31551 return 0;
31553 _ACEOF
31554 rm -f conftest.$ac_objext conftest$ac_exeext
31555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31556 (eval $ac_link) 2>conftest.er1
31557 ac_status=$?
31558 grep -v '^ *+' conftest.er1 >conftest.err
31559 rm -f conftest.er1
31560 cat conftest.err >&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); } &&
31563 { ac_try='test -z "$ac_c_werror_flag"
31564 || test ! -s conftest.err'
31565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566 (eval $ac_try) 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; } &&
31570 { ac_try='test -s conftest$ac_exeext'
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 ac_cv_lib_m_sin=yes
31577 else
31578 echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31581 ac_cv_lib_m_sin=no
31583 rm -f conftest.err conftest.$ac_objext \
31584 conftest$ac_exeext conftest.$ac_ext
31585 LIBS=$ac_check_lib_save_LIBS
31587 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31588 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31589 if test $ac_cv_lib_m_sin = yes; then
31590 libm="-lm"
31593 ac_save_LIBS="$LIBS"
31594 LIBS="$LIBS $libm"
31598 echo "$as_me:$LINENO: checking for isinf declaration" >&5
31599 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31600 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31601 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31603 else
31607 ac_ext=cc
31608 ac_cpp='$CXXCPP $CPPFLAGS'
31609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31613 cat >conftest.$ac_ext <<_ACEOF
31614 /* confdefs.h. */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h. */
31619 #include <math.h>
31620 #ifdef HAVE_IEEEFP_H
31621 #include <ieeefp.h>
31622 #endif
31625 main ()
31627 isinf(0);
31629 return 0;
31631 _ACEOF
31632 rm -f conftest.$ac_objext
31633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31634 (eval $ac_compile) 2>conftest.er1
31635 ac_status=$?
31636 grep -v '^ *+' conftest.er1 >conftest.err
31637 rm -f conftest.er1
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
31641 { ac_try='test -z "$ac_cxx_werror_flag"
31642 || test ! -s conftest.err'
31643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31644 (eval $ac_try) 2>&5
31645 ac_status=$?
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); }; } &&
31648 { ac_try='test -s conftest.$ac_objext'
31649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650 (eval $ac_try) 2>&5
31651 ac_status=$?
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; }; then
31654 glibcxx_cv_func_isinf_use=yes
31655 else
31656 echo "$as_me: failed program was:" >&5
31657 sed 's/^/| /' conftest.$ac_ext >&5
31659 glibcxx_cv_func_isinf_use=no
31661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31662 ac_ext=c
31663 ac_cpp='$CPP $CPPFLAGS'
31664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31672 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31673 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31675 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31677 for ac_func in isinf
31679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31680 echo "$as_me:$LINENO: checking for $ac_func" >&5
31681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31682 if eval "test \"\${$as_ac_var+set}\" = set"; then
31683 echo $ECHO_N "(cached) $ECHO_C" >&6
31684 else
31685 if test x$gcc_no_link = xyes; then
31686 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31688 { (exit 1); exit 1; }; }
31690 cat >conftest.$ac_ext <<_ACEOF
31691 /* confdefs.h. */
31692 _ACEOF
31693 cat confdefs.h >>conftest.$ac_ext
31694 cat >>conftest.$ac_ext <<_ACEOF
31695 /* end confdefs.h. */
31696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31698 #define $ac_func innocuous_$ac_func
31700 /* System header to define __stub macros and hopefully few prototypes,
31701 which can conflict with char $ac_func (); below.
31702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31703 <limits.h> exists even on freestanding compilers. */
31705 #ifdef __STDC__
31706 # include <limits.h>
31707 #else
31708 # include <assert.h>
31709 #endif
31711 #undef $ac_func
31713 /* Override any gcc2 internal prototype to avoid an error. */
31714 #ifdef __cplusplus
31715 extern "C"
31717 #endif
31718 /* We use char because int might match the return type of a gcc2
31719 builtin and then its argument prototype would still apply. */
31720 char $ac_func ();
31721 /* The GNU C library defines this for functions which it implements
31722 to always fail with ENOSYS. Some functions are actually named
31723 something starting with __ and the normal name is an alias. */
31724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31725 choke me
31726 #else
31727 char (*f) () = $ac_func;
31728 #endif
31729 #ifdef __cplusplus
31731 #endif
31734 main ()
31736 return f != $ac_func;
31738 return 0;
31740 _ACEOF
31741 rm -f conftest.$ac_objext conftest$ac_exeext
31742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31743 (eval $ac_link) 2>conftest.er1
31744 ac_status=$?
31745 grep -v '^ *+' conftest.er1 >conftest.err
31746 rm -f conftest.er1
31747 cat conftest.err >&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); } &&
31750 { ac_try='test -z "$ac_c_werror_flag"
31751 || test ! -s conftest.err'
31752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753 (eval $ac_try) 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; } &&
31757 { ac_try='test -s conftest$ac_exeext'
31758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759 (eval $ac_try) 2>&5
31760 ac_status=$?
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); }; }; then
31763 eval "$as_ac_var=yes"
31764 else
31765 echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31768 eval "$as_ac_var=no"
31770 rm -f conftest.err conftest.$ac_objext \
31771 conftest$ac_exeext conftest.$ac_ext
31773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31775 if test `eval echo '${'$as_ac_var'}'` = yes; then
31776 cat >>confdefs.h <<_ACEOF
31777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31778 _ACEOF
31781 done
31783 else
31785 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31786 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31787 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31788 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31789 echo $ECHO_N "(cached) $ECHO_C" >&6
31790 else
31794 ac_ext=cc
31795 ac_cpp='$CXXCPP $CPPFLAGS'
31796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31800 cat >conftest.$ac_ext <<_ACEOF
31801 /* confdefs.h. */
31802 _ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h. */
31806 #include <math.h>
31807 #ifdef HAVE_IEEEFP_H
31808 #include <ieeefp.h>
31809 #endif
31812 main ()
31814 _isinf(0);
31816 return 0;
31818 _ACEOF
31819 rm -f conftest.$ac_objext
31820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31821 (eval $ac_compile) 2>conftest.er1
31822 ac_status=$?
31823 grep -v '^ *+' conftest.er1 >conftest.err
31824 rm -f conftest.er1
31825 cat conftest.err >&5
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); } &&
31828 { ac_try='test -z "$ac_cxx_werror_flag"
31829 || test ! -s conftest.err'
31830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31831 (eval $ac_try) 2>&5
31832 ac_status=$?
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); }; } &&
31835 { ac_try='test -s conftest.$ac_objext'
31836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31837 (eval $ac_try) 2>&5
31838 ac_status=$?
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; }; then
31841 glibcxx_cv_func__isinf_use=yes
31842 else
31843 echo "$as_me: failed program was:" >&5
31844 sed 's/^/| /' conftest.$ac_ext >&5
31846 glibcxx_cv_func__isinf_use=no
31848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31849 ac_ext=c
31850 ac_cpp='$CPP $CPPFLAGS'
31851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31859 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
31860 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
31862 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
31864 for ac_func in _isinf
31866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31867 echo "$as_me:$LINENO: checking for $ac_func" >&5
31868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31869 if eval "test \"\${$as_ac_var+set}\" = set"; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31871 else
31872 if test x$gcc_no_link = xyes; then
31873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31875 { (exit 1); exit 1; }; }
31877 cat >conftest.$ac_ext <<_ACEOF
31878 /* confdefs.h. */
31879 _ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h. */
31883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31885 #define $ac_func innocuous_$ac_func
31887 /* System header to define __stub macros and hopefully few prototypes,
31888 which can conflict with char $ac_func (); below.
31889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31890 <limits.h> exists even on freestanding compilers. */
31892 #ifdef __STDC__
31893 # include <limits.h>
31894 #else
31895 # include <assert.h>
31896 #endif
31898 #undef $ac_func
31900 /* Override any gcc2 internal prototype to avoid an error. */
31901 #ifdef __cplusplus
31902 extern "C"
31904 #endif
31905 /* We use char because int might match the return type of a gcc2
31906 builtin and then its argument prototype would still apply. */
31907 char $ac_func ();
31908 /* The GNU C library defines this for functions which it implements
31909 to always fail with ENOSYS. Some functions are actually named
31910 something starting with __ and the normal name is an alias. */
31911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31912 choke me
31913 #else
31914 char (*f) () = $ac_func;
31915 #endif
31916 #ifdef __cplusplus
31918 #endif
31921 main ()
31923 return f != $ac_func;
31925 return 0;
31927 _ACEOF
31928 rm -f conftest.$ac_objext conftest$ac_exeext
31929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31930 (eval $ac_link) 2>conftest.er1
31931 ac_status=$?
31932 grep -v '^ *+' conftest.er1 >conftest.err
31933 rm -f conftest.er1
31934 cat conftest.err >&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); } &&
31937 { ac_try='test -z "$ac_c_werror_flag"
31938 || test ! -s conftest.err'
31939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; } &&
31944 { ac_try='test -s conftest$ac_exeext'
31945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31946 (eval $ac_try) 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; }; then
31950 eval "$as_ac_var=yes"
31951 else
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 eval "$as_ac_var=no"
31957 rm -f conftest.err conftest.$ac_objext \
31958 conftest$ac_exeext conftest.$ac_ext
31960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31962 if test `eval echo '${'$as_ac_var'}'` = yes; then
31963 cat >>confdefs.h <<_ACEOF
31964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31965 _ACEOF
31968 done
31975 echo "$as_me:$LINENO: checking for isnan declaration" >&5
31976 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
31977 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
31978 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31980 else
31984 ac_ext=cc
31985 ac_cpp='$CXXCPP $CPPFLAGS'
31986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31990 cat >conftest.$ac_ext <<_ACEOF
31991 /* confdefs.h. */
31992 _ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h. */
31996 #include <math.h>
31997 #ifdef HAVE_IEEEFP_H
31998 #include <ieeefp.h>
31999 #endif
32002 main ()
32004 isnan(0);
32006 return 0;
32008 _ACEOF
32009 rm -f conftest.$ac_objext
32010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32011 (eval $ac_compile) 2>conftest.er1
32012 ac_status=$?
32013 grep -v '^ *+' conftest.er1 >conftest.err
32014 rm -f conftest.er1
32015 cat conftest.err >&5
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017 (exit $ac_status); } &&
32018 { ac_try='test -z "$ac_cxx_werror_flag"
32019 || test ! -s conftest.err'
32020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32021 (eval $ac_try) 2>&5
32022 ac_status=$?
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; } &&
32025 { ac_try='test -s conftest.$ac_objext'
32026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32027 (eval $ac_try) 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
32031 glibcxx_cv_func_isnan_use=yes
32032 else
32033 echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 glibcxx_cv_func_isnan_use=no
32038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32039 ac_ext=c
32040 ac_cpp='$CPP $CPPFLAGS'
32041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32049 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
32050 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
32052 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32054 for ac_func in isnan
32056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32057 echo "$as_me:$LINENO: checking for $ac_func" >&5
32058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32059 if eval "test \"\${$as_ac_var+set}\" = set"; then
32060 echo $ECHO_N "(cached) $ECHO_C" >&6
32061 else
32062 if test x$gcc_no_link = xyes; then
32063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32065 { (exit 1); exit 1; }; }
32067 cat >conftest.$ac_ext <<_ACEOF
32068 /* confdefs.h. */
32069 _ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h. */
32073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32075 #define $ac_func innocuous_$ac_func
32077 /* System header to define __stub macros and hopefully few prototypes,
32078 which can conflict with char $ac_func (); below.
32079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32080 <limits.h> exists even on freestanding compilers. */
32082 #ifdef __STDC__
32083 # include <limits.h>
32084 #else
32085 # include <assert.h>
32086 #endif
32088 #undef $ac_func
32090 /* Override any gcc2 internal prototype to avoid an error. */
32091 #ifdef __cplusplus
32092 extern "C"
32094 #endif
32095 /* We use char because int might match the return type of a gcc2
32096 builtin and then its argument prototype would still apply. */
32097 char $ac_func ();
32098 /* The GNU C library defines this for functions which it implements
32099 to always fail with ENOSYS. Some functions are actually named
32100 something starting with __ and the normal name is an alias. */
32101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32102 choke me
32103 #else
32104 char (*f) () = $ac_func;
32105 #endif
32106 #ifdef __cplusplus
32108 #endif
32111 main ()
32113 return f != $ac_func;
32115 return 0;
32117 _ACEOF
32118 rm -f conftest.$ac_objext conftest$ac_exeext
32119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32120 (eval $ac_link) 2>conftest.er1
32121 ac_status=$?
32122 grep -v '^ *+' conftest.er1 >conftest.err
32123 rm -f conftest.er1
32124 cat conftest.err >&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); } &&
32127 { ac_try='test -z "$ac_c_werror_flag"
32128 || test ! -s conftest.err'
32129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130 (eval $ac_try) 2>&5
32131 ac_status=$?
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); }; } &&
32134 { ac_try='test -s conftest$ac_exeext'
32135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136 (eval $ac_try) 2>&5
32137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 eval "$as_ac_var=yes"
32141 else
32142 echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32145 eval "$as_ac_var=no"
32147 rm -f conftest.err conftest.$ac_objext \
32148 conftest$ac_exeext conftest.$ac_ext
32150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32152 if test `eval echo '${'$as_ac_var'}'` = yes; then
32153 cat >>confdefs.h <<_ACEOF
32154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32155 _ACEOF
32158 done
32160 else
32162 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
32163 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
32164 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
32165 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32171 ac_ext=cc
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 >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h. */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h. */
32183 #include <math.h>
32184 #ifdef HAVE_IEEEFP_H
32185 #include <ieeefp.h>
32186 #endif
32189 main ()
32191 _isnan(0);
32193 return 0;
32195 _ACEOF
32196 rm -f conftest.$ac_objext
32197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32198 (eval $ac_compile) 2>conftest.er1
32199 ac_status=$?
32200 grep -v '^ *+' conftest.er1 >conftest.err
32201 rm -f conftest.er1
32202 cat conftest.err >&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } &&
32205 { ac_try='test -z "$ac_cxx_werror_flag"
32206 || test ! -s conftest.err'
32207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208 (eval $ac_try) 2>&5
32209 ac_status=$?
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest.$ac_objext'
32213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214 (eval $ac_try) 2>&5
32215 ac_status=$?
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); }; }; then
32218 glibcxx_cv_func__isnan_use=yes
32219 else
32220 echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32223 glibcxx_cv_func__isnan_use=no
32225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32226 ac_ext=c
32227 ac_cpp='$CPP $CPPFLAGS'
32228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32236 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
32237 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
32239 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
32241 for ac_func in _isnan
32243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32244 echo "$as_me:$LINENO: checking for $ac_func" >&5
32245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32246 if eval "test \"\${$as_ac_var+set}\" = set"; then
32247 echo $ECHO_N "(cached) $ECHO_C" >&6
32248 else
32249 if test x$gcc_no_link = xyes; then
32250 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32251 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32252 { (exit 1); exit 1; }; }
32254 cat >conftest.$ac_ext <<_ACEOF
32255 /* confdefs.h. */
32256 _ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h. */
32260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32262 #define $ac_func innocuous_$ac_func
32264 /* System header to define __stub macros and hopefully few prototypes,
32265 which can conflict with char $ac_func (); below.
32266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32267 <limits.h> exists even on freestanding compilers. */
32269 #ifdef __STDC__
32270 # include <limits.h>
32271 #else
32272 # include <assert.h>
32273 #endif
32275 #undef $ac_func
32277 /* Override any gcc2 internal prototype to avoid an error. */
32278 #ifdef __cplusplus
32279 extern "C"
32281 #endif
32282 /* We use char because int might match the return type of a gcc2
32283 builtin and then its argument prototype would still apply. */
32284 char $ac_func ();
32285 /* The GNU C library defines this for functions which it implements
32286 to always fail with ENOSYS. Some functions are actually named
32287 something starting with __ and the normal name is an alias. */
32288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32289 choke me
32290 #else
32291 char (*f) () = $ac_func;
32292 #endif
32293 #ifdef __cplusplus
32295 #endif
32298 main ()
32300 return f != $ac_func;
32302 return 0;
32304 _ACEOF
32305 rm -f conftest.$ac_objext conftest$ac_exeext
32306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32307 (eval $ac_link) 2>conftest.er1
32308 ac_status=$?
32309 grep -v '^ *+' conftest.er1 >conftest.err
32310 rm -f conftest.er1
32311 cat conftest.err >&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); } &&
32314 { ac_try='test -z "$ac_c_werror_flag"
32315 || test ! -s conftest.err'
32316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32317 (eval $ac_try) 2>&5
32318 ac_status=$?
32319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320 (exit $ac_status); }; } &&
32321 { ac_try='test -s conftest$ac_exeext'
32322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32323 (eval $ac_try) 2>&5
32324 ac_status=$?
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; }; then
32327 eval "$as_ac_var=yes"
32328 else
32329 echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32332 eval "$as_ac_var=no"
32334 rm -f conftest.err conftest.$ac_objext \
32335 conftest$ac_exeext conftest.$ac_ext
32337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32339 if test `eval echo '${'$as_ac_var'}'` = yes; then
32340 cat >>confdefs.h <<_ACEOF
32341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32342 _ACEOF
32345 done
32352 echo "$as_me:$LINENO: checking for finite declaration" >&5
32353 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
32354 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32355 if test "${glibcxx_cv_func_finite_use+set}" = set; then
32356 echo $ECHO_N "(cached) $ECHO_C" >&6
32357 else
32361 ac_ext=cc
32362 ac_cpp='$CXXCPP $CPPFLAGS'
32363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32367 cat >conftest.$ac_ext <<_ACEOF
32368 /* confdefs.h. */
32369 _ACEOF
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h. */
32373 #include <math.h>
32374 #ifdef HAVE_IEEEFP_H
32375 #include <ieeefp.h>
32376 #endif
32379 main ()
32381 finite(0);
32383 return 0;
32385 _ACEOF
32386 rm -f conftest.$ac_objext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32388 (eval $ac_compile) 2>conftest.er1
32389 ac_status=$?
32390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } &&
32395 { ac_try='test -z "$ac_cxx_werror_flag"
32396 || test ! -s conftest.err'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408 glibcxx_cv_func_finite_use=yes
32409 else
32410 echo "$as_me: failed program was:" >&5
32411 sed 's/^/| /' conftest.$ac_ext >&5
32413 glibcxx_cv_func_finite_use=no
32415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32416 ac_ext=c
32417 ac_cpp='$CPP $CPPFLAGS'
32418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32426 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32427 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32429 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32431 for ac_func in finite
32433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32434 echo "$as_me:$LINENO: checking for $ac_func" >&5
32435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32436 if eval "test \"\${$as_ac_var+set}\" = set"; then
32437 echo $ECHO_N "(cached) $ECHO_C" >&6
32438 else
32439 if test x$gcc_no_link = xyes; then
32440 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32442 { (exit 1); exit 1; }; }
32444 cat >conftest.$ac_ext <<_ACEOF
32445 /* confdefs.h. */
32446 _ACEOF
32447 cat confdefs.h >>conftest.$ac_ext
32448 cat >>conftest.$ac_ext <<_ACEOF
32449 /* end confdefs.h. */
32450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32452 #define $ac_func innocuous_$ac_func
32454 /* System header to define __stub macros and hopefully few prototypes,
32455 which can conflict with char $ac_func (); below.
32456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32457 <limits.h> exists even on freestanding compilers. */
32459 #ifdef __STDC__
32460 # include <limits.h>
32461 #else
32462 # include <assert.h>
32463 #endif
32465 #undef $ac_func
32467 /* Override any gcc2 internal prototype to avoid an error. */
32468 #ifdef __cplusplus
32469 extern "C"
32471 #endif
32472 /* We use char because int might match the return type of a gcc2
32473 builtin and then its argument prototype would still apply. */
32474 char $ac_func ();
32475 /* The GNU C library defines this for functions which it implements
32476 to always fail with ENOSYS. Some functions are actually named
32477 something starting with __ and the normal name is an alias. */
32478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32479 choke me
32480 #else
32481 char (*f) () = $ac_func;
32482 #endif
32483 #ifdef __cplusplus
32485 #endif
32488 main ()
32490 return f != $ac_func;
32492 return 0;
32494 _ACEOF
32495 rm -f conftest.$ac_objext conftest$ac_exeext
32496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32497 (eval $ac_link) 2>conftest.er1
32498 ac_status=$?
32499 grep -v '^ *+' conftest.er1 >conftest.err
32500 rm -f conftest.er1
32501 cat conftest.err >&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } &&
32504 { ac_try='test -z "$ac_c_werror_flag"
32505 || test ! -s conftest.err'
32506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507 (eval $ac_try) 2>&5
32508 ac_status=$?
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; } &&
32511 { ac_try='test -s conftest$ac_exeext'
32512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32513 (eval $ac_try) 2>&5
32514 ac_status=$?
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); }; }; then
32517 eval "$as_ac_var=yes"
32518 else
32519 echo "$as_me: failed program was:" >&5
32520 sed 's/^/| /' conftest.$ac_ext >&5
32522 eval "$as_ac_var=no"
32524 rm -f conftest.err conftest.$ac_objext \
32525 conftest$ac_exeext conftest.$ac_ext
32527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32529 if test `eval echo '${'$as_ac_var'}'` = yes; then
32530 cat >>confdefs.h <<_ACEOF
32531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32532 _ACEOF
32535 done
32537 else
32539 echo "$as_me:$LINENO: checking for _finite declaration" >&5
32540 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32541 if test x${glibcxx_cv_func__finite_use+set} != xset; then
32542 if test "${glibcxx_cv_func__finite_use+set}" = set; then
32543 echo $ECHO_N "(cached) $ECHO_C" >&6
32544 else
32548 ac_ext=cc
32549 ac_cpp='$CXXCPP $CPPFLAGS'
32550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32554 cat >conftest.$ac_ext <<_ACEOF
32555 /* confdefs.h. */
32556 _ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h. */
32560 #include <math.h>
32561 #ifdef HAVE_IEEEFP_H
32562 #include <ieeefp.h>
32563 #endif
32566 main ()
32568 _finite(0);
32570 return 0;
32572 _ACEOF
32573 rm -f conftest.$ac_objext
32574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32575 (eval $ac_compile) 2>conftest.er1
32576 ac_status=$?
32577 grep -v '^ *+' conftest.er1 >conftest.err
32578 rm -f conftest.er1
32579 cat conftest.err >&5
32580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581 (exit $ac_status); } &&
32582 { ac_try='test -z "$ac_cxx_werror_flag"
32583 || test ! -s conftest.err'
32584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585 (eval $ac_try) 2>&5
32586 ac_status=$?
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; } &&
32589 { ac_try='test -s conftest.$ac_objext'
32590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591 (eval $ac_try) 2>&5
32592 ac_status=$?
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; }; then
32595 glibcxx_cv_func__finite_use=yes
32596 else
32597 echo "$as_me: failed program was:" >&5
32598 sed 's/^/| /' conftest.$ac_ext >&5
32600 glibcxx_cv_func__finite_use=no
32602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32603 ac_ext=c
32604 ac_cpp='$CPP $CPPFLAGS'
32605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32613 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32614 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32616 if test x$glibcxx_cv_func__finite_use = x"yes"; then
32618 for ac_func in _finite
32620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32621 echo "$as_me:$LINENO: checking for $ac_func" >&5
32622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32623 if eval "test \"\${$as_ac_var+set}\" = set"; then
32624 echo $ECHO_N "(cached) $ECHO_C" >&6
32625 else
32626 if test x$gcc_no_link = xyes; then
32627 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32628 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32629 { (exit 1); exit 1; }; }
32631 cat >conftest.$ac_ext <<_ACEOF
32632 /* confdefs.h. */
32633 _ACEOF
32634 cat confdefs.h >>conftest.$ac_ext
32635 cat >>conftest.$ac_ext <<_ACEOF
32636 /* end confdefs.h. */
32637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32639 #define $ac_func innocuous_$ac_func
32641 /* System header to define __stub macros and hopefully few prototypes,
32642 which can conflict with char $ac_func (); below.
32643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32644 <limits.h> exists even on freestanding compilers. */
32646 #ifdef __STDC__
32647 # include <limits.h>
32648 #else
32649 # include <assert.h>
32650 #endif
32652 #undef $ac_func
32654 /* Override any gcc2 internal prototype to avoid an error. */
32655 #ifdef __cplusplus
32656 extern "C"
32658 #endif
32659 /* We use char because int might match the return type of a gcc2
32660 builtin and then its argument prototype would still apply. */
32661 char $ac_func ();
32662 /* The GNU C library defines this for functions which it implements
32663 to always fail with ENOSYS. Some functions are actually named
32664 something starting with __ and the normal name is an alias. */
32665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32666 choke me
32667 #else
32668 char (*f) () = $ac_func;
32669 #endif
32670 #ifdef __cplusplus
32672 #endif
32675 main ()
32677 return f != $ac_func;
32679 return 0;
32681 _ACEOF
32682 rm -f conftest.$ac_objext conftest$ac_exeext
32683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32684 (eval $ac_link) 2>conftest.er1
32685 ac_status=$?
32686 grep -v '^ *+' conftest.er1 >conftest.err
32687 rm -f conftest.er1
32688 cat conftest.err >&5
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); } &&
32691 { ac_try='test -z "$ac_c_werror_flag"
32692 || test ! -s conftest.err'
32693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694 (eval $ac_try) 2>&5
32695 ac_status=$?
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); }; } &&
32698 { ac_try='test -s conftest$ac_exeext'
32699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700 (eval $ac_try) 2>&5
32701 ac_status=$?
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; }; then
32704 eval "$as_ac_var=yes"
32705 else
32706 echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32709 eval "$as_ac_var=no"
32711 rm -f conftest.err conftest.$ac_objext \
32712 conftest$ac_exeext conftest.$ac_ext
32714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32716 if test `eval echo '${'$as_ac_var'}'` = yes; then
32717 cat >>confdefs.h <<_ACEOF
32718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32719 _ACEOF
32722 done
32729 echo "$as_me:$LINENO: checking for copysign declaration" >&5
32730 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32731 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32732 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32733 echo $ECHO_N "(cached) $ECHO_C" >&6
32734 else
32738 ac_ext=cc
32739 ac_cpp='$CXXCPP $CPPFLAGS'
32740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32744 cat >conftest.$ac_ext <<_ACEOF
32745 /* confdefs.h. */
32746 _ACEOF
32747 cat confdefs.h >>conftest.$ac_ext
32748 cat >>conftest.$ac_ext <<_ACEOF
32749 /* end confdefs.h. */
32750 #include <math.h>
32752 main ()
32754 copysign(0, 0);
32756 return 0;
32758 _ACEOF
32759 rm -f conftest.$ac_objext
32760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32761 (eval $ac_compile) 2>conftest.er1
32762 ac_status=$?
32763 grep -v '^ *+' conftest.er1 >conftest.err
32764 rm -f conftest.er1
32765 cat conftest.err >&5
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); } &&
32768 { ac_try='test -z "$ac_cxx_werror_flag"
32769 || test ! -s conftest.err'
32770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771 (eval $ac_try) 2>&5
32772 ac_status=$?
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest.$ac_objext'
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 glibcxx_cv_func_copysign_use=yes
32782 else
32783 echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32786 glibcxx_cv_func_copysign_use=no
32788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32789 ac_ext=c
32790 ac_cpp='$CPP $CPPFLAGS'
32791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32799 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32800 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32802 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32804 for ac_func in copysign
32806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32807 echo "$as_me:$LINENO: checking for $ac_func" >&5
32808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32809 if eval "test \"\${$as_ac_var+set}\" = set"; then
32810 echo $ECHO_N "(cached) $ECHO_C" >&6
32811 else
32812 if test x$gcc_no_link = xyes; then
32813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32815 { (exit 1); exit 1; }; }
32817 cat >conftest.$ac_ext <<_ACEOF
32818 /* confdefs.h. */
32819 _ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h. */
32823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32825 #define $ac_func innocuous_$ac_func
32827 /* System header to define __stub macros and hopefully few prototypes,
32828 which can conflict with char $ac_func (); below.
32829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32830 <limits.h> exists even on freestanding compilers. */
32832 #ifdef __STDC__
32833 # include <limits.h>
32834 #else
32835 # include <assert.h>
32836 #endif
32838 #undef $ac_func
32840 /* Override any gcc2 internal prototype to avoid an error. */
32841 #ifdef __cplusplus
32842 extern "C"
32844 #endif
32845 /* We use char because int might match the return type of a gcc2
32846 builtin and then its argument prototype would still apply. */
32847 char $ac_func ();
32848 /* The GNU C library defines this for functions which it implements
32849 to always fail with ENOSYS. Some functions are actually named
32850 something starting with __ and the normal name is an alias. */
32851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32852 choke me
32853 #else
32854 char (*f) () = $ac_func;
32855 #endif
32856 #ifdef __cplusplus
32858 #endif
32861 main ()
32863 return f != $ac_func;
32865 return 0;
32867 _ACEOF
32868 rm -f conftest.$ac_objext conftest$ac_exeext
32869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32870 (eval $ac_link) 2>conftest.er1
32871 ac_status=$?
32872 grep -v '^ *+' conftest.er1 >conftest.err
32873 rm -f conftest.er1
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } &&
32877 { ac_try='test -z "$ac_c_werror_flag"
32878 || test ! -s conftest.err'
32879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880 (eval $ac_try) 2>&5
32881 ac_status=$?
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); }; } &&
32884 { ac_try='test -s conftest$ac_exeext'
32885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886 (eval $ac_try) 2>&5
32887 ac_status=$?
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; }; then
32890 eval "$as_ac_var=yes"
32891 else
32892 echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32895 eval "$as_ac_var=no"
32897 rm -f conftest.err conftest.$ac_objext \
32898 conftest$ac_exeext conftest.$ac_ext
32900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32902 if test `eval echo '${'$as_ac_var'}'` = yes; then
32903 cat >>confdefs.h <<_ACEOF
32904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32905 _ACEOF
32908 done
32910 else
32912 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
32913 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
32914 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
32915 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
32916 echo $ECHO_N "(cached) $ECHO_C" >&6
32917 else
32921 ac_ext=cc
32922 ac_cpp='$CXXCPP $CPPFLAGS'
32923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32927 cat >conftest.$ac_ext <<_ACEOF
32928 /* confdefs.h. */
32929 _ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h. */
32933 #include <math.h>
32935 main ()
32937 _copysign(0, 0);
32939 return 0;
32941 _ACEOF
32942 rm -f conftest.$ac_objext
32943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32944 (eval $ac_compile) 2>conftest.er1
32945 ac_status=$?
32946 grep -v '^ *+' conftest.er1 >conftest.err
32947 rm -f conftest.er1
32948 cat conftest.err >&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } &&
32951 { ac_try='test -z "$ac_cxx_werror_flag"
32952 || test ! -s conftest.err'
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest.$ac_objext'
32959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960 (eval $ac_try) 2>&5
32961 ac_status=$?
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 glibcxx_cv_func__copysign_use=yes
32965 else
32966 echo "$as_me: failed program was:" >&5
32967 sed 's/^/| /' conftest.$ac_ext >&5
32969 glibcxx_cv_func__copysign_use=no
32971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32972 ac_ext=c
32973 ac_cpp='$CPP $CPPFLAGS'
32974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32982 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
32983 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
32985 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
32987 for ac_func in _copysign
32989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32990 echo "$as_me:$LINENO: checking for $ac_func" >&5
32991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32992 if eval "test \"\${$as_ac_var+set}\" = set"; then
32993 echo $ECHO_N "(cached) $ECHO_C" >&6
32994 else
32995 if test x$gcc_no_link = xyes; then
32996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32998 { (exit 1); exit 1; }; }
33000 cat >conftest.$ac_ext <<_ACEOF
33001 /* confdefs.h. */
33002 _ACEOF
33003 cat confdefs.h >>conftest.$ac_ext
33004 cat >>conftest.$ac_ext <<_ACEOF
33005 /* end confdefs.h. */
33006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33008 #define $ac_func innocuous_$ac_func
33010 /* System header to define __stub macros and hopefully few prototypes,
33011 which can conflict with char $ac_func (); below.
33012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33013 <limits.h> exists even on freestanding compilers. */
33015 #ifdef __STDC__
33016 # include <limits.h>
33017 #else
33018 # include <assert.h>
33019 #endif
33021 #undef $ac_func
33023 /* Override any gcc2 internal prototype to avoid an error. */
33024 #ifdef __cplusplus
33025 extern "C"
33027 #endif
33028 /* We use char because int might match the return type of a gcc2
33029 builtin and then its argument prototype would still apply. */
33030 char $ac_func ();
33031 /* The GNU C library defines this for functions which it implements
33032 to always fail with ENOSYS. Some functions are actually named
33033 something starting with __ and the normal name is an alias. */
33034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33035 choke me
33036 #else
33037 char (*f) () = $ac_func;
33038 #endif
33039 #ifdef __cplusplus
33041 #endif
33044 main ()
33046 return f != $ac_func;
33048 return 0;
33050 _ACEOF
33051 rm -f conftest.$ac_objext conftest$ac_exeext
33052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33053 (eval $ac_link) 2>conftest.er1
33054 ac_status=$?
33055 grep -v '^ *+' conftest.er1 >conftest.err
33056 rm -f conftest.er1
33057 cat conftest.err >&5
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
33060 { ac_try='test -z "$ac_c_werror_flag"
33061 || test ! -s conftest.err'
33062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063 (eval $ac_try) 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; } &&
33067 { ac_try='test -s conftest$ac_exeext'
33068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33069 (eval $ac_try) 2>&5
33070 ac_status=$?
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); }; }; then
33073 eval "$as_ac_var=yes"
33074 else
33075 echo "$as_me: failed program was:" >&5
33076 sed 's/^/| /' conftest.$ac_ext >&5
33078 eval "$as_ac_var=no"
33080 rm -f conftest.err conftest.$ac_objext \
33081 conftest$ac_exeext conftest.$ac_ext
33083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33085 if test `eval echo '${'$as_ac_var'}'` = yes; then
33086 cat >>confdefs.h <<_ACEOF
33087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33088 _ACEOF
33091 done
33098 echo "$as_me:$LINENO: checking for sincos declaration" >&5
33099 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
33100 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
33101 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
33102 echo $ECHO_N "(cached) $ECHO_C" >&6
33103 else
33107 ac_ext=cc
33108 ac_cpp='$CXXCPP $CPPFLAGS'
33109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33113 cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h. */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33119 #include <math.h>
33121 main ()
33123 sincos(0, 0, 0);
33125 return 0;
33127 _ACEOF
33128 rm -f conftest.$ac_objext
33129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33130 (eval $ac_compile) 2>conftest.er1
33131 ac_status=$?
33132 grep -v '^ *+' conftest.er1 >conftest.err
33133 rm -f conftest.er1
33134 cat conftest.err >&5
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); } &&
33137 { ac_try='test -z "$ac_cxx_werror_flag"
33138 || test ! -s conftest.err'
33139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33140 (eval $ac_try) 2>&5
33141 ac_status=$?
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); }; } &&
33144 { ac_try='test -s conftest.$ac_objext'
33145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33146 (eval $ac_try) 2>&5
33147 ac_status=$?
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); }; }; then
33150 glibcxx_cv_func_sincos_use=yes
33151 else
33152 echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33155 glibcxx_cv_func_sincos_use=no
33157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33158 ac_ext=c
33159 ac_cpp='$CPP $CPPFLAGS'
33160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33168 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
33169 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
33171 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
33173 for ac_func in sincos
33175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33176 echo "$as_me:$LINENO: checking for $ac_func" >&5
33177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33178 if eval "test \"\${$as_ac_var+set}\" = set"; then
33179 echo $ECHO_N "(cached) $ECHO_C" >&6
33180 else
33181 if test x$gcc_no_link = xyes; then
33182 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33184 { (exit 1); exit 1; }; }
33186 cat >conftest.$ac_ext <<_ACEOF
33187 /* confdefs.h. */
33188 _ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h. */
33192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33194 #define $ac_func innocuous_$ac_func
33196 /* System header to define __stub macros and hopefully few prototypes,
33197 which can conflict with char $ac_func (); below.
33198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33199 <limits.h> exists even on freestanding compilers. */
33201 #ifdef __STDC__
33202 # include <limits.h>
33203 #else
33204 # include <assert.h>
33205 #endif
33207 #undef $ac_func
33209 /* Override any gcc2 internal prototype to avoid an error. */
33210 #ifdef __cplusplus
33211 extern "C"
33213 #endif
33214 /* We use char because int might match the return type of a gcc2
33215 builtin and then its argument prototype would still apply. */
33216 char $ac_func ();
33217 /* The GNU C library defines this for functions which it implements
33218 to always fail with ENOSYS. Some functions are actually named
33219 something starting with __ and the normal name is an alias. */
33220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33221 choke me
33222 #else
33223 char (*f) () = $ac_func;
33224 #endif
33225 #ifdef __cplusplus
33227 #endif
33230 main ()
33232 return f != $ac_func;
33234 return 0;
33236 _ACEOF
33237 rm -f conftest.$ac_objext conftest$ac_exeext
33238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33239 (eval $ac_link) 2>conftest.er1
33240 ac_status=$?
33241 grep -v '^ *+' conftest.er1 >conftest.err
33242 rm -f conftest.er1
33243 cat conftest.err >&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } &&
33246 { ac_try='test -z "$ac_c_werror_flag"
33247 || test ! -s conftest.err'
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; } &&
33253 { ac_try='test -s conftest$ac_exeext'
33254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255 (eval $ac_try) 2>&5
33256 ac_status=$?
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); }; }; then
33259 eval "$as_ac_var=yes"
33260 else
33261 echo "$as_me: failed program was:" >&5
33262 sed 's/^/| /' conftest.$ac_ext >&5
33264 eval "$as_ac_var=no"
33266 rm -f conftest.err conftest.$ac_objext \
33267 conftest$ac_exeext conftest.$ac_ext
33269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33271 if test `eval echo '${'$as_ac_var'}'` = yes; then
33272 cat >>confdefs.h <<_ACEOF
33273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33274 _ACEOF
33277 done
33279 else
33281 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
33282 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
33283 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
33284 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
33285 echo $ECHO_N "(cached) $ECHO_C" >&6
33286 else
33290 ac_ext=cc
33291 ac_cpp='$CXXCPP $CPPFLAGS'
33292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33296 cat >conftest.$ac_ext <<_ACEOF
33297 /* confdefs.h. */
33298 _ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h. */
33302 #include <math.h>
33304 main ()
33306 _sincos(0, 0, 0);
33308 return 0;
33310 _ACEOF
33311 rm -f conftest.$ac_objext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33313 (eval $ac_compile) 2>conftest.er1
33314 ac_status=$?
33315 grep -v '^ *+' conftest.er1 >conftest.err
33316 rm -f conftest.er1
33317 cat conftest.err >&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
33320 { ac_try='test -z "$ac_cxx_werror_flag"
33321 || test ! -s conftest.err'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; } &&
33327 { ac_try='test -s conftest.$ac_objext'
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33330 ac_status=$?
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
33333 glibcxx_cv_func__sincos_use=yes
33334 else
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33338 glibcxx_cv_func__sincos_use=no
33340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33341 ac_ext=c
33342 ac_cpp='$CPP $CPPFLAGS'
33343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33351 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
33352 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
33354 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
33356 for ac_func in _sincos
33358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33359 echo "$as_me:$LINENO: checking for $ac_func" >&5
33360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33361 if eval "test \"\${$as_ac_var+set}\" = set"; then
33362 echo $ECHO_N "(cached) $ECHO_C" >&6
33363 else
33364 if test x$gcc_no_link = xyes; then
33365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33367 { (exit 1); exit 1; }; }
33369 cat >conftest.$ac_ext <<_ACEOF
33370 /* confdefs.h. */
33371 _ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h. */
33375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33377 #define $ac_func innocuous_$ac_func
33379 /* System header to define __stub macros and hopefully few prototypes,
33380 which can conflict with char $ac_func (); below.
33381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33382 <limits.h> exists even on freestanding compilers. */
33384 #ifdef __STDC__
33385 # include <limits.h>
33386 #else
33387 # include <assert.h>
33388 #endif
33390 #undef $ac_func
33392 /* Override any gcc2 internal prototype to avoid an error. */
33393 #ifdef __cplusplus
33394 extern "C"
33396 #endif
33397 /* We use char because int might match the return type of a gcc2
33398 builtin and then its argument prototype would still apply. */
33399 char $ac_func ();
33400 /* The GNU C library defines this for functions which it implements
33401 to always fail with ENOSYS. Some functions are actually named
33402 something starting with __ and the normal name is an alias. */
33403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33404 choke me
33405 #else
33406 char (*f) () = $ac_func;
33407 #endif
33408 #ifdef __cplusplus
33410 #endif
33413 main ()
33415 return f != $ac_func;
33417 return 0;
33419 _ACEOF
33420 rm -f conftest.$ac_objext conftest$ac_exeext
33421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33422 (eval $ac_link) 2>conftest.er1
33423 ac_status=$?
33424 grep -v '^ *+' conftest.er1 >conftest.err
33425 rm -f conftest.er1
33426 cat conftest.err >&5
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); } &&
33429 { ac_try='test -z "$ac_c_werror_flag"
33430 || test ! -s conftest.err'
33431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432 (eval $ac_try) 2>&5
33433 ac_status=$?
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; } &&
33436 { ac_try='test -s conftest$ac_exeext'
33437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33438 (eval $ac_try) 2>&5
33439 ac_status=$?
33440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 (exit $ac_status); }; }; then
33442 eval "$as_ac_var=yes"
33443 else
33444 echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33447 eval "$as_ac_var=no"
33449 rm -f conftest.err conftest.$ac_objext \
33450 conftest$ac_exeext conftest.$ac_ext
33452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33454 if test `eval echo '${'$as_ac_var'}'` = yes; then
33455 cat >>confdefs.h <<_ACEOF
33456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33457 _ACEOF
33460 done
33467 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33468 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33469 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33470 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33472 else
33476 ac_ext=cc
33477 ac_cpp='$CXXCPP $CPPFLAGS'
33478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33482 cat >conftest.$ac_ext <<_ACEOF
33483 /* confdefs.h. */
33484 _ACEOF
33485 cat confdefs.h >>conftest.$ac_ext
33486 cat >>conftest.$ac_ext <<_ACEOF
33487 /* end confdefs.h. */
33488 #include <math.h>
33489 #ifdef HAVE_IEEEFP_H
33490 #include <ieeefp.h>
33491 #endif
33494 main ()
33496 fpclass(0);
33498 return 0;
33500 _ACEOF
33501 rm -f conftest.$ac_objext
33502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33503 (eval $ac_compile) 2>conftest.er1
33504 ac_status=$?
33505 grep -v '^ *+' conftest.er1 >conftest.err
33506 rm -f conftest.er1
33507 cat conftest.err >&5
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); } &&
33510 { ac_try='test -z "$ac_cxx_werror_flag"
33511 || test ! -s conftest.err'
33512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513 (eval $ac_try) 2>&5
33514 ac_status=$?
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); }; } &&
33517 { ac_try='test -s conftest.$ac_objext'
33518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519 (eval $ac_try) 2>&5
33520 ac_status=$?
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); }; }; then
33523 glibcxx_cv_func_fpclass_use=yes
33524 else
33525 echo "$as_me: failed program was:" >&5
33526 sed 's/^/| /' conftest.$ac_ext >&5
33528 glibcxx_cv_func_fpclass_use=no
33530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33531 ac_ext=c
33532 ac_cpp='$CPP $CPPFLAGS'
33533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33541 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33542 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33544 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33546 for ac_func in fpclass
33548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33549 echo "$as_me:$LINENO: checking for $ac_func" >&5
33550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33551 if eval "test \"\${$as_ac_var+set}\" = set"; then
33552 echo $ECHO_N "(cached) $ECHO_C" >&6
33553 else
33554 if test x$gcc_no_link = xyes; then
33555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33557 { (exit 1); exit 1; }; }
33559 cat >conftest.$ac_ext <<_ACEOF
33560 /* confdefs.h. */
33561 _ACEOF
33562 cat confdefs.h >>conftest.$ac_ext
33563 cat >>conftest.$ac_ext <<_ACEOF
33564 /* end confdefs.h. */
33565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33567 #define $ac_func innocuous_$ac_func
33569 /* System header to define __stub macros and hopefully few prototypes,
33570 which can conflict with char $ac_func (); below.
33571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33572 <limits.h> exists even on freestanding compilers. */
33574 #ifdef __STDC__
33575 # include <limits.h>
33576 #else
33577 # include <assert.h>
33578 #endif
33580 #undef $ac_func
33582 /* Override any gcc2 internal prototype to avoid an error. */
33583 #ifdef __cplusplus
33584 extern "C"
33586 #endif
33587 /* We use char because int might match the return type of a gcc2
33588 builtin and then its argument prototype would still apply. */
33589 char $ac_func ();
33590 /* The GNU C library defines this for functions which it implements
33591 to always fail with ENOSYS. Some functions are actually named
33592 something starting with __ and the normal name is an alias. */
33593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33594 choke me
33595 #else
33596 char (*f) () = $ac_func;
33597 #endif
33598 #ifdef __cplusplus
33600 #endif
33603 main ()
33605 return f != $ac_func;
33607 return 0;
33609 _ACEOF
33610 rm -f conftest.$ac_objext conftest$ac_exeext
33611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33612 (eval $ac_link) 2>conftest.er1
33613 ac_status=$?
33614 grep -v '^ *+' conftest.er1 >conftest.err
33615 rm -f conftest.er1
33616 cat conftest.err >&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); } &&
33619 { ac_try='test -z "$ac_c_werror_flag"
33620 || test ! -s conftest.err'
33621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33622 (eval $ac_try) 2>&5
33623 ac_status=$?
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); }; } &&
33626 { ac_try='test -s conftest$ac_exeext'
33627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33628 (eval $ac_try) 2>&5
33629 ac_status=$?
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; }; then
33632 eval "$as_ac_var=yes"
33633 else
33634 echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 eval "$as_ac_var=no"
33639 rm -f conftest.err conftest.$ac_objext \
33640 conftest$ac_exeext conftest.$ac_ext
33642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33644 if test `eval echo '${'$as_ac_var'}'` = yes; then
33645 cat >>confdefs.h <<_ACEOF
33646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33647 _ACEOF
33650 done
33652 else
33654 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33655 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33656 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33657 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33659 else
33663 ac_ext=cc
33664 ac_cpp='$CXXCPP $CPPFLAGS'
33665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33669 cat >conftest.$ac_ext <<_ACEOF
33670 /* confdefs.h. */
33671 _ACEOF
33672 cat confdefs.h >>conftest.$ac_ext
33673 cat >>conftest.$ac_ext <<_ACEOF
33674 /* end confdefs.h. */
33675 #include <math.h>
33676 #ifdef HAVE_IEEEFP_H
33677 #include <ieeefp.h>
33678 #endif
33681 main ()
33683 _fpclass(0);
33685 return 0;
33687 _ACEOF
33688 rm -f conftest.$ac_objext
33689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33690 (eval $ac_compile) 2>conftest.er1
33691 ac_status=$?
33692 grep -v '^ *+' conftest.er1 >conftest.err
33693 rm -f conftest.er1
33694 cat conftest.err >&5
33695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696 (exit $ac_status); } &&
33697 { ac_try='test -z "$ac_cxx_werror_flag"
33698 || test ! -s conftest.err'
33699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33700 (eval $ac_try) 2>&5
33701 ac_status=$?
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); }; } &&
33704 { ac_try='test -s conftest.$ac_objext'
33705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33706 (eval $ac_try) 2>&5
33707 ac_status=$?
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); }; }; then
33710 glibcxx_cv_func__fpclass_use=yes
33711 else
33712 echo "$as_me: failed program was:" >&5
33713 sed 's/^/| /' conftest.$ac_ext >&5
33715 glibcxx_cv_func__fpclass_use=no
33717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33718 ac_ext=c
33719 ac_cpp='$CPP $CPPFLAGS'
33720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33728 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33729 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33731 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33733 for ac_func in _fpclass
33735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33736 echo "$as_me:$LINENO: checking for $ac_func" >&5
33737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33738 if eval "test \"\${$as_ac_var+set}\" = set"; then
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33740 else
33741 if test x$gcc_no_link = xyes; then
33742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33744 { (exit 1); exit 1; }; }
33746 cat >conftest.$ac_ext <<_ACEOF
33747 /* confdefs.h. */
33748 _ACEOF
33749 cat confdefs.h >>conftest.$ac_ext
33750 cat >>conftest.$ac_ext <<_ACEOF
33751 /* end confdefs.h. */
33752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33754 #define $ac_func innocuous_$ac_func
33756 /* System header to define __stub macros and hopefully few prototypes,
33757 which can conflict with char $ac_func (); below.
33758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33759 <limits.h> exists even on freestanding compilers. */
33761 #ifdef __STDC__
33762 # include <limits.h>
33763 #else
33764 # include <assert.h>
33765 #endif
33767 #undef $ac_func
33769 /* Override any gcc2 internal prototype to avoid an error. */
33770 #ifdef __cplusplus
33771 extern "C"
33773 #endif
33774 /* We use char because int might match the return type of a gcc2
33775 builtin and then its argument prototype would still apply. */
33776 char $ac_func ();
33777 /* The GNU C library defines this for functions which it implements
33778 to always fail with ENOSYS. Some functions are actually named
33779 something starting with __ and the normal name is an alias. */
33780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33781 choke me
33782 #else
33783 char (*f) () = $ac_func;
33784 #endif
33785 #ifdef __cplusplus
33787 #endif
33790 main ()
33792 return f != $ac_func;
33794 return 0;
33796 _ACEOF
33797 rm -f conftest.$ac_objext conftest$ac_exeext
33798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33799 (eval $ac_link) 2>conftest.er1
33800 ac_status=$?
33801 grep -v '^ *+' conftest.er1 >conftest.err
33802 rm -f conftest.er1
33803 cat conftest.err >&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
33806 { ac_try='test -z "$ac_c_werror_flag"
33807 || test ! -s conftest.err'
33808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809 (eval $ac_try) 2>&5
33810 ac_status=$?
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); }; } &&
33813 { ac_try='test -s conftest$ac_exeext'
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 eval "$as_ac_var=yes"
33820 else
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33824 eval "$as_ac_var=no"
33826 rm -f conftest.err conftest.$ac_objext \
33827 conftest$ac_exeext conftest.$ac_ext
33829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33831 if test `eval echo '${'$as_ac_var'}'` = yes; then
33832 cat >>confdefs.h <<_ACEOF
33833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33834 _ACEOF
33837 done
33844 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
33845 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
33846 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
33847 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
33848 echo $ECHO_N "(cached) $ECHO_C" >&6
33849 else
33853 ac_ext=cc
33854 ac_cpp='$CXXCPP $CPPFLAGS'
33855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33859 cat >conftest.$ac_ext <<_ACEOF
33860 /* confdefs.h. */
33861 _ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h. */
33865 #include <math.h>
33866 #ifdef HAVE_IEEEFP_H
33867 #include <ieeefp.h>
33868 #endif
33871 main ()
33873 qfpclass(0);
33875 return 0;
33877 _ACEOF
33878 rm -f conftest.$ac_objext
33879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33880 (eval $ac_compile) 2>conftest.er1
33881 ac_status=$?
33882 grep -v '^ *+' conftest.er1 >conftest.err
33883 rm -f conftest.er1
33884 cat conftest.err >&5
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); } &&
33887 { ac_try='test -z "$ac_cxx_werror_flag"
33888 || test ! -s conftest.err'
33889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33890 (eval $ac_try) 2>&5
33891 ac_status=$?
33892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893 (exit $ac_status); }; } &&
33894 { ac_try='test -s conftest.$ac_objext'
33895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33896 (eval $ac_try) 2>&5
33897 ac_status=$?
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); }; }; then
33900 glibcxx_cv_func_qfpclass_use=yes
33901 else
33902 echo "$as_me: failed program was:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33905 glibcxx_cv_func_qfpclass_use=no
33907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33908 ac_ext=c
33909 ac_cpp='$CPP $CPPFLAGS'
33910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33918 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
33919 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
33921 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
33923 for ac_func in qfpclass
33925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33926 echo "$as_me:$LINENO: checking for $ac_func" >&5
33927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33928 if eval "test \"\${$as_ac_var+set}\" = set"; then
33929 echo $ECHO_N "(cached) $ECHO_C" >&6
33930 else
33931 if test x$gcc_no_link = xyes; then
33932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33934 { (exit 1); exit 1; }; }
33936 cat >conftest.$ac_ext <<_ACEOF
33937 /* confdefs.h. */
33938 _ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h. */
33942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33944 #define $ac_func innocuous_$ac_func
33946 /* System header to define __stub macros and hopefully few prototypes,
33947 which can conflict with char $ac_func (); below.
33948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33949 <limits.h> exists even on freestanding compilers. */
33951 #ifdef __STDC__
33952 # include <limits.h>
33953 #else
33954 # include <assert.h>
33955 #endif
33957 #undef $ac_func
33959 /* Override any gcc2 internal prototype to avoid an error. */
33960 #ifdef __cplusplus
33961 extern "C"
33963 #endif
33964 /* We use char because int might match the return type of a gcc2
33965 builtin and then its argument prototype would still apply. */
33966 char $ac_func ();
33967 /* The GNU C library defines this for functions which it implements
33968 to always fail with ENOSYS. Some functions are actually named
33969 something starting with __ and the normal name is an alias. */
33970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33971 choke me
33972 #else
33973 char (*f) () = $ac_func;
33974 #endif
33975 #ifdef __cplusplus
33977 #endif
33980 main ()
33982 return f != $ac_func;
33984 return 0;
33986 _ACEOF
33987 rm -f conftest.$ac_objext conftest$ac_exeext
33988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33989 (eval $ac_link) 2>conftest.er1
33990 ac_status=$?
33991 grep -v '^ *+' conftest.er1 >conftest.err
33992 rm -f conftest.er1
33993 cat conftest.err >&5
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); } &&
33996 { ac_try='test -z "$ac_c_werror_flag"
33997 || test ! -s conftest.err'
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34000 ac_status=$?
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; } &&
34003 { ac_try='test -s conftest$ac_exeext'
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; }; then
34009 eval "$as_ac_var=yes"
34010 else
34011 echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34014 eval "$as_ac_var=no"
34016 rm -f conftest.err conftest.$ac_objext \
34017 conftest$ac_exeext conftest.$ac_ext
34019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34021 if test `eval echo '${'$as_ac_var'}'` = yes; then
34022 cat >>confdefs.h <<_ACEOF
34023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34024 _ACEOF
34027 done
34029 else
34031 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
34032 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
34033 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
34034 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
34035 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 else
34040 ac_ext=cc
34041 ac_cpp='$CXXCPP $CPPFLAGS'
34042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34046 cat >conftest.$ac_ext <<_ACEOF
34047 /* confdefs.h. */
34048 _ACEOF
34049 cat confdefs.h >>conftest.$ac_ext
34050 cat >>conftest.$ac_ext <<_ACEOF
34051 /* end confdefs.h. */
34052 #include <math.h>
34053 #ifdef HAVE_IEEEFP_H
34054 #include <ieeefp.h>
34055 #endif
34058 main ()
34060 _qfpclass(0);
34062 return 0;
34064 _ACEOF
34065 rm -f conftest.$ac_objext
34066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34067 (eval $ac_compile) 2>conftest.er1
34068 ac_status=$?
34069 grep -v '^ *+' conftest.er1 >conftest.err
34070 rm -f conftest.er1
34071 cat conftest.err >&5
34072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073 (exit $ac_status); } &&
34074 { ac_try='test -z "$ac_cxx_werror_flag"
34075 || test ! -s conftest.err'
34076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34077 (eval $ac_try) 2>&5
34078 ac_status=$?
34079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080 (exit $ac_status); }; } &&
34081 { ac_try='test -s conftest.$ac_objext'
34082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34083 (eval $ac_try) 2>&5
34084 ac_status=$?
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); }; }; then
34087 glibcxx_cv_func__qfpclass_use=yes
34088 else
34089 echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34092 glibcxx_cv_func__qfpclass_use=no
34094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34095 ac_ext=c
34096 ac_cpp='$CPP $CPPFLAGS'
34097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34105 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
34106 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
34108 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
34110 for ac_func in _qfpclass
34112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34113 echo "$as_me:$LINENO: checking for $ac_func" >&5
34114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34115 if eval "test \"\${$as_ac_var+set}\" = set"; then
34116 echo $ECHO_N "(cached) $ECHO_C" >&6
34117 else
34118 if test x$gcc_no_link = xyes; then
34119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34121 { (exit 1); exit 1; }; }
34123 cat >conftest.$ac_ext <<_ACEOF
34124 /* confdefs.h. */
34125 _ACEOF
34126 cat confdefs.h >>conftest.$ac_ext
34127 cat >>conftest.$ac_ext <<_ACEOF
34128 /* end confdefs.h. */
34129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34131 #define $ac_func innocuous_$ac_func
34133 /* System header to define __stub macros and hopefully few prototypes,
34134 which can conflict with char $ac_func (); below.
34135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34136 <limits.h> exists even on freestanding compilers. */
34138 #ifdef __STDC__
34139 # include <limits.h>
34140 #else
34141 # include <assert.h>
34142 #endif
34144 #undef $ac_func
34146 /* Override any gcc2 internal prototype to avoid an error. */
34147 #ifdef __cplusplus
34148 extern "C"
34150 #endif
34151 /* We use char because int might match the return type of a gcc2
34152 builtin and then its argument prototype would still apply. */
34153 char $ac_func ();
34154 /* The GNU C library defines this for functions which it implements
34155 to always fail with ENOSYS. Some functions are actually named
34156 something starting with __ and the normal name is an alias. */
34157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34158 choke me
34159 #else
34160 char (*f) () = $ac_func;
34161 #endif
34162 #ifdef __cplusplus
34164 #endif
34167 main ()
34169 return f != $ac_func;
34171 return 0;
34173 _ACEOF
34174 rm -f conftest.$ac_objext conftest$ac_exeext
34175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34176 (eval $ac_link) 2>conftest.er1
34177 ac_status=$?
34178 grep -v '^ *+' conftest.er1 >conftest.err
34179 rm -f conftest.er1
34180 cat conftest.err >&5
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); } &&
34183 { ac_try='test -z "$ac_c_werror_flag"
34184 || test ! -s conftest.err'
34185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186 (eval $ac_try) 2>&5
34187 ac_status=$?
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; } &&
34190 { ac_try='test -s conftest$ac_exeext'
34191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192 (eval $ac_try) 2>&5
34193 ac_status=$?
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); }; }; then
34196 eval "$as_ac_var=yes"
34197 else
34198 echo "$as_me: failed program was:" >&5
34199 sed 's/^/| /' conftest.$ac_ext >&5
34201 eval "$as_ac_var=no"
34203 rm -f conftest.err conftest.$ac_objext \
34204 conftest$ac_exeext conftest.$ac_ext
34206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34208 if test `eval echo '${'$as_ac_var'}'` = yes; then
34209 cat >>confdefs.h <<_ACEOF
34210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34211 _ACEOF
34214 done
34221 echo "$as_me:$LINENO: checking for hypot declaration" >&5
34222 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
34223 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
34224 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
34225 echo $ECHO_N "(cached) $ECHO_C" >&6
34226 else
34230 ac_ext=cc
34231 ac_cpp='$CXXCPP $CPPFLAGS'
34232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34236 cat >conftest.$ac_ext <<_ACEOF
34237 /* confdefs.h. */
34238 _ACEOF
34239 cat confdefs.h >>conftest.$ac_ext
34240 cat >>conftest.$ac_ext <<_ACEOF
34241 /* end confdefs.h. */
34242 #include <math.h>
34244 main ()
34246 hypot(0, 0);
34248 return 0;
34250 _ACEOF
34251 rm -f conftest.$ac_objext
34252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34253 (eval $ac_compile) 2>conftest.er1
34254 ac_status=$?
34255 grep -v '^ *+' conftest.er1 >conftest.err
34256 rm -f conftest.er1
34257 cat conftest.err >&5
34258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259 (exit $ac_status); } &&
34260 { ac_try='test -z "$ac_cxx_werror_flag"
34261 || test ! -s conftest.err'
34262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34263 (eval $ac_try) 2>&5
34264 ac_status=$?
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); }; } &&
34267 { ac_try='test -s conftest.$ac_objext'
34268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269 (eval $ac_try) 2>&5
34270 ac_status=$?
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); }; }; then
34273 glibcxx_cv_func_hypot_use=yes
34274 else
34275 echo "$as_me: failed program was:" >&5
34276 sed 's/^/| /' conftest.$ac_ext >&5
34278 glibcxx_cv_func_hypot_use=no
34280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34281 ac_ext=c
34282 ac_cpp='$CPP $CPPFLAGS'
34283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34291 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
34292 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
34294 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
34296 for ac_func in hypot
34298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34299 echo "$as_me:$LINENO: checking for $ac_func" >&5
34300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34301 if eval "test \"\${$as_ac_var+set}\" = set"; then
34302 echo $ECHO_N "(cached) $ECHO_C" >&6
34303 else
34304 if test x$gcc_no_link = xyes; then
34305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34307 { (exit 1); exit 1; }; }
34309 cat >conftest.$ac_ext <<_ACEOF
34310 /* confdefs.h. */
34311 _ACEOF
34312 cat confdefs.h >>conftest.$ac_ext
34313 cat >>conftest.$ac_ext <<_ACEOF
34314 /* end confdefs.h. */
34315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34317 #define $ac_func innocuous_$ac_func
34319 /* System header to define __stub macros and hopefully few prototypes,
34320 which can conflict with char $ac_func (); below.
34321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34322 <limits.h> exists even on freestanding compilers. */
34324 #ifdef __STDC__
34325 # include <limits.h>
34326 #else
34327 # include <assert.h>
34328 #endif
34330 #undef $ac_func
34332 /* Override any gcc2 internal prototype to avoid an error. */
34333 #ifdef __cplusplus
34334 extern "C"
34336 #endif
34337 /* We use char because int might match the return type of a gcc2
34338 builtin and then its argument prototype would still apply. */
34339 char $ac_func ();
34340 /* The GNU C library defines this for functions which it implements
34341 to always fail with ENOSYS. Some functions are actually named
34342 something starting with __ and the normal name is an alias. */
34343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34344 choke me
34345 #else
34346 char (*f) () = $ac_func;
34347 #endif
34348 #ifdef __cplusplus
34350 #endif
34353 main ()
34355 return f != $ac_func;
34357 return 0;
34359 _ACEOF
34360 rm -f conftest.$ac_objext conftest$ac_exeext
34361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34362 (eval $ac_link) 2>conftest.er1
34363 ac_status=$?
34364 grep -v '^ *+' conftest.er1 >conftest.err
34365 rm -f conftest.er1
34366 cat conftest.err >&5
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); } &&
34369 { ac_try='test -z "$ac_c_werror_flag"
34370 || test ! -s conftest.err'
34371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372 (eval $ac_try) 2>&5
34373 ac_status=$?
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); }; } &&
34376 { ac_try='test -s conftest$ac_exeext'
34377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378 (eval $ac_try) 2>&5
34379 ac_status=$?
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); }; }; then
34382 eval "$as_ac_var=yes"
34383 else
34384 echo "$as_me: failed program was:" >&5
34385 sed 's/^/| /' conftest.$ac_ext >&5
34387 eval "$as_ac_var=no"
34389 rm -f conftest.err conftest.$ac_objext \
34390 conftest$ac_exeext conftest.$ac_ext
34392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34394 if test `eval echo '${'$as_ac_var'}'` = yes; then
34395 cat >>confdefs.h <<_ACEOF
34396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34397 _ACEOF
34400 done
34402 else
34404 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
34405 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
34406 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
34407 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
34408 echo $ECHO_N "(cached) $ECHO_C" >&6
34409 else
34413 ac_ext=cc
34414 ac_cpp='$CXXCPP $CPPFLAGS'
34415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34419 cat >conftest.$ac_ext <<_ACEOF
34420 /* confdefs.h. */
34421 _ACEOF
34422 cat confdefs.h >>conftest.$ac_ext
34423 cat >>conftest.$ac_ext <<_ACEOF
34424 /* end confdefs.h. */
34425 #include <math.h>
34427 main ()
34429 _hypot(0, 0);
34431 return 0;
34433 _ACEOF
34434 rm -f conftest.$ac_objext
34435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34436 (eval $ac_compile) 2>conftest.er1
34437 ac_status=$?
34438 grep -v '^ *+' conftest.er1 >conftest.err
34439 rm -f conftest.er1
34440 cat conftest.err >&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); } &&
34443 { ac_try='test -z "$ac_cxx_werror_flag"
34444 || test ! -s conftest.err'
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34447 ac_status=$?
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; } &&
34450 { ac_try='test -s conftest.$ac_objext'
34451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452 (eval $ac_try) 2>&5
34453 ac_status=$?
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; }; then
34456 glibcxx_cv_func__hypot_use=yes
34457 else
34458 echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34461 glibcxx_cv_func__hypot_use=no
34463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34464 ac_ext=c
34465 ac_cpp='$CPP $CPPFLAGS'
34466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34474 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34475 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34477 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34479 for ac_func in _hypot
34481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34482 echo "$as_me:$LINENO: checking for $ac_func" >&5
34483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34484 if eval "test \"\${$as_ac_var+set}\" = set"; then
34485 echo $ECHO_N "(cached) $ECHO_C" >&6
34486 else
34487 if test x$gcc_no_link = xyes; then
34488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34490 { (exit 1); exit 1; }; }
34492 cat >conftest.$ac_ext <<_ACEOF
34493 /* confdefs.h. */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h. */
34498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34500 #define $ac_func innocuous_$ac_func
34502 /* System header to define __stub macros and hopefully few prototypes,
34503 which can conflict with char $ac_func (); below.
34504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34505 <limits.h> exists even on freestanding compilers. */
34507 #ifdef __STDC__
34508 # include <limits.h>
34509 #else
34510 # include <assert.h>
34511 #endif
34513 #undef $ac_func
34515 /* Override any gcc2 internal prototype to avoid an error. */
34516 #ifdef __cplusplus
34517 extern "C"
34519 #endif
34520 /* We use char because int might match the return type of a gcc2
34521 builtin and then its argument prototype would still apply. */
34522 char $ac_func ();
34523 /* The GNU C library defines this for functions which it implements
34524 to always fail with ENOSYS. Some functions are actually named
34525 something starting with __ and the normal name is an alias. */
34526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34527 choke me
34528 #else
34529 char (*f) () = $ac_func;
34530 #endif
34531 #ifdef __cplusplus
34533 #endif
34536 main ()
34538 return f != $ac_func;
34540 return 0;
34542 _ACEOF
34543 rm -f conftest.$ac_objext conftest$ac_exeext
34544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34545 (eval $ac_link) 2>conftest.er1
34546 ac_status=$?
34547 grep -v '^ *+' conftest.er1 >conftest.err
34548 rm -f conftest.er1
34549 cat conftest.err >&5
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); } &&
34552 { ac_try='test -z "$ac_c_werror_flag"
34553 || test ! -s conftest.err'
34554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555 (eval $ac_try) 2>&5
34556 ac_status=$?
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); }; } &&
34559 { ac_try='test -s conftest$ac_exeext'
34560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34561 (eval $ac_try) 2>&5
34562 ac_status=$?
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 (exit $ac_status); }; }; then
34565 eval "$as_ac_var=yes"
34566 else
34567 echo "$as_me: failed program was:" >&5
34568 sed 's/^/| /' conftest.$ac_ext >&5
34570 eval "$as_ac_var=no"
34572 rm -f conftest.err conftest.$ac_objext \
34573 conftest$ac_exeext conftest.$ac_ext
34575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34577 if test `eval echo '${'$as_ac_var'}'` = yes; then
34578 cat >>confdefs.h <<_ACEOF
34579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34580 _ACEOF
34583 done
34590 echo "$as_me:$LINENO: checking for float trig functions" >&5
34591 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34592 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34593 echo $ECHO_N "(cached) $ECHO_C" >&6
34594 else
34598 ac_ext=cc
34599 ac_cpp='$CXXCPP $CPPFLAGS'
34600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34604 cat >conftest.$ac_ext <<_ACEOF
34605 /* confdefs.h. */
34606 _ACEOF
34607 cat confdefs.h >>conftest.$ac_ext
34608 cat >>conftest.$ac_ext <<_ACEOF
34609 /* end confdefs.h. */
34610 #include <math.h>
34612 main ()
34614 `for x in acosf asinf atanf \
34615 cosf sinf tanf \
34616 coshf sinhf tanhf; do echo "$x (0);"; done`
34618 return 0;
34620 _ACEOF
34621 rm -f conftest.$ac_objext
34622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34623 (eval $ac_compile) 2>conftest.er1
34624 ac_status=$?
34625 grep -v '^ *+' conftest.er1 >conftest.err
34626 rm -f conftest.er1
34627 cat conftest.err >&5
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); } &&
34630 { ac_try='test -z "$ac_cxx_werror_flag"
34631 || test ! -s conftest.err'
34632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 (eval $ac_try) 2>&5
34634 ac_status=$?
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); }; } &&
34637 { ac_try='test -s conftest.$ac_objext'
34638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34639 (eval $ac_try) 2>&5
34640 ac_status=$?
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); }; }; then
34643 glibcxx_cv_func_float_trig_use=yes
34644 else
34645 echo "$as_me: failed program was:" >&5
34646 sed 's/^/| /' conftest.$ac_ext >&5
34648 glibcxx_cv_func_float_trig_use=no
34650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34651 ac_ext=c
34652 ac_cpp='$CPP $CPPFLAGS'
34653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34659 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34660 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34661 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34671 for ac_func in acosf asinf atanf \
34672 cosf sinf tanf \
34673 coshf sinhf tanhf
34675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34676 echo "$as_me:$LINENO: checking for $ac_func" >&5
34677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34678 if eval "test \"\${$as_ac_var+set}\" = set"; then
34679 echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681 if test x$gcc_no_link = xyes; then
34682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34684 { (exit 1); exit 1; }; }
34686 cat >conftest.$ac_ext <<_ACEOF
34687 /* confdefs.h. */
34688 _ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h. */
34692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34694 #define $ac_func innocuous_$ac_func
34696 /* System header to define __stub macros and hopefully few prototypes,
34697 which can conflict with char $ac_func (); below.
34698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34699 <limits.h> exists even on freestanding compilers. */
34701 #ifdef __STDC__
34702 # include <limits.h>
34703 #else
34704 # include <assert.h>
34705 #endif
34707 #undef $ac_func
34709 /* Override any gcc2 internal prototype to avoid an error. */
34710 #ifdef __cplusplus
34711 extern "C"
34713 #endif
34714 /* We use char because int might match the return type of a gcc2
34715 builtin and then its argument prototype would still apply. */
34716 char $ac_func ();
34717 /* The GNU C library defines this for functions which it implements
34718 to always fail with ENOSYS. Some functions are actually named
34719 something starting with __ and the normal name is an alias. */
34720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34721 choke me
34722 #else
34723 char (*f) () = $ac_func;
34724 #endif
34725 #ifdef __cplusplus
34727 #endif
34730 main ()
34732 return f != $ac_func;
34734 return 0;
34736 _ACEOF
34737 rm -f conftest.$ac_objext conftest$ac_exeext
34738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34739 (eval $ac_link) 2>conftest.er1
34740 ac_status=$?
34741 grep -v '^ *+' conftest.er1 >conftest.err
34742 rm -f conftest.er1
34743 cat conftest.err >&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); } &&
34746 { ac_try='test -z "$ac_c_werror_flag"
34747 || test ! -s conftest.err'
34748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749 (eval $ac_try) 2>&5
34750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; } &&
34753 { ac_try='test -s conftest$ac_exeext'
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 eval "$as_ac_var=yes"
34760 else
34761 echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34764 eval "$as_ac_var=no"
34766 rm -f conftest.err conftest.$ac_objext \
34767 conftest$ac_exeext conftest.$ac_ext
34769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34771 if test `eval echo '${'$as_ac_var'}'` = yes; then
34772 cat >>confdefs.h <<_ACEOF
34773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34774 _ACEOF
34777 done
34782 echo "$as_me:$LINENO: checking for float round functions" >&5
34783 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34784 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34785 echo $ECHO_N "(cached) $ECHO_C" >&6
34786 else
34790 ac_ext=cc
34791 ac_cpp='$CXXCPP $CPPFLAGS'
34792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34796 cat >conftest.$ac_ext <<_ACEOF
34797 /* confdefs.h. */
34798 _ACEOF
34799 cat confdefs.h >>conftest.$ac_ext
34800 cat >>conftest.$ac_ext <<_ACEOF
34801 /* end confdefs.h. */
34802 #include <math.h>
34804 main ()
34806 `for x in ceilf floorf; do echo "$x (0);"; done`
34808 return 0;
34810 _ACEOF
34811 rm -f conftest.$ac_objext
34812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34813 (eval $ac_compile) 2>conftest.er1
34814 ac_status=$?
34815 grep -v '^ *+' conftest.er1 >conftest.err
34816 rm -f conftest.er1
34817 cat conftest.err >&5
34818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819 (exit $ac_status); } &&
34820 { ac_try='test -z "$ac_cxx_werror_flag"
34821 || test ! -s conftest.err'
34822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823 (eval $ac_try) 2>&5
34824 ac_status=$?
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; } &&
34827 { ac_try='test -s conftest.$ac_objext'
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34830 ac_status=$?
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; }; then
34833 glibcxx_cv_func_float_round_use=yes
34834 else
34835 echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34838 glibcxx_cv_func_float_round_use=no
34840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34841 ac_ext=c
34842 ac_cpp='$CPP $CPPFLAGS'
34843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34849 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
34850 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
34851 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
34854 for ac_func in ceilf floorf
34856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34857 echo "$as_me:$LINENO: checking for $ac_func" >&5
34858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34859 if eval "test \"\${$as_ac_var+set}\" = set"; then
34860 echo $ECHO_N "(cached) $ECHO_C" >&6
34861 else
34862 if test x$gcc_no_link = xyes; then
34863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34865 { (exit 1); exit 1; }; }
34867 cat >conftest.$ac_ext <<_ACEOF
34868 /* confdefs.h. */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h. */
34873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34875 #define $ac_func innocuous_$ac_func
34877 /* System header to define __stub macros and hopefully few prototypes,
34878 which can conflict with char $ac_func (); below.
34879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880 <limits.h> exists even on freestanding compilers. */
34882 #ifdef __STDC__
34883 # include <limits.h>
34884 #else
34885 # include <assert.h>
34886 #endif
34888 #undef $ac_func
34890 /* Override any gcc2 internal prototype to avoid an error. */
34891 #ifdef __cplusplus
34892 extern "C"
34894 #endif
34895 /* We use char because int might match the return type of a gcc2
34896 builtin and then its argument prototype would still apply. */
34897 char $ac_func ();
34898 /* The GNU C library defines this for functions which it implements
34899 to always fail with ENOSYS. Some functions are actually named
34900 something starting with __ and the normal name is an alias. */
34901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34902 choke me
34903 #else
34904 char (*f) () = $ac_func;
34905 #endif
34906 #ifdef __cplusplus
34908 #endif
34911 main ()
34913 return f != $ac_func;
34915 return 0;
34917 _ACEOF
34918 rm -f conftest.$ac_objext conftest$ac_exeext
34919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920 (eval $ac_link) 2>conftest.er1
34921 ac_status=$?
34922 grep -v '^ *+' conftest.er1 >conftest.err
34923 rm -f conftest.er1
34924 cat conftest.err >&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); } &&
34927 { ac_try='test -z "$ac_c_werror_flag"
34928 || test ! -s conftest.err'
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34931 ac_status=$?
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; } &&
34934 { ac_try='test -s conftest$ac_exeext'
34935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936 (eval $ac_try) 2>&5
34937 ac_status=$?
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); }; }; then
34940 eval "$as_ac_var=yes"
34941 else
34942 echo "$as_me: failed program was:" >&5
34943 sed 's/^/| /' conftest.$ac_ext >&5
34945 eval "$as_ac_var=no"
34947 rm -f conftest.err conftest.$ac_objext \
34948 conftest$ac_exeext conftest.$ac_ext
34950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34952 if test `eval echo '${'$as_ac_var'}'` = yes; then
34953 cat >>confdefs.h <<_ACEOF
34954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34955 _ACEOF
34958 done
34964 echo "$as_me:$LINENO: checking for expf declaration" >&5
34965 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
34966 if test x${glibcxx_cv_func_expf_use+set} != xset; then
34967 if test "${glibcxx_cv_func_expf_use+set}" = set; then
34968 echo $ECHO_N "(cached) $ECHO_C" >&6
34969 else
34973 ac_ext=cc
34974 ac_cpp='$CXXCPP $CPPFLAGS'
34975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34979 cat >conftest.$ac_ext <<_ACEOF
34980 /* confdefs.h. */
34981 _ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h. */
34985 #include <math.h>
34986 #ifdef HAVE_IEEEFP_H
34987 #include <ieeefp.h>
34988 #endif
34991 main ()
34993 expf(0);
34995 return 0;
34997 _ACEOF
34998 rm -f conftest.$ac_objext
34999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35000 (eval $ac_compile) 2>conftest.er1
35001 ac_status=$?
35002 grep -v '^ *+' conftest.er1 >conftest.err
35003 rm -f conftest.er1
35004 cat conftest.err >&5
35005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); } &&
35007 { ac_try='test -z "$ac_cxx_werror_flag"
35008 || test ! -s conftest.err'
35009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35010 (eval $ac_try) 2>&5
35011 ac_status=$?
35012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013 (exit $ac_status); }; } &&
35014 { ac_try='test -s conftest.$ac_objext'
35015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35016 (eval $ac_try) 2>&5
35017 ac_status=$?
35018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); }; }; then
35020 glibcxx_cv_func_expf_use=yes
35021 else
35022 echo "$as_me: failed program was:" >&5
35023 sed 's/^/| /' conftest.$ac_ext >&5
35025 glibcxx_cv_func_expf_use=no
35027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35028 ac_ext=c
35029 ac_cpp='$CPP $CPPFLAGS'
35030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35038 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
35039 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
35041 if test x$glibcxx_cv_func_expf_use = x"yes"; then
35043 for ac_func in expf
35045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35046 echo "$as_me:$LINENO: checking for $ac_func" >&5
35047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35048 if eval "test \"\${$as_ac_var+set}\" = set"; then
35049 echo $ECHO_N "(cached) $ECHO_C" >&6
35050 else
35051 if test x$gcc_no_link = xyes; then
35052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35054 { (exit 1); exit 1; }; }
35056 cat >conftest.$ac_ext <<_ACEOF
35057 /* confdefs.h. */
35058 _ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h. */
35062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35064 #define $ac_func innocuous_$ac_func
35066 /* System header to define __stub macros and hopefully few prototypes,
35067 which can conflict with char $ac_func (); below.
35068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35069 <limits.h> exists even on freestanding compilers. */
35071 #ifdef __STDC__
35072 # include <limits.h>
35073 #else
35074 # include <assert.h>
35075 #endif
35077 #undef $ac_func
35079 /* Override any gcc2 internal prototype to avoid an error. */
35080 #ifdef __cplusplus
35081 extern "C"
35083 #endif
35084 /* We use char because int might match the return type of a gcc2
35085 builtin and then its argument prototype would still apply. */
35086 char $ac_func ();
35087 /* The GNU C library defines this for functions which it implements
35088 to always fail with ENOSYS. Some functions are actually named
35089 something starting with __ and the normal name is an alias. */
35090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35091 choke me
35092 #else
35093 char (*f) () = $ac_func;
35094 #endif
35095 #ifdef __cplusplus
35097 #endif
35100 main ()
35102 return f != $ac_func;
35104 return 0;
35106 _ACEOF
35107 rm -f conftest.$ac_objext conftest$ac_exeext
35108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35109 (eval $ac_link) 2>conftest.er1
35110 ac_status=$?
35111 grep -v '^ *+' conftest.er1 >conftest.err
35112 rm -f conftest.er1
35113 cat conftest.err >&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } &&
35116 { ac_try='test -z "$ac_c_werror_flag"
35117 || test ! -s conftest.err'
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; } &&
35123 { ac_try='test -s conftest$ac_exeext'
35124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125 (eval $ac_try) 2>&5
35126 ac_status=$?
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); }; }; then
35129 eval "$as_ac_var=yes"
35130 else
35131 echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35134 eval "$as_ac_var=no"
35136 rm -f conftest.err conftest.$ac_objext \
35137 conftest$ac_exeext conftest.$ac_ext
35139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35141 if test `eval echo '${'$as_ac_var'}'` = yes; then
35142 cat >>confdefs.h <<_ACEOF
35143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35144 _ACEOF
35147 done
35149 else
35151 echo "$as_me:$LINENO: checking for _expf declaration" >&5
35152 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
35153 if test x${glibcxx_cv_func__expf_use+set} != xset; then
35154 if test "${glibcxx_cv_func__expf_use+set}" = set; then
35155 echo $ECHO_N "(cached) $ECHO_C" >&6
35156 else
35160 ac_ext=cc
35161 ac_cpp='$CXXCPP $CPPFLAGS'
35162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35166 cat >conftest.$ac_ext <<_ACEOF
35167 /* confdefs.h. */
35168 _ACEOF
35169 cat confdefs.h >>conftest.$ac_ext
35170 cat >>conftest.$ac_ext <<_ACEOF
35171 /* end confdefs.h. */
35172 #include <math.h>
35173 #ifdef HAVE_IEEEFP_H
35174 #include <ieeefp.h>
35175 #endif
35178 main ()
35180 _expf(0);
35182 return 0;
35184 _ACEOF
35185 rm -f conftest.$ac_objext
35186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35187 (eval $ac_compile) 2>conftest.er1
35188 ac_status=$?
35189 grep -v '^ *+' conftest.er1 >conftest.err
35190 rm -f conftest.er1
35191 cat conftest.err >&5
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); } &&
35194 { ac_try='test -z "$ac_cxx_werror_flag"
35195 || test ! -s conftest.err'
35196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35197 (eval $ac_try) 2>&5
35198 ac_status=$?
35199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); }; } &&
35201 { ac_try='test -s conftest.$ac_objext'
35202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203 (eval $ac_try) 2>&5
35204 ac_status=$?
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); }; }; then
35207 glibcxx_cv_func__expf_use=yes
35208 else
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35212 glibcxx_cv_func__expf_use=no
35214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35215 ac_ext=c
35216 ac_cpp='$CPP $CPPFLAGS'
35217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35225 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
35226 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
35228 if test x$glibcxx_cv_func__expf_use = x"yes"; then
35230 for ac_func in _expf
35232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35233 echo "$as_me:$LINENO: checking for $ac_func" >&5
35234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35235 if eval "test \"\${$as_ac_var+set}\" = set"; then
35236 echo $ECHO_N "(cached) $ECHO_C" >&6
35237 else
35238 if test x$gcc_no_link = xyes; then
35239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35241 { (exit 1); exit 1; }; }
35243 cat >conftest.$ac_ext <<_ACEOF
35244 /* confdefs.h. */
35245 _ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h. */
35249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35251 #define $ac_func innocuous_$ac_func
35253 /* System header to define __stub macros and hopefully few prototypes,
35254 which can conflict with char $ac_func (); below.
35255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35256 <limits.h> exists even on freestanding compilers. */
35258 #ifdef __STDC__
35259 # include <limits.h>
35260 #else
35261 # include <assert.h>
35262 #endif
35264 #undef $ac_func
35266 /* Override any gcc2 internal prototype to avoid an error. */
35267 #ifdef __cplusplus
35268 extern "C"
35270 #endif
35271 /* We use char because int might match the return type of a gcc2
35272 builtin and then its argument prototype would still apply. */
35273 char $ac_func ();
35274 /* The GNU C library defines this for functions which it implements
35275 to always fail with ENOSYS. Some functions are actually named
35276 something starting with __ and the normal name is an alias. */
35277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35278 choke me
35279 #else
35280 char (*f) () = $ac_func;
35281 #endif
35282 #ifdef __cplusplus
35284 #endif
35287 main ()
35289 return f != $ac_func;
35291 return 0;
35293 _ACEOF
35294 rm -f conftest.$ac_objext conftest$ac_exeext
35295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35296 (eval $ac_link) 2>conftest.er1
35297 ac_status=$?
35298 grep -v '^ *+' conftest.er1 >conftest.err
35299 rm -f conftest.er1
35300 cat conftest.err >&5
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); } &&
35303 { ac_try='test -z "$ac_c_werror_flag"
35304 || test ! -s conftest.err'
35305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306 (eval $ac_try) 2>&5
35307 ac_status=$?
35308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); }; } &&
35310 { ac_try='test -s conftest$ac_exeext'
35311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312 (eval $ac_try) 2>&5
35313 ac_status=$?
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; }; then
35316 eval "$as_ac_var=yes"
35317 else
35318 echo "$as_me: failed program was:" >&5
35319 sed 's/^/| /' conftest.$ac_ext >&5
35321 eval "$as_ac_var=no"
35323 rm -f conftest.err conftest.$ac_objext \
35324 conftest$ac_exeext conftest.$ac_ext
35326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35328 if test `eval echo '${'$as_ac_var'}'` = yes; then
35329 cat >>confdefs.h <<_ACEOF
35330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35331 _ACEOF
35334 done
35341 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
35342 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
35343 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35344 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
35345 echo $ECHO_N "(cached) $ECHO_C" >&6
35346 else
35350 ac_ext=cc
35351 ac_cpp='$CXXCPP $CPPFLAGS'
35352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35356 cat >conftest.$ac_ext <<_ACEOF
35357 /* confdefs.h. */
35358 _ACEOF
35359 cat confdefs.h >>conftest.$ac_ext
35360 cat >>conftest.$ac_ext <<_ACEOF
35361 /* end confdefs.h. */
35362 #include <math.h>
35363 #ifdef HAVE_IEEEFP_H
35364 #include <ieeefp.h>
35365 #endif
35368 main ()
35370 isnanf(0);
35372 return 0;
35374 _ACEOF
35375 rm -f conftest.$ac_objext
35376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35377 (eval $ac_compile) 2>conftest.er1
35378 ac_status=$?
35379 grep -v '^ *+' conftest.er1 >conftest.err
35380 rm -f conftest.er1
35381 cat conftest.err >&5
35382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383 (exit $ac_status); } &&
35384 { ac_try='test -z "$ac_cxx_werror_flag"
35385 || test ! -s conftest.err'
35386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387 (eval $ac_try) 2>&5
35388 ac_status=$?
35389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390 (exit $ac_status); }; } &&
35391 { ac_try='test -s conftest.$ac_objext'
35392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35393 (eval $ac_try) 2>&5
35394 ac_status=$?
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); }; }; then
35397 glibcxx_cv_func_isnanf_use=yes
35398 else
35399 echo "$as_me: failed program was:" >&5
35400 sed 's/^/| /' conftest.$ac_ext >&5
35402 glibcxx_cv_func_isnanf_use=no
35404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35405 ac_ext=c
35406 ac_cpp='$CPP $CPPFLAGS'
35407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35415 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
35416 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
35418 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35420 for ac_func in isnanf
35422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35423 echo "$as_me:$LINENO: checking for $ac_func" >&5
35424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35425 if eval "test \"\${$as_ac_var+set}\" = set"; then
35426 echo $ECHO_N "(cached) $ECHO_C" >&6
35427 else
35428 if test x$gcc_no_link = xyes; then
35429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35431 { (exit 1); exit 1; }; }
35433 cat >conftest.$ac_ext <<_ACEOF
35434 /* confdefs.h. */
35435 _ACEOF
35436 cat confdefs.h >>conftest.$ac_ext
35437 cat >>conftest.$ac_ext <<_ACEOF
35438 /* end confdefs.h. */
35439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35441 #define $ac_func innocuous_$ac_func
35443 /* System header to define __stub macros and hopefully few prototypes,
35444 which can conflict with char $ac_func (); below.
35445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35446 <limits.h> exists even on freestanding compilers. */
35448 #ifdef __STDC__
35449 # include <limits.h>
35450 #else
35451 # include <assert.h>
35452 #endif
35454 #undef $ac_func
35456 /* Override any gcc2 internal prototype to avoid an error. */
35457 #ifdef __cplusplus
35458 extern "C"
35460 #endif
35461 /* We use char because int might match the return type of a gcc2
35462 builtin and then its argument prototype would still apply. */
35463 char $ac_func ();
35464 /* The GNU C library defines this for functions which it implements
35465 to always fail with ENOSYS. Some functions are actually named
35466 something starting with __ and the normal name is an alias. */
35467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35468 choke me
35469 #else
35470 char (*f) () = $ac_func;
35471 #endif
35472 #ifdef __cplusplus
35474 #endif
35477 main ()
35479 return f != $ac_func;
35481 return 0;
35483 _ACEOF
35484 rm -f conftest.$ac_objext conftest$ac_exeext
35485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35486 (eval $ac_link) 2>conftest.er1
35487 ac_status=$?
35488 grep -v '^ *+' conftest.er1 >conftest.err
35489 rm -f conftest.er1
35490 cat conftest.err >&5
35491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492 (exit $ac_status); } &&
35493 { ac_try='test -z "$ac_c_werror_flag"
35494 || test ! -s conftest.err'
35495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35496 (eval $ac_try) 2>&5
35497 ac_status=$?
35498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499 (exit $ac_status); }; } &&
35500 { ac_try='test -s conftest$ac_exeext'
35501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502 (eval $ac_try) 2>&5
35503 ac_status=$?
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); }; }; then
35506 eval "$as_ac_var=yes"
35507 else
35508 echo "$as_me: failed program was:" >&5
35509 sed 's/^/| /' conftest.$ac_ext >&5
35511 eval "$as_ac_var=no"
35513 rm -f conftest.err conftest.$ac_objext \
35514 conftest$ac_exeext conftest.$ac_ext
35516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35518 if test `eval echo '${'$as_ac_var'}'` = yes; then
35519 cat >>confdefs.h <<_ACEOF
35520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35521 _ACEOF
35524 done
35526 else
35528 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35529 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35530 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35531 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35532 echo $ECHO_N "(cached) $ECHO_C" >&6
35533 else
35537 ac_ext=cc
35538 ac_cpp='$CXXCPP $CPPFLAGS'
35539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35543 cat >conftest.$ac_ext <<_ACEOF
35544 /* confdefs.h. */
35545 _ACEOF
35546 cat confdefs.h >>conftest.$ac_ext
35547 cat >>conftest.$ac_ext <<_ACEOF
35548 /* end confdefs.h. */
35549 #include <math.h>
35550 #ifdef HAVE_IEEEFP_H
35551 #include <ieeefp.h>
35552 #endif
35555 main ()
35557 _isnanf(0);
35559 return 0;
35561 _ACEOF
35562 rm -f conftest.$ac_objext
35563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35564 (eval $ac_compile) 2>conftest.er1
35565 ac_status=$?
35566 grep -v '^ *+' conftest.er1 >conftest.err
35567 rm -f conftest.er1
35568 cat conftest.err >&5
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); } &&
35571 { ac_try='test -z "$ac_cxx_werror_flag"
35572 || test ! -s conftest.err'
35573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35574 (eval $ac_try) 2>&5
35575 ac_status=$?
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); }; } &&
35578 { ac_try='test -s conftest.$ac_objext'
35579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35580 (eval $ac_try) 2>&5
35581 ac_status=$?
35582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583 (exit $ac_status); }; }; then
35584 glibcxx_cv_func__isnanf_use=yes
35585 else
35586 echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35589 glibcxx_cv_func__isnanf_use=no
35591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35592 ac_ext=c
35593 ac_cpp='$CPP $CPPFLAGS'
35594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35602 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35603 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35605 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35607 for ac_func in _isnanf
35609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35610 echo "$as_me:$LINENO: checking for $ac_func" >&5
35611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35612 if eval "test \"\${$as_ac_var+set}\" = set"; then
35613 echo $ECHO_N "(cached) $ECHO_C" >&6
35614 else
35615 if test x$gcc_no_link = xyes; then
35616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35618 { (exit 1); exit 1; }; }
35620 cat >conftest.$ac_ext <<_ACEOF
35621 /* confdefs.h. */
35622 _ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h. */
35626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35628 #define $ac_func innocuous_$ac_func
35630 /* System header to define __stub macros and hopefully few prototypes,
35631 which can conflict with char $ac_func (); below.
35632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35633 <limits.h> exists even on freestanding compilers. */
35635 #ifdef __STDC__
35636 # include <limits.h>
35637 #else
35638 # include <assert.h>
35639 #endif
35641 #undef $ac_func
35643 /* Override any gcc2 internal prototype to avoid an error. */
35644 #ifdef __cplusplus
35645 extern "C"
35647 #endif
35648 /* We use char because int might match the return type of a gcc2
35649 builtin and then its argument prototype would still apply. */
35650 char $ac_func ();
35651 /* The GNU C library defines this for functions which it implements
35652 to always fail with ENOSYS. Some functions are actually named
35653 something starting with __ and the normal name is an alias. */
35654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35655 choke me
35656 #else
35657 char (*f) () = $ac_func;
35658 #endif
35659 #ifdef __cplusplus
35661 #endif
35664 main ()
35666 return f != $ac_func;
35668 return 0;
35670 _ACEOF
35671 rm -f conftest.$ac_objext conftest$ac_exeext
35672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35673 (eval $ac_link) 2>conftest.er1
35674 ac_status=$?
35675 grep -v '^ *+' conftest.er1 >conftest.err
35676 rm -f conftest.er1
35677 cat conftest.err >&5
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } &&
35680 { ac_try='test -z "$ac_c_werror_flag"
35681 || test ! -s conftest.err'
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
35684 ac_status=$?
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; } &&
35687 { ac_try='test -s conftest$ac_exeext'
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35690 ac_status=$?
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; }; then
35693 eval "$as_ac_var=yes"
35694 else
35695 echo "$as_me: failed program was:" >&5
35696 sed 's/^/| /' conftest.$ac_ext >&5
35698 eval "$as_ac_var=no"
35700 rm -f conftest.err conftest.$ac_objext \
35701 conftest$ac_exeext conftest.$ac_ext
35703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35705 if test `eval echo '${'$as_ac_var'}'` = yes; then
35706 cat >>confdefs.h <<_ACEOF
35707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35708 _ACEOF
35711 done
35718 echo "$as_me:$LINENO: checking for isinff declaration" >&5
35719 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35720 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35721 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35722 echo $ECHO_N "(cached) $ECHO_C" >&6
35723 else
35727 ac_ext=cc
35728 ac_cpp='$CXXCPP $CPPFLAGS'
35729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35733 cat >conftest.$ac_ext <<_ACEOF
35734 /* confdefs.h. */
35735 _ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h. */
35739 #include <math.h>
35740 #ifdef HAVE_IEEEFP_H
35741 #include <ieeefp.h>
35742 #endif
35745 main ()
35747 isinff(0);
35749 return 0;
35751 _ACEOF
35752 rm -f conftest.$ac_objext
35753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35754 (eval $ac_compile) 2>conftest.er1
35755 ac_status=$?
35756 grep -v '^ *+' conftest.er1 >conftest.err
35757 rm -f conftest.er1
35758 cat conftest.err >&5
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); } &&
35761 { ac_try='test -z "$ac_cxx_werror_flag"
35762 || test ! -s conftest.err'
35763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35764 (eval $ac_try) 2>&5
35765 ac_status=$?
35766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767 (exit $ac_status); }; } &&
35768 { ac_try='test -s conftest.$ac_objext'
35769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770 (eval $ac_try) 2>&5
35771 ac_status=$?
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); }; }; then
35774 glibcxx_cv_func_isinff_use=yes
35775 else
35776 echo "$as_me: failed program was:" >&5
35777 sed 's/^/| /' conftest.$ac_ext >&5
35779 glibcxx_cv_func_isinff_use=no
35781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35782 ac_ext=c
35783 ac_cpp='$CPP $CPPFLAGS'
35784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35792 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35793 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35795 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35797 for ac_func in isinff
35799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35800 echo "$as_me:$LINENO: checking for $ac_func" >&5
35801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35802 if eval "test \"\${$as_ac_var+set}\" = set"; then
35803 echo $ECHO_N "(cached) $ECHO_C" >&6
35804 else
35805 if test x$gcc_no_link = xyes; then
35806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35808 { (exit 1); exit 1; }; }
35810 cat >conftest.$ac_ext <<_ACEOF
35811 /* confdefs.h. */
35812 _ACEOF
35813 cat confdefs.h >>conftest.$ac_ext
35814 cat >>conftest.$ac_ext <<_ACEOF
35815 /* end confdefs.h. */
35816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35818 #define $ac_func innocuous_$ac_func
35820 /* System header to define __stub macros and hopefully few prototypes,
35821 which can conflict with char $ac_func (); below.
35822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35823 <limits.h> exists even on freestanding compilers. */
35825 #ifdef __STDC__
35826 # include <limits.h>
35827 #else
35828 # include <assert.h>
35829 #endif
35831 #undef $ac_func
35833 /* Override any gcc2 internal prototype to avoid an error. */
35834 #ifdef __cplusplus
35835 extern "C"
35837 #endif
35838 /* We use char because int might match the return type of a gcc2
35839 builtin and then its argument prototype would still apply. */
35840 char $ac_func ();
35841 /* The GNU C library defines this for functions which it implements
35842 to always fail with ENOSYS. Some functions are actually named
35843 something starting with __ and the normal name is an alias. */
35844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35845 choke me
35846 #else
35847 char (*f) () = $ac_func;
35848 #endif
35849 #ifdef __cplusplus
35851 #endif
35854 main ()
35856 return f != $ac_func;
35858 return 0;
35860 _ACEOF
35861 rm -f conftest.$ac_objext conftest$ac_exeext
35862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35863 (eval $ac_link) 2>conftest.er1
35864 ac_status=$?
35865 grep -v '^ *+' conftest.er1 >conftest.err
35866 rm -f conftest.er1
35867 cat conftest.err >&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); } &&
35870 { ac_try='test -z "$ac_c_werror_flag"
35871 || test ! -s conftest.err'
35872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873 (eval $ac_try) 2>&5
35874 ac_status=$?
35875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876 (exit $ac_status); }; } &&
35877 { ac_try='test -s conftest$ac_exeext'
35878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879 (eval $ac_try) 2>&5
35880 ac_status=$?
35881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 (exit $ac_status); }; }; then
35883 eval "$as_ac_var=yes"
35884 else
35885 echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35888 eval "$as_ac_var=no"
35890 rm -f conftest.err conftest.$ac_objext \
35891 conftest$ac_exeext conftest.$ac_ext
35893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35895 if test `eval echo '${'$as_ac_var'}'` = yes; then
35896 cat >>confdefs.h <<_ACEOF
35897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35898 _ACEOF
35901 done
35903 else
35905 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
35906 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
35907 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
35908 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
35909 echo $ECHO_N "(cached) $ECHO_C" >&6
35910 else
35914 ac_ext=cc
35915 ac_cpp='$CXXCPP $CPPFLAGS'
35916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35920 cat >conftest.$ac_ext <<_ACEOF
35921 /* confdefs.h. */
35922 _ACEOF
35923 cat confdefs.h >>conftest.$ac_ext
35924 cat >>conftest.$ac_ext <<_ACEOF
35925 /* end confdefs.h. */
35926 #include <math.h>
35927 #ifdef HAVE_IEEEFP_H
35928 #include <ieeefp.h>
35929 #endif
35932 main ()
35934 _isinff(0);
35936 return 0;
35938 _ACEOF
35939 rm -f conftest.$ac_objext
35940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35941 (eval $ac_compile) 2>conftest.er1
35942 ac_status=$?
35943 grep -v '^ *+' conftest.er1 >conftest.err
35944 rm -f conftest.er1
35945 cat conftest.err >&5
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); } &&
35948 { ac_try='test -z "$ac_cxx_werror_flag"
35949 || test ! -s conftest.err'
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35952 ac_status=$?
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; } &&
35955 { ac_try='test -s conftest.$ac_objext'
35956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957 (eval $ac_try) 2>&5
35958 ac_status=$?
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); }; }; then
35961 glibcxx_cv_func__isinff_use=yes
35962 else
35963 echo "$as_me: failed program was:" >&5
35964 sed 's/^/| /' conftest.$ac_ext >&5
35966 glibcxx_cv_func__isinff_use=no
35968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35969 ac_ext=c
35970 ac_cpp='$CPP $CPPFLAGS'
35971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35979 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
35980 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
35982 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
35984 for ac_func in _isinff
35986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35987 echo "$as_me:$LINENO: checking for $ac_func" >&5
35988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35989 if eval "test \"\${$as_ac_var+set}\" = set"; then
35990 echo $ECHO_N "(cached) $ECHO_C" >&6
35991 else
35992 if test x$gcc_no_link = xyes; then
35993 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35994 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35995 { (exit 1); exit 1; }; }
35997 cat >conftest.$ac_ext <<_ACEOF
35998 /* confdefs.h. */
35999 _ACEOF
36000 cat confdefs.h >>conftest.$ac_ext
36001 cat >>conftest.$ac_ext <<_ACEOF
36002 /* end confdefs.h. */
36003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36005 #define $ac_func innocuous_$ac_func
36007 /* System header to define __stub macros and hopefully few prototypes,
36008 which can conflict with char $ac_func (); below.
36009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36010 <limits.h> exists even on freestanding compilers. */
36012 #ifdef __STDC__
36013 # include <limits.h>
36014 #else
36015 # include <assert.h>
36016 #endif
36018 #undef $ac_func
36020 /* Override any gcc2 internal prototype to avoid an error. */
36021 #ifdef __cplusplus
36022 extern "C"
36024 #endif
36025 /* We use char because int might match the return type of a gcc2
36026 builtin and then its argument prototype would still apply. */
36027 char $ac_func ();
36028 /* The GNU C library defines this for functions which it implements
36029 to always fail with ENOSYS. Some functions are actually named
36030 something starting with __ and the normal name is an alias. */
36031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36032 choke me
36033 #else
36034 char (*f) () = $ac_func;
36035 #endif
36036 #ifdef __cplusplus
36038 #endif
36041 main ()
36043 return f != $ac_func;
36045 return 0;
36047 _ACEOF
36048 rm -f conftest.$ac_objext conftest$ac_exeext
36049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36050 (eval $ac_link) 2>conftest.er1
36051 ac_status=$?
36052 grep -v '^ *+' conftest.er1 >conftest.err
36053 rm -f conftest.er1
36054 cat conftest.err >&5
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); } &&
36057 { ac_try='test -z "$ac_c_werror_flag"
36058 || test ! -s conftest.err'
36059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060 (eval $ac_try) 2>&5
36061 ac_status=$?
36062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063 (exit $ac_status); }; } &&
36064 { ac_try='test -s conftest$ac_exeext'
36065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066 (eval $ac_try) 2>&5
36067 ac_status=$?
36068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069 (exit $ac_status); }; }; then
36070 eval "$as_ac_var=yes"
36071 else
36072 echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.$ac_ext >&5
36075 eval "$as_ac_var=no"
36077 rm -f conftest.err conftest.$ac_objext \
36078 conftest$ac_exeext conftest.$ac_ext
36080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36082 if test `eval echo '${'$as_ac_var'}'` = yes; then
36083 cat >>confdefs.h <<_ACEOF
36084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36085 _ACEOF
36088 done
36095 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
36096 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
36097 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
36098 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
36099 echo $ECHO_N "(cached) $ECHO_C" >&6
36100 else
36104 ac_ext=cc
36105 ac_cpp='$CXXCPP $CPPFLAGS'
36106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36110 cat >conftest.$ac_ext <<_ACEOF
36111 /* confdefs.h. */
36112 _ACEOF
36113 cat confdefs.h >>conftest.$ac_ext
36114 cat >>conftest.$ac_ext <<_ACEOF
36115 /* end confdefs.h. */
36116 #include <math.h>
36118 main ()
36120 atan2f(0, 0);
36122 return 0;
36124 _ACEOF
36125 rm -f conftest.$ac_objext
36126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36127 (eval $ac_compile) 2>conftest.er1
36128 ac_status=$?
36129 grep -v '^ *+' conftest.er1 >conftest.err
36130 rm -f conftest.er1
36131 cat conftest.err >&5
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); } &&
36134 { ac_try='test -z "$ac_cxx_werror_flag"
36135 || test ! -s conftest.err'
36136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137 (eval $ac_try) 2>&5
36138 ac_status=$?
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); }; } &&
36141 { ac_try='test -s conftest.$ac_objext'
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36144 ac_status=$?
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; }; then
36147 glibcxx_cv_func_atan2f_use=yes
36148 else
36149 echo "$as_me: failed program was:" >&5
36150 sed 's/^/| /' conftest.$ac_ext >&5
36152 glibcxx_cv_func_atan2f_use=no
36154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36155 ac_ext=c
36156 ac_cpp='$CPP $CPPFLAGS'
36157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36165 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
36166 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
36168 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
36170 for ac_func in atan2f
36172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36173 echo "$as_me:$LINENO: checking for $ac_func" >&5
36174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36175 if eval "test \"\${$as_ac_var+set}\" = set"; then
36176 echo $ECHO_N "(cached) $ECHO_C" >&6
36177 else
36178 if test x$gcc_no_link = xyes; then
36179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36181 { (exit 1); exit 1; }; }
36183 cat >conftest.$ac_ext <<_ACEOF
36184 /* confdefs.h. */
36185 _ACEOF
36186 cat confdefs.h >>conftest.$ac_ext
36187 cat >>conftest.$ac_ext <<_ACEOF
36188 /* end confdefs.h. */
36189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36191 #define $ac_func innocuous_$ac_func
36193 /* System header to define __stub macros and hopefully few prototypes,
36194 which can conflict with char $ac_func (); below.
36195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36196 <limits.h> exists even on freestanding compilers. */
36198 #ifdef __STDC__
36199 # include <limits.h>
36200 #else
36201 # include <assert.h>
36202 #endif
36204 #undef $ac_func
36206 /* Override any gcc2 internal prototype to avoid an error. */
36207 #ifdef __cplusplus
36208 extern "C"
36210 #endif
36211 /* We use char because int might match the return type of a gcc2
36212 builtin and then its argument prototype would still apply. */
36213 char $ac_func ();
36214 /* The GNU C library defines this for functions which it implements
36215 to always fail with ENOSYS. Some functions are actually named
36216 something starting with __ and the normal name is an alias. */
36217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36218 choke me
36219 #else
36220 char (*f) () = $ac_func;
36221 #endif
36222 #ifdef __cplusplus
36224 #endif
36227 main ()
36229 return f != $ac_func;
36231 return 0;
36233 _ACEOF
36234 rm -f conftest.$ac_objext conftest$ac_exeext
36235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36236 (eval $ac_link) 2>conftest.er1
36237 ac_status=$?
36238 grep -v '^ *+' conftest.er1 >conftest.err
36239 rm -f conftest.er1
36240 cat conftest.err >&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); } &&
36243 { ac_try='test -z "$ac_c_werror_flag"
36244 || test ! -s conftest.err'
36245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246 (eval $ac_try) 2>&5
36247 ac_status=$?
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; } &&
36250 { ac_try='test -s conftest$ac_exeext'
36251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36252 (eval $ac_try) 2>&5
36253 ac_status=$?
36254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255 (exit $ac_status); }; }; then
36256 eval "$as_ac_var=yes"
36257 else
36258 echo "$as_me: failed program was:" >&5
36259 sed 's/^/| /' conftest.$ac_ext >&5
36261 eval "$as_ac_var=no"
36263 rm -f conftest.err conftest.$ac_objext \
36264 conftest$ac_exeext conftest.$ac_ext
36266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36268 if test `eval echo '${'$as_ac_var'}'` = yes; then
36269 cat >>confdefs.h <<_ACEOF
36270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36271 _ACEOF
36274 done
36276 else
36278 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
36279 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
36280 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
36281 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
36282 echo $ECHO_N "(cached) $ECHO_C" >&6
36283 else
36287 ac_ext=cc
36288 ac_cpp='$CXXCPP $CPPFLAGS'
36289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36293 cat >conftest.$ac_ext <<_ACEOF
36294 /* confdefs.h. */
36295 _ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h. */
36299 #include <math.h>
36301 main ()
36303 _atan2f(0, 0);
36305 return 0;
36307 _ACEOF
36308 rm -f conftest.$ac_objext
36309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36310 (eval $ac_compile) 2>conftest.er1
36311 ac_status=$?
36312 grep -v '^ *+' conftest.er1 >conftest.err
36313 rm -f conftest.er1
36314 cat conftest.err >&5
36315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316 (exit $ac_status); } &&
36317 { ac_try='test -z "$ac_cxx_werror_flag"
36318 || test ! -s conftest.err'
36319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36320 (eval $ac_try) 2>&5
36321 ac_status=$?
36322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323 (exit $ac_status); }; } &&
36324 { ac_try='test -s conftest.$ac_objext'
36325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36326 (eval $ac_try) 2>&5
36327 ac_status=$?
36328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329 (exit $ac_status); }; }; then
36330 glibcxx_cv_func__atan2f_use=yes
36331 else
36332 echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36335 glibcxx_cv_func__atan2f_use=no
36337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36338 ac_ext=c
36339 ac_cpp='$CPP $CPPFLAGS'
36340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36348 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
36349 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
36351 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
36353 for ac_func in _atan2f
36355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36356 echo "$as_me:$LINENO: checking for $ac_func" >&5
36357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36358 if eval "test \"\${$as_ac_var+set}\" = set"; then
36359 echo $ECHO_N "(cached) $ECHO_C" >&6
36360 else
36361 if test x$gcc_no_link = xyes; then
36362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36364 { (exit 1); exit 1; }; }
36366 cat >conftest.$ac_ext <<_ACEOF
36367 /* confdefs.h. */
36368 _ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h. */
36372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36374 #define $ac_func innocuous_$ac_func
36376 /* System header to define __stub macros and hopefully few prototypes,
36377 which can conflict with char $ac_func (); below.
36378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36379 <limits.h> exists even on freestanding compilers. */
36381 #ifdef __STDC__
36382 # include <limits.h>
36383 #else
36384 # include <assert.h>
36385 #endif
36387 #undef $ac_func
36389 /* Override any gcc2 internal prototype to avoid an error. */
36390 #ifdef __cplusplus
36391 extern "C"
36393 #endif
36394 /* We use char because int might match the return type of a gcc2
36395 builtin and then its argument prototype would still apply. */
36396 char $ac_func ();
36397 /* The GNU C library defines this for functions which it implements
36398 to always fail with ENOSYS. Some functions are actually named
36399 something starting with __ and the normal name is an alias. */
36400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36401 choke me
36402 #else
36403 char (*f) () = $ac_func;
36404 #endif
36405 #ifdef __cplusplus
36407 #endif
36410 main ()
36412 return f != $ac_func;
36414 return 0;
36416 _ACEOF
36417 rm -f conftest.$ac_objext conftest$ac_exeext
36418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36419 (eval $ac_link) 2>conftest.er1
36420 ac_status=$?
36421 grep -v '^ *+' conftest.er1 >conftest.err
36422 rm -f conftest.er1
36423 cat conftest.err >&5
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); } &&
36426 { ac_try='test -z "$ac_c_werror_flag"
36427 || test ! -s conftest.err'
36428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429 (eval $ac_try) 2>&5
36430 ac_status=$?
36431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432 (exit $ac_status); }; } &&
36433 { ac_try='test -s conftest$ac_exeext'
36434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435 (eval $ac_try) 2>&5
36436 ac_status=$?
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); }; }; then
36439 eval "$as_ac_var=yes"
36440 else
36441 echo "$as_me: failed program was:" >&5
36442 sed 's/^/| /' conftest.$ac_ext >&5
36444 eval "$as_ac_var=no"
36446 rm -f conftest.err conftest.$ac_objext \
36447 conftest$ac_exeext conftest.$ac_ext
36449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36451 if test `eval echo '${'$as_ac_var'}'` = yes; then
36452 cat >>confdefs.h <<_ACEOF
36453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36454 _ACEOF
36457 done
36464 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36465 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36466 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36467 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36468 echo $ECHO_N "(cached) $ECHO_C" >&6
36469 else
36473 ac_ext=cc
36474 ac_cpp='$CXXCPP $CPPFLAGS'
36475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36479 cat >conftest.$ac_ext <<_ACEOF
36480 /* confdefs.h. */
36481 _ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h. */
36485 #include <math.h>
36486 #ifdef HAVE_IEEEFP_H
36487 #include <ieeefp.h>
36488 #endif
36491 main ()
36493 fabsf(0);
36495 return 0;
36497 _ACEOF
36498 rm -f conftest.$ac_objext
36499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36500 (eval $ac_compile) 2>conftest.er1
36501 ac_status=$?
36502 grep -v '^ *+' conftest.er1 >conftest.err
36503 rm -f conftest.er1
36504 cat conftest.err >&5
36505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506 (exit $ac_status); } &&
36507 { ac_try='test -z "$ac_cxx_werror_flag"
36508 || test ! -s conftest.err'
36509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36510 (eval $ac_try) 2>&5
36511 ac_status=$?
36512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513 (exit $ac_status); }; } &&
36514 { ac_try='test -s conftest.$ac_objext'
36515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516 (eval $ac_try) 2>&5
36517 ac_status=$?
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); }; }; then
36520 glibcxx_cv_func_fabsf_use=yes
36521 else
36522 echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36525 glibcxx_cv_func_fabsf_use=no
36527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36528 ac_ext=c
36529 ac_cpp='$CPP $CPPFLAGS'
36530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36538 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36539 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36541 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36543 for ac_func in fabsf
36545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36546 echo "$as_me:$LINENO: checking for $ac_func" >&5
36547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36548 if eval "test \"\${$as_ac_var+set}\" = set"; then
36549 echo $ECHO_N "(cached) $ECHO_C" >&6
36550 else
36551 if test x$gcc_no_link = xyes; then
36552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36554 { (exit 1); exit 1; }; }
36556 cat >conftest.$ac_ext <<_ACEOF
36557 /* confdefs.h. */
36558 _ACEOF
36559 cat confdefs.h >>conftest.$ac_ext
36560 cat >>conftest.$ac_ext <<_ACEOF
36561 /* end confdefs.h. */
36562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36564 #define $ac_func innocuous_$ac_func
36566 /* System header to define __stub macros and hopefully few prototypes,
36567 which can conflict with char $ac_func (); below.
36568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36569 <limits.h> exists even on freestanding compilers. */
36571 #ifdef __STDC__
36572 # include <limits.h>
36573 #else
36574 # include <assert.h>
36575 #endif
36577 #undef $ac_func
36579 /* Override any gcc2 internal prototype to avoid an error. */
36580 #ifdef __cplusplus
36581 extern "C"
36583 #endif
36584 /* We use char because int might match the return type of a gcc2
36585 builtin and then its argument prototype would still apply. */
36586 char $ac_func ();
36587 /* The GNU C library defines this for functions which it implements
36588 to always fail with ENOSYS. Some functions are actually named
36589 something starting with __ and the normal name is an alias. */
36590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36591 choke me
36592 #else
36593 char (*f) () = $ac_func;
36594 #endif
36595 #ifdef __cplusplus
36597 #endif
36600 main ()
36602 return f != $ac_func;
36604 return 0;
36606 _ACEOF
36607 rm -f conftest.$ac_objext conftest$ac_exeext
36608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36609 (eval $ac_link) 2>conftest.er1
36610 ac_status=$?
36611 grep -v '^ *+' conftest.er1 >conftest.err
36612 rm -f conftest.er1
36613 cat conftest.err >&5
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); } &&
36616 { ac_try='test -z "$ac_c_werror_flag"
36617 || test ! -s conftest.err'
36618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619 (eval $ac_try) 2>&5
36620 ac_status=$?
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; } &&
36623 { ac_try='test -s conftest$ac_exeext'
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36626 ac_status=$?
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; }; then
36629 eval "$as_ac_var=yes"
36630 else
36631 echo "$as_me: failed program was:" >&5
36632 sed 's/^/| /' conftest.$ac_ext >&5
36634 eval "$as_ac_var=no"
36636 rm -f conftest.err conftest.$ac_objext \
36637 conftest$ac_exeext conftest.$ac_ext
36639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36641 if test `eval echo '${'$as_ac_var'}'` = yes; then
36642 cat >>confdefs.h <<_ACEOF
36643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36644 _ACEOF
36647 done
36649 else
36651 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36652 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36653 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36654 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36655 echo $ECHO_N "(cached) $ECHO_C" >&6
36656 else
36660 ac_ext=cc
36661 ac_cpp='$CXXCPP $CPPFLAGS'
36662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36666 cat >conftest.$ac_ext <<_ACEOF
36667 /* confdefs.h. */
36668 _ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h. */
36672 #include <math.h>
36673 #ifdef HAVE_IEEEFP_H
36674 #include <ieeefp.h>
36675 #endif
36678 main ()
36680 _fabsf(0);
36682 return 0;
36684 _ACEOF
36685 rm -f conftest.$ac_objext
36686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36687 (eval $ac_compile) 2>conftest.er1
36688 ac_status=$?
36689 grep -v '^ *+' conftest.er1 >conftest.err
36690 rm -f conftest.er1
36691 cat conftest.err >&5
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); } &&
36694 { ac_try='test -z "$ac_cxx_werror_flag"
36695 || test ! -s conftest.err'
36696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36697 (eval $ac_try) 2>&5
36698 ac_status=$?
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); }; } &&
36701 { ac_try='test -s conftest.$ac_objext'
36702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703 (eval $ac_try) 2>&5
36704 ac_status=$?
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); }; }; then
36707 glibcxx_cv_func__fabsf_use=yes
36708 else
36709 echo "$as_me: failed program was:" >&5
36710 sed 's/^/| /' conftest.$ac_ext >&5
36712 glibcxx_cv_func__fabsf_use=no
36714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36715 ac_ext=c
36716 ac_cpp='$CPP $CPPFLAGS'
36717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36725 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36726 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36728 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36730 for ac_func in _fabsf
36732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36733 echo "$as_me:$LINENO: checking for $ac_func" >&5
36734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36735 if eval "test \"\${$as_ac_var+set}\" = set"; then
36736 echo $ECHO_N "(cached) $ECHO_C" >&6
36737 else
36738 if test x$gcc_no_link = xyes; then
36739 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36741 { (exit 1); exit 1; }; }
36743 cat >conftest.$ac_ext <<_ACEOF
36744 /* confdefs.h. */
36745 _ACEOF
36746 cat confdefs.h >>conftest.$ac_ext
36747 cat >>conftest.$ac_ext <<_ACEOF
36748 /* end confdefs.h. */
36749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36751 #define $ac_func innocuous_$ac_func
36753 /* System header to define __stub macros and hopefully few prototypes,
36754 which can conflict with char $ac_func (); below.
36755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36756 <limits.h> exists even on freestanding compilers. */
36758 #ifdef __STDC__
36759 # include <limits.h>
36760 #else
36761 # include <assert.h>
36762 #endif
36764 #undef $ac_func
36766 /* Override any gcc2 internal prototype to avoid an error. */
36767 #ifdef __cplusplus
36768 extern "C"
36770 #endif
36771 /* We use char because int might match the return type of a gcc2
36772 builtin and then its argument prototype would still apply. */
36773 char $ac_func ();
36774 /* The GNU C library defines this for functions which it implements
36775 to always fail with ENOSYS. Some functions are actually named
36776 something starting with __ and the normal name is an alias. */
36777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36778 choke me
36779 #else
36780 char (*f) () = $ac_func;
36781 #endif
36782 #ifdef __cplusplus
36784 #endif
36787 main ()
36789 return f != $ac_func;
36791 return 0;
36793 _ACEOF
36794 rm -f conftest.$ac_objext conftest$ac_exeext
36795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36796 (eval $ac_link) 2>conftest.er1
36797 ac_status=$?
36798 grep -v '^ *+' conftest.er1 >conftest.err
36799 rm -f conftest.er1
36800 cat conftest.err >&5
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); } &&
36803 { ac_try='test -z "$ac_c_werror_flag"
36804 || test ! -s conftest.err'
36805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36806 (eval $ac_try) 2>&5
36807 ac_status=$?
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); }; } &&
36810 { ac_try='test -s conftest$ac_exeext'
36811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812 (eval $ac_try) 2>&5
36813 ac_status=$?
36814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815 (exit $ac_status); }; }; then
36816 eval "$as_ac_var=yes"
36817 else
36818 echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.$ac_ext >&5
36821 eval "$as_ac_var=no"
36823 rm -f conftest.err conftest.$ac_objext \
36824 conftest$ac_exeext conftest.$ac_ext
36826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36828 if test `eval echo '${'$as_ac_var'}'` = yes; then
36829 cat >>confdefs.h <<_ACEOF
36830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36831 _ACEOF
36834 done
36841 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36842 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36843 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36844 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
36845 echo $ECHO_N "(cached) $ECHO_C" >&6
36846 else
36850 ac_ext=cc
36851 ac_cpp='$CXXCPP $CPPFLAGS'
36852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36856 cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h. */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h. */
36862 #include <math.h>
36864 main ()
36866 fmodf(0, 0);
36868 return 0;
36870 _ACEOF
36871 rm -f conftest.$ac_objext
36872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36873 (eval $ac_compile) 2>conftest.er1
36874 ac_status=$?
36875 grep -v '^ *+' conftest.er1 >conftest.err
36876 rm -f conftest.er1
36877 cat conftest.err >&5
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); } &&
36880 { ac_try='test -z "$ac_cxx_werror_flag"
36881 || test ! -s conftest.err'
36882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36883 (eval $ac_try) 2>&5
36884 ac_status=$?
36885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36886 (exit $ac_status); }; } &&
36887 { ac_try='test -s conftest.$ac_objext'
36888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36889 (eval $ac_try) 2>&5
36890 ac_status=$?
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); }; }; then
36893 glibcxx_cv_func_fmodf_use=yes
36894 else
36895 echo "$as_me: failed program was:" >&5
36896 sed 's/^/| /' conftest.$ac_ext >&5
36898 glibcxx_cv_func_fmodf_use=no
36900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36901 ac_ext=c
36902 ac_cpp='$CPP $CPPFLAGS'
36903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36911 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
36912 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
36914 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36916 for ac_func in fmodf
36918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36919 echo "$as_me:$LINENO: checking for $ac_func" >&5
36920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36921 if eval "test \"\${$as_ac_var+set}\" = set"; then
36922 echo $ECHO_N "(cached) $ECHO_C" >&6
36923 else
36924 if test x$gcc_no_link = xyes; then
36925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36927 { (exit 1); exit 1; }; }
36929 cat >conftest.$ac_ext <<_ACEOF
36930 /* confdefs.h. */
36931 _ACEOF
36932 cat confdefs.h >>conftest.$ac_ext
36933 cat >>conftest.$ac_ext <<_ACEOF
36934 /* end confdefs.h. */
36935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36937 #define $ac_func innocuous_$ac_func
36939 /* System header to define __stub macros and hopefully few prototypes,
36940 which can conflict with char $ac_func (); below.
36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942 <limits.h> exists even on freestanding compilers. */
36944 #ifdef __STDC__
36945 # include <limits.h>
36946 #else
36947 # include <assert.h>
36948 #endif
36950 #undef $ac_func
36952 /* Override any gcc2 internal prototype to avoid an error. */
36953 #ifdef __cplusplus
36954 extern "C"
36956 #endif
36957 /* We use char because int might match the return type of a gcc2
36958 builtin and then its argument prototype would still apply. */
36959 char $ac_func ();
36960 /* The GNU C library defines this for functions which it implements
36961 to always fail with ENOSYS. Some functions are actually named
36962 something starting with __ and the normal name is an alias. */
36963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36964 choke me
36965 #else
36966 char (*f) () = $ac_func;
36967 #endif
36968 #ifdef __cplusplus
36970 #endif
36973 main ()
36975 return f != $ac_func;
36977 return 0;
36979 _ACEOF
36980 rm -f conftest.$ac_objext conftest$ac_exeext
36981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36982 (eval $ac_link) 2>conftest.er1
36983 ac_status=$?
36984 grep -v '^ *+' conftest.er1 >conftest.err
36985 rm -f conftest.er1
36986 cat conftest.err >&5
36987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988 (exit $ac_status); } &&
36989 { ac_try='test -z "$ac_c_werror_flag"
36990 || test ! -s conftest.err'
36991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992 (eval $ac_try) 2>&5
36993 ac_status=$?
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); }; } &&
36996 { ac_try='test -s conftest$ac_exeext'
36997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36998 (eval $ac_try) 2>&5
36999 ac_status=$?
37000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001 (exit $ac_status); }; }; then
37002 eval "$as_ac_var=yes"
37003 else
37004 echo "$as_me: failed program was:" >&5
37005 sed 's/^/| /' conftest.$ac_ext >&5
37007 eval "$as_ac_var=no"
37009 rm -f conftest.err conftest.$ac_objext \
37010 conftest$ac_exeext conftest.$ac_ext
37012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37014 if test `eval echo '${'$as_ac_var'}'` = yes; then
37015 cat >>confdefs.h <<_ACEOF
37016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37017 _ACEOF
37020 done
37022 else
37024 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
37025 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
37026 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
37027 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
37028 echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37033 ac_ext=cc
37034 ac_cpp='$CXXCPP $CPPFLAGS'
37035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37039 cat >conftest.$ac_ext <<_ACEOF
37040 /* confdefs.h. */
37041 _ACEOF
37042 cat confdefs.h >>conftest.$ac_ext
37043 cat >>conftest.$ac_ext <<_ACEOF
37044 /* end confdefs.h. */
37045 #include <math.h>
37047 main ()
37049 _fmodf(0, 0);
37051 return 0;
37053 _ACEOF
37054 rm -f conftest.$ac_objext
37055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37056 (eval $ac_compile) 2>conftest.er1
37057 ac_status=$?
37058 grep -v '^ *+' conftest.er1 >conftest.err
37059 rm -f conftest.er1
37060 cat conftest.err >&5
37061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062 (exit $ac_status); } &&
37063 { ac_try='test -z "$ac_cxx_werror_flag"
37064 || test ! -s conftest.err'
37065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37066 (eval $ac_try) 2>&5
37067 ac_status=$?
37068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069 (exit $ac_status); }; } &&
37070 { ac_try='test -s conftest.$ac_objext'
37071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37072 (eval $ac_try) 2>&5
37073 ac_status=$?
37074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075 (exit $ac_status); }; }; then
37076 glibcxx_cv_func__fmodf_use=yes
37077 else
37078 echo "$as_me: failed program was:" >&5
37079 sed 's/^/| /' conftest.$ac_ext >&5
37081 glibcxx_cv_func__fmodf_use=no
37083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37084 ac_ext=c
37085 ac_cpp='$CPP $CPPFLAGS'
37086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37094 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
37095 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
37097 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
37099 for ac_func in _fmodf
37101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37102 echo "$as_me:$LINENO: checking for $ac_func" >&5
37103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37104 if eval "test \"\${$as_ac_var+set}\" = set"; then
37105 echo $ECHO_N "(cached) $ECHO_C" >&6
37106 else
37107 if test x$gcc_no_link = xyes; then
37108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37110 { (exit 1); exit 1; }; }
37112 cat >conftest.$ac_ext <<_ACEOF
37113 /* confdefs.h. */
37114 _ACEOF
37115 cat confdefs.h >>conftest.$ac_ext
37116 cat >>conftest.$ac_ext <<_ACEOF
37117 /* end confdefs.h. */
37118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37120 #define $ac_func innocuous_$ac_func
37122 /* System header to define __stub macros and hopefully few prototypes,
37123 which can conflict with char $ac_func (); below.
37124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37125 <limits.h> exists even on freestanding compilers. */
37127 #ifdef __STDC__
37128 # include <limits.h>
37129 #else
37130 # include <assert.h>
37131 #endif
37133 #undef $ac_func
37135 /* Override any gcc2 internal prototype to avoid an error. */
37136 #ifdef __cplusplus
37137 extern "C"
37139 #endif
37140 /* We use char because int might match the return type of a gcc2
37141 builtin and then its argument prototype would still apply. */
37142 char $ac_func ();
37143 /* The GNU C library defines this for functions which it implements
37144 to always fail with ENOSYS. Some functions are actually named
37145 something starting with __ and the normal name is an alias. */
37146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37147 choke me
37148 #else
37149 char (*f) () = $ac_func;
37150 #endif
37151 #ifdef __cplusplus
37153 #endif
37156 main ()
37158 return f != $ac_func;
37160 return 0;
37162 _ACEOF
37163 rm -f conftest.$ac_objext conftest$ac_exeext
37164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37165 (eval $ac_link) 2>conftest.er1
37166 ac_status=$?
37167 grep -v '^ *+' conftest.er1 >conftest.err
37168 rm -f conftest.er1
37169 cat conftest.err >&5
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); } &&
37172 { ac_try='test -z "$ac_c_werror_flag"
37173 || test ! -s conftest.err'
37174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37175 (eval $ac_try) 2>&5
37176 ac_status=$?
37177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37178 (exit $ac_status); }; } &&
37179 { ac_try='test -s conftest$ac_exeext'
37180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37181 (eval $ac_try) 2>&5
37182 ac_status=$?
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); }; }; then
37185 eval "$as_ac_var=yes"
37186 else
37187 echo "$as_me: failed program was:" >&5
37188 sed 's/^/| /' conftest.$ac_ext >&5
37190 eval "$as_ac_var=no"
37192 rm -f conftest.err conftest.$ac_objext \
37193 conftest$ac_exeext conftest.$ac_ext
37195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37197 if test `eval echo '${'$as_ac_var'}'` = yes; then
37198 cat >>confdefs.h <<_ACEOF
37199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37200 _ACEOF
37203 done
37210 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
37211 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
37212 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
37213 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
37214 echo $ECHO_N "(cached) $ECHO_C" >&6
37215 else
37219 ac_ext=cc
37220 ac_cpp='$CXXCPP $CPPFLAGS'
37221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37225 cat >conftest.$ac_ext <<_ACEOF
37226 /* confdefs.h. */
37227 _ACEOF
37228 cat confdefs.h >>conftest.$ac_ext
37229 cat >>conftest.$ac_ext <<_ACEOF
37230 /* end confdefs.h. */
37231 #include <math.h>
37233 main ()
37235 frexpf(0, 0);
37237 return 0;
37239 _ACEOF
37240 rm -f conftest.$ac_objext
37241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37242 (eval $ac_compile) 2>conftest.er1
37243 ac_status=$?
37244 grep -v '^ *+' conftest.er1 >conftest.err
37245 rm -f conftest.er1
37246 cat conftest.err >&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } &&
37249 { ac_try='test -z "$ac_cxx_werror_flag"
37250 || test ! -s conftest.err'
37251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252 (eval $ac_try) 2>&5
37253 ac_status=$?
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; } &&
37256 { ac_try='test -s conftest.$ac_objext'
37257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258 (eval $ac_try) 2>&5
37259 ac_status=$?
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); }; }; then
37262 glibcxx_cv_func_frexpf_use=yes
37263 else
37264 echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37267 glibcxx_cv_func_frexpf_use=no
37269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37270 ac_ext=c
37271 ac_cpp='$CPP $CPPFLAGS'
37272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37280 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
37281 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
37283 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
37285 for ac_func in frexpf
37287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37288 echo "$as_me:$LINENO: checking for $ac_func" >&5
37289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37290 if eval "test \"\${$as_ac_var+set}\" = set"; then
37291 echo $ECHO_N "(cached) $ECHO_C" >&6
37292 else
37293 if test x$gcc_no_link = xyes; then
37294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37296 { (exit 1); exit 1; }; }
37298 cat >conftest.$ac_ext <<_ACEOF
37299 /* confdefs.h. */
37300 _ACEOF
37301 cat confdefs.h >>conftest.$ac_ext
37302 cat >>conftest.$ac_ext <<_ACEOF
37303 /* end confdefs.h. */
37304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37306 #define $ac_func innocuous_$ac_func
37308 /* System header to define __stub macros and hopefully few prototypes,
37309 which can conflict with char $ac_func (); below.
37310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37311 <limits.h> exists even on freestanding compilers. */
37313 #ifdef __STDC__
37314 # include <limits.h>
37315 #else
37316 # include <assert.h>
37317 #endif
37319 #undef $ac_func
37321 /* Override any gcc2 internal prototype to avoid an error. */
37322 #ifdef __cplusplus
37323 extern "C"
37325 #endif
37326 /* We use char because int might match the return type of a gcc2
37327 builtin and then its argument prototype would still apply. */
37328 char $ac_func ();
37329 /* The GNU C library defines this for functions which it implements
37330 to always fail with ENOSYS. Some functions are actually named
37331 something starting with __ and the normal name is an alias. */
37332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37333 choke me
37334 #else
37335 char (*f) () = $ac_func;
37336 #endif
37337 #ifdef __cplusplus
37339 #endif
37342 main ()
37344 return f != $ac_func;
37346 return 0;
37348 _ACEOF
37349 rm -f conftest.$ac_objext conftest$ac_exeext
37350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37351 (eval $ac_link) 2>conftest.er1
37352 ac_status=$?
37353 grep -v '^ *+' conftest.er1 >conftest.err
37354 rm -f conftest.er1
37355 cat conftest.err >&5
37356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357 (exit $ac_status); } &&
37358 { ac_try='test -z "$ac_c_werror_flag"
37359 || test ! -s conftest.err'
37360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37361 (eval $ac_try) 2>&5
37362 ac_status=$?
37363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364 (exit $ac_status); }; } &&
37365 { ac_try='test -s conftest$ac_exeext'
37366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37367 (eval $ac_try) 2>&5
37368 ac_status=$?
37369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370 (exit $ac_status); }; }; then
37371 eval "$as_ac_var=yes"
37372 else
37373 echo "$as_me: failed program was:" >&5
37374 sed 's/^/| /' conftest.$ac_ext >&5
37376 eval "$as_ac_var=no"
37378 rm -f conftest.err conftest.$ac_objext \
37379 conftest$ac_exeext conftest.$ac_ext
37381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37383 if test `eval echo '${'$as_ac_var'}'` = yes; then
37384 cat >>confdefs.h <<_ACEOF
37385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37386 _ACEOF
37389 done
37391 else
37393 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
37394 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
37395 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
37396 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
37397 echo $ECHO_N "(cached) $ECHO_C" >&6
37398 else
37402 ac_ext=cc
37403 ac_cpp='$CXXCPP $CPPFLAGS'
37404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37408 cat >conftest.$ac_ext <<_ACEOF
37409 /* confdefs.h. */
37410 _ACEOF
37411 cat confdefs.h >>conftest.$ac_ext
37412 cat >>conftest.$ac_ext <<_ACEOF
37413 /* end confdefs.h. */
37414 #include <math.h>
37416 main ()
37418 _frexpf(0, 0);
37420 return 0;
37422 _ACEOF
37423 rm -f conftest.$ac_objext
37424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37425 (eval $ac_compile) 2>conftest.er1
37426 ac_status=$?
37427 grep -v '^ *+' conftest.er1 >conftest.err
37428 rm -f conftest.er1
37429 cat conftest.err >&5
37430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431 (exit $ac_status); } &&
37432 { ac_try='test -z "$ac_cxx_werror_flag"
37433 || test ! -s conftest.err'
37434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37435 (eval $ac_try) 2>&5
37436 ac_status=$?
37437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); }; } &&
37439 { ac_try='test -s conftest.$ac_objext'
37440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37441 (eval $ac_try) 2>&5
37442 ac_status=$?
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); }; }; then
37445 glibcxx_cv_func__frexpf_use=yes
37446 else
37447 echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37450 glibcxx_cv_func__frexpf_use=no
37452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37453 ac_ext=c
37454 ac_cpp='$CPP $CPPFLAGS'
37455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37463 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37464 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37466 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37468 for ac_func in _frexpf
37470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37471 echo "$as_me:$LINENO: checking for $ac_func" >&5
37472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37473 if eval "test \"\${$as_ac_var+set}\" = set"; then
37474 echo $ECHO_N "(cached) $ECHO_C" >&6
37475 else
37476 if test x$gcc_no_link = xyes; then
37477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37479 { (exit 1); exit 1; }; }
37481 cat >conftest.$ac_ext <<_ACEOF
37482 /* confdefs.h. */
37483 _ACEOF
37484 cat confdefs.h >>conftest.$ac_ext
37485 cat >>conftest.$ac_ext <<_ACEOF
37486 /* end confdefs.h. */
37487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37489 #define $ac_func innocuous_$ac_func
37491 /* System header to define __stub macros and hopefully few prototypes,
37492 which can conflict with char $ac_func (); below.
37493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37494 <limits.h> exists even on freestanding compilers. */
37496 #ifdef __STDC__
37497 # include <limits.h>
37498 #else
37499 # include <assert.h>
37500 #endif
37502 #undef $ac_func
37504 /* Override any gcc2 internal prototype to avoid an error. */
37505 #ifdef __cplusplus
37506 extern "C"
37508 #endif
37509 /* We use char because int might match the return type of a gcc2
37510 builtin and then its argument prototype would still apply. */
37511 char $ac_func ();
37512 /* The GNU C library defines this for functions which it implements
37513 to always fail with ENOSYS. Some functions are actually named
37514 something starting with __ and the normal name is an alias. */
37515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37516 choke me
37517 #else
37518 char (*f) () = $ac_func;
37519 #endif
37520 #ifdef __cplusplus
37522 #endif
37525 main ()
37527 return f != $ac_func;
37529 return 0;
37531 _ACEOF
37532 rm -f conftest.$ac_objext conftest$ac_exeext
37533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37534 (eval $ac_link) 2>conftest.er1
37535 ac_status=$?
37536 grep -v '^ *+' conftest.er1 >conftest.err
37537 rm -f conftest.er1
37538 cat conftest.err >&5
37539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540 (exit $ac_status); } &&
37541 { ac_try='test -z "$ac_c_werror_flag"
37542 || test ! -s conftest.err'
37543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37544 (eval $ac_try) 2>&5
37545 ac_status=$?
37546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547 (exit $ac_status); }; } &&
37548 { ac_try='test -s conftest$ac_exeext'
37549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37550 (eval $ac_try) 2>&5
37551 ac_status=$?
37552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553 (exit $ac_status); }; }; then
37554 eval "$as_ac_var=yes"
37555 else
37556 echo "$as_me: failed program was:" >&5
37557 sed 's/^/| /' conftest.$ac_ext >&5
37559 eval "$as_ac_var=no"
37561 rm -f conftest.err conftest.$ac_objext \
37562 conftest$ac_exeext conftest.$ac_ext
37564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37566 if test `eval echo '${'$as_ac_var'}'` = yes; then
37567 cat >>confdefs.h <<_ACEOF
37568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37569 _ACEOF
37572 done
37579 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37580 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37581 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37582 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37583 echo $ECHO_N "(cached) $ECHO_C" >&6
37584 else
37588 ac_ext=cc
37589 ac_cpp='$CXXCPP $CPPFLAGS'
37590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37594 cat >conftest.$ac_ext <<_ACEOF
37595 /* confdefs.h. */
37596 _ACEOF
37597 cat confdefs.h >>conftest.$ac_ext
37598 cat >>conftest.$ac_ext <<_ACEOF
37599 /* end confdefs.h. */
37600 #include <math.h>
37602 main ()
37604 hypotf(0, 0);
37606 return 0;
37608 _ACEOF
37609 rm -f conftest.$ac_objext
37610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37611 (eval $ac_compile) 2>conftest.er1
37612 ac_status=$?
37613 grep -v '^ *+' conftest.er1 >conftest.err
37614 rm -f conftest.er1
37615 cat conftest.err >&5
37616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617 (exit $ac_status); } &&
37618 { ac_try='test -z "$ac_cxx_werror_flag"
37619 || test ! -s conftest.err'
37620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621 (eval $ac_try) 2>&5
37622 ac_status=$?
37623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624 (exit $ac_status); }; } &&
37625 { ac_try='test -s conftest.$ac_objext'
37626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37627 (eval $ac_try) 2>&5
37628 ac_status=$?
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); }; }; then
37631 glibcxx_cv_func_hypotf_use=yes
37632 else
37633 echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37636 glibcxx_cv_func_hypotf_use=no
37638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37639 ac_ext=c
37640 ac_cpp='$CPP $CPPFLAGS'
37641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37649 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37650 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37652 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37654 for ac_func in hypotf
37656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37657 echo "$as_me:$LINENO: checking for $ac_func" >&5
37658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37659 if eval "test \"\${$as_ac_var+set}\" = set"; then
37660 echo $ECHO_N "(cached) $ECHO_C" >&6
37661 else
37662 if test x$gcc_no_link = xyes; then
37663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37665 { (exit 1); exit 1; }; }
37667 cat >conftest.$ac_ext <<_ACEOF
37668 /* confdefs.h. */
37669 _ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h. */
37673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37675 #define $ac_func innocuous_$ac_func
37677 /* System header to define __stub macros and hopefully few prototypes,
37678 which can conflict with char $ac_func (); below.
37679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37680 <limits.h> exists even on freestanding compilers. */
37682 #ifdef __STDC__
37683 # include <limits.h>
37684 #else
37685 # include <assert.h>
37686 #endif
37688 #undef $ac_func
37690 /* Override any gcc2 internal prototype to avoid an error. */
37691 #ifdef __cplusplus
37692 extern "C"
37694 #endif
37695 /* We use char because int might match the return type of a gcc2
37696 builtin and then its argument prototype would still apply. */
37697 char $ac_func ();
37698 /* The GNU C library defines this for functions which it implements
37699 to always fail with ENOSYS. Some functions are actually named
37700 something starting with __ and the normal name is an alias. */
37701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37702 choke me
37703 #else
37704 char (*f) () = $ac_func;
37705 #endif
37706 #ifdef __cplusplus
37708 #endif
37711 main ()
37713 return f != $ac_func;
37715 return 0;
37717 _ACEOF
37718 rm -f conftest.$ac_objext conftest$ac_exeext
37719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37720 (eval $ac_link) 2>conftest.er1
37721 ac_status=$?
37722 grep -v '^ *+' conftest.er1 >conftest.err
37723 rm -f conftest.er1
37724 cat conftest.err >&5
37725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726 (exit $ac_status); } &&
37727 { ac_try='test -z "$ac_c_werror_flag"
37728 || test ! -s conftest.err'
37729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37730 (eval $ac_try) 2>&5
37731 ac_status=$?
37732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733 (exit $ac_status); }; } &&
37734 { ac_try='test -s conftest$ac_exeext'
37735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736 (eval $ac_try) 2>&5
37737 ac_status=$?
37738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739 (exit $ac_status); }; }; then
37740 eval "$as_ac_var=yes"
37741 else
37742 echo "$as_me: failed program was:" >&5
37743 sed 's/^/| /' conftest.$ac_ext >&5
37745 eval "$as_ac_var=no"
37747 rm -f conftest.err conftest.$ac_objext \
37748 conftest$ac_exeext conftest.$ac_ext
37750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37752 if test `eval echo '${'$as_ac_var'}'` = yes; then
37753 cat >>confdefs.h <<_ACEOF
37754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37755 _ACEOF
37758 done
37760 else
37762 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37763 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37764 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37765 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37766 echo $ECHO_N "(cached) $ECHO_C" >&6
37767 else
37771 ac_ext=cc
37772 ac_cpp='$CXXCPP $CPPFLAGS'
37773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37777 cat >conftest.$ac_ext <<_ACEOF
37778 /* confdefs.h. */
37779 _ACEOF
37780 cat confdefs.h >>conftest.$ac_ext
37781 cat >>conftest.$ac_ext <<_ACEOF
37782 /* end confdefs.h. */
37783 #include <math.h>
37785 main ()
37787 _hypotf(0, 0);
37789 return 0;
37791 _ACEOF
37792 rm -f conftest.$ac_objext
37793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37794 (eval $ac_compile) 2>conftest.er1
37795 ac_status=$?
37796 grep -v '^ *+' conftest.er1 >conftest.err
37797 rm -f conftest.er1
37798 cat conftest.err >&5
37799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37800 (exit $ac_status); } &&
37801 { ac_try='test -z "$ac_cxx_werror_flag"
37802 || test ! -s conftest.err'
37803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37804 (eval $ac_try) 2>&5
37805 ac_status=$?
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); }; } &&
37808 { ac_try='test -s conftest.$ac_objext'
37809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37810 (eval $ac_try) 2>&5
37811 ac_status=$?
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); }; }; then
37814 glibcxx_cv_func__hypotf_use=yes
37815 else
37816 echo "$as_me: failed program was:" >&5
37817 sed 's/^/| /' conftest.$ac_ext >&5
37819 glibcxx_cv_func__hypotf_use=no
37821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37822 ac_ext=c
37823 ac_cpp='$CPP $CPPFLAGS'
37824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37832 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37833 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37835 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37837 for ac_func in _hypotf
37839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37840 echo "$as_me:$LINENO: checking for $ac_func" >&5
37841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37842 if eval "test \"\${$as_ac_var+set}\" = set"; then
37843 echo $ECHO_N "(cached) $ECHO_C" >&6
37844 else
37845 if test x$gcc_no_link = xyes; then
37846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37848 { (exit 1); exit 1; }; }
37850 cat >conftest.$ac_ext <<_ACEOF
37851 /* confdefs.h. */
37852 _ACEOF
37853 cat confdefs.h >>conftest.$ac_ext
37854 cat >>conftest.$ac_ext <<_ACEOF
37855 /* end confdefs.h. */
37856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37858 #define $ac_func innocuous_$ac_func
37860 /* System header to define __stub macros and hopefully few prototypes,
37861 which can conflict with char $ac_func (); below.
37862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37863 <limits.h> exists even on freestanding compilers. */
37865 #ifdef __STDC__
37866 # include <limits.h>
37867 #else
37868 # include <assert.h>
37869 #endif
37871 #undef $ac_func
37873 /* Override any gcc2 internal prototype to avoid an error. */
37874 #ifdef __cplusplus
37875 extern "C"
37877 #endif
37878 /* We use char because int might match the return type of a gcc2
37879 builtin and then its argument prototype would still apply. */
37880 char $ac_func ();
37881 /* The GNU C library defines this for functions which it implements
37882 to always fail with ENOSYS. Some functions are actually named
37883 something starting with __ and the normal name is an alias. */
37884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37885 choke me
37886 #else
37887 char (*f) () = $ac_func;
37888 #endif
37889 #ifdef __cplusplus
37891 #endif
37894 main ()
37896 return f != $ac_func;
37898 return 0;
37900 _ACEOF
37901 rm -f conftest.$ac_objext conftest$ac_exeext
37902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37903 (eval $ac_link) 2>conftest.er1
37904 ac_status=$?
37905 grep -v '^ *+' conftest.er1 >conftest.err
37906 rm -f conftest.er1
37907 cat conftest.err >&5
37908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909 (exit $ac_status); } &&
37910 { ac_try='test -z "$ac_c_werror_flag"
37911 || test ! -s conftest.err'
37912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37913 (eval $ac_try) 2>&5
37914 ac_status=$?
37915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916 (exit $ac_status); }; } &&
37917 { ac_try='test -s conftest$ac_exeext'
37918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919 (eval $ac_try) 2>&5
37920 ac_status=$?
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); }; }; then
37923 eval "$as_ac_var=yes"
37924 else
37925 echo "$as_me: failed program was:" >&5
37926 sed 's/^/| /' conftest.$ac_ext >&5
37928 eval "$as_ac_var=no"
37930 rm -f conftest.err conftest.$ac_objext \
37931 conftest$ac_exeext conftest.$ac_ext
37933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37935 if test `eval echo '${'$as_ac_var'}'` = yes; then
37936 cat >>confdefs.h <<_ACEOF
37937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37938 _ACEOF
37941 done
37948 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
37949 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
37950 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
37951 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
37952 echo $ECHO_N "(cached) $ECHO_C" >&6
37953 else
37957 ac_ext=cc
37958 ac_cpp='$CXXCPP $CPPFLAGS'
37959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37963 cat >conftest.$ac_ext <<_ACEOF
37964 /* confdefs.h. */
37965 _ACEOF
37966 cat confdefs.h >>conftest.$ac_ext
37967 cat >>conftest.$ac_ext <<_ACEOF
37968 /* end confdefs.h. */
37969 #include <math.h>
37971 main ()
37973 ldexpf(0, 0);
37975 return 0;
37977 _ACEOF
37978 rm -f conftest.$ac_objext
37979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37980 (eval $ac_compile) 2>conftest.er1
37981 ac_status=$?
37982 grep -v '^ *+' conftest.er1 >conftest.err
37983 rm -f conftest.er1
37984 cat conftest.err >&5
37985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986 (exit $ac_status); } &&
37987 { ac_try='test -z "$ac_cxx_werror_flag"
37988 || test ! -s conftest.err'
37989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37990 (eval $ac_try) 2>&5
37991 ac_status=$?
37992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993 (exit $ac_status); }; } &&
37994 { ac_try='test -s conftest.$ac_objext'
37995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37996 (eval $ac_try) 2>&5
37997 ac_status=$?
37998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999 (exit $ac_status); }; }; then
38000 glibcxx_cv_func_ldexpf_use=yes
38001 else
38002 echo "$as_me: failed program was:" >&5
38003 sed 's/^/| /' conftest.$ac_ext >&5
38005 glibcxx_cv_func_ldexpf_use=no
38007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38008 ac_ext=c
38009 ac_cpp='$CPP $CPPFLAGS'
38010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38018 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
38019 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
38021 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
38023 for ac_func in ldexpf
38025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38026 echo "$as_me:$LINENO: checking for $ac_func" >&5
38027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38028 if eval "test \"\${$as_ac_var+set}\" = set"; then
38029 echo $ECHO_N "(cached) $ECHO_C" >&6
38030 else
38031 if test x$gcc_no_link = xyes; then
38032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38034 { (exit 1); exit 1; }; }
38036 cat >conftest.$ac_ext <<_ACEOF
38037 /* confdefs.h. */
38038 _ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h. */
38042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38044 #define $ac_func innocuous_$ac_func
38046 /* System header to define __stub macros and hopefully few prototypes,
38047 which can conflict with char $ac_func (); below.
38048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38049 <limits.h> exists even on freestanding compilers. */
38051 #ifdef __STDC__
38052 # include <limits.h>
38053 #else
38054 # include <assert.h>
38055 #endif
38057 #undef $ac_func
38059 /* Override any gcc2 internal prototype to avoid an error. */
38060 #ifdef __cplusplus
38061 extern "C"
38063 #endif
38064 /* We use char because int might match the return type of a gcc2
38065 builtin and then its argument prototype would still apply. */
38066 char $ac_func ();
38067 /* The GNU C library defines this for functions which it implements
38068 to always fail with ENOSYS. Some functions are actually named
38069 something starting with __ and the normal name is an alias. */
38070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38071 choke me
38072 #else
38073 char (*f) () = $ac_func;
38074 #endif
38075 #ifdef __cplusplus
38077 #endif
38080 main ()
38082 return f != $ac_func;
38084 return 0;
38086 _ACEOF
38087 rm -f conftest.$ac_objext conftest$ac_exeext
38088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38089 (eval $ac_link) 2>conftest.er1
38090 ac_status=$?
38091 grep -v '^ *+' conftest.er1 >conftest.err
38092 rm -f conftest.er1
38093 cat conftest.err >&5
38094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095 (exit $ac_status); } &&
38096 { ac_try='test -z "$ac_c_werror_flag"
38097 || test ! -s conftest.err'
38098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38099 (eval $ac_try) 2>&5
38100 ac_status=$?
38101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102 (exit $ac_status); }; } &&
38103 { ac_try='test -s conftest$ac_exeext'
38104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38105 (eval $ac_try) 2>&5
38106 ac_status=$?
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); }; }; then
38109 eval "$as_ac_var=yes"
38110 else
38111 echo "$as_me: failed program was:" >&5
38112 sed 's/^/| /' conftest.$ac_ext >&5
38114 eval "$as_ac_var=no"
38116 rm -f conftest.err conftest.$ac_objext \
38117 conftest$ac_exeext conftest.$ac_ext
38119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38121 if test `eval echo '${'$as_ac_var'}'` = yes; then
38122 cat >>confdefs.h <<_ACEOF
38123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38124 _ACEOF
38127 done
38129 else
38131 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
38132 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
38133 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
38134 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
38135 echo $ECHO_N "(cached) $ECHO_C" >&6
38136 else
38140 ac_ext=cc
38141 ac_cpp='$CXXCPP $CPPFLAGS'
38142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38146 cat >conftest.$ac_ext <<_ACEOF
38147 /* confdefs.h. */
38148 _ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h. */
38152 #include <math.h>
38154 main ()
38156 _ldexpf(0, 0);
38158 return 0;
38160 _ACEOF
38161 rm -f conftest.$ac_objext
38162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38163 (eval $ac_compile) 2>conftest.er1
38164 ac_status=$?
38165 grep -v '^ *+' conftest.er1 >conftest.err
38166 rm -f conftest.er1
38167 cat conftest.err >&5
38168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169 (exit $ac_status); } &&
38170 { ac_try='test -z "$ac_cxx_werror_flag"
38171 || test ! -s conftest.err'
38172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38173 (eval $ac_try) 2>&5
38174 ac_status=$?
38175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38176 (exit $ac_status); }; } &&
38177 { ac_try='test -s conftest.$ac_objext'
38178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179 (eval $ac_try) 2>&5
38180 ac_status=$?
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); }; }; then
38183 glibcxx_cv_func__ldexpf_use=yes
38184 else
38185 echo "$as_me: failed program was:" >&5
38186 sed 's/^/| /' conftest.$ac_ext >&5
38188 glibcxx_cv_func__ldexpf_use=no
38190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38191 ac_ext=c
38192 ac_cpp='$CPP $CPPFLAGS'
38193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38201 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
38202 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
38204 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
38206 for ac_func in _ldexpf
38208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38209 echo "$as_me:$LINENO: checking for $ac_func" >&5
38210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38211 if eval "test \"\${$as_ac_var+set}\" = set"; then
38212 echo $ECHO_N "(cached) $ECHO_C" >&6
38213 else
38214 if test x$gcc_no_link = xyes; then
38215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38217 { (exit 1); exit 1; }; }
38219 cat >conftest.$ac_ext <<_ACEOF
38220 /* confdefs.h. */
38221 _ACEOF
38222 cat confdefs.h >>conftest.$ac_ext
38223 cat >>conftest.$ac_ext <<_ACEOF
38224 /* end confdefs.h. */
38225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38227 #define $ac_func innocuous_$ac_func
38229 /* System header to define __stub macros and hopefully few prototypes,
38230 which can conflict with char $ac_func (); below.
38231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38232 <limits.h> exists even on freestanding compilers. */
38234 #ifdef __STDC__
38235 # include <limits.h>
38236 #else
38237 # include <assert.h>
38238 #endif
38240 #undef $ac_func
38242 /* Override any gcc2 internal prototype to avoid an error. */
38243 #ifdef __cplusplus
38244 extern "C"
38246 #endif
38247 /* We use char because int might match the return type of a gcc2
38248 builtin and then its argument prototype would still apply. */
38249 char $ac_func ();
38250 /* The GNU C library defines this for functions which it implements
38251 to always fail with ENOSYS. Some functions are actually named
38252 something starting with __ and the normal name is an alias. */
38253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38254 choke me
38255 #else
38256 char (*f) () = $ac_func;
38257 #endif
38258 #ifdef __cplusplus
38260 #endif
38263 main ()
38265 return f != $ac_func;
38267 return 0;
38269 _ACEOF
38270 rm -f conftest.$ac_objext conftest$ac_exeext
38271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38272 (eval $ac_link) 2>conftest.er1
38273 ac_status=$?
38274 grep -v '^ *+' conftest.er1 >conftest.err
38275 rm -f conftest.er1
38276 cat conftest.err >&5
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); } &&
38279 { ac_try='test -z "$ac_c_werror_flag"
38280 || test ! -s conftest.err'
38281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38282 (eval $ac_try) 2>&5
38283 ac_status=$?
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); }; } &&
38286 { ac_try='test -s conftest$ac_exeext'
38287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288 (eval $ac_try) 2>&5
38289 ac_status=$?
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); }; }; then
38292 eval "$as_ac_var=yes"
38293 else
38294 echo "$as_me: failed program was:" >&5
38295 sed 's/^/| /' conftest.$ac_ext >&5
38297 eval "$as_ac_var=no"
38299 rm -f conftest.err conftest.$ac_objext \
38300 conftest$ac_exeext conftest.$ac_ext
38302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38304 if test `eval echo '${'$as_ac_var'}'` = yes; then
38305 cat >>confdefs.h <<_ACEOF
38306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38307 _ACEOF
38310 done
38317 echo "$as_me:$LINENO: checking for logf declaration" >&5
38318 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
38319 if test x${glibcxx_cv_func_logf_use+set} != xset; then
38320 if test "${glibcxx_cv_func_logf_use+set}" = set; then
38321 echo $ECHO_N "(cached) $ECHO_C" >&6
38322 else
38326 ac_ext=cc
38327 ac_cpp='$CXXCPP $CPPFLAGS'
38328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38332 cat >conftest.$ac_ext <<_ACEOF
38333 /* confdefs.h. */
38334 _ACEOF
38335 cat confdefs.h >>conftest.$ac_ext
38336 cat >>conftest.$ac_ext <<_ACEOF
38337 /* end confdefs.h. */
38338 #include <math.h>
38339 #ifdef HAVE_IEEEFP_H
38340 #include <ieeefp.h>
38341 #endif
38344 main ()
38346 logf(0);
38348 return 0;
38350 _ACEOF
38351 rm -f conftest.$ac_objext
38352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38353 (eval $ac_compile) 2>conftest.er1
38354 ac_status=$?
38355 grep -v '^ *+' conftest.er1 >conftest.err
38356 rm -f conftest.er1
38357 cat conftest.err >&5
38358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); } &&
38360 { ac_try='test -z "$ac_cxx_werror_flag"
38361 || test ! -s conftest.err'
38362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363 (eval $ac_try) 2>&5
38364 ac_status=$?
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); }; } &&
38367 { ac_try='test -s conftest.$ac_objext'
38368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369 (eval $ac_try) 2>&5
38370 ac_status=$?
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); }; }; then
38373 glibcxx_cv_func_logf_use=yes
38374 else
38375 echo "$as_me: failed program was:" >&5
38376 sed 's/^/| /' conftest.$ac_ext >&5
38378 glibcxx_cv_func_logf_use=no
38380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38381 ac_ext=c
38382 ac_cpp='$CPP $CPPFLAGS'
38383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38391 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
38392 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
38394 if test x$glibcxx_cv_func_logf_use = x"yes"; then
38396 for ac_func in logf
38398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38399 echo "$as_me:$LINENO: checking for $ac_func" >&5
38400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38401 if eval "test \"\${$as_ac_var+set}\" = set"; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38403 else
38404 if test x$gcc_no_link = xyes; then
38405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38407 { (exit 1); exit 1; }; }
38409 cat >conftest.$ac_ext <<_ACEOF
38410 /* confdefs.h. */
38411 _ACEOF
38412 cat confdefs.h >>conftest.$ac_ext
38413 cat >>conftest.$ac_ext <<_ACEOF
38414 /* end confdefs.h. */
38415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38417 #define $ac_func innocuous_$ac_func
38419 /* System header to define __stub macros and hopefully few prototypes,
38420 which can conflict with char $ac_func (); below.
38421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38422 <limits.h> exists even on freestanding compilers. */
38424 #ifdef __STDC__
38425 # include <limits.h>
38426 #else
38427 # include <assert.h>
38428 #endif
38430 #undef $ac_func
38432 /* Override any gcc2 internal prototype to avoid an error. */
38433 #ifdef __cplusplus
38434 extern "C"
38436 #endif
38437 /* We use char because int might match the return type of a gcc2
38438 builtin and then its argument prototype would still apply. */
38439 char $ac_func ();
38440 /* The GNU C library defines this for functions which it implements
38441 to always fail with ENOSYS. Some functions are actually named
38442 something starting with __ and the normal name is an alias. */
38443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38444 choke me
38445 #else
38446 char (*f) () = $ac_func;
38447 #endif
38448 #ifdef __cplusplus
38450 #endif
38453 main ()
38455 return f != $ac_func;
38457 return 0;
38459 _ACEOF
38460 rm -f conftest.$ac_objext conftest$ac_exeext
38461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38462 (eval $ac_link) 2>conftest.er1
38463 ac_status=$?
38464 grep -v '^ *+' conftest.er1 >conftest.err
38465 rm -f conftest.er1
38466 cat conftest.err >&5
38467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468 (exit $ac_status); } &&
38469 { ac_try='test -z "$ac_c_werror_flag"
38470 || test ! -s conftest.err'
38471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38472 (eval $ac_try) 2>&5
38473 ac_status=$?
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); }; } &&
38476 { ac_try='test -s conftest$ac_exeext'
38477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478 (eval $ac_try) 2>&5
38479 ac_status=$?
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); }; }; then
38482 eval "$as_ac_var=yes"
38483 else
38484 echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38487 eval "$as_ac_var=no"
38489 rm -f conftest.err conftest.$ac_objext \
38490 conftest$ac_exeext conftest.$ac_ext
38492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38494 if test `eval echo '${'$as_ac_var'}'` = yes; then
38495 cat >>confdefs.h <<_ACEOF
38496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38497 _ACEOF
38500 done
38502 else
38504 echo "$as_me:$LINENO: checking for _logf declaration" >&5
38505 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38506 if test x${glibcxx_cv_func__logf_use+set} != xset; then
38507 if test "${glibcxx_cv_func__logf_use+set}" = set; then
38508 echo $ECHO_N "(cached) $ECHO_C" >&6
38509 else
38513 ac_ext=cc
38514 ac_cpp='$CXXCPP $CPPFLAGS'
38515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38519 cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h. */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h. */
38525 #include <math.h>
38526 #ifdef HAVE_IEEEFP_H
38527 #include <ieeefp.h>
38528 #endif
38531 main ()
38533 _logf(0);
38535 return 0;
38537 _ACEOF
38538 rm -f conftest.$ac_objext
38539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38540 (eval $ac_compile) 2>conftest.er1
38541 ac_status=$?
38542 grep -v '^ *+' conftest.er1 >conftest.err
38543 rm -f conftest.er1
38544 cat conftest.err >&5
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); } &&
38547 { ac_try='test -z "$ac_cxx_werror_flag"
38548 || test ! -s conftest.err'
38549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38550 (eval $ac_try) 2>&5
38551 ac_status=$?
38552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38553 (exit $ac_status); }; } &&
38554 { ac_try='test -s conftest.$ac_objext'
38555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556 (eval $ac_try) 2>&5
38557 ac_status=$?
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; }; then
38560 glibcxx_cv_func__logf_use=yes
38561 else
38562 echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38565 glibcxx_cv_func__logf_use=no
38567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38568 ac_ext=c
38569 ac_cpp='$CPP $CPPFLAGS'
38570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38578 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38579 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38581 if test x$glibcxx_cv_func__logf_use = x"yes"; then
38583 for ac_func in _logf
38585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38586 echo "$as_me:$LINENO: checking for $ac_func" >&5
38587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38588 if eval "test \"\${$as_ac_var+set}\" = set"; then
38589 echo $ECHO_N "(cached) $ECHO_C" >&6
38590 else
38591 if test x$gcc_no_link = xyes; then
38592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38594 { (exit 1); exit 1; }; }
38596 cat >conftest.$ac_ext <<_ACEOF
38597 /* confdefs.h. */
38598 _ACEOF
38599 cat confdefs.h >>conftest.$ac_ext
38600 cat >>conftest.$ac_ext <<_ACEOF
38601 /* end confdefs.h. */
38602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38604 #define $ac_func innocuous_$ac_func
38606 /* System header to define __stub macros and hopefully few prototypes,
38607 which can conflict with char $ac_func (); below.
38608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38609 <limits.h> exists even on freestanding compilers. */
38611 #ifdef __STDC__
38612 # include <limits.h>
38613 #else
38614 # include <assert.h>
38615 #endif
38617 #undef $ac_func
38619 /* Override any gcc2 internal prototype to avoid an error. */
38620 #ifdef __cplusplus
38621 extern "C"
38623 #endif
38624 /* We use char because int might match the return type of a gcc2
38625 builtin and then its argument prototype would still apply. */
38626 char $ac_func ();
38627 /* The GNU C library defines this for functions which it implements
38628 to always fail with ENOSYS. Some functions are actually named
38629 something starting with __ and the normal name is an alias. */
38630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38631 choke me
38632 #else
38633 char (*f) () = $ac_func;
38634 #endif
38635 #ifdef __cplusplus
38637 #endif
38640 main ()
38642 return f != $ac_func;
38644 return 0;
38646 _ACEOF
38647 rm -f conftest.$ac_objext conftest$ac_exeext
38648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38649 (eval $ac_link) 2>conftest.er1
38650 ac_status=$?
38651 grep -v '^ *+' conftest.er1 >conftest.err
38652 rm -f conftest.er1
38653 cat conftest.err >&5
38654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 (exit $ac_status); } &&
38656 { ac_try='test -z "$ac_c_werror_flag"
38657 || test ! -s conftest.err'
38658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38659 (eval $ac_try) 2>&5
38660 ac_status=$?
38661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38662 (exit $ac_status); }; } &&
38663 { ac_try='test -s conftest$ac_exeext'
38664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38665 (eval $ac_try) 2>&5
38666 ac_status=$?
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); }; }; then
38669 eval "$as_ac_var=yes"
38670 else
38671 echo "$as_me: failed program was:" >&5
38672 sed 's/^/| /' conftest.$ac_ext >&5
38674 eval "$as_ac_var=no"
38676 rm -f conftest.err conftest.$ac_objext \
38677 conftest$ac_exeext conftest.$ac_ext
38679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38681 if test `eval echo '${'$as_ac_var'}'` = yes; then
38682 cat >>confdefs.h <<_ACEOF
38683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38684 _ACEOF
38687 done
38694 echo "$as_me:$LINENO: checking for log10f declaration" >&5
38695 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38696 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38697 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38698 echo $ECHO_N "(cached) $ECHO_C" >&6
38699 else
38703 ac_ext=cc
38704 ac_cpp='$CXXCPP $CPPFLAGS'
38705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38709 cat >conftest.$ac_ext <<_ACEOF
38710 /* confdefs.h. */
38711 _ACEOF
38712 cat confdefs.h >>conftest.$ac_ext
38713 cat >>conftest.$ac_ext <<_ACEOF
38714 /* end confdefs.h. */
38715 #include <math.h>
38716 #ifdef HAVE_IEEEFP_H
38717 #include <ieeefp.h>
38718 #endif
38721 main ()
38723 log10f(0);
38725 return 0;
38727 _ACEOF
38728 rm -f conftest.$ac_objext
38729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38730 (eval $ac_compile) 2>conftest.er1
38731 ac_status=$?
38732 grep -v '^ *+' conftest.er1 >conftest.err
38733 rm -f conftest.er1
38734 cat conftest.err >&5
38735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); } &&
38737 { ac_try='test -z "$ac_cxx_werror_flag"
38738 || test ! -s conftest.err'
38739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38740 (eval $ac_try) 2>&5
38741 ac_status=$?
38742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743 (exit $ac_status); }; } &&
38744 { ac_try='test -s conftest.$ac_objext'
38745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746 (eval $ac_try) 2>&5
38747 ac_status=$?
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); }; }; then
38750 glibcxx_cv_func_log10f_use=yes
38751 else
38752 echo "$as_me: failed program was:" >&5
38753 sed 's/^/| /' conftest.$ac_ext >&5
38755 glibcxx_cv_func_log10f_use=no
38757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38758 ac_ext=c
38759 ac_cpp='$CPP $CPPFLAGS'
38760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38768 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38769 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38771 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38773 for ac_func in log10f
38775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38776 echo "$as_me:$LINENO: checking for $ac_func" >&5
38777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38778 if eval "test \"\${$as_ac_var+set}\" = set"; then
38779 echo $ECHO_N "(cached) $ECHO_C" >&6
38780 else
38781 if test x$gcc_no_link = xyes; then
38782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38784 { (exit 1); exit 1; }; }
38786 cat >conftest.$ac_ext <<_ACEOF
38787 /* confdefs.h. */
38788 _ACEOF
38789 cat confdefs.h >>conftest.$ac_ext
38790 cat >>conftest.$ac_ext <<_ACEOF
38791 /* end confdefs.h. */
38792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38794 #define $ac_func innocuous_$ac_func
38796 /* System header to define __stub macros and hopefully few prototypes,
38797 which can conflict with char $ac_func (); below.
38798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38799 <limits.h> exists even on freestanding compilers. */
38801 #ifdef __STDC__
38802 # include <limits.h>
38803 #else
38804 # include <assert.h>
38805 #endif
38807 #undef $ac_func
38809 /* Override any gcc2 internal prototype to avoid an error. */
38810 #ifdef __cplusplus
38811 extern "C"
38813 #endif
38814 /* We use char because int might match the return type of a gcc2
38815 builtin and then its argument prototype would still apply. */
38816 char $ac_func ();
38817 /* The GNU C library defines this for functions which it implements
38818 to always fail with ENOSYS. Some functions are actually named
38819 something starting with __ and the normal name is an alias. */
38820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38821 choke me
38822 #else
38823 char (*f) () = $ac_func;
38824 #endif
38825 #ifdef __cplusplus
38827 #endif
38830 main ()
38832 return f != $ac_func;
38834 return 0;
38836 _ACEOF
38837 rm -f conftest.$ac_objext conftest$ac_exeext
38838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38839 (eval $ac_link) 2>conftest.er1
38840 ac_status=$?
38841 grep -v '^ *+' conftest.er1 >conftest.err
38842 rm -f conftest.er1
38843 cat conftest.err >&5
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); } &&
38846 { ac_try='test -z "$ac_c_werror_flag"
38847 || test ! -s conftest.err'
38848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849 (eval $ac_try) 2>&5
38850 ac_status=$?
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); }; } &&
38853 { ac_try='test -s conftest$ac_exeext'
38854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855 (eval $ac_try) 2>&5
38856 ac_status=$?
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); }; }; then
38859 eval "$as_ac_var=yes"
38860 else
38861 echo "$as_me: failed program was:" >&5
38862 sed 's/^/| /' conftest.$ac_ext >&5
38864 eval "$as_ac_var=no"
38866 rm -f conftest.err conftest.$ac_objext \
38867 conftest$ac_exeext conftest.$ac_ext
38869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38871 if test `eval echo '${'$as_ac_var'}'` = yes; then
38872 cat >>confdefs.h <<_ACEOF
38873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38874 _ACEOF
38877 done
38879 else
38881 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
38882 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
38883 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
38884 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
38885 echo $ECHO_N "(cached) $ECHO_C" >&6
38886 else
38890 ac_ext=cc
38891 ac_cpp='$CXXCPP $CPPFLAGS'
38892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38896 cat >conftest.$ac_ext <<_ACEOF
38897 /* confdefs.h. */
38898 _ACEOF
38899 cat confdefs.h >>conftest.$ac_ext
38900 cat >>conftest.$ac_ext <<_ACEOF
38901 /* end confdefs.h. */
38902 #include <math.h>
38903 #ifdef HAVE_IEEEFP_H
38904 #include <ieeefp.h>
38905 #endif
38908 main ()
38910 _log10f(0);
38912 return 0;
38914 _ACEOF
38915 rm -f conftest.$ac_objext
38916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38917 (eval $ac_compile) 2>conftest.er1
38918 ac_status=$?
38919 grep -v '^ *+' conftest.er1 >conftest.err
38920 rm -f conftest.er1
38921 cat conftest.err >&5
38922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923 (exit $ac_status); } &&
38924 { ac_try='test -z "$ac_cxx_werror_flag"
38925 || test ! -s conftest.err'
38926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927 (eval $ac_try) 2>&5
38928 ac_status=$?
38929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930 (exit $ac_status); }; } &&
38931 { ac_try='test -s conftest.$ac_objext'
38932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38933 (eval $ac_try) 2>&5
38934 ac_status=$?
38935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936 (exit $ac_status); }; }; then
38937 glibcxx_cv_func__log10f_use=yes
38938 else
38939 echo "$as_me: failed program was:" >&5
38940 sed 's/^/| /' conftest.$ac_ext >&5
38942 glibcxx_cv_func__log10f_use=no
38944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38945 ac_ext=c
38946 ac_cpp='$CPP $CPPFLAGS'
38947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38955 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
38956 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
38958 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
38960 for ac_func in _log10f
38962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38963 echo "$as_me:$LINENO: checking for $ac_func" >&5
38964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38965 if eval "test \"\${$as_ac_var+set}\" = set"; then
38966 echo $ECHO_N "(cached) $ECHO_C" >&6
38967 else
38968 if test x$gcc_no_link = xyes; then
38969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38971 { (exit 1); exit 1; }; }
38973 cat >conftest.$ac_ext <<_ACEOF
38974 /* confdefs.h. */
38975 _ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h. */
38979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38981 #define $ac_func innocuous_$ac_func
38983 /* System header to define __stub macros and hopefully few prototypes,
38984 which can conflict with char $ac_func (); below.
38985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38986 <limits.h> exists even on freestanding compilers. */
38988 #ifdef __STDC__
38989 # include <limits.h>
38990 #else
38991 # include <assert.h>
38992 #endif
38994 #undef $ac_func
38996 /* Override any gcc2 internal prototype to avoid an error. */
38997 #ifdef __cplusplus
38998 extern "C"
39000 #endif
39001 /* We use char because int might match the return type of a gcc2
39002 builtin and then its argument prototype would still apply. */
39003 char $ac_func ();
39004 /* The GNU C library defines this for functions which it implements
39005 to always fail with ENOSYS. Some functions are actually named
39006 something starting with __ and the normal name is an alias. */
39007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39008 choke me
39009 #else
39010 char (*f) () = $ac_func;
39011 #endif
39012 #ifdef __cplusplus
39014 #endif
39017 main ()
39019 return f != $ac_func;
39021 return 0;
39023 _ACEOF
39024 rm -f conftest.$ac_objext conftest$ac_exeext
39025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39026 (eval $ac_link) 2>conftest.er1
39027 ac_status=$?
39028 grep -v '^ *+' conftest.er1 >conftest.err
39029 rm -f conftest.er1
39030 cat conftest.err >&5
39031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032 (exit $ac_status); } &&
39033 { ac_try='test -z "$ac_c_werror_flag"
39034 || test ! -s conftest.err'
39035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39036 (eval $ac_try) 2>&5
39037 ac_status=$?
39038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39039 (exit $ac_status); }; } &&
39040 { ac_try='test -s conftest$ac_exeext'
39041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39042 (eval $ac_try) 2>&5
39043 ac_status=$?
39044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045 (exit $ac_status); }; }; then
39046 eval "$as_ac_var=yes"
39047 else
39048 echo "$as_me: failed program was:" >&5
39049 sed 's/^/| /' conftest.$ac_ext >&5
39051 eval "$as_ac_var=no"
39053 rm -f conftest.err conftest.$ac_objext \
39054 conftest$ac_exeext conftest.$ac_ext
39056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39058 if test `eval echo '${'$as_ac_var'}'` = yes; then
39059 cat >>confdefs.h <<_ACEOF
39060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39061 _ACEOF
39064 done
39071 echo "$as_me:$LINENO: checking for modff declaration" >&5
39072 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
39073 if test x${glibcxx_cv_func_modff_use+set} != xset; then
39074 if test "${glibcxx_cv_func_modff_use+set}" = set; then
39075 echo $ECHO_N "(cached) $ECHO_C" >&6
39076 else
39080 ac_ext=cc
39081 ac_cpp='$CXXCPP $CPPFLAGS'
39082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39086 cat >conftest.$ac_ext <<_ACEOF
39087 /* confdefs.h. */
39088 _ACEOF
39089 cat confdefs.h >>conftest.$ac_ext
39090 cat >>conftest.$ac_ext <<_ACEOF
39091 /* end confdefs.h. */
39092 #include <math.h>
39094 main ()
39096 modff(0, 0);
39098 return 0;
39100 _ACEOF
39101 rm -f conftest.$ac_objext
39102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39103 (eval $ac_compile) 2>conftest.er1
39104 ac_status=$?
39105 grep -v '^ *+' conftest.er1 >conftest.err
39106 rm -f conftest.er1
39107 cat conftest.err >&5
39108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109 (exit $ac_status); } &&
39110 { ac_try='test -z "$ac_cxx_werror_flag"
39111 || test ! -s conftest.err'
39112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39113 (eval $ac_try) 2>&5
39114 ac_status=$?
39115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116 (exit $ac_status); }; } &&
39117 { ac_try='test -s conftest.$ac_objext'
39118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39119 (eval $ac_try) 2>&5
39120 ac_status=$?
39121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122 (exit $ac_status); }; }; then
39123 glibcxx_cv_func_modff_use=yes
39124 else
39125 echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39128 glibcxx_cv_func_modff_use=no
39130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39131 ac_ext=c
39132 ac_cpp='$CPP $CPPFLAGS'
39133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39141 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
39142 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
39144 if test x$glibcxx_cv_func_modff_use = x"yes"; then
39146 for ac_func in modff
39148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39149 echo "$as_me:$LINENO: checking for $ac_func" >&5
39150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39151 if eval "test \"\${$as_ac_var+set}\" = set"; then
39152 echo $ECHO_N "(cached) $ECHO_C" >&6
39153 else
39154 if test x$gcc_no_link = xyes; then
39155 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39156 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39157 { (exit 1); exit 1; }; }
39159 cat >conftest.$ac_ext <<_ACEOF
39160 /* confdefs.h. */
39161 _ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h. */
39165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39167 #define $ac_func innocuous_$ac_func
39169 /* System header to define __stub macros and hopefully few prototypes,
39170 which can conflict with char $ac_func (); below.
39171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39172 <limits.h> exists even on freestanding compilers. */
39174 #ifdef __STDC__
39175 # include <limits.h>
39176 #else
39177 # include <assert.h>
39178 #endif
39180 #undef $ac_func
39182 /* Override any gcc2 internal prototype to avoid an error. */
39183 #ifdef __cplusplus
39184 extern "C"
39186 #endif
39187 /* We use char because int might match the return type of a gcc2
39188 builtin and then its argument prototype would still apply. */
39189 char $ac_func ();
39190 /* The GNU C library defines this for functions which it implements
39191 to always fail with ENOSYS. Some functions are actually named
39192 something starting with __ and the normal name is an alias. */
39193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39194 choke me
39195 #else
39196 char (*f) () = $ac_func;
39197 #endif
39198 #ifdef __cplusplus
39200 #endif
39203 main ()
39205 return f != $ac_func;
39207 return 0;
39209 _ACEOF
39210 rm -f conftest.$ac_objext conftest$ac_exeext
39211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39212 (eval $ac_link) 2>conftest.er1
39213 ac_status=$?
39214 grep -v '^ *+' conftest.er1 >conftest.err
39215 rm -f conftest.er1
39216 cat conftest.err >&5
39217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39218 (exit $ac_status); } &&
39219 { ac_try='test -z "$ac_c_werror_flag"
39220 || test ! -s conftest.err'
39221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 (eval $ac_try) 2>&5
39223 ac_status=$?
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); }; } &&
39226 { ac_try='test -s conftest$ac_exeext'
39227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228 (eval $ac_try) 2>&5
39229 ac_status=$?
39230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 (exit $ac_status); }; }; then
39232 eval "$as_ac_var=yes"
39233 else
39234 echo "$as_me: failed program was:" >&5
39235 sed 's/^/| /' conftest.$ac_ext >&5
39237 eval "$as_ac_var=no"
39239 rm -f conftest.err conftest.$ac_objext \
39240 conftest$ac_exeext conftest.$ac_ext
39242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39244 if test `eval echo '${'$as_ac_var'}'` = yes; then
39245 cat >>confdefs.h <<_ACEOF
39246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39247 _ACEOF
39250 done
39252 else
39254 echo "$as_me:$LINENO: checking for _modff declaration" >&5
39255 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
39256 if test x${glibcxx_cv_func__modff_use+set} != xset; then
39257 if test "${glibcxx_cv_func__modff_use+set}" = set; then
39258 echo $ECHO_N "(cached) $ECHO_C" >&6
39259 else
39263 ac_ext=cc
39264 ac_cpp='$CXXCPP $CPPFLAGS'
39265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39269 cat >conftest.$ac_ext <<_ACEOF
39270 /* confdefs.h. */
39271 _ACEOF
39272 cat confdefs.h >>conftest.$ac_ext
39273 cat >>conftest.$ac_ext <<_ACEOF
39274 /* end confdefs.h. */
39275 #include <math.h>
39277 main ()
39279 _modff(0, 0);
39281 return 0;
39283 _ACEOF
39284 rm -f conftest.$ac_objext
39285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39286 (eval $ac_compile) 2>conftest.er1
39287 ac_status=$?
39288 grep -v '^ *+' conftest.er1 >conftest.err
39289 rm -f conftest.er1
39290 cat conftest.err >&5
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); } &&
39293 { ac_try='test -z "$ac_cxx_werror_flag"
39294 || test ! -s conftest.err'
39295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296 (eval $ac_try) 2>&5
39297 ac_status=$?
39298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); }; } &&
39300 { ac_try='test -s conftest.$ac_objext'
39301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302 (eval $ac_try) 2>&5
39303 ac_status=$?
39304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305 (exit $ac_status); }; }; then
39306 glibcxx_cv_func__modff_use=yes
39307 else
39308 echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.$ac_ext >&5
39311 glibcxx_cv_func__modff_use=no
39313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39314 ac_ext=c
39315 ac_cpp='$CPP $CPPFLAGS'
39316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39324 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
39325 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
39327 if test x$glibcxx_cv_func__modff_use = x"yes"; then
39329 for ac_func in _modff
39331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39332 echo "$as_me:$LINENO: checking for $ac_func" >&5
39333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39334 if eval "test \"\${$as_ac_var+set}\" = set"; then
39335 echo $ECHO_N "(cached) $ECHO_C" >&6
39336 else
39337 if test x$gcc_no_link = xyes; then
39338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39340 { (exit 1); exit 1; }; }
39342 cat >conftest.$ac_ext <<_ACEOF
39343 /* confdefs.h. */
39344 _ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h. */
39348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39350 #define $ac_func innocuous_$ac_func
39352 /* System header to define __stub macros and hopefully few prototypes,
39353 which can conflict with char $ac_func (); below.
39354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39355 <limits.h> exists even on freestanding compilers. */
39357 #ifdef __STDC__
39358 # include <limits.h>
39359 #else
39360 # include <assert.h>
39361 #endif
39363 #undef $ac_func
39365 /* Override any gcc2 internal prototype to avoid an error. */
39366 #ifdef __cplusplus
39367 extern "C"
39369 #endif
39370 /* We use char because int might match the return type of a gcc2
39371 builtin and then its argument prototype would still apply. */
39372 char $ac_func ();
39373 /* The GNU C library defines this for functions which it implements
39374 to always fail with ENOSYS. Some functions are actually named
39375 something starting with __ and the normal name is an alias. */
39376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39377 choke me
39378 #else
39379 char (*f) () = $ac_func;
39380 #endif
39381 #ifdef __cplusplus
39383 #endif
39386 main ()
39388 return f != $ac_func;
39390 return 0;
39392 _ACEOF
39393 rm -f conftest.$ac_objext conftest$ac_exeext
39394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39395 (eval $ac_link) 2>conftest.er1
39396 ac_status=$?
39397 grep -v '^ *+' conftest.er1 >conftest.err
39398 rm -f conftest.er1
39399 cat conftest.err >&5
39400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); } &&
39402 { ac_try='test -z "$ac_c_werror_flag"
39403 || test ! -s conftest.err'
39404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39405 (eval $ac_try) 2>&5
39406 ac_status=$?
39407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408 (exit $ac_status); }; } &&
39409 { ac_try='test -s conftest$ac_exeext'
39410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39411 (eval $ac_try) 2>&5
39412 ac_status=$?
39413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414 (exit $ac_status); }; }; then
39415 eval "$as_ac_var=yes"
39416 else
39417 echo "$as_me: failed program was:" >&5
39418 sed 's/^/| /' conftest.$ac_ext >&5
39420 eval "$as_ac_var=no"
39422 rm -f conftest.err conftest.$ac_objext \
39423 conftest$ac_exeext conftest.$ac_ext
39425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39427 if test `eval echo '${'$as_ac_var'}'` = yes; then
39428 cat >>confdefs.h <<_ACEOF
39429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39430 _ACEOF
39433 done
39440 echo "$as_me:$LINENO: checking for powf declaration" >&5
39441 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
39442 if test x${glibcxx_cv_func_powf_use+set} != xset; then
39443 if test "${glibcxx_cv_func_powf_use+set}" = set; then
39444 echo $ECHO_N "(cached) $ECHO_C" >&6
39445 else
39449 ac_ext=cc
39450 ac_cpp='$CXXCPP $CPPFLAGS'
39451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39455 cat >conftest.$ac_ext <<_ACEOF
39456 /* confdefs.h. */
39457 _ACEOF
39458 cat confdefs.h >>conftest.$ac_ext
39459 cat >>conftest.$ac_ext <<_ACEOF
39460 /* end confdefs.h. */
39461 #include <math.h>
39463 main ()
39465 powf(0, 0);
39467 return 0;
39469 _ACEOF
39470 rm -f conftest.$ac_objext
39471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39472 (eval $ac_compile) 2>conftest.er1
39473 ac_status=$?
39474 grep -v '^ *+' conftest.er1 >conftest.err
39475 rm -f conftest.er1
39476 cat conftest.err >&5
39477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478 (exit $ac_status); } &&
39479 { ac_try='test -z "$ac_cxx_werror_flag"
39480 || test ! -s conftest.err'
39481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39482 (eval $ac_try) 2>&5
39483 ac_status=$?
39484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39485 (exit $ac_status); }; } &&
39486 { ac_try='test -s conftest.$ac_objext'
39487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39488 (eval $ac_try) 2>&5
39489 ac_status=$?
39490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39491 (exit $ac_status); }; }; then
39492 glibcxx_cv_func_powf_use=yes
39493 else
39494 echo "$as_me: failed program was:" >&5
39495 sed 's/^/| /' conftest.$ac_ext >&5
39497 glibcxx_cv_func_powf_use=no
39499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39500 ac_ext=c
39501 ac_cpp='$CPP $CPPFLAGS'
39502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39510 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39511 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39513 if test x$glibcxx_cv_func_powf_use = x"yes"; then
39515 for ac_func in powf
39517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39518 echo "$as_me:$LINENO: checking for $ac_func" >&5
39519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39520 if eval "test \"\${$as_ac_var+set}\" = set"; then
39521 echo $ECHO_N "(cached) $ECHO_C" >&6
39522 else
39523 if test x$gcc_no_link = xyes; then
39524 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39525 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39526 { (exit 1); exit 1; }; }
39528 cat >conftest.$ac_ext <<_ACEOF
39529 /* confdefs.h. */
39530 _ACEOF
39531 cat confdefs.h >>conftest.$ac_ext
39532 cat >>conftest.$ac_ext <<_ACEOF
39533 /* end confdefs.h. */
39534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39536 #define $ac_func innocuous_$ac_func
39538 /* System header to define __stub macros and hopefully few prototypes,
39539 which can conflict with char $ac_func (); below.
39540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39541 <limits.h> exists even on freestanding compilers. */
39543 #ifdef __STDC__
39544 # include <limits.h>
39545 #else
39546 # include <assert.h>
39547 #endif
39549 #undef $ac_func
39551 /* Override any gcc2 internal prototype to avoid an error. */
39552 #ifdef __cplusplus
39553 extern "C"
39555 #endif
39556 /* We use char because int might match the return type of a gcc2
39557 builtin and then its argument prototype would still apply. */
39558 char $ac_func ();
39559 /* The GNU C library defines this for functions which it implements
39560 to always fail with ENOSYS. Some functions are actually named
39561 something starting with __ and the normal name is an alias. */
39562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39563 choke me
39564 #else
39565 char (*f) () = $ac_func;
39566 #endif
39567 #ifdef __cplusplus
39569 #endif
39572 main ()
39574 return f != $ac_func;
39576 return 0;
39578 _ACEOF
39579 rm -f conftest.$ac_objext conftest$ac_exeext
39580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39581 (eval $ac_link) 2>conftest.er1
39582 ac_status=$?
39583 grep -v '^ *+' conftest.er1 >conftest.err
39584 rm -f conftest.er1
39585 cat conftest.err >&5
39586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587 (exit $ac_status); } &&
39588 { ac_try='test -z "$ac_c_werror_flag"
39589 || test ! -s conftest.err'
39590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591 (eval $ac_try) 2>&5
39592 ac_status=$?
39593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594 (exit $ac_status); }; } &&
39595 { ac_try='test -s conftest$ac_exeext'
39596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39597 (eval $ac_try) 2>&5
39598 ac_status=$?
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); }; }; then
39601 eval "$as_ac_var=yes"
39602 else
39603 echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39606 eval "$as_ac_var=no"
39608 rm -f conftest.err conftest.$ac_objext \
39609 conftest$ac_exeext conftest.$ac_ext
39611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39613 if test `eval echo '${'$as_ac_var'}'` = yes; then
39614 cat >>confdefs.h <<_ACEOF
39615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39616 _ACEOF
39619 done
39621 else
39623 echo "$as_me:$LINENO: checking for _powf declaration" >&5
39624 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39625 if test x${glibcxx_cv_func__powf_use+set} != xset; then
39626 if test "${glibcxx_cv_func__powf_use+set}" = set; then
39627 echo $ECHO_N "(cached) $ECHO_C" >&6
39628 else
39632 ac_ext=cc
39633 ac_cpp='$CXXCPP $CPPFLAGS'
39634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39638 cat >conftest.$ac_ext <<_ACEOF
39639 /* confdefs.h. */
39640 _ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h. */
39644 #include <math.h>
39646 main ()
39648 _powf(0, 0);
39650 return 0;
39652 _ACEOF
39653 rm -f conftest.$ac_objext
39654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39655 (eval $ac_compile) 2>conftest.er1
39656 ac_status=$?
39657 grep -v '^ *+' conftest.er1 >conftest.err
39658 rm -f conftest.er1
39659 cat conftest.err >&5
39660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661 (exit $ac_status); } &&
39662 { ac_try='test -z "$ac_cxx_werror_flag"
39663 || test ! -s conftest.err'
39664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39665 (eval $ac_try) 2>&5
39666 ac_status=$?
39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668 (exit $ac_status); }; } &&
39669 { ac_try='test -s conftest.$ac_objext'
39670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39671 (eval $ac_try) 2>&5
39672 ac_status=$?
39673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674 (exit $ac_status); }; }; then
39675 glibcxx_cv_func__powf_use=yes
39676 else
39677 echo "$as_me: failed program was:" >&5
39678 sed 's/^/| /' conftest.$ac_ext >&5
39680 glibcxx_cv_func__powf_use=no
39682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39683 ac_ext=c
39684 ac_cpp='$CPP $CPPFLAGS'
39685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39693 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39694 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39696 if test x$glibcxx_cv_func__powf_use = x"yes"; then
39698 for ac_func in _powf
39700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39701 echo "$as_me:$LINENO: checking for $ac_func" >&5
39702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39703 if eval "test \"\${$as_ac_var+set}\" = set"; then
39704 echo $ECHO_N "(cached) $ECHO_C" >&6
39705 else
39706 if test x$gcc_no_link = xyes; then
39707 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39709 { (exit 1); exit 1; }; }
39711 cat >conftest.$ac_ext <<_ACEOF
39712 /* confdefs.h. */
39713 _ACEOF
39714 cat confdefs.h >>conftest.$ac_ext
39715 cat >>conftest.$ac_ext <<_ACEOF
39716 /* end confdefs.h. */
39717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39719 #define $ac_func innocuous_$ac_func
39721 /* System header to define __stub macros and hopefully few prototypes,
39722 which can conflict with char $ac_func (); below.
39723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39724 <limits.h> exists even on freestanding compilers. */
39726 #ifdef __STDC__
39727 # include <limits.h>
39728 #else
39729 # include <assert.h>
39730 #endif
39732 #undef $ac_func
39734 /* Override any gcc2 internal prototype to avoid an error. */
39735 #ifdef __cplusplus
39736 extern "C"
39738 #endif
39739 /* We use char because int might match the return type of a gcc2
39740 builtin and then its argument prototype would still apply. */
39741 char $ac_func ();
39742 /* The GNU C library defines this for functions which it implements
39743 to always fail with ENOSYS. Some functions are actually named
39744 something starting with __ and the normal name is an alias. */
39745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39746 choke me
39747 #else
39748 char (*f) () = $ac_func;
39749 #endif
39750 #ifdef __cplusplus
39752 #endif
39755 main ()
39757 return f != $ac_func;
39759 return 0;
39761 _ACEOF
39762 rm -f conftest.$ac_objext conftest$ac_exeext
39763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39764 (eval $ac_link) 2>conftest.er1
39765 ac_status=$?
39766 grep -v '^ *+' conftest.er1 >conftest.err
39767 rm -f conftest.er1
39768 cat conftest.err >&5
39769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770 (exit $ac_status); } &&
39771 { ac_try='test -z "$ac_c_werror_flag"
39772 || test ! -s conftest.err'
39773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774 (eval $ac_try) 2>&5
39775 ac_status=$?
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); }; } &&
39778 { ac_try='test -s conftest$ac_exeext'
39779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780 (eval $ac_try) 2>&5
39781 ac_status=$?
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); }; }; then
39784 eval "$as_ac_var=yes"
39785 else
39786 echo "$as_me: failed program was:" >&5
39787 sed 's/^/| /' conftest.$ac_ext >&5
39789 eval "$as_ac_var=no"
39791 rm -f conftest.err conftest.$ac_objext \
39792 conftest$ac_exeext conftest.$ac_ext
39794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39796 if test `eval echo '${'$as_ac_var'}'` = yes; then
39797 cat >>confdefs.h <<_ACEOF
39798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39799 _ACEOF
39802 done
39809 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39810 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39811 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39812 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39813 echo $ECHO_N "(cached) $ECHO_C" >&6
39814 else
39818 ac_ext=cc
39819 ac_cpp='$CXXCPP $CPPFLAGS'
39820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39824 cat >conftest.$ac_ext <<_ACEOF
39825 /* confdefs.h. */
39826 _ACEOF
39827 cat confdefs.h >>conftest.$ac_ext
39828 cat >>conftest.$ac_ext <<_ACEOF
39829 /* end confdefs.h. */
39830 #include <math.h>
39831 #ifdef HAVE_IEEEFP_H
39832 #include <ieeefp.h>
39833 #endif
39836 main ()
39838 sqrtf(0);
39840 return 0;
39842 _ACEOF
39843 rm -f conftest.$ac_objext
39844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39845 (eval $ac_compile) 2>conftest.er1
39846 ac_status=$?
39847 grep -v '^ *+' conftest.er1 >conftest.err
39848 rm -f conftest.er1
39849 cat conftest.err >&5
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); } &&
39852 { ac_try='test -z "$ac_cxx_werror_flag"
39853 || test ! -s conftest.err'
39854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39855 (eval $ac_try) 2>&5
39856 ac_status=$?
39857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39858 (exit $ac_status); }; } &&
39859 { ac_try='test -s conftest.$ac_objext'
39860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39861 (eval $ac_try) 2>&5
39862 ac_status=$?
39863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); }; }; then
39865 glibcxx_cv_func_sqrtf_use=yes
39866 else
39867 echo "$as_me: failed program was:" >&5
39868 sed 's/^/| /' conftest.$ac_ext >&5
39870 glibcxx_cv_func_sqrtf_use=no
39872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39873 ac_ext=c
39874 ac_cpp='$CPP $CPPFLAGS'
39875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39883 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
39884 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
39886 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
39888 for ac_func in sqrtf
39890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39891 echo "$as_me:$LINENO: checking for $ac_func" >&5
39892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39893 if eval "test \"\${$as_ac_var+set}\" = set"; then
39894 echo $ECHO_N "(cached) $ECHO_C" >&6
39895 else
39896 if test x$gcc_no_link = xyes; then
39897 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39898 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39899 { (exit 1); exit 1; }; }
39901 cat >conftest.$ac_ext <<_ACEOF
39902 /* confdefs.h. */
39903 _ACEOF
39904 cat confdefs.h >>conftest.$ac_ext
39905 cat >>conftest.$ac_ext <<_ACEOF
39906 /* end confdefs.h. */
39907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39909 #define $ac_func innocuous_$ac_func
39911 /* System header to define __stub macros and hopefully few prototypes,
39912 which can conflict with char $ac_func (); below.
39913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39914 <limits.h> exists even on freestanding compilers. */
39916 #ifdef __STDC__
39917 # include <limits.h>
39918 #else
39919 # include <assert.h>
39920 #endif
39922 #undef $ac_func
39924 /* Override any gcc2 internal prototype to avoid an error. */
39925 #ifdef __cplusplus
39926 extern "C"
39928 #endif
39929 /* We use char because int might match the return type of a gcc2
39930 builtin and then its argument prototype would still apply. */
39931 char $ac_func ();
39932 /* The GNU C library defines this for functions which it implements
39933 to always fail with ENOSYS. Some functions are actually named
39934 something starting with __ and the normal name is an alias. */
39935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39936 choke me
39937 #else
39938 char (*f) () = $ac_func;
39939 #endif
39940 #ifdef __cplusplus
39942 #endif
39945 main ()
39947 return f != $ac_func;
39949 return 0;
39951 _ACEOF
39952 rm -f conftest.$ac_objext conftest$ac_exeext
39953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39954 (eval $ac_link) 2>conftest.er1
39955 ac_status=$?
39956 grep -v '^ *+' conftest.er1 >conftest.err
39957 rm -f conftest.er1
39958 cat conftest.err >&5
39959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960 (exit $ac_status); } &&
39961 { ac_try='test -z "$ac_c_werror_flag"
39962 || test ! -s conftest.err'
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39965 ac_status=$?
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; } &&
39968 { ac_try='test -s conftest$ac_exeext'
39969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970 (eval $ac_try) 2>&5
39971 ac_status=$?
39972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); }; }; then
39974 eval "$as_ac_var=yes"
39975 else
39976 echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39979 eval "$as_ac_var=no"
39981 rm -f conftest.err conftest.$ac_objext \
39982 conftest$ac_exeext conftest.$ac_ext
39984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39986 if test `eval echo '${'$as_ac_var'}'` = yes; then
39987 cat >>confdefs.h <<_ACEOF
39988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39989 _ACEOF
39992 done
39994 else
39996 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
39997 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
39998 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
39999 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
40000 echo $ECHO_N "(cached) $ECHO_C" >&6
40001 else
40005 ac_ext=cc
40006 ac_cpp='$CXXCPP $CPPFLAGS'
40007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40011 cat >conftest.$ac_ext <<_ACEOF
40012 /* confdefs.h. */
40013 _ACEOF
40014 cat confdefs.h >>conftest.$ac_ext
40015 cat >>conftest.$ac_ext <<_ACEOF
40016 /* end confdefs.h. */
40017 #include <math.h>
40018 #ifdef HAVE_IEEEFP_H
40019 #include <ieeefp.h>
40020 #endif
40023 main ()
40025 _sqrtf(0);
40027 return 0;
40029 _ACEOF
40030 rm -f conftest.$ac_objext
40031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40032 (eval $ac_compile) 2>conftest.er1
40033 ac_status=$?
40034 grep -v '^ *+' conftest.er1 >conftest.err
40035 rm -f conftest.er1
40036 cat conftest.err >&5
40037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038 (exit $ac_status); } &&
40039 { ac_try='test -z "$ac_cxx_werror_flag"
40040 || test ! -s conftest.err'
40041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042 (eval $ac_try) 2>&5
40043 ac_status=$?
40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045 (exit $ac_status); }; } &&
40046 { ac_try='test -s conftest.$ac_objext'
40047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40048 (eval $ac_try) 2>&5
40049 ac_status=$?
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); }; }; then
40052 glibcxx_cv_func__sqrtf_use=yes
40053 else
40054 echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40057 glibcxx_cv_func__sqrtf_use=no
40059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40060 ac_ext=c
40061 ac_cpp='$CPP $CPPFLAGS'
40062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40070 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
40071 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
40073 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
40075 for ac_func in _sqrtf
40077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40078 echo "$as_me:$LINENO: checking for $ac_func" >&5
40079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40080 if eval "test \"\${$as_ac_var+set}\" = set"; then
40081 echo $ECHO_N "(cached) $ECHO_C" >&6
40082 else
40083 if test x$gcc_no_link = xyes; then
40084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40086 { (exit 1); exit 1; }; }
40088 cat >conftest.$ac_ext <<_ACEOF
40089 /* confdefs.h. */
40090 _ACEOF
40091 cat confdefs.h >>conftest.$ac_ext
40092 cat >>conftest.$ac_ext <<_ACEOF
40093 /* end confdefs.h. */
40094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40096 #define $ac_func innocuous_$ac_func
40098 /* System header to define __stub macros and hopefully few prototypes,
40099 which can conflict with char $ac_func (); below.
40100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40101 <limits.h> exists even on freestanding compilers. */
40103 #ifdef __STDC__
40104 # include <limits.h>
40105 #else
40106 # include <assert.h>
40107 #endif
40109 #undef $ac_func
40111 /* Override any gcc2 internal prototype to avoid an error. */
40112 #ifdef __cplusplus
40113 extern "C"
40115 #endif
40116 /* We use char because int might match the return type of a gcc2
40117 builtin and then its argument prototype would still apply. */
40118 char $ac_func ();
40119 /* The GNU C library defines this for functions which it implements
40120 to always fail with ENOSYS. Some functions are actually named
40121 something starting with __ and the normal name is an alias. */
40122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40123 choke me
40124 #else
40125 char (*f) () = $ac_func;
40126 #endif
40127 #ifdef __cplusplus
40129 #endif
40132 main ()
40134 return f != $ac_func;
40136 return 0;
40138 _ACEOF
40139 rm -f conftest.$ac_objext conftest$ac_exeext
40140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40141 (eval $ac_link) 2>conftest.er1
40142 ac_status=$?
40143 grep -v '^ *+' conftest.er1 >conftest.err
40144 rm -f conftest.er1
40145 cat conftest.err >&5
40146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147 (exit $ac_status); } &&
40148 { ac_try='test -z "$ac_c_werror_flag"
40149 || test ! -s conftest.err'
40150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40151 (eval $ac_try) 2>&5
40152 ac_status=$?
40153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154 (exit $ac_status); }; } &&
40155 { ac_try='test -s conftest$ac_exeext'
40156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157 (eval $ac_try) 2>&5
40158 ac_status=$?
40159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160 (exit $ac_status); }; }; then
40161 eval "$as_ac_var=yes"
40162 else
40163 echo "$as_me: failed program was:" >&5
40164 sed 's/^/| /' conftest.$ac_ext >&5
40166 eval "$as_ac_var=no"
40168 rm -f conftest.err conftest.$ac_objext \
40169 conftest$ac_exeext conftest.$ac_ext
40171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40173 if test `eval echo '${'$as_ac_var'}'` = yes; then
40174 cat >>confdefs.h <<_ACEOF
40175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40176 _ACEOF
40179 done
40186 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
40187 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
40188 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40189 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
40190 echo $ECHO_N "(cached) $ECHO_C" >&6
40191 else
40195 ac_ext=cc
40196 ac_cpp='$CXXCPP $CPPFLAGS'
40197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40201 cat >conftest.$ac_ext <<_ACEOF
40202 /* confdefs.h. */
40203 _ACEOF
40204 cat confdefs.h >>conftest.$ac_ext
40205 cat >>conftest.$ac_ext <<_ACEOF
40206 /* end confdefs.h. */
40207 #include <math.h>
40209 main ()
40211 sincosf(0, 0, 0);
40213 return 0;
40215 _ACEOF
40216 rm -f conftest.$ac_objext
40217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40218 (eval $ac_compile) 2>conftest.er1
40219 ac_status=$?
40220 grep -v '^ *+' conftest.er1 >conftest.err
40221 rm -f conftest.er1
40222 cat conftest.err >&5
40223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224 (exit $ac_status); } &&
40225 { ac_try='test -z "$ac_cxx_werror_flag"
40226 || test ! -s conftest.err'
40227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40228 (eval $ac_try) 2>&5
40229 ac_status=$?
40230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231 (exit $ac_status); }; } &&
40232 { ac_try='test -s conftest.$ac_objext'
40233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40234 (eval $ac_try) 2>&5
40235 ac_status=$?
40236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237 (exit $ac_status); }; }; then
40238 glibcxx_cv_func_sincosf_use=yes
40239 else
40240 echo "$as_me: failed program was:" >&5
40241 sed 's/^/| /' conftest.$ac_ext >&5
40243 glibcxx_cv_func_sincosf_use=no
40245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40246 ac_ext=c
40247 ac_cpp='$CPP $CPPFLAGS'
40248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40256 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
40257 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
40259 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40261 for ac_func in sincosf
40263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40264 echo "$as_me:$LINENO: checking for $ac_func" >&5
40265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40266 if eval "test \"\${$as_ac_var+set}\" = set"; then
40267 echo $ECHO_N "(cached) $ECHO_C" >&6
40268 else
40269 if test x$gcc_no_link = xyes; then
40270 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40271 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40272 { (exit 1); exit 1; }; }
40274 cat >conftest.$ac_ext <<_ACEOF
40275 /* confdefs.h. */
40276 _ACEOF
40277 cat confdefs.h >>conftest.$ac_ext
40278 cat >>conftest.$ac_ext <<_ACEOF
40279 /* end confdefs.h. */
40280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40282 #define $ac_func innocuous_$ac_func
40284 /* System header to define __stub macros and hopefully few prototypes,
40285 which can conflict with char $ac_func (); below.
40286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40287 <limits.h> exists even on freestanding compilers. */
40289 #ifdef __STDC__
40290 # include <limits.h>
40291 #else
40292 # include <assert.h>
40293 #endif
40295 #undef $ac_func
40297 /* Override any gcc2 internal prototype to avoid an error. */
40298 #ifdef __cplusplus
40299 extern "C"
40301 #endif
40302 /* We use char because int might match the return type of a gcc2
40303 builtin and then its argument prototype would still apply. */
40304 char $ac_func ();
40305 /* The GNU C library defines this for functions which it implements
40306 to always fail with ENOSYS. Some functions are actually named
40307 something starting with __ and the normal name is an alias. */
40308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40309 choke me
40310 #else
40311 char (*f) () = $ac_func;
40312 #endif
40313 #ifdef __cplusplus
40315 #endif
40318 main ()
40320 return f != $ac_func;
40322 return 0;
40324 _ACEOF
40325 rm -f conftest.$ac_objext conftest$ac_exeext
40326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40327 (eval $ac_link) 2>conftest.er1
40328 ac_status=$?
40329 grep -v '^ *+' conftest.er1 >conftest.err
40330 rm -f conftest.er1
40331 cat conftest.err >&5
40332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40333 (exit $ac_status); } &&
40334 { ac_try='test -z "$ac_c_werror_flag"
40335 || test ! -s conftest.err'
40336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337 (eval $ac_try) 2>&5
40338 ac_status=$?
40339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340 (exit $ac_status); }; } &&
40341 { ac_try='test -s conftest$ac_exeext'
40342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40343 (eval $ac_try) 2>&5
40344 ac_status=$?
40345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40346 (exit $ac_status); }; }; then
40347 eval "$as_ac_var=yes"
40348 else
40349 echo "$as_me: failed program was:" >&5
40350 sed 's/^/| /' conftest.$ac_ext >&5
40352 eval "$as_ac_var=no"
40354 rm -f conftest.err conftest.$ac_objext \
40355 conftest$ac_exeext conftest.$ac_ext
40357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40359 if test `eval echo '${'$as_ac_var'}'` = yes; then
40360 cat >>confdefs.h <<_ACEOF
40361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40362 _ACEOF
40365 done
40367 else
40369 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
40370 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
40371 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
40372 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
40373 echo $ECHO_N "(cached) $ECHO_C" >&6
40374 else
40378 ac_ext=cc
40379 ac_cpp='$CXXCPP $CPPFLAGS'
40380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40384 cat >conftest.$ac_ext <<_ACEOF
40385 /* confdefs.h. */
40386 _ACEOF
40387 cat confdefs.h >>conftest.$ac_ext
40388 cat >>conftest.$ac_ext <<_ACEOF
40389 /* end confdefs.h. */
40390 #include <math.h>
40392 main ()
40394 _sincosf(0, 0, 0);
40396 return 0;
40398 _ACEOF
40399 rm -f conftest.$ac_objext
40400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40401 (eval $ac_compile) 2>conftest.er1
40402 ac_status=$?
40403 grep -v '^ *+' conftest.er1 >conftest.err
40404 rm -f conftest.er1
40405 cat conftest.err >&5
40406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407 (exit $ac_status); } &&
40408 { ac_try='test -z "$ac_cxx_werror_flag"
40409 || test ! -s conftest.err'
40410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40411 (eval $ac_try) 2>&5
40412 ac_status=$?
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); }; } &&
40415 { ac_try='test -s conftest.$ac_objext'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; }; then
40421 glibcxx_cv_func__sincosf_use=yes
40422 else
40423 echo "$as_me: failed program was:" >&5
40424 sed 's/^/| /' conftest.$ac_ext >&5
40426 glibcxx_cv_func__sincosf_use=no
40428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40429 ac_ext=c
40430 ac_cpp='$CPP $CPPFLAGS'
40431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40439 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
40440 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
40442 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
40444 for ac_func in _sincosf
40446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40447 echo "$as_me:$LINENO: checking for $ac_func" >&5
40448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40449 if eval "test \"\${$as_ac_var+set}\" = set"; then
40450 echo $ECHO_N "(cached) $ECHO_C" >&6
40451 else
40452 if test x$gcc_no_link = xyes; then
40453 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40455 { (exit 1); exit 1; }; }
40457 cat >conftest.$ac_ext <<_ACEOF
40458 /* confdefs.h. */
40459 _ACEOF
40460 cat confdefs.h >>conftest.$ac_ext
40461 cat >>conftest.$ac_ext <<_ACEOF
40462 /* end confdefs.h. */
40463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40465 #define $ac_func innocuous_$ac_func
40467 /* System header to define __stub macros and hopefully few prototypes,
40468 which can conflict with char $ac_func (); below.
40469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40470 <limits.h> exists even on freestanding compilers. */
40472 #ifdef __STDC__
40473 # include <limits.h>
40474 #else
40475 # include <assert.h>
40476 #endif
40478 #undef $ac_func
40480 /* Override any gcc2 internal prototype to avoid an error. */
40481 #ifdef __cplusplus
40482 extern "C"
40484 #endif
40485 /* We use char because int might match the return type of a gcc2
40486 builtin and then its argument prototype would still apply. */
40487 char $ac_func ();
40488 /* The GNU C library defines this for functions which it implements
40489 to always fail with ENOSYS. Some functions are actually named
40490 something starting with __ and the normal name is an alias. */
40491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40492 choke me
40493 #else
40494 char (*f) () = $ac_func;
40495 #endif
40496 #ifdef __cplusplus
40498 #endif
40501 main ()
40503 return f != $ac_func;
40505 return 0;
40507 _ACEOF
40508 rm -f conftest.$ac_objext conftest$ac_exeext
40509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40510 (eval $ac_link) 2>conftest.er1
40511 ac_status=$?
40512 grep -v '^ *+' conftest.er1 >conftest.err
40513 rm -f conftest.er1
40514 cat conftest.err >&5
40515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516 (exit $ac_status); } &&
40517 { ac_try='test -z "$ac_c_werror_flag"
40518 || test ! -s conftest.err'
40519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40520 (eval $ac_try) 2>&5
40521 ac_status=$?
40522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40523 (exit $ac_status); }; } &&
40524 { ac_try='test -s conftest$ac_exeext'
40525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40526 (eval $ac_try) 2>&5
40527 ac_status=$?
40528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40529 (exit $ac_status); }; }; then
40530 eval "$as_ac_var=yes"
40531 else
40532 echo "$as_me: failed program was:" >&5
40533 sed 's/^/| /' conftest.$ac_ext >&5
40535 eval "$as_ac_var=no"
40537 rm -f conftest.err conftest.$ac_objext \
40538 conftest$ac_exeext conftest.$ac_ext
40540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40542 if test `eval echo '${'$as_ac_var'}'` = yes; then
40543 cat >>confdefs.h <<_ACEOF
40544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40545 _ACEOF
40548 done
40555 echo "$as_me:$LINENO: checking for finitef declaration" >&5
40556 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40557 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40558 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40559 echo $ECHO_N "(cached) $ECHO_C" >&6
40560 else
40564 ac_ext=cc
40565 ac_cpp='$CXXCPP $CPPFLAGS'
40566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40570 cat >conftest.$ac_ext <<_ACEOF
40571 /* confdefs.h. */
40572 _ACEOF
40573 cat confdefs.h >>conftest.$ac_ext
40574 cat >>conftest.$ac_ext <<_ACEOF
40575 /* end confdefs.h. */
40576 #include <math.h>
40577 #ifdef HAVE_IEEEFP_H
40578 #include <ieeefp.h>
40579 #endif
40582 main ()
40584 finitef(0);
40586 return 0;
40588 _ACEOF
40589 rm -f conftest.$ac_objext
40590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40591 (eval $ac_compile) 2>conftest.er1
40592 ac_status=$?
40593 grep -v '^ *+' conftest.er1 >conftest.err
40594 rm -f conftest.er1
40595 cat conftest.err >&5
40596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40597 (exit $ac_status); } &&
40598 { ac_try='test -z "$ac_cxx_werror_flag"
40599 || test ! -s conftest.err'
40600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40601 (eval $ac_try) 2>&5
40602 ac_status=$?
40603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604 (exit $ac_status); }; } &&
40605 { ac_try='test -s conftest.$ac_objext'
40606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40607 (eval $ac_try) 2>&5
40608 ac_status=$?
40609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40610 (exit $ac_status); }; }; then
40611 glibcxx_cv_func_finitef_use=yes
40612 else
40613 echo "$as_me: failed program was:" >&5
40614 sed 's/^/| /' conftest.$ac_ext >&5
40616 glibcxx_cv_func_finitef_use=no
40618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40619 ac_ext=c
40620 ac_cpp='$CPP $CPPFLAGS'
40621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40629 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40630 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40632 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40634 for ac_func in finitef
40636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40637 echo "$as_me:$LINENO: checking for $ac_func" >&5
40638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40639 if eval "test \"\${$as_ac_var+set}\" = set"; then
40640 echo $ECHO_N "(cached) $ECHO_C" >&6
40641 else
40642 if test x$gcc_no_link = xyes; then
40643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40645 { (exit 1); exit 1; }; }
40647 cat >conftest.$ac_ext <<_ACEOF
40648 /* confdefs.h. */
40649 _ACEOF
40650 cat confdefs.h >>conftest.$ac_ext
40651 cat >>conftest.$ac_ext <<_ACEOF
40652 /* end confdefs.h. */
40653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40655 #define $ac_func innocuous_$ac_func
40657 /* System header to define __stub macros and hopefully few prototypes,
40658 which can conflict with char $ac_func (); below.
40659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40660 <limits.h> exists even on freestanding compilers. */
40662 #ifdef __STDC__
40663 # include <limits.h>
40664 #else
40665 # include <assert.h>
40666 #endif
40668 #undef $ac_func
40670 /* Override any gcc2 internal prototype to avoid an error. */
40671 #ifdef __cplusplus
40672 extern "C"
40674 #endif
40675 /* We use char because int might match the return type of a gcc2
40676 builtin and then its argument prototype would still apply. */
40677 char $ac_func ();
40678 /* The GNU C library defines this for functions which it implements
40679 to always fail with ENOSYS. Some functions are actually named
40680 something starting with __ and the normal name is an alias. */
40681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40682 choke me
40683 #else
40684 char (*f) () = $ac_func;
40685 #endif
40686 #ifdef __cplusplus
40688 #endif
40691 main ()
40693 return f != $ac_func;
40695 return 0;
40697 _ACEOF
40698 rm -f conftest.$ac_objext conftest$ac_exeext
40699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40700 (eval $ac_link) 2>conftest.er1
40701 ac_status=$?
40702 grep -v '^ *+' conftest.er1 >conftest.err
40703 rm -f conftest.er1
40704 cat conftest.err >&5
40705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40706 (exit $ac_status); } &&
40707 { ac_try='test -z "$ac_c_werror_flag"
40708 || test ! -s conftest.err'
40709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40710 (eval $ac_try) 2>&5
40711 ac_status=$?
40712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40713 (exit $ac_status); }; } &&
40714 { ac_try='test -s conftest$ac_exeext'
40715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40716 (eval $ac_try) 2>&5
40717 ac_status=$?
40718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40719 (exit $ac_status); }; }; then
40720 eval "$as_ac_var=yes"
40721 else
40722 echo "$as_me: failed program was:" >&5
40723 sed 's/^/| /' conftest.$ac_ext >&5
40725 eval "$as_ac_var=no"
40727 rm -f conftest.err conftest.$ac_objext \
40728 conftest$ac_exeext conftest.$ac_ext
40730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40732 if test `eval echo '${'$as_ac_var'}'` = yes; then
40733 cat >>confdefs.h <<_ACEOF
40734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40735 _ACEOF
40738 done
40740 else
40742 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40743 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40744 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40745 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40746 echo $ECHO_N "(cached) $ECHO_C" >&6
40747 else
40751 ac_ext=cc
40752 ac_cpp='$CXXCPP $CPPFLAGS'
40753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40757 cat >conftest.$ac_ext <<_ACEOF
40758 /* confdefs.h. */
40759 _ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h. */
40763 #include <math.h>
40764 #ifdef HAVE_IEEEFP_H
40765 #include <ieeefp.h>
40766 #endif
40769 main ()
40771 _finitef(0);
40773 return 0;
40775 _ACEOF
40776 rm -f conftest.$ac_objext
40777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40778 (eval $ac_compile) 2>conftest.er1
40779 ac_status=$?
40780 grep -v '^ *+' conftest.er1 >conftest.err
40781 rm -f conftest.er1
40782 cat conftest.err >&5
40783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784 (exit $ac_status); } &&
40785 { ac_try='test -z "$ac_cxx_werror_flag"
40786 || test ! -s conftest.err'
40787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40788 (eval $ac_try) 2>&5
40789 ac_status=$?
40790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791 (exit $ac_status); }; } &&
40792 { ac_try='test -s conftest.$ac_objext'
40793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40794 (eval $ac_try) 2>&5
40795 ac_status=$?
40796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797 (exit $ac_status); }; }; then
40798 glibcxx_cv_func__finitef_use=yes
40799 else
40800 echo "$as_me: failed program was:" >&5
40801 sed 's/^/| /' conftest.$ac_ext >&5
40803 glibcxx_cv_func__finitef_use=no
40805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40806 ac_ext=c
40807 ac_cpp='$CPP $CPPFLAGS'
40808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40816 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40817 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40819 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40821 for ac_func in _finitef
40823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40824 echo "$as_me:$LINENO: checking for $ac_func" >&5
40825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40826 if eval "test \"\${$as_ac_var+set}\" = set"; then
40827 echo $ECHO_N "(cached) $ECHO_C" >&6
40828 else
40829 if test x$gcc_no_link = xyes; then
40830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40832 { (exit 1); exit 1; }; }
40834 cat >conftest.$ac_ext <<_ACEOF
40835 /* confdefs.h. */
40836 _ACEOF
40837 cat confdefs.h >>conftest.$ac_ext
40838 cat >>conftest.$ac_ext <<_ACEOF
40839 /* end confdefs.h. */
40840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40842 #define $ac_func innocuous_$ac_func
40844 /* System header to define __stub macros and hopefully few prototypes,
40845 which can conflict with char $ac_func (); below.
40846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40847 <limits.h> exists even on freestanding compilers. */
40849 #ifdef __STDC__
40850 # include <limits.h>
40851 #else
40852 # include <assert.h>
40853 #endif
40855 #undef $ac_func
40857 /* Override any gcc2 internal prototype to avoid an error. */
40858 #ifdef __cplusplus
40859 extern "C"
40861 #endif
40862 /* We use char because int might match the return type of a gcc2
40863 builtin and then its argument prototype would still apply. */
40864 char $ac_func ();
40865 /* The GNU C library defines this for functions which it implements
40866 to always fail with ENOSYS. Some functions are actually named
40867 something starting with __ and the normal name is an alias. */
40868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40869 choke me
40870 #else
40871 char (*f) () = $ac_func;
40872 #endif
40873 #ifdef __cplusplus
40875 #endif
40878 main ()
40880 return f != $ac_func;
40882 return 0;
40884 _ACEOF
40885 rm -f conftest.$ac_objext conftest$ac_exeext
40886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40887 (eval $ac_link) 2>conftest.er1
40888 ac_status=$?
40889 grep -v '^ *+' conftest.er1 >conftest.err
40890 rm -f conftest.er1
40891 cat conftest.err >&5
40892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893 (exit $ac_status); } &&
40894 { ac_try='test -z "$ac_c_werror_flag"
40895 || test ! -s conftest.err'
40896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897 (eval $ac_try) 2>&5
40898 ac_status=$?
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); }; } &&
40901 { ac_try='test -s conftest$ac_exeext'
40902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40903 (eval $ac_try) 2>&5
40904 ac_status=$?
40905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40906 (exit $ac_status); }; }; then
40907 eval "$as_ac_var=yes"
40908 else
40909 echo "$as_me: failed program was:" >&5
40910 sed 's/^/| /' conftest.$ac_ext >&5
40912 eval "$as_ac_var=no"
40914 rm -f conftest.err conftest.$ac_objext \
40915 conftest$ac_exeext conftest.$ac_ext
40917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40919 if test `eval echo '${'$as_ac_var'}'` = yes; then
40920 cat >>confdefs.h <<_ACEOF
40921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40922 _ACEOF
40925 done
40932 echo "$as_me:$LINENO: checking for long double trig functions" >&5
40933 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
40934 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
40935 echo $ECHO_N "(cached) $ECHO_C" >&6
40936 else
40940 ac_ext=cc
40941 ac_cpp='$CXXCPP $CPPFLAGS'
40942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40946 cat >conftest.$ac_ext <<_ACEOF
40947 /* confdefs.h. */
40948 _ACEOF
40949 cat confdefs.h >>conftest.$ac_ext
40950 cat >>conftest.$ac_ext <<_ACEOF
40951 /* end confdefs.h. */
40952 #include <math.h>
40954 main ()
40956 `for x in acosl asinl atanl \
40957 cosl sinl tanl \
40958 coshl sinhl tanhl; do echo "$x (0);"; done`
40960 return 0;
40962 _ACEOF
40963 rm -f conftest.$ac_objext
40964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40965 (eval $ac_compile) 2>conftest.er1
40966 ac_status=$?
40967 grep -v '^ *+' conftest.er1 >conftest.err
40968 rm -f conftest.er1
40969 cat conftest.err >&5
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); } &&
40972 { ac_try='test -z "$ac_cxx_werror_flag"
40973 || test ! -s conftest.err'
40974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40975 (eval $ac_try) 2>&5
40976 ac_status=$?
40977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978 (exit $ac_status); }; } &&
40979 { ac_try='test -s conftest.$ac_objext'
40980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40981 (eval $ac_try) 2>&5
40982 ac_status=$?
40983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984 (exit $ac_status); }; }; then
40985 glibcxx_cv_func_long_double_trig_use=yes
40986 else
40987 echo "$as_me: failed program was:" >&5
40988 sed 's/^/| /' conftest.$ac_ext >&5
40990 glibcxx_cv_func_long_double_trig_use=no
40992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40993 ac_ext=c
40994 ac_cpp='$CPP $CPPFLAGS'
40995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41001 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
41002 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
41003 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
41013 for ac_func in acosl asinl atanl \
41014 cosl sinl tanl \
41015 coshl sinhl tanhl
41017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41018 echo "$as_me:$LINENO: checking for $ac_func" >&5
41019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41020 if eval "test \"\${$as_ac_var+set}\" = set"; then
41021 echo $ECHO_N "(cached) $ECHO_C" >&6
41022 else
41023 if test x$gcc_no_link = xyes; then
41024 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41026 { (exit 1); exit 1; }; }
41028 cat >conftest.$ac_ext <<_ACEOF
41029 /* confdefs.h. */
41030 _ACEOF
41031 cat confdefs.h >>conftest.$ac_ext
41032 cat >>conftest.$ac_ext <<_ACEOF
41033 /* end confdefs.h. */
41034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41036 #define $ac_func innocuous_$ac_func
41038 /* System header to define __stub macros and hopefully few prototypes,
41039 which can conflict with char $ac_func (); below.
41040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41041 <limits.h> exists even on freestanding compilers. */
41043 #ifdef __STDC__
41044 # include <limits.h>
41045 #else
41046 # include <assert.h>
41047 #endif
41049 #undef $ac_func
41051 /* Override any gcc2 internal prototype to avoid an error. */
41052 #ifdef __cplusplus
41053 extern "C"
41055 #endif
41056 /* We use char because int might match the return type of a gcc2
41057 builtin and then its argument prototype would still apply. */
41058 char $ac_func ();
41059 /* The GNU C library defines this for functions which it implements
41060 to always fail with ENOSYS. Some functions are actually named
41061 something starting with __ and the normal name is an alias. */
41062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41063 choke me
41064 #else
41065 char (*f) () = $ac_func;
41066 #endif
41067 #ifdef __cplusplus
41069 #endif
41072 main ()
41074 return f != $ac_func;
41076 return 0;
41078 _ACEOF
41079 rm -f conftest.$ac_objext conftest$ac_exeext
41080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41081 (eval $ac_link) 2>conftest.er1
41082 ac_status=$?
41083 grep -v '^ *+' conftest.er1 >conftest.err
41084 rm -f conftest.er1
41085 cat conftest.err >&5
41086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087 (exit $ac_status); } &&
41088 { ac_try='test -z "$ac_c_werror_flag"
41089 || test ! -s conftest.err'
41090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41091 (eval $ac_try) 2>&5
41092 ac_status=$?
41093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094 (exit $ac_status); }; } &&
41095 { ac_try='test -s conftest$ac_exeext'
41096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41097 (eval $ac_try) 2>&5
41098 ac_status=$?
41099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41100 (exit $ac_status); }; }; then
41101 eval "$as_ac_var=yes"
41102 else
41103 echo "$as_me: failed program was:" >&5
41104 sed 's/^/| /' conftest.$ac_ext >&5
41106 eval "$as_ac_var=no"
41108 rm -f conftest.err conftest.$ac_objext \
41109 conftest$ac_exeext conftest.$ac_ext
41111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41113 if test `eval echo '${'$as_ac_var'}'` = yes; then
41114 cat >>confdefs.h <<_ACEOF
41115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41116 _ACEOF
41119 done
41124 echo "$as_me:$LINENO: checking for long double round functions" >&5
41125 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
41126 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
41127 echo $ECHO_N "(cached) $ECHO_C" >&6
41128 else
41132 ac_ext=cc
41133 ac_cpp='$CXXCPP $CPPFLAGS'
41134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41138 cat >conftest.$ac_ext <<_ACEOF
41139 /* confdefs.h. */
41140 _ACEOF
41141 cat confdefs.h >>conftest.$ac_ext
41142 cat >>conftest.$ac_ext <<_ACEOF
41143 /* end confdefs.h. */
41144 #include <math.h>
41146 main ()
41148 `for x in ceill floorl; do echo "$x (0);"; done`
41150 return 0;
41152 _ACEOF
41153 rm -f conftest.$ac_objext
41154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41155 (eval $ac_compile) 2>conftest.er1
41156 ac_status=$?
41157 grep -v '^ *+' conftest.er1 >conftest.err
41158 rm -f conftest.er1
41159 cat conftest.err >&5
41160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161 (exit $ac_status); } &&
41162 { ac_try='test -z "$ac_cxx_werror_flag"
41163 || test ! -s conftest.err'
41164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41165 (eval $ac_try) 2>&5
41166 ac_status=$?
41167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168 (exit $ac_status); }; } &&
41169 { ac_try='test -s conftest.$ac_objext'
41170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41171 (eval $ac_try) 2>&5
41172 ac_status=$?
41173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41174 (exit $ac_status); }; }; then
41175 glibcxx_cv_func_long_double_round_use=yes
41176 else
41177 echo "$as_me: failed program was:" >&5
41178 sed 's/^/| /' conftest.$ac_ext >&5
41180 glibcxx_cv_func_long_double_round_use=no
41182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41183 ac_ext=c
41184 ac_cpp='$CPP $CPPFLAGS'
41185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41191 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
41192 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
41193 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
41196 for ac_func in ceill floorl
41198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41199 echo "$as_me:$LINENO: checking for $ac_func" >&5
41200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41201 if eval "test \"\${$as_ac_var+set}\" = set"; then
41202 echo $ECHO_N "(cached) $ECHO_C" >&6
41203 else
41204 if test x$gcc_no_link = xyes; then
41205 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41207 { (exit 1); exit 1; }; }
41209 cat >conftest.$ac_ext <<_ACEOF
41210 /* confdefs.h. */
41211 _ACEOF
41212 cat confdefs.h >>conftest.$ac_ext
41213 cat >>conftest.$ac_ext <<_ACEOF
41214 /* end confdefs.h. */
41215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41217 #define $ac_func innocuous_$ac_func
41219 /* System header to define __stub macros and hopefully few prototypes,
41220 which can conflict with char $ac_func (); below.
41221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41222 <limits.h> exists even on freestanding compilers. */
41224 #ifdef __STDC__
41225 # include <limits.h>
41226 #else
41227 # include <assert.h>
41228 #endif
41230 #undef $ac_func
41232 /* Override any gcc2 internal prototype to avoid an error. */
41233 #ifdef __cplusplus
41234 extern "C"
41236 #endif
41237 /* We use char because int might match the return type of a gcc2
41238 builtin and then its argument prototype would still apply. */
41239 char $ac_func ();
41240 /* The GNU C library defines this for functions which it implements
41241 to always fail with ENOSYS. Some functions are actually named
41242 something starting with __ and the normal name is an alias. */
41243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41244 choke me
41245 #else
41246 char (*f) () = $ac_func;
41247 #endif
41248 #ifdef __cplusplus
41250 #endif
41253 main ()
41255 return f != $ac_func;
41257 return 0;
41259 _ACEOF
41260 rm -f conftest.$ac_objext conftest$ac_exeext
41261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41262 (eval $ac_link) 2>conftest.er1
41263 ac_status=$?
41264 grep -v '^ *+' conftest.er1 >conftest.err
41265 rm -f conftest.er1
41266 cat conftest.err >&5
41267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268 (exit $ac_status); } &&
41269 { ac_try='test -z "$ac_c_werror_flag"
41270 || test ! -s conftest.err'
41271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41272 (eval $ac_try) 2>&5
41273 ac_status=$?
41274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41275 (exit $ac_status); }; } &&
41276 { ac_try='test -s conftest$ac_exeext'
41277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41278 (eval $ac_try) 2>&5
41279 ac_status=$?
41280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41281 (exit $ac_status); }; }; then
41282 eval "$as_ac_var=yes"
41283 else
41284 echo "$as_me: failed program was:" >&5
41285 sed 's/^/| /' conftest.$ac_ext >&5
41287 eval "$as_ac_var=no"
41289 rm -f conftest.err conftest.$ac_objext \
41290 conftest$ac_exeext conftest.$ac_ext
41292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41294 if test `eval echo '${'$as_ac_var'}'` = yes; then
41295 cat >>confdefs.h <<_ACEOF
41296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41297 _ACEOF
41300 done
41306 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
41307 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
41308 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
41309 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
41310 echo $ECHO_N "(cached) $ECHO_C" >&6
41311 else
41315 ac_ext=cc
41316 ac_cpp='$CXXCPP $CPPFLAGS'
41317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41321 cat >conftest.$ac_ext <<_ACEOF
41322 /* confdefs.h. */
41323 _ACEOF
41324 cat confdefs.h >>conftest.$ac_ext
41325 cat >>conftest.$ac_ext <<_ACEOF
41326 /* end confdefs.h. */
41327 #include <math.h>
41328 #ifdef HAVE_IEEEFP_H
41329 #include <ieeefp.h>
41330 #endif
41333 main ()
41335 isnanl(0);
41337 return 0;
41339 _ACEOF
41340 rm -f conftest.$ac_objext
41341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41342 (eval $ac_compile) 2>conftest.er1
41343 ac_status=$?
41344 grep -v '^ *+' conftest.er1 >conftest.err
41345 rm -f conftest.er1
41346 cat conftest.err >&5
41347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41348 (exit $ac_status); } &&
41349 { ac_try='test -z "$ac_cxx_werror_flag"
41350 || test ! -s conftest.err'
41351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41352 (eval $ac_try) 2>&5
41353 ac_status=$?
41354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355 (exit $ac_status); }; } &&
41356 { ac_try='test -s conftest.$ac_objext'
41357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41358 (eval $ac_try) 2>&5
41359 ac_status=$?
41360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361 (exit $ac_status); }; }; then
41362 glibcxx_cv_func_isnanl_use=yes
41363 else
41364 echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41367 glibcxx_cv_func_isnanl_use=no
41369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41370 ac_ext=c
41371 ac_cpp='$CPP $CPPFLAGS'
41372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41380 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
41381 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
41383 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
41385 for ac_func in isnanl
41387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41388 echo "$as_me:$LINENO: checking for $ac_func" >&5
41389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41390 if eval "test \"\${$as_ac_var+set}\" = set"; then
41391 echo $ECHO_N "(cached) $ECHO_C" >&6
41392 else
41393 if test x$gcc_no_link = xyes; then
41394 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41396 { (exit 1); exit 1; }; }
41398 cat >conftest.$ac_ext <<_ACEOF
41399 /* confdefs.h. */
41400 _ACEOF
41401 cat confdefs.h >>conftest.$ac_ext
41402 cat >>conftest.$ac_ext <<_ACEOF
41403 /* end confdefs.h. */
41404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41406 #define $ac_func innocuous_$ac_func
41408 /* System header to define __stub macros and hopefully few prototypes,
41409 which can conflict with char $ac_func (); below.
41410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41411 <limits.h> exists even on freestanding compilers. */
41413 #ifdef __STDC__
41414 # include <limits.h>
41415 #else
41416 # include <assert.h>
41417 #endif
41419 #undef $ac_func
41421 /* Override any gcc2 internal prototype to avoid an error. */
41422 #ifdef __cplusplus
41423 extern "C"
41425 #endif
41426 /* We use char because int might match the return type of a gcc2
41427 builtin and then its argument prototype would still apply. */
41428 char $ac_func ();
41429 /* The GNU C library defines this for functions which it implements
41430 to always fail with ENOSYS. Some functions are actually named
41431 something starting with __ and the normal name is an alias. */
41432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41433 choke me
41434 #else
41435 char (*f) () = $ac_func;
41436 #endif
41437 #ifdef __cplusplus
41439 #endif
41442 main ()
41444 return f != $ac_func;
41446 return 0;
41448 _ACEOF
41449 rm -f conftest.$ac_objext conftest$ac_exeext
41450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41451 (eval $ac_link) 2>conftest.er1
41452 ac_status=$?
41453 grep -v '^ *+' conftest.er1 >conftest.err
41454 rm -f conftest.er1
41455 cat conftest.err >&5
41456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41457 (exit $ac_status); } &&
41458 { ac_try='test -z "$ac_c_werror_flag"
41459 || test ! -s conftest.err'
41460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461 (eval $ac_try) 2>&5
41462 ac_status=$?
41463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464 (exit $ac_status); }; } &&
41465 { ac_try='test -s conftest$ac_exeext'
41466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41467 (eval $ac_try) 2>&5
41468 ac_status=$?
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); }; }; then
41471 eval "$as_ac_var=yes"
41472 else
41473 echo "$as_me: failed program was:" >&5
41474 sed 's/^/| /' conftest.$ac_ext >&5
41476 eval "$as_ac_var=no"
41478 rm -f conftest.err conftest.$ac_objext \
41479 conftest$ac_exeext conftest.$ac_ext
41481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41483 if test `eval echo '${'$as_ac_var'}'` = yes; then
41484 cat >>confdefs.h <<_ACEOF
41485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41486 _ACEOF
41489 done
41491 else
41493 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
41494 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
41495 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
41496 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
41497 echo $ECHO_N "(cached) $ECHO_C" >&6
41498 else
41502 ac_ext=cc
41503 ac_cpp='$CXXCPP $CPPFLAGS'
41504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41508 cat >conftest.$ac_ext <<_ACEOF
41509 /* confdefs.h. */
41510 _ACEOF
41511 cat confdefs.h >>conftest.$ac_ext
41512 cat >>conftest.$ac_ext <<_ACEOF
41513 /* end confdefs.h. */
41514 #include <math.h>
41515 #ifdef HAVE_IEEEFP_H
41516 #include <ieeefp.h>
41517 #endif
41520 main ()
41522 _isnanl(0);
41524 return 0;
41526 _ACEOF
41527 rm -f conftest.$ac_objext
41528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41529 (eval $ac_compile) 2>conftest.er1
41530 ac_status=$?
41531 grep -v '^ *+' conftest.er1 >conftest.err
41532 rm -f conftest.er1
41533 cat conftest.err >&5
41534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535 (exit $ac_status); } &&
41536 { ac_try='test -z "$ac_cxx_werror_flag"
41537 || test ! -s conftest.err'
41538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539 (eval $ac_try) 2>&5
41540 ac_status=$?
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); }; } &&
41543 { ac_try='test -s conftest.$ac_objext'
41544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41545 (eval $ac_try) 2>&5
41546 ac_status=$?
41547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548 (exit $ac_status); }; }; then
41549 glibcxx_cv_func__isnanl_use=yes
41550 else
41551 echo "$as_me: failed program was:" >&5
41552 sed 's/^/| /' conftest.$ac_ext >&5
41554 glibcxx_cv_func__isnanl_use=no
41556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41557 ac_ext=c
41558 ac_cpp='$CPP $CPPFLAGS'
41559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41567 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41568 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41570 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41572 for ac_func in _isnanl
41574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41575 echo "$as_me:$LINENO: checking for $ac_func" >&5
41576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41577 if eval "test \"\${$as_ac_var+set}\" = set"; then
41578 echo $ECHO_N "(cached) $ECHO_C" >&6
41579 else
41580 if test x$gcc_no_link = xyes; then
41581 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41583 { (exit 1); exit 1; }; }
41585 cat >conftest.$ac_ext <<_ACEOF
41586 /* confdefs.h. */
41587 _ACEOF
41588 cat confdefs.h >>conftest.$ac_ext
41589 cat >>conftest.$ac_ext <<_ACEOF
41590 /* end confdefs.h. */
41591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41593 #define $ac_func innocuous_$ac_func
41595 /* System header to define __stub macros and hopefully few prototypes,
41596 which can conflict with char $ac_func (); below.
41597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41598 <limits.h> exists even on freestanding compilers. */
41600 #ifdef __STDC__
41601 # include <limits.h>
41602 #else
41603 # include <assert.h>
41604 #endif
41606 #undef $ac_func
41608 /* Override any gcc2 internal prototype to avoid an error. */
41609 #ifdef __cplusplus
41610 extern "C"
41612 #endif
41613 /* We use char because int might match the return type of a gcc2
41614 builtin and then its argument prototype would still apply. */
41615 char $ac_func ();
41616 /* The GNU C library defines this for functions which it implements
41617 to always fail with ENOSYS. Some functions are actually named
41618 something starting with __ and the normal name is an alias. */
41619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41620 choke me
41621 #else
41622 char (*f) () = $ac_func;
41623 #endif
41624 #ifdef __cplusplus
41626 #endif
41629 main ()
41631 return f != $ac_func;
41633 return 0;
41635 _ACEOF
41636 rm -f conftest.$ac_objext conftest$ac_exeext
41637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41638 (eval $ac_link) 2>conftest.er1
41639 ac_status=$?
41640 grep -v '^ *+' conftest.er1 >conftest.err
41641 rm -f conftest.er1
41642 cat conftest.err >&5
41643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644 (exit $ac_status); } &&
41645 { ac_try='test -z "$ac_c_werror_flag"
41646 || test ! -s conftest.err'
41647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41648 (eval $ac_try) 2>&5
41649 ac_status=$?
41650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651 (exit $ac_status); }; } &&
41652 { ac_try='test -s conftest$ac_exeext'
41653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41654 (eval $ac_try) 2>&5
41655 ac_status=$?
41656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41657 (exit $ac_status); }; }; then
41658 eval "$as_ac_var=yes"
41659 else
41660 echo "$as_me: failed program was:" >&5
41661 sed 's/^/| /' conftest.$ac_ext >&5
41663 eval "$as_ac_var=no"
41665 rm -f conftest.err conftest.$ac_objext \
41666 conftest$ac_exeext conftest.$ac_ext
41668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41670 if test `eval echo '${'$as_ac_var'}'` = yes; then
41671 cat >>confdefs.h <<_ACEOF
41672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41673 _ACEOF
41676 done
41683 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41684 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41685 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41686 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41687 echo $ECHO_N "(cached) $ECHO_C" >&6
41688 else
41692 ac_ext=cc
41693 ac_cpp='$CXXCPP $CPPFLAGS'
41694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41698 cat >conftest.$ac_ext <<_ACEOF
41699 /* confdefs.h. */
41700 _ACEOF
41701 cat confdefs.h >>conftest.$ac_ext
41702 cat >>conftest.$ac_ext <<_ACEOF
41703 /* end confdefs.h. */
41704 #include <math.h>
41705 #ifdef HAVE_IEEEFP_H
41706 #include <ieeefp.h>
41707 #endif
41710 main ()
41712 isinfl(0);
41714 return 0;
41716 _ACEOF
41717 rm -f conftest.$ac_objext
41718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41719 (eval $ac_compile) 2>conftest.er1
41720 ac_status=$?
41721 grep -v '^ *+' conftest.er1 >conftest.err
41722 rm -f conftest.er1
41723 cat conftest.err >&5
41724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725 (exit $ac_status); } &&
41726 { ac_try='test -z "$ac_cxx_werror_flag"
41727 || test ! -s conftest.err'
41728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729 (eval $ac_try) 2>&5
41730 ac_status=$?
41731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732 (exit $ac_status); }; } &&
41733 { ac_try='test -s conftest.$ac_objext'
41734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735 (eval $ac_try) 2>&5
41736 ac_status=$?
41737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); }; }; then
41739 glibcxx_cv_func_isinfl_use=yes
41740 else
41741 echo "$as_me: failed program was:" >&5
41742 sed 's/^/| /' conftest.$ac_ext >&5
41744 glibcxx_cv_func_isinfl_use=no
41746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41747 ac_ext=c
41748 ac_cpp='$CPP $CPPFLAGS'
41749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41757 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41758 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41760 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41762 for ac_func in isinfl
41764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41765 echo "$as_me:$LINENO: checking for $ac_func" >&5
41766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41767 if eval "test \"\${$as_ac_var+set}\" = set"; then
41768 echo $ECHO_N "(cached) $ECHO_C" >&6
41769 else
41770 if test x$gcc_no_link = xyes; then
41771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41773 { (exit 1); exit 1; }; }
41775 cat >conftest.$ac_ext <<_ACEOF
41776 /* confdefs.h. */
41777 _ACEOF
41778 cat confdefs.h >>conftest.$ac_ext
41779 cat >>conftest.$ac_ext <<_ACEOF
41780 /* end confdefs.h. */
41781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41783 #define $ac_func innocuous_$ac_func
41785 /* System header to define __stub macros and hopefully few prototypes,
41786 which can conflict with char $ac_func (); below.
41787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41788 <limits.h> exists even on freestanding compilers. */
41790 #ifdef __STDC__
41791 # include <limits.h>
41792 #else
41793 # include <assert.h>
41794 #endif
41796 #undef $ac_func
41798 /* Override any gcc2 internal prototype to avoid an error. */
41799 #ifdef __cplusplus
41800 extern "C"
41802 #endif
41803 /* We use char because int might match the return type of a gcc2
41804 builtin and then its argument prototype would still apply. */
41805 char $ac_func ();
41806 /* The GNU C library defines this for functions which it implements
41807 to always fail with ENOSYS. Some functions are actually named
41808 something starting with __ and the normal name is an alias. */
41809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41810 choke me
41811 #else
41812 char (*f) () = $ac_func;
41813 #endif
41814 #ifdef __cplusplus
41816 #endif
41819 main ()
41821 return f != $ac_func;
41823 return 0;
41825 _ACEOF
41826 rm -f conftest.$ac_objext conftest$ac_exeext
41827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41828 (eval $ac_link) 2>conftest.er1
41829 ac_status=$?
41830 grep -v '^ *+' conftest.er1 >conftest.err
41831 rm -f conftest.er1
41832 cat conftest.err >&5
41833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 (exit $ac_status); } &&
41835 { ac_try='test -z "$ac_c_werror_flag"
41836 || test ! -s conftest.err'
41837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41838 (eval $ac_try) 2>&5
41839 ac_status=$?
41840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841 (exit $ac_status); }; } &&
41842 { ac_try='test -s conftest$ac_exeext'
41843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844 (eval $ac_try) 2>&5
41845 ac_status=$?
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); }; }; then
41848 eval "$as_ac_var=yes"
41849 else
41850 echo "$as_me: failed program was:" >&5
41851 sed 's/^/| /' conftest.$ac_ext >&5
41853 eval "$as_ac_var=no"
41855 rm -f conftest.err conftest.$ac_objext \
41856 conftest$ac_exeext conftest.$ac_ext
41858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41860 if test `eval echo '${'$as_ac_var'}'` = yes; then
41861 cat >>confdefs.h <<_ACEOF
41862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41863 _ACEOF
41866 done
41868 else
41870 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
41871 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
41872 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
41873 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
41874 echo $ECHO_N "(cached) $ECHO_C" >&6
41875 else
41879 ac_ext=cc
41880 ac_cpp='$CXXCPP $CPPFLAGS'
41881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41885 cat >conftest.$ac_ext <<_ACEOF
41886 /* confdefs.h. */
41887 _ACEOF
41888 cat confdefs.h >>conftest.$ac_ext
41889 cat >>conftest.$ac_ext <<_ACEOF
41890 /* end confdefs.h. */
41891 #include <math.h>
41892 #ifdef HAVE_IEEEFP_H
41893 #include <ieeefp.h>
41894 #endif
41897 main ()
41899 _isinfl(0);
41901 return 0;
41903 _ACEOF
41904 rm -f conftest.$ac_objext
41905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41906 (eval $ac_compile) 2>conftest.er1
41907 ac_status=$?
41908 grep -v '^ *+' conftest.er1 >conftest.err
41909 rm -f conftest.er1
41910 cat conftest.err >&5
41911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912 (exit $ac_status); } &&
41913 { ac_try='test -z "$ac_cxx_werror_flag"
41914 || test ! -s conftest.err'
41915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41916 (eval $ac_try) 2>&5
41917 ac_status=$?
41918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41919 (exit $ac_status); }; } &&
41920 { ac_try='test -s conftest.$ac_objext'
41921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41922 (eval $ac_try) 2>&5
41923 ac_status=$?
41924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41925 (exit $ac_status); }; }; then
41926 glibcxx_cv_func__isinfl_use=yes
41927 else
41928 echo "$as_me: failed program was:" >&5
41929 sed 's/^/| /' conftest.$ac_ext >&5
41931 glibcxx_cv_func__isinfl_use=no
41933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41934 ac_ext=c
41935 ac_cpp='$CPP $CPPFLAGS'
41936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41944 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
41945 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
41947 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
41949 for ac_func in _isinfl
41951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41952 echo "$as_me:$LINENO: checking for $ac_func" >&5
41953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41954 if eval "test \"\${$as_ac_var+set}\" = set"; then
41955 echo $ECHO_N "(cached) $ECHO_C" >&6
41956 else
41957 if test x$gcc_no_link = xyes; then
41958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41960 { (exit 1); exit 1; }; }
41962 cat >conftest.$ac_ext <<_ACEOF
41963 /* confdefs.h. */
41964 _ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h. */
41968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41970 #define $ac_func innocuous_$ac_func
41972 /* System header to define __stub macros and hopefully few prototypes,
41973 which can conflict with char $ac_func (); below.
41974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41975 <limits.h> exists even on freestanding compilers. */
41977 #ifdef __STDC__
41978 # include <limits.h>
41979 #else
41980 # include <assert.h>
41981 #endif
41983 #undef $ac_func
41985 /* Override any gcc2 internal prototype to avoid an error. */
41986 #ifdef __cplusplus
41987 extern "C"
41989 #endif
41990 /* We use char because int might match the return type of a gcc2
41991 builtin and then its argument prototype would still apply. */
41992 char $ac_func ();
41993 /* The GNU C library defines this for functions which it implements
41994 to always fail with ENOSYS. Some functions are actually named
41995 something starting with __ and the normal name is an alias. */
41996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41997 choke me
41998 #else
41999 char (*f) () = $ac_func;
42000 #endif
42001 #ifdef __cplusplus
42003 #endif
42006 main ()
42008 return f != $ac_func;
42010 return 0;
42012 _ACEOF
42013 rm -f conftest.$ac_objext conftest$ac_exeext
42014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42015 (eval $ac_link) 2>conftest.er1
42016 ac_status=$?
42017 grep -v '^ *+' conftest.er1 >conftest.err
42018 rm -f conftest.er1
42019 cat conftest.err >&5
42020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021 (exit $ac_status); } &&
42022 { ac_try='test -z "$ac_c_werror_flag"
42023 || test ! -s conftest.err'
42024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42025 (eval $ac_try) 2>&5
42026 ac_status=$?
42027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42028 (exit $ac_status); }; } &&
42029 { ac_try='test -s conftest$ac_exeext'
42030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42031 (eval $ac_try) 2>&5
42032 ac_status=$?
42033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42034 (exit $ac_status); }; }; then
42035 eval "$as_ac_var=yes"
42036 else
42037 echo "$as_me: failed program was:" >&5
42038 sed 's/^/| /' conftest.$ac_ext >&5
42040 eval "$as_ac_var=no"
42042 rm -f conftest.err conftest.$ac_objext \
42043 conftest$ac_exeext conftest.$ac_ext
42045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42047 if test `eval echo '${'$as_ac_var'}'` = yes; then
42048 cat >>confdefs.h <<_ACEOF
42049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42050 _ACEOF
42053 done
42060 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
42061 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
42062 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
42063 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
42064 echo $ECHO_N "(cached) $ECHO_C" >&6
42065 else
42069 ac_ext=cc
42070 ac_cpp='$CXXCPP $CPPFLAGS'
42071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42075 cat >conftest.$ac_ext <<_ACEOF
42076 /* confdefs.h. */
42077 _ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h. */
42081 #include <math.h>
42083 main ()
42085 copysignl(0, 0);
42087 return 0;
42089 _ACEOF
42090 rm -f conftest.$ac_objext
42091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42092 (eval $ac_compile) 2>conftest.er1
42093 ac_status=$?
42094 grep -v '^ *+' conftest.er1 >conftest.err
42095 rm -f conftest.er1
42096 cat conftest.err >&5
42097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42098 (exit $ac_status); } &&
42099 { ac_try='test -z "$ac_cxx_werror_flag"
42100 || test ! -s conftest.err'
42101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42102 (eval $ac_try) 2>&5
42103 ac_status=$?
42104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105 (exit $ac_status); }; } &&
42106 { ac_try='test -s conftest.$ac_objext'
42107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42108 (eval $ac_try) 2>&5
42109 ac_status=$?
42110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42111 (exit $ac_status); }; }; then
42112 glibcxx_cv_func_copysignl_use=yes
42113 else
42114 echo "$as_me: failed program was:" >&5
42115 sed 's/^/| /' conftest.$ac_ext >&5
42117 glibcxx_cv_func_copysignl_use=no
42119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42120 ac_ext=c
42121 ac_cpp='$CPP $CPPFLAGS'
42122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42130 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
42131 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
42133 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
42135 for ac_func in copysignl
42137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42138 echo "$as_me:$LINENO: checking for $ac_func" >&5
42139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42140 if eval "test \"\${$as_ac_var+set}\" = set"; then
42141 echo $ECHO_N "(cached) $ECHO_C" >&6
42142 else
42143 if test x$gcc_no_link = xyes; then
42144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42146 { (exit 1); exit 1; }; }
42148 cat >conftest.$ac_ext <<_ACEOF
42149 /* confdefs.h. */
42150 _ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h. */
42154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42156 #define $ac_func innocuous_$ac_func
42158 /* System header to define __stub macros and hopefully few prototypes,
42159 which can conflict with char $ac_func (); below.
42160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42161 <limits.h> exists even on freestanding compilers. */
42163 #ifdef __STDC__
42164 # include <limits.h>
42165 #else
42166 # include <assert.h>
42167 #endif
42169 #undef $ac_func
42171 /* Override any gcc2 internal prototype to avoid an error. */
42172 #ifdef __cplusplus
42173 extern "C"
42175 #endif
42176 /* We use char because int might match the return type of a gcc2
42177 builtin and then its argument prototype would still apply. */
42178 char $ac_func ();
42179 /* The GNU C library defines this for functions which it implements
42180 to always fail with ENOSYS. Some functions are actually named
42181 something starting with __ and the normal name is an alias. */
42182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42183 choke me
42184 #else
42185 char (*f) () = $ac_func;
42186 #endif
42187 #ifdef __cplusplus
42189 #endif
42192 main ()
42194 return f != $ac_func;
42196 return 0;
42198 _ACEOF
42199 rm -f conftest.$ac_objext conftest$ac_exeext
42200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42201 (eval $ac_link) 2>conftest.er1
42202 ac_status=$?
42203 grep -v '^ *+' conftest.er1 >conftest.err
42204 rm -f conftest.er1
42205 cat conftest.err >&5
42206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42207 (exit $ac_status); } &&
42208 { ac_try='test -z "$ac_c_werror_flag"
42209 || test ! -s conftest.err'
42210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42211 (eval $ac_try) 2>&5
42212 ac_status=$?
42213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42214 (exit $ac_status); }; } &&
42215 { ac_try='test -s conftest$ac_exeext'
42216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42217 (eval $ac_try) 2>&5
42218 ac_status=$?
42219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42220 (exit $ac_status); }; }; then
42221 eval "$as_ac_var=yes"
42222 else
42223 echo "$as_me: failed program was:" >&5
42224 sed 's/^/| /' conftest.$ac_ext >&5
42226 eval "$as_ac_var=no"
42228 rm -f conftest.err conftest.$ac_objext \
42229 conftest$ac_exeext conftest.$ac_ext
42231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42233 if test `eval echo '${'$as_ac_var'}'` = yes; then
42234 cat >>confdefs.h <<_ACEOF
42235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42236 _ACEOF
42239 done
42241 else
42243 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
42244 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
42245 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
42246 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
42247 echo $ECHO_N "(cached) $ECHO_C" >&6
42248 else
42252 ac_ext=cc
42253 ac_cpp='$CXXCPP $CPPFLAGS'
42254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42258 cat >conftest.$ac_ext <<_ACEOF
42259 /* confdefs.h. */
42260 _ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h. */
42264 #include <math.h>
42266 main ()
42268 _copysignl(0, 0);
42270 return 0;
42272 _ACEOF
42273 rm -f conftest.$ac_objext
42274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42275 (eval $ac_compile) 2>conftest.er1
42276 ac_status=$?
42277 grep -v '^ *+' conftest.er1 >conftest.err
42278 rm -f conftest.er1
42279 cat conftest.err >&5
42280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281 (exit $ac_status); } &&
42282 { ac_try='test -z "$ac_cxx_werror_flag"
42283 || test ! -s conftest.err'
42284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42285 (eval $ac_try) 2>&5
42286 ac_status=$?
42287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288 (exit $ac_status); }; } &&
42289 { ac_try='test -s conftest.$ac_objext'
42290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42291 (eval $ac_try) 2>&5
42292 ac_status=$?
42293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42294 (exit $ac_status); }; }; then
42295 glibcxx_cv_func__copysignl_use=yes
42296 else
42297 echo "$as_me: failed program was:" >&5
42298 sed 's/^/| /' conftest.$ac_ext >&5
42300 glibcxx_cv_func__copysignl_use=no
42302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42303 ac_ext=c
42304 ac_cpp='$CPP $CPPFLAGS'
42305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42313 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
42314 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
42316 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
42318 for ac_func in _copysignl
42320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42321 echo "$as_me:$LINENO: checking for $ac_func" >&5
42322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42323 if eval "test \"\${$as_ac_var+set}\" = set"; then
42324 echo $ECHO_N "(cached) $ECHO_C" >&6
42325 else
42326 if test x$gcc_no_link = xyes; then
42327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42329 { (exit 1); exit 1; }; }
42331 cat >conftest.$ac_ext <<_ACEOF
42332 /* confdefs.h. */
42333 _ACEOF
42334 cat confdefs.h >>conftest.$ac_ext
42335 cat >>conftest.$ac_ext <<_ACEOF
42336 /* end confdefs.h. */
42337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42339 #define $ac_func innocuous_$ac_func
42341 /* System header to define __stub macros and hopefully few prototypes,
42342 which can conflict with char $ac_func (); below.
42343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42344 <limits.h> exists even on freestanding compilers. */
42346 #ifdef __STDC__
42347 # include <limits.h>
42348 #else
42349 # include <assert.h>
42350 #endif
42352 #undef $ac_func
42354 /* Override any gcc2 internal prototype to avoid an error. */
42355 #ifdef __cplusplus
42356 extern "C"
42358 #endif
42359 /* We use char because int might match the return type of a gcc2
42360 builtin and then its argument prototype would still apply. */
42361 char $ac_func ();
42362 /* The GNU C library defines this for functions which it implements
42363 to always fail with ENOSYS. Some functions are actually named
42364 something starting with __ and the normal name is an alias. */
42365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42366 choke me
42367 #else
42368 char (*f) () = $ac_func;
42369 #endif
42370 #ifdef __cplusplus
42372 #endif
42375 main ()
42377 return f != $ac_func;
42379 return 0;
42381 _ACEOF
42382 rm -f conftest.$ac_objext conftest$ac_exeext
42383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42384 (eval $ac_link) 2>conftest.er1
42385 ac_status=$?
42386 grep -v '^ *+' conftest.er1 >conftest.err
42387 rm -f conftest.er1
42388 cat conftest.err >&5
42389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42390 (exit $ac_status); } &&
42391 { ac_try='test -z "$ac_c_werror_flag"
42392 || test ! -s conftest.err'
42393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42394 (eval $ac_try) 2>&5
42395 ac_status=$?
42396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397 (exit $ac_status); }; } &&
42398 { ac_try='test -s conftest$ac_exeext'
42399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42400 (eval $ac_try) 2>&5
42401 ac_status=$?
42402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403 (exit $ac_status); }; }; then
42404 eval "$as_ac_var=yes"
42405 else
42406 echo "$as_me: failed program was:" >&5
42407 sed 's/^/| /' conftest.$ac_ext >&5
42409 eval "$as_ac_var=no"
42411 rm -f conftest.err conftest.$ac_objext \
42412 conftest$ac_exeext conftest.$ac_ext
42414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42416 if test `eval echo '${'$as_ac_var'}'` = yes; then
42417 cat >>confdefs.h <<_ACEOF
42418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42419 _ACEOF
42422 done
42429 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
42430 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
42431 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
42432 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
42433 echo $ECHO_N "(cached) $ECHO_C" >&6
42434 else
42438 ac_ext=cc
42439 ac_cpp='$CXXCPP $CPPFLAGS'
42440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42444 cat >conftest.$ac_ext <<_ACEOF
42445 /* confdefs.h. */
42446 _ACEOF
42447 cat confdefs.h >>conftest.$ac_ext
42448 cat >>conftest.$ac_ext <<_ACEOF
42449 /* end confdefs.h. */
42450 #include <math.h>
42452 main ()
42454 atan2l(0, 0);
42456 return 0;
42458 _ACEOF
42459 rm -f conftest.$ac_objext
42460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42461 (eval $ac_compile) 2>conftest.er1
42462 ac_status=$?
42463 grep -v '^ *+' conftest.er1 >conftest.err
42464 rm -f conftest.er1
42465 cat conftest.err >&5
42466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42467 (exit $ac_status); } &&
42468 { ac_try='test -z "$ac_cxx_werror_flag"
42469 || test ! -s conftest.err'
42470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42471 (eval $ac_try) 2>&5
42472 ac_status=$?
42473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474 (exit $ac_status); }; } &&
42475 { ac_try='test -s conftest.$ac_objext'
42476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42477 (eval $ac_try) 2>&5
42478 ac_status=$?
42479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480 (exit $ac_status); }; }; then
42481 glibcxx_cv_func_atan2l_use=yes
42482 else
42483 echo "$as_me: failed program was:" >&5
42484 sed 's/^/| /' conftest.$ac_ext >&5
42486 glibcxx_cv_func_atan2l_use=no
42488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42489 ac_ext=c
42490 ac_cpp='$CPP $CPPFLAGS'
42491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42499 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
42500 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
42502 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
42504 for ac_func in atan2l
42506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42507 echo "$as_me:$LINENO: checking for $ac_func" >&5
42508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42509 if eval "test \"\${$as_ac_var+set}\" = set"; then
42510 echo $ECHO_N "(cached) $ECHO_C" >&6
42511 else
42512 if test x$gcc_no_link = xyes; then
42513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42515 { (exit 1); exit 1; }; }
42517 cat >conftest.$ac_ext <<_ACEOF
42518 /* confdefs.h. */
42519 _ACEOF
42520 cat confdefs.h >>conftest.$ac_ext
42521 cat >>conftest.$ac_ext <<_ACEOF
42522 /* end confdefs.h. */
42523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42525 #define $ac_func innocuous_$ac_func
42527 /* System header to define __stub macros and hopefully few prototypes,
42528 which can conflict with char $ac_func (); below.
42529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42530 <limits.h> exists even on freestanding compilers. */
42532 #ifdef __STDC__
42533 # include <limits.h>
42534 #else
42535 # include <assert.h>
42536 #endif
42538 #undef $ac_func
42540 /* Override any gcc2 internal prototype to avoid an error. */
42541 #ifdef __cplusplus
42542 extern "C"
42544 #endif
42545 /* We use char because int might match the return type of a gcc2
42546 builtin and then its argument prototype would still apply. */
42547 char $ac_func ();
42548 /* The GNU C library defines this for functions which it implements
42549 to always fail with ENOSYS. Some functions are actually named
42550 something starting with __ and the normal name is an alias. */
42551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42552 choke me
42553 #else
42554 char (*f) () = $ac_func;
42555 #endif
42556 #ifdef __cplusplus
42558 #endif
42561 main ()
42563 return f != $ac_func;
42565 return 0;
42567 _ACEOF
42568 rm -f conftest.$ac_objext conftest$ac_exeext
42569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42570 (eval $ac_link) 2>conftest.er1
42571 ac_status=$?
42572 grep -v '^ *+' conftest.er1 >conftest.err
42573 rm -f conftest.er1
42574 cat conftest.err >&5
42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); } &&
42577 { ac_try='test -z "$ac_c_werror_flag"
42578 || test ! -s conftest.err'
42579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580 (eval $ac_try) 2>&5
42581 ac_status=$?
42582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 (exit $ac_status); }; } &&
42584 { ac_try='test -s conftest$ac_exeext'
42585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586 (eval $ac_try) 2>&5
42587 ac_status=$?
42588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589 (exit $ac_status); }; }; then
42590 eval "$as_ac_var=yes"
42591 else
42592 echo "$as_me: failed program was:" >&5
42593 sed 's/^/| /' conftest.$ac_ext >&5
42595 eval "$as_ac_var=no"
42597 rm -f conftest.err conftest.$ac_objext \
42598 conftest$ac_exeext conftest.$ac_ext
42600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42602 if test `eval echo '${'$as_ac_var'}'` = yes; then
42603 cat >>confdefs.h <<_ACEOF
42604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42605 _ACEOF
42608 done
42610 else
42612 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42613 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42614 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42615 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42616 echo $ECHO_N "(cached) $ECHO_C" >&6
42617 else
42621 ac_ext=cc
42622 ac_cpp='$CXXCPP $CPPFLAGS'
42623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42627 cat >conftest.$ac_ext <<_ACEOF
42628 /* confdefs.h. */
42629 _ACEOF
42630 cat confdefs.h >>conftest.$ac_ext
42631 cat >>conftest.$ac_ext <<_ACEOF
42632 /* end confdefs.h. */
42633 #include <math.h>
42635 main ()
42637 _atan2l(0, 0);
42639 return 0;
42641 _ACEOF
42642 rm -f conftest.$ac_objext
42643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42644 (eval $ac_compile) 2>conftest.er1
42645 ac_status=$?
42646 grep -v '^ *+' conftest.er1 >conftest.err
42647 rm -f conftest.er1
42648 cat conftest.err >&5
42649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650 (exit $ac_status); } &&
42651 { ac_try='test -z "$ac_cxx_werror_flag"
42652 || test ! -s conftest.err'
42653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42654 (eval $ac_try) 2>&5
42655 ac_status=$?
42656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }; } &&
42658 { ac_try='test -s conftest.$ac_objext'
42659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42660 (eval $ac_try) 2>&5
42661 ac_status=$?
42662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663 (exit $ac_status); }; }; then
42664 glibcxx_cv_func__atan2l_use=yes
42665 else
42666 echo "$as_me: failed program was:" >&5
42667 sed 's/^/| /' conftest.$ac_ext >&5
42669 glibcxx_cv_func__atan2l_use=no
42671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42672 ac_ext=c
42673 ac_cpp='$CPP $CPPFLAGS'
42674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42682 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42683 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42685 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42687 for ac_func in _atan2l
42689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42690 echo "$as_me:$LINENO: checking for $ac_func" >&5
42691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42692 if eval "test \"\${$as_ac_var+set}\" = set"; then
42693 echo $ECHO_N "(cached) $ECHO_C" >&6
42694 else
42695 if test x$gcc_no_link = xyes; then
42696 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42698 { (exit 1); exit 1; }; }
42700 cat >conftest.$ac_ext <<_ACEOF
42701 /* confdefs.h. */
42702 _ACEOF
42703 cat confdefs.h >>conftest.$ac_ext
42704 cat >>conftest.$ac_ext <<_ACEOF
42705 /* end confdefs.h. */
42706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42708 #define $ac_func innocuous_$ac_func
42710 /* System header to define __stub macros and hopefully few prototypes,
42711 which can conflict with char $ac_func (); below.
42712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42713 <limits.h> exists even on freestanding compilers. */
42715 #ifdef __STDC__
42716 # include <limits.h>
42717 #else
42718 # include <assert.h>
42719 #endif
42721 #undef $ac_func
42723 /* Override any gcc2 internal prototype to avoid an error. */
42724 #ifdef __cplusplus
42725 extern "C"
42727 #endif
42728 /* We use char because int might match the return type of a gcc2
42729 builtin and then its argument prototype would still apply. */
42730 char $ac_func ();
42731 /* The GNU C library defines this for functions which it implements
42732 to always fail with ENOSYS. Some functions are actually named
42733 something starting with __ and the normal name is an alias. */
42734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42735 choke me
42736 #else
42737 char (*f) () = $ac_func;
42738 #endif
42739 #ifdef __cplusplus
42741 #endif
42744 main ()
42746 return f != $ac_func;
42748 return 0;
42750 _ACEOF
42751 rm -f conftest.$ac_objext conftest$ac_exeext
42752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42753 (eval $ac_link) 2>conftest.er1
42754 ac_status=$?
42755 grep -v '^ *+' conftest.er1 >conftest.err
42756 rm -f conftest.er1
42757 cat conftest.err >&5
42758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759 (exit $ac_status); } &&
42760 { ac_try='test -z "$ac_c_werror_flag"
42761 || test ! -s conftest.err'
42762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763 (eval $ac_try) 2>&5
42764 ac_status=$?
42765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766 (exit $ac_status); }; } &&
42767 { ac_try='test -s conftest$ac_exeext'
42768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42769 (eval $ac_try) 2>&5
42770 ac_status=$?
42771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42772 (exit $ac_status); }; }; then
42773 eval "$as_ac_var=yes"
42774 else
42775 echo "$as_me: failed program was:" >&5
42776 sed 's/^/| /' conftest.$ac_ext >&5
42778 eval "$as_ac_var=no"
42780 rm -f conftest.err conftest.$ac_objext \
42781 conftest$ac_exeext conftest.$ac_ext
42783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42785 if test `eval echo '${'$as_ac_var'}'` = yes; then
42786 cat >>confdefs.h <<_ACEOF
42787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42788 _ACEOF
42791 done
42798 echo "$as_me:$LINENO: checking for expl declaration" >&5
42799 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42800 if test x${glibcxx_cv_func_expl_use+set} != xset; then
42801 if test "${glibcxx_cv_func_expl_use+set}" = set; then
42802 echo $ECHO_N "(cached) $ECHO_C" >&6
42803 else
42807 ac_ext=cc
42808 ac_cpp='$CXXCPP $CPPFLAGS'
42809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42813 cat >conftest.$ac_ext <<_ACEOF
42814 /* confdefs.h. */
42815 _ACEOF
42816 cat confdefs.h >>conftest.$ac_ext
42817 cat >>conftest.$ac_ext <<_ACEOF
42818 /* end confdefs.h. */
42819 #include <math.h>
42820 #ifdef HAVE_IEEEFP_H
42821 #include <ieeefp.h>
42822 #endif
42825 main ()
42827 expl(0);
42829 return 0;
42831 _ACEOF
42832 rm -f conftest.$ac_objext
42833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42834 (eval $ac_compile) 2>conftest.er1
42835 ac_status=$?
42836 grep -v '^ *+' conftest.er1 >conftest.err
42837 rm -f conftest.er1
42838 cat conftest.err >&5
42839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42840 (exit $ac_status); } &&
42841 { ac_try='test -z "$ac_cxx_werror_flag"
42842 || test ! -s conftest.err'
42843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42844 (eval $ac_try) 2>&5
42845 ac_status=$?
42846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42847 (exit $ac_status); }; } &&
42848 { ac_try='test -s conftest.$ac_objext'
42849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42850 (eval $ac_try) 2>&5
42851 ac_status=$?
42852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42853 (exit $ac_status); }; }; then
42854 glibcxx_cv_func_expl_use=yes
42855 else
42856 echo "$as_me: failed program was:" >&5
42857 sed 's/^/| /' conftest.$ac_ext >&5
42859 glibcxx_cv_func_expl_use=no
42861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42862 ac_ext=c
42863 ac_cpp='$CPP $CPPFLAGS'
42864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42872 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
42873 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
42875 if test x$glibcxx_cv_func_expl_use = x"yes"; then
42877 for ac_func in expl
42879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42880 echo "$as_me:$LINENO: checking for $ac_func" >&5
42881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42882 if eval "test \"\${$as_ac_var+set}\" = set"; then
42883 echo $ECHO_N "(cached) $ECHO_C" >&6
42884 else
42885 if test x$gcc_no_link = xyes; then
42886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42888 { (exit 1); exit 1; }; }
42890 cat >conftest.$ac_ext <<_ACEOF
42891 /* confdefs.h. */
42892 _ACEOF
42893 cat confdefs.h >>conftest.$ac_ext
42894 cat >>conftest.$ac_ext <<_ACEOF
42895 /* end confdefs.h. */
42896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42898 #define $ac_func innocuous_$ac_func
42900 /* System header to define __stub macros and hopefully few prototypes,
42901 which can conflict with char $ac_func (); below.
42902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42903 <limits.h> exists even on freestanding compilers. */
42905 #ifdef __STDC__
42906 # include <limits.h>
42907 #else
42908 # include <assert.h>
42909 #endif
42911 #undef $ac_func
42913 /* Override any gcc2 internal prototype to avoid an error. */
42914 #ifdef __cplusplus
42915 extern "C"
42917 #endif
42918 /* We use char because int might match the return type of a gcc2
42919 builtin and then its argument prototype would still apply. */
42920 char $ac_func ();
42921 /* The GNU C library defines this for functions which it implements
42922 to always fail with ENOSYS. Some functions are actually named
42923 something starting with __ and the normal name is an alias. */
42924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42925 choke me
42926 #else
42927 char (*f) () = $ac_func;
42928 #endif
42929 #ifdef __cplusplus
42931 #endif
42934 main ()
42936 return f != $ac_func;
42938 return 0;
42940 _ACEOF
42941 rm -f conftest.$ac_objext conftest$ac_exeext
42942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42943 (eval $ac_link) 2>conftest.er1
42944 ac_status=$?
42945 grep -v '^ *+' conftest.er1 >conftest.err
42946 rm -f conftest.er1
42947 cat conftest.err >&5
42948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42949 (exit $ac_status); } &&
42950 { ac_try='test -z "$ac_c_werror_flag"
42951 || test ! -s conftest.err'
42952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42953 (eval $ac_try) 2>&5
42954 ac_status=$?
42955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42956 (exit $ac_status); }; } &&
42957 { ac_try='test -s conftest$ac_exeext'
42958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42959 (eval $ac_try) 2>&5
42960 ac_status=$?
42961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42962 (exit $ac_status); }; }; then
42963 eval "$as_ac_var=yes"
42964 else
42965 echo "$as_me: failed program was:" >&5
42966 sed 's/^/| /' conftest.$ac_ext >&5
42968 eval "$as_ac_var=no"
42970 rm -f conftest.err conftest.$ac_objext \
42971 conftest$ac_exeext conftest.$ac_ext
42973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42975 if test `eval echo '${'$as_ac_var'}'` = yes; then
42976 cat >>confdefs.h <<_ACEOF
42977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42978 _ACEOF
42981 done
42983 else
42985 echo "$as_me:$LINENO: checking for _expl declaration" >&5
42986 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
42987 if test x${glibcxx_cv_func__expl_use+set} != xset; then
42988 if test "${glibcxx_cv_func__expl_use+set}" = set; then
42989 echo $ECHO_N "(cached) $ECHO_C" >&6
42990 else
42994 ac_ext=cc
42995 ac_cpp='$CXXCPP $CPPFLAGS'
42996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43000 cat >conftest.$ac_ext <<_ACEOF
43001 /* confdefs.h. */
43002 _ACEOF
43003 cat confdefs.h >>conftest.$ac_ext
43004 cat >>conftest.$ac_ext <<_ACEOF
43005 /* end confdefs.h. */
43006 #include <math.h>
43007 #ifdef HAVE_IEEEFP_H
43008 #include <ieeefp.h>
43009 #endif
43012 main ()
43014 _expl(0);
43016 return 0;
43018 _ACEOF
43019 rm -f conftest.$ac_objext
43020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43021 (eval $ac_compile) 2>conftest.er1
43022 ac_status=$?
43023 grep -v '^ *+' conftest.er1 >conftest.err
43024 rm -f conftest.er1
43025 cat conftest.err >&5
43026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43027 (exit $ac_status); } &&
43028 { ac_try='test -z "$ac_cxx_werror_flag"
43029 || test ! -s conftest.err'
43030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43031 (eval $ac_try) 2>&5
43032 ac_status=$?
43033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034 (exit $ac_status); }; } &&
43035 { ac_try='test -s conftest.$ac_objext'
43036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43037 (eval $ac_try) 2>&5
43038 ac_status=$?
43039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43040 (exit $ac_status); }; }; then
43041 glibcxx_cv_func__expl_use=yes
43042 else
43043 echo "$as_me: failed program was:" >&5
43044 sed 's/^/| /' conftest.$ac_ext >&5
43046 glibcxx_cv_func__expl_use=no
43048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43049 ac_ext=c
43050 ac_cpp='$CPP $CPPFLAGS'
43051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43059 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
43060 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
43062 if test x$glibcxx_cv_func__expl_use = x"yes"; then
43064 for ac_func in _expl
43066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43067 echo "$as_me:$LINENO: checking for $ac_func" >&5
43068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43069 if eval "test \"\${$as_ac_var+set}\" = set"; then
43070 echo $ECHO_N "(cached) $ECHO_C" >&6
43071 else
43072 if test x$gcc_no_link = xyes; then
43073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43075 { (exit 1); exit 1; }; }
43077 cat >conftest.$ac_ext <<_ACEOF
43078 /* confdefs.h. */
43079 _ACEOF
43080 cat confdefs.h >>conftest.$ac_ext
43081 cat >>conftest.$ac_ext <<_ACEOF
43082 /* end confdefs.h. */
43083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43085 #define $ac_func innocuous_$ac_func
43087 /* System header to define __stub macros and hopefully few prototypes,
43088 which can conflict with char $ac_func (); below.
43089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43090 <limits.h> exists even on freestanding compilers. */
43092 #ifdef __STDC__
43093 # include <limits.h>
43094 #else
43095 # include <assert.h>
43096 #endif
43098 #undef $ac_func
43100 /* Override any gcc2 internal prototype to avoid an error. */
43101 #ifdef __cplusplus
43102 extern "C"
43104 #endif
43105 /* We use char because int might match the return type of a gcc2
43106 builtin and then its argument prototype would still apply. */
43107 char $ac_func ();
43108 /* The GNU C library defines this for functions which it implements
43109 to always fail with ENOSYS. Some functions are actually named
43110 something starting with __ and the normal name is an alias. */
43111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43112 choke me
43113 #else
43114 char (*f) () = $ac_func;
43115 #endif
43116 #ifdef __cplusplus
43118 #endif
43121 main ()
43123 return f != $ac_func;
43125 return 0;
43127 _ACEOF
43128 rm -f conftest.$ac_objext conftest$ac_exeext
43129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43130 (eval $ac_link) 2>conftest.er1
43131 ac_status=$?
43132 grep -v '^ *+' conftest.er1 >conftest.err
43133 rm -f conftest.er1
43134 cat conftest.err >&5
43135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43136 (exit $ac_status); } &&
43137 { ac_try='test -z "$ac_c_werror_flag"
43138 || test ! -s conftest.err'
43139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43140 (eval $ac_try) 2>&5
43141 ac_status=$?
43142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43143 (exit $ac_status); }; } &&
43144 { ac_try='test -s conftest$ac_exeext'
43145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43146 (eval $ac_try) 2>&5
43147 ac_status=$?
43148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43149 (exit $ac_status); }; }; then
43150 eval "$as_ac_var=yes"
43151 else
43152 echo "$as_me: failed program was:" >&5
43153 sed 's/^/| /' conftest.$ac_ext >&5
43155 eval "$as_ac_var=no"
43157 rm -f conftest.err conftest.$ac_objext \
43158 conftest$ac_exeext conftest.$ac_ext
43160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43162 if test `eval echo '${'$as_ac_var'}'` = yes; then
43163 cat >>confdefs.h <<_ACEOF
43164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43165 _ACEOF
43168 done
43175 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
43176 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
43177 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
43178 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
43179 echo $ECHO_N "(cached) $ECHO_C" >&6
43180 else
43184 ac_ext=cc
43185 ac_cpp='$CXXCPP $CPPFLAGS'
43186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43190 cat >conftest.$ac_ext <<_ACEOF
43191 /* confdefs.h. */
43192 _ACEOF
43193 cat confdefs.h >>conftest.$ac_ext
43194 cat >>conftest.$ac_ext <<_ACEOF
43195 /* end confdefs.h. */
43196 #include <math.h>
43197 #ifdef HAVE_IEEEFP_H
43198 #include <ieeefp.h>
43199 #endif
43202 main ()
43204 fabsl(0);
43206 return 0;
43208 _ACEOF
43209 rm -f conftest.$ac_objext
43210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43211 (eval $ac_compile) 2>conftest.er1
43212 ac_status=$?
43213 grep -v '^ *+' conftest.er1 >conftest.err
43214 rm -f conftest.er1
43215 cat conftest.err >&5
43216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217 (exit $ac_status); } &&
43218 { ac_try='test -z "$ac_cxx_werror_flag"
43219 || test ! -s conftest.err'
43220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43221 (eval $ac_try) 2>&5
43222 ac_status=$?
43223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43224 (exit $ac_status); }; } &&
43225 { ac_try='test -s conftest.$ac_objext'
43226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43227 (eval $ac_try) 2>&5
43228 ac_status=$?
43229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230 (exit $ac_status); }; }; then
43231 glibcxx_cv_func_fabsl_use=yes
43232 else
43233 echo "$as_me: failed program was:" >&5
43234 sed 's/^/| /' conftest.$ac_ext >&5
43236 glibcxx_cv_func_fabsl_use=no
43238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43239 ac_ext=c
43240 ac_cpp='$CPP $CPPFLAGS'
43241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43249 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
43250 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
43252 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
43254 for ac_func in fabsl
43256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43257 echo "$as_me:$LINENO: checking for $ac_func" >&5
43258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43259 if eval "test \"\${$as_ac_var+set}\" = set"; then
43260 echo $ECHO_N "(cached) $ECHO_C" >&6
43261 else
43262 if test x$gcc_no_link = xyes; then
43263 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43264 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43265 { (exit 1); exit 1; }; }
43267 cat >conftest.$ac_ext <<_ACEOF
43268 /* confdefs.h. */
43269 _ACEOF
43270 cat confdefs.h >>conftest.$ac_ext
43271 cat >>conftest.$ac_ext <<_ACEOF
43272 /* end confdefs.h. */
43273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43275 #define $ac_func innocuous_$ac_func
43277 /* System header to define __stub macros and hopefully few prototypes,
43278 which can conflict with char $ac_func (); below.
43279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43280 <limits.h> exists even on freestanding compilers. */
43282 #ifdef __STDC__
43283 # include <limits.h>
43284 #else
43285 # include <assert.h>
43286 #endif
43288 #undef $ac_func
43290 /* Override any gcc2 internal prototype to avoid an error. */
43291 #ifdef __cplusplus
43292 extern "C"
43294 #endif
43295 /* We use char because int might match the return type of a gcc2
43296 builtin and then its argument prototype would still apply. */
43297 char $ac_func ();
43298 /* The GNU C library defines this for functions which it implements
43299 to always fail with ENOSYS. Some functions are actually named
43300 something starting with __ and the normal name is an alias. */
43301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43302 choke me
43303 #else
43304 char (*f) () = $ac_func;
43305 #endif
43306 #ifdef __cplusplus
43308 #endif
43311 main ()
43313 return f != $ac_func;
43315 return 0;
43317 _ACEOF
43318 rm -f conftest.$ac_objext conftest$ac_exeext
43319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43320 (eval $ac_link) 2>conftest.er1
43321 ac_status=$?
43322 grep -v '^ *+' conftest.er1 >conftest.err
43323 rm -f conftest.er1
43324 cat conftest.err >&5
43325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43326 (exit $ac_status); } &&
43327 { ac_try='test -z "$ac_c_werror_flag"
43328 || test ! -s conftest.err'
43329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43330 (eval $ac_try) 2>&5
43331 ac_status=$?
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); }; } &&
43334 { ac_try='test -s conftest$ac_exeext'
43335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336 (eval $ac_try) 2>&5
43337 ac_status=$?
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); }; }; then
43340 eval "$as_ac_var=yes"
43341 else
43342 echo "$as_me: failed program was:" >&5
43343 sed 's/^/| /' conftest.$ac_ext >&5
43345 eval "$as_ac_var=no"
43347 rm -f conftest.err conftest.$ac_objext \
43348 conftest$ac_exeext conftest.$ac_ext
43350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43352 if test `eval echo '${'$as_ac_var'}'` = yes; then
43353 cat >>confdefs.h <<_ACEOF
43354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43355 _ACEOF
43358 done
43360 else
43362 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
43363 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
43364 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
43365 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
43366 echo $ECHO_N "(cached) $ECHO_C" >&6
43367 else
43371 ac_ext=cc
43372 ac_cpp='$CXXCPP $CPPFLAGS'
43373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43377 cat >conftest.$ac_ext <<_ACEOF
43378 /* confdefs.h. */
43379 _ACEOF
43380 cat confdefs.h >>conftest.$ac_ext
43381 cat >>conftest.$ac_ext <<_ACEOF
43382 /* end confdefs.h. */
43383 #include <math.h>
43384 #ifdef HAVE_IEEEFP_H
43385 #include <ieeefp.h>
43386 #endif
43389 main ()
43391 _fabsl(0);
43393 return 0;
43395 _ACEOF
43396 rm -f conftest.$ac_objext
43397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43398 (eval $ac_compile) 2>conftest.er1
43399 ac_status=$?
43400 grep -v '^ *+' conftest.er1 >conftest.err
43401 rm -f conftest.er1
43402 cat conftest.err >&5
43403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43404 (exit $ac_status); } &&
43405 { ac_try='test -z "$ac_cxx_werror_flag"
43406 || test ! -s conftest.err'
43407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43408 (eval $ac_try) 2>&5
43409 ac_status=$?
43410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411 (exit $ac_status); }; } &&
43412 { ac_try='test -s conftest.$ac_objext'
43413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414 (eval $ac_try) 2>&5
43415 ac_status=$?
43416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417 (exit $ac_status); }; }; then
43418 glibcxx_cv_func__fabsl_use=yes
43419 else
43420 echo "$as_me: failed program was:" >&5
43421 sed 's/^/| /' conftest.$ac_ext >&5
43423 glibcxx_cv_func__fabsl_use=no
43425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43426 ac_ext=c
43427 ac_cpp='$CPP $CPPFLAGS'
43428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43436 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
43437 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
43439 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
43441 for ac_func in _fabsl
43443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43444 echo "$as_me:$LINENO: checking for $ac_func" >&5
43445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43446 if eval "test \"\${$as_ac_var+set}\" = set"; then
43447 echo $ECHO_N "(cached) $ECHO_C" >&6
43448 else
43449 if test x$gcc_no_link = xyes; then
43450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43452 { (exit 1); exit 1; }; }
43454 cat >conftest.$ac_ext <<_ACEOF
43455 /* confdefs.h. */
43456 _ACEOF
43457 cat confdefs.h >>conftest.$ac_ext
43458 cat >>conftest.$ac_ext <<_ACEOF
43459 /* end confdefs.h. */
43460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43462 #define $ac_func innocuous_$ac_func
43464 /* System header to define __stub macros and hopefully few prototypes,
43465 which can conflict with char $ac_func (); below.
43466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43467 <limits.h> exists even on freestanding compilers. */
43469 #ifdef __STDC__
43470 # include <limits.h>
43471 #else
43472 # include <assert.h>
43473 #endif
43475 #undef $ac_func
43477 /* Override any gcc2 internal prototype to avoid an error. */
43478 #ifdef __cplusplus
43479 extern "C"
43481 #endif
43482 /* We use char because int might match the return type of a gcc2
43483 builtin and then its argument prototype would still apply. */
43484 char $ac_func ();
43485 /* The GNU C library defines this for functions which it implements
43486 to always fail with ENOSYS. Some functions are actually named
43487 something starting with __ and the normal name is an alias. */
43488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43489 choke me
43490 #else
43491 char (*f) () = $ac_func;
43492 #endif
43493 #ifdef __cplusplus
43495 #endif
43498 main ()
43500 return f != $ac_func;
43502 return 0;
43504 _ACEOF
43505 rm -f conftest.$ac_objext conftest$ac_exeext
43506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43507 (eval $ac_link) 2>conftest.er1
43508 ac_status=$?
43509 grep -v '^ *+' conftest.er1 >conftest.err
43510 rm -f conftest.er1
43511 cat conftest.err >&5
43512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43513 (exit $ac_status); } &&
43514 { ac_try='test -z "$ac_c_werror_flag"
43515 || test ! -s conftest.err'
43516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43517 (eval $ac_try) 2>&5
43518 ac_status=$?
43519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520 (exit $ac_status); }; } &&
43521 { ac_try='test -s conftest$ac_exeext'
43522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43523 (eval $ac_try) 2>&5
43524 ac_status=$?
43525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526 (exit $ac_status); }; }; then
43527 eval "$as_ac_var=yes"
43528 else
43529 echo "$as_me: failed program was:" >&5
43530 sed 's/^/| /' conftest.$ac_ext >&5
43532 eval "$as_ac_var=no"
43534 rm -f conftest.err conftest.$ac_objext \
43535 conftest$ac_exeext conftest.$ac_ext
43537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43539 if test `eval echo '${'$as_ac_var'}'` = yes; then
43540 cat >>confdefs.h <<_ACEOF
43541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43542 _ACEOF
43545 done
43552 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43553 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43554 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43555 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43556 echo $ECHO_N "(cached) $ECHO_C" >&6
43557 else
43561 ac_ext=cc
43562 ac_cpp='$CXXCPP $CPPFLAGS'
43563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43567 cat >conftest.$ac_ext <<_ACEOF
43568 /* confdefs.h. */
43569 _ACEOF
43570 cat confdefs.h >>conftest.$ac_ext
43571 cat >>conftest.$ac_ext <<_ACEOF
43572 /* end confdefs.h. */
43573 #include <math.h>
43575 main ()
43577 fmodl(0, 0);
43579 return 0;
43581 _ACEOF
43582 rm -f conftest.$ac_objext
43583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43584 (eval $ac_compile) 2>conftest.er1
43585 ac_status=$?
43586 grep -v '^ *+' conftest.er1 >conftest.err
43587 rm -f conftest.er1
43588 cat conftest.err >&5
43589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43590 (exit $ac_status); } &&
43591 { ac_try='test -z "$ac_cxx_werror_flag"
43592 || test ! -s conftest.err'
43593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43594 (eval $ac_try) 2>&5
43595 ac_status=$?
43596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43597 (exit $ac_status); }; } &&
43598 { ac_try='test -s conftest.$ac_objext'
43599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43600 (eval $ac_try) 2>&5
43601 ac_status=$?
43602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43603 (exit $ac_status); }; }; then
43604 glibcxx_cv_func_fmodl_use=yes
43605 else
43606 echo "$as_me: failed program was:" >&5
43607 sed 's/^/| /' conftest.$ac_ext >&5
43609 glibcxx_cv_func_fmodl_use=no
43611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43612 ac_ext=c
43613 ac_cpp='$CPP $CPPFLAGS'
43614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43622 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43623 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43625 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43627 for ac_func in fmodl
43629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43630 echo "$as_me:$LINENO: checking for $ac_func" >&5
43631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43632 if eval "test \"\${$as_ac_var+set}\" = set"; then
43633 echo $ECHO_N "(cached) $ECHO_C" >&6
43634 else
43635 if test x$gcc_no_link = xyes; then
43636 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43638 { (exit 1); exit 1; }; }
43640 cat >conftest.$ac_ext <<_ACEOF
43641 /* confdefs.h. */
43642 _ACEOF
43643 cat confdefs.h >>conftest.$ac_ext
43644 cat >>conftest.$ac_ext <<_ACEOF
43645 /* end confdefs.h. */
43646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43648 #define $ac_func innocuous_$ac_func
43650 /* System header to define __stub macros and hopefully few prototypes,
43651 which can conflict with char $ac_func (); below.
43652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43653 <limits.h> exists even on freestanding compilers. */
43655 #ifdef __STDC__
43656 # include <limits.h>
43657 #else
43658 # include <assert.h>
43659 #endif
43661 #undef $ac_func
43663 /* Override any gcc2 internal prototype to avoid an error. */
43664 #ifdef __cplusplus
43665 extern "C"
43667 #endif
43668 /* We use char because int might match the return type of a gcc2
43669 builtin and then its argument prototype would still apply. */
43670 char $ac_func ();
43671 /* The GNU C library defines this for functions which it implements
43672 to always fail with ENOSYS. Some functions are actually named
43673 something starting with __ and the normal name is an alias. */
43674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43675 choke me
43676 #else
43677 char (*f) () = $ac_func;
43678 #endif
43679 #ifdef __cplusplus
43681 #endif
43684 main ()
43686 return f != $ac_func;
43688 return 0;
43690 _ACEOF
43691 rm -f conftest.$ac_objext conftest$ac_exeext
43692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43693 (eval $ac_link) 2>conftest.er1
43694 ac_status=$?
43695 grep -v '^ *+' conftest.er1 >conftest.err
43696 rm -f conftest.er1
43697 cat conftest.err >&5
43698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43699 (exit $ac_status); } &&
43700 { ac_try='test -z "$ac_c_werror_flag"
43701 || test ! -s conftest.err'
43702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43703 (eval $ac_try) 2>&5
43704 ac_status=$?
43705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43706 (exit $ac_status); }; } &&
43707 { ac_try='test -s conftest$ac_exeext'
43708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43709 (eval $ac_try) 2>&5
43710 ac_status=$?
43711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43712 (exit $ac_status); }; }; then
43713 eval "$as_ac_var=yes"
43714 else
43715 echo "$as_me: failed program was:" >&5
43716 sed 's/^/| /' conftest.$ac_ext >&5
43718 eval "$as_ac_var=no"
43720 rm -f conftest.err conftest.$ac_objext \
43721 conftest$ac_exeext conftest.$ac_ext
43723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43725 if test `eval echo '${'$as_ac_var'}'` = yes; then
43726 cat >>confdefs.h <<_ACEOF
43727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43728 _ACEOF
43731 done
43733 else
43735 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43736 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43737 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43738 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43739 echo $ECHO_N "(cached) $ECHO_C" >&6
43740 else
43744 ac_ext=cc
43745 ac_cpp='$CXXCPP $CPPFLAGS'
43746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43750 cat >conftest.$ac_ext <<_ACEOF
43751 /* confdefs.h. */
43752 _ACEOF
43753 cat confdefs.h >>conftest.$ac_ext
43754 cat >>conftest.$ac_ext <<_ACEOF
43755 /* end confdefs.h. */
43756 #include <math.h>
43758 main ()
43760 _fmodl(0, 0);
43762 return 0;
43764 _ACEOF
43765 rm -f conftest.$ac_objext
43766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43767 (eval $ac_compile) 2>conftest.er1
43768 ac_status=$?
43769 grep -v '^ *+' conftest.er1 >conftest.err
43770 rm -f conftest.er1
43771 cat conftest.err >&5
43772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773 (exit $ac_status); } &&
43774 { ac_try='test -z "$ac_cxx_werror_flag"
43775 || test ! -s conftest.err'
43776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43777 (eval $ac_try) 2>&5
43778 ac_status=$?
43779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780 (exit $ac_status); }; } &&
43781 { ac_try='test -s conftest.$ac_objext'
43782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43783 (eval $ac_try) 2>&5
43784 ac_status=$?
43785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786 (exit $ac_status); }; }; then
43787 glibcxx_cv_func__fmodl_use=yes
43788 else
43789 echo "$as_me: failed program was:" >&5
43790 sed 's/^/| /' conftest.$ac_ext >&5
43792 glibcxx_cv_func__fmodl_use=no
43794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43795 ac_ext=c
43796 ac_cpp='$CPP $CPPFLAGS'
43797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43805 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43806 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43808 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43810 for ac_func in _fmodl
43812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43813 echo "$as_me:$LINENO: checking for $ac_func" >&5
43814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43815 if eval "test \"\${$as_ac_var+set}\" = set"; then
43816 echo $ECHO_N "(cached) $ECHO_C" >&6
43817 else
43818 if test x$gcc_no_link = xyes; then
43819 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43821 { (exit 1); exit 1; }; }
43823 cat >conftest.$ac_ext <<_ACEOF
43824 /* confdefs.h. */
43825 _ACEOF
43826 cat confdefs.h >>conftest.$ac_ext
43827 cat >>conftest.$ac_ext <<_ACEOF
43828 /* end confdefs.h. */
43829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43831 #define $ac_func innocuous_$ac_func
43833 /* System header to define __stub macros and hopefully few prototypes,
43834 which can conflict with char $ac_func (); below.
43835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43836 <limits.h> exists even on freestanding compilers. */
43838 #ifdef __STDC__
43839 # include <limits.h>
43840 #else
43841 # include <assert.h>
43842 #endif
43844 #undef $ac_func
43846 /* Override any gcc2 internal prototype to avoid an error. */
43847 #ifdef __cplusplus
43848 extern "C"
43850 #endif
43851 /* We use char because int might match the return type of a gcc2
43852 builtin and then its argument prototype would still apply. */
43853 char $ac_func ();
43854 /* The GNU C library defines this for functions which it implements
43855 to always fail with ENOSYS. Some functions are actually named
43856 something starting with __ and the normal name is an alias. */
43857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43858 choke me
43859 #else
43860 char (*f) () = $ac_func;
43861 #endif
43862 #ifdef __cplusplus
43864 #endif
43867 main ()
43869 return f != $ac_func;
43871 return 0;
43873 _ACEOF
43874 rm -f conftest.$ac_objext conftest$ac_exeext
43875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43876 (eval $ac_link) 2>conftest.er1
43877 ac_status=$?
43878 grep -v '^ *+' conftest.er1 >conftest.err
43879 rm -f conftest.er1
43880 cat conftest.err >&5
43881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43882 (exit $ac_status); } &&
43883 { ac_try='test -z "$ac_c_werror_flag"
43884 || test ! -s conftest.err'
43885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43886 (eval $ac_try) 2>&5
43887 ac_status=$?
43888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43889 (exit $ac_status); }; } &&
43890 { ac_try='test -s conftest$ac_exeext'
43891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43892 (eval $ac_try) 2>&5
43893 ac_status=$?
43894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43895 (exit $ac_status); }; }; then
43896 eval "$as_ac_var=yes"
43897 else
43898 echo "$as_me: failed program was:" >&5
43899 sed 's/^/| /' conftest.$ac_ext >&5
43901 eval "$as_ac_var=no"
43903 rm -f conftest.err conftest.$ac_objext \
43904 conftest$ac_exeext conftest.$ac_ext
43906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43908 if test `eval echo '${'$as_ac_var'}'` = yes; then
43909 cat >>confdefs.h <<_ACEOF
43910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43911 _ACEOF
43914 done
43921 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
43922 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
43923 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
43924 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
43925 echo $ECHO_N "(cached) $ECHO_C" >&6
43926 else
43930 ac_ext=cc
43931 ac_cpp='$CXXCPP $CPPFLAGS'
43932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43936 cat >conftest.$ac_ext <<_ACEOF
43937 /* confdefs.h. */
43938 _ACEOF
43939 cat confdefs.h >>conftest.$ac_ext
43940 cat >>conftest.$ac_ext <<_ACEOF
43941 /* end confdefs.h. */
43942 #include <math.h>
43944 main ()
43946 frexpl(0, 0);
43948 return 0;
43950 _ACEOF
43951 rm -f conftest.$ac_objext
43952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43953 (eval $ac_compile) 2>conftest.er1
43954 ac_status=$?
43955 grep -v '^ *+' conftest.er1 >conftest.err
43956 rm -f conftest.er1
43957 cat conftest.err >&5
43958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959 (exit $ac_status); } &&
43960 { ac_try='test -z "$ac_cxx_werror_flag"
43961 || test ! -s conftest.err'
43962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43963 (eval $ac_try) 2>&5
43964 ac_status=$?
43965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43966 (exit $ac_status); }; } &&
43967 { ac_try='test -s conftest.$ac_objext'
43968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43969 (eval $ac_try) 2>&5
43970 ac_status=$?
43971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972 (exit $ac_status); }; }; then
43973 glibcxx_cv_func_frexpl_use=yes
43974 else
43975 echo "$as_me: failed program was:" >&5
43976 sed 's/^/| /' conftest.$ac_ext >&5
43978 glibcxx_cv_func_frexpl_use=no
43980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43981 ac_ext=c
43982 ac_cpp='$CPP $CPPFLAGS'
43983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43991 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
43992 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
43994 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
43996 for ac_func in frexpl
43998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43999 echo "$as_me:$LINENO: checking for $ac_func" >&5
44000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44001 if eval "test \"\${$as_ac_var+set}\" = set"; then
44002 echo $ECHO_N "(cached) $ECHO_C" >&6
44003 else
44004 if test x$gcc_no_link = xyes; then
44005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44007 { (exit 1); exit 1; }; }
44009 cat >conftest.$ac_ext <<_ACEOF
44010 /* confdefs.h. */
44011 _ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h. */
44015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44017 #define $ac_func innocuous_$ac_func
44019 /* System header to define __stub macros and hopefully few prototypes,
44020 which can conflict with char $ac_func (); below.
44021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44022 <limits.h> exists even on freestanding compilers. */
44024 #ifdef __STDC__
44025 # include <limits.h>
44026 #else
44027 # include <assert.h>
44028 #endif
44030 #undef $ac_func
44032 /* Override any gcc2 internal prototype to avoid an error. */
44033 #ifdef __cplusplus
44034 extern "C"
44036 #endif
44037 /* We use char because int might match the return type of a gcc2
44038 builtin and then its argument prototype would still apply. */
44039 char $ac_func ();
44040 /* The GNU C library defines this for functions which it implements
44041 to always fail with ENOSYS. Some functions are actually named
44042 something starting with __ and the normal name is an alias. */
44043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44044 choke me
44045 #else
44046 char (*f) () = $ac_func;
44047 #endif
44048 #ifdef __cplusplus
44050 #endif
44053 main ()
44055 return f != $ac_func;
44057 return 0;
44059 _ACEOF
44060 rm -f conftest.$ac_objext conftest$ac_exeext
44061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44062 (eval $ac_link) 2>conftest.er1
44063 ac_status=$?
44064 grep -v '^ *+' conftest.er1 >conftest.err
44065 rm -f conftest.er1
44066 cat conftest.err >&5
44067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44068 (exit $ac_status); } &&
44069 { ac_try='test -z "$ac_c_werror_flag"
44070 || test ! -s conftest.err'
44071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44072 (eval $ac_try) 2>&5
44073 ac_status=$?
44074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44075 (exit $ac_status); }; } &&
44076 { ac_try='test -s conftest$ac_exeext'
44077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44078 (eval $ac_try) 2>&5
44079 ac_status=$?
44080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44081 (exit $ac_status); }; }; then
44082 eval "$as_ac_var=yes"
44083 else
44084 echo "$as_me: failed program was:" >&5
44085 sed 's/^/| /' conftest.$ac_ext >&5
44087 eval "$as_ac_var=no"
44089 rm -f conftest.err conftest.$ac_objext \
44090 conftest$ac_exeext conftest.$ac_ext
44092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44094 if test `eval echo '${'$as_ac_var'}'` = yes; then
44095 cat >>confdefs.h <<_ACEOF
44096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44097 _ACEOF
44100 done
44102 else
44104 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
44105 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
44106 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
44107 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
44108 echo $ECHO_N "(cached) $ECHO_C" >&6
44109 else
44113 ac_ext=cc
44114 ac_cpp='$CXXCPP $CPPFLAGS'
44115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44119 cat >conftest.$ac_ext <<_ACEOF
44120 /* confdefs.h. */
44121 _ACEOF
44122 cat confdefs.h >>conftest.$ac_ext
44123 cat >>conftest.$ac_ext <<_ACEOF
44124 /* end confdefs.h. */
44125 #include <math.h>
44127 main ()
44129 _frexpl(0, 0);
44131 return 0;
44133 _ACEOF
44134 rm -f conftest.$ac_objext
44135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44136 (eval $ac_compile) 2>conftest.er1
44137 ac_status=$?
44138 grep -v '^ *+' conftest.er1 >conftest.err
44139 rm -f conftest.er1
44140 cat conftest.err >&5
44141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44142 (exit $ac_status); } &&
44143 { ac_try='test -z "$ac_cxx_werror_flag"
44144 || test ! -s conftest.err'
44145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44146 (eval $ac_try) 2>&5
44147 ac_status=$?
44148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44149 (exit $ac_status); }; } &&
44150 { ac_try='test -s conftest.$ac_objext'
44151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44152 (eval $ac_try) 2>&5
44153 ac_status=$?
44154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44155 (exit $ac_status); }; }; then
44156 glibcxx_cv_func__frexpl_use=yes
44157 else
44158 echo "$as_me: failed program was:" >&5
44159 sed 's/^/| /' conftest.$ac_ext >&5
44161 glibcxx_cv_func__frexpl_use=no
44163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44164 ac_ext=c
44165 ac_cpp='$CPP $CPPFLAGS'
44166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44174 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
44175 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
44177 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
44179 for ac_func in _frexpl
44181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44182 echo "$as_me:$LINENO: checking for $ac_func" >&5
44183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44184 if eval "test \"\${$as_ac_var+set}\" = set"; then
44185 echo $ECHO_N "(cached) $ECHO_C" >&6
44186 else
44187 if test x$gcc_no_link = xyes; then
44188 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44190 { (exit 1); exit 1; }; }
44192 cat >conftest.$ac_ext <<_ACEOF
44193 /* confdefs.h. */
44194 _ACEOF
44195 cat confdefs.h >>conftest.$ac_ext
44196 cat >>conftest.$ac_ext <<_ACEOF
44197 /* end confdefs.h. */
44198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44200 #define $ac_func innocuous_$ac_func
44202 /* System header to define __stub macros and hopefully few prototypes,
44203 which can conflict with char $ac_func (); below.
44204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44205 <limits.h> exists even on freestanding compilers. */
44207 #ifdef __STDC__
44208 # include <limits.h>
44209 #else
44210 # include <assert.h>
44211 #endif
44213 #undef $ac_func
44215 /* Override any gcc2 internal prototype to avoid an error. */
44216 #ifdef __cplusplus
44217 extern "C"
44219 #endif
44220 /* We use char because int might match the return type of a gcc2
44221 builtin and then its argument prototype would still apply. */
44222 char $ac_func ();
44223 /* The GNU C library defines this for functions which it implements
44224 to always fail with ENOSYS. Some functions are actually named
44225 something starting with __ and the normal name is an alias. */
44226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44227 choke me
44228 #else
44229 char (*f) () = $ac_func;
44230 #endif
44231 #ifdef __cplusplus
44233 #endif
44236 main ()
44238 return f != $ac_func;
44240 return 0;
44242 _ACEOF
44243 rm -f conftest.$ac_objext conftest$ac_exeext
44244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44245 (eval $ac_link) 2>conftest.er1
44246 ac_status=$?
44247 grep -v '^ *+' conftest.er1 >conftest.err
44248 rm -f conftest.er1
44249 cat conftest.err >&5
44250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44251 (exit $ac_status); } &&
44252 { ac_try='test -z "$ac_c_werror_flag"
44253 || test ! -s conftest.err'
44254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44255 (eval $ac_try) 2>&5
44256 ac_status=$?
44257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44258 (exit $ac_status); }; } &&
44259 { ac_try='test -s conftest$ac_exeext'
44260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44261 (eval $ac_try) 2>&5
44262 ac_status=$?
44263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264 (exit $ac_status); }; }; then
44265 eval "$as_ac_var=yes"
44266 else
44267 echo "$as_me: failed program was:" >&5
44268 sed 's/^/| /' conftest.$ac_ext >&5
44270 eval "$as_ac_var=no"
44272 rm -f conftest.err conftest.$ac_objext \
44273 conftest$ac_exeext conftest.$ac_ext
44275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44277 if test `eval echo '${'$as_ac_var'}'` = yes; then
44278 cat >>confdefs.h <<_ACEOF
44279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44280 _ACEOF
44283 done
44290 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
44291 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
44292 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44293 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
44294 echo $ECHO_N "(cached) $ECHO_C" >&6
44295 else
44299 ac_ext=cc
44300 ac_cpp='$CXXCPP $CPPFLAGS'
44301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44305 cat >conftest.$ac_ext <<_ACEOF
44306 /* confdefs.h. */
44307 _ACEOF
44308 cat confdefs.h >>conftest.$ac_ext
44309 cat >>conftest.$ac_ext <<_ACEOF
44310 /* end confdefs.h. */
44311 #include <math.h>
44313 main ()
44315 hypotl(0, 0);
44317 return 0;
44319 _ACEOF
44320 rm -f conftest.$ac_objext
44321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44322 (eval $ac_compile) 2>conftest.er1
44323 ac_status=$?
44324 grep -v '^ *+' conftest.er1 >conftest.err
44325 rm -f conftest.er1
44326 cat conftest.err >&5
44327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44328 (exit $ac_status); } &&
44329 { ac_try='test -z "$ac_cxx_werror_flag"
44330 || test ! -s conftest.err'
44331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44332 (eval $ac_try) 2>&5
44333 ac_status=$?
44334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44335 (exit $ac_status); }; } &&
44336 { ac_try='test -s conftest.$ac_objext'
44337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44338 (eval $ac_try) 2>&5
44339 ac_status=$?
44340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341 (exit $ac_status); }; }; then
44342 glibcxx_cv_func_hypotl_use=yes
44343 else
44344 echo "$as_me: failed program was:" >&5
44345 sed 's/^/| /' conftest.$ac_ext >&5
44347 glibcxx_cv_func_hypotl_use=no
44349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44350 ac_ext=c
44351 ac_cpp='$CPP $CPPFLAGS'
44352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44360 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
44361 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
44363 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44365 for ac_func in hypotl
44367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44368 echo "$as_me:$LINENO: checking for $ac_func" >&5
44369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44370 if eval "test \"\${$as_ac_var+set}\" = set"; then
44371 echo $ECHO_N "(cached) $ECHO_C" >&6
44372 else
44373 if test x$gcc_no_link = xyes; then
44374 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44375 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44376 { (exit 1); exit 1; }; }
44378 cat >conftest.$ac_ext <<_ACEOF
44379 /* confdefs.h. */
44380 _ACEOF
44381 cat confdefs.h >>conftest.$ac_ext
44382 cat >>conftest.$ac_ext <<_ACEOF
44383 /* end confdefs.h. */
44384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44386 #define $ac_func innocuous_$ac_func
44388 /* System header to define __stub macros and hopefully few prototypes,
44389 which can conflict with char $ac_func (); below.
44390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44391 <limits.h> exists even on freestanding compilers. */
44393 #ifdef __STDC__
44394 # include <limits.h>
44395 #else
44396 # include <assert.h>
44397 #endif
44399 #undef $ac_func
44401 /* Override any gcc2 internal prototype to avoid an error. */
44402 #ifdef __cplusplus
44403 extern "C"
44405 #endif
44406 /* We use char because int might match the return type of a gcc2
44407 builtin and then its argument prototype would still apply. */
44408 char $ac_func ();
44409 /* The GNU C library defines this for functions which it implements
44410 to always fail with ENOSYS. Some functions are actually named
44411 something starting with __ and the normal name is an alias. */
44412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44413 choke me
44414 #else
44415 char (*f) () = $ac_func;
44416 #endif
44417 #ifdef __cplusplus
44419 #endif
44422 main ()
44424 return f != $ac_func;
44426 return 0;
44428 _ACEOF
44429 rm -f conftest.$ac_objext conftest$ac_exeext
44430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44431 (eval $ac_link) 2>conftest.er1
44432 ac_status=$?
44433 grep -v '^ *+' conftest.er1 >conftest.err
44434 rm -f conftest.er1
44435 cat conftest.err >&5
44436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44437 (exit $ac_status); } &&
44438 { ac_try='test -z "$ac_c_werror_flag"
44439 || test ! -s conftest.err'
44440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44441 (eval $ac_try) 2>&5
44442 ac_status=$?
44443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444 (exit $ac_status); }; } &&
44445 { ac_try='test -s conftest$ac_exeext'
44446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44447 (eval $ac_try) 2>&5
44448 ac_status=$?
44449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44450 (exit $ac_status); }; }; then
44451 eval "$as_ac_var=yes"
44452 else
44453 echo "$as_me: failed program was:" >&5
44454 sed 's/^/| /' conftest.$ac_ext >&5
44456 eval "$as_ac_var=no"
44458 rm -f conftest.err conftest.$ac_objext \
44459 conftest$ac_exeext conftest.$ac_ext
44461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44463 if test `eval echo '${'$as_ac_var'}'` = yes; then
44464 cat >>confdefs.h <<_ACEOF
44465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44466 _ACEOF
44469 done
44471 else
44473 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
44474 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
44475 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
44476 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
44477 echo $ECHO_N "(cached) $ECHO_C" >&6
44478 else
44482 ac_ext=cc
44483 ac_cpp='$CXXCPP $CPPFLAGS'
44484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44488 cat >conftest.$ac_ext <<_ACEOF
44489 /* confdefs.h. */
44490 _ACEOF
44491 cat confdefs.h >>conftest.$ac_ext
44492 cat >>conftest.$ac_ext <<_ACEOF
44493 /* end confdefs.h. */
44494 #include <math.h>
44496 main ()
44498 _hypotl(0, 0);
44500 return 0;
44502 _ACEOF
44503 rm -f conftest.$ac_objext
44504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44505 (eval $ac_compile) 2>conftest.er1
44506 ac_status=$?
44507 grep -v '^ *+' conftest.er1 >conftest.err
44508 rm -f conftest.er1
44509 cat conftest.err >&5
44510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44511 (exit $ac_status); } &&
44512 { ac_try='test -z "$ac_cxx_werror_flag"
44513 || test ! -s conftest.err'
44514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44515 (eval $ac_try) 2>&5
44516 ac_status=$?
44517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518 (exit $ac_status); }; } &&
44519 { ac_try='test -s conftest.$ac_objext'
44520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44521 (eval $ac_try) 2>&5
44522 ac_status=$?
44523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524 (exit $ac_status); }; }; then
44525 glibcxx_cv_func__hypotl_use=yes
44526 else
44527 echo "$as_me: failed program was:" >&5
44528 sed 's/^/| /' conftest.$ac_ext >&5
44530 glibcxx_cv_func__hypotl_use=no
44532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44533 ac_ext=c
44534 ac_cpp='$CPP $CPPFLAGS'
44535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44543 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44544 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44546 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44548 for ac_func in _hypotl
44550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44551 echo "$as_me:$LINENO: checking for $ac_func" >&5
44552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44553 if eval "test \"\${$as_ac_var+set}\" = set"; then
44554 echo $ECHO_N "(cached) $ECHO_C" >&6
44555 else
44556 if test x$gcc_no_link = xyes; then
44557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44559 { (exit 1); exit 1; }; }
44561 cat >conftest.$ac_ext <<_ACEOF
44562 /* confdefs.h. */
44563 _ACEOF
44564 cat confdefs.h >>conftest.$ac_ext
44565 cat >>conftest.$ac_ext <<_ACEOF
44566 /* end confdefs.h. */
44567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44569 #define $ac_func innocuous_$ac_func
44571 /* System header to define __stub macros and hopefully few prototypes,
44572 which can conflict with char $ac_func (); below.
44573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44574 <limits.h> exists even on freestanding compilers. */
44576 #ifdef __STDC__
44577 # include <limits.h>
44578 #else
44579 # include <assert.h>
44580 #endif
44582 #undef $ac_func
44584 /* Override any gcc2 internal prototype to avoid an error. */
44585 #ifdef __cplusplus
44586 extern "C"
44588 #endif
44589 /* We use char because int might match the return type of a gcc2
44590 builtin and then its argument prototype would still apply. */
44591 char $ac_func ();
44592 /* The GNU C library defines this for functions which it implements
44593 to always fail with ENOSYS. Some functions are actually named
44594 something starting with __ and the normal name is an alias. */
44595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44596 choke me
44597 #else
44598 char (*f) () = $ac_func;
44599 #endif
44600 #ifdef __cplusplus
44602 #endif
44605 main ()
44607 return f != $ac_func;
44609 return 0;
44611 _ACEOF
44612 rm -f conftest.$ac_objext conftest$ac_exeext
44613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44614 (eval $ac_link) 2>conftest.er1
44615 ac_status=$?
44616 grep -v '^ *+' conftest.er1 >conftest.err
44617 rm -f conftest.er1
44618 cat conftest.err >&5
44619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44620 (exit $ac_status); } &&
44621 { ac_try='test -z "$ac_c_werror_flag"
44622 || test ! -s conftest.err'
44623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44624 (eval $ac_try) 2>&5
44625 ac_status=$?
44626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44627 (exit $ac_status); }; } &&
44628 { ac_try='test -s conftest$ac_exeext'
44629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44630 (eval $ac_try) 2>&5
44631 ac_status=$?
44632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44633 (exit $ac_status); }; }; then
44634 eval "$as_ac_var=yes"
44635 else
44636 echo "$as_me: failed program was:" >&5
44637 sed 's/^/| /' conftest.$ac_ext >&5
44639 eval "$as_ac_var=no"
44641 rm -f conftest.err conftest.$ac_objext \
44642 conftest$ac_exeext conftest.$ac_ext
44644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44646 if test `eval echo '${'$as_ac_var'}'` = yes; then
44647 cat >>confdefs.h <<_ACEOF
44648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44649 _ACEOF
44652 done
44659 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44660 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44661 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44662 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44663 echo $ECHO_N "(cached) $ECHO_C" >&6
44664 else
44668 ac_ext=cc
44669 ac_cpp='$CXXCPP $CPPFLAGS'
44670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44674 cat >conftest.$ac_ext <<_ACEOF
44675 /* confdefs.h. */
44676 _ACEOF
44677 cat confdefs.h >>conftest.$ac_ext
44678 cat >>conftest.$ac_ext <<_ACEOF
44679 /* end confdefs.h. */
44680 #include <math.h>
44682 main ()
44684 ldexpl(0, 0);
44686 return 0;
44688 _ACEOF
44689 rm -f conftest.$ac_objext
44690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44691 (eval $ac_compile) 2>conftest.er1
44692 ac_status=$?
44693 grep -v '^ *+' conftest.er1 >conftest.err
44694 rm -f conftest.er1
44695 cat conftest.err >&5
44696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44697 (exit $ac_status); } &&
44698 { ac_try='test -z "$ac_cxx_werror_flag"
44699 || test ! -s conftest.err'
44700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44701 (eval $ac_try) 2>&5
44702 ac_status=$?
44703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704 (exit $ac_status); }; } &&
44705 { ac_try='test -s conftest.$ac_objext'
44706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44707 (eval $ac_try) 2>&5
44708 ac_status=$?
44709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710 (exit $ac_status); }; }; then
44711 glibcxx_cv_func_ldexpl_use=yes
44712 else
44713 echo "$as_me: failed program was:" >&5
44714 sed 's/^/| /' conftest.$ac_ext >&5
44716 glibcxx_cv_func_ldexpl_use=no
44718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44719 ac_ext=c
44720 ac_cpp='$CPP $CPPFLAGS'
44721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44729 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44730 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44732 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44734 for ac_func in ldexpl
44736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44737 echo "$as_me:$LINENO: checking for $ac_func" >&5
44738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44739 if eval "test \"\${$as_ac_var+set}\" = set"; then
44740 echo $ECHO_N "(cached) $ECHO_C" >&6
44741 else
44742 if test x$gcc_no_link = xyes; then
44743 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44745 { (exit 1); exit 1; }; }
44747 cat >conftest.$ac_ext <<_ACEOF
44748 /* confdefs.h. */
44749 _ACEOF
44750 cat confdefs.h >>conftest.$ac_ext
44751 cat >>conftest.$ac_ext <<_ACEOF
44752 /* end confdefs.h. */
44753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44755 #define $ac_func innocuous_$ac_func
44757 /* System header to define __stub macros and hopefully few prototypes,
44758 which can conflict with char $ac_func (); below.
44759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44760 <limits.h> exists even on freestanding compilers. */
44762 #ifdef __STDC__
44763 # include <limits.h>
44764 #else
44765 # include <assert.h>
44766 #endif
44768 #undef $ac_func
44770 /* Override any gcc2 internal prototype to avoid an error. */
44771 #ifdef __cplusplus
44772 extern "C"
44774 #endif
44775 /* We use char because int might match the return type of a gcc2
44776 builtin and then its argument prototype would still apply. */
44777 char $ac_func ();
44778 /* The GNU C library defines this for functions which it implements
44779 to always fail with ENOSYS. Some functions are actually named
44780 something starting with __ and the normal name is an alias. */
44781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44782 choke me
44783 #else
44784 char (*f) () = $ac_func;
44785 #endif
44786 #ifdef __cplusplus
44788 #endif
44791 main ()
44793 return f != $ac_func;
44795 return 0;
44797 _ACEOF
44798 rm -f conftest.$ac_objext conftest$ac_exeext
44799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44800 (eval $ac_link) 2>conftest.er1
44801 ac_status=$?
44802 grep -v '^ *+' conftest.er1 >conftest.err
44803 rm -f conftest.er1
44804 cat conftest.err >&5
44805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806 (exit $ac_status); } &&
44807 { ac_try='test -z "$ac_c_werror_flag"
44808 || test ! -s conftest.err'
44809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44810 (eval $ac_try) 2>&5
44811 ac_status=$?
44812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44813 (exit $ac_status); }; } &&
44814 { ac_try='test -s conftest$ac_exeext'
44815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44816 (eval $ac_try) 2>&5
44817 ac_status=$?
44818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44819 (exit $ac_status); }; }; then
44820 eval "$as_ac_var=yes"
44821 else
44822 echo "$as_me: failed program was:" >&5
44823 sed 's/^/| /' conftest.$ac_ext >&5
44825 eval "$as_ac_var=no"
44827 rm -f conftest.err conftest.$ac_objext \
44828 conftest$ac_exeext conftest.$ac_ext
44830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44832 if test `eval echo '${'$as_ac_var'}'` = yes; then
44833 cat >>confdefs.h <<_ACEOF
44834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44835 _ACEOF
44838 done
44840 else
44842 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44843 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44844 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
44845 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
44846 echo $ECHO_N "(cached) $ECHO_C" >&6
44847 else
44851 ac_ext=cc
44852 ac_cpp='$CXXCPP $CPPFLAGS'
44853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44857 cat >conftest.$ac_ext <<_ACEOF
44858 /* confdefs.h. */
44859 _ACEOF
44860 cat confdefs.h >>conftest.$ac_ext
44861 cat >>conftest.$ac_ext <<_ACEOF
44862 /* end confdefs.h. */
44863 #include <math.h>
44865 main ()
44867 _ldexpl(0, 0);
44869 return 0;
44871 _ACEOF
44872 rm -f conftest.$ac_objext
44873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44874 (eval $ac_compile) 2>conftest.er1
44875 ac_status=$?
44876 grep -v '^ *+' conftest.er1 >conftest.err
44877 rm -f conftest.er1
44878 cat conftest.err >&5
44879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44880 (exit $ac_status); } &&
44881 { ac_try='test -z "$ac_cxx_werror_flag"
44882 || test ! -s conftest.err'
44883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44884 (eval $ac_try) 2>&5
44885 ac_status=$?
44886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44887 (exit $ac_status); }; } &&
44888 { ac_try='test -s conftest.$ac_objext'
44889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44890 (eval $ac_try) 2>&5
44891 ac_status=$?
44892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44893 (exit $ac_status); }; }; then
44894 glibcxx_cv_func__ldexpl_use=yes
44895 else
44896 echo "$as_me: failed program was:" >&5
44897 sed 's/^/| /' conftest.$ac_ext >&5
44899 glibcxx_cv_func__ldexpl_use=no
44901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44902 ac_ext=c
44903 ac_cpp='$CPP $CPPFLAGS'
44904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44912 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
44913 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
44915 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
44917 for ac_func in _ldexpl
44919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44920 echo "$as_me:$LINENO: checking for $ac_func" >&5
44921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44922 if eval "test \"\${$as_ac_var+set}\" = set"; then
44923 echo $ECHO_N "(cached) $ECHO_C" >&6
44924 else
44925 if test x$gcc_no_link = xyes; then
44926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44928 { (exit 1); exit 1; }; }
44930 cat >conftest.$ac_ext <<_ACEOF
44931 /* confdefs.h. */
44932 _ACEOF
44933 cat confdefs.h >>conftest.$ac_ext
44934 cat >>conftest.$ac_ext <<_ACEOF
44935 /* end confdefs.h. */
44936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44938 #define $ac_func innocuous_$ac_func
44940 /* System header to define __stub macros and hopefully few prototypes,
44941 which can conflict with char $ac_func (); below.
44942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44943 <limits.h> exists even on freestanding compilers. */
44945 #ifdef __STDC__
44946 # include <limits.h>
44947 #else
44948 # include <assert.h>
44949 #endif
44951 #undef $ac_func
44953 /* Override any gcc2 internal prototype to avoid an error. */
44954 #ifdef __cplusplus
44955 extern "C"
44957 #endif
44958 /* We use char because int might match the return type of a gcc2
44959 builtin and then its argument prototype would still apply. */
44960 char $ac_func ();
44961 /* The GNU C library defines this for functions which it implements
44962 to always fail with ENOSYS. Some functions are actually named
44963 something starting with __ and the normal name is an alias. */
44964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44965 choke me
44966 #else
44967 char (*f) () = $ac_func;
44968 #endif
44969 #ifdef __cplusplus
44971 #endif
44974 main ()
44976 return f != $ac_func;
44978 return 0;
44980 _ACEOF
44981 rm -f conftest.$ac_objext conftest$ac_exeext
44982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44983 (eval $ac_link) 2>conftest.er1
44984 ac_status=$?
44985 grep -v '^ *+' conftest.er1 >conftest.err
44986 rm -f conftest.er1
44987 cat conftest.err >&5
44988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44989 (exit $ac_status); } &&
44990 { ac_try='test -z "$ac_c_werror_flag"
44991 || test ! -s conftest.err'
44992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44993 (eval $ac_try) 2>&5
44994 ac_status=$?
44995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44996 (exit $ac_status); }; } &&
44997 { ac_try='test -s conftest$ac_exeext'
44998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44999 (eval $ac_try) 2>&5
45000 ac_status=$?
45001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45002 (exit $ac_status); }; }; then
45003 eval "$as_ac_var=yes"
45004 else
45005 echo "$as_me: failed program was:" >&5
45006 sed 's/^/| /' conftest.$ac_ext >&5
45008 eval "$as_ac_var=no"
45010 rm -f conftest.err conftest.$ac_objext \
45011 conftest$ac_exeext conftest.$ac_ext
45013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45015 if test `eval echo '${'$as_ac_var'}'` = yes; then
45016 cat >>confdefs.h <<_ACEOF
45017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45018 _ACEOF
45021 done
45028 echo "$as_me:$LINENO: checking for logl declaration" >&5
45029 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
45030 if test x${glibcxx_cv_func_logl_use+set} != xset; then
45031 if test "${glibcxx_cv_func_logl_use+set}" = set; then
45032 echo $ECHO_N "(cached) $ECHO_C" >&6
45033 else
45037 ac_ext=cc
45038 ac_cpp='$CXXCPP $CPPFLAGS'
45039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45043 cat >conftest.$ac_ext <<_ACEOF
45044 /* confdefs.h. */
45045 _ACEOF
45046 cat confdefs.h >>conftest.$ac_ext
45047 cat >>conftest.$ac_ext <<_ACEOF
45048 /* end confdefs.h. */
45049 #include <math.h>
45050 #ifdef HAVE_IEEEFP_H
45051 #include <ieeefp.h>
45052 #endif
45055 main ()
45057 logl(0);
45059 return 0;
45061 _ACEOF
45062 rm -f conftest.$ac_objext
45063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45064 (eval $ac_compile) 2>conftest.er1
45065 ac_status=$?
45066 grep -v '^ *+' conftest.er1 >conftest.err
45067 rm -f conftest.er1
45068 cat conftest.err >&5
45069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45070 (exit $ac_status); } &&
45071 { ac_try='test -z "$ac_cxx_werror_flag"
45072 || test ! -s conftest.err'
45073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45074 (eval $ac_try) 2>&5
45075 ac_status=$?
45076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45077 (exit $ac_status); }; } &&
45078 { ac_try='test -s conftest.$ac_objext'
45079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45080 (eval $ac_try) 2>&5
45081 ac_status=$?
45082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45083 (exit $ac_status); }; }; then
45084 glibcxx_cv_func_logl_use=yes
45085 else
45086 echo "$as_me: failed program was:" >&5
45087 sed 's/^/| /' conftest.$ac_ext >&5
45089 glibcxx_cv_func_logl_use=no
45091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45092 ac_ext=c
45093 ac_cpp='$CPP $CPPFLAGS'
45094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45102 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
45103 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
45105 if test x$glibcxx_cv_func_logl_use = x"yes"; then
45107 for ac_func in logl
45109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45110 echo "$as_me:$LINENO: checking for $ac_func" >&5
45111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45112 if eval "test \"\${$as_ac_var+set}\" = set"; then
45113 echo $ECHO_N "(cached) $ECHO_C" >&6
45114 else
45115 if test x$gcc_no_link = xyes; then
45116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45118 { (exit 1); exit 1; }; }
45120 cat >conftest.$ac_ext <<_ACEOF
45121 /* confdefs.h. */
45122 _ACEOF
45123 cat confdefs.h >>conftest.$ac_ext
45124 cat >>conftest.$ac_ext <<_ACEOF
45125 /* end confdefs.h. */
45126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45128 #define $ac_func innocuous_$ac_func
45130 /* System header to define __stub macros and hopefully few prototypes,
45131 which can conflict with char $ac_func (); below.
45132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45133 <limits.h> exists even on freestanding compilers. */
45135 #ifdef __STDC__
45136 # include <limits.h>
45137 #else
45138 # include <assert.h>
45139 #endif
45141 #undef $ac_func
45143 /* Override any gcc2 internal prototype to avoid an error. */
45144 #ifdef __cplusplus
45145 extern "C"
45147 #endif
45148 /* We use char because int might match the return type of a gcc2
45149 builtin and then its argument prototype would still apply. */
45150 char $ac_func ();
45151 /* The GNU C library defines this for functions which it implements
45152 to always fail with ENOSYS. Some functions are actually named
45153 something starting with __ and the normal name is an alias. */
45154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45155 choke me
45156 #else
45157 char (*f) () = $ac_func;
45158 #endif
45159 #ifdef __cplusplus
45161 #endif
45164 main ()
45166 return f != $ac_func;
45168 return 0;
45170 _ACEOF
45171 rm -f conftest.$ac_objext conftest$ac_exeext
45172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45173 (eval $ac_link) 2>conftest.er1
45174 ac_status=$?
45175 grep -v '^ *+' conftest.er1 >conftest.err
45176 rm -f conftest.er1
45177 cat conftest.err >&5
45178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45179 (exit $ac_status); } &&
45180 { ac_try='test -z "$ac_c_werror_flag"
45181 || test ! -s conftest.err'
45182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45183 (eval $ac_try) 2>&5
45184 ac_status=$?
45185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45186 (exit $ac_status); }; } &&
45187 { ac_try='test -s conftest$ac_exeext'
45188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45189 (eval $ac_try) 2>&5
45190 ac_status=$?
45191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45192 (exit $ac_status); }; }; then
45193 eval "$as_ac_var=yes"
45194 else
45195 echo "$as_me: failed program was:" >&5
45196 sed 's/^/| /' conftest.$ac_ext >&5
45198 eval "$as_ac_var=no"
45200 rm -f conftest.err conftest.$ac_objext \
45201 conftest$ac_exeext conftest.$ac_ext
45203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45205 if test `eval echo '${'$as_ac_var'}'` = yes; then
45206 cat >>confdefs.h <<_ACEOF
45207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45208 _ACEOF
45211 done
45213 else
45215 echo "$as_me:$LINENO: checking for _logl declaration" >&5
45216 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
45217 if test x${glibcxx_cv_func__logl_use+set} != xset; then
45218 if test "${glibcxx_cv_func__logl_use+set}" = set; then
45219 echo $ECHO_N "(cached) $ECHO_C" >&6
45220 else
45224 ac_ext=cc
45225 ac_cpp='$CXXCPP $CPPFLAGS'
45226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45230 cat >conftest.$ac_ext <<_ACEOF
45231 /* confdefs.h. */
45232 _ACEOF
45233 cat confdefs.h >>conftest.$ac_ext
45234 cat >>conftest.$ac_ext <<_ACEOF
45235 /* end confdefs.h. */
45236 #include <math.h>
45237 #ifdef HAVE_IEEEFP_H
45238 #include <ieeefp.h>
45239 #endif
45242 main ()
45244 _logl(0);
45246 return 0;
45248 _ACEOF
45249 rm -f conftest.$ac_objext
45250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45251 (eval $ac_compile) 2>conftest.er1
45252 ac_status=$?
45253 grep -v '^ *+' conftest.er1 >conftest.err
45254 rm -f conftest.er1
45255 cat conftest.err >&5
45256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45257 (exit $ac_status); } &&
45258 { ac_try='test -z "$ac_cxx_werror_flag"
45259 || test ! -s conftest.err'
45260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45261 (eval $ac_try) 2>&5
45262 ac_status=$?
45263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45264 (exit $ac_status); }; } &&
45265 { ac_try='test -s conftest.$ac_objext'
45266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45267 (eval $ac_try) 2>&5
45268 ac_status=$?
45269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270 (exit $ac_status); }; }; then
45271 glibcxx_cv_func__logl_use=yes
45272 else
45273 echo "$as_me: failed program was:" >&5
45274 sed 's/^/| /' conftest.$ac_ext >&5
45276 glibcxx_cv_func__logl_use=no
45278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45279 ac_ext=c
45280 ac_cpp='$CPP $CPPFLAGS'
45281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45289 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
45290 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
45292 if test x$glibcxx_cv_func__logl_use = x"yes"; then
45294 for ac_func in _logl
45296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45297 echo "$as_me:$LINENO: checking for $ac_func" >&5
45298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45299 if eval "test \"\${$as_ac_var+set}\" = set"; then
45300 echo $ECHO_N "(cached) $ECHO_C" >&6
45301 else
45302 if test x$gcc_no_link = xyes; then
45303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45305 { (exit 1); exit 1; }; }
45307 cat >conftest.$ac_ext <<_ACEOF
45308 /* confdefs.h. */
45309 _ACEOF
45310 cat confdefs.h >>conftest.$ac_ext
45311 cat >>conftest.$ac_ext <<_ACEOF
45312 /* end confdefs.h. */
45313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45315 #define $ac_func innocuous_$ac_func
45317 /* System header to define __stub macros and hopefully few prototypes,
45318 which can conflict with char $ac_func (); below.
45319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45320 <limits.h> exists even on freestanding compilers. */
45322 #ifdef __STDC__
45323 # include <limits.h>
45324 #else
45325 # include <assert.h>
45326 #endif
45328 #undef $ac_func
45330 /* Override any gcc2 internal prototype to avoid an error. */
45331 #ifdef __cplusplus
45332 extern "C"
45334 #endif
45335 /* We use char because int might match the return type of a gcc2
45336 builtin and then its argument prototype would still apply. */
45337 char $ac_func ();
45338 /* The GNU C library defines this for functions which it implements
45339 to always fail with ENOSYS. Some functions are actually named
45340 something starting with __ and the normal name is an alias. */
45341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45342 choke me
45343 #else
45344 char (*f) () = $ac_func;
45345 #endif
45346 #ifdef __cplusplus
45348 #endif
45351 main ()
45353 return f != $ac_func;
45355 return 0;
45357 _ACEOF
45358 rm -f conftest.$ac_objext conftest$ac_exeext
45359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45360 (eval $ac_link) 2>conftest.er1
45361 ac_status=$?
45362 grep -v '^ *+' conftest.er1 >conftest.err
45363 rm -f conftest.er1
45364 cat conftest.err >&5
45365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45366 (exit $ac_status); } &&
45367 { ac_try='test -z "$ac_c_werror_flag"
45368 || test ! -s conftest.err'
45369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45370 (eval $ac_try) 2>&5
45371 ac_status=$?
45372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45373 (exit $ac_status); }; } &&
45374 { ac_try='test -s conftest$ac_exeext'
45375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45376 (eval $ac_try) 2>&5
45377 ac_status=$?
45378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45379 (exit $ac_status); }; }; then
45380 eval "$as_ac_var=yes"
45381 else
45382 echo "$as_me: failed program was:" >&5
45383 sed 's/^/| /' conftest.$ac_ext >&5
45385 eval "$as_ac_var=no"
45387 rm -f conftest.err conftest.$ac_objext \
45388 conftest$ac_exeext conftest.$ac_ext
45390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45392 if test `eval echo '${'$as_ac_var'}'` = yes; then
45393 cat >>confdefs.h <<_ACEOF
45394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45395 _ACEOF
45398 done
45405 echo "$as_me:$LINENO: checking for log10l declaration" >&5
45406 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
45407 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
45408 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
45409 echo $ECHO_N "(cached) $ECHO_C" >&6
45410 else
45414 ac_ext=cc
45415 ac_cpp='$CXXCPP $CPPFLAGS'
45416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45420 cat >conftest.$ac_ext <<_ACEOF
45421 /* confdefs.h. */
45422 _ACEOF
45423 cat confdefs.h >>conftest.$ac_ext
45424 cat >>conftest.$ac_ext <<_ACEOF
45425 /* end confdefs.h. */
45426 #include <math.h>
45427 #ifdef HAVE_IEEEFP_H
45428 #include <ieeefp.h>
45429 #endif
45432 main ()
45434 log10l(0);
45436 return 0;
45438 _ACEOF
45439 rm -f conftest.$ac_objext
45440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45441 (eval $ac_compile) 2>conftest.er1
45442 ac_status=$?
45443 grep -v '^ *+' conftest.er1 >conftest.err
45444 rm -f conftest.er1
45445 cat conftest.err >&5
45446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45447 (exit $ac_status); } &&
45448 { ac_try='test -z "$ac_cxx_werror_flag"
45449 || test ! -s conftest.err'
45450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45451 (eval $ac_try) 2>&5
45452 ac_status=$?
45453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45454 (exit $ac_status); }; } &&
45455 { ac_try='test -s conftest.$ac_objext'
45456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45457 (eval $ac_try) 2>&5
45458 ac_status=$?
45459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45460 (exit $ac_status); }; }; then
45461 glibcxx_cv_func_log10l_use=yes
45462 else
45463 echo "$as_me: failed program was:" >&5
45464 sed 's/^/| /' conftest.$ac_ext >&5
45466 glibcxx_cv_func_log10l_use=no
45468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45469 ac_ext=c
45470 ac_cpp='$CPP $CPPFLAGS'
45471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45479 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
45480 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
45482 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
45484 for ac_func in log10l
45486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45487 echo "$as_me:$LINENO: checking for $ac_func" >&5
45488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45489 if eval "test \"\${$as_ac_var+set}\" = set"; then
45490 echo $ECHO_N "(cached) $ECHO_C" >&6
45491 else
45492 if test x$gcc_no_link = xyes; then
45493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45495 { (exit 1); exit 1; }; }
45497 cat >conftest.$ac_ext <<_ACEOF
45498 /* confdefs.h. */
45499 _ACEOF
45500 cat confdefs.h >>conftest.$ac_ext
45501 cat >>conftest.$ac_ext <<_ACEOF
45502 /* end confdefs.h. */
45503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45505 #define $ac_func innocuous_$ac_func
45507 /* System header to define __stub macros and hopefully few prototypes,
45508 which can conflict with char $ac_func (); below.
45509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45510 <limits.h> exists even on freestanding compilers. */
45512 #ifdef __STDC__
45513 # include <limits.h>
45514 #else
45515 # include <assert.h>
45516 #endif
45518 #undef $ac_func
45520 /* Override any gcc2 internal prototype to avoid an error. */
45521 #ifdef __cplusplus
45522 extern "C"
45524 #endif
45525 /* We use char because int might match the return type of a gcc2
45526 builtin and then its argument prototype would still apply. */
45527 char $ac_func ();
45528 /* The GNU C library defines this for functions which it implements
45529 to always fail with ENOSYS. Some functions are actually named
45530 something starting with __ and the normal name is an alias. */
45531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45532 choke me
45533 #else
45534 char (*f) () = $ac_func;
45535 #endif
45536 #ifdef __cplusplus
45538 #endif
45541 main ()
45543 return f != $ac_func;
45545 return 0;
45547 _ACEOF
45548 rm -f conftest.$ac_objext conftest$ac_exeext
45549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45550 (eval $ac_link) 2>conftest.er1
45551 ac_status=$?
45552 grep -v '^ *+' conftest.er1 >conftest.err
45553 rm -f conftest.er1
45554 cat conftest.err >&5
45555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556 (exit $ac_status); } &&
45557 { ac_try='test -z "$ac_c_werror_flag"
45558 || test ! -s conftest.err'
45559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45560 (eval $ac_try) 2>&5
45561 ac_status=$?
45562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45563 (exit $ac_status); }; } &&
45564 { ac_try='test -s conftest$ac_exeext'
45565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45566 (eval $ac_try) 2>&5
45567 ac_status=$?
45568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45569 (exit $ac_status); }; }; then
45570 eval "$as_ac_var=yes"
45571 else
45572 echo "$as_me: failed program was:" >&5
45573 sed 's/^/| /' conftest.$ac_ext >&5
45575 eval "$as_ac_var=no"
45577 rm -f conftest.err conftest.$ac_objext \
45578 conftest$ac_exeext conftest.$ac_ext
45580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45582 if test `eval echo '${'$as_ac_var'}'` = yes; then
45583 cat >>confdefs.h <<_ACEOF
45584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45585 _ACEOF
45588 done
45590 else
45592 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45593 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45594 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45595 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
45596 echo $ECHO_N "(cached) $ECHO_C" >&6
45597 else
45601 ac_ext=cc
45602 ac_cpp='$CXXCPP $CPPFLAGS'
45603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45607 cat >conftest.$ac_ext <<_ACEOF
45608 /* confdefs.h. */
45609 _ACEOF
45610 cat confdefs.h >>conftest.$ac_ext
45611 cat >>conftest.$ac_ext <<_ACEOF
45612 /* end confdefs.h. */
45613 #include <math.h>
45614 #ifdef HAVE_IEEEFP_H
45615 #include <ieeefp.h>
45616 #endif
45619 main ()
45621 _log10l(0);
45623 return 0;
45625 _ACEOF
45626 rm -f conftest.$ac_objext
45627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45628 (eval $ac_compile) 2>conftest.er1
45629 ac_status=$?
45630 grep -v '^ *+' conftest.er1 >conftest.err
45631 rm -f conftest.er1
45632 cat conftest.err >&5
45633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45634 (exit $ac_status); } &&
45635 { ac_try='test -z "$ac_cxx_werror_flag"
45636 || test ! -s conftest.err'
45637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45638 (eval $ac_try) 2>&5
45639 ac_status=$?
45640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45641 (exit $ac_status); }; } &&
45642 { ac_try='test -s conftest.$ac_objext'
45643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45644 (eval $ac_try) 2>&5
45645 ac_status=$?
45646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45647 (exit $ac_status); }; }; then
45648 glibcxx_cv_func__log10l_use=yes
45649 else
45650 echo "$as_me: failed program was:" >&5
45651 sed 's/^/| /' conftest.$ac_ext >&5
45653 glibcxx_cv_func__log10l_use=no
45655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45656 ac_ext=c
45657 ac_cpp='$CPP $CPPFLAGS'
45658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45666 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45667 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45669 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45671 for ac_func in _log10l
45673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45674 echo "$as_me:$LINENO: checking for $ac_func" >&5
45675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45676 if eval "test \"\${$as_ac_var+set}\" = set"; then
45677 echo $ECHO_N "(cached) $ECHO_C" >&6
45678 else
45679 if test x$gcc_no_link = xyes; then
45680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45682 { (exit 1); exit 1; }; }
45684 cat >conftest.$ac_ext <<_ACEOF
45685 /* confdefs.h. */
45686 _ACEOF
45687 cat confdefs.h >>conftest.$ac_ext
45688 cat >>conftest.$ac_ext <<_ACEOF
45689 /* end confdefs.h. */
45690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45692 #define $ac_func innocuous_$ac_func
45694 /* System header to define __stub macros and hopefully few prototypes,
45695 which can conflict with char $ac_func (); below.
45696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45697 <limits.h> exists even on freestanding compilers. */
45699 #ifdef __STDC__
45700 # include <limits.h>
45701 #else
45702 # include <assert.h>
45703 #endif
45705 #undef $ac_func
45707 /* Override any gcc2 internal prototype to avoid an error. */
45708 #ifdef __cplusplus
45709 extern "C"
45711 #endif
45712 /* We use char because int might match the return type of a gcc2
45713 builtin and then its argument prototype would still apply. */
45714 char $ac_func ();
45715 /* The GNU C library defines this for functions which it implements
45716 to always fail with ENOSYS. Some functions are actually named
45717 something starting with __ and the normal name is an alias. */
45718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45719 choke me
45720 #else
45721 char (*f) () = $ac_func;
45722 #endif
45723 #ifdef __cplusplus
45725 #endif
45728 main ()
45730 return f != $ac_func;
45732 return 0;
45734 _ACEOF
45735 rm -f conftest.$ac_objext conftest$ac_exeext
45736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45737 (eval $ac_link) 2>conftest.er1
45738 ac_status=$?
45739 grep -v '^ *+' conftest.er1 >conftest.err
45740 rm -f conftest.er1
45741 cat conftest.err >&5
45742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743 (exit $ac_status); } &&
45744 { ac_try='test -z "$ac_c_werror_flag"
45745 || test ! -s conftest.err'
45746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45747 (eval $ac_try) 2>&5
45748 ac_status=$?
45749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750 (exit $ac_status); }; } &&
45751 { ac_try='test -s conftest$ac_exeext'
45752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45753 (eval $ac_try) 2>&5
45754 ac_status=$?
45755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45756 (exit $ac_status); }; }; then
45757 eval "$as_ac_var=yes"
45758 else
45759 echo "$as_me: failed program was:" >&5
45760 sed 's/^/| /' conftest.$ac_ext >&5
45762 eval "$as_ac_var=no"
45764 rm -f conftest.err conftest.$ac_objext \
45765 conftest$ac_exeext conftest.$ac_ext
45767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45769 if test `eval echo '${'$as_ac_var'}'` = yes; then
45770 cat >>confdefs.h <<_ACEOF
45771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45772 _ACEOF
45775 done
45782 echo "$as_me:$LINENO: checking for modfl declaration" >&5
45783 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45784 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45785 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45786 echo $ECHO_N "(cached) $ECHO_C" >&6
45787 else
45791 ac_ext=cc
45792 ac_cpp='$CXXCPP $CPPFLAGS'
45793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45797 cat >conftest.$ac_ext <<_ACEOF
45798 /* confdefs.h. */
45799 _ACEOF
45800 cat confdefs.h >>conftest.$ac_ext
45801 cat >>conftest.$ac_ext <<_ACEOF
45802 /* end confdefs.h. */
45803 #include <math.h>
45805 main ()
45807 modfl(0, 0);
45809 return 0;
45811 _ACEOF
45812 rm -f conftest.$ac_objext
45813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45814 (eval $ac_compile) 2>conftest.er1
45815 ac_status=$?
45816 grep -v '^ *+' conftest.er1 >conftest.err
45817 rm -f conftest.er1
45818 cat conftest.err >&5
45819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45820 (exit $ac_status); } &&
45821 { ac_try='test -z "$ac_cxx_werror_flag"
45822 || test ! -s conftest.err'
45823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45824 (eval $ac_try) 2>&5
45825 ac_status=$?
45826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45827 (exit $ac_status); }; } &&
45828 { ac_try='test -s conftest.$ac_objext'
45829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45830 (eval $ac_try) 2>&5
45831 ac_status=$?
45832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45833 (exit $ac_status); }; }; then
45834 glibcxx_cv_func_modfl_use=yes
45835 else
45836 echo "$as_me: failed program was:" >&5
45837 sed 's/^/| /' conftest.$ac_ext >&5
45839 glibcxx_cv_func_modfl_use=no
45841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842 ac_ext=c
45843 ac_cpp='$CPP $CPPFLAGS'
45844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45852 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
45853 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
45855 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
45857 for ac_func in modfl
45859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45860 echo "$as_me:$LINENO: checking for $ac_func" >&5
45861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45862 if eval "test \"\${$as_ac_var+set}\" = set"; then
45863 echo $ECHO_N "(cached) $ECHO_C" >&6
45864 else
45865 if test x$gcc_no_link = xyes; then
45866 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45868 { (exit 1); exit 1; }; }
45870 cat >conftest.$ac_ext <<_ACEOF
45871 /* confdefs.h. */
45872 _ACEOF
45873 cat confdefs.h >>conftest.$ac_ext
45874 cat >>conftest.$ac_ext <<_ACEOF
45875 /* end confdefs.h. */
45876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45878 #define $ac_func innocuous_$ac_func
45880 /* System header to define __stub macros and hopefully few prototypes,
45881 which can conflict with char $ac_func (); below.
45882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45883 <limits.h> exists even on freestanding compilers. */
45885 #ifdef __STDC__
45886 # include <limits.h>
45887 #else
45888 # include <assert.h>
45889 #endif
45891 #undef $ac_func
45893 /* Override any gcc2 internal prototype to avoid an error. */
45894 #ifdef __cplusplus
45895 extern "C"
45897 #endif
45898 /* We use char because int might match the return type of a gcc2
45899 builtin and then its argument prototype would still apply. */
45900 char $ac_func ();
45901 /* The GNU C library defines this for functions which it implements
45902 to always fail with ENOSYS. Some functions are actually named
45903 something starting with __ and the normal name is an alias. */
45904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45905 choke me
45906 #else
45907 char (*f) () = $ac_func;
45908 #endif
45909 #ifdef __cplusplus
45911 #endif
45914 main ()
45916 return f != $ac_func;
45918 return 0;
45920 _ACEOF
45921 rm -f conftest.$ac_objext conftest$ac_exeext
45922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45923 (eval $ac_link) 2>conftest.er1
45924 ac_status=$?
45925 grep -v '^ *+' conftest.er1 >conftest.err
45926 rm -f conftest.er1
45927 cat conftest.err >&5
45928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45929 (exit $ac_status); } &&
45930 { ac_try='test -z "$ac_c_werror_flag"
45931 || test ! -s conftest.err'
45932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45933 (eval $ac_try) 2>&5
45934 ac_status=$?
45935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936 (exit $ac_status); }; } &&
45937 { ac_try='test -s conftest$ac_exeext'
45938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45939 (eval $ac_try) 2>&5
45940 ac_status=$?
45941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942 (exit $ac_status); }; }; then
45943 eval "$as_ac_var=yes"
45944 else
45945 echo "$as_me: failed program was:" >&5
45946 sed 's/^/| /' conftest.$ac_ext >&5
45948 eval "$as_ac_var=no"
45950 rm -f conftest.err conftest.$ac_objext \
45951 conftest$ac_exeext conftest.$ac_ext
45953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45955 if test `eval echo '${'$as_ac_var'}'` = yes; then
45956 cat >>confdefs.h <<_ACEOF
45957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45958 _ACEOF
45961 done
45963 else
45965 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
45966 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
45967 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
45968 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
45969 echo $ECHO_N "(cached) $ECHO_C" >&6
45970 else
45974 ac_ext=cc
45975 ac_cpp='$CXXCPP $CPPFLAGS'
45976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45980 cat >conftest.$ac_ext <<_ACEOF
45981 /* confdefs.h. */
45982 _ACEOF
45983 cat confdefs.h >>conftest.$ac_ext
45984 cat >>conftest.$ac_ext <<_ACEOF
45985 /* end confdefs.h. */
45986 #include <math.h>
45988 main ()
45990 _modfl(0, 0);
45992 return 0;
45994 _ACEOF
45995 rm -f conftest.$ac_objext
45996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45997 (eval $ac_compile) 2>conftest.er1
45998 ac_status=$?
45999 grep -v '^ *+' conftest.er1 >conftest.err
46000 rm -f conftest.er1
46001 cat conftest.err >&5
46002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46003 (exit $ac_status); } &&
46004 { ac_try='test -z "$ac_cxx_werror_flag"
46005 || test ! -s conftest.err'
46006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46007 (eval $ac_try) 2>&5
46008 ac_status=$?
46009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46010 (exit $ac_status); }; } &&
46011 { ac_try='test -s conftest.$ac_objext'
46012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46013 (eval $ac_try) 2>&5
46014 ac_status=$?
46015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46016 (exit $ac_status); }; }; then
46017 glibcxx_cv_func__modfl_use=yes
46018 else
46019 echo "$as_me: failed program was:" >&5
46020 sed 's/^/| /' conftest.$ac_ext >&5
46022 glibcxx_cv_func__modfl_use=no
46024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46025 ac_ext=c
46026 ac_cpp='$CPP $CPPFLAGS'
46027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46035 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
46036 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
46038 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
46040 for ac_func in _modfl
46042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46043 echo "$as_me:$LINENO: checking for $ac_func" >&5
46044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46045 if eval "test \"\${$as_ac_var+set}\" = set"; then
46046 echo $ECHO_N "(cached) $ECHO_C" >&6
46047 else
46048 if test x$gcc_no_link = xyes; then
46049 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46051 { (exit 1); exit 1; }; }
46053 cat >conftest.$ac_ext <<_ACEOF
46054 /* confdefs.h. */
46055 _ACEOF
46056 cat confdefs.h >>conftest.$ac_ext
46057 cat >>conftest.$ac_ext <<_ACEOF
46058 /* end confdefs.h. */
46059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46061 #define $ac_func innocuous_$ac_func
46063 /* System header to define __stub macros and hopefully few prototypes,
46064 which can conflict with char $ac_func (); below.
46065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46066 <limits.h> exists even on freestanding compilers. */
46068 #ifdef __STDC__
46069 # include <limits.h>
46070 #else
46071 # include <assert.h>
46072 #endif
46074 #undef $ac_func
46076 /* Override any gcc2 internal prototype to avoid an error. */
46077 #ifdef __cplusplus
46078 extern "C"
46080 #endif
46081 /* We use char because int might match the return type of a gcc2
46082 builtin and then its argument prototype would still apply. */
46083 char $ac_func ();
46084 /* The GNU C library defines this for functions which it implements
46085 to always fail with ENOSYS. Some functions are actually named
46086 something starting with __ and the normal name is an alias. */
46087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46088 choke me
46089 #else
46090 char (*f) () = $ac_func;
46091 #endif
46092 #ifdef __cplusplus
46094 #endif
46097 main ()
46099 return f != $ac_func;
46101 return 0;
46103 _ACEOF
46104 rm -f conftest.$ac_objext conftest$ac_exeext
46105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46106 (eval $ac_link) 2>conftest.er1
46107 ac_status=$?
46108 grep -v '^ *+' conftest.er1 >conftest.err
46109 rm -f conftest.er1
46110 cat conftest.err >&5
46111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112 (exit $ac_status); } &&
46113 { ac_try='test -z "$ac_c_werror_flag"
46114 || test ! -s conftest.err'
46115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46116 (eval $ac_try) 2>&5
46117 ac_status=$?
46118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46119 (exit $ac_status); }; } &&
46120 { ac_try='test -s conftest$ac_exeext'
46121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46122 (eval $ac_try) 2>&5
46123 ac_status=$?
46124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46125 (exit $ac_status); }; }; then
46126 eval "$as_ac_var=yes"
46127 else
46128 echo "$as_me: failed program was:" >&5
46129 sed 's/^/| /' conftest.$ac_ext >&5
46131 eval "$as_ac_var=no"
46133 rm -f conftest.err conftest.$ac_objext \
46134 conftest$ac_exeext conftest.$ac_ext
46136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46138 if test `eval echo '${'$as_ac_var'}'` = yes; then
46139 cat >>confdefs.h <<_ACEOF
46140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46141 _ACEOF
46144 done
46151 echo "$as_me:$LINENO: checking for powl declaration" >&5
46152 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
46153 if test x${glibcxx_cv_func_powl_use+set} != xset; then
46154 if test "${glibcxx_cv_func_powl_use+set}" = set; then
46155 echo $ECHO_N "(cached) $ECHO_C" >&6
46156 else
46160 ac_ext=cc
46161 ac_cpp='$CXXCPP $CPPFLAGS'
46162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46166 cat >conftest.$ac_ext <<_ACEOF
46167 /* confdefs.h. */
46168 _ACEOF
46169 cat confdefs.h >>conftest.$ac_ext
46170 cat >>conftest.$ac_ext <<_ACEOF
46171 /* end confdefs.h. */
46172 #include <math.h>
46174 main ()
46176 powl(0, 0);
46178 return 0;
46180 _ACEOF
46181 rm -f conftest.$ac_objext
46182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46183 (eval $ac_compile) 2>conftest.er1
46184 ac_status=$?
46185 grep -v '^ *+' conftest.er1 >conftest.err
46186 rm -f conftest.er1
46187 cat conftest.err >&5
46188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46189 (exit $ac_status); } &&
46190 { ac_try='test -z "$ac_cxx_werror_flag"
46191 || test ! -s conftest.err'
46192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46193 (eval $ac_try) 2>&5
46194 ac_status=$?
46195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46196 (exit $ac_status); }; } &&
46197 { ac_try='test -s conftest.$ac_objext'
46198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46199 (eval $ac_try) 2>&5
46200 ac_status=$?
46201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46202 (exit $ac_status); }; }; then
46203 glibcxx_cv_func_powl_use=yes
46204 else
46205 echo "$as_me: failed program was:" >&5
46206 sed 's/^/| /' conftest.$ac_ext >&5
46208 glibcxx_cv_func_powl_use=no
46210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46211 ac_ext=c
46212 ac_cpp='$CPP $CPPFLAGS'
46213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46221 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
46222 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
46224 if test x$glibcxx_cv_func_powl_use = x"yes"; then
46226 for ac_func in powl
46228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46229 echo "$as_me:$LINENO: checking for $ac_func" >&5
46230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46231 if eval "test \"\${$as_ac_var+set}\" = set"; then
46232 echo $ECHO_N "(cached) $ECHO_C" >&6
46233 else
46234 if test x$gcc_no_link = xyes; then
46235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46237 { (exit 1); exit 1; }; }
46239 cat >conftest.$ac_ext <<_ACEOF
46240 /* confdefs.h. */
46241 _ACEOF
46242 cat confdefs.h >>conftest.$ac_ext
46243 cat >>conftest.$ac_ext <<_ACEOF
46244 /* end confdefs.h. */
46245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46247 #define $ac_func innocuous_$ac_func
46249 /* System header to define __stub macros and hopefully few prototypes,
46250 which can conflict with char $ac_func (); below.
46251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46252 <limits.h> exists even on freestanding compilers. */
46254 #ifdef __STDC__
46255 # include <limits.h>
46256 #else
46257 # include <assert.h>
46258 #endif
46260 #undef $ac_func
46262 /* Override any gcc2 internal prototype to avoid an error. */
46263 #ifdef __cplusplus
46264 extern "C"
46266 #endif
46267 /* We use char because int might match the return type of a gcc2
46268 builtin and then its argument prototype would still apply. */
46269 char $ac_func ();
46270 /* The GNU C library defines this for functions which it implements
46271 to always fail with ENOSYS. Some functions are actually named
46272 something starting with __ and the normal name is an alias. */
46273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46274 choke me
46275 #else
46276 char (*f) () = $ac_func;
46277 #endif
46278 #ifdef __cplusplus
46280 #endif
46283 main ()
46285 return f != $ac_func;
46287 return 0;
46289 _ACEOF
46290 rm -f conftest.$ac_objext conftest$ac_exeext
46291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46292 (eval $ac_link) 2>conftest.er1
46293 ac_status=$?
46294 grep -v '^ *+' conftest.er1 >conftest.err
46295 rm -f conftest.er1
46296 cat conftest.err >&5
46297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298 (exit $ac_status); } &&
46299 { ac_try='test -z "$ac_c_werror_flag"
46300 || test ! -s conftest.err'
46301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46302 (eval $ac_try) 2>&5
46303 ac_status=$?
46304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46305 (exit $ac_status); }; } &&
46306 { ac_try='test -s conftest$ac_exeext'
46307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46308 (eval $ac_try) 2>&5
46309 ac_status=$?
46310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46311 (exit $ac_status); }; }; then
46312 eval "$as_ac_var=yes"
46313 else
46314 echo "$as_me: failed program was:" >&5
46315 sed 's/^/| /' conftest.$ac_ext >&5
46317 eval "$as_ac_var=no"
46319 rm -f conftest.err conftest.$ac_objext \
46320 conftest$ac_exeext conftest.$ac_ext
46322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46324 if test `eval echo '${'$as_ac_var'}'` = yes; then
46325 cat >>confdefs.h <<_ACEOF
46326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46327 _ACEOF
46330 done
46332 else
46334 echo "$as_me:$LINENO: checking for _powl declaration" >&5
46335 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
46336 if test x${glibcxx_cv_func__powl_use+set} != xset; then
46337 if test "${glibcxx_cv_func__powl_use+set}" = set; then
46338 echo $ECHO_N "(cached) $ECHO_C" >&6
46339 else
46343 ac_ext=cc
46344 ac_cpp='$CXXCPP $CPPFLAGS'
46345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46349 cat >conftest.$ac_ext <<_ACEOF
46350 /* confdefs.h. */
46351 _ACEOF
46352 cat confdefs.h >>conftest.$ac_ext
46353 cat >>conftest.$ac_ext <<_ACEOF
46354 /* end confdefs.h. */
46355 #include <math.h>
46357 main ()
46359 _powl(0, 0);
46361 return 0;
46363 _ACEOF
46364 rm -f conftest.$ac_objext
46365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46366 (eval $ac_compile) 2>conftest.er1
46367 ac_status=$?
46368 grep -v '^ *+' conftest.er1 >conftest.err
46369 rm -f conftest.er1
46370 cat conftest.err >&5
46371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46372 (exit $ac_status); } &&
46373 { ac_try='test -z "$ac_cxx_werror_flag"
46374 || test ! -s conftest.err'
46375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46376 (eval $ac_try) 2>&5
46377 ac_status=$?
46378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46379 (exit $ac_status); }; } &&
46380 { ac_try='test -s conftest.$ac_objext'
46381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46382 (eval $ac_try) 2>&5
46383 ac_status=$?
46384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46385 (exit $ac_status); }; }; then
46386 glibcxx_cv_func__powl_use=yes
46387 else
46388 echo "$as_me: failed program was:" >&5
46389 sed 's/^/| /' conftest.$ac_ext >&5
46391 glibcxx_cv_func__powl_use=no
46393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46394 ac_ext=c
46395 ac_cpp='$CPP $CPPFLAGS'
46396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46404 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
46405 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
46407 if test x$glibcxx_cv_func__powl_use = x"yes"; then
46409 for ac_func in _powl
46411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46412 echo "$as_me:$LINENO: checking for $ac_func" >&5
46413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46414 if eval "test \"\${$as_ac_var+set}\" = set"; then
46415 echo $ECHO_N "(cached) $ECHO_C" >&6
46416 else
46417 if test x$gcc_no_link = xyes; then
46418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46420 { (exit 1); exit 1; }; }
46422 cat >conftest.$ac_ext <<_ACEOF
46423 /* confdefs.h. */
46424 _ACEOF
46425 cat confdefs.h >>conftest.$ac_ext
46426 cat >>conftest.$ac_ext <<_ACEOF
46427 /* end confdefs.h. */
46428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46430 #define $ac_func innocuous_$ac_func
46432 /* System header to define __stub macros and hopefully few prototypes,
46433 which can conflict with char $ac_func (); below.
46434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46435 <limits.h> exists even on freestanding compilers. */
46437 #ifdef __STDC__
46438 # include <limits.h>
46439 #else
46440 # include <assert.h>
46441 #endif
46443 #undef $ac_func
46445 /* Override any gcc2 internal prototype to avoid an error. */
46446 #ifdef __cplusplus
46447 extern "C"
46449 #endif
46450 /* We use char because int might match the return type of a gcc2
46451 builtin and then its argument prototype would still apply. */
46452 char $ac_func ();
46453 /* The GNU C library defines this for functions which it implements
46454 to always fail with ENOSYS. Some functions are actually named
46455 something starting with __ and the normal name is an alias. */
46456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46457 choke me
46458 #else
46459 char (*f) () = $ac_func;
46460 #endif
46461 #ifdef __cplusplus
46463 #endif
46466 main ()
46468 return f != $ac_func;
46470 return 0;
46472 _ACEOF
46473 rm -f conftest.$ac_objext conftest$ac_exeext
46474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46475 (eval $ac_link) 2>conftest.er1
46476 ac_status=$?
46477 grep -v '^ *+' conftest.er1 >conftest.err
46478 rm -f conftest.er1
46479 cat conftest.err >&5
46480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46481 (exit $ac_status); } &&
46482 { ac_try='test -z "$ac_c_werror_flag"
46483 || test ! -s conftest.err'
46484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46485 (eval $ac_try) 2>&5
46486 ac_status=$?
46487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488 (exit $ac_status); }; } &&
46489 { ac_try='test -s conftest$ac_exeext'
46490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46491 (eval $ac_try) 2>&5
46492 ac_status=$?
46493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46494 (exit $ac_status); }; }; then
46495 eval "$as_ac_var=yes"
46496 else
46497 echo "$as_me: failed program was:" >&5
46498 sed 's/^/| /' conftest.$ac_ext >&5
46500 eval "$as_ac_var=no"
46502 rm -f conftest.err conftest.$ac_objext \
46503 conftest$ac_exeext conftest.$ac_ext
46505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46507 if test `eval echo '${'$as_ac_var'}'` = yes; then
46508 cat >>confdefs.h <<_ACEOF
46509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46510 _ACEOF
46513 done
46520 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
46521 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
46522 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
46523 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
46524 echo $ECHO_N "(cached) $ECHO_C" >&6
46525 else
46529 ac_ext=cc
46530 ac_cpp='$CXXCPP $CPPFLAGS'
46531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46535 cat >conftest.$ac_ext <<_ACEOF
46536 /* confdefs.h. */
46537 _ACEOF
46538 cat confdefs.h >>conftest.$ac_ext
46539 cat >>conftest.$ac_ext <<_ACEOF
46540 /* end confdefs.h. */
46541 #include <math.h>
46542 #ifdef HAVE_IEEEFP_H
46543 #include <ieeefp.h>
46544 #endif
46547 main ()
46549 sqrtl(0);
46551 return 0;
46553 _ACEOF
46554 rm -f conftest.$ac_objext
46555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46556 (eval $ac_compile) 2>conftest.er1
46557 ac_status=$?
46558 grep -v '^ *+' conftest.er1 >conftest.err
46559 rm -f conftest.er1
46560 cat conftest.err >&5
46561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46562 (exit $ac_status); } &&
46563 { ac_try='test -z "$ac_cxx_werror_flag"
46564 || test ! -s conftest.err'
46565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46566 (eval $ac_try) 2>&5
46567 ac_status=$?
46568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46569 (exit $ac_status); }; } &&
46570 { ac_try='test -s conftest.$ac_objext'
46571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46572 (eval $ac_try) 2>&5
46573 ac_status=$?
46574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46575 (exit $ac_status); }; }; then
46576 glibcxx_cv_func_sqrtl_use=yes
46577 else
46578 echo "$as_me: failed program was:" >&5
46579 sed 's/^/| /' conftest.$ac_ext >&5
46581 glibcxx_cv_func_sqrtl_use=no
46583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46584 ac_ext=c
46585 ac_cpp='$CPP $CPPFLAGS'
46586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46594 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46595 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46597 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46599 for ac_func in sqrtl
46601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46602 echo "$as_me:$LINENO: checking for $ac_func" >&5
46603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46604 if eval "test \"\${$as_ac_var+set}\" = set"; then
46605 echo $ECHO_N "(cached) $ECHO_C" >&6
46606 else
46607 if test x$gcc_no_link = xyes; then
46608 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46609 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46610 { (exit 1); exit 1; }; }
46612 cat >conftest.$ac_ext <<_ACEOF
46613 /* confdefs.h. */
46614 _ACEOF
46615 cat confdefs.h >>conftest.$ac_ext
46616 cat >>conftest.$ac_ext <<_ACEOF
46617 /* end confdefs.h. */
46618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46620 #define $ac_func innocuous_$ac_func
46622 /* System header to define __stub macros and hopefully few prototypes,
46623 which can conflict with char $ac_func (); below.
46624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46625 <limits.h> exists even on freestanding compilers. */
46627 #ifdef __STDC__
46628 # include <limits.h>
46629 #else
46630 # include <assert.h>
46631 #endif
46633 #undef $ac_func
46635 /* Override any gcc2 internal prototype to avoid an error. */
46636 #ifdef __cplusplus
46637 extern "C"
46639 #endif
46640 /* We use char because int might match the return type of a gcc2
46641 builtin and then its argument prototype would still apply. */
46642 char $ac_func ();
46643 /* The GNU C library defines this for functions which it implements
46644 to always fail with ENOSYS. Some functions are actually named
46645 something starting with __ and the normal name is an alias. */
46646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46647 choke me
46648 #else
46649 char (*f) () = $ac_func;
46650 #endif
46651 #ifdef __cplusplus
46653 #endif
46656 main ()
46658 return f != $ac_func;
46660 return 0;
46662 _ACEOF
46663 rm -f conftest.$ac_objext conftest$ac_exeext
46664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46665 (eval $ac_link) 2>conftest.er1
46666 ac_status=$?
46667 grep -v '^ *+' conftest.er1 >conftest.err
46668 rm -f conftest.er1
46669 cat conftest.err >&5
46670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46671 (exit $ac_status); } &&
46672 { ac_try='test -z "$ac_c_werror_flag"
46673 || test ! -s conftest.err'
46674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46675 (eval $ac_try) 2>&5
46676 ac_status=$?
46677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46678 (exit $ac_status); }; } &&
46679 { ac_try='test -s conftest$ac_exeext'
46680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46681 (eval $ac_try) 2>&5
46682 ac_status=$?
46683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46684 (exit $ac_status); }; }; then
46685 eval "$as_ac_var=yes"
46686 else
46687 echo "$as_me: failed program was:" >&5
46688 sed 's/^/| /' conftest.$ac_ext >&5
46690 eval "$as_ac_var=no"
46692 rm -f conftest.err conftest.$ac_objext \
46693 conftest$ac_exeext conftest.$ac_ext
46695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46697 if test `eval echo '${'$as_ac_var'}'` = yes; then
46698 cat >>confdefs.h <<_ACEOF
46699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46700 _ACEOF
46703 done
46705 else
46707 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46708 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46709 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46710 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46711 echo $ECHO_N "(cached) $ECHO_C" >&6
46712 else
46716 ac_ext=cc
46717 ac_cpp='$CXXCPP $CPPFLAGS'
46718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46722 cat >conftest.$ac_ext <<_ACEOF
46723 /* confdefs.h. */
46724 _ACEOF
46725 cat confdefs.h >>conftest.$ac_ext
46726 cat >>conftest.$ac_ext <<_ACEOF
46727 /* end confdefs.h. */
46728 #include <math.h>
46729 #ifdef HAVE_IEEEFP_H
46730 #include <ieeefp.h>
46731 #endif
46734 main ()
46736 _sqrtl(0);
46738 return 0;
46740 _ACEOF
46741 rm -f conftest.$ac_objext
46742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46743 (eval $ac_compile) 2>conftest.er1
46744 ac_status=$?
46745 grep -v '^ *+' conftest.er1 >conftest.err
46746 rm -f conftest.er1
46747 cat conftest.err >&5
46748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46749 (exit $ac_status); } &&
46750 { ac_try='test -z "$ac_cxx_werror_flag"
46751 || test ! -s conftest.err'
46752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46753 (eval $ac_try) 2>&5
46754 ac_status=$?
46755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756 (exit $ac_status); }; } &&
46757 { ac_try='test -s conftest.$ac_objext'
46758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46759 (eval $ac_try) 2>&5
46760 ac_status=$?
46761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46762 (exit $ac_status); }; }; then
46763 glibcxx_cv_func__sqrtl_use=yes
46764 else
46765 echo "$as_me: failed program was:" >&5
46766 sed 's/^/| /' conftest.$ac_ext >&5
46768 glibcxx_cv_func__sqrtl_use=no
46770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46771 ac_ext=c
46772 ac_cpp='$CPP $CPPFLAGS'
46773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46781 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46782 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46784 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46786 for ac_func in _sqrtl
46788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46789 echo "$as_me:$LINENO: checking for $ac_func" >&5
46790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46791 if eval "test \"\${$as_ac_var+set}\" = set"; then
46792 echo $ECHO_N "(cached) $ECHO_C" >&6
46793 else
46794 if test x$gcc_no_link = xyes; then
46795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46797 { (exit 1); exit 1; }; }
46799 cat >conftest.$ac_ext <<_ACEOF
46800 /* confdefs.h. */
46801 _ACEOF
46802 cat confdefs.h >>conftest.$ac_ext
46803 cat >>conftest.$ac_ext <<_ACEOF
46804 /* end confdefs.h. */
46805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46807 #define $ac_func innocuous_$ac_func
46809 /* System header to define __stub macros and hopefully few prototypes,
46810 which can conflict with char $ac_func (); below.
46811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46812 <limits.h> exists even on freestanding compilers. */
46814 #ifdef __STDC__
46815 # include <limits.h>
46816 #else
46817 # include <assert.h>
46818 #endif
46820 #undef $ac_func
46822 /* Override any gcc2 internal prototype to avoid an error. */
46823 #ifdef __cplusplus
46824 extern "C"
46826 #endif
46827 /* We use char because int might match the return type of a gcc2
46828 builtin and then its argument prototype would still apply. */
46829 char $ac_func ();
46830 /* The GNU C library defines this for functions which it implements
46831 to always fail with ENOSYS. Some functions are actually named
46832 something starting with __ and the normal name is an alias. */
46833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46834 choke me
46835 #else
46836 char (*f) () = $ac_func;
46837 #endif
46838 #ifdef __cplusplus
46840 #endif
46843 main ()
46845 return f != $ac_func;
46847 return 0;
46849 _ACEOF
46850 rm -f conftest.$ac_objext conftest$ac_exeext
46851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46852 (eval $ac_link) 2>conftest.er1
46853 ac_status=$?
46854 grep -v '^ *+' conftest.er1 >conftest.err
46855 rm -f conftest.er1
46856 cat conftest.err >&5
46857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46858 (exit $ac_status); } &&
46859 { ac_try='test -z "$ac_c_werror_flag"
46860 || test ! -s conftest.err'
46861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46862 (eval $ac_try) 2>&5
46863 ac_status=$?
46864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46865 (exit $ac_status); }; } &&
46866 { ac_try='test -s conftest$ac_exeext'
46867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46868 (eval $ac_try) 2>&5
46869 ac_status=$?
46870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46871 (exit $ac_status); }; }; then
46872 eval "$as_ac_var=yes"
46873 else
46874 echo "$as_me: failed program was:" >&5
46875 sed 's/^/| /' conftest.$ac_ext >&5
46877 eval "$as_ac_var=no"
46879 rm -f conftest.err conftest.$ac_objext \
46880 conftest$ac_exeext conftest.$ac_ext
46882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46884 if test `eval echo '${'$as_ac_var'}'` = yes; then
46885 cat >>confdefs.h <<_ACEOF
46886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46887 _ACEOF
46890 done
46897 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
46898 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
46899 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
46900 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
46901 echo $ECHO_N "(cached) $ECHO_C" >&6
46902 else
46906 ac_ext=cc
46907 ac_cpp='$CXXCPP $CPPFLAGS'
46908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46912 cat >conftest.$ac_ext <<_ACEOF
46913 /* confdefs.h. */
46914 _ACEOF
46915 cat confdefs.h >>conftest.$ac_ext
46916 cat >>conftest.$ac_ext <<_ACEOF
46917 /* end confdefs.h. */
46918 #include <math.h>
46920 main ()
46922 sincosl(0, 0, 0);
46924 return 0;
46926 _ACEOF
46927 rm -f conftest.$ac_objext
46928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46929 (eval $ac_compile) 2>conftest.er1
46930 ac_status=$?
46931 grep -v '^ *+' conftest.er1 >conftest.err
46932 rm -f conftest.er1
46933 cat conftest.err >&5
46934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46935 (exit $ac_status); } &&
46936 { ac_try='test -z "$ac_cxx_werror_flag"
46937 || test ! -s conftest.err'
46938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46939 (eval $ac_try) 2>&5
46940 ac_status=$?
46941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46942 (exit $ac_status); }; } &&
46943 { ac_try='test -s conftest.$ac_objext'
46944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46945 (eval $ac_try) 2>&5
46946 ac_status=$?
46947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948 (exit $ac_status); }; }; then
46949 glibcxx_cv_func_sincosl_use=yes
46950 else
46951 echo "$as_me: failed program was:" >&5
46952 sed 's/^/| /' conftest.$ac_ext >&5
46954 glibcxx_cv_func_sincosl_use=no
46956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46957 ac_ext=c
46958 ac_cpp='$CPP $CPPFLAGS'
46959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46967 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
46968 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
46970 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
46972 for ac_func in sincosl
46974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46975 echo "$as_me:$LINENO: checking for $ac_func" >&5
46976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46977 if eval "test \"\${$as_ac_var+set}\" = set"; then
46978 echo $ECHO_N "(cached) $ECHO_C" >&6
46979 else
46980 if test x$gcc_no_link = xyes; then
46981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46983 { (exit 1); exit 1; }; }
46985 cat >conftest.$ac_ext <<_ACEOF
46986 /* confdefs.h. */
46987 _ACEOF
46988 cat confdefs.h >>conftest.$ac_ext
46989 cat >>conftest.$ac_ext <<_ACEOF
46990 /* end confdefs.h. */
46991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46993 #define $ac_func innocuous_$ac_func
46995 /* System header to define __stub macros and hopefully few prototypes,
46996 which can conflict with char $ac_func (); below.
46997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46998 <limits.h> exists even on freestanding compilers. */
47000 #ifdef __STDC__
47001 # include <limits.h>
47002 #else
47003 # include <assert.h>
47004 #endif
47006 #undef $ac_func
47008 /* Override any gcc2 internal prototype to avoid an error. */
47009 #ifdef __cplusplus
47010 extern "C"
47012 #endif
47013 /* We use char because int might match the return type of a gcc2
47014 builtin and then its argument prototype would still apply. */
47015 char $ac_func ();
47016 /* The GNU C library defines this for functions which it implements
47017 to always fail with ENOSYS. Some functions are actually named
47018 something starting with __ and the normal name is an alias. */
47019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47020 choke me
47021 #else
47022 char (*f) () = $ac_func;
47023 #endif
47024 #ifdef __cplusplus
47026 #endif
47029 main ()
47031 return f != $ac_func;
47033 return 0;
47035 _ACEOF
47036 rm -f conftest.$ac_objext conftest$ac_exeext
47037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47038 (eval $ac_link) 2>conftest.er1
47039 ac_status=$?
47040 grep -v '^ *+' conftest.er1 >conftest.err
47041 rm -f conftest.er1
47042 cat conftest.err >&5
47043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47044 (exit $ac_status); } &&
47045 { ac_try='test -z "$ac_c_werror_flag"
47046 || test ! -s conftest.err'
47047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47048 (eval $ac_try) 2>&5
47049 ac_status=$?
47050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47051 (exit $ac_status); }; } &&
47052 { ac_try='test -s conftest$ac_exeext'
47053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47054 (eval $ac_try) 2>&5
47055 ac_status=$?
47056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47057 (exit $ac_status); }; }; then
47058 eval "$as_ac_var=yes"
47059 else
47060 echo "$as_me: failed program was:" >&5
47061 sed 's/^/| /' conftest.$ac_ext >&5
47063 eval "$as_ac_var=no"
47065 rm -f conftest.err conftest.$ac_objext \
47066 conftest$ac_exeext conftest.$ac_ext
47068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47070 if test `eval echo '${'$as_ac_var'}'` = yes; then
47071 cat >>confdefs.h <<_ACEOF
47072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47073 _ACEOF
47076 done
47078 else
47080 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
47081 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
47082 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
47083 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
47084 echo $ECHO_N "(cached) $ECHO_C" >&6
47085 else
47089 ac_ext=cc
47090 ac_cpp='$CXXCPP $CPPFLAGS'
47091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47095 cat >conftest.$ac_ext <<_ACEOF
47096 /* confdefs.h. */
47097 _ACEOF
47098 cat confdefs.h >>conftest.$ac_ext
47099 cat >>conftest.$ac_ext <<_ACEOF
47100 /* end confdefs.h. */
47101 #include <math.h>
47103 main ()
47105 _sincosl(0, 0, 0);
47107 return 0;
47109 _ACEOF
47110 rm -f conftest.$ac_objext
47111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47112 (eval $ac_compile) 2>conftest.er1
47113 ac_status=$?
47114 grep -v '^ *+' conftest.er1 >conftest.err
47115 rm -f conftest.er1
47116 cat conftest.err >&5
47117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47118 (exit $ac_status); } &&
47119 { ac_try='test -z "$ac_cxx_werror_flag"
47120 || test ! -s conftest.err'
47121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47122 (eval $ac_try) 2>&5
47123 ac_status=$?
47124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47125 (exit $ac_status); }; } &&
47126 { ac_try='test -s conftest.$ac_objext'
47127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47128 (eval $ac_try) 2>&5
47129 ac_status=$?
47130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47131 (exit $ac_status); }; }; then
47132 glibcxx_cv_func__sincosl_use=yes
47133 else
47134 echo "$as_me: failed program was:" >&5
47135 sed 's/^/| /' conftest.$ac_ext >&5
47137 glibcxx_cv_func__sincosl_use=no
47139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47140 ac_ext=c
47141 ac_cpp='$CPP $CPPFLAGS'
47142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47150 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
47151 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
47153 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
47155 for ac_func in _sincosl
47157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47158 echo "$as_me:$LINENO: checking for $ac_func" >&5
47159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47160 if eval "test \"\${$as_ac_var+set}\" = set"; then
47161 echo $ECHO_N "(cached) $ECHO_C" >&6
47162 else
47163 if test x$gcc_no_link = xyes; then
47164 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47166 { (exit 1); exit 1; }; }
47168 cat >conftest.$ac_ext <<_ACEOF
47169 /* confdefs.h. */
47170 _ACEOF
47171 cat confdefs.h >>conftest.$ac_ext
47172 cat >>conftest.$ac_ext <<_ACEOF
47173 /* end confdefs.h. */
47174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47176 #define $ac_func innocuous_$ac_func
47178 /* System header to define __stub macros and hopefully few prototypes,
47179 which can conflict with char $ac_func (); below.
47180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47181 <limits.h> exists even on freestanding compilers. */
47183 #ifdef __STDC__
47184 # include <limits.h>
47185 #else
47186 # include <assert.h>
47187 #endif
47189 #undef $ac_func
47191 /* Override any gcc2 internal prototype to avoid an error. */
47192 #ifdef __cplusplus
47193 extern "C"
47195 #endif
47196 /* We use char because int might match the return type of a gcc2
47197 builtin and then its argument prototype would still apply. */
47198 char $ac_func ();
47199 /* The GNU C library defines this for functions which it implements
47200 to always fail with ENOSYS. Some functions are actually named
47201 something starting with __ and the normal name is an alias. */
47202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47203 choke me
47204 #else
47205 char (*f) () = $ac_func;
47206 #endif
47207 #ifdef __cplusplus
47209 #endif
47212 main ()
47214 return f != $ac_func;
47216 return 0;
47218 _ACEOF
47219 rm -f conftest.$ac_objext conftest$ac_exeext
47220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47221 (eval $ac_link) 2>conftest.er1
47222 ac_status=$?
47223 grep -v '^ *+' conftest.er1 >conftest.err
47224 rm -f conftest.er1
47225 cat conftest.err >&5
47226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47227 (exit $ac_status); } &&
47228 { ac_try='test -z "$ac_c_werror_flag"
47229 || test ! -s conftest.err'
47230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47231 (eval $ac_try) 2>&5
47232 ac_status=$?
47233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47234 (exit $ac_status); }; } &&
47235 { ac_try='test -s conftest$ac_exeext'
47236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47237 (eval $ac_try) 2>&5
47238 ac_status=$?
47239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47240 (exit $ac_status); }; }; then
47241 eval "$as_ac_var=yes"
47242 else
47243 echo "$as_me: failed program was:" >&5
47244 sed 's/^/| /' conftest.$ac_ext >&5
47246 eval "$as_ac_var=no"
47248 rm -f conftest.err conftest.$ac_objext \
47249 conftest$ac_exeext conftest.$ac_ext
47251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47253 if test `eval echo '${'$as_ac_var'}'` = yes; then
47254 cat >>confdefs.h <<_ACEOF
47255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47256 _ACEOF
47259 done
47266 echo "$as_me:$LINENO: checking for finitel declaration" >&5
47267 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
47268 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
47269 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
47270 echo $ECHO_N "(cached) $ECHO_C" >&6
47271 else
47275 ac_ext=cc
47276 ac_cpp='$CXXCPP $CPPFLAGS'
47277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47281 cat >conftest.$ac_ext <<_ACEOF
47282 /* confdefs.h. */
47283 _ACEOF
47284 cat confdefs.h >>conftest.$ac_ext
47285 cat >>conftest.$ac_ext <<_ACEOF
47286 /* end confdefs.h. */
47287 #include <math.h>
47288 #ifdef HAVE_IEEEFP_H
47289 #include <ieeefp.h>
47290 #endif
47293 main ()
47295 finitel(0);
47297 return 0;
47299 _ACEOF
47300 rm -f conftest.$ac_objext
47301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47302 (eval $ac_compile) 2>conftest.er1
47303 ac_status=$?
47304 grep -v '^ *+' conftest.er1 >conftest.err
47305 rm -f conftest.er1
47306 cat conftest.err >&5
47307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308 (exit $ac_status); } &&
47309 { ac_try='test -z "$ac_cxx_werror_flag"
47310 || test ! -s conftest.err'
47311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312 (eval $ac_try) 2>&5
47313 ac_status=$?
47314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315 (exit $ac_status); }; } &&
47316 { ac_try='test -s conftest.$ac_objext'
47317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47318 (eval $ac_try) 2>&5
47319 ac_status=$?
47320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47321 (exit $ac_status); }; }; then
47322 glibcxx_cv_func_finitel_use=yes
47323 else
47324 echo "$as_me: failed program was:" >&5
47325 sed 's/^/| /' conftest.$ac_ext >&5
47327 glibcxx_cv_func_finitel_use=no
47329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47330 ac_ext=c
47331 ac_cpp='$CPP $CPPFLAGS'
47332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47340 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
47341 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
47343 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
47345 for ac_func in finitel
47347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47348 echo "$as_me:$LINENO: checking for $ac_func" >&5
47349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47350 if eval "test \"\${$as_ac_var+set}\" = set"; then
47351 echo $ECHO_N "(cached) $ECHO_C" >&6
47352 else
47353 if test x$gcc_no_link = xyes; then
47354 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47355 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47356 { (exit 1); exit 1; }; }
47358 cat >conftest.$ac_ext <<_ACEOF
47359 /* confdefs.h. */
47360 _ACEOF
47361 cat confdefs.h >>conftest.$ac_ext
47362 cat >>conftest.$ac_ext <<_ACEOF
47363 /* end confdefs.h. */
47364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47366 #define $ac_func innocuous_$ac_func
47368 /* System header to define __stub macros and hopefully few prototypes,
47369 which can conflict with char $ac_func (); below.
47370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47371 <limits.h> exists even on freestanding compilers. */
47373 #ifdef __STDC__
47374 # include <limits.h>
47375 #else
47376 # include <assert.h>
47377 #endif
47379 #undef $ac_func
47381 /* Override any gcc2 internal prototype to avoid an error. */
47382 #ifdef __cplusplus
47383 extern "C"
47385 #endif
47386 /* We use char because int might match the return type of a gcc2
47387 builtin and then its argument prototype would still apply. */
47388 char $ac_func ();
47389 /* The GNU C library defines this for functions which it implements
47390 to always fail with ENOSYS. Some functions are actually named
47391 something starting with __ and the normal name is an alias. */
47392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47393 choke me
47394 #else
47395 char (*f) () = $ac_func;
47396 #endif
47397 #ifdef __cplusplus
47399 #endif
47402 main ()
47404 return f != $ac_func;
47406 return 0;
47408 _ACEOF
47409 rm -f conftest.$ac_objext conftest$ac_exeext
47410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47411 (eval $ac_link) 2>conftest.er1
47412 ac_status=$?
47413 grep -v '^ *+' conftest.er1 >conftest.err
47414 rm -f conftest.er1
47415 cat conftest.err >&5
47416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417 (exit $ac_status); } &&
47418 { ac_try='test -z "$ac_c_werror_flag"
47419 || test ! -s conftest.err'
47420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47421 (eval $ac_try) 2>&5
47422 ac_status=$?
47423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47424 (exit $ac_status); }; } &&
47425 { ac_try='test -s conftest$ac_exeext'
47426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47427 (eval $ac_try) 2>&5
47428 ac_status=$?
47429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47430 (exit $ac_status); }; }; then
47431 eval "$as_ac_var=yes"
47432 else
47433 echo "$as_me: failed program was:" >&5
47434 sed 's/^/| /' conftest.$ac_ext >&5
47436 eval "$as_ac_var=no"
47438 rm -f conftest.err conftest.$ac_objext \
47439 conftest$ac_exeext conftest.$ac_ext
47441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47443 if test `eval echo '${'$as_ac_var'}'` = yes; then
47444 cat >>confdefs.h <<_ACEOF
47445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47446 _ACEOF
47449 done
47451 else
47453 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
47454 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
47455 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
47456 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
47457 echo $ECHO_N "(cached) $ECHO_C" >&6
47458 else
47462 ac_ext=cc
47463 ac_cpp='$CXXCPP $CPPFLAGS'
47464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47468 cat >conftest.$ac_ext <<_ACEOF
47469 /* confdefs.h. */
47470 _ACEOF
47471 cat confdefs.h >>conftest.$ac_ext
47472 cat >>conftest.$ac_ext <<_ACEOF
47473 /* end confdefs.h. */
47474 #include <math.h>
47475 #ifdef HAVE_IEEEFP_H
47476 #include <ieeefp.h>
47477 #endif
47480 main ()
47482 _finitel(0);
47484 return 0;
47486 _ACEOF
47487 rm -f conftest.$ac_objext
47488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47489 (eval $ac_compile) 2>conftest.er1
47490 ac_status=$?
47491 grep -v '^ *+' conftest.er1 >conftest.err
47492 rm -f conftest.er1
47493 cat conftest.err >&5
47494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47495 (exit $ac_status); } &&
47496 { ac_try='test -z "$ac_cxx_werror_flag"
47497 || test ! -s conftest.err'
47498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47499 (eval $ac_try) 2>&5
47500 ac_status=$?
47501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47502 (exit $ac_status); }; } &&
47503 { ac_try='test -s conftest.$ac_objext'
47504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47505 (eval $ac_try) 2>&5
47506 ac_status=$?
47507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47508 (exit $ac_status); }; }; then
47509 glibcxx_cv_func__finitel_use=yes
47510 else
47511 echo "$as_me: failed program was:" >&5
47512 sed 's/^/| /' conftest.$ac_ext >&5
47514 glibcxx_cv_func__finitel_use=no
47516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47517 ac_ext=c
47518 ac_cpp='$CPP $CPPFLAGS'
47519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47527 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
47528 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
47530 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
47532 for ac_func in _finitel
47534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47535 echo "$as_me:$LINENO: checking for $ac_func" >&5
47536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47537 if eval "test \"\${$as_ac_var+set}\" = set"; then
47538 echo $ECHO_N "(cached) $ECHO_C" >&6
47539 else
47540 if test x$gcc_no_link = xyes; then
47541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47543 { (exit 1); exit 1; }; }
47545 cat >conftest.$ac_ext <<_ACEOF
47546 /* confdefs.h. */
47547 _ACEOF
47548 cat confdefs.h >>conftest.$ac_ext
47549 cat >>conftest.$ac_ext <<_ACEOF
47550 /* end confdefs.h. */
47551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47553 #define $ac_func innocuous_$ac_func
47555 /* System header to define __stub macros and hopefully few prototypes,
47556 which can conflict with char $ac_func (); below.
47557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47558 <limits.h> exists even on freestanding compilers. */
47560 #ifdef __STDC__
47561 # include <limits.h>
47562 #else
47563 # include <assert.h>
47564 #endif
47566 #undef $ac_func
47568 /* Override any gcc2 internal prototype to avoid an error. */
47569 #ifdef __cplusplus
47570 extern "C"
47572 #endif
47573 /* We use char because int might match the return type of a gcc2
47574 builtin and then its argument prototype would still apply. */
47575 char $ac_func ();
47576 /* The GNU C library defines this for functions which it implements
47577 to always fail with ENOSYS. Some functions are actually named
47578 something starting with __ and the normal name is an alias. */
47579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47580 choke me
47581 #else
47582 char (*f) () = $ac_func;
47583 #endif
47584 #ifdef __cplusplus
47586 #endif
47589 main ()
47591 return f != $ac_func;
47593 return 0;
47595 _ACEOF
47596 rm -f conftest.$ac_objext conftest$ac_exeext
47597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47598 (eval $ac_link) 2>conftest.er1
47599 ac_status=$?
47600 grep -v '^ *+' conftest.er1 >conftest.err
47601 rm -f conftest.er1
47602 cat conftest.err >&5
47603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604 (exit $ac_status); } &&
47605 { ac_try='test -z "$ac_c_werror_flag"
47606 || test ! -s conftest.err'
47607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47608 (eval $ac_try) 2>&5
47609 ac_status=$?
47610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611 (exit $ac_status); }; } &&
47612 { ac_try='test -s conftest$ac_exeext'
47613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47614 (eval $ac_try) 2>&5
47615 ac_status=$?
47616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47617 (exit $ac_status); }; }; then
47618 eval "$as_ac_var=yes"
47619 else
47620 echo "$as_me: failed program was:" >&5
47621 sed 's/^/| /' conftest.$ac_ext >&5
47623 eval "$as_ac_var=no"
47625 rm -f conftest.err conftest.$ac_objext \
47626 conftest$ac_exeext conftest.$ac_ext
47628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47630 if test `eval echo '${'$as_ac_var'}'` = yes; then
47631 cat >>confdefs.h <<_ACEOF
47632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47633 _ACEOF
47636 done
47644 echo "$as_me:$LINENO: checking for _float trig functions" >&5
47645 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47646 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47647 echo $ECHO_N "(cached) $ECHO_C" >&6
47648 else
47652 ac_ext=cc
47653 ac_cpp='$CXXCPP $CPPFLAGS'
47654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47658 cat >conftest.$ac_ext <<_ACEOF
47659 /* confdefs.h. */
47660 _ACEOF
47661 cat confdefs.h >>conftest.$ac_ext
47662 cat >>conftest.$ac_ext <<_ACEOF
47663 /* end confdefs.h. */
47664 #include <math.h>
47666 main ()
47668 `for x in _acosf _asinf _atanf \
47669 _cosf _sinf _tanf \
47670 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47672 return 0;
47674 _ACEOF
47675 rm -f conftest.$ac_objext
47676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47677 (eval $ac_compile) 2>conftest.er1
47678 ac_status=$?
47679 grep -v '^ *+' conftest.er1 >conftest.err
47680 rm -f conftest.er1
47681 cat conftest.err >&5
47682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47683 (exit $ac_status); } &&
47684 { ac_try='test -z "$ac_cxx_werror_flag"
47685 || test ! -s conftest.err'
47686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47687 (eval $ac_try) 2>&5
47688 ac_status=$?
47689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47690 (exit $ac_status); }; } &&
47691 { ac_try='test -s conftest.$ac_objext'
47692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47693 (eval $ac_try) 2>&5
47694 ac_status=$?
47695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47696 (exit $ac_status); }; }; then
47697 glibcxx_cv_func__float_trig_use=yes
47698 else
47699 echo "$as_me: failed program was:" >&5
47700 sed 's/^/| /' conftest.$ac_ext >&5
47702 glibcxx_cv_func__float_trig_use=no
47704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47705 ac_ext=c
47706 ac_cpp='$CPP $CPPFLAGS'
47707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47713 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47714 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47715 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47725 for ac_func in _acosf _asinf _atanf \
47726 _cosf _sinf _tanf \
47727 _coshf _sinhf _tanhf
47729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47730 echo "$as_me:$LINENO: checking for $ac_func" >&5
47731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47732 if eval "test \"\${$as_ac_var+set}\" = set"; then
47733 echo $ECHO_N "(cached) $ECHO_C" >&6
47734 else
47735 if test x$gcc_no_link = xyes; then
47736 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47738 { (exit 1); exit 1; }; }
47740 cat >conftest.$ac_ext <<_ACEOF
47741 /* confdefs.h. */
47742 _ACEOF
47743 cat confdefs.h >>conftest.$ac_ext
47744 cat >>conftest.$ac_ext <<_ACEOF
47745 /* end confdefs.h. */
47746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47748 #define $ac_func innocuous_$ac_func
47750 /* System header to define __stub macros and hopefully few prototypes,
47751 which can conflict with char $ac_func (); below.
47752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47753 <limits.h> exists even on freestanding compilers. */
47755 #ifdef __STDC__
47756 # include <limits.h>
47757 #else
47758 # include <assert.h>
47759 #endif
47761 #undef $ac_func
47763 /* Override any gcc2 internal prototype to avoid an error. */
47764 #ifdef __cplusplus
47765 extern "C"
47767 #endif
47768 /* We use char because int might match the return type of a gcc2
47769 builtin and then its argument prototype would still apply. */
47770 char $ac_func ();
47771 /* The GNU C library defines this for functions which it implements
47772 to always fail with ENOSYS. Some functions are actually named
47773 something starting with __ and the normal name is an alias. */
47774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47775 choke me
47776 #else
47777 char (*f) () = $ac_func;
47778 #endif
47779 #ifdef __cplusplus
47781 #endif
47784 main ()
47786 return f != $ac_func;
47788 return 0;
47790 _ACEOF
47791 rm -f conftest.$ac_objext conftest$ac_exeext
47792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47793 (eval $ac_link) 2>conftest.er1
47794 ac_status=$?
47795 grep -v '^ *+' conftest.er1 >conftest.err
47796 rm -f conftest.er1
47797 cat conftest.err >&5
47798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47799 (exit $ac_status); } &&
47800 { ac_try='test -z "$ac_c_werror_flag"
47801 || test ! -s conftest.err'
47802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47803 (eval $ac_try) 2>&5
47804 ac_status=$?
47805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47806 (exit $ac_status); }; } &&
47807 { ac_try='test -s conftest$ac_exeext'
47808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47809 (eval $ac_try) 2>&5
47810 ac_status=$?
47811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47812 (exit $ac_status); }; }; then
47813 eval "$as_ac_var=yes"
47814 else
47815 echo "$as_me: failed program was:" >&5
47816 sed 's/^/| /' conftest.$ac_ext >&5
47818 eval "$as_ac_var=no"
47820 rm -f conftest.err conftest.$ac_objext \
47821 conftest$ac_exeext conftest.$ac_ext
47823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47825 if test `eval echo '${'$as_ac_var'}'` = yes; then
47826 cat >>confdefs.h <<_ACEOF
47827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47828 _ACEOF
47831 done
47836 echo "$as_me:$LINENO: checking for _float round functions" >&5
47837 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47838 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47839 echo $ECHO_N "(cached) $ECHO_C" >&6
47840 else
47844 ac_ext=cc
47845 ac_cpp='$CXXCPP $CPPFLAGS'
47846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47850 cat >conftest.$ac_ext <<_ACEOF
47851 /* confdefs.h. */
47852 _ACEOF
47853 cat confdefs.h >>conftest.$ac_ext
47854 cat >>conftest.$ac_ext <<_ACEOF
47855 /* end confdefs.h. */
47856 #include <math.h>
47858 main ()
47860 `for x in _ceilf _floorf; do echo "$x (0);"; done`
47862 return 0;
47864 _ACEOF
47865 rm -f conftest.$ac_objext
47866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47867 (eval $ac_compile) 2>conftest.er1
47868 ac_status=$?
47869 grep -v '^ *+' conftest.er1 >conftest.err
47870 rm -f conftest.er1
47871 cat conftest.err >&5
47872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47873 (exit $ac_status); } &&
47874 { ac_try='test -z "$ac_cxx_werror_flag"
47875 || test ! -s conftest.err'
47876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47877 (eval $ac_try) 2>&5
47878 ac_status=$?
47879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47880 (exit $ac_status); }; } &&
47881 { ac_try='test -s conftest.$ac_objext'
47882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47883 (eval $ac_try) 2>&5
47884 ac_status=$?
47885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886 (exit $ac_status); }; }; then
47887 glibcxx_cv_func__float_round_use=yes
47888 else
47889 echo "$as_me: failed program was:" >&5
47890 sed 's/^/| /' conftest.$ac_ext >&5
47892 glibcxx_cv_func__float_round_use=no
47894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47895 ac_ext=c
47896 ac_cpp='$CPP $CPPFLAGS'
47897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47903 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
47904 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
47905 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
47908 for ac_func in _ceilf _floorf
47910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47911 echo "$as_me:$LINENO: checking for $ac_func" >&5
47912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47913 if eval "test \"\${$as_ac_var+set}\" = set"; then
47914 echo $ECHO_N "(cached) $ECHO_C" >&6
47915 else
47916 if test x$gcc_no_link = xyes; then
47917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47919 { (exit 1); exit 1; }; }
47921 cat >conftest.$ac_ext <<_ACEOF
47922 /* confdefs.h. */
47923 _ACEOF
47924 cat confdefs.h >>conftest.$ac_ext
47925 cat >>conftest.$ac_ext <<_ACEOF
47926 /* end confdefs.h. */
47927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47929 #define $ac_func innocuous_$ac_func
47931 /* System header to define __stub macros and hopefully few prototypes,
47932 which can conflict with char $ac_func (); below.
47933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47934 <limits.h> exists even on freestanding compilers. */
47936 #ifdef __STDC__
47937 # include <limits.h>
47938 #else
47939 # include <assert.h>
47940 #endif
47942 #undef $ac_func
47944 /* Override any gcc2 internal prototype to avoid an error. */
47945 #ifdef __cplusplus
47946 extern "C"
47948 #endif
47949 /* We use char because int might match the return type of a gcc2
47950 builtin and then its argument prototype would still apply. */
47951 char $ac_func ();
47952 /* The GNU C library defines this for functions which it implements
47953 to always fail with ENOSYS. Some functions are actually named
47954 something starting with __ and the normal name is an alias. */
47955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47956 choke me
47957 #else
47958 char (*f) () = $ac_func;
47959 #endif
47960 #ifdef __cplusplus
47962 #endif
47965 main ()
47967 return f != $ac_func;
47969 return 0;
47971 _ACEOF
47972 rm -f conftest.$ac_objext conftest$ac_exeext
47973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47974 (eval $ac_link) 2>conftest.er1
47975 ac_status=$?
47976 grep -v '^ *+' conftest.er1 >conftest.err
47977 rm -f conftest.er1
47978 cat conftest.err >&5
47979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47980 (exit $ac_status); } &&
47981 { ac_try='test -z "$ac_c_werror_flag"
47982 || test ! -s conftest.err'
47983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47984 (eval $ac_try) 2>&5
47985 ac_status=$?
47986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47987 (exit $ac_status); }; } &&
47988 { ac_try='test -s conftest$ac_exeext'
47989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47990 (eval $ac_try) 2>&5
47991 ac_status=$?
47992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47993 (exit $ac_status); }; }; then
47994 eval "$as_ac_var=yes"
47995 else
47996 echo "$as_me: failed program was:" >&5
47997 sed 's/^/| /' conftest.$ac_ext >&5
47999 eval "$as_ac_var=no"
48001 rm -f conftest.err conftest.$ac_objext \
48002 conftest$ac_exeext conftest.$ac_ext
48004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48006 if test `eval echo '${'$as_ac_var'}'` = yes; then
48007 cat >>confdefs.h <<_ACEOF
48008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48009 _ACEOF
48012 done
48018 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
48019 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
48020 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
48021 echo $ECHO_N "(cached) $ECHO_C" >&6
48022 else
48026 ac_ext=cc
48027 ac_cpp='$CXXCPP $CPPFLAGS'
48028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48032 cat >conftest.$ac_ext <<_ACEOF
48033 /* confdefs.h. */
48034 _ACEOF
48035 cat confdefs.h >>conftest.$ac_ext
48036 cat >>conftest.$ac_ext <<_ACEOF
48037 /* end confdefs.h. */
48038 #include <math.h>
48040 main ()
48042 `for x in _acosl _asinl _atanl \
48043 _cosl _sinl _tanl \
48044 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
48046 return 0;
48048 _ACEOF
48049 rm -f conftest.$ac_objext
48050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48051 (eval $ac_compile) 2>conftest.er1
48052 ac_status=$?
48053 grep -v '^ *+' conftest.er1 >conftest.err
48054 rm -f conftest.er1
48055 cat conftest.err >&5
48056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48057 (exit $ac_status); } &&
48058 { ac_try='test -z "$ac_cxx_werror_flag"
48059 || test ! -s conftest.err'
48060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48061 (eval $ac_try) 2>&5
48062 ac_status=$?
48063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48064 (exit $ac_status); }; } &&
48065 { ac_try='test -s conftest.$ac_objext'
48066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48067 (eval $ac_try) 2>&5
48068 ac_status=$?
48069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48070 (exit $ac_status); }; }; then
48071 glibcxx_cv_func__long_double_trig_use=yes
48072 else
48073 echo "$as_me: failed program was:" >&5
48074 sed 's/^/| /' conftest.$ac_ext >&5
48076 glibcxx_cv_func__long_double_trig_use=no
48078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48079 ac_ext=c
48080 ac_cpp='$CPP $CPPFLAGS'
48081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48087 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
48088 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
48089 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
48099 for ac_func in _acosl _asinl _atanl \
48100 _cosl _sinl _tanl \
48101 _coshl _sinhl _tanhl
48103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48104 echo "$as_me:$LINENO: checking for $ac_func" >&5
48105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48106 if eval "test \"\${$as_ac_var+set}\" = set"; then
48107 echo $ECHO_N "(cached) $ECHO_C" >&6
48108 else
48109 if test x$gcc_no_link = xyes; then
48110 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48112 { (exit 1); exit 1; }; }
48114 cat >conftest.$ac_ext <<_ACEOF
48115 /* confdefs.h. */
48116 _ACEOF
48117 cat confdefs.h >>conftest.$ac_ext
48118 cat >>conftest.$ac_ext <<_ACEOF
48119 /* end confdefs.h. */
48120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48122 #define $ac_func innocuous_$ac_func
48124 /* System header to define __stub macros and hopefully few prototypes,
48125 which can conflict with char $ac_func (); below.
48126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48127 <limits.h> exists even on freestanding compilers. */
48129 #ifdef __STDC__
48130 # include <limits.h>
48131 #else
48132 # include <assert.h>
48133 #endif
48135 #undef $ac_func
48137 /* Override any gcc2 internal prototype to avoid an error. */
48138 #ifdef __cplusplus
48139 extern "C"
48141 #endif
48142 /* We use char because int might match the return type of a gcc2
48143 builtin and then its argument prototype would still apply. */
48144 char $ac_func ();
48145 /* The GNU C library defines this for functions which it implements
48146 to always fail with ENOSYS. Some functions are actually named
48147 something starting with __ and the normal name is an alias. */
48148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48149 choke me
48150 #else
48151 char (*f) () = $ac_func;
48152 #endif
48153 #ifdef __cplusplus
48155 #endif
48158 main ()
48160 return f != $ac_func;
48162 return 0;
48164 _ACEOF
48165 rm -f conftest.$ac_objext conftest$ac_exeext
48166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48167 (eval $ac_link) 2>conftest.er1
48168 ac_status=$?
48169 grep -v '^ *+' conftest.er1 >conftest.err
48170 rm -f conftest.er1
48171 cat conftest.err >&5
48172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48173 (exit $ac_status); } &&
48174 { ac_try='test -z "$ac_c_werror_flag"
48175 || test ! -s conftest.err'
48176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48177 (eval $ac_try) 2>&5
48178 ac_status=$?
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); }; } &&
48181 { ac_try='test -s conftest$ac_exeext'
48182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48183 (eval $ac_try) 2>&5
48184 ac_status=$?
48185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48186 (exit $ac_status); }; }; then
48187 eval "$as_ac_var=yes"
48188 else
48189 echo "$as_me: failed program was:" >&5
48190 sed 's/^/| /' conftest.$ac_ext >&5
48192 eval "$as_ac_var=no"
48194 rm -f conftest.err conftest.$ac_objext \
48195 conftest$ac_exeext conftest.$ac_ext
48197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48199 if test `eval echo '${'$as_ac_var'}'` = yes; then
48200 cat >>confdefs.h <<_ACEOF
48201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48202 _ACEOF
48205 done
48210 echo "$as_me:$LINENO: checking for _long double round functions" >&5
48211 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
48212 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
48213 echo $ECHO_N "(cached) $ECHO_C" >&6
48214 else
48218 ac_ext=cc
48219 ac_cpp='$CXXCPP $CPPFLAGS'
48220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48224 cat >conftest.$ac_ext <<_ACEOF
48225 /* confdefs.h. */
48226 _ACEOF
48227 cat confdefs.h >>conftest.$ac_ext
48228 cat >>conftest.$ac_ext <<_ACEOF
48229 /* end confdefs.h. */
48230 #include <math.h>
48232 main ()
48234 `for x in _ceill _floorl; do echo "$x (0);"; done`
48236 return 0;
48238 _ACEOF
48239 rm -f conftest.$ac_objext
48240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48241 (eval $ac_compile) 2>conftest.er1
48242 ac_status=$?
48243 grep -v '^ *+' conftest.er1 >conftest.err
48244 rm -f conftest.er1
48245 cat conftest.err >&5
48246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48247 (exit $ac_status); } &&
48248 { ac_try='test -z "$ac_cxx_werror_flag"
48249 || test ! -s conftest.err'
48250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48251 (eval $ac_try) 2>&5
48252 ac_status=$?
48253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48254 (exit $ac_status); }; } &&
48255 { ac_try='test -s conftest.$ac_objext'
48256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48257 (eval $ac_try) 2>&5
48258 ac_status=$?
48259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48260 (exit $ac_status); }; }; then
48261 glibcxx_cv_func__long_double_round_use=yes
48262 else
48263 echo "$as_me: failed program was:" >&5
48264 sed 's/^/| /' conftest.$ac_ext >&5
48266 glibcxx_cv_func__long_double_round_use=no
48268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48269 ac_ext=c
48270 ac_cpp='$CPP $CPPFLAGS'
48271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48277 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
48278 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
48279 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
48282 for ac_func in _ceill _floorl
48284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48285 echo "$as_me:$LINENO: checking for $ac_func" >&5
48286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48287 if eval "test \"\${$as_ac_var+set}\" = set"; then
48288 echo $ECHO_N "(cached) $ECHO_C" >&6
48289 else
48290 if test x$gcc_no_link = xyes; then
48291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48293 { (exit 1); exit 1; }; }
48295 cat >conftest.$ac_ext <<_ACEOF
48296 /* confdefs.h. */
48297 _ACEOF
48298 cat confdefs.h >>conftest.$ac_ext
48299 cat >>conftest.$ac_ext <<_ACEOF
48300 /* end confdefs.h. */
48301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48303 #define $ac_func innocuous_$ac_func
48305 /* System header to define __stub macros and hopefully few prototypes,
48306 which can conflict with char $ac_func (); below.
48307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48308 <limits.h> exists even on freestanding compilers. */
48310 #ifdef __STDC__
48311 # include <limits.h>
48312 #else
48313 # include <assert.h>
48314 #endif
48316 #undef $ac_func
48318 /* Override any gcc2 internal prototype to avoid an error. */
48319 #ifdef __cplusplus
48320 extern "C"
48322 #endif
48323 /* We use char because int might match the return type of a gcc2
48324 builtin and then its argument prototype would still apply. */
48325 char $ac_func ();
48326 /* The GNU C library defines this for functions which it implements
48327 to always fail with ENOSYS. Some functions are actually named
48328 something starting with __ and the normal name is an alias. */
48329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48330 choke me
48331 #else
48332 char (*f) () = $ac_func;
48333 #endif
48334 #ifdef __cplusplus
48336 #endif
48339 main ()
48341 return f != $ac_func;
48343 return 0;
48345 _ACEOF
48346 rm -f conftest.$ac_objext conftest$ac_exeext
48347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48348 (eval $ac_link) 2>conftest.er1
48349 ac_status=$?
48350 grep -v '^ *+' conftest.er1 >conftest.err
48351 rm -f conftest.er1
48352 cat conftest.err >&5
48353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48354 (exit $ac_status); } &&
48355 { ac_try='test -z "$ac_c_werror_flag"
48356 || test ! -s conftest.err'
48357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48358 (eval $ac_try) 2>&5
48359 ac_status=$?
48360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48361 (exit $ac_status); }; } &&
48362 { ac_try='test -s conftest$ac_exeext'
48363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48364 (eval $ac_try) 2>&5
48365 ac_status=$?
48366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48367 (exit $ac_status); }; }; then
48368 eval "$as_ac_var=yes"
48369 else
48370 echo "$as_me: failed program was:" >&5
48371 sed 's/^/| /' conftest.$ac_ext >&5
48373 eval "$as_ac_var=no"
48375 rm -f conftest.err conftest.$ac_objext \
48376 conftest$ac_exeext conftest.$ac_ext
48378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48380 if test `eval echo '${'$as_ac_var'}'` = yes; then
48381 cat >>confdefs.h <<_ACEOF
48382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48383 _ACEOF
48386 done
48391 LIBS="$ac_save_LIBS"
48392 CXXFLAGS="$ac_save_CXXFLAGS"
48396 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
48397 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
48398 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
48399 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
48400 echo $ECHO_N "(cached) $ECHO_C" >&6
48401 else
48405 ac_ext=cc
48406 ac_cpp='$CXXCPP $CPPFLAGS'
48407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48411 cat >conftest.$ac_ext <<_ACEOF
48412 /* confdefs.h. */
48413 _ACEOF
48414 cat confdefs.h >>conftest.$ac_ext
48415 cat >>conftest.$ac_ext <<_ACEOF
48416 /* end confdefs.h. */
48417 #include <math.h>
48419 main ()
48421 __builtin_abs(0);
48423 return 0;
48425 _ACEOF
48426 rm -f conftest.$ac_objext
48427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48428 (eval $ac_compile) 2>conftest.er1
48429 ac_status=$?
48430 grep -v '^ *+' conftest.er1 >conftest.err
48431 rm -f conftest.er1
48432 cat conftest.err >&5
48433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48434 (exit $ac_status); } &&
48435 { ac_try='test -z "$ac_cxx_werror_flag"
48436 || test ! -s conftest.err'
48437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48438 (eval $ac_try) 2>&5
48439 ac_status=$?
48440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48441 (exit $ac_status); }; } &&
48442 { ac_try='test -s conftest.$ac_objext'
48443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48444 (eval $ac_try) 2>&5
48445 ac_status=$?
48446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48447 (exit $ac_status); }; }; then
48448 glibcxx_cv_func___builtin_abs_use=yes
48449 else
48450 echo "$as_me: failed program was:" >&5
48451 sed 's/^/| /' conftest.$ac_ext >&5
48453 glibcxx_cv_func___builtin_abs_use=no
48455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48456 ac_ext=c
48457 ac_cpp='$CPP $CPPFLAGS'
48458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48466 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
48467 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
48468 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
48469 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
48470 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
48471 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
48472 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
48473 echo $ECHO_N "(cached) $ECHO_C" >&6
48474 else
48476 if test x$gcc_no_link = xyes; then
48477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48479 { (exit 1); exit 1; }; }
48481 cat >conftest.$ac_ext <<_ACEOF
48482 /* confdefs.h. */
48483 _ACEOF
48484 cat confdefs.h >>conftest.$ac_ext
48485 cat >>conftest.$ac_ext <<_ACEOF
48486 /* end confdefs.h. */
48487 #include <math.h>
48489 main ()
48491 __builtin_abs(0);
48493 return 0;
48495 _ACEOF
48496 rm -f conftest.$ac_objext conftest$ac_exeext
48497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48498 (eval $ac_link) 2>conftest.er1
48499 ac_status=$?
48500 grep -v '^ *+' conftest.er1 >conftest.err
48501 rm -f conftest.er1
48502 cat conftest.err >&5
48503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48504 (exit $ac_status); } &&
48505 { ac_try='test -z "$ac_c_werror_flag"
48506 || test ! -s conftest.err'
48507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48508 (eval $ac_try) 2>&5
48509 ac_status=$?
48510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48511 (exit $ac_status); }; } &&
48512 { ac_try='test -s conftest$ac_exeext'
48513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48514 (eval $ac_try) 2>&5
48515 ac_status=$?
48516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48517 (exit $ac_status); }; }; then
48518 glibcxx_cv_func___builtin_abs_link=yes
48519 else
48520 echo "$as_me: failed program was:" >&5
48521 sed 's/^/| /' conftest.$ac_ext >&5
48523 glibcxx_cv_func___builtin_abs_link=no
48525 rm -f conftest.err conftest.$ac_objext \
48526 conftest$ac_exeext conftest.$ac_ext
48531 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
48532 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
48533 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
48534 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48535 cat >>confdefs.h <<_ACEOF
48536 #define ${ac_tr_func} 1
48537 _ACEOF
48543 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
48544 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
48545 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
48546 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
48547 echo $ECHO_N "(cached) $ECHO_C" >&6
48548 else
48552 ac_ext=cc
48553 ac_cpp='$CXXCPP $CPPFLAGS'
48554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48558 cat >conftest.$ac_ext <<_ACEOF
48559 /* confdefs.h. */
48560 _ACEOF
48561 cat confdefs.h >>conftest.$ac_ext
48562 cat >>conftest.$ac_ext <<_ACEOF
48563 /* end confdefs.h. */
48564 #include <math.h>
48566 main ()
48568 __builtin_fabsf(0);
48570 return 0;
48572 _ACEOF
48573 rm -f conftest.$ac_objext
48574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48575 (eval $ac_compile) 2>conftest.er1
48576 ac_status=$?
48577 grep -v '^ *+' conftest.er1 >conftest.err
48578 rm -f conftest.er1
48579 cat conftest.err >&5
48580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48581 (exit $ac_status); } &&
48582 { ac_try='test -z "$ac_cxx_werror_flag"
48583 || test ! -s conftest.err'
48584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48585 (eval $ac_try) 2>&5
48586 ac_status=$?
48587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48588 (exit $ac_status); }; } &&
48589 { ac_try='test -s conftest.$ac_objext'
48590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48591 (eval $ac_try) 2>&5
48592 ac_status=$?
48593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48594 (exit $ac_status); }; }; then
48595 glibcxx_cv_func___builtin_fabsf_use=yes
48596 else
48597 echo "$as_me: failed program was:" >&5
48598 sed 's/^/| /' conftest.$ac_ext >&5
48600 glibcxx_cv_func___builtin_fabsf_use=no
48602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48603 ac_ext=c
48604 ac_cpp='$CPP $CPPFLAGS'
48605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48613 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48614 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48615 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48616 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48617 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48618 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48619 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48620 echo $ECHO_N "(cached) $ECHO_C" >&6
48621 else
48623 if test x$gcc_no_link = xyes; then
48624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48626 { (exit 1); exit 1; }; }
48628 cat >conftest.$ac_ext <<_ACEOF
48629 /* confdefs.h. */
48630 _ACEOF
48631 cat confdefs.h >>conftest.$ac_ext
48632 cat >>conftest.$ac_ext <<_ACEOF
48633 /* end confdefs.h. */
48634 #include <math.h>
48636 main ()
48638 __builtin_fabsf(0);
48640 return 0;
48642 _ACEOF
48643 rm -f conftest.$ac_objext conftest$ac_exeext
48644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48645 (eval $ac_link) 2>conftest.er1
48646 ac_status=$?
48647 grep -v '^ *+' conftest.er1 >conftest.err
48648 rm -f conftest.er1
48649 cat conftest.err >&5
48650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48651 (exit $ac_status); } &&
48652 { ac_try='test -z "$ac_c_werror_flag"
48653 || test ! -s conftest.err'
48654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48655 (eval $ac_try) 2>&5
48656 ac_status=$?
48657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48658 (exit $ac_status); }; } &&
48659 { ac_try='test -s conftest$ac_exeext'
48660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48661 (eval $ac_try) 2>&5
48662 ac_status=$?
48663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48664 (exit $ac_status); }; }; then
48665 glibcxx_cv_func___builtin_fabsf_link=yes
48666 else
48667 echo "$as_me: failed program was:" >&5
48668 sed 's/^/| /' conftest.$ac_ext >&5
48670 glibcxx_cv_func___builtin_fabsf_link=no
48672 rm -f conftest.err conftest.$ac_objext \
48673 conftest$ac_exeext conftest.$ac_ext
48678 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48679 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48680 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48681 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48682 cat >>confdefs.h <<_ACEOF
48683 #define ${ac_tr_func} 1
48684 _ACEOF
48690 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48691 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48692 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48693 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48694 echo $ECHO_N "(cached) $ECHO_C" >&6
48695 else
48699 ac_ext=cc
48700 ac_cpp='$CXXCPP $CPPFLAGS'
48701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48705 cat >conftest.$ac_ext <<_ACEOF
48706 /* confdefs.h. */
48707 _ACEOF
48708 cat confdefs.h >>conftest.$ac_ext
48709 cat >>conftest.$ac_ext <<_ACEOF
48710 /* end confdefs.h. */
48711 #include <math.h>
48713 main ()
48715 __builtin_fabs(0);
48717 return 0;
48719 _ACEOF
48720 rm -f conftest.$ac_objext
48721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48722 (eval $ac_compile) 2>conftest.er1
48723 ac_status=$?
48724 grep -v '^ *+' conftest.er1 >conftest.err
48725 rm -f conftest.er1
48726 cat conftest.err >&5
48727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48728 (exit $ac_status); } &&
48729 { ac_try='test -z "$ac_cxx_werror_flag"
48730 || test ! -s conftest.err'
48731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48732 (eval $ac_try) 2>&5
48733 ac_status=$?
48734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48735 (exit $ac_status); }; } &&
48736 { ac_try='test -s conftest.$ac_objext'
48737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48738 (eval $ac_try) 2>&5
48739 ac_status=$?
48740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48741 (exit $ac_status); }; }; then
48742 glibcxx_cv_func___builtin_fabs_use=yes
48743 else
48744 echo "$as_me: failed program was:" >&5
48745 sed 's/^/| /' conftest.$ac_ext >&5
48747 glibcxx_cv_func___builtin_fabs_use=no
48749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48750 ac_ext=c
48751 ac_cpp='$CPP $CPPFLAGS'
48752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48760 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48761 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48762 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48763 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48764 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48765 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48766 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48767 echo $ECHO_N "(cached) $ECHO_C" >&6
48768 else
48770 if test x$gcc_no_link = xyes; then
48771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48773 { (exit 1); exit 1; }; }
48775 cat >conftest.$ac_ext <<_ACEOF
48776 /* confdefs.h. */
48777 _ACEOF
48778 cat confdefs.h >>conftest.$ac_ext
48779 cat >>conftest.$ac_ext <<_ACEOF
48780 /* end confdefs.h. */
48781 #include <math.h>
48783 main ()
48785 __builtin_fabs(0);
48787 return 0;
48789 _ACEOF
48790 rm -f conftest.$ac_objext conftest$ac_exeext
48791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48792 (eval $ac_link) 2>conftest.er1
48793 ac_status=$?
48794 grep -v '^ *+' conftest.er1 >conftest.err
48795 rm -f conftest.er1
48796 cat conftest.err >&5
48797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48798 (exit $ac_status); } &&
48799 { ac_try='test -z "$ac_c_werror_flag"
48800 || test ! -s conftest.err'
48801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48802 (eval $ac_try) 2>&5
48803 ac_status=$?
48804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48805 (exit $ac_status); }; } &&
48806 { ac_try='test -s conftest$ac_exeext'
48807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48808 (eval $ac_try) 2>&5
48809 ac_status=$?
48810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48811 (exit $ac_status); }; }; then
48812 glibcxx_cv_func___builtin_fabs_link=yes
48813 else
48814 echo "$as_me: failed program was:" >&5
48815 sed 's/^/| /' conftest.$ac_ext >&5
48817 glibcxx_cv_func___builtin_fabs_link=no
48819 rm -f conftest.err conftest.$ac_objext \
48820 conftest$ac_exeext conftest.$ac_ext
48825 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48826 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48827 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48828 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48829 cat >>confdefs.h <<_ACEOF
48830 #define ${ac_tr_func} 1
48831 _ACEOF
48837 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48838 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48839 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48840 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48841 echo $ECHO_N "(cached) $ECHO_C" >&6
48842 else
48846 ac_ext=cc
48847 ac_cpp='$CXXCPP $CPPFLAGS'
48848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48852 cat >conftest.$ac_ext <<_ACEOF
48853 /* confdefs.h. */
48854 _ACEOF
48855 cat confdefs.h >>conftest.$ac_ext
48856 cat >>conftest.$ac_ext <<_ACEOF
48857 /* end confdefs.h. */
48858 #include <math.h>
48860 main ()
48862 __builtin_fabsl(0);
48864 return 0;
48866 _ACEOF
48867 rm -f conftest.$ac_objext
48868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48869 (eval $ac_compile) 2>conftest.er1
48870 ac_status=$?
48871 grep -v '^ *+' conftest.er1 >conftest.err
48872 rm -f conftest.er1
48873 cat conftest.err >&5
48874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48875 (exit $ac_status); } &&
48876 { ac_try='test -z "$ac_cxx_werror_flag"
48877 || test ! -s conftest.err'
48878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48879 (eval $ac_try) 2>&5
48880 ac_status=$?
48881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48882 (exit $ac_status); }; } &&
48883 { ac_try='test -s conftest.$ac_objext'
48884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48885 (eval $ac_try) 2>&5
48886 ac_status=$?
48887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48888 (exit $ac_status); }; }; then
48889 glibcxx_cv_func___builtin_fabsl_use=yes
48890 else
48891 echo "$as_me: failed program was:" >&5
48892 sed 's/^/| /' conftest.$ac_ext >&5
48894 glibcxx_cv_func___builtin_fabsl_use=no
48896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48897 ac_ext=c
48898 ac_cpp='$CPP $CPPFLAGS'
48899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48907 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
48908 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
48909 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
48910 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
48911 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
48912 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
48913 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
48914 echo $ECHO_N "(cached) $ECHO_C" >&6
48915 else
48917 if test x$gcc_no_link = xyes; then
48918 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48919 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48920 { (exit 1); exit 1; }; }
48922 cat >conftest.$ac_ext <<_ACEOF
48923 /* confdefs.h. */
48924 _ACEOF
48925 cat confdefs.h >>conftest.$ac_ext
48926 cat >>conftest.$ac_ext <<_ACEOF
48927 /* end confdefs.h. */
48928 #include <math.h>
48930 main ()
48932 __builtin_fabsl(0);
48934 return 0;
48936 _ACEOF
48937 rm -f conftest.$ac_objext conftest$ac_exeext
48938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48939 (eval $ac_link) 2>conftest.er1
48940 ac_status=$?
48941 grep -v '^ *+' conftest.er1 >conftest.err
48942 rm -f conftest.er1
48943 cat conftest.err >&5
48944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945 (exit $ac_status); } &&
48946 { ac_try='test -z "$ac_c_werror_flag"
48947 || test ! -s conftest.err'
48948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48949 (eval $ac_try) 2>&5
48950 ac_status=$?
48951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48952 (exit $ac_status); }; } &&
48953 { ac_try='test -s conftest$ac_exeext'
48954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48955 (eval $ac_try) 2>&5
48956 ac_status=$?
48957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48958 (exit $ac_status); }; }; then
48959 glibcxx_cv_func___builtin_fabsl_link=yes
48960 else
48961 echo "$as_me: failed program was:" >&5
48962 sed 's/^/| /' conftest.$ac_ext >&5
48964 glibcxx_cv_func___builtin_fabsl_link=no
48966 rm -f conftest.err conftest.$ac_objext \
48967 conftest$ac_exeext conftest.$ac_ext
48972 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
48973 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
48974 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
48975 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48976 cat >>confdefs.h <<_ACEOF
48977 #define ${ac_tr_func} 1
48978 _ACEOF
48984 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
48985 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
48986 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
48987 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
48988 echo $ECHO_N "(cached) $ECHO_C" >&6
48989 else
48993 ac_ext=cc
48994 ac_cpp='$CXXCPP $CPPFLAGS'
48995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48999 cat >conftest.$ac_ext <<_ACEOF
49000 /* confdefs.h. */
49001 _ACEOF
49002 cat confdefs.h >>conftest.$ac_ext
49003 cat >>conftest.$ac_ext <<_ACEOF
49004 /* end confdefs.h. */
49005 #include <math.h>
49007 main ()
49009 __builtin_labs(0);
49011 return 0;
49013 _ACEOF
49014 rm -f conftest.$ac_objext
49015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49016 (eval $ac_compile) 2>conftest.er1
49017 ac_status=$?
49018 grep -v '^ *+' conftest.er1 >conftest.err
49019 rm -f conftest.er1
49020 cat conftest.err >&5
49021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49022 (exit $ac_status); } &&
49023 { ac_try='test -z "$ac_cxx_werror_flag"
49024 || test ! -s conftest.err'
49025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49026 (eval $ac_try) 2>&5
49027 ac_status=$?
49028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49029 (exit $ac_status); }; } &&
49030 { ac_try='test -s conftest.$ac_objext'
49031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49032 (eval $ac_try) 2>&5
49033 ac_status=$?
49034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49035 (exit $ac_status); }; }; then
49036 glibcxx_cv_func___builtin_labs_use=yes
49037 else
49038 echo "$as_me: failed program was:" >&5
49039 sed 's/^/| /' conftest.$ac_ext >&5
49041 glibcxx_cv_func___builtin_labs_use=no
49043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49044 ac_ext=c
49045 ac_cpp='$CPP $CPPFLAGS'
49046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49054 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
49055 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
49056 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
49057 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
49058 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
49059 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
49060 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
49061 echo $ECHO_N "(cached) $ECHO_C" >&6
49062 else
49064 if test x$gcc_no_link = xyes; then
49065 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49067 { (exit 1); exit 1; }; }
49069 cat >conftest.$ac_ext <<_ACEOF
49070 /* confdefs.h. */
49071 _ACEOF
49072 cat confdefs.h >>conftest.$ac_ext
49073 cat >>conftest.$ac_ext <<_ACEOF
49074 /* end confdefs.h. */
49075 #include <math.h>
49077 main ()
49079 __builtin_labs(0);
49081 return 0;
49083 _ACEOF
49084 rm -f conftest.$ac_objext conftest$ac_exeext
49085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49086 (eval $ac_link) 2>conftest.er1
49087 ac_status=$?
49088 grep -v '^ *+' conftest.er1 >conftest.err
49089 rm -f conftest.er1
49090 cat conftest.err >&5
49091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092 (exit $ac_status); } &&
49093 { ac_try='test -z "$ac_c_werror_flag"
49094 || test ! -s conftest.err'
49095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49096 (eval $ac_try) 2>&5
49097 ac_status=$?
49098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49099 (exit $ac_status); }; } &&
49100 { ac_try='test -s conftest$ac_exeext'
49101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49102 (eval $ac_try) 2>&5
49103 ac_status=$?
49104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49105 (exit $ac_status); }; }; then
49106 glibcxx_cv_func___builtin_labs_link=yes
49107 else
49108 echo "$as_me: failed program was:" >&5
49109 sed 's/^/| /' conftest.$ac_ext >&5
49111 glibcxx_cv_func___builtin_labs_link=no
49113 rm -f conftest.err conftest.$ac_objext \
49114 conftest$ac_exeext conftest.$ac_ext
49119 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
49120 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
49121 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
49122 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49123 cat >>confdefs.h <<_ACEOF
49124 #define ${ac_tr_func} 1
49125 _ACEOF
49132 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
49133 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
49134 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
49135 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
49136 echo $ECHO_N "(cached) $ECHO_C" >&6
49137 else
49141 ac_ext=cc
49142 ac_cpp='$CXXCPP $CPPFLAGS'
49143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49147 cat >conftest.$ac_ext <<_ACEOF
49148 /* confdefs.h. */
49149 _ACEOF
49150 cat confdefs.h >>conftest.$ac_ext
49151 cat >>conftest.$ac_ext <<_ACEOF
49152 /* end confdefs.h. */
49153 #include <math.h>
49155 main ()
49157 __builtin_sqrtf(0);
49159 return 0;
49161 _ACEOF
49162 rm -f conftest.$ac_objext
49163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49164 (eval $ac_compile) 2>conftest.er1
49165 ac_status=$?
49166 grep -v '^ *+' conftest.er1 >conftest.err
49167 rm -f conftest.er1
49168 cat conftest.err >&5
49169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170 (exit $ac_status); } &&
49171 { ac_try='test -z "$ac_cxx_werror_flag"
49172 || test ! -s conftest.err'
49173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49174 (eval $ac_try) 2>&5
49175 ac_status=$?
49176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177 (exit $ac_status); }; } &&
49178 { ac_try='test -s conftest.$ac_objext'
49179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49180 (eval $ac_try) 2>&5
49181 ac_status=$?
49182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49183 (exit $ac_status); }; }; then
49184 glibcxx_cv_func___builtin_sqrtf_use=yes
49185 else
49186 echo "$as_me: failed program was:" >&5
49187 sed 's/^/| /' conftest.$ac_ext >&5
49189 glibcxx_cv_func___builtin_sqrtf_use=no
49191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
49202 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
49203 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
49204 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
49205 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
49206 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
49207 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
49208 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
49209 echo $ECHO_N "(cached) $ECHO_C" >&6
49210 else
49212 if test x$gcc_no_link = xyes; then
49213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49215 { (exit 1); exit 1; }; }
49217 cat >conftest.$ac_ext <<_ACEOF
49218 /* confdefs.h. */
49219 _ACEOF
49220 cat confdefs.h >>conftest.$ac_ext
49221 cat >>conftest.$ac_ext <<_ACEOF
49222 /* end confdefs.h. */
49223 #include <math.h>
49225 main ()
49227 __builtin_sqrtf(0);
49229 return 0;
49231 _ACEOF
49232 rm -f conftest.$ac_objext conftest$ac_exeext
49233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49234 (eval $ac_link) 2>conftest.er1
49235 ac_status=$?
49236 grep -v '^ *+' conftest.er1 >conftest.err
49237 rm -f conftest.er1
49238 cat conftest.err >&5
49239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49240 (exit $ac_status); } &&
49241 { ac_try='test -z "$ac_c_werror_flag"
49242 || test ! -s conftest.err'
49243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49244 (eval $ac_try) 2>&5
49245 ac_status=$?
49246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49247 (exit $ac_status); }; } &&
49248 { ac_try='test -s conftest$ac_exeext'
49249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49250 (eval $ac_try) 2>&5
49251 ac_status=$?
49252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49253 (exit $ac_status); }; }; then
49254 glibcxx_cv_func___builtin_sqrtf_link=yes
49255 else
49256 echo "$as_me: failed program was:" >&5
49257 sed 's/^/| /' conftest.$ac_ext >&5
49259 glibcxx_cv_func___builtin_sqrtf_link=no
49261 rm -f conftest.err conftest.$ac_objext \
49262 conftest$ac_exeext conftest.$ac_ext
49267 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
49268 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
49269 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
49270 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49271 cat >>confdefs.h <<_ACEOF
49272 #define ${ac_tr_func} 1
49273 _ACEOF
49279 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
49280 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
49281 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
49282 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
49283 echo $ECHO_N "(cached) $ECHO_C" >&6
49284 else
49288 ac_ext=cc
49289 ac_cpp='$CXXCPP $CPPFLAGS'
49290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49294 cat >conftest.$ac_ext <<_ACEOF
49295 /* confdefs.h. */
49296 _ACEOF
49297 cat confdefs.h >>conftest.$ac_ext
49298 cat >>conftest.$ac_ext <<_ACEOF
49299 /* end confdefs.h. */
49300 #include <math.h>
49302 main ()
49304 __builtin_sqrt(0);
49306 return 0;
49308 _ACEOF
49309 rm -f conftest.$ac_objext
49310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49311 (eval $ac_compile) 2>conftest.er1
49312 ac_status=$?
49313 grep -v '^ *+' conftest.er1 >conftest.err
49314 rm -f conftest.er1
49315 cat conftest.err >&5
49316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49317 (exit $ac_status); } &&
49318 { ac_try='test -z "$ac_cxx_werror_flag"
49319 || test ! -s conftest.err'
49320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49321 (eval $ac_try) 2>&5
49322 ac_status=$?
49323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49324 (exit $ac_status); }; } &&
49325 { ac_try='test -s conftest.$ac_objext'
49326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49327 (eval $ac_try) 2>&5
49328 ac_status=$?
49329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49330 (exit $ac_status); }; }; then
49331 glibcxx_cv_func___builtin_sqrt_use=yes
49332 else
49333 echo "$as_me: failed program was:" >&5
49334 sed 's/^/| /' conftest.$ac_ext >&5
49336 glibcxx_cv_func___builtin_sqrt_use=no
49338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49339 ac_ext=c
49340 ac_cpp='$CPP $CPPFLAGS'
49341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49349 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
49350 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
49351 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
49352 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
49353 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
49354 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
49355 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
49356 echo $ECHO_N "(cached) $ECHO_C" >&6
49357 else
49359 if test x$gcc_no_link = xyes; then
49360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49362 { (exit 1); exit 1; }; }
49364 cat >conftest.$ac_ext <<_ACEOF
49365 /* confdefs.h. */
49366 _ACEOF
49367 cat confdefs.h >>conftest.$ac_ext
49368 cat >>conftest.$ac_ext <<_ACEOF
49369 /* end confdefs.h. */
49370 #include <math.h>
49372 main ()
49374 __builtin_sqrt(0);
49376 return 0;
49378 _ACEOF
49379 rm -f conftest.$ac_objext conftest$ac_exeext
49380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49381 (eval $ac_link) 2>conftest.er1
49382 ac_status=$?
49383 grep -v '^ *+' conftest.er1 >conftest.err
49384 rm -f conftest.er1
49385 cat conftest.err >&5
49386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387 (exit $ac_status); } &&
49388 { ac_try='test -z "$ac_c_werror_flag"
49389 || test ! -s conftest.err'
49390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49391 (eval $ac_try) 2>&5
49392 ac_status=$?
49393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49394 (exit $ac_status); }; } &&
49395 { ac_try='test -s conftest$ac_exeext'
49396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49397 (eval $ac_try) 2>&5
49398 ac_status=$?
49399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49400 (exit $ac_status); }; }; then
49401 glibcxx_cv_func___builtin_sqrt_link=yes
49402 else
49403 echo "$as_me: failed program was:" >&5
49404 sed 's/^/| /' conftest.$ac_ext >&5
49406 glibcxx_cv_func___builtin_sqrt_link=no
49408 rm -f conftest.err conftest.$ac_objext \
49409 conftest$ac_exeext conftest.$ac_ext
49414 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
49415 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
49416 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
49417 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49418 cat >>confdefs.h <<_ACEOF
49419 #define ${ac_tr_func} 1
49420 _ACEOF
49426 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
49427 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
49428 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
49429 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
49430 echo $ECHO_N "(cached) $ECHO_C" >&6
49431 else
49435 ac_ext=cc
49436 ac_cpp='$CXXCPP $CPPFLAGS'
49437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49441 cat >conftest.$ac_ext <<_ACEOF
49442 /* confdefs.h. */
49443 _ACEOF
49444 cat confdefs.h >>conftest.$ac_ext
49445 cat >>conftest.$ac_ext <<_ACEOF
49446 /* end confdefs.h. */
49447 #include <math.h>
49449 main ()
49451 __builtin_sqrtl(0);
49453 return 0;
49455 _ACEOF
49456 rm -f conftest.$ac_objext
49457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49458 (eval $ac_compile) 2>conftest.er1
49459 ac_status=$?
49460 grep -v '^ *+' conftest.er1 >conftest.err
49461 rm -f conftest.er1
49462 cat conftest.err >&5
49463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49464 (exit $ac_status); } &&
49465 { ac_try='test -z "$ac_cxx_werror_flag"
49466 || test ! -s conftest.err'
49467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49468 (eval $ac_try) 2>&5
49469 ac_status=$?
49470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49471 (exit $ac_status); }; } &&
49472 { ac_try='test -s conftest.$ac_objext'
49473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49474 (eval $ac_try) 2>&5
49475 ac_status=$?
49476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49477 (exit $ac_status); }; }; then
49478 glibcxx_cv_func___builtin_sqrtl_use=yes
49479 else
49480 echo "$as_me: failed program was:" >&5
49481 sed 's/^/| /' conftest.$ac_ext >&5
49483 glibcxx_cv_func___builtin_sqrtl_use=no
49485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49486 ac_ext=c
49487 ac_cpp='$CPP $CPPFLAGS'
49488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49496 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
49497 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
49498 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
49499 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
49500 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
49501 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
49502 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
49503 echo $ECHO_N "(cached) $ECHO_C" >&6
49504 else
49506 if test x$gcc_no_link = xyes; then
49507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49509 { (exit 1); exit 1; }; }
49511 cat >conftest.$ac_ext <<_ACEOF
49512 /* confdefs.h. */
49513 _ACEOF
49514 cat confdefs.h >>conftest.$ac_ext
49515 cat >>conftest.$ac_ext <<_ACEOF
49516 /* end confdefs.h. */
49517 #include <math.h>
49519 main ()
49521 __builtin_sqrtl(0);
49523 return 0;
49525 _ACEOF
49526 rm -f conftest.$ac_objext conftest$ac_exeext
49527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49528 (eval $ac_link) 2>conftest.er1
49529 ac_status=$?
49530 grep -v '^ *+' conftest.er1 >conftest.err
49531 rm -f conftest.er1
49532 cat conftest.err >&5
49533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49534 (exit $ac_status); } &&
49535 { ac_try='test -z "$ac_c_werror_flag"
49536 || test ! -s conftest.err'
49537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49538 (eval $ac_try) 2>&5
49539 ac_status=$?
49540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49541 (exit $ac_status); }; } &&
49542 { ac_try='test -s conftest$ac_exeext'
49543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49544 (eval $ac_try) 2>&5
49545 ac_status=$?
49546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49547 (exit $ac_status); }; }; then
49548 glibcxx_cv_func___builtin_sqrtl_link=yes
49549 else
49550 echo "$as_me: failed program was:" >&5
49551 sed 's/^/| /' conftest.$ac_ext >&5
49553 glibcxx_cv_func___builtin_sqrtl_link=no
49555 rm -f conftest.err conftest.$ac_objext \
49556 conftest$ac_exeext conftest.$ac_ext
49561 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
49562 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
49563 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
49564 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49565 cat >>confdefs.h <<_ACEOF
49566 #define ${ac_tr_func} 1
49567 _ACEOF
49574 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
49575 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
49576 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
49577 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
49578 echo $ECHO_N "(cached) $ECHO_C" >&6
49579 else
49583 ac_ext=cc
49584 ac_cpp='$CXXCPP $CPPFLAGS'
49585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49589 cat >conftest.$ac_ext <<_ACEOF
49590 /* confdefs.h. */
49591 _ACEOF
49592 cat confdefs.h >>conftest.$ac_ext
49593 cat >>conftest.$ac_ext <<_ACEOF
49594 /* end confdefs.h. */
49595 #include <math.h>
49597 main ()
49599 __builtin_sinf(0);
49601 return 0;
49603 _ACEOF
49604 rm -f conftest.$ac_objext
49605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49606 (eval $ac_compile) 2>conftest.er1
49607 ac_status=$?
49608 grep -v '^ *+' conftest.er1 >conftest.err
49609 rm -f conftest.er1
49610 cat conftest.err >&5
49611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612 (exit $ac_status); } &&
49613 { ac_try='test -z "$ac_cxx_werror_flag"
49614 || test ! -s conftest.err'
49615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49616 (eval $ac_try) 2>&5
49617 ac_status=$?
49618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49619 (exit $ac_status); }; } &&
49620 { ac_try='test -s conftest.$ac_objext'
49621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49622 (eval $ac_try) 2>&5
49623 ac_status=$?
49624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49625 (exit $ac_status); }; }; then
49626 glibcxx_cv_func___builtin_sinf_use=yes
49627 else
49628 echo "$as_me: failed program was:" >&5
49629 sed 's/^/| /' conftest.$ac_ext >&5
49631 glibcxx_cv_func___builtin_sinf_use=no
49633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49634 ac_ext=c
49635 ac_cpp='$CPP $CPPFLAGS'
49636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49644 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49645 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49646 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49647 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49648 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49649 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49650 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49651 echo $ECHO_N "(cached) $ECHO_C" >&6
49652 else
49654 if test x$gcc_no_link = xyes; then
49655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49657 { (exit 1); exit 1; }; }
49659 cat >conftest.$ac_ext <<_ACEOF
49660 /* confdefs.h. */
49661 _ACEOF
49662 cat confdefs.h >>conftest.$ac_ext
49663 cat >>conftest.$ac_ext <<_ACEOF
49664 /* end confdefs.h. */
49665 #include <math.h>
49667 main ()
49669 __builtin_sinf(0);
49671 return 0;
49673 _ACEOF
49674 rm -f conftest.$ac_objext conftest$ac_exeext
49675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49676 (eval $ac_link) 2>conftest.er1
49677 ac_status=$?
49678 grep -v '^ *+' conftest.er1 >conftest.err
49679 rm -f conftest.er1
49680 cat conftest.err >&5
49681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49682 (exit $ac_status); } &&
49683 { ac_try='test -z "$ac_c_werror_flag"
49684 || test ! -s conftest.err'
49685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49686 (eval $ac_try) 2>&5
49687 ac_status=$?
49688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49689 (exit $ac_status); }; } &&
49690 { ac_try='test -s conftest$ac_exeext'
49691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49692 (eval $ac_try) 2>&5
49693 ac_status=$?
49694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49695 (exit $ac_status); }; }; then
49696 glibcxx_cv_func___builtin_sinf_link=yes
49697 else
49698 echo "$as_me: failed program was:" >&5
49699 sed 's/^/| /' conftest.$ac_ext >&5
49701 glibcxx_cv_func___builtin_sinf_link=no
49703 rm -f conftest.err conftest.$ac_objext \
49704 conftest$ac_exeext conftest.$ac_ext
49709 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49710 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49711 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49712 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49713 cat >>confdefs.h <<_ACEOF
49714 #define ${ac_tr_func} 1
49715 _ACEOF
49721 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49722 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49723 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49724 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49725 echo $ECHO_N "(cached) $ECHO_C" >&6
49726 else
49730 ac_ext=cc
49731 ac_cpp='$CXXCPP $CPPFLAGS'
49732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49736 cat >conftest.$ac_ext <<_ACEOF
49737 /* confdefs.h. */
49738 _ACEOF
49739 cat confdefs.h >>conftest.$ac_ext
49740 cat >>conftest.$ac_ext <<_ACEOF
49741 /* end confdefs.h. */
49742 #include <math.h>
49744 main ()
49746 __builtin_sin(0);
49748 return 0;
49750 _ACEOF
49751 rm -f conftest.$ac_objext
49752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49753 (eval $ac_compile) 2>conftest.er1
49754 ac_status=$?
49755 grep -v '^ *+' conftest.er1 >conftest.err
49756 rm -f conftest.er1
49757 cat conftest.err >&5
49758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759 (exit $ac_status); } &&
49760 { ac_try='test -z "$ac_cxx_werror_flag"
49761 || test ! -s conftest.err'
49762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49763 (eval $ac_try) 2>&5
49764 ac_status=$?
49765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49766 (exit $ac_status); }; } &&
49767 { ac_try='test -s conftest.$ac_objext'
49768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49769 (eval $ac_try) 2>&5
49770 ac_status=$?
49771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49772 (exit $ac_status); }; }; then
49773 glibcxx_cv_func___builtin_sin_use=yes
49774 else
49775 echo "$as_me: failed program was:" >&5
49776 sed 's/^/| /' conftest.$ac_ext >&5
49778 glibcxx_cv_func___builtin_sin_use=no
49780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49781 ac_ext=c
49782 ac_cpp='$CPP $CPPFLAGS'
49783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49791 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49792 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49793 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49794 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49795 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49796 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49797 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49798 echo $ECHO_N "(cached) $ECHO_C" >&6
49799 else
49801 if test x$gcc_no_link = xyes; then
49802 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49804 { (exit 1); exit 1; }; }
49806 cat >conftest.$ac_ext <<_ACEOF
49807 /* confdefs.h. */
49808 _ACEOF
49809 cat confdefs.h >>conftest.$ac_ext
49810 cat >>conftest.$ac_ext <<_ACEOF
49811 /* end confdefs.h. */
49812 #include <math.h>
49814 main ()
49816 __builtin_sin(0);
49818 return 0;
49820 _ACEOF
49821 rm -f conftest.$ac_objext conftest$ac_exeext
49822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49823 (eval $ac_link) 2>conftest.er1
49824 ac_status=$?
49825 grep -v '^ *+' conftest.er1 >conftest.err
49826 rm -f conftest.er1
49827 cat conftest.err >&5
49828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49829 (exit $ac_status); } &&
49830 { ac_try='test -z "$ac_c_werror_flag"
49831 || test ! -s conftest.err'
49832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49833 (eval $ac_try) 2>&5
49834 ac_status=$?
49835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49836 (exit $ac_status); }; } &&
49837 { ac_try='test -s conftest$ac_exeext'
49838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49839 (eval $ac_try) 2>&5
49840 ac_status=$?
49841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49842 (exit $ac_status); }; }; then
49843 glibcxx_cv_func___builtin_sin_link=yes
49844 else
49845 echo "$as_me: failed program was:" >&5
49846 sed 's/^/| /' conftest.$ac_ext >&5
49848 glibcxx_cv_func___builtin_sin_link=no
49850 rm -f conftest.err conftest.$ac_objext \
49851 conftest$ac_exeext conftest.$ac_ext
49856 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
49857 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
49858 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
49859 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49860 cat >>confdefs.h <<_ACEOF
49861 #define ${ac_tr_func} 1
49862 _ACEOF
49868 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
49869 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
49870 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
49871 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
49872 echo $ECHO_N "(cached) $ECHO_C" >&6
49873 else
49877 ac_ext=cc
49878 ac_cpp='$CXXCPP $CPPFLAGS'
49879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49883 cat >conftest.$ac_ext <<_ACEOF
49884 /* confdefs.h. */
49885 _ACEOF
49886 cat confdefs.h >>conftest.$ac_ext
49887 cat >>conftest.$ac_ext <<_ACEOF
49888 /* end confdefs.h. */
49889 #include <math.h>
49891 main ()
49893 __builtin_sinl(0);
49895 return 0;
49897 _ACEOF
49898 rm -f conftest.$ac_objext
49899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49900 (eval $ac_compile) 2>conftest.er1
49901 ac_status=$?
49902 grep -v '^ *+' conftest.er1 >conftest.err
49903 rm -f conftest.er1
49904 cat conftest.err >&5
49905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49906 (exit $ac_status); } &&
49907 { ac_try='test -z "$ac_cxx_werror_flag"
49908 || test ! -s conftest.err'
49909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49910 (eval $ac_try) 2>&5
49911 ac_status=$?
49912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49913 (exit $ac_status); }; } &&
49914 { ac_try='test -s conftest.$ac_objext'
49915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49916 (eval $ac_try) 2>&5
49917 ac_status=$?
49918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49919 (exit $ac_status); }; }; then
49920 glibcxx_cv_func___builtin_sinl_use=yes
49921 else
49922 echo "$as_me: failed program was:" >&5
49923 sed 's/^/| /' conftest.$ac_ext >&5
49925 glibcxx_cv_func___builtin_sinl_use=no
49927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49928 ac_ext=c
49929 ac_cpp='$CPP $CPPFLAGS'
49930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49938 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
49939 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
49940 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
49941 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
49942 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
49943 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
49944 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
49945 echo $ECHO_N "(cached) $ECHO_C" >&6
49946 else
49948 if test x$gcc_no_link = xyes; then
49949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49951 { (exit 1); exit 1; }; }
49953 cat >conftest.$ac_ext <<_ACEOF
49954 /* confdefs.h. */
49955 _ACEOF
49956 cat confdefs.h >>conftest.$ac_ext
49957 cat >>conftest.$ac_ext <<_ACEOF
49958 /* end confdefs.h. */
49959 #include <math.h>
49961 main ()
49963 __builtin_sinl(0);
49965 return 0;
49967 _ACEOF
49968 rm -f conftest.$ac_objext conftest$ac_exeext
49969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49970 (eval $ac_link) 2>conftest.er1
49971 ac_status=$?
49972 grep -v '^ *+' conftest.er1 >conftest.err
49973 rm -f conftest.er1
49974 cat conftest.err >&5
49975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49976 (exit $ac_status); } &&
49977 { ac_try='test -z "$ac_c_werror_flag"
49978 || test ! -s conftest.err'
49979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49980 (eval $ac_try) 2>&5
49981 ac_status=$?
49982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983 (exit $ac_status); }; } &&
49984 { ac_try='test -s conftest$ac_exeext'
49985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49986 (eval $ac_try) 2>&5
49987 ac_status=$?
49988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49989 (exit $ac_status); }; }; then
49990 glibcxx_cv_func___builtin_sinl_link=yes
49991 else
49992 echo "$as_me: failed program was:" >&5
49993 sed 's/^/| /' conftest.$ac_ext >&5
49995 glibcxx_cv_func___builtin_sinl_link=no
49997 rm -f conftest.err conftest.$ac_objext \
49998 conftest$ac_exeext conftest.$ac_ext
50003 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
50004 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
50005 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
50006 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50007 cat >>confdefs.h <<_ACEOF
50008 #define ${ac_tr_func} 1
50009 _ACEOF
50016 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
50017 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
50018 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
50019 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
50020 echo $ECHO_N "(cached) $ECHO_C" >&6
50021 else
50025 ac_ext=cc
50026 ac_cpp='$CXXCPP $CPPFLAGS'
50027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50031 cat >conftest.$ac_ext <<_ACEOF
50032 /* confdefs.h. */
50033 _ACEOF
50034 cat confdefs.h >>conftest.$ac_ext
50035 cat >>conftest.$ac_ext <<_ACEOF
50036 /* end confdefs.h. */
50037 #include <math.h>
50039 main ()
50041 __builtin_cosf(0);
50043 return 0;
50045 _ACEOF
50046 rm -f conftest.$ac_objext
50047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50048 (eval $ac_compile) 2>conftest.er1
50049 ac_status=$?
50050 grep -v '^ *+' conftest.er1 >conftest.err
50051 rm -f conftest.er1
50052 cat conftest.err >&5
50053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50054 (exit $ac_status); } &&
50055 { ac_try='test -z "$ac_cxx_werror_flag"
50056 || test ! -s conftest.err'
50057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50058 (eval $ac_try) 2>&5
50059 ac_status=$?
50060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50061 (exit $ac_status); }; } &&
50062 { ac_try='test -s conftest.$ac_objext'
50063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50064 (eval $ac_try) 2>&5
50065 ac_status=$?
50066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50067 (exit $ac_status); }; }; then
50068 glibcxx_cv_func___builtin_cosf_use=yes
50069 else
50070 echo "$as_me: failed program was:" >&5
50071 sed 's/^/| /' conftest.$ac_ext >&5
50073 glibcxx_cv_func___builtin_cosf_use=no
50075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50076 ac_ext=c
50077 ac_cpp='$CPP $CPPFLAGS'
50078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50086 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
50087 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
50088 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
50089 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
50090 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
50091 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
50092 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
50093 echo $ECHO_N "(cached) $ECHO_C" >&6
50094 else
50096 if test x$gcc_no_link = xyes; then
50097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50099 { (exit 1); exit 1; }; }
50101 cat >conftest.$ac_ext <<_ACEOF
50102 /* confdefs.h. */
50103 _ACEOF
50104 cat confdefs.h >>conftest.$ac_ext
50105 cat >>conftest.$ac_ext <<_ACEOF
50106 /* end confdefs.h. */
50107 #include <math.h>
50109 main ()
50111 __builtin_cosf(0);
50113 return 0;
50115 _ACEOF
50116 rm -f conftest.$ac_objext conftest$ac_exeext
50117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50118 (eval $ac_link) 2>conftest.er1
50119 ac_status=$?
50120 grep -v '^ *+' conftest.er1 >conftest.err
50121 rm -f conftest.er1
50122 cat conftest.err >&5
50123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50124 (exit $ac_status); } &&
50125 { ac_try='test -z "$ac_c_werror_flag"
50126 || test ! -s conftest.err'
50127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50128 (eval $ac_try) 2>&5
50129 ac_status=$?
50130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50131 (exit $ac_status); }; } &&
50132 { ac_try='test -s conftest$ac_exeext'
50133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50134 (eval $ac_try) 2>&5
50135 ac_status=$?
50136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50137 (exit $ac_status); }; }; then
50138 glibcxx_cv_func___builtin_cosf_link=yes
50139 else
50140 echo "$as_me: failed program was:" >&5
50141 sed 's/^/| /' conftest.$ac_ext >&5
50143 glibcxx_cv_func___builtin_cosf_link=no
50145 rm -f conftest.err conftest.$ac_objext \
50146 conftest$ac_exeext conftest.$ac_ext
50151 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
50152 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
50153 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
50154 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50155 cat >>confdefs.h <<_ACEOF
50156 #define ${ac_tr_func} 1
50157 _ACEOF
50163 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
50164 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
50165 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
50166 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
50167 echo $ECHO_N "(cached) $ECHO_C" >&6
50168 else
50172 ac_ext=cc
50173 ac_cpp='$CXXCPP $CPPFLAGS'
50174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50178 cat >conftest.$ac_ext <<_ACEOF
50179 /* confdefs.h. */
50180 _ACEOF
50181 cat confdefs.h >>conftest.$ac_ext
50182 cat >>conftest.$ac_ext <<_ACEOF
50183 /* end confdefs.h. */
50184 #include <math.h>
50186 main ()
50188 __builtin_cos(0);
50190 return 0;
50192 _ACEOF
50193 rm -f conftest.$ac_objext
50194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50195 (eval $ac_compile) 2>conftest.er1
50196 ac_status=$?
50197 grep -v '^ *+' conftest.er1 >conftest.err
50198 rm -f conftest.er1
50199 cat conftest.err >&5
50200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50201 (exit $ac_status); } &&
50202 { ac_try='test -z "$ac_cxx_werror_flag"
50203 || test ! -s conftest.err'
50204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50205 (eval $ac_try) 2>&5
50206 ac_status=$?
50207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50208 (exit $ac_status); }; } &&
50209 { ac_try='test -s conftest.$ac_objext'
50210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50211 (eval $ac_try) 2>&5
50212 ac_status=$?
50213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50214 (exit $ac_status); }; }; then
50215 glibcxx_cv_func___builtin_cos_use=yes
50216 else
50217 echo "$as_me: failed program was:" >&5
50218 sed 's/^/| /' conftest.$ac_ext >&5
50220 glibcxx_cv_func___builtin_cos_use=no
50222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50223 ac_ext=c
50224 ac_cpp='$CPP $CPPFLAGS'
50225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50233 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
50234 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
50235 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
50236 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
50237 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
50238 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
50239 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
50240 echo $ECHO_N "(cached) $ECHO_C" >&6
50241 else
50243 if test x$gcc_no_link = xyes; then
50244 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50246 { (exit 1); exit 1; }; }
50248 cat >conftest.$ac_ext <<_ACEOF
50249 /* confdefs.h. */
50250 _ACEOF
50251 cat confdefs.h >>conftest.$ac_ext
50252 cat >>conftest.$ac_ext <<_ACEOF
50253 /* end confdefs.h. */
50254 #include <math.h>
50256 main ()
50258 __builtin_cos(0);
50260 return 0;
50262 _ACEOF
50263 rm -f conftest.$ac_objext conftest$ac_exeext
50264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50265 (eval $ac_link) 2>conftest.er1
50266 ac_status=$?
50267 grep -v '^ *+' conftest.er1 >conftest.err
50268 rm -f conftest.er1
50269 cat conftest.err >&5
50270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50271 (exit $ac_status); } &&
50272 { ac_try='test -z "$ac_c_werror_flag"
50273 || test ! -s conftest.err'
50274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50275 (eval $ac_try) 2>&5
50276 ac_status=$?
50277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50278 (exit $ac_status); }; } &&
50279 { ac_try='test -s conftest$ac_exeext'
50280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50281 (eval $ac_try) 2>&5
50282 ac_status=$?
50283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50284 (exit $ac_status); }; }; then
50285 glibcxx_cv_func___builtin_cos_link=yes
50286 else
50287 echo "$as_me: failed program was:" >&5
50288 sed 's/^/| /' conftest.$ac_ext >&5
50290 glibcxx_cv_func___builtin_cos_link=no
50292 rm -f conftest.err conftest.$ac_objext \
50293 conftest$ac_exeext conftest.$ac_ext
50298 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
50299 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
50300 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
50301 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50302 cat >>confdefs.h <<_ACEOF
50303 #define ${ac_tr_func} 1
50304 _ACEOF
50310 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
50311 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
50312 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
50313 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
50314 echo $ECHO_N "(cached) $ECHO_C" >&6
50315 else
50319 ac_ext=cc
50320 ac_cpp='$CXXCPP $CPPFLAGS'
50321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50325 cat >conftest.$ac_ext <<_ACEOF
50326 /* confdefs.h. */
50327 _ACEOF
50328 cat confdefs.h >>conftest.$ac_ext
50329 cat >>conftest.$ac_ext <<_ACEOF
50330 /* end confdefs.h. */
50331 #include <math.h>
50333 main ()
50335 __builtin_cosl(0);
50337 return 0;
50339 _ACEOF
50340 rm -f conftest.$ac_objext
50341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50342 (eval $ac_compile) 2>conftest.er1
50343 ac_status=$?
50344 grep -v '^ *+' conftest.er1 >conftest.err
50345 rm -f conftest.er1
50346 cat conftest.err >&5
50347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50348 (exit $ac_status); } &&
50349 { ac_try='test -z "$ac_cxx_werror_flag"
50350 || test ! -s conftest.err'
50351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50352 (eval $ac_try) 2>&5
50353 ac_status=$?
50354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50355 (exit $ac_status); }; } &&
50356 { ac_try='test -s conftest.$ac_objext'
50357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50358 (eval $ac_try) 2>&5
50359 ac_status=$?
50360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50361 (exit $ac_status); }; }; then
50362 glibcxx_cv_func___builtin_cosl_use=yes
50363 else
50364 echo "$as_me: failed program was:" >&5
50365 sed 's/^/| /' conftest.$ac_ext >&5
50367 glibcxx_cv_func___builtin_cosl_use=no
50369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50370 ac_ext=c
50371 ac_cpp='$CPP $CPPFLAGS'
50372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50380 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
50381 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
50382 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
50383 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
50384 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
50385 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
50386 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
50387 echo $ECHO_N "(cached) $ECHO_C" >&6
50388 else
50390 if test x$gcc_no_link = xyes; then
50391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50393 { (exit 1); exit 1; }; }
50395 cat >conftest.$ac_ext <<_ACEOF
50396 /* confdefs.h. */
50397 _ACEOF
50398 cat confdefs.h >>conftest.$ac_ext
50399 cat >>conftest.$ac_ext <<_ACEOF
50400 /* end confdefs.h. */
50401 #include <math.h>
50403 main ()
50405 __builtin_cosl(0);
50407 return 0;
50409 _ACEOF
50410 rm -f conftest.$ac_objext conftest$ac_exeext
50411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50412 (eval $ac_link) 2>conftest.er1
50413 ac_status=$?
50414 grep -v '^ *+' conftest.er1 >conftest.err
50415 rm -f conftest.er1
50416 cat conftest.err >&5
50417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50418 (exit $ac_status); } &&
50419 { ac_try='test -z "$ac_c_werror_flag"
50420 || test ! -s conftest.err'
50421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50422 (eval $ac_try) 2>&5
50423 ac_status=$?
50424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50425 (exit $ac_status); }; } &&
50426 { ac_try='test -s conftest$ac_exeext'
50427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50428 (eval $ac_try) 2>&5
50429 ac_status=$?
50430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50431 (exit $ac_status); }; }; then
50432 glibcxx_cv_func___builtin_cosl_link=yes
50433 else
50434 echo "$as_me: failed program was:" >&5
50435 sed 's/^/| /' conftest.$ac_ext >&5
50437 glibcxx_cv_func___builtin_cosl_link=no
50439 rm -f conftest.err conftest.$ac_objext \
50440 conftest$ac_exeext conftest.$ac_ext
50445 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
50446 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
50447 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
50448 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50449 cat >>confdefs.h <<_ACEOF
50450 #define ${ac_tr_func} 1
50451 _ACEOF
50457 dummyvar=no
50458 if test x$dummyvar = x"yes"; then
50459 cat >>confdefs.h <<\_ACEOF
50460 #define HAVE___BUILTIN_ABS 1
50461 _ACEOF
50463 cat >>confdefs.h <<\_ACEOF
50464 #define HAVE___BUILTIN_LABS 1
50465 _ACEOF
50467 cat >>confdefs.h <<\_ACEOF
50468 #define HAVE___BUILTIN_COS 1
50469 _ACEOF
50471 cat >>confdefs.h <<\_ACEOF
50472 #define HAVE___BUILTIN_COSF 1
50473 _ACEOF
50475 cat >>confdefs.h <<\_ACEOF
50476 #define HAVE___BUILTIN_COSL 1
50477 _ACEOF
50479 cat >>confdefs.h <<\_ACEOF
50480 #define HAVE___BUILTIN_FABS 1
50481 _ACEOF
50483 cat >>confdefs.h <<\_ACEOF
50484 #define HAVE___BUILTIN_FABSF 1
50485 _ACEOF
50487 cat >>confdefs.h <<\_ACEOF
50488 #define HAVE___BUILTIN_FABSL 1
50489 _ACEOF
50491 cat >>confdefs.h <<\_ACEOF
50492 #define HAVE___BUILTIN_SIN 1
50493 _ACEOF
50495 cat >>confdefs.h <<\_ACEOF
50496 #define HAVE___BUILTIN_SINF 1
50497 _ACEOF
50499 cat >>confdefs.h <<\_ACEOF
50500 #define HAVE___BUILTIN_SINL 1
50501 _ACEOF
50503 cat >>confdefs.h <<\_ACEOF
50504 #define HAVE___BUILTIN_SQRT 1
50505 _ACEOF
50507 cat >>confdefs.h <<\_ACEOF
50508 #define HAVE___BUILTIN_SQRTF 1
50509 _ACEOF
50511 cat >>confdefs.h <<\_ACEOF
50512 #define HAVE___BUILTIN_SQRTL 1
50513 _ACEOF
50519 echo "$as_me:$LINENO: checking for main in -lm" >&5
50520 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50521 if test "${ac_cv_lib_m_main+set}" = set; then
50522 echo $ECHO_N "(cached) $ECHO_C" >&6
50523 else
50524 ac_check_lib_save_LIBS=$LIBS
50525 LIBS="-lm $LIBS"
50526 if test x$gcc_no_link = xyes; then
50527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50529 { (exit 1); exit 1; }; }
50531 cat >conftest.$ac_ext <<_ACEOF
50532 /* confdefs.h. */
50533 _ACEOF
50534 cat confdefs.h >>conftest.$ac_ext
50535 cat >>conftest.$ac_ext <<_ACEOF
50536 /* end confdefs.h. */
50540 main ()
50542 main ();
50544 return 0;
50546 _ACEOF
50547 rm -f conftest.$ac_objext conftest$ac_exeext
50548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50549 (eval $ac_link) 2>conftest.er1
50550 ac_status=$?
50551 grep -v '^ *+' conftest.er1 >conftest.err
50552 rm -f conftest.er1
50553 cat conftest.err >&5
50554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50555 (exit $ac_status); } &&
50556 { ac_try='test -z "$ac_c_werror_flag"
50557 || test ! -s conftest.err'
50558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50559 (eval $ac_try) 2>&5
50560 ac_status=$?
50561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50562 (exit $ac_status); }; } &&
50563 { ac_try='test -s conftest$ac_exeext'
50564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50565 (eval $ac_try) 2>&5
50566 ac_status=$?
50567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50568 (exit $ac_status); }; }; then
50569 ac_cv_lib_m_main=yes
50570 else
50571 echo "$as_me: failed program was:" >&5
50572 sed 's/^/| /' conftest.$ac_ext >&5
50574 ac_cv_lib_m_main=no
50576 rm -f conftest.err conftest.$ac_objext \
50577 conftest$ac_exeext conftest.$ac_ext
50578 LIBS=$ac_check_lib_save_LIBS
50580 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50581 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50582 if test $ac_cv_lib_m_main = yes; then
50583 cat >>confdefs.h <<_ACEOF
50584 #define HAVE_LIBM 1
50585 _ACEOF
50587 LIBS="-lm $LIBS"
50592 for ac_func in copysignf
50594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50595 echo "$as_me:$LINENO: checking for $ac_func" >&5
50596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50597 if eval "test \"\${$as_ac_var+set}\" = set"; then
50598 echo $ECHO_N "(cached) $ECHO_C" >&6
50599 else
50600 if test x$gcc_no_link = xyes; then
50601 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50602 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50603 { (exit 1); exit 1; }; }
50605 cat >conftest.$ac_ext <<_ACEOF
50606 /* confdefs.h. */
50607 _ACEOF
50608 cat confdefs.h >>conftest.$ac_ext
50609 cat >>conftest.$ac_ext <<_ACEOF
50610 /* end confdefs.h. */
50611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50613 #define $ac_func innocuous_$ac_func
50615 /* System header to define __stub macros and hopefully few prototypes,
50616 which can conflict with char $ac_func (); below.
50617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50618 <limits.h> exists even on freestanding compilers. */
50620 #ifdef __STDC__
50621 # include <limits.h>
50622 #else
50623 # include <assert.h>
50624 #endif
50626 #undef $ac_func
50628 /* Override any gcc2 internal prototype to avoid an error. */
50629 #ifdef __cplusplus
50630 extern "C"
50632 #endif
50633 /* We use char because int might match the return type of a gcc2
50634 builtin and then its argument prototype would still apply. */
50635 char $ac_func ();
50636 /* The GNU C library defines this for functions which it implements
50637 to always fail with ENOSYS. Some functions are actually named
50638 something starting with __ and the normal name is an alias. */
50639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50640 choke me
50641 #else
50642 char (*f) () = $ac_func;
50643 #endif
50644 #ifdef __cplusplus
50646 #endif
50649 main ()
50651 return f != $ac_func;
50653 return 0;
50655 _ACEOF
50656 rm -f conftest.$ac_objext conftest$ac_exeext
50657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50658 (eval $ac_link) 2>conftest.er1
50659 ac_status=$?
50660 grep -v '^ *+' conftest.er1 >conftest.err
50661 rm -f conftest.er1
50662 cat conftest.err >&5
50663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50664 (exit $ac_status); } &&
50665 { ac_try='test -z "$ac_c_werror_flag"
50666 || test ! -s conftest.err'
50667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50668 (eval $ac_try) 2>&5
50669 ac_status=$?
50670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50671 (exit $ac_status); }; } &&
50672 { ac_try='test -s conftest$ac_exeext'
50673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50674 (eval $ac_try) 2>&5
50675 ac_status=$?
50676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50677 (exit $ac_status); }; }; then
50678 eval "$as_ac_var=yes"
50679 else
50680 echo "$as_me: failed program was:" >&5
50681 sed 's/^/| /' conftest.$ac_ext >&5
50683 eval "$as_ac_var=no"
50685 rm -f conftest.err conftest.$ac_objext \
50686 conftest$ac_exeext conftest.$ac_ext
50688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50690 if test `eval echo '${'$as_ac_var'}'` = yes; then
50691 cat >>confdefs.h <<_ACEOF
50692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50693 _ACEOF
50695 else
50696 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50698 done
50702 for ac_func in __signbit
50704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50705 echo "$as_me:$LINENO: checking for $ac_func" >&5
50706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50707 if eval "test \"\${$as_ac_var+set}\" = set"; then
50708 echo $ECHO_N "(cached) $ECHO_C" >&6
50709 else
50710 if test x$gcc_no_link = xyes; then
50711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50713 { (exit 1); exit 1; }; }
50715 cat >conftest.$ac_ext <<_ACEOF
50716 /* confdefs.h. */
50717 _ACEOF
50718 cat confdefs.h >>conftest.$ac_ext
50719 cat >>conftest.$ac_ext <<_ACEOF
50720 /* end confdefs.h. */
50721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50723 #define $ac_func innocuous_$ac_func
50725 /* System header to define __stub macros and hopefully few prototypes,
50726 which can conflict with char $ac_func (); below.
50727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50728 <limits.h> exists even on freestanding compilers. */
50730 #ifdef __STDC__
50731 # include <limits.h>
50732 #else
50733 # include <assert.h>
50734 #endif
50736 #undef $ac_func
50738 /* Override any gcc2 internal prototype to avoid an error. */
50739 #ifdef __cplusplus
50740 extern "C"
50742 #endif
50743 /* We use char because int might match the return type of a gcc2
50744 builtin and then its argument prototype would still apply. */
50745 char $ac_func ();
50746 /* The GNU C library defines this for functions which it implements
50747 to always fail with ENOSYS. Some functions are actually named
50748 something starting with __ and the normal name is an alias. */
50749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50750 choke me
50751 #else
50752 char (*f) () = $ac_func;
50753 #endif
50754 #ifdef __cplusplus
50756 #endif
50759 main ()
50761 return f != $ac_func;
50763 return 0;
50765 _ACEOF
50766 rm -f conftest.$ac_objext conftest$ac_exeext
50767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50768 (eval $ac_link) 2>conftest.er1
50769 ac_status=$?
50770 grep -v '^ *+' conftest.er1 >conftest.err
50771 rm -f conftest.er1
50772 cat conftest.err >&5
50773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50774 (exit $ac_status); } &&
50775 { ac_try='test -z "$ac_c_werror_flag"
50776 || test ! -s conftest.err'
50777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50778 (eval $ac_try) 2>&5
50779 ac_status=$?
50780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50781 (exit $ac_status); }; } &&
50782 { ac_try='test -s conftest$ac_exeext'
50783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50784 (eval $ac_try) 2>&5
50785 ac_status=$?
50786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50787 (exit $ac_status); }; }; then
50788 eval "$as_ac_var=yes"
50789 else
50790 echo "$as_me: failed program was:" >&5
50791 sed 's/^/| /' conftest.$ac_ext >&5
50793 eval "$as_ac_var=no"
50795 rm -f conftest.err conftest.$ac_objext \
50796 conftest$ac_exeext conftest.$ac_ext
50798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50800 if test `eval echo '${'$as_ac_var'}'` = yes; then
50801 cat >>confdefs.h <<_ACEOF
50802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50803 _ACEOF
50805 else
50806 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50808 done
50811 for ac_func in __signbitf
50813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50814 echo "$as_me:$LINENO: checking for $ac_func" >&5
50815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50816 if eval "test \"\${$as_ac_var+set}\" = set"; then
50817 echo $ECHO_N "(cached) $ECHO_C" >&6
50818 else
50819 if test x$gcc_no_link = xyes; then
50820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50822 { (exit 1); exit 1; }; }
50824 cat >conftest.$ac_ext <<_ACEOF
50825 /* confdefs.h. */
50826 _ACEOF
50827 cat confdefs.h >>conftest.$ac_ext
50828 cat >>conftest.$ac_ext <<_ACEOF
50829 /* end confdefs.h. */
50830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50832 #define $ac_func innocuous_$ac_func
50834 /* System header to define __stub macros and hopefully few prototypes,
50835 which can conflict with char $ac_func (); below.
50836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50837 <limits.h> exists even on freestanding compilers. */
50839 #ifdef __STDC__
50840 # include <limits.h>
50841 #else
50842 # include <assert.h>
50843 #endif
50845 #undef $ac_func
50847 /* Override any gcc2 internal prototype to avoid an error. */
50848 #ifdef __cplusplus
50849 extern "C"
50851 #endif
50852 /* We use char because int might match the return type of a gcc2
50853 builtin and then its argument prototype would still apply. */
50854 char $ac_func ();
50855 /* The GNU C library defines this for functions which it implements
50856 to always fail with ENOSYS. Some functions are actually named
50857 something starting with __ and the normal name is an alias. */
50858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50859 choke me
50860 #else
50861 char (*f) () = $ac_func;
50862 #endif
50863 #ifdef __cplusplus
50865 #endif
50868 main ()
50870 return f != $ac_func;
50872 return 0;
50874 _ACEOF
50875 rm -f conftest.$ac_objext conftest$ac_exeext
50876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50877 (eval $ac_link) 2>conftest.er1
50878 ac_status=$?
50879 grep -v '^ *+' conftest.er1 >conftest.err
50880 rm -f conftest.er1
50881 cat conftest.err >&5
50882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50883 (exit $ac_status); } &&
50884 { ac_try='test -z "$ac_c_werror_flag"
50885 || test ! -s conftest.err'
50886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50887 (eval $ac_try) 2>&5
50888 ac_status=$?
50889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50890 (exit $ac_status); }; } &&
50891 { ac_try='test -s conftest$ac_exeext'
50892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50893 (eval $ac_try) 2>&5
50894 ac_status=$?
50895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50896 (exit $ac_status); }; }; then
50897 eval "$as_ac_var=yes"
50898 else
50899 echo "$as_me: failed program was:" >&5
50900 sed 's/^/| /' conftest.$ac_ext >&5
50902 eval "$as_ac_var=no"
50904 rm -f conftest.err conftest.$ac_objext \
50905 conftest$ac_exeext conftest.$ac_ext
50907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50909 if test `eval echo '${'$as_ac_var'}'` = yes; then
50910 cat >>confdefs.h <<_ACEOF
50911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50912 _ACEOF
50914 else
50915 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
50917 done
50920 if test x$ac_cv_func_copysignl = x"yes"; then
50922 for ac_func in __signbitl
50924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50925 echo "$as_me:$LINENO: checking for $ac_func" >&5
50926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50927 if eval "test \"\${$as_ac_var+set}\" = set"; then
50928 echo $ECHO_N "(cached) $ECHO_C" >&6
50929 else
50930 if test x$gcc_no_link = xyes; then
50931 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50933 { (exit 1); exit 1; }; }
50935 cat >conftest.$ac_ext <<_ACEOF
50936 /* confdefs.h. */
50937 _ACEOF
50938 cat confdefs.h >>conftest.$ac_ext
50939 cat >>conftest.$ac_ext <<_ACEOF
50940 /* end confdefs.h. */
50941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50943 #define $ac_func innocuous_$ac_func
50945 /* System header to define __stub macros and hopefully few prototypes,
50946 which can conflict with char $ac_func (); below.
50947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50948 <limits.h> exists even on freestanding compilers. */
50950 #ifdef __STDC__
50951 # include <limits.h>
50952 #else
50953 # include <assert.h>
50954 #endif
50956 #undef $ac_func
50958 /* Override any gcc2 internal prototype to avoid an error. */
50959 #ifdef __cplusplus
50960 extern "C"
50962 #endif
50963 /* We use char because int might match the return type of a gcc2
50964 builtin and then its argument prototype would still apply. */
50965 char $ac_func ();
50966 /* The GNU C library defines this for functions which it implements
50967 to always fail with ENOSYS. Some functions are actually named
50968 something starting with __ and the normal name is an alias. */
50969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50970 choke me
50971 #else
50972 char (*f) () = $ac_func;
50973 #endif
50974 #ifdef __cplusplus
50976 #endif
50979 main ()
50981 return f != $ac_func;
50983 return 0;
50985 _ACEOF
50986 rm -f conftest.$ac_objext conftest$ac_exeext
50987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50988 (eval $ac_link) 2>conftest.er1
50989 ac_status=$?
50990 grep -v '^ *+' conftest.er1 >conftest.err
50991 rm -f conftest.er1
50992 cat conftest.err >&5
50993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50994 (exit $ac_status); } &&
50995 { ac_try='test -z "$ac_c_werror_flag"
50996 || test ! -s conftest.err'
50997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50998 (eval $ac_try) 2>&5
50999 ac_status=$?
51000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51001 (exit $ac_status); }; } &&
51002 { ac_try='test -s conftest$ac_exeext'
51003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51004 (eval $ac_try) 2>&5
51005 ac_status=$?
51006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51007 (exit $ac_status); }; }; then
51008 eval "$as_ac_var=yes"
51009 else
51010 echo "$as_me: failed program was:" >&5
51011 sed 's/^/| /' conftest.$ac_ext >&5
51013 eval "$as_ac_var=no"
51015 rm -f conftest.err conftest.$ac_objext \
51016 conftest$ac_exeext conftest.$ac_ext
51018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51020 if test `eval echo '${'$as_ac_var'}'` = yes; then
51021 cat >>confdefs.h <<_ACEOF
51022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51023 _ACEOF
51025 else
51026 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51028 done
51032 # XXX Review this. Nothing uses it.
51033 if test -n "$LIBMATHOBJS"; then
51034 need_libmath=yes
51039 # Test wchar.h for mbstate_t, which is needed for char_traits and
51040 # others even if wchar_t support is not on.
51041 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51042 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51043 cat >conftest.$ac_ext <<_ACEOF
51044 /* confdefs.h. */
51045 _ACEOF
51046 cat confdefs.h >>conftest.$ac_ext
51047 cat >>conftest.$ac_ext <<_ACEOF
51048 /* end confdefs.h. */
51049 #include <wchar.h>
51051 main ()
51053 mbstate_t teststate;
51055 return 0;
51057 _ACEOF
51058 rm -f conftest.$ac_objext
51059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51060 (eval $ac_compile) 2>conftest.er1
51061 ac_status=$?
51062 grep -v '^ *+' conftest.er1 >conftest.err
51063 rm -f conftest.er1
51064 cat conftest.err >&5
51065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51066 (exit $ac_status); } &&
51067 { ac_try='test -z "$ac_c_werror_flag"
51068 || test ! -s conftest.err'
51069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51070 (eval $ac_try) 2>&5
51071 ac_status=$?
51072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073 (exit $ac_status); }; } &&
51074 { ac_try='test -s conftest.$ac_objext'
51075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51076 (eval $ac_try) 2>&5
51077 ac_status=$?
51078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51079 (exit $ac_status); }; }; then
51080 have_mbstate_t=yes
51081 else
51082 echo "$as_me: failed program was:" >&5
51083 sed 's/^/| /' conftest.$ac_ext >&5
51085 have_mbstate_t=no
51087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51088 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51089 echo "${ECHO_T}$have_mbstate_t" >&6
51090 if test x"$have_mbstate_t" = xyes; then
51091 cat >>confdefs.h <<\_ACEOF
51092 #define HAVE_MBSTATE_T 1
51093 _ACEOF
51097 # Sanity check for existence of ISO C99 headers for extended encoding.
51099 for ac_header in wchar.h
51101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51103 echo "$as_me:$LINENO: checking for $ac_header" >&5
51104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51106 echo $ECHO_N "(cached) $ECHO_C" >&6
51108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51110 else
51111 # Is the header compilable?
51112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51114 cat >conftest.$ac_ext <<_ACEOF
51115 /* confdefs.h. */
51116 _ACEOF
51117 cat confdefs.h >>conftest.$ac_ext
51118 cat >>conftest.$ac_ext <<_ACEOF
51119 /* end confdefs.h. */
51120 $ac_includes_default
51121 #include <$ac_header>
51122 _ACEOF
51123 rm -f conftest.$ac_objext
51124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51125 (eval $ac_compile) 2>conftest.er1
51126 ac_status=$?
51127 grep -v '^ *+' conftest.er1 >conftest.err
51128 rm -f conftest.er1
51129 cat conftest.err >&5
51130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51131 (exit $ac_status); } &&
51132 { ac_try='test -z "$ac_c_werror_flag"
51133 || test ! -s conftest.err'
51134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51135 (eval $ac_try) 2>&5
51136 ac_status=$?
51137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51138 (exit $ac_status); }; } &&
51139 { ac_try='test -s conftest.$ac_objext'
51140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51141 (eval $ac_try) 2>&5
51142 ac_status=$?
51143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51144 (exit $ac_status); }; }; then
51145 ac_header_compiler=yes
51146 else
51147 echo "$as_me: failed program was:" >&5
51148 sed 's/^/| /' conftest.$ac_ext >&5
51150 ac_header_compiler=no
51152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51154 echo "${ECHO_T}$ac_header_compiler" >&6
51156 # Is the header present?
51157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51159 cat >conftest.$ac_ext <<_ACEOF
51160 /* confdefs.h. */
51161 _ACEOF
51162 cat confdefs.h >>conftest.$ac_ext
51163 cat >>conftest.$ac_ext <<_ACEOF
51164 /* end confdefs.h. */
51165 #include <$ac_header>
51166 _ACEOF
51167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51169 ac_status=$?
51170 grep -v '^ *+' conftest.er1 >conftest.err
51171 rm -f conftest.er1
51172 cat conftest.err >&5
51173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51174 (exit $ac_status); } >/dev/null; then
51175 if test -s conftest.err; then
51176 ac_cpp_err=$ac_c_preproc_warn_flag
51177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51178 else
51179 ac_cpp_err=
51181 else
51182 ac_cpp_err=yes
51184 if test -z "$ac_cpp_err"; then
51185 ac_header_preproc=yes
51186 else
51187 echo "$as_me: failed program was:" >&5
51188 sed 's/^/| /' conftest.$ac_ext >&5
51190 ac_header_preproc=no
51192 rm -f conftest.err conftest.$ac_ext
51193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51194 echo "${ECHO_T}$ac_header_preproc" >&6
51196 # So? What about this header?
51197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51198 yes:no: )
51199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51203 ac_header_preproc=yes
51205 no:yes:* )
51206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51219 cat <<\_ASBOX
51220 ## ----------------------------------------- ##
51221 ## Report this to the package-unused lists. ##
51222 ## ----------------------------------------- ##
51223 _ASBOX
51225 sed "s/^/$as_me: WARNING: /" >&2
51227 esac
51228 echo "$as_me:$LINENO: checking for $ac_header" >&5
51229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51231 echo $ECHO_N "(cached) $ECHO_C" >&6
51232 else
51233 eval "$as_ac_Header=\$ac_header_preproc"
51235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51240 cat >>confdefs.h <<_ACEOF
51241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51242 _ACEOF
51243 ac_has_wchar_h=yes
51244 else
51245 ac_has_wchar_h=no
51248 done
51251 for ac_header in wctype.h
51253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51255 echo "$as_me:$LINENO: checking for $ac_header" >&5
51256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51258 echo $ECHO_N "(cached) $ECHO_C" >&6
51260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51262 else
51263 # Is the header compilable?
51264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51266 cat >conftest.$ac_ext <<_ACEOF
51267 /* confdefs.h. */
51268 _ACEOF
51269 cat confdefs.h >>conftest.$ac_ext
51270 cat >>conftest.$ac_ext <<_ACEOF
51271 /* end confdefs.h. */
51272 $ac_includes_default
51273 #include <$ac_header>
51274 _ACEOF
51275 rm -f conftest.$ac_objext
51276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51277 (eval $ac_compile) 2>conftest.er1
51278 ac_status=$?
51279 grep -v '^ *+' conftest.er1 >conftest.err
51280 rm -f conftest.er1
51281 cat conftest.err >&5
51282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51283 (exit $ac_status); } &&
51284 { ac_try='test -z "$ac_c_werror_flag"
51285 || test ! -s conftest.err'
51286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51287 (eval $ac_try) 2>&5
51288 ac_status=$?
51289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51290 (exit $ac_status); }; } &&
51291 { ac_try='test -s conftest.$ac_objext'
51292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51293 (eval $ac_try) 2>&5
51294 ac_status=$?
51295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51296 (exit $ac_status); }; }; then
51297 ac_header_compiler=yes
51298 else
51299 echo "$as_me: failed program was:" >&5
51300 sed 's/^/| /' conftest.$ac_ext >&5
51302 ac_header_compiler=no
51304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51306 echo "${ECHO_T}$ac_header_compiler" >&6
51308 # Is the header present?
51309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51311 cat >conftest.$ac_ext <<_ACEOF
51312 /* confdefs.h. */
51313 _ACEOF
51314 cat confdefs.h >>conftest.$ac_ext
51315 cat >>conftest.$ac_ext <<_ACEOF
51316 /* end confdefs.h. */
51317 #include <$ac_header>
51318 _ACEOF
51319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51321 ac_status=$?
51322 grep -v '^ *+' conftest.er1 >conftest.err
51323 rm -f conftest.er1
51324 cat conftest.err >&5
51325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51326 (exit $ac_status); } >/dev/null; then
51327 if test -s conftest.err; then
51328 ac_cpp_err=$ac_c_preproc_warn_flag
51329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51330 else
51331 ac_cpp_err=
51333 else
51334 ac_cpp_err=yes
51336 if test -z "$ac_cpp_err"; then
51337 ac_header_preproc=yes
51338 else
51339 echo "$as_me: failed program was:" >&5
51340 sed 's/^/| /' conftest.$ac_ext >&5
51342 ac_header_preproc=no
51344 rm -f conftest.err conftest.$ac_ext
51345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51346 echo "${ECHO_T}$ac_header_preproc" >&6
51348 # So? What about this header?
51349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51350 yes:no: )
51351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51355 ac_header_preproc=yes
51357 no:yes:* )
51358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51371 cat <<\_ASBOX
51372 ## ----------------------------------------- ##
51373 ## Report this to the package-unused lists. ##
51374 ## ----------------------------------------- ##
51375 _ASBOX
51377 sed "s/^/$as_me: WARNING: /" >&2
51379 esac
51380 echo "$as_me:$LINENO: checking for $ac_header" >&5
51381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51383 echo $ECHO_N "(cached) $ECHO_C" >&6
51384 else
51385 eval "$as_ac_Header=\$ac_header_preproc"
51387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51392 cat >>confdefs.h <<_ACEOF
51393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51394 _ACEOF
51395 ac_has_wctype_h=yes
51396 else
51397 ac_has_wctype_h=no
51400 done
51403 # Only continue checking if the ISO C99 headers exist and support is on.
51404 if test x"$ac_has_wchar_h" = xyes &&
51405 test x"$ac_has_wctype_h" = xyes &&
51406 test x"$enable_c_mbchar" != xno; then
51408 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51409 # numeric_limits can instantiate type_traits<wchar_t>
51410 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51411 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51412 cat >conftest.$ac_ext <<_ACEOF
51413 /* confdefs.h. */
51414 _ACEOF
51415 cat confdefs.h >>conftest.$ac_ext
51416 cat >>conftest.$ac_ext <<_ACEOF
51417 /* end confdefs.h. */
51418 #include <wchar.h>
51420 main ()
51422 int i = WCHAR_MIN; int j = WCHAR_MAX;
51424 return 0;
51426 _ACEOF
51427 rm -f conftest.$ac_objext
51428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51429 (eval $ac_compile) 2>conftest.er1
51430 ac_status=$?
51431 grep -v '^ *+' conftest.er1 >conftest.err
51432 rm -f conftest.er1
51433 cat conftest.err >&5
51434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51435 (exit $ac_status); } &&
51436 { ac_try='test -z "$ac_c_werror_flag"
51437 || test ! -s conftest.err'
51438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51439 (eval $ac_try) 2>&5
51440 ac_status=$?
51441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51442 (exit $ac_status); }; } &&
51443 { ac_try='test -s conftest.$ac_objext'
51444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51445 (eval $ac_try) 2>&5
51446 ac_status=$?
51447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51448 (exit $ac_status); }; }; then
51449 has_wchar_minmax=yes
51450 else
51451 echo "$as_me: failed program was:" >&5
51452 sed 's/^/| /' conftest.$ac_ext >&5
51454 has_wchar_minmax=no
51456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51457 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51458 echo "${ECHO_T}$has_wchar_minmax" >&6
51460 # Test wchar.h for WEOF, which is what we use to determine whether
51461 # to specialize for char_traits<wchar_t> or not.
51462 echo "$as_me:$LINENO: checking for WEOF" >&5
51463 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51464 cat >conftest.$ac_ext <<_ACEOF
51465 /* confdefs.h. */
51466 _ACEOF
51467 cat confdefs.h >>conftest.$ac_ext
51468 cat >>conftest.$ac_ext <<_ACEOF
51469 /* end confdefs.h. */
51471 #include <wchar.h>
51472 #include <stddef.h>
51474 main ()
51476 wint_t i = WEOF;
51478 return 0;
51480 _ACEOF
51481 rm -f conftest.$ac_objext
51482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51483 (eval $ac_compile) 2>conftest.er1
51484 ac_status=$?
51485 grep -v '^ *+' conftest.er1 >conftest.err
51486 rm -f conftest.er1
51487 cat conftest.err >&5
51488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51489 (exit $ac_status); } &&
51490 { ac_try='test -z "$ac_c_werror_flag"
51491 || test ! -s conftest.err'
51492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51493 (eval $ac_try) 2>&5
51494 ac_status=$?
51495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51496 (exit $ac_status); }; } &&
51497 { ac_try='test -s conftest.$ac_objext'
51498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51499 (eval $ac_try) 2>&5
51500 ac_status=$?
51501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51502 (exit $ac_status); }; }; then
51503 has_weof=yes
51504 else
51505 echo "$as_me: failed program was:" >&5
51506 sed 's/^/| /' conftest.$ac_ext >&5
51508 has_weof=no
51510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51511 echo "$as_me:$LINENO: result: $has_weof" >&5
51512 echo "${ECHO_T}$has_weof" >&6
51514 # Tests for wide character functions used in char_traits<wchar_t>.
51515 ac_wfuncs=yes
51522 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51525 echo "$as_me:$LINENO: checking for $ac_func" >&5
51526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51527 if eval "test \"\${$as_ac_var+set}\" = set"; then
51528 echo $ECHO_N "(cached) $ECHO_C" >&6
51529 else
51530 if test x$gcc_no_link = xyes; then
51531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51533 { (exit 1); exit 1; }; }
51535 cat >conftest.$ac_ext <<_ACEOF
51536 /* confdefs.h. */
51537 _ACEOF
51538 cat confdefs.h >>conftest.$ac_ext
51539 cat >>conftest.$ac_ext <<_ACEOF
51540 /* end confdefs.h. */
51541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51543 #define $ac_func innocuous_$ac_func
51545 /* System header to define __stub macros and hopefully few prototypes,
51546 which can conflict with char $ac_func (); below.
51547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51548 <limits.h> exists even on freestanding compilers. */
51550 #ifdef __STDC__
51551 # include <limits.h>
51552 #else
51553 # include <assert.h>
51554 #endif
51556 #undef $ac_func
51558 /* Override any gcc2 internal prototype to avoid an error. */
51559 #ifdef __cplusplus
51560 extern "C"
51562 #endif
51563 /* We use char because int might match the return type of a gcc2
51564 builtin and then its argument prototype would still apply. */
51565 char $ac_func ();
51566 /* The GNU C library defines this for functions which it implements
51567 to always fail with ENOSYS. Some functions are actually named
51568 something starting with __ and the normal name is an alias. */
51569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51570 choke me
51571 #else
51572 char (*f) () = $ac_func;
51573 #endif
51574 #ifdef __cplusplus
51576 #endif
51579 main ()
51581 return f != $ac_func;
51583 return 0;
51585 _ACEOF
51586 rm -f conftest.$ac_objext conftest$ac_exeext
51587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51588 (eval $ac_link) 2>conftest.er1
51589 ac_status=$?
51590 grep -v '^ *+' conftest.er1 >conftest.err
51591 rm -f conftest.er1
51592 cat conftest.err >&5
51593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51594 (exit $ac_status); } &&
51595 { ac_try='test -z "$ac_c_werror_flag"
51596 || test ! -s conftest.err'
51597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51598 (eval $ac_try) 2>&5
51599 ac_status=$?
51600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51601 (exit $ac_status); }; } &&
51602 { ac_try='test -s conftest$ac_exeext'
51603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51604 (eval $ac_try) 2>&5
51605 ac_status=$?
51606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51607 (exit $ac_status); }; }; then
51608 eval "$as_ac_var=yes"
51609 else
51610 echo "$as_me: failed program was:" >&5
51611 sed 's/^/| /' conftest.$ac_ext >&5
51613 eval "$as_ac_var=no"
51615 rm -f conftest.err conftest.$ac_objext \
51616 conftest$ac_exeext conftest.$ac_ext
51618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51620 if test `eval echo '${'$as_ac_var'}'` = yes; then
51621 cat >>confdefs.h <<_ACEOF
51622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51623 _ACEOF
51625 else
51626 ac_wfuncs=no
51628 done
51631 # Checks for names injected into std:: by the c_std headers.
51678 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51679 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51680 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51681 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51682 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51683 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51686 echo "$as_me:$LINENO: checking for $ac_func" >&5
51687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51688 if eval "test \"\${$as_ac_var+set}\" = set"; then
51689 echo $ECHO_N "(cached) $ECHO_C" >&6
51690 else
51691 if test x$gcc_no_link = xyes; then
51692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51694 { (exit 1); exit 1; }; }
51696 cat >conftest.$ac_ext <<_ACEOF
51697 /* confdefs.h. */
51698 _ACEOF
51699 cat confdefs.h >>conftest.$ac_ext
51700 cat >>conftest.$ac_ext <<_ACEOF
51701 /* end confdefs.h. */
51702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51704 #define $ac_func innocuous_$ac_func
51706 /* System header to define __stub macros and hopefully few prototypes,
51707 which can conflict with char $ac_func (); below.
51708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51709 <limits.h> exists even on freestanding compilers. */
51711 #ifdef __STDC__
51712 # include <limits.h>
51713 #else
51714 # include <assert.h>
51715 #endif
51717 #undef $ac_func
51719 /* Override any gcc2 internal prototype to avoid an error. */
51720 #ifdef __cplusplus
51721 extern "C"
51723 #endif
51724 /* We use char because int might match the return type of a gcc2
51725 builtin and then its argument prototype would still apply. */
51726 char $ac_func ();
51727 /* The GNU C library defines this for functions which it implements
51728 to always fail with ENOSYS. Some functions are actually named
51729 something starting with __ and the normal name is an alias. */
51730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51731 choke me
51732 #else
51733 char (*f) () = $ac_func;
51734 #endif
51735 #ifdef __cplusplus
51737 #endif
51740 main ()
51742 return f != $ac_func;
51744 return 0;
51746 _ACEOF
51747 rm -f conftest.$ac_objext conftest$ac_exeext
51748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51749 (eval $ac_link) 2>conftest.er1
51750 ac_status=$?
51751 grep -v '^ *+' conftest.er1 >conftest.err
51752 rm -f conftest.er1
51753 cat conftest.err >&5
51754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51755 (exit $ac_status); } &&
51756 { ac_try='test -z "$ac_c_werror_flag"
51757 || test ! -s conftest.err'
51758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51759 (eval $ac_try) 2>&5
51760 ac_status=$?
51761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51762 (exit $ac_status); }; } &&
51763 { ac_try='test -s conftest$ac_exeext'
51764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51765 (eval $ac_try) 2>&5
51766 ac_status=$?
51767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51768 (exit $ac_status); }; }; then
51769 eval "$as_ac_var=yes"
51770 else
51771 echo "$as_me: failed program was:" >&5
51772 sed 's/^/| /' conftest.$ac_ext >&5
51774 eval "$as_ac_var=no"
51776 rm -f conftest.err conftest.$ac_objext \
51777 conftest$ac_exeext conftest.$ac_ext
51779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51781 if test `eval echo '${'$as_ac_var'}'` = yes; then
51782 cat >>confdefs.h <<_ACEOF
51783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51784 _ACEOF
51786 else
51787 ac_wfuncs=no
51789 done
51792 # Checks for wide character functions that are not required
51793 # for basic wchar_t support. Don't disable support if they are missing.
51794 # Injection of these is wrapped with guard macros.
51800 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51803 echo "$as_me:$LINENO: checking for $ac_func" >&5
51804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51805 if eval "test \"\${$as_ac_var+set}\" = set"; then
51806 echo $ECHO_N "(cached) $ECHO_C" >&6
51807 else
51808 if test x$gcc_no_link = xyes; then
51809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51811 { (exit 1); exit 1; }; }
51813 cat >conftest.$ac_ext <<_ACEOF
51814 /* confdefs.h. */
51815 _ACEOF
51816 cat confdefs.h >>conftest.$ac_ext
51817 cat >>conftest.$ac_ext <<_ACEOF
51818 /* end confdefs.h. */
51819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51821 #define $ac_func innocuous_$ac_func
51823 /* System header to define __stub macros and hopefully few prototypes,
51824 which can conflict with char $ac_func (); below.
51825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51826 <limits.h> exists even on freestanding compilers. */
51828 #ifdef __STDC__
51829 # include <limits.h>
51830 #else
51831 # include <assert.h>
51832 #endif
51834 #undef $ac_func
51836 /* Override any gcc2 internal prototype to avoid an error. */
51837 #ifdef __cplusplus
51838 extern "C"
51840 #endif
51841 /* We use char because int might match the return type of a gcc2
51842 builtin and then its argument prototype would still apply. */
51843 char $ac_func ();
51844 /* The GNU C library defines this for functions which it implements
51845 to always fail with ENOSYS. Some functions are actually named
51846 something starting with __ and the normal name is an alias. */
51847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51848 choke me
51849 #else
51850 char (*f) () = $ac_func;
51851 #endif
51852 #ifdef __cplusplus
51854 #endif
51857 main ()
51859 return f != $ac_func;
51861 return 0;
51863 _ACEOF
51864 rm -f conftest.$ac_objext conftest$ac_exeext
51865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51866 (eval $ac_link) 2>conftest.er1
51867 ac_status=$?
51868 grep -v '^ *+' conftest.er1 >conftest.err
51869 rm -f conftest.er1
51870 cat conftest.err >&5
51871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51872 (exit $ac_status); } &&
51873 { ac_try='test -z "$ac_c_werror_flag"
51874 || test ! -s conftest.err'
51875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51876 (eval $ac_try) 2>&5
51877 ac_status=$?
51878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51879 (exit $ac_status); }; } &&
51880 { ac_try='test -s conftest$ac_exeext'
51881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51882 (eval $ac_try) 2>&5
51883 ac_status=$?
51884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51885 (exit $ac_status); }; }; then
51886 eval "$as_ac_var=yes"
51887 else
51888 echo "$as_me: failed program was:" >&5
51889 sed 's/^/| /' conftest.$ac_ext >&5
51891 eval "$as_ac_var=no"
51893 rm -f conftest.err conftest.$ac_objext \
51894 conftest$ac_exeext conftest.$ac_ext
51896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51898 if test `eval echo '${'$as_ac_var'}'` = yes; then
51899 cat >>confdefs.h <<_ACEOF
51900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51901 _ACEOF
51904 done
51907 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51908 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51909 if test x"$has_weof" = xyes &&
51910 test x"$has_wchar_minmax" = xyes &&
51911 test x"$ac_wfuncs" = xyes;
51912 then
51913 ac_isoC99_wchar_t=yes
51914 else
51915 ac_isoC99_wchar_t=no
51917 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51918 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51920 # Use iconv for wchar_t to char conversions. As such, check for
51921 # X/Open Portability Guide, version 2 features (XPG2).
51922 if test "${ac_cv_header_iconv_h+set}" = set; then
51923 echo "$as_me:$LINENO: checking for iconv.h" >&5
51924 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51925 if test "${ac_cv_header_iconv_h+set}" = set; then
51926 echo $ECHO_N "(cached) $ECHO_C" >&6
51928 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51929 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51930 else
51931 # Is the header compilable?
51932 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51933 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51934 cat >conftest.$ac_ext <<_ACEOF
51935 /* confdefs.h. */
51936 _ACEOF
51937 cat confdefs.h >>conftest.$ac_ext
51938 cat >>conftest.$ac_ext <<_ACEOF
51939 /* end confdefs.h. */
51940 $ac_includes_default
51941 #include <iconv.h>
51942 _ACEOF
51943 rm -f conftest.$ac_objext
51944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51945 (eval $ac_compile) 2>conftest.er1
51946 ac_status=$?
51947 grep -v '^ *+' conftest.er1 >conftest.err
51948 rm -f conftest.er1
51949 cat conftest.err >&5
51950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51951 (exit $ac_status); } &&
51952 { ac_try='test -z "$ac_c_werror_flag"
51953 || test ! -s conftest.err'
51954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51955 (eval $ac_try) 2>&5
51956 ac_status=$?
51957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51958 (exit $ac_status); }; } &&
51959 { ac_try='test -s conftest.$ac_objext'
51960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51961 (eval $ac_try) 2>&5
51962 ac_status=$?
51963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51964 (exit $ac_status); }; }; then
51965 ac_header_compiler=yes
51966 else
51967 echo "$as_me: failed program was:" >&5
51968 sed 's/^/| /' conftest.$ac_ext >&5
51970 ac_header_compiler=no
51972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51974 echo "${ECHO_T}$ac_header_compiler" >&6
51976 # Is the header present?
51977 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51978 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51979 cat >conftest.$ac_ext <<_ACEOF
51980 /* confdefs.h. */
51981 _ACEOF
51982 cat confdefs.h >>conftest.$ac_ext
51983 cat >>conftest.$ac_ext <<_ACEOF
51984 /* end confdefs.h. */
51985 #include <iconv.h>
51986 _ACEOF
51987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51989 ac_status=$?
51990 grep -v '^ *+' conftest.er1 >conftest.err
51991 rm -f conftest.er1
51992 cat conftest.err >&5
51993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51994 (exit $ac_status); } >/dev/null; then
51995 if test -s conftest.err; then
51996 ac_cpp_err=$ac_c_preproc_warn_flag
51997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51998 else
51999 ac_cpp_err=
52001 else
52002 ac_cpp_err=yes
52004 if test -z "$ac_cpp_err"; then
52005 ac_header_preproc=yes
52006 else
52007 echo "$as_me: failed program was:" >&5
52008 sed 's/^/| /' conftest.$ac_ext >&5
52010 ac_header_preproc=no
52012 rm -f conftest.err conftest.$ac_ext
52013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52014 echo "${ECHO_T}$ac_header_preproc" >&6
52016 # So? What about this header?
52017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52018 yes:no: )
52019 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52020 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52021 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
52022 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
52023 ac_header_preproc=yes
52025 no:yes:* )
52026 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52027 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52028 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52029 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52030 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
52031 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
52032 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
52033 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
52034 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52035 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52036 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
52037 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
52039 cat <<\_ASBOX
52040 ## ----------------------------------------- ##
52041 ## Report this to the package-unused lists. ##
52042 ## ----------------------------------------- ##
52043 _ASBOX
52045 sed "s/^/$as_me: WARNING: /" >&2
52047 esac
52048 echo "$as_me:$LINENO: checking for iconv.h" >&5
52049 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52050 if test "${ac_cv_header_iconv_h+set}" = set; then
52051 echo $ECHO_N "(cached) $ECHO_C" >&6
52052 else
52053 ac_cv_header_iconv_h=$ac_header_preproc
52055 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52056 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52059 if test $ac_cv_header_iconv_h = yes; then
52060 ac_has_iconv_h=yes
52061 else
52062 ac_has_iconv_h=no
52066 if test "${ac_cv_header_langinfo_h+set}" = set; then
52067 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52068 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52069 if test "${ac_cv_header_langinfo_h+set}" = set; then
52070 echo $ECHO_N "(cached) $ECHO_C" >&6
52072 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52073 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52074 else
52075 # Is the header compilable?
52076 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52077 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52078 cat >conftest.$ac_ext <<_ACEOF
52079 /* confdefs.h. */
52080 _ACEOF
52081 cat confdefs.h >>conftest.$ac_ext
52082 cat >>conftest.$ac_ext <<_ACEOF
52083 /* end confdefs.h. */
52084 $ac_includes_default
52085 #include <langinfo.h>
52086 _ACEOF
52087 rm -f conftest.$ac_objext
52088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52089 (eval $ac_compile) 2>conftest.er1
52090 ac_status=$?
52091 grep -v '^ *+' conftest.er1 >conftest.err
52092 rm -f conftest.er1
52093 cat conftest.err >&5
52094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52095 (exit $ac_status); } &&
52096 { ac_try='test -z "$ac_c_werror_flag"
52097 || test ! -s conftest.err'
52098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52099 (eval $ac_try) 2>&5
52100 ac_status=$?
52101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52102 (exit $ac_status); }; } &&
52103 { ac_try='test -s conftest.$ac_objext'
52104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52105 (eval $ac_try) 2>&5
52106 ac_status=$?
52107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52108 (exit $ac_status); }; }; then
52109 ac_header_compiler=yes
52110 else
52111 echo "$as_me: failed program was:" >&5
52112 sed 's/^/| /' conftest.$ac_ext >&5
52114 ac_header_compiler=no
52116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52118 echo "${ECHO_T}$ac_header_compiler" >&6
52120 # Is the header present?
52121 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52122 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52123 cat >conftest.$ac_ext <<_ACEOF
52124 /* confdefs.h. */
52125 _ACEOF
52126 cat confdefs.h >>conftest.$ac_ext
52127 cat >>conftest.$ac_ext <<_ACEOF
52128 /* end confdefs.h. */
52129 #include <langinfo.h>
52130 _ACEOF
52131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52133 ac_status=$?
52134 grep -v '^ *+' conftest.er1 >conftest.err
52135 rm -f conftest.er1
52136 cat conftest.err >&5
52137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52138 (exit $ac_status); } >/dev/null; then
52139 if test -s conftest.err; then
52140 ac_cpp_err=$ac_c_preproc_warn_flag
52141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52142 else
52143 ac_cpp_err=
52145 else
52146 ac_cpp_err=yes
52148 if test -z "$ac_cpp_err"; then
52149 ac_header_preproc=yes
52150 else
52151 echo "$as_me: failed program was:" >&5
52152 sed 's/^/| /' conftest.$ac_ext >&5
52154 ac_header_preproc=no
52156 rm -f conftest.err conftest.$ac_ext
52157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52158 echo "${ECHO_T}$ac_header_preproc" >&6
52160 # So? What about this header?
52161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52162 yes:no: )
52163 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52164 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52165 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
52166 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
52167 ac_header_preproc=yes
52169 no:yes:* )
52170 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52171 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52172 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52173 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52174 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
52175 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
52176 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
52177 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
52178 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52179 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52180 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
52181 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
52183 cat <<\_ASBOX
52184 ## ----------------------------------------- ##
52185 ## Report this to the package-unused lists. ##
52186 ## ----------------------------------------- ##
52187 _ASBOX
52189 sed "s/^/$as_me: WARNING: /" >&2
52191 esac
52192 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52193 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52194 if test "${ac_cv_header_langinfo_h+set}" = set; then
52195 echo $ECHO_N "(cached) $ECHO_C" >&6
52196 else
52197 ac_cv_header_langinfo_h=$ac_header_preproc
52199 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52200 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52203 if test $ac_cv_header_langinfo_h = yes; then
52204 ac_has_langinfo_h=yes
52205 else
52206 ac_has_langinfo_h=no
52211 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52212 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52213 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52214 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52215 echo $ECHO_N "(cached) $ECHO_C" >&6
52216 else
52217 ac_check_lib_save_LIBS=$LIBS
52218 LIBS="-liconv $LIBS"
52219 if test x$gcc_no_link = xyes; then
52220 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52222 { (exit 1); exit 1; }; }
52224 cat >conftest.$ac_ext <<_ACEOF
52225 /* confdefs.h. */
52226 _ACEOF
52227 cat confdefs.h >>conftest.$ac_ext
52228 cat >>conftest.$ac_ext <<_ACEOF
52229 /* end confdefs.h. */
52231 /* Override any gcc2 internal prototype to avoid an error. */
52232 #ifdef __cplusplus
52233 extern "C"
52234 #endif
52235 /* We use char because int might match the return type of a gcc2
52236 builtin and then its argument prototype would still apply. */
52237 char iconv ();
52239 main ()
52241 iconv ();
52243 return 0;
52245 _ACEOF
52246 rm -f conftest.$ac_objext conftest$ac_exeext
52247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52248 (eval $ac_link) 2>conftest.er1
52249 ac_status=$?
52250 grep -v '^ *+' conftest.er1 >conftest.err
52251 rm -f conftest.er1
52252 cat conftest.err >&5
52253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52254 (exit $ac_status); } &&
52255 { ac_try='test -z "$ac_c_werror_flag"
52256 || test ! -s conftest.err'
52257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52258 (eval $ac_try) 2>&5
52259 ac_status=$?
52260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52261 (exit $ac_status); }; } &&
52262 { ac_try='test -s conftest$ac_exeext'
52263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52264 (eval $ac_try) 2>&5
52265 ac_status=$?
52266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52267 (exit $ac_status); }; }; then
52268 ac_cv_lib_iconv_iconv=yes
52269 else
52270 echo "$as_me: failed program was:" >&5
52271 sed 's/^/| /' conftest.$ac_ext >&5
52273 ac_cv_lib_iconv_iconv=no
52275 rm -f conftest.err conftest.$ac_objext \
52276 conftest$ac_exeext conftest.$ac_ext
52277 LIBS=$ac_check_lib_save_LIBS
52279 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52280 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52281 if test $ac_cv_lib_iconv_iconv = yes; then
52282 libiconv="-liconv"
52285 ac_save_LIBS="$LIBS"
52286 LIBS="$LIBS $libiconv"
52292 for ac_func in iconv_open iconv_close iconv nl_langinfo
52294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52295 echo "$as_me:$LINENO: checking for $ac_func" >&5
52296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52297 if eval "test \"\${$as_ac_var+set}\" = set"; then
52298 echo $ECHO_N "(cached) $ECHO_C" >&6
52299 else
52300 if test x$gcc_no_link = xyes; then
52301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52303 { (exit 1); exit 1; }; }
52305 cat >conftest.$ac_ext <<_ACEOF
52306 /* confdefs.h. */
52307 _ACEOF
52308 cat confdefs.h >>conftest.$ac_ext
52309 cat >>conftest.$ac_ext <<_ACEOF
52310 /* end confdefs.h. */
52311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52313 #define $ac_func innocuous_$ac_func
52315 /* System header to define __stub macros and hopefully few prototypes,
52316 which can conflict with char $ac_func (); below.
52317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52318 <limits.h> exists even on freestanding compilers. */
52320 #ifdef __STDC__
52321 # include <limits.h>
52322 #else
52323 # include <assert.h>
52324 #endif
52326 #undef $ac_func
52328 /* Override any gcc2 internal prototype to avoid an error. */
52329 #ifdef __cplusplus
52330 extern "C"
52332 #endif
52333 /* We use char because int might match the return type of a gcc2
52334 builtin and then its argument prototype would still apply. */
52335 char $ac_func ();
52336 /* The GNU C library defines this for functions which it implements
52337 to always fail with ENOSYS. Some functions are actually named
52338 something starting with __ and the normal name is an alias. */
52339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52340 choke me
52341 #else
52342 char (*f) () = $ac_func;
52343 #endif
52344 #ifdef __cplusplus
52346 #endif
52349 main ()
52351 return f != $ac_func;
52353 return 0;
52355 _ACEOF
52356 rm -f conftest.$ac_objext conftest$ac_exeext
52357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52358 (eval $ac_link) 2>conftest.er1
52359 ac_status=$?
52360 grep -v '^ *+' conftest.er1 >conftest.err
52361 rm -f conftest.er1
52362 cat conftest.err >&5
52363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52364 (exit $ac_status); } &&
52365 { ac_try='test -z "$ac_c_werror_flag"
52366 || test ! -s conftest.err'
52367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52368 (eval $ac_try) 2>&5
52369 ac_status=$?
52370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52371 (exit $ac_status); }; } &&
52372 { ac_try='test -s conftest$ac_exeext'
52373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52374 (eval $ac_try) 2>&5
52375 ac_status=$?
52376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52377 (exit $ac_status); }; }; then
52378 eval "$as_ac_var=yes"
52379 else
52380 echo "$as_me: failed program was:" >&5
52381 sed 's/^/| /' conftest.$ac_ext >&5
52383 eval "$as_ac_var=no"
52385 rm -f conftest.err conftest.$ac_objext \
52386 conftest$ac_exeext conftest.$ac_ext
52388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52390 if test `eval echo '${'$as_ac_var'}'` = yes; then
52391 cat >>confdefs.h <<_ACEOF
52392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52393 _ACEOF
52394 ac_XPG2funcs=yes
52395 else
52396 ac_XPG2funcs=no
52398 done
52401 LIBS="$ac_save_LIBS"
52403 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52404 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52405 if test x"$ac_has_iconv_h" = xyes &&
52406 test x"$ac_has_langinfo_h" = xyes &&
52407 test x"$ac_XPG2funcs" = xyes;
52408 then
52409 ac_XPG2_wchar_t=yes
52410 else
52411 ac_XPG2_wchar_t=no
52413 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52414 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52416 # At the moment, only enable wchar_t specializations if all the
52417 # above support is present.
52418 if test x"$ac_isoC99_wchar_t" = xyes &&
52419 test x"$ac_XPG2_wchar_t" = xyes;
52420 then
52421 cat >>confdefs.h <<\_ACEOF
52422 #define _GLIBCXX_USE_WCHAR_T 1
52423 _ACEOF
52425 enable_wchar_t=yes
52428 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52429 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52430 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52431 echo "${ECHO_T}$enable_wchar_t" >&6
52434 ac_test_CXXFLAGS="${CXXFLAGS+set}"
52435 ac_save_CXXFLAGS="$CXXFLAGS"
52436 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
52439 echo "$as_me:$LINENO: checking for strtold declaration" >&5
52440 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
52441 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
52442 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
52443 echo $ECHO_N "(cached) $ECHO_C" >&6
52444 else
52448 ac_ext=cc
52449 ac_cpp='$CXXCPP $CPPFLAGS'
52450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52454 cat >conftest.$ac_ext <<_ACEOF
52455 /* confdefs.h. */
52456 _ACEOF
52457 cat confdefs.h >>conftest.$ac_ext
52458 cat >>conftest.$ac_ext <<_ACEOF
52459 /* end confdefs.h. */
52460 #include <stdlib.h>
52462 main ()
52464 strtold(0, 0);
52466 return 0;
52468 _ACEOF
52469 rm -f conftest.$ac_objext
52470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52471 (eval $ac_compile) 2>conftest.er1
52472 ac_status=$?
52473 grep -v '^ *+' conftest.er1 >conftest.err
52474 rm -f conftest.er1
52475 cat conftest.err >&5
52476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52477 (exit $ac_status); } &&
52478 { ac_try='test -z "$ac_cxx_werror_flag"
52479 || test ! -s conftest.err'
52480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52481 (eval $ac_try) 2>&5
52482 ac_status=$?
52483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52484 (exit $ac_status); }; } &&
52485 { ac_try='test -s conftest.$ac_objext'
52486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52487 (eval $ac_try) 2>&5
52488 ac_status=$?
52489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52490 (exit $ac_status); }; }; then
52491 glibcxx_cv_func_strtold_use=yes
52492 else
52493 echo "$as_me: failed program was:" >&5
52494 sed 's/^/| /' conftest.$ac_ext >&5
52496 glibcxx_cv_func_strtold_use=no
52498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52499 ac_ext=c
52500 ac_cpp='$CPP $CPPFLAGS'
52501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52509 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
52510 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
52511 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
52513 for ac_func in strtold
52515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52516 echo "$as_me:$LINENO: checking for $ac_func" >&5
52517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52518 if eval "test \"\${$as_ac_var+set}\" = set"; then
52519 echo $ECHO_N "(cached) $ECHO_C" >&6
52520 else
52521 if test x$gcc_no_link = xyes; then
52522 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52524 { (exit 1); exit 1; }; }
52526 cat >conftest.$ac_ext <<_ACEOF
52527 /* confdefs.h. */
52528 _ACEOF
52529 cat confdefs.h >>conftest.$ac_ext
52530 cat >>conftest.$ac_ext <<_ACEOF
52531 /* end confdefs.h. */
52532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52534 #define $ac_func innocuous_$ac_func
52536 /* System header to define __stub macros and hopefully few prototypes,
52537 which can conflict with char $ac_func (); below.
52538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52539 <limits.h> exists even on freestanding compilers. */
52541 #ifdef __STDC__
52542 # include <limits.h>
52543 #else
52544 # include <assert.h>
52545 #endif
52547 #undef $ac_func
52549 /* Override any gcc2 internal prototype to avoid an error. */
52550 #ifdef __cplusplus
52551 extern "C"
52553 #endif
52554 /* We use char because int might match the return type of a gcc2
52555 builtin and then its argument prototype would still apply. */
52556 char $ac_func ();
52557 /* The GNU C library defines this for functions which it implements
52558 to always fail with ENOSYS. Some functions are actually named
52559 something starting with __ and the normal name is an alias. */
52560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52561 choke me
52562 #else
52563 char (*f) () = $ac_func;
52564 #endif
52565 #ifdef __cplusplus
52567 #endif
52570 main ()
52572 return f != $ac_func;
52574 return 0;
52576 _ACEOF
52577 rm -f conftest.$ac_objext conftest$ac_exeext
52578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52579 (eval $ac_link) 2>conftest.er1
52580 ac_status=$?
52581 grep -v '^ *+' conftest.er1 >conftest.err
52582 rm -f conftest.er1
52583 cat conftest.err >&5
52584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52585 (exit $ac_status); } &&
52586 { ac_try='test -z "$ac_c_werror_flag"
52587 || test ! -s conftest.err'
52588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52589 (eval $ac_try) 2>&5
52590 ac_status=$?
52591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52592 (exit $ac_status); }; } &&
52593 { ac_try='test -s conftest$ac_exeext'
52594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52595 (eval $ac_try) 2>&5
52596 ac_status=$?
52597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52598 (exit $ac_status); }; }; then
52599 eval "$as_ac_var=yes"
52600 else
52601 echo "$as_me: failed program was:" >&5
52602 sed 's/^/| /' conftest.$ac_ext >&5
52604 eval "$as_ac_var=no"
52606 rm -f conftest.err conftest.$ac_objext \
52607 conftest$ac_exeext conftest.$ac_ext
52609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52611 if test `eval echo '${'$as_ac_var'}'` = yes; then
52612 cat >>confdefs.h <<_ACEOF
52613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52614 _ACEOF
52617 done
52622 echo "$as_me:$LINENO: checking for strtof declaration" >&5
52623 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52624 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52625 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52626 echo $ECHO_N "(cached) $ECHO_C" >&6
52627 else
52631 ac_ext=cc
52632 ac_cpp='$CXXCPP $CPPFLAGS'
52633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52637 cat >conftest.$ac_ext <<_ACEOF
52638 /* confdefs.h. */
52639 _ACEOF
52640 cat confdefs.h >>conftest.$ac_ext
52641 cat >>conftest.$ac_ext <<_ACEOF
52642 /* end confdefs.h. */
52643 #include <stdlib.h>
52645 main ()
52647 strtof(0, 0);
52649 return 0;
52651 _ACEOF
52652 rm -f conftest.$ac_objext
52653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52654 (eval $ac_compile) 2>conftest.er1
52655 ac_status=$?
52656 grep -v '^ *+' conftest.er1 >conftest.err
52657 rm -f conftest.er1
52658 cat conftest.err >&5
52659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52660 (exit $ac_status); } &&
52661 { ac_try='test -z "$ac_cxx_werror_flag"
52662 || test ! -s conftest.err'
52663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52664 (eval $ac_try) 2>&5
52665 ac_status=$?
52666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52667 (exit $ac_status); }; } &&
52668 { ac_try='test -s conftest.$ac_objext'
52669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52670 (eval $ac_try) 2>&5
52671 ac_status=$?
52672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52673 (exit $ac_status); }; }; then
52674 glibcxx_cv_func_strtof_use=yes
52675 else
52676 echo "$as_me: failed program was:" >&5
52677 sed 's/^/| /' conftest.$ac_ext >&5
52679 glibcxx_cv_func_strtof_use=no
52681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52682 ac_ext=c
52683 ac_cpp='$CPP $CPPFLAGS'
52684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52692 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52693 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52694 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52696 for ac_func in strtof
52698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52699 echo "$as_me:$LINENO: checking for $ac_func" >&5
52700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52701 if eval "test \"\${$as_ac_var+set}\" = set"; then
52702 echo $ECHO_N "(cached) $ECHO_C" >&6
52703 else
52704 if test x$gcc_no_link = xyes; then
52705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52707 { (exit 1); exit 1; }; }
52709 cat >conftest.$ac_ext <<_ACEOF
52710 /* confdefs.h. */
52711 _ACEOF
52712 cat confdefs.h >>conftest.$ac_ext
52713 cat >>conftest.$ac_ext <<_ACEOF
52714 /* end confdefs.h. */
52715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52717 #define $ac_func innocuous_$ac_func
52719 /* System header to define __stub macros and hopefully few prototypes,
52720 which can conflict with char $ac_func (); below.
52721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52722 <limits.h> exists even on freestanding compilers. */
52724 #ifdef __STDC__
52725 # include <limits.h>
52726 #else
52727 # include <assert.h>
52728 #endif
52730 #undef $ac_func
52732 /* Override any gcc2 internal prototype to avoid an error. */
52733 #ifdef __cplusplus
52734 extern "C"
52736 #endif
52737 /* We use char because int might match the return type of a gcc2
52738 builtin and then its argument prototype would still apply. */
52739 char $ac_func ();
52740 /* The GNU C library defines this for functions which it implements
52741 to always fail with ENOSYS. Some functions are actually named
52742 something starting with __ and the normal name is an alias. */
52743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52744 choke me
52745 #else
52746 char (*f) () = $ac_func;
52747 #endif
52748 #ifdef __cplusplus
52750 #endif
52753 main ()
52755 return f != $ac_func;
52757 return 0;
52759 _ACEOF
52760 rm -f conftest.$ac_objext conftest$ac_exeext
52761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52762 (eval $ac_link) 2>conftest.er1
52763 ac_status=$?
52764 grep -v '^ *+' conftest.er1 >conftest.err
52765 rm -f conftest.er1
52766 cat conftest.err >&5
52767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52768 (exit $ac_status); } &&
52769 { ac_try='test -z "$ac_c_werror_flag"
52770 || test ! -s conftest.err'
52771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52772 (eval $ac_try) 2>&5
52773 ac_status=$?
52774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52775 (exit $ac_status); }; } &&
52776 { ac_try='test -s conftest$ac_exeext'
52777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52778 (eval $ac_try) 2>&5
52779 ac_status=$?
52780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52781 (exit $ac_status); }; }; then
52782 eval "$as_ac_var=yes"
52783 else
52784 echo "$as_me: failed program was:" >&5
52785 sed 's/^/| /' conftest.$ac_ext >&5
52787 eval "$as_ac_var=no"
52789 rm -f conftest.err conftest.$ac_objext \
52790 conftest$ac_exeext conftest.$ac_ext
52792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52794 if test `eval echo '${'$as_ac_var'}'` = yes; then
52795 cat >>confdefs.h <<_ACEOF
52796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52797 _ACEOF
52800 done
52805 CXXFLAGS="$ac_save_CXXFLAGS"
52808 # For showmanyc_helper().
52811 for ac_header in sys/ioctl.h sys/filio.h
52813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52815 echo "$as_me:$LINENO: checking for $ac_header" >&5
52816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52818 echo $ECHO_N "(cached) $ECHO_C" >&6
52820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52822 else
52823 # Is the header compilable?
52824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52826 cat >conftest.$ac_ext <<_ACEOF
52827 /* confdefs.h. */
52828 _ACEOF
52829 cat confdefs.h >>conftest.$ac_ext
52830 cat >>conftest.$ac_ext <<_ACEOF
52831 /* end confdefs.h. */
52832 $ac_includes_default
52833 #include <$ac_header>
52834 _ACEOF
52835 rm -f conftest.$ac_objext
52836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52837 (eval $ac_compile) 2>conftest.er1
52838 ac_status=$?
52839 grep -v '^ *+' conftest.er1 >conftest.err
52840 rm -f conftest.er1
52841 cat conftest.err >&5
52842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52843 (exit $ac_status); } &&
52844 { ac_try='test -z "$ac_c_werror_flag"
52845 || test ! -s conftest.err'
52846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52847 (eval $ac_try) 2>&5
52848 ac_status=$?
52849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52850 (exit $ac_status); }; } &&
52851 { ac_try='test -s conftest.$ac_objext'
52852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52853 (eval $ac_try) 2>&5
52854 ac_status=$?
52855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52856 (exit $ac_status); }; }; then
52857 ac_header_compiler=yes
52858 else
52859 echo "$as_me: failed program was:" >&5
52860 sed 's/^/| /' conftest.$ac_ext >&5
52862 ac_header_compiler=no
52864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52866 echo "${ECHO_T}$ac_header_compiler" >&6
52868 # Is the header present?
52869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52871 cat >conftest.$ac_ext <<_ACEOF
52872 /* confdefs.h. */
52873 _ACEOF
52874 cat confdefs.h >>conftest.$ac_ext
52875 cat >>conftest.$ac_ext <<_ACEOF
52876 /* end confdefs.h. */
52877 #include <$ac_header>
52878 _ACEOF
52879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52881 ac_status=$?
52882 grep -v '^ *+' conftest.er1 >conftest.err
52883 rm -f conftest.er1
52884 cat conftest.err >&5
52885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52886 (exit $ac_status); } >/dev/null; then
52887 if test -s conftest.err; then
52888 ac_cpp_err=$ac_c_preproc_warn_flag
52889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52890 else
52891 ac_cpp_err=
52893 else
52894 ac_cpp_err=yes
52896 if test -z "$ac_cpp_err"; then
52897 ac_header_preproc=yes
52898 else
52899 echo "$as_me: failed program was:" >&5
52900 sed 's/^/| /' conftest.$ac_ext >&5
52902 ac_header_preproc=no
52904 rm -f conftest.err conftest.$ac_ext
52905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52906 echo "${ECHO_T}$ac_header_preproc" >&6
52908 # So? What about this header?
52909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52910 yes:no: )
52911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52915 ac_header_preproc=yes
52917 no:yes:* )
52918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52931 cat <<\_ASBOX
52932 ## ----------------------------------------- ##
52933 ## Report this to the package-unused lists. ##
52934 ## ----------------------------------------- ##
52935 _ASBOX
52937 sed "s/^/$as_me: WARNING: /" >&2
52939 esac
52940 echo "$as_me:$LINENO: checking for $ac_header" >&5
52941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52943 echo $ECHO_N "(cached) $ECHO_C" >&6
52944 else
52945 eval "$as_ac_Header=\$ac_header_preproc"
52947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52952 cat >>confdefs.h <<_ACEOF
52953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52954 _ACEOF
52958 done
52961 if test "${glibcxx_cv_POLL+set}" = set; then
52962 echo $ECHO_N "(cached) $ECHO_C" >&6
52963 else
52965 if test x$gcc_no_link = xyes; then
52966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52968 { (exit 1); exit 1; }; }
52970 cat >conftest.$ac_ext <<_ACEOF
52971 /* confdefs.h. */
52972 _ACEOF
52973 cat confdefs.h >>conftest.$ac_ext
52974 cat >>conftest.$ac_ext <<_ACEOF
52975 /* end confdefs.h. */
52976 #include <poll.h>
52978 main ()
52980 struct pollfd pfd[1];
52981 pfd[0].events = POLLIN;
52982 poll(pfd, 1, 0);
52984 return 0;
52986 _ACEOF
52987 rm -f conftest.$ac_objext conftest$ac_exeext
52988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52989 (eval $ac_link) 2>conftest.er1
52990 ac_status=$?
52991 grep -v '^ *+' conftest.er1 >conftest.err
52992 rm -f conftest.er1
52993 cat conftest.err >&5
52994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52995 (exit $ac_status); } &&
52996 { ac_try='test -z "$ac_c_werror_flag"
52997 || test ! -s conftest.err'
52998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52999 (eval $ac_try) 2>&5
53000 ac_status=$?
53001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53002 (exit $ac_status); }; } &&
53003 { ac_try='test -s conftest$ac_exeext'
53004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53005 (eval $ac_try) 2>&5
53006 ac_status=$?
53007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53008 (exit $ac_status); }; }; then
53009 glibcxx_cv_POLL=yes
53010 else
53011 echo "$as_me: failed program was:" >&5
53012 sed 's/^/| /' conftest.$ac_ext >&5
53014 glibcxx_cv_POLL=no
53016 rm -f conftest.err conftest.$ac_objext \
53017 conftest$ac_exeext conftest.$ac_ext
53021 if test $glibcxx_cv_POLL = yes; then
53022 cat >>confdefs.h <<\_ACEOF
53023 #define HAVE_POLL 1
53024 _ACEOF
53029 if test "${glibcxx_cv_S_ISREG+set}" = set; then
53030 echo $ECHO_N "(cached) $ECHO_C" >&6
53031 else
53033 if test x$gcc_no_link = xyes; then
53034 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53036 { (exit 1); exit 1; }; }
53038 cat >conftest.$ac_ext <<_ACEOF
53039 /* confdefs.h. */
53040 _ACEOF
53041 cat confdefs.h >>conftest.$ac_ext
53042 cat >>conftest.$ac_ext <<_ACEOF
53043 /* end confdefs.h. */
53044 #include <sys/stat.h>
53046 main ()
53048 struct stat buffer;
53049 fstat(0, &buffer);
53050 S_ISREG(buffer.st_mode);
53052 return 0;
53054 _ACEOF
53055 rm -f conftest.$ac_objext conftest$ac_exeext
53056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53057 (eval $ac_link) 2>conftest.er1
53058 ac_status=$?
53059 grep -v '^ *+' conftest.er1 >conftest.err
53060 rm -f conftest.er1
53061 cat conftest.err >&5
53062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53063 (exit $ac_status); } &&
53064 { ac_try='test -z "$ac_c_werror_flag"
53065 || test ! -s conftest.err'
53066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53067 (eval $ac_try) 2>&5
53068 ac_status=$?
53069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53070 (exit $ac_status); }; } &&
53071 { ac_try='test -s conftest$ac_exeext'
53072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53073 (eval $ac_try) 2>&5
53074 ac_status=$?
53075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53076 (exit $ac_status); }; }; then
53077 glibcxx_cv_S_ISREG=yes
53078 else
53079 echo "$as_me: failed program was:" >&5
53080 sed 's/^/| /' conftest.$ac_ext >&5
53082 glibcxx_cv_S_ISREG=no
53084 rm -f conftest.err conftest.$ac_objext \
53085 conftest$ac_exeext conftest.$ac_ext
53089 if test "${glibcxx_cv_S_IFREG+set}" = set; then
53090 echo $ECHO_N "(cached) $ECHO_C" >&6
53091 else
53093 if test x$gcc_no_link = xyes; then
53094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53096 { (exit 1); exit 1; }; }
53098 cat >conftest.$ac_ext <<_ACEOF
53099 /* confdefs.h. */
53100 _ACEOF
53101 cat confdefs.h >>conftest.$ac_ext
53102 cat >>conftest.$ac_ext <<_ACEOF
53103 /* end confdefs.h. */
53104 #include <sys/stat.h>
53106 main ()
53108 struct stat buffer;
53109 fstat(0, &buffer);
53110 S_IFREG & buffer.st_mode;
53112 return 0;
53114 _ACEOF
53115 rm -f conftest.$ac_objext conftest$ac_exeext
53116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53117 (eval $ac_link) 2>conftest.er1
53118 ac_status=$?
53119 grep -v '^ *+' conftest.er1 >conftest.err
53120 rm -f conftest.er1
53121 cat conftest.err >&5
53122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53123 (exit $ac_status); } &&
53124 { ac_try='test -z "$ac_c_werror_flag"
53125 || test ! -s conftest.err'
53126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53127 (eval $ac_try) 2>&5
53128 ac_status=$?
53129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53130 (exit $ac_status); }; } &&
53131 { ac_try='test -s conftest$ac_exeext'
53132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53133 (eval $ac_try) 2>&5
53134 ac_status=$?
53135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53136 (exit $ac_status); }; }; then
53137 glibcxx_cv_S_IFREG=yes
53138 else
53139 echo "$as_me: failed program was:" >&5
53140 sed 's/^/| /' conftest.$ac_ext >&5
53142 glibcxx_cv_S_IFREG=no
53144 rm -f conftest.err conftest.$ac_objext \
53145 conftest$ac_exeext conftest.$ac_ext
53149 if test $glibcxx_cv_S_ISREG = yes; then
53150 cat >>confdefs.h <<\_ACEOF
53151 #define HAVE_S_ISREG 1
53152 _ACEOF
53154 elif test $glibcxx_cv_S_IFREG = yes; then
53155 cat >>confdefs.h <<\_ACEOF
53156 #define HAVE_S_IFREG 1
53157 _ACEOF
53162 # For xsputn_2().
53164 for ac_header in sys/uio.h
53166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53168 echo "$as_me:$LINENO: checking for $ac_header" >&5
53169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53171 echo $ECHO_N "(cached) $ECHO_C" >&6
53173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53175 else
53176 # Is the header compilable?
53177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53179 cat >conftest.$ac_ext <<_ACEOF
53180 /* confdefs.h. */
53181 _ACEOF
53182 cat confdefs.h >>conftest.$ac_ext
53183 cat >>conftest.$ac_ext <<_ACEOF
53184 /* end confdefs.h. */
53185 $ac_includes_default
53186 #include <$ac_header>
53187 _ACEOF
53188 rm -f conftest.$ac_objext
53189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53190 (eval $ac_compile) 2>conftest.er1
53191 ac_status=$?
53192 grep -v '^ *+' conftest.er1 >conftest.err
53193 rm -f conftest.er1
53194 cat conftest.err >&5
53195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53196 (exit $ac_status); } &&
53197 { ac_try='test -z "$ac_c_werror_flag"
53198 || test ! -s conftest.err'
53199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53200 (eval $ac_try) 2>&5
53201 ac_status=$?
53202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53203 (exit $ac_status); }; } &&
53204 { ac_try='test -s conftest.$ac_objext'
53205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53206 (eval $ac_try) 2>&5
53207 ac_status=$?
53208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53209 (exit $ac_status); }; }; then
53210 ac_header_compiler=yes
53211 else
53212 echo "$as_me: failed program was:" >&5
53213 sed 's/^/| /' conftest.$ac_ext >&5
53215 ac_header_compiler=no
53217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53219 echo "${ECHO_T}$ac_header_compiler" >&6
53221 # Is the header present?
53222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53224 cat >conftest.$ac_ext <<_ACEOF
53225 /* confdefs.h. */
53226 _ACEOF
53227 cat confdefs.h >>conftest.$ac_ext
53228 cat >>conftest.$ac_ext <<_ACEOF
53229 /* end confdefs.h. */
53230 #include <$ac_header>
53231 _ACEOF
53232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53234 ac_status=$?
53235 grep -v '^ *+' conftest.er1 >conftest.err
53236 rm -f conftest.er1
53237 cat conftest.err >&5
53238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53239 (exit $ac_status); } >/dev/null; then
53240 if test -s conftest.err; then
53241 ac_cpp_err=$ac_c_preproc_warn_flag
53242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53243 else
53244 ac_cpp_err=
53246 else
53247 ac_cpp_err=yes
53249 if test -z "$ac_cpp_err"; then
53250 ac_header_preproc=yes
53251 else
53252 echo "$as_me: failed program was:" >&5
53253 sed 's/^/| /' conftest.$ac_ext >&5
53255 ac_header_preproc=no
53257 rm -f conftest.err conftest.$ac_ext
53258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53259 echo "${ECHO_T}$ac_header_preproc" >&6
53261 # So? What about this header?
53262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53263 yes:no: )
53264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53268 ac_header_preproc=yes
53270 no:yes:* )
53271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53284 cat <<\_ASBOX
53285 ## ----------------------------------------- ##
53286 ## Report this to the package-unused lists. ##
53287 ## ----------------------------------------- ##
53288 _ASBOX
53290 sed "s/^/$as_me: WARNING: /" >&2
53292 esac
53293 echo "$as_me:$LINENO: checking for $ac_header" >&5
53294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53296 echo $ECHO_N "(cached) $ECHO_C" >&6
53297 else
53298 eval "$as_ac_Header=\$ac_header_preproc"
53300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53305 cat >>confdefs.h <<_ACEOF
53306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53307 _ACEOF
53311 done
53314 if test "${glibcxx_cv_WRITEV+set}" = set; then
53315 echo $ECHO_N "(cached) $ECHO_C" >&6
53316 else
53318 if test x$gcc_no_link = xyes; then
53319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53321 { (exit 1); exit 1; }; }
53323 cat >conftest.$ac_ext <<_ACEOF
53324 /* confdefs.h. */
53325 _ACEOF
53326 cat confdefs.h >>conftest.$ac_ext
53327 cat >>conftest.$ac_ext <<_ACEOF
53328 /* end confdefs.h. */
53329 #include <sys/uio.h>
53331 main ()
53333 struct iovec iov[2];
53334 writev(0, iov, 0);
53336 return 0;
53338 _ACEOF
53339 rm -f conftest.$ac_objext conftest$ac_exeext
53340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53341 (eval $ac_link) 2>conftest.er1
53342 ac_status=$?
53343 grep -v '^ *+' conftest.er1 >conftest.err
53344 rm -f conftest.er1
53345 cat conftest.err >&5
53346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53347 (exit $ac_status); } &&
53348 { ac_try='test -z "$ac_c_werror_flag"
53349 || test ! -s conftest.err'
53350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53351 (eval $ac_try) 2>&5
53352 ac_status=$?
53353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53354 (exit $ac_status); }; } &&
53355 { ac_try='test -s conftest$ac_exeext'
53356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53357 (eval $ac_try) 2>&5
53358 ac_status=$?
53359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53360 (exit $ac_status); }; }; then
53361 glibcxx_cv_WRITEV=yes
53362 else
53363 echo "$as_me: failed program was:" >&5
53364 sed 's/^/| /' conftest.$ac_ext >&5
53366 glibcxx_cv_WRITEV=no
53368 rm -f conftest.err conftest.$ac_objext \
53369 conftest$ac_exeext conftest.$ac_ext
53373 if test $glibcxx_cv_WRITEV = yes; then
53374 cat >>confdefs.h <<\_ACEOF
53375 #define HAVE_WRITEV 1
53376 _ACEOF
53381 cat >>confdefs.h <<\_ACEOF
53382 #define HAVE_LC_MESSAGES 1
53383 _ACEOF
53386 cat >conftest.$ac_ext <<_ACEOF
53387 /* confdefs.h. */
53388 _ACEOF
53389 cat confdefs.h >>conftest.$ac_ext
53390 cat >>conftest.$ac_ext <<_ACEOF
53391 /* end confdefs.h. */
53392 #include <setjmp.h>
53394 main ()
53396 sigjmp_buf env;
53397 while (! sigsetjmp (env, 1))
53398 siglongjmp (env, 1);
53401 return 0;
53403 _ACEOF
53404 rm -f conftest.$ac_objext
53405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53406 (eval $ac_compile) 2>conftest.er1
53407 ac_status=$?
53408 grep -v '^ *+' conftest.er1 >conftest.err
53409 rm -f conftest.er1
53410 cat conftest.err >&5
53411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53412 (exit $ac_status); } &&
53413 { ac_try='test -z "$ac_c_werror_flag"
53414 || test ! -s conftest.err'
53415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53416 (eval $ac_try) 2>&5
53417 ac_status=$?
53418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53419 (exit $ac_status); }; } &&
53420 { ac_try='test -s conftest.$ac_objext'
53421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53422 (eval $ac_try) 2>&5
53423 ac_status=$?
53424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53425 (exit $ac_status); }; }; then
53427 cat >>confdefs.h <<\_ACEOF
53428 #define HAVE_SIGSETJMP 1
53429 _ACEOF
53431 else
53432 echo "$as_me: failed program was:" >&5
53433 sed 's/^/| /' conftest.$ac_ext >&5
53436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53438 cat >>confdefs.h <<\_ACEOF
53439 #define HAVE_MMAP 1
53440 _ACEOF
53444 *-freebsd*)
53461 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
53462 machine/endian.h machine/param.h sys/machine.h sys/types.h \
53463 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
53464 sys/time.h unistd.h
53466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53468 echo "$as_me:$LINENO: checking for $ac_header" >&5
53469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53471 echo $ECHO_N "(cached) $ECHO_C" >&6
53473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53475 else
53476 # Is the header compilable?
53477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53479 cat >conftest.$ac_ext <<_ACEOF
53480 /* confdefs.h. */
53481 _ACEOF
53482 cat confdefs.h >>conftest.$ac_ext
53483 cat >>conftest.$ac_ext <<_ACEOF
53484 /* end confdefs.h. */
53485 $ac_includes_default
53486 #include <$ac_header>
53487 _ACEOF
53488 rm -f conftest.$ac_objext
53489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53490 (eval $ac_compile) 2>conftest.er1
53491 ac_status=$?
53492 grep -v '^ *+' conftest.er1 >conftest.err
53493 rm -f conftest.er1
53494 cat conftest.err >&5
53495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53496 (exit $ac_status); } &&
53497 { ac_try='test -z "$ac_c_werror_flag"
53498 || test ! -s conftest.err'
53499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53500 (eval $ac_try) 2>&5
53501 ac_status=$?
53502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53503 (exit $ac_status); }; } &&
53504 { ac_try='test -s conftest.$ac_objext'
53505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53506 (eval $ac_try) 2>&5
53507 ac_status=$?
53508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53509 (exit $ac_status); }; }; then
53510 ac_header_compiler=yes
53511 else
53512 echo "$as_me: failed program was:" >&5
53513 sed 's/^/| /' conftest.$ac_ext >&5
53515 ac_header_compiler=no
53517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53519 echo "${ECHO_T}$ac_header_compiler" >&6
53521 # Is the header present?
53522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53524 cat >conftest.$ac_ext <<_ACEOF
53525 /* confdefs.h. */
53526 _ACEOF
53527 cat confdefs.h >>conftest.$ac_ext
53528 cat >>conftest.$ac_ext <<_ACEOF
53529 /* end confdefs.h. */
53530 #include <$ac_header>
53531 _ACEOF
53532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53534 ac_status=$?
53535 grep -v '^ *+' conftest.er1 >conftest.err
53536 rm -f conftest.er1
53537 cat conftest.err >&5
53538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53539 (exit $ac_status); } >/dev/null; then
53540 if test -s conftest.err; then
53541 ac_cpp_err=$ac_c_preproc_warn_flag
53542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53543 else
53544 ac_cpp_err=
53546 else
53547 ac_cpp_err=yes
53549 if test -z "$ac_cpp_err"; then
53550 ac_header_preproc=yes
53551 else
53552 echo "$as_me: failed program was:" >&5
53553 sed 's/^/| /' conftest.$ac_ext >&5
53555 ac_header_preproc=no
53557 rm -f conftest.err conftest.$ac_ext
53558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53559 echo "${ECHO_T}$ac_header_preproc" >&6
53561 # So? What about this header?
53562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53563 yes:no: )
53564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53568 ac_header_preproc=yes
53570 no:yes:* )
53571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53584 cat <<\_ASBOX
53585 ## ----------------------------------------- ##
53586 ## Report this to the package-unused lists. ##
53587 ## ----------------------------------------- ##
53588 _ASBOX
53590 sed "s/^/$as_me: WARNING: /" >&2
53592 esac
53593 echo "$as_me:$LINENO: checking for $ac_header" >&5
53594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53596 echo $ECHO_N "(cached) $ECHO_C" >&6
53597 else
53598 eval "$as_ac_Header=\$ac_header_preproc"
53600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53605 cat >>confdefs.h <<_ACEOF
53606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53607 _ACEOF
53611 done
53613 SECTION_FLAGS='-ffunction-sections -fdata-sections'
53616 # If we're not using GNU ld, then there's no point in even trying these
53617 # tests. Check for that first. We should have already tested for gld
53618 # by now (in libtool), but require it now just to be safe...
53619 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53620 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53624 # The name set by libtool depends on the version of libtool. Shame on us
53625 # for depending on an impl detail, but c'est la vie. Older versions used
53626 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53627 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53628 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
53629 # set (hence we're using an older libtool), then set it.
53630 if test x${with_gnu_ld+set} != xset; then
53631 if test x${ac_cv_prog_gnu_ld+set} != xset; then
53632 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
53633 with_gnu_ld=no
53634 else
53635 with_gnu_ld=$ac_cv_prog_gnu_ld
53639 # Start by getting the version number. I think the libtool test already
53640 # does some of this, but throws away the result.
53642 ldver=`$LD --version 2>/dev/null | head -1 | \
53643 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53645 glibcxx_gnu_ld_version=`echo $ldver | \
53646 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53648 # Set --gc-sections.
53649 if test "$with_gnu_ld" = "notbroken"; then
53650 # GNU ld it is! Joy and bunny rabbits!
53652 # All these tests are for C++; save the language and the compiler flags.
53653 # Need to do this so that g++ won't try to link in libstdc++
53654 ac_test_CFLAGS="${CFLAGS+set}"
53655 ac_save_CFLAGS="$CFLAGS"
53656 CFLAGS='-x c++ -Wl,--gc-sections'
53658 # Check for -Wl,--gc-sections
53659 # XXX This test is broken at the moment, as symbols required for linking
53660 # are now in libsupc++ (not built yet). In addition, this test has
53661 # cored on solaris in the past. In addition, --gc-sections doesn't
53662 # really work at the moment (keeps on discarding used sections, first
53663 # .eh_frame and now some of the glibc sections for iconv).
53664 # Bzzzzt. Thanks for playing, maybe next time.
53665 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53666 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53667 if test "$cross_compiling" = yes; then
53668 ac_sectionLDflags=yes
53669 else
53670 cat >conftest.$ac_ext <<_ACEOF
53671 /* confdefs.h. */
53672 _ACEOF
53673 cat confdefs.h >>conftest.$ac_ext
53674 cat >>conftest.$ac_ext <<_ACEOF
53675 /* end confdefs.h. */
53677 int main(void)
53679 try { throw 1; }
53680 catch (...) { };
53681 return 0;
53684 _ACEOF
53685 rm -f conftest$ac_exeext
53686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53687 (eval $ac_link) 2>&5
53688 ac_status=$?
53689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53692 (eval $ac_try) 2>&5
53693 ac_status=$?
53694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53695 (exit $ac_status); }; }; then
53696 ac_sectionLDflags=yes
53697 else
53698 echo "$as_me: program exited with status $ac_status" >&5
53699 echo "$as_me: failed program was:" >&5
53700 sed 's/^/| /' conftest.$ac_ext >&5
53702 ( exit $ac_status )
53703 ac_sectionLDflags=no
53705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53707 if test "$ac_test_CFLAGS" = set; then
53708 CFLAGS="$ac_save_CFLAGS"
53709 else
53710 # this is the suspicious part
53711 CFLAGS=''
53713 if test "$ac_sectionLDflags" = "yes"; then
53714 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53716 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53717 echo "${ECHO_T}$ac_sectionLDflags" >&6
53720 # Set linker optimization flags.
53721 if test x"$with_gnu_ld" = x"yes"; then
53722 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53730 echo "$as_me:$LINENO: checking for main in -lm" >&5
53731 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53732 if test "${ac_cv_lib_m_main+set}" = set; then
53733 echo $ECHO_N "(cached) $ECHO_C" >&6
53734 else
53735 ac_check_lib_save_LIBS=$LIBS
53736 LIBS="-lm $LIBS"
53737 if test x$gcc_no_link = xyes; then
53738 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53740 { (exit 1); exit 1; }; }
53742 cat >conftest.$ac_ext <<_ACEOF
53743 /* confdefs.h. */
53744 _ACEOF
53745 cat confdefs.h >>conftest.$ac_ext
53746 cat >>conftest.$ac_ext <<_ACEOF
53747 /* end confdefs.h. */
53751 main ()
53753 main ();
53755 return 0;
53757 _ACEOF
53758 rm -f conftest.$ac_objext conftest$ac_exeext
53759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53760 (eval $ac_link) 2>conftest.er1
53761 ac_status=$?
53762 grep -v '^ *+' conftest.er1 >conftest.err
53763 rm -f conftest.er1
53764 cat conftest.err >&5
53765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53766 (exit $ac_status); } &&
53767 { ac_try='test -z "$ac_c_werror_flag"
53768 || test ! -s conftest.err'
53769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53770 (eval $ac_try) 2>&5
53771 ac_status=$?
53772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53773 (exit $ac_status); }; } &&
53774 { ac_try='test -s conftest$ac_exeext'
53775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53776 (eval $ac_try) 2>&5
53777 ac_status=$?
53778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53779 (exit $ac_status); }; }; then
53780 ac_cv_lib_m_main=yes
53781 else
53782 echo "$as_me: failed program was:" >&5
53783 sed 's/^/| /' conftest.$ac_ext >&5
53785 ac_cv_lib_m_main=no
53787 rm -f conftest.err conftest.$ac_objext \
53788 conftest$ac_exeext conftest.$ac_ext
53789 LIBS=$ac_check_lib_save_LIBS
53791 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53792 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53793 if test $ac_cv_lib_m_main = yes; then
53794 cat >>confdefs.h <<_ACEOF
53795 #define HAVE_LIBM 1
53796 _ACEOF
53798 LIBS="-lm $LIBS"
53803 for ac_func in copysignf
53805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53806 echo "$as_me:$LINENO: checking for $ac_func" >&5
53807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53808 if eval "test \"\${$as_ac_var+set}\" = set"; then
53809 echo $ECHO_N "(cached) $ECHO_C" >&6
53810 else
53811 if test x$gcc_no_link = xyes; then
53812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53814 { (exit 1); exit 1; }; }
53816 cat >conftest.$ac_ext <<_ACEOF
53817 /* confdefs.h. */
53818 _ACEOF
53819 cat confdefs.h >>conftest.$ac_ext
53820 cat >>conftest.$ac_ext <<_ACEOF
53821 /* end confdefs.h. */
53822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53824 #define $ac_func innocuous_$ac_func
53826 /* System header to define __stub macros and hopefully few prototypes,
53827 which can conflict with char $ac_func (); below.
53828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53829 <limits.h> exists even on freestanding compilers. */
53831 #ifdef __STDC__
53832 # include <limits.h>
53833 #else
53834 # include <assert.h>
53835 #endif
53837 #undef $ac_func
53839 /* Override any gcc2 internal prototype to avoid an error. */
53840 #ifdef __cplusplus
53841 extern "C"
53843 #endif
53844 /* We use char because int might match the return type of a gcc2
53845 builtin and then its argument prototype would still apply. */
53846 char $ac_func ();
53847 /* The GNU C library defines this for functions which it implements
53848 to always fail with ENOSYS. Some functions are actually named
53849 something starting with __ and the normal name is an alias. */
53850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53851 choke me
53852 #else
53853 char (*f) () = $ac_func;
53854 #endif
53855 #ifdef __cplusplus
53857 #endif
53860 main ()
53862 return f != $ac_func;
53864 return 0;
53866 _ACEOF
53867 rm -f conftest.$ac_objext conftest$ac_exeext
53868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53869 (eval $ac_link) 2>conftest.er1
53870 ac_status=$?
53871 grep -v '^ *+' conftest.er1 >conftest.err
53872 rm -f conftest.er1
53873 cat conftest.err >&5
53874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53875 (exit $ac_status); } &&
53876 { ac_try='test -z "$ac_c_werror_flag"
53877 || test ! -s conftest.err'
53878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53879 (eval $ac_try) 2>&5
53880 ac_status=$?
53881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53882 (exit $ac_status); }; } &&
53883 { ac_try='test -s conftest$ac_exeext'
53884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53885 (eval $ac_try) 2>&5
53886 ac_status=$?
53887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53888 (exit $ac_status); }; }; then
53889 eval "$as_ac_var=yes"
53890 else
53891 echo "$as_me: failed program was:" >&5
53892 sed 's/^/| /' conftest.$ac_ext >&5
53894 eval "$as_ac_var=no"
53896 rm -f conftest.err conftest.$ac_objext \
53897 conftest$ac_exeext conftest.$ac_ext
53899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53901 if test `eval echo '${'$as_ac_var'}'` = yes; then
53902 cat >>confdefs.h <<_ACEOF
53903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53904 _ACEOF
53906 else
53907 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53909 done
53913 for ac_func in __signbit
53915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53916 echo "$as_me:$LINENO: checking for $ac_func" >&5
53917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53918 if eval "test \"\${$as_ac_var+set}\" = set"; then
53919 echo $ECHO_N "(cached) $ECHO_C" >&6
53920 else
53921 if test x$gcc_no_link = xyes; then
53922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53924 { (exit 1); exit 1; }; }
53926 cat >conftest.$ac_ext <<_ACEOF
53927 /* confdefs.h. */
53928 _ACEOF
53929 cat confdefs.h >>conftest.$ac_ext
53930 cat >>conftest.$ac_ext <<_ACEOF
53931 /* end confdefs.h. */
53932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53934 #define $ac_func innocuous_$ac_func
53936 /* System header to define __stub macros and hopefully few prototypes,
53937 which can conflict with char $ac_func (); below.
53938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53939 <limits.h> exists even on freestanding compilers. */
53941 #ifdef __STDC__
53942 # include <limits.h>
53943 #else
53944 # include <assert.h>
53945 #endif
53947 #undef $ac_func
53949 /* Override any gcc2 internal prototype to avoid an error. */
53950 #ifdef __cplusplus
53951 extern "C"
53953 #endif
53954 /* We use char because int might match the return type of a gcc2
53955 builtin and then its argument prototype would still apply. */
53956 char $ac_func ();
53957 /* The GNU C library defines this for functions which it implements
53958 to always fail with ENOSYS. Some functions are actually named
53959 something starting with __ and the normal name is an alias. */
53960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53961 choke me
53962 #else
53963 char (*f) () = $ac_func;
53964 #endif
53965 #ifdef __cplusplus
53967 #endif
53970 main ()
53972 return f != $ac_func;
53974 return 0;
53976 _ACEOF
53977 rm -f conftest.$ac_objext conftest$ac_exeext
53978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53979 (eval $ac_link) 2>conftest.er1
53980 ac_status=$?
53981 grep -v '^ *+' conftest.er1 >conftest.err
53982 rm -f conftest.er1
53983 cat conftest.err >&5
53984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53985 (exit $ac_status); } &&
53986 { ac_try='test -z "$ac_c_werror_flag"
53987 || test ! -s conftest.err'
53988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53989 (eval $ac_try) 2>&5
53990 ac_status=$?
53991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53992 (exit $ac_status); }; } &&
53993 { ac_try='test -s conftest$ac_exeext'
53994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53995 (eval $ac_try) 2>&5
53996 ac_status=$?
53997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53998 (exit $ac_status); }; }; then
53999 eval "$as_ac_var=yes"
54000 else
54001 echo "$as_me: failed program was:" >&5
54002 sed 's/^/| /' conftest.$ac_ext >&5
54004 eval "$as_ac_var=no"
54006 rm -f conftest.err conftest.$ac_objext \
54007 conftest$ac_exeext conftest.$ac_ext
54009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54011 if test `eval echo '${'$as_ac_var'}'` = yes; then
54012 cat >>confdefs.h <<_ACEOF
54013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54014 _ACEOF
54016 else
54017 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54019 done
54022 for ac_func in __signbitf
54024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54025 echo "$as_me:$LINENO: checking for $ac_func" >&5
54026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54027 if eval "test \"\${$as_ac_var+set}\" = set"; then
54028 echo $ECHO_N "(cached) $ECHO_C" >&6
54029 else
54030 if test x$gcc_no_link = xyes; then
54031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54033 { (exit 1); exit 1; }; }
54035 cat >conftest.$ac_ext <<_ACEOF
54036 /* confdefs.h. */
54037 _ACEOF
54038 cat confdefs.h >>conftest.$ac_ext
54039 cat >>conftest.$ac_ext <<_ACEOF
54040 /* end confdefs.h. */
54041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54043 #define $ac_func innocuous_$ac_func
54045 /* System header to define __stub macros and hopefully few prototypes,
54046 which can conflict with char $ac_func (); below.
54047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54048 <limits.h> exists even on freestanding compilers. */
54050 #ifdef __STDC__
54051 # include <limits.h>
54052 #else
54053 # include <assert.h>
54054 #endif
54056 #undef $ac_func
54058 /* Override any gcc2 internal prototype to avoid an error. */
54059 #ifdef __cplusplus
54060 extern "C"
54062 #endif
54063 /* We use char because int might match the return type of a gcc2
54064 builtin and then its argument prototype would still apply. */
54065 char $ac_func ();
54066 /* The GNU C library defines this for functions which it implements
54067 to always fail with ENOSYS. Some functions are actually named
54068 something starting with __ and the normal name is an alias. */
54069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54070 choke me
54071 #else
54072 char (*f) () = $ac_func;
54073 #endif
54074 #ifdef __cplusplus
54076 #endif
54079 main ()
54081 return f != $ac_func;
54083 return 0;
54085 _ACEOF
54086 rm -f conftest.$ac_objext conftest$ac_exeext
54087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54088 (eval $ac_link) 2>conftest.er1
54089 ac_status=$?
54090 grep -v '^ *+' conftest.er1 >conftest.err
54091 rm -f conftest.er1
54092 cat conftest.err >&5
54093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54094 (exit $ac_status); } &&
54095 { ac_try='test -z "$ac_c_werror_flag"
54096 || test ! -s conftest.err'
54097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54098 (eval $ac_try) 2>&5
54099 ac_status=$?
54100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54101 (exit $ac_status); }; } &&
54102 { ac_try='test -s conftest$ac_exeext'
54103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54104 (eval $ac_try) 2>&5
54105 ac_status=$?
54106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54107 (exit $ac_status); }; }; then
54108 eval "$as_ac_var=yes"
54109 else
54110 echo "$as_me: failed program was:" >&5
54111 sed 's/^/| /' conftest.$ac_ext >&5
54113 eval "$as_ac_var=no"
54115 rm -f conftest.err conftest.$ac_objext \
54116 conftest$ac_exeext conftest.$ac_ext
54118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54120 if test `eval echo '${'$as_ac_var'}'` = yes; then
54121 cat >>confdefs.h <<_ACEOF
54122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54123 _ACEOF
54125 else
54126 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54128 done
54131 if test x$ac_cv_func_copysignl = x"yes"; then
54133 for ac_func in __signbitl
54135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54136 echo "$as_me:$LINENO: checking for $ac_func" >&5
54137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54138 if eval "test \"\${$as_ac_var+set}\" = set"; then
54139 echo $ECHO_N "(cached) $ECHO_C" >&6
54140 else
54141 if test x$gcc_no_link = xyes; then
54142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54144 { (exit 1); exit 1; }; }
54146 cat >conftest.$ac_ext <<_ACEOF
54147 /* confdefs.h. */
54148 _ACEOF
54149 cat confdefs.h >>conftest.$ac_ext
54150 cat >>conftest.$ac_ext <<_ACEOF
54151 /* end confdefs.h. */
54152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54154 #define $ac_func innocuous_$ac_func
54156 /* System header to define __stub macros and hopefully few prototypes,
54157 which can conflict with char $ac_func (); below.
54158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54159 <limits.h> exists even on freestanding compilers. */
54161 #ifdef __STDC__
54162 # include <limits.h>
54163 #else
54164 # include <assert.h>
54165 #endif
54167 #undef $ac_func
54169 /* Override any gcc2 internal prototype to avoid an error. */
54170 #ifdef __cplusplus
54171 extern "C"
54173 #endif
54174 /* We use char because int might match the return type of a gcc2
54175 builtin and then its argument prototype would still apply. */
54176 char $ac_func ();
54177 /* The GNU C library defines this for functions which it implements
54178 to always fail with ENOSYS. Some functions are actually named
54179 something starting with __ and the normal name is an alias. */
54180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54181 choke me
54182 #else
54183 char (*f) () = $ac_func;
54184 #endif
54185 #ifdef __cplusplus
54187 #endif
54190 main ()
54192 return f != $ac_func;
54194 return 0;
54196 _ACEOF
54197 rm -f conftest.$ac_objext conftest$ac_exeext
54198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54199 (eval $ac_link) 2>conftest.er1
54200 ac_status=$?
54201 grep -v '^ *+' conftest.er1 >conftest.err
54202 rm -f conftest.er1
54203 cat conftest.err >&5
54204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54205 (exit $ac_status); } &&
54206 { ac_try='test -z "$ac_c_werror_flag"
54207 || test ! -s conftest.err'
54208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54209 (eval $ac_try) 2>&5
54210 ac_status=$?
54211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54212 (exit $ac_status); }; } &&
54213 { ac_try='test -s conftest$ac_exeext'
54214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54215 (eval $ac_try) 2>&5
54216 ac_status=$?
54217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54218 (exit $ac_status); }; }; then
54219 eval "$as_ac_var=yes"
54220 else
54221 echo "$as_me: failed program was:" >&5
54222 sed 's/^/| /' conftest.$ac_ext >&5
54224 eval "$as_ac_var=no"
54226 rm -f conftest.err conftest.$ac_objext \
54227 conftest$ac_exeext conftest.$ac_ext
54229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54231 if test `eval echo '${'$as_ac_var'}'` = yes; then
54232 cat >>confdefs.h <<_ACEOF
54233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54234 _ACEOF
54236 else
54237 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
54239 done
54243 # XXX Review this. Nothing uses it.
54244 if test -n "$LIBMATHOBJS"; then
54245 need_libmath=yes
54250 # Test wchar.h for mbstate_t, which is needed for char_traits and
54251 # others even if wchar_t support is not on.
54252 echo "$as_me:$LINENO: checking for mbstate_t" >&5
54253 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54254 cat >conftest.$ac_ext <<_ACEOF
54255 /* confdefs.h. */
54256 _ACEOF
54257 cat confdefs.h >>conftest.$ac_ext
54258 cat >>conftest.$ac_ext <<_ACEOF
54259 /* end confdefs.h. */
54260 #include <wchar.h>
54262 main ()
54264 mbstate_t teststate;
54266 return 0;
54268 _ACEOF
54269 rm -f conftest.$ac_objext
54270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54271 (eval $ac_compile) 2>conftest.er1
54272 ac_status=$?
54273 grep -v '^ *+' conftest.er1 >conftest.err
54274 rm -f conftest.er1
54275 cat conftest.err >&5
54276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54277 (exit $ac_status); } &&
54278 { ac_try='test -z "$ac_c_werror_flag"
54279 || test ! -s conftest.err'
54280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54281 (eval $ac_try) 2>&5
54282 ac_status=$?
54283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54284 (exit $ac_status); }; } &&
54285 { ac_try='test -s conftest.$ac_objext'
54286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54287 (eval $ac_try) 2>&5
54288 ac_status=$?
54289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54290 (exit $ac_status); }; }; then
54291 have_mbstate_t=yes
54292 else
54293 echo "$as_me: failed program was:" >&5
54294 sed 's/^/| /' conftest.$ac_ext >&5
54296 have_mbstate_t=no
54298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54299 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54300 echo "${ECHO_T}$have_mbstate_t" >&6
54301 if test x"$have_mbstate_t" = xyes; then
54302 cat >>confdefs.h <<\_ACEOF
54303 #define HAVE_MBSTATE_T 1
54304 _ACEOF
54308 # Sanity check for existence of ISO C99 headers for extended encoding.
54310 for ac_header in wchar.h
54312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54314 echo "$as_me:$LINENO: checking for $ac_header" >&5
54315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54317 echo $ECHO_N "(cached) $ECHO_C" >&6
54319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54321 else
54322 # Is the header compilable?
54323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54325 cat >conftest.$ac_ext <<_ACEOF
54326 /* confdefs.h. */
54327 _ACEOF
54328 cat confdefs.h >>conftest.$ac_ext
54329 cat >>conftest.$ac_ext <<_ACEOF
54330 /* end confdefs.h. */
54331 $ac_includes_default
54332 #include <$ac_header>
54333 _ACEOF
54334 rm -f conftest.$ac_objext
54335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54336 (eval $ac_compile) 2>conftest.er1
54337 ac_status=$?
54338 grep -v '^ *+' conftest.er1 >conftest.err
54339 rm -f conftest.er1
54340 cat conftest.err >&5
54341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54342 (exit $ac_status); } &&
54343 { ac_try='test -z "$ac_c_werror_flag"
54344 || test ! -s conftest.err'
54345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54346 (eval $ac_try) 2>&5
54347 ac_status=$?
54348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54349 (exit $ac_status); }; } &&
54350 { ac_try='test -s conftest.$ac_objext'
54351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54352 (eval $ac_try) 2>&5
54353 ac_status=$?
54354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54355 (exit $ac_status); }; }; then
54356 ac_header_compiler=yes
54357 else
54358 echo "$as_me: failed program was:" >&5
54359 sed 's/^/| /' conftest.$ac_ext >&5
54361 ac_header_compiler=no
54363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54365 echo "${ECHO_T}$ac_header_compiler" >&6
54367 # Is the header present?
54368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54370 cat >conftest.$ac_ext <<_ACEOF
54371 /* confdefs.h. */
54372 _ACEOF
54373 cat confdefs.h >>conftest.$ac_ext
54374 cat >>conftest.$ac_ext <<_ACEOF
54375 /* end confdefs.h. */
54376 #include <$ac_header>
54377 _ACEOF
54378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54380 ac_status=$?
54381 grep -v '^ *+' conftest.er1 >conftest.err
54382 rm -f conftest.er1
54383 cat conftest.err >&5
54384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54385 (exit $ac_status); } >/dev/null; then
54386 if test -s conftest.err; then
54387 ac_cpp_err=$ac_c_preproc_warn_flag
54388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54389 else
54390 ac_cpp_err=
54392 else
54393 ac_cpp_err=yes
54395 if test -z "$ac_cpp_err"; then
54396 ac_header_preproc=yes
54397 else
54398 echo "$as_me: failed program was:" >&5
54399 sed 's/^/| /' conftest.$ac_ext >&5
54401 ac_header_preproc=no
54403 rm -f conftest.err conftest.$ac_ext
54404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54405 echo "${ECHO_T}$ac_header_preproc" >&6
54407 # So? What about this header?
54408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54409 yes:no: )
54410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54414 ac_header_preproc=yes
54416 no:yes:* )
54417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54430 cat <<\_ASBOX
54431 ## ----------------------------------------- ##
54432 ## Report this to the package-unused lists. ##
54433 ## ----------------------------------------- ##
54434 _ASBOX
54436 sed "s/^/$as_me: WARNING: /" >&2
54438 esac
54439 echo "$as_me:$LINENO: checking for $ac_header" >&5
54440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54442 echo $ECHO_N "(cached) $ECHO_C" >&6
54443 else
54444 eval "$as_ac_Header=\$ac_header_preproc"
54446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54451 cat >>confdefs.h <<_ACEOF
54452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54453 _ACEOF
54454 ac_has_wchar_h=yes
54455 else
54456 ac_has_wchar_h=no
54459 done
54462 for ac_header in wctype.h
54464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54466 echo "$as_me:$LINENO: checking for $ac_header" >&5
54467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54469 echo $ECHO_N "(cached) $ECHO_C" >&6
54471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54473 else
54474 # Is the header compilable?
54475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54477 cat >conftest.$ac_ext <<_ACEOF
54478 /* confdefs.h. */
54479 _ACEOF
54480 cat confdefs.h >>conftest.$ac_ext
54481 cat >>conftest.$ac_ext <<_ACEOF
54482 /* end confdefs.h. */
54483 $ac_includes_default
54484 #include <$ac_header>
54485 _ACEOF
54486 rm -f conftest.$ac_objext
54487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54488 (eval $ac_compile) 2>conftest.er1
54489 ac_status=$?
54490 grep -v '^ *+' conftest.er1 >conftest.err
54491 rm -f conftest.er1
54492 cat conftest.err >&5
54493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54494 (exit $ac_status); } &&
54495 { ac_try='test -z "$ac_c_werror_flag"
54496 || test ! -s conftest.err'
54497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54498 (eval $ac_try) 2>&5
54499 ac_status=$?
54500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54501 (exit $ac_status); }; } &&
54502 { ac_try='test -s conftest.$ac_objext'
54503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54504 (eval $ac_try) 2>&5
54505 ac_status=$?
54506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54507 (exit $ac_status); }; }; then
54508 ac_header_compiler=yes
54509 else
54510 echo "$as_me: failed program was:" >&5
54511 sed 's/^/| /' conftest.$ac_ext >&5
54513 ac_header_compiler=no
54515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54517 echo "${ECHO_T}$ac_header_compiler" >&6
54519 # Is the header present?
54520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54522 cat >conftest.$ac_ext <<_ACEOF
54523 /* confdefs.h. */
54524 _ACEOF
54525 cat confdefs.h >>conftest.$ac_ext
54526 cat >>conftest.$ac_ext <<_ACEOF
54527 /* end confdefs.h. */
54528 #include <$ac_header>
54529 _ACEOF
54530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54532 ac_status=$?
54533 grep -v '^ *+' conftest.er1 >conftest.err
54534 rm -f conftest.er1
54535 cat conftest.err >&5
54536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54537 (exit $ac_status); } >/dev/null; then
54538 if test -s conftest.err; then
54539 ac_cpp_err=$ac_c_preproc_warn_flag
54540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54541 else
54542 ac_cpp_err=
54544 else
54545 ac_cpp_err=yes
54547 if test -z "$ac_cpp_err"; then
54548 ac_header_preproc=yes
54549 else
54550 echo "$as_me: failed program was:" >&5
54551 sed 's/^/| /' conftest.$ac_ext >&5
54553 ac_header_preproc=no
54555 rm -f conftest.err conftest.$ac_ext
54556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54557 echo "${ECHO_T}$ac_header_preproc" >&6
54559 # So? What about this header?
54560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54561 yes:no: )
54562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54566 ac_header_preproc=yes
54568 no:yes:* )
54569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54582 cat <<\_ASBOX
54583 ## ----------------------------------------- ##
54584 ## Report this to the package-unused lists. ##
54585 ## ----------------------------------------- ##
54586 _ASBOX
54588 sed "s/^/$as_me: WARNING: /" >&2
54590 esac
54591 echo "$as_me:$LINENO: checking for $ac_header" >&5
54592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54594 echo $ECHO_N "(cached) $ECHO_C" >&6
54595 else
54596 eval "$as_ac_Header=\$ac_header_preproc"
54598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54603 cat >>confdefs.h <<_ACEOF
54604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54605 _ACEOF
54606 ac_has_wctype_h=yes
54607 else
54608 ac_has_wctype_h=no
54611 done
54614 # Only continue checking if the ISO C99 headers exist and support is on.
54615 if test x"$ac_has_wchar_h" = xyes &&
54616 test x"$ac_has_wctype_h" = xyes &&
54617 test x"$enable_c_mbchar" != xno; then
54619 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54620 # numeric_limits can instantiate type_traits<wchar_t>
54621 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54622 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54623 cat >conftest.$ac_ext <<_ACEOF
54624 /* confdefs.h. */
54625 _ACEOF
54626 cat confdefs.h >>conftest.$ac_ext
54627 cat >>conftest.$ac_ext <<_ACEOF
54628 /* end confdefs.h. */
54629 #include <wchar.h>
54631 main ()
54633 int i = WCHAR_MIN; int j = WCHAR_MAX;
54635 return 0;
54637 _ACEOF
54638 rm -f conftest.$ac_objext
54639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54640 (eval $ac_compile) 2>conftest.er1
54641 ac_status=$?
54642 grep -v '^ *+' conftest.er1 >conftest.err
54643 rm -f conftest.er1
54644 cat conftest.err >&5
54645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54646 (exit $ac_status); } &&
54647 { ac_try='test -z "$ac_c_werror_flag"
54648 || test ! -s conftest.err'
54649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54650 (eval $ac_try) 2>&5
54651 ac_status=$?
54652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54653 (exit $ac_status); }; } &&
54654 { ac_try='test -s conftest.$ac_objext'
54655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54656 (eval $ac_try) 2>&5
54657 ac_status=$?
54658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54659 (exit $ac_status); }; }; then
54660 has_wchar_minmax=yes
54661 else
54662 echo "$as_me: failed program was:" >&5
54663 sed 's/^/| /' conftest.$ac_ext >&5
54665 has_wchar_minmax=no
54667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54668 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54669 echo "${ECHO_T}$has_wchar_minmax" >&6
54671 # Test wchar.h for WEOF, which is what we use to determine whether
54672 # to specialize for char_traits<wchar_t> or not.
54673 echo "$as_me:$LINENO: checking for WEOF" >&5
54674 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54675 cat >conftest.$ac_ext <<_ACEOF
54676 /* confdefs.h. */
54677 _ACEOF
54678 cat confdefs.h >>conftest.$ac_ext
54679 cat >>conftest.$ac_ext <<_ACEOF
54680 /* end confdefs.h. */
54682 #include <wchar.h>
54683 #include <stddef.h>
54685 main ()
54687 wint_t i = WEOF;
54689 return 0;
54691 _ACEOF
54692 rm -f conftest.$ac_objext
54693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54694 (eval $ac_compile) 2>conftest.er1
54695 ac_status=$?
54696 grep -v '^ *+' conftest.er1 >conftest.err
54697 rm -f conftest.er1
54698 cat conftest.err >&5
54699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54700 (exit $ac_status); } &&
54701 { ac_try='test -z "$ac_c_werror_flag"
54702 || test ! -s conftest.err'
54703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54704 (eval $ac_try) 2>&5
54705 ac_status=$?
54706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54707 (exit $ac_status); }; } &&
54708 { ac_try='test -s conftest.$ac_objext'
54709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54710 (eval $ac_try) 2>&5
54711 ac_status=$?
54712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54713 (exit $ac_status); }; }; then
54714 has_weof=yes
54715 else
54716 echo "$as_me: failed program was:" >&5
54717 sed 's/^/| /' conftest.$ac_ext >&5
54719 has_weof=no
54721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54722 echo "$as_me:$LINENO: result: $has_weof" >&5
54723 echo "${ECHO_T}$has_weof" >&6
54725 # Tests for wide character functions used in char_traits<wchar_t>.
54726 ac_wfuncs=yes
54733 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54736 echo "$as_me:$LINENO: checking for $ac_func" >&5
54737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54738 if eval "test \"\${$as_ac_var+set}\" = set"; then
54739 echo $ECHO_N "(cached) $ECHO_C" >&6
54740 else
54741 if test x$gcc_no_link = xyes; then
54742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54744 { (exit 1); exit 1; }; }
54746 cat >conftest.$ac_ext <<_ACEOF
54747 /* confdefs.h. */
54748 _ACEOF
54749 cat confdefs.h >>conftest.$ac_ext
54750 cat >>conftest.$ac_ext <<_ACEOF
54751 /* end confdefs.h. */
54752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54754 #define $ac_func innocuous_$ac_func
54756 /* System header to define __stub macros and hopefully few prototypes,
54757 which can conflict with char $ac_func (); below.
54758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54759 <limits.h> exists even on freestanding compilers. */
54761 #ifdef __STDC__
54762 # include <limits.h>
54763 #else
54764 # include <assert.h>
54765 #endif
54767 #undef $ac_func
54769 /* Override any gcc2 internal prototype to avoid an error. */
54770 #ifdef __cplusplus
54771 extern "C"
54773 #endif
54774 /* We use char because int might match the return type of a gcc2
54775 builtin and then its argument prototype would still apply. */
54776 char $ac_func ();
54777 /* The GNU C library defines this for functions which it implements
54778 to always fail with ENOSYS. Some functions are actually named
54779 something starting with __ and the normal name is an alias. */
54780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54781 choke me
54782 #else
54783 char (*f) () = $ac_func;
54784 #endif
54785 #ifdef __cplusplus
54787 #endif
54790 main ()
54792 return f != $ac_func;
54794 return 0;
54796 _ACEOF
54797 rm -f conftest.$ac_objext conftest$ac_exeext
54798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54799 (eval $ac_link) 2>conftest.er1
54800 ac_status=$?
54801 grep -v '^ *+' conftest.er1 >conftest.err
54802 rm -f conftest.er1
54803 cat conftest.err >&5
54804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54805 (exit $ac_status); } &&
54806 { ac_try='test -z "$ac_c_werror_flag"
54807 || test ! -s conftest.err'
54808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54809 (eval $ac_try) 2>&5
54810 ac_status=$?
54811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54812 (exit $ac_status); }; } &&
54813 { ac_try='test -s conftest$ac_exeext'
54814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54815 (eval $ac_try) 2>&5
54816 ac_status=$?
54817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54818 (exit $ac_status); }; }; then
54819 eval "$as_ac_var=yes"
54820 else
54821 echo "$as_me: failed program was:" >&5
54822 sed 's/^/| /' conftest.$ac_ext >&5
54824 eval "$as_ac_var=no"
54826 rm -f conftest.err conftest.$ac_objext \
54827 conftest$ac_exeext conftest.$ac_ext
54829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54831 if test `eval echo '${'$as_ac_var'}'` = yes; then
54832 cat >>confdefs.h <<_ACEOF
54833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54834 _ACEOF
54836 else
54837 ac_wfuncs=no
54839 done
54842 # Checks for names injected into std:: by the c_std headers.
54889 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54890 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54891 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54892 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54893 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54894 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54897 echo "$as_me:$LINENO: checking for $ac_func" >&5
54898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54899 if eval "test \"\${$as_ac_var+set}\" = set"; then
54900 echo $ECHO_N "(cached) $ECHO_C" >&6
54901 else
54902 if test x$gcc_no_link = xyes; then
54903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54904 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54905 { (exit 1); exit 1; }; }
54907 cat >conftest.$ac_ext <<_ACEOF
54908 /* confdefs.h. */
54909 _ACEOF
54910 cat confdefs.h >>conftest.$ac_ext
54911 cat >>conftest.$ac_ext <<_ACEOF
54912 /* end confdefs.h. */
54913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54915 #define $ac_func innocuous_$ac_func
54917 /* System header to define __stub macros and hopefully few prototypes,
54918 which can conflict with char $ac_func (); below.
54919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54920 <limits.h> exists even on freestanding compilers. */
54922 #ifdef __STDC__
54923 # include <limits.h>
54924 #else
54925 # include <assert.h>
54926 #endif
54928 #undef $ac_func
54930 /* Override any gcc2 internal prototype to avoid an error. */
54931 #ifdef __cplusplus
54932 extern "C"
54934 #endif
54935 /* We use char because int might match the return type of a gcc2
54936 builtin and then its argument prototype would still apply. */
54937 char $ac_func ();
54938 /* The GNU C library defines this for functions which it implements
54939 to always fail with ENOSYS. Some functions are actually named
54940 something starting with __ and the normal name is an alias. */
54941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54942 choke me
54943 #else
54944 char (*f) () = $ac_func;
54945 #endif
54946 #ifdef __cplusplus
54948 #endif
54951 main ()
54953 return f != $ac_func;
54955 return 0;
54957 _ACEOF
54958 rm -f conftest.$ac_objext conftest$ac_exeext
54959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54960 (eval $ac_link) 2>conftest.er1
54961 ac_status=$?
54962 grep -v '^ *+' conftest.er1 >conftest.err
54963 rm -f conftest.er1
54964 cat conftest.err >&5
54965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54966 (exit $ac_status); } &&
54967 { ac_try='test -z "$ac_c_werror_flag"
54968 || test ! -s conftest.err'
54969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54970 (eval $ac_try) 2>&5
54971 ac_status=$?
54972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54973 (exit $ac_status); }; } &&
54974 { ac_try='test -s conftest$ac_exeext'
54975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54976 (eval $ac_try) 2>&5
54977 ac_status=$?
54978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54979 (exit $ac_status); }; }; then
54980 eval "$as_ac_var=yes"
54981 else
54982 echo "$as_me: failed program was:" >&5
54983 sed 's/^/| /' conftest.$ac_ext >&5
54985 eval "$as_ac_var=no"
54987 rm -f conftest.err conftest.$ac_objext \
54988 conftest$ac_exeext conftest.$ac_ext
54990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54992 if test `eval echo '${'$as_ac_var'}'` = yes; then
54993 cat >>confdefs.h <<_ACEOF
54994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54995 _ACEOF
54997 else
54998 ac_wfuncs=no
55000 done
55003 # Checks for wide character functions that are not required
55004 # for basic wchar_t support. Don't disable support if they are missing.
55005 # Injection of these is wrapped with guard macros.
55011 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
55013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55014 echo "$as_me:$LINENO: checking for $ac_func" >&5
55015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55016 if eval "test \"\${$as_ac_var+set}\" = set"; then
55017 echo $ECHO_N "(cached) $ECHO_C" >&6
55018 else
55019 if test x$gcc_no_link = xyes; then
55020 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55022 { (exit 1); exit 1; }; }
55024 cat >conftest.$ac_ext <<_ACEOF
55025 /* confdefs.h. */
55026 _ACEOF
55027 cat confdefs.h >>conftest.$ac_ext
55028 cat >>conftest.$ac_ext <<_ACEOF
55029 /* end confdefs.h. */
55030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55032 #define $ac_func innocuous_$ac_func
55034 /* System header to define __stub macros and hopefully few prototypes,
55035 which can conflict with char $ac_func (); below.
55036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55037 <limits.h> exists even on freestanding compilers. */
55039 #ifdef __STDC__
55040 # include <limits.h>
55041 #else
55042 # include <assert.h>
55043 #endif
55045 #undef $ac_func
55047 /* Override any gcc2 internal prototype to avoid an error. */
55048 #ifdef __cplusplus
55049 extern "C"
55051 #endif
55052 /* We use char because int might match the return type of a gcc2
55053 builtin and then its argument prototype would still apply. */
55054 char $ac_func ();
55055 /* The GNU C library defines this for functions which it implements
55056 to always fail with ENOSYS. Some functions are actually named
55057 something starting with __ and the normal name is an alias. */
55058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55059 choke me
55060 #else
55061 char (*f) () = $ac_func;
55062 #endif
55063 #ifdef __cplusplus
55065 #endif
55068 main ()
55070 return f != $ac_func;
55072 return 0;
55074 _ACEOF
55075 rm -f conftest.$ac_objext conftest$ac_exeext
55076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55077 (eval $ac_link) 2>conftest.er1
55078 ac_status=$?
55079 grep -v '^ *+' conftest.er1 >conftest.err
55080 rm -f conftest.er1
55081 cat conftest.err >&5
55082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55083 (exit $ac_status); } &&
55084 { ac_try='test -z "$ac_c_werror_flag"
55085 || test ! -s conftest.err'
55086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55087 (eval $ac_try) 2>&5
55088 ac_status=$?
55089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55090 (exit $ac_status); }; } &&
55091 { ac_try='test -s conftest$ac_exeext'
55092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55093 (eval $ac_try) 2>&5
55094 ac_status=$?
55095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55096 (exit $ac_status); }; }; then
55097 eval "$as_ac_var=yes"
55098 else
55099 echo "$as_me: failed program was:" >&5
55100 sed 's/^/| /' conftest.$ac_ext >&5
55102 eval "$as_ac_var=no"
55104 rm -f conftest.err conftest.$ac_objext \
55105 conftest$ac_exeext conftest.$ac_ext
55107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55109 if test `eval echo '${'$as_ac_var'}'` = yes; then
55110 cat >>confdefs.h <<_ACEOF
55111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55112 _ACEOF
55115 done
55118 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55119 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55120 if test x"$has_weof" = xyes &&
55121 test x"$has_wchar_minmax" = xyes &&
55122 test x"$ac_wfuncs" = xyes;
55123 then
55124 ac_isoC99_wchar_t=yes
55125 else
55126 ac_isoC99_wchar_t=no
55128 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55129 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55131 # Use iconv for wchar_t to char conversions. As such, check for
55132 # X/Open Portability Guide, version 2 features (XPG2).
55133 if test "${ac_cv_header_iconv_h+set}" = set; then
55134 echo "$as_me:$LINENO: checking for iconv.h" >&5
55135 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55136 if test "${ac_cv_header_iconv_h+set}" = set; then
55137 echo $ECHO_N "(cached) $ECHO_C" >&6
55139 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55140 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55141 else
55142 # Is the header compilable?
55143 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55144 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55145 cat >conftest.$ac_ext <<_ACEOF
55146 /* confdefs.h. */
55147 _ACEOF
55148 cat confdefs.h >>conftest.$ac_ext
55149 cat >>conftest.$ac_ext <<_ACEOF
55150 /* end confdefs.h. */
55151 $ac_includes_default
55152 #include <iconv.h>
55153 _ACEOF
55154 rm -f conftest.$ac_objext
55155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55156 (eval $ac_compile) 2>conftest.er1
55157 ac_status=$?
55158 grep -v '^ *+' conftest.er1 >conftest.err
55159 rm -f conftest.er1
55160 cat conftest.err >&5
55161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55162 (exit $ac_status); } &&
55163 { ac_try='test -z "$ac_c_werror_flag"
55164 || test ! -s conftest.err'
55165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55166 (eval $ac_try) 2>&5
55167 ac_status=$?
55168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55169 (exit $ac_status); }; } &&
55170 { ac_try='test -s conftest.$ac_objext'
55171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55172 (eval $ac_try) 2>&5
55173 ac_status=$?
55174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55175 (exit $ac_status); }; }; then
55176 ac_header_compiler=yes
55177 else
55178 echo "$as_me: failed program was:" >&5
55179 sed 's/^/| /' conftest.$ac_ext >&5
55181 ac_header_compiler=no
55183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55185 echo "${ECHO_T}$ac_header_compiler" >&6
55187 # Is the header present?
55188 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55189 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55190 cat >conftest.$ac_ext <<_ACEOF
55191 /* confdefs.h. */
55192 _ACEOF
55193 cat confdefs.h >>conftest.$ac_ext
55194 cat >>conftest.$ac_ext <<_ACEOF
55195 /* end confdefs.h. */
55196 #include <iconv.h>
55197 _ACEOF
55198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55200 ac_status=$?
55201 grep -v '^ *+' conftest.er1 >conftest.err
55202 rm -f conftest.er1
55203 cat conftest.err >&5
55204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55205 (exit $ac_status); } >/dev/null; then
55206 if test -s conftest.err; then
55207 ac_cpp_err=$ac_c_preproc_warn_flag
55208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55209 else
55210 ac_cpp_err=
55212 else
55213 ac_cpp_err=yes
55215 if test -z "$ac_cpp_err"; then
55216 ac_header_preproc=yes
55217 else
55218 echo "$as_me: failed program was:" >&5
55219 sed 's/^/| /' conftest.$ac_ext >&5
55221 ac_header_preproc=no
55223 rm -f conftest.err conftest.$ac_ext
55224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55225 echo "${ECHO_T}$ac_header_preproc" >&6
55227 # So? What about this header?
55228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55229 yes:no: )
55230 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55231 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55232 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
55233 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
55234 ac_header_preproc=yes
55236 no:yes:* )
55237 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55238 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55239 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55240 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55241 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
55242 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
55243 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
55244 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
55245 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55246 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55247 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
55248 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
55250 cat <<\_ASBOX
55251 ## ----------------------------------------- ##
55252 ## Report this to the package-unused lists. ##
55253 ## ----------------------------------------- ##
55254 _ASBOX
55256 sed "s/^/$as_me: WARNING: /" >&2
55258 esac
55259 echo "$as_me:$LINENO: checking for iconv.h" >&5
55260 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55261 if test "${ac_cv_header_iconv_h+set}" = set; then
55262 echo $ECHO_N "(cached) $ECHO_C" >&6
55263 else
55264 ac_cv_header_iconv_h=$ac_header_preproc
55266 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55267 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55270 if test $ac_cv_header_iconv_h = yes; then
55271 ac_has_iconv_h=yes
55272 else
55273 ac_has_iconv_h=no
55277 if test "${ac_cv_header_langinfo_h+set}" = set; then
55278 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55279 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55280 if test "${ac_cv_header_langinfo_h+set}" = set; then
55281 echo $ECHO_N "(cached) $ECHO_C" >&6
55283 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55284 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55285 else
55286 # Is the header compilable?
55287 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55288 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55289 cat >conftest.$ac_ext <<_ACEOF
55290 /* confdefs.h. */
55291 _ACEOF
55292 cat confdefs.h >>conftest.$ac_ext
55293 cat >>conftest.$ac_ext <<_ACEOF
55294 /* end confdefs.h. */
55295 $ac_includes_default
55296 #include <langinfo.h>
55297 _ACEOF
55298 rm -f conftest.$ac_objext
55299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55300 (eval $ac_compile) 2>conftest.er1
55301 ac_status=$?
55302 grep -v '^ *+' conftest.er1 >conftest.err
55303 rm -f conftest.er1
55304 cat conftest.err >&5
55305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55306 (exit $ac_status); } &&
55307 { ac_try='test -z "$ac_c_werror_flag"
55308 || test ! -s conftest.err'
55309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55310 (eval $ac_try) 2>&5
55311 ac_status=$?
55312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55313 (exit $ac_status); }; } &&
55314 { ac_try='test -s conftest.$ac_objext'
55315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55316 (eval $ac_try) 2>&5
55317 ac_status=$?
55318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55319 (exit $ac_status); }; }; then
55320 ac_header_compiler=yes
55321 else
55322 echo "$as_me: failed program was:" >&5
55323 sed 's/^/| /' conftest.$ac_ext >&5
55325 ac_header_compiler=no
55327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55329 echo "${ECHO_T}$ac_header_compiler" >&6
55331 # Is the header present?
55332 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55333 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55334 cat >conftest.$ac_ext <<_ACEOF
55335 /* confdefs.h. */
55336 _ACEOF
55337 cat confdefs.h >>conftest.$ac_ext
55338 cat >>conftest.$ac_ext <<_ACEOF
55339 /* end confdefs.h. */
55340 #include <langinfo.h>
55341 _ACEOF
55342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55344 ac_status=$?
55345 grep -v '^ *+' conftest.er1 >conftest.err
55346 rm -f conftest.er1
55347 cat conftest.err >&5
55348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55349 (exit $ac_status); } >/dev/null; then
55350 if test -s conftest.err; then
55351 ac_cpp_err=$ac_c_preproc_warn_flag
55352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55353 else
55354 ac_cpp_err=
55356 else
55357 ac_cpp_err=yes
55359 if test -z "$ac_cpp_err"; then
55360 ac_header_preproc=yes
55361 else
55362 echo "$as_me: failed program was:" >&5
55363 sed 's/^/| /' conftest.$ac_ext >&5
55365 ac_header_preproc=no
55367 rm -f conftest.err conftest.$ac_ext
55368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55369 echo "${ECHO_T}$ac_header_preproc" >&6
55371 # So? What about this header?
55372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55373 yes:no: )
55374 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55375 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55376 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
55377 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
55378 ac_header_preproc=yes
55380 no:yes:* )
55381 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55382 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55383 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55384 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55385 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
55386 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
55387 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
55388 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
55389 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55390 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55391 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
55392 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
55394 cat <<\_ASBOX
55395 ## ----------------------------------------- ##
55396 ## Report this to the package-unused lists. ##
55397 ## ----------------------------------------- ##
55398 _ASBOX
55400 sed "s/^/$as_me: WARNING: /" >&2
55402 esac
55403 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55404 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55405 if test "${ac_cv_header_langinfo_h+set}" = set; then
55406 echo $ECHO_N "(cached) $ECHO_C" >&6
55407 else
55408 ac_cv_header_langinfo_h=$ac_header_preproc
55410 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55411 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55414 if test $ac_cv_header_langinfo_h = yes; then
55415 ac_has_langinfo_h=yes
55416 else
55417 ac_has_langinfo_h=no
55422 # Check for existence of libiconv.a providing XPG2 wchar_t support.
55423 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55424 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55425 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55426 echo $ECHO_N "(cached) $ECHO_C" >&6
55427 else
55428 ac_check_lib_save_LIBS=$LIBS
55429 LIBS="-liconv $LIBS"
55430 if test x$gcc_no_link = xyes; then
55431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55433 { (exit 1); exit 1; }; }
55435 cat >conftest.$ac_ext <<_ACEOF
55436 /* confdefs.h. */
55437 _ACEOF
55438 cat confdefs.h >>conftest.$ac_ext
55439 cat >>conftest.$ac_ext <<_ACEOF
55440 /* end confdefs.h. */
55442 /* Override any gcc2 internal prototype to avoid an error. */
55443 #ifdef __cplusplus
55444 extern "C"
55445 #endif
55446 /* We use char because int might match the return type of a gcc2
55447 builtin and then its argument prototype would still apply. */
55448 char iconv ();
55450 main ()
55452 iconv ();
55454 return 0;
55456 _ACEOF
55457 rm -f conftest.$ac_objext conftest$ac_exeext
55458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55459 (eval $ac_link) 2>conftest.er1
55460 ac_status=$?
55461 grep -v '^ *+' conftest.er1 >conftest.err
55462 rm -f conftest.er1
55463 cat conftest.err >&5
55464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55465 (exit $ac_status); } &&
55466 { ac_try='test -z "$ac_c_werror_flag"
55467 || test ! -s conftest.err'
55468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55469 (eval $ac_try) 2>&5
55470 ac_status=$?
55471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55472 (exit $ac_status); }; } &&
55473 { ac_try='test -s conftest$ac_exeext'
55474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55475 (eval $ac_try) 2>&5
55476 ac_status=$?
55477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55478 (exit $ac_status); }; }; then
55479 ac_cv_lib_iconv_iconv=yes
55480 else
55481 echo "$as_me: failed program was:" >&5
55482 sed 's/^/| /' conftest.$ac_ext >&5
55484 ac_cv_lib_iconv_iconv=no
55486 rm -f conftest.err conftest.$ac_objext \
55487 conftest$ac_exeext conftest.$ac_ext
55488 LIBS=$ac_check_lib_save_LIBS
55490 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55491 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55492 if test $ac_cv_lib_iconv_iconv = yes; then
55493 libiconv="-liconv"
55496 ac_save_LIBS="$LIBS"
55497 LIBS="$LIBS $libiconv"
55503 for ac_func in iconv_open iconv_close iconv nl_langinfo
55505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55506 echo "$as_me:$LINENO: checking for $ac_func" >&5
55507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55508 if eval "test \"\${$as_ac_var+set}\" = set"; then
55509 echo $ECHO_N "(cached) $ECHO_C" >&6
55510 else
55511 if test x$gcc_no_link = xyes; then
55512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55514 { (exit 1); exit 1; }; }
55516 cat >conftest.$ac_ext <<_ACEOF
55517 /* confdefs.h. */
55518 _ACEOF
55519 cat confdefs.h >>conftest.$ac_ext
55520 cat >>conftest.$ac_ext <<_ACEOF
55521 /* end confdefs.h. */
55522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55524 #define $ac_func innocuous_$ac_func
55526 /* System header to define __stub macros and hopefully few prototypes,
55527 which can conflict with char $ac_func (); below.
55528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55529 <limits.h> exists even on freestanding compilers. */
55531 #ifdef __STDC__
55532 # include <limits.h>
55533 #else
55534 # include <assert.h>
55535 #endif
55537 #undef $ac_func
55539 /* Override any gcc2 internal prototype to avoid an error. */
55540 #ifdef __cplusplus
55541 extern "C"
55543 #endif
55544 /* We use char because int might match the return type of a gcc2
55545 builtin and then its argument prototype would still apply. */
55546 char $ac_func ();
55547 /* The GNU C library defines this for functions which it implements
55548 to always fail with ENOSYS. Some functions are actually named
55549 something starting with __ and the normal name is an alias. */
55550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55551 choke me
55552 #else
55553 char (*f) () = $ac_func;
55554 #endif
55555 #ifdef __cplusplus
55557 #endif
55560 main ()
55562 return f != $ac_func;
55564 return 0;
55566 _ACEOF
55567 rm -f conftest.$ac_objext conftest$ac_exeext
55568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55569 (eval $ac_link) 2>conftest.er1
55570 ac_status=$?
55571 grep -v '^ *+' conftest.er1 >conftest.err
55572 rm -f conftest.er1
55573 cat conftest.err >&5
55574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55575 (exit $ac_status); } &&
55576 { ac_try='test -z "$ac_c_werror_flag"
55577 || test ! -s conftest.err'
55578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55579 (eval $ac_try) 2>&5
55580 ac_status=$?
55581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55582 (exit $ac_status); }; } &&
55583 { ac_try='test -s conftest$ac_exeext'
55584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55585 (eval $ac_try) 2>&5
55586 ac_status=$?
55587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55588 (exit $ac_status); }; }; then
55589 eval "$as_ac_var=yes"
55590 else
55591 echo "$as_me: failed program was:" >&5
55592 sed 's/^/| /' conftest.$ac_ext >&5
55594 eval "$as_ac_var=no"
55596 rm -f conftest.err conftest.$ac_objext \
55597 conftest$ac_exeext conftest.$ac_ext
55599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55601 if test `eval echo '${'$as_ac_var'}'` = yes; then
55602 cat >>confdefs.h <<_ACEOF
55603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55604 _ACEOF
55605 ac_XPG2funcs=yes
55606 else
55607 ac_XPG2funcs=no
55609 done
55612 LIBS="$ac_save_LIBS"
55614 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55615 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55616 if test x"$ac_has_iconv_h" = xyes &&
55617 test x"$ac_has_langinfo_h" = xyes &&
55618 test x"$ac_XPG2funcs" = xyes;
55619 then
55620 ac_XPG2_wchar_t=yes
55621 else
55622 ac_XPG2_wchar_t=no
55624 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55625 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55627 # At the moment, only enable wchar_t specializations if all the
55628 # above support is present.
55629 if test x"$ac_isoC99_wchar_t" = xyes &&
55630 test x"$ac_XPG2_wchar_t" = xyes;
55631 then
55632 cat >>confdefs.h <<\_ACEOF
55633 #define _GLIBCXX_USE_WCHAR_T 1
55634 _ACEOF
55636 enable_wchar_t=yes
55639 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55640 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55641 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55642 echo "${ECHO_T}$enable_wchar_t" >&6
55644 cat >>confdefs.h <<\_ACEOF
55645 #define HAVE_LC_MESSAGES 1
55646 _ACEOF
55648 cat >>confdefs.h <<\_ACEOF
55649 #define HAVE_GETPAGESIZE 1
55650 _ACEOF
55652 cat >>confdefs.h <<\_ACEOF
55653 #define HAVE_SETENV 1
55654 _ACEOF
55656 cat >>confdefs.h <<\_ACEOF
55657 #define HAVE_SIGSETJMP 1
55658 _ACEOF
55660 cat >>confdefs.h <<\_ACEOF
55661 #define HAVE_COPYSIGN 1
55662 _ACEOF
55664 cat >>confdefs.h <<\_ACEOF
55665 #define HAVE_COPYSIGNF 1
55666 _ACEOF
55668 cat >>confdefs.h <<\_ACEOF
55669 #define HAVE_FINITEF 1
55670 _ACEOF
55672 cat >>confdefs.h <<\_ACEOF
55673 #define HAVE_FINITE 1
55674 _ACEOF
55676 cat >>confdefs.h <<\_ACEOF
55677 #define HAVE_FREXPF 1
55678 _ACEOF
55680 cat >>confdefs.h <<\_ACEOF
55681 #define HAVE_HYPOT 1
55682 _ACEOF
55684 cat >>confdefs.h <<\_ACEOF
55685 #define HAVE_HYPOTF 1
55686 _ACEOF
55688 cat >>confdefs.h <<\_ACEOF
55689 #define HAVE_ISINF 1
55690 _ACEOF
55692 cat >>confdefs.h <<\_ACEOF
55693 #define HAVE_ISNAN 1
55694 _ACEOF
55696 cat >>confdefs.h <<\_ACEOF
55697 #define HAVE_ISNANF 1
55698 _ACEOF
55701 cat >>confdefs.h <<\_ACEOF
55702 #define HAVE_MMAP 1
55703 _ACEOF
55705 cat >>confdefs.h <<\_ACEOF
55706 #define HAVE_ACOSF 1
55707 _ACEOF
55709 cat >>confdefs.h <<\_ACEOF
55710 #define HAVE_ASINF 1
55711 _ACEOF
55713 cat >>confdefs.h <<\_ACEOF
55714 #define HAVE_ATAN2F 1
55715 _ACEOF
55717 cat >>confdefs.h <<\_ACEOF
55718 #define HAVE_ATANF 1
55719 _ACEOF
55721 cat >>confdefs.h <<\_ACEOF
55722 #define HAVE_CEILF 1
55723 _ACEOF
55725 cat >>confdefs.h <<\_ACEOF
55726 #define HAVE_COPYSIGN 1
55727 _ACEOF
55729 cat >>confdefs.h <<\_ACEOF
55730 #define HAVE_COPYSIGNF 1
55731 _ACEOF
55733 cat >>confdefs.h <<\_ACEOF
55734 #define HAVE_COSF 1
55735 _ACEOF
55737 cat >>confdefs.h <<\_ACEOF
55738 #define HAVE_COSHF 1
55739 _ACEOF
55741 cat >>confdefs.h <<\_ACEOF
55742 #define HAVE_EXPF 1
55743 _ACEOF
55745 cat >>confdefs.h <<\_ACEOF
55746 #define HAVE_FABSF 1
55747 _ACEOF
55749 cat >>confdefs.h <<\_ACEOF
55750 #define HAVE_FLOORF 1
55751 _ACEOF
55753 cat >>confdefs.h <<\_ACEOF
55754 #define HAVE_FMODF 1
55755 _ACEOF
55757 cat >>confdefs.h <<\_ACEOF
55758 #define HAVE_FREXPF 1
55759 _ACEOF
55761 cat >>confdefs.h <<\_ACEOF
55762 #define HAVE_LDEXPF 1
55763 _ACEOF
55765 cat >>confdefs.h <<\_ACEOF
55766 #define HAVE_LOG10F 1
55767 _ACEOF
55769 cat >>confdefs.h <<\_ACEOF
55770 #define HAVE_LOGF 1
55771 _ACEOF
55773 cat >>confdefs.h <<\_ACEOF
55774 #define HAVE_MODFF 1
55775 _ACEOF
55777 cat >>confdefs.h <<\_ACEOF
55778 #define HAVE_POWF 1
55779 _ACEOF
55781 cat >>confdefs.h <<\_ACEOF
55782 #define HAVE_SINF 1
55783 _ACEOF
55785 cat >>confdefs.h <<\_ACEOF
55786 #define HAVE_SINHF 1
55787 _ACEOF
55789 cat >>confdefs.h <<\_ACEOF
55790 #define HAVE_SQRTF 1
55791 _ACEOF
55793 cat >>confdefs.h <<\_ACEOF
55794 #define HAVE_TANF 1
55795 _ACEOF
55797 cat >>confdefs.h <<\_ACEOF
55798 #define HAVE_TANHF 1
55799 _ACEOF
55801 if test x"long_double_math_on_this_cpu" = x"yes"; then
55802 cat >>confdefs.h <<\_ACEOF
55803 #define HAVE_FINITEL 1
55804 _ACEOF
55806 cat >>confdefs.h <<\_ACEOF
55807 #define HAVE_ISINFL 1
55808 _ACEOF
55810 cat >>confdefs.h <<\_ACEOF
55811 #define HAVE_ISNANL 1
55812 _ACEOF
55816 *-hpux*)
55829 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55830 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55831 fp.h locale.h float.h inttypes.h
55833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55835 echo "$as_me:$LINENO: checking for $ac_header" >&5
55836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55838 echo $ECHO_N "(cached) $ECHO_C" >&6
55840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55842 else
55843 # Is the header compilable?
55844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55846 cat >conftest.$ac_ext <<_ACEOF
55847 /* confdefs.h. */
55848 _ACEOF
55849 cat confdefs.h >>conftest.$ac_ext
55850 cat >>conftest.$ac_ext <<_ACEOF
55851 /* end confdefs.h. */
55852 $ac_includes_default
55853 #include <$ac_header>
55854 _ACEOF
55855 rm -f conftest.$ac_objext
55856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55857 (eval $ac_compile) 2>conftest.er1
55858 ac_status=$?
55859 grep -v '^ *+' conftest.er1 >conftest.err
55860 rm -f conftest.er1
55861 cat conftest.err >&5
55862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55863 (exit $ac_status); } &&
55864 { ac_try='test -z "$ac_c_werror_flag"
55865 || test ! -s conftest.err'
55866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55867 (eval $ac_try) 2>&5
55868 ac_status=$?
55869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55870 (exit $ac_status); }; } &&
55871 { ac_try='test -s conftest.$ac_objext'
55872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55873 (eval $ac_try) 2>&5
55874 ac_status=$?
55875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55876 (exit $ac_status); }; }; then
55877 ac_header_compiler=yes
55878 else
55879 echo "$as_me: failed program was:" >&5
55880 sed 's/^/| /' conftest.$ac_ext >&5
55882 ac_header_compiler=no
55884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55886 echo "${ECHO_T}$ac_header_compiler" >&6
55888 # Is the header present?
55889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55891 cat >conftest.$ac_ext <<_ACEOF
55892 /* confdefs.h. */
55893 _ACEOF
55894 cat confdefs.h >>conftest.$ac_ext
55895 cat >>conftest.$ac_ext <<_ACEOF
55896 /* end confdefs.h. */
55897 #include <$ac_header>
55898 _ACEOF
55899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55901 ac_status=$?
55902 grep -v '^ *+' conftest.er1 >conftest.err
55903 rm -f conftest.er1
55904 cat conftest.err >&5
55905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55906 (exit $ac_status); } >/dev/null; then
55907 if test -s conftest.err; then
55908 ac_cpp_err=$ac_c_preproc_warn_flag
55909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55910 else
55911 ac_cpp_err=
55913 else
55914 ac_cpp_err=yes
55916 if test -z "$ac_cpp_err"; then
55917 ac_header_preproc=yes
55918 else
55919 echo "$as_me: failed program was:" >&5
55920 sed 's/^/| /' conftest.$ac_ext >&5
55922 ac_header_preproc=no
55924 rm -f conftest.err conftest.$ac_ext
55925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55926 echo "${ECHO_T}$ac_header_preproc" >&6
55928 # So? What about this header?
55929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55930 yes:no: )
55931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55935 ac_header_preproc=yes
55937 no:yes:* )
55938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55951 cat <<\_ASBOX
55952 ## ----------------------------------------- ##
55953 ## Report this to the package-unused lists. ##
55954 ## ----------------------------------------- ##
55955 _ASBOX
55957 sed "s/^/$as_me: WARNING: /" >&2
55959 esac
55960 echo "$as_me:$LINENO: checking for $ac_header" >&5
55961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55963 echo $ECHO_N "(cached) $ECHO_C" >&6
55964 else
55965 eval "$as_ac_Header=\$ac_header_preproc"
55967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55972 cat >>confdefs.h <<_ACEOF
55973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55974 _ACEOF
55978 done
55980 SECTION_FLAGS='-ffunction-sections -fdata-sections'
55983 # If we're not using GNU ld, then there's no point in even trying these
55984 # tests. Check for that first. We should have already tested for gld
55985 # by now (in libtool), but require it now just to be safe...
55986 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55987 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55991 # The name set by libtool depends on the version of libtool. Shame on us
55992 # for depending on an impl detail, but c'est la vie. Older versions used
55993 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55994 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55995 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
55996 # set (hence we're using an older libtool), then set it.
55997 if test x${with_gnu_ld+set} != xset; then
55998 if test x${ac_cv_prog_gnu_ld+set} != xset; then
55999 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
56000 with_gnu_ld=no
56001 else
56002 with_gnu_ld=$ac_cv_prog_gnu_ld
56006 # Start by getting the version number. I think the libtool test already
56007 # does some of this, but throws away the result.
56009 ldver=`$LD --version 2>/dev/null | head -1 | \
56010 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56012 glibcxx_gnu_ld_version=`echo $ldver | \
56013 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56015 # Set --gc-sections.
56016 if test "$with_gnu_ld" = "notbroken"; then
56017 # GNU ld it is! Joy and bunny rabbits!
56019 # All these tests are for C++; save the language and the compiler flags.
56020 # Need to do this so that g++ won't try to link in libstdc++
56021 ac_test_CFLAGS="${CFLAGS+set}"
56022 ac_save_CFLAGS="$CFLAGS"
56023 CFLAGS='-x c++ -Wl,--gc-sections'
56025 # Check for -Wl,--gc-sections
56026 # XXX This test is broken at the moment, as symbols required for linking
56027 # are now in libsupc++ (not built yet). In addition, this test has
56028 # cored on solaris in the past. In addition, --gc-sections doesn't
56029 # really work at the moment (keeps on discarding used sections, first
56030 # .eh_frame and now some of the glibc sections for iconv).
56031 # Bzzzzt. Thanks for playing, maybe next time.
56032 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56033 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56034 if test "$cross_compiling" = yes; then
56035 ac_sectionLDflags=yes
56036 else
56037 cat >conftest.$ac_ext <<_ACEOF
56038 /* confdefs.h. */
56039 _ACEOF
56040 cat confdefs.h >>conftest.$ac_ext
56041 cat >>conftest.$ac_ext <<_ACEOF
56042 /* end confdefs.h. */
56044 int main(void)
56046 try { throw 1; }
56047 catch (...) { };
56048 return 0;
56051 _ACEOF
56052 rm -f conftest$ac_exeext
56053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56054 (eval $ac_link) 2>&5
56055 ac_status=$?
56056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56059 (eval $ac_try) 2>&5
56060 ac_status=$?
56061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56062 (exit $ac_status); }; }; then
56063 ac_sectionLDflags=yes
56064 else
56065 echo "$as_me: program exited with status $ac_status" >&5
56066 echo "$as_me: failed program was:" >&5
56067 sed 's/^/| /' conftest.$ac_ext >&5
56069 ( exit $ac_status )
56070 ac_sectionLDflags=no
56072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56074 if test "$ac_test_CFLAGS" = set; then
56075 CFLAGS="$ac_save_CFLAGS"
56076 else
56077 # this is the suspicious part
56078 CFLAGS=''
56080 if test "$ac_sectionLDflags" = "yes"; then
56081 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56083 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56084 echo "${ECHO_T}$ac_sectionLDflags" >&6
56087 # Set linker optimization flags.
56088 if test x"$with_gnu_ld" = x"yes"; then
56089 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56097 echo "$as_me:$LINENO: checking for main in -lm" >&5
56098 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56099 if test "${ac_cv_lib_m_main+set}" = set; then
56100 echo $ECHO_N "(cached) $ECHO_C" >&6
56101 else
56102 ac_check_lib_save_LIBS=$LIBS
56103 LIBS="-lm $LIBS"
56104 if test x$gcc_no_link = xyes; then
56105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56107 { (exit 1); exit 1; }; }
56109 cat >conftest.$ac_ext <<_ACEOF
56110 /* confdefs.h. */
56111 _ACEOF
56112 cat confdefs.h >>conftest.$ac_ext
56113 cat >>conftest.$ac_ext <<_ACEOF
56114 /* end confdefs.h. */
56118 main ()
56120 main ();
56122 return 0;
56124 _ACEOF
56125 rm -f conftest.$ac_objext conftest$ac_exeext
56126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56127 (eval $ac_link) 2>conftest.er1
56128 ac_status=$?
56129 grep -v '^ *+' conftest.er1 >conftest.err
56130 rm -f conftest.er1
56131 cat conftest.err >&5
56132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56133 (exit $ac_status); } &&
56134 { ac_try='test -z "$ac_c_werror_flag"
56135 || test ! -s conftest.err'
56136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56137 (eval $ac_try) 2>&5
56138 ac_status=$?
56139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56140 (exit $ac_status); }; } &&
56141 { ac_try='test -s conftest$ac_exeext'
56142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56143 (eval $ac_try) 2>&5
56144 ac_status=$?
56145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56146 (exit $ac_status); }; }; then
56147 ac_cv_lib_m_main=yes
56148 else
56149 echo "$as_me: failed program was:" >&5
56150 sed 's/^/| /' conftest.$ac_ext >&5
56152 ac_cv_lib_m_main=no
56154 rm -f conftest.err conftest.$ac_objext \
56155 conftest$ac_exeext conftest.$ac_ext
56156 LIBS=$ac_check_lib_save_LIBS
56158 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56159 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56160 if test $ac_cv_lib_m_main = yes; then
56161 cat >>confdefs.h <<_ACEOF
56162 #define HAVE_LIBM 1
56163 _ACEOF
56165 LIBS="-lm $LIBS"
56170 for ac_func in copysignf
56172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56173 echo "$as_me:$LINENO: checking for $ac_func" >&5
56174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56175 if eval "test \"\${$as_ac_var+set}\" = set"; then
56176 echo $ECHO_N "(cached) $ECHO_C" >&6
56177 else
56178 if test x$gcc_no_link = xyes; then
56179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56181 { (exit 1); exit 1; }; }
56183 cat >conftest.$ac_ext <<_ACEOF
56184 /* confdefs.h. */
56185 _ACEOF
56186 cat confdefs.h >>conftest.$ac_ext
56187 cat >>conftest.$ac_ext <<_ACEOF
56188 /* end confdefs.h. */
56189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56191 #define $ac_func innocuous_$ac_func
56193 /* System header to define __stub macros and hopefully few prototypes,
56194 which can conflict with char $ac_func (); below.
56195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56196 <limits.h> exists even on freestanding compilers. */
56198 #ifdef __STDC__
56199 # include <limits.h>
56200 #else
56201 # include <assert.h>
56202 #endif
56204 #undef $ac_func
56206 /* Override any gcc2 internal prototype to avoid an error. */
56207 #ifdef __cplusplus
56208 extern "C"
56210 #endif
56211 /* We use char because int might match the return type of a gcc2
56212 builtin and then its argument prototype would still apply. */
56213 char $ac_func ();
56214 /* The GNU C library defines this for functions which it implements
56215 to always fail with ENOSYS. Some functions are actually named
56216 something starting with __ and the normal name is an alias. */
56217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56218 choke me
56219 #else
56220 char (*f) () = $ac_func;
56221 #endif
56222 #ifdef __cplusplus
56224 #endif
56227 main ()
56229 return f != $ac_func;
56231 return 0;
56233 _ACEOF
56234 rm -f conftest.$ac_objext conftest$ac_exeext
56235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56236 (eval $ac_link) 2>conftest.er1
56237 ac_status=$?
56238 grep -v '^ *+' conftest.er1 >conftest.err
56239 rm -f conftest.er1
56240 cat conftest.err >&5
56241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56242 (exit $ac_status); } &&
56243 { ac_try='test -z "$ac_c_werror_flag"
56244 || test ! -s conftest.err'
56245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56246 (eval $ac_try) 2>&5
56247 ac_status=$?
56248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56249 (exit $ac_status); }; } &&
56250 { ac_try='test -s conftest$ac_exeext'
56251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56252 (eval $ac_try) 2>&5
56253 ac_status=$?
56254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56255 (exit $ac_status); }; }; then
56256 eval "$as_ac_var=yes"
56257 else
56258 echo "$as_me: failed program was:" >&5
56259 sed 's/^/| /' conftest.$ac_ext >&5
56261 eval "$as_ac_var=no"
56263 rm -f conftest.err conftest.$ac_objext \
56264 conftest$ac_exeext conftest.$ac_ext
56266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56268 if test `eval echo '${'$as_ac_var'}'` = yes; then
56269 cat >>confdefs.h <<_ACEOF
56270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56271 _ACEOF
56273 else
56274 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56276 done
56280 for ac_func in __signbit
56282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56283 echo "$as_me:$LINENO: checking for $ac_func" >&5
56284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56285 if eval "test \"\${$as_ac_var+set}\" = set"; then
56286 echo $ECHO_N "(cached) $ECHO_C" >&6
56287 else
56288 if test x$gcc_no_link = xyes; then
56289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56291 { (exit 1); exit 1; }; }
56293 cat >conftest.$ac_ext <<_ACEOF
56294 /* confdefs.h. */
56295 _ACEOF
56296 cat confdefs.h >>conftest.$ac_ext
56297 cat >>conftest.$ac_ext <<_ACEOF
56298 /* end confdefs.h. */
56299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56301 #define $ac_func innocuous_$ac_func
56303 /* System header to define __stub macros and hopefully few prototypes,
56304 which can conflict with char $ac_func (); below.
56305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56306 <limits.h> exists even on freestanding compilers. */
56308 #ifdef __STDC__
56309 # include <limits.h>
56310 #else
56311 # include <assert.h>
56312 #endif
56314 #undef $ac_func
56316 /* Override any gcc2 internal prototype to avoid an error. */
56317 #ifdef __cplusplus
56318 extern "C"
56320 #endif
56321 /* We use char because int might match the return type of a gcc2
56322 builtin and then its argument prototype would still apply. */
56323 char $ac_func ();
56324 /* The GNU C library defines this for functions which it implements
56325 to always fail with ENOSYS. Some functions are actually named
56326 something starting with __ and the normal name is an alias. */
56327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56328 choke me
56329 #else
56330 char (*f) () = $ac_func;
56331 #endif
56332 #ifdef __cplusplus
56334 #endif
56337 main ()
56339 return f != $ac_func;
56341 return 0;
56343 _ACEOF
56344 rm -f conftest.$ac_objext conftest$ac_exeext
56345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56346 (eval $ac_link) 2>conftest.er1
56347 ac_status=$?
56348 grep -v '^ *+' conftest.er1 >conftest.err
56349 rm -f conftest.er1
56350 cat conftest.err >&5
56351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56352 (exit $ac_status); } &&
56353 { ac_try='test -z "$ac_c_werror_flag"
56354 || test ! -s conftest.err'
56355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56356 (eval $ac_try) 2>&5
56357 ac_status=$?
56358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56359 (exit $ac_status); }; } &&
56360 { ac_try='test -s conftest$ac_exeext'
56361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56362 (eval $ac_try) 2>&5
56363 ac_status=$?
56364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56365 (exit $ac_status); }; }; then
56366 eval "$as_ac_var=yes"
56367 else
56368 echo "$as_me: failed program was:" >&5
56369 sed 's/^/| /' conftest.$ac_ext >&5
56371 eval "$as_ac_var=no"
56373 rm -f conftest.err conftest.$ac_objext \
56374 conftest$ac_exeext conftest.$ac_ext
56376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56378 if test `eval echo '${'$as_ac_var'}'` = yes; then
56379 cat >>confdefs.h <<_ACEOF
56380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56381 _ACEOF
56383 else
56384 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56386 done
56389 for ac_func in __signbitf
56391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56392 echo "$as_me:$LINENO: checking for $ac_func" >&5
56393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56394 if eval "test \"\${$as_ac_var+set}\" = set"; then
56395 echo $ECHO_N "(cached) $ECHO_C" >&6
56396 else
56397 if test x$gcc_no_link = xyes; then
56398 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56400 { (exit 1); exit 1; }; }
56402 cat >conftest.$ac_ext <<_ACEOF
56403 /* confdefs.h. */
56404 _ACEOF
56405 cat confdefs.h >>conftest.$ac_ext
56406 cat >>conftest.$ac_ext <<_ACEOF
56407 /* end confdefs.h. */
56408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56410 #define $ac_func innocuous_$ac_func
56412 /* System header to define __stub macros and hopefully few prototypes,
56413 which can conflict with char $ac_func (); below.
56414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56415 <limits.h> exists even on freestanding compilers. */
56417 #ifdef __STDC__
56418 # include <limits.h>
56419 #else
56420 # include <assert.h>
56421 #endif
56423 #undef $ac_func
56425 /* Override any gcc2 internal prototype to avoid an error. */
56426 #ifdef __cplusplus
56427 extern "C"
56429 #endif
56430 /* We use char because int might match the return type of a gcc2
56431 builtin and then its argument prototype would still apply. */
56432 char $ac_func ();
56433 /* The GNU C library defines this for functions which it implements
56434 to always fail with ENOSYS. Some functions are actually named
56435 something starting with __ and the normal name is an alias. */
56436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56437 choke me
56438 #else
56439 char (*f) () = $ac_func;
56440 #endif
56441 #ifdef __cplusplus
56443 #endif
56446 main ()
56448 return f != $ac_func;
56450 return 0;
56452 _ACEOF
56453 rm -f conftest.$ac_objext conftest$ac_exeext
56454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56455 (eval $ac_link) 2>conftest.er1
56456 ac_status=$?
56457 grep -v '^ *+' conftest.er1 >conftest.err
56458 rm -f conftest.er1
56459 cat conftest.err >&5
56460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56461 (exit $ac_status); } &&
56462 { ac_try='test -z "$ac_c_werror_flag"
56463 || test ! -s conftest.err'
56464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56465 (eval $ac_try) 2>&5
56466 ac_status=$?
56467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56468 (exit $ac_status); }; } &&
56469 { ac_try='test -s conftest$ac_exeext'
56470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56471 (eval $ac_try) 2>&5
56472 ac_status=$?
56473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56474 (exit $ac_status); }; }; then
56475 eval "$as_ac_var=yes"
56476 else
56477 echo "$as_me: failed program was:" >&5
56478 sed 's/^/| /' conftest.$ac_ext >&5
56480 eval "$as_ac_var=no"
56482 rm -f conftest.err conftest.$ac_objext \
56483 conftest$ac_exeext conftest.$ac_ext
56485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56487 if test `eval echo '${'$as_ac_var'}'` = yes; then
56488 cat >>confdefs.h <<_ACEOF
56489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56490 _ACEOF
56492 else
56493 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56495 done
56498 if test x$ac_cv_func_copysignl = x"yes"; then
56500 for ac_func in __signbitl
56502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56503 echo "$as_me:$LINENO: checking for $ac_func" >&5
56504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56505 if eval "test \"\${$as_ac_var+set}\" = set"; then
56506 echo $ECHO_N "(cached) $ECHO_C" >&6
56507 else
56508 if test x$gcc_no_link = xyes; then
56509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56511 { (exit 1); exit 1; }; }
56513 cat >conftest.$ac_ext <<_ACEOF
56514 /* confdefs.h. */
56515 _ACEOF
56516 cat confdefs.h >>conftest.$ac_ext
56517 cat >>conftest.$ac_ext <<_ACEOF
56518 /* end confdefs.h. */
56519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56521 #define $ac_func innocuous_$ac_func
56523 /* System header to define __stub macros and hopefully few prototypes,
56524 which can conflict with char $ac_func (); below.
56525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56526 <limits.h> exists even on freestanding compilers. */
56528 #ifdef __STDC__
56529 # include <limits.h>
56530 #else
56531 # include <assert.h>
56532 #endif
56534 #undef $ac_func
56536 /* Override any gcc2 internal prototype to avoid an error. */
56537 #ifdef __cplusplus
56538 extern "C"
56540 #endif
56541 /* We use char because int might match the return type of a gcc2
56542 builtin and then its argument prototype would still apply. */
56543 char $ac_func ();
56544 /* The GNU C library defines this for functions which it implements
56545 to always fail with ENOSYS. Some functions are actually named
56546 something starting with __ and the normal name is an alias. */
56547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56548 choke me
56549 #else
56550 char (*f) () = $ac_func;
56551 #endif
56552 #ifdef __cplusplus
56554 #endif
56557 main ()
56559 return f != $ac_func;
56561 return 0;
56563 _ACEOF
56564 rm -f conftest.$ac_objext conftest$ac_exeext
56565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56566 (eval $ac_link) 2>conftest.er1
56567 ac_status=$?
56568 grep -v '^ *+' conftest.er1 >conftest.err
56569 rm -f conftest.er1
56570 cat conftest.err >&5
56571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56572 (exit $ac_status); } &&
56573 { ac_try='test -z "$ac_c_werror_flag"
56574 || test ! -s conftest.err'
56575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56576 (eval $ac_try) 2>&5
56577 ac_status=$?
56578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56579 (exit $ac_status); }; } &&
56580 { ac_try='test -s conftest$ac_exeext'
56581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56582 (eval $ac_try) 2>&5
56583 ac_status=$?
56584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56585 (exit $ac_status); }; }; then
56586 eval "$as_ac_var=yes"
56587 else
56588 echo "$as_me: failed program was:" >&5
56589 sed 's/^/| /' conftest.$ac_ext >&5
56591 eval "$as_ac_var=no"
56593 rm -f conftest.err conftest.$ac_objext \
56594 conftest$ac_exeext conftest.$ac_ext
56596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56598 if test `eval echo '${'$as_ac_var'}'` = yes; then
56599 cat >>confdefs.h <<_ACEOF
56600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56601 _ACEOF
56603 else
56604 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56606 done
56610 # XXX Review this. Nothing uses it.
56611 if test -n "$LIBMATHOBJS"; then
56612 need_libmath=yes
56617 # Test wchar.h for mbstate_t, which is needed for char_traits and
56618 # others even if wchar_t support is not on.
56619 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56620 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56621 cat >conftest.$ac_ext <<_ACEOF
56622 /* confdefs.h. */
56623 _ACEOF
56624 cat confdefs.h >>conftest.$ac_ext
56625 cat >>conftest.$ac_ext <<_ACEOF
56626 /* end confdefs.h. */
56627 #include <wchar.h>
56629 main ()
56631 mbstate_t teststate;
56633 return 0;
56635 _ACEOF
56636 rm -f conftest.$ac_objext
56637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56638 (eval $ac_compile) 2>conftest.er1
56639 ac_status=$?
56640 grep -v '^ *+' conftest.er1 >conftest.err
56641 rm -f conftest.er1
56642 cat conftest.err >&5
56643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56644 (exit $ac_status); } &&
56645 { ac_try='test -z "$ac_c_werror_flag"
56646 || test ! -s conftest.err'
56647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56648 (eval $ac_try) 2>&5
56649 ac_status=$?
56650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56651 (exit $ac_status); }; } &&
56652 { ac_try='test -s conftest.$ac_objext'
56653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56654 (eval $ac_try) 2>&5
56655 ac_status=$?
56656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56657 (exit $ac_status); }; }; then
56658 have_mbstate_t=yes
56659 else
56660 echo "$as_me: failed program was:" >&5
56661 sed 's/^/| /' conftest.$ac_ext >&5
56663 have_mbstate_t=no
56665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56666 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56667 echo "${ECHO_T}$have_mbstate_t" >&6
56668 if test x"$have_mbstate_t" = xyes; then
56669 cat >>confdefs.h <<\_ACEOF
56670 #define HAVE_MBSTATE_T 1
56671 _ACEOF
56675 # Sanity check for existence of ISO C99 headers for extended encoding.
56677 for ac_header in wchar.h
56679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56681 echo "$as_me:$LINENO: checking for $ac_header" >&5
56682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56684 echo $ECHO_N "(cached) $ECHO_C" >&6
56686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56688 else
56689 # Is the header compilable?
56690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56692 cat >conftest.$ac_ext <<_ACEOF
56693 /* confdefs.h. */
56694 _ACEOF
56695 cat confdefs.h >>conftest.$ac_ext
56696 cat >>conftest.$ac_ext <<_ACEOF
56697 /* end confdefs.h. */
56698 $ac_includes_default
56699 #include <$ac_header>
56700 _ACEOF
56701 rm -f conftest.$ac_objext
56702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56703 (eval $ac_compile) 2>conftest.er1
56704 ac_status=$?
56705 grep -v '^ *+' conftest.er1 >conftest.err
56706 rm -f conftest.er1
56707 cat conftest.err >&5
56708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56709 (exit $ac_status); } &&
56710 { ac_try='test -z "$ac_c_werror_flag"
56711 || test ! -s conftest.err'
56712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56713 (eval $ac_try) 2>&5
56714 ac_status=$?
56715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56716 (exit $ac_status); }; } &&
56717 { ac_try='test -s conftest.$ac_objext'
56718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56719 (eval $ac_try) 2>&5
56720 ac_status=$?
56721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56722 (exit $ac_status); }; }; then
56723 ac_header_compiler=yes
56724 else
56725 echo "$as_me: failed program was:" >&5
56726 sed 's/^/| /' conftest.$ac_ext >&5
56728 ac_header_compiler=no
56730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56732 echo "${ECHO_T}$ac_header_compiler" >&6
56734 # Is the header present?
56735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56737 cat >conftest.$ac_ext <<_ACEOF
56738 /* confdefs.h. */
56739 _ACEOF
56740 cat confdefs.h >>conftest.$ac_ext
56741 cat >>conftest.$ac_ext <<_ACEOF
56742 /* end confdefs.h. */
56743 #include <$ac_header>
56744 _ACEOF
56745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56747 ac_status=$?
56748 grep -v '^ *+' conftest.er1 >conftest.err
56749 rm -f conftest.er1
56750 cat conftest.err >&5
56751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56752 (exit $ac_status); } >/dev/null; then
56753 if test -s conftest.err; then
56754 ac_cpp_err=$ac_c_preproc_warn_flag
56755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56756 else
56757 ac_cpp_err=
56759 else
56760 ac_cpp_err=yes
56762 if test -z "$ac_cpp_err"; then
56763 ac_header_preproc=yes
56764 else
56765 echo "$as_me: failed program was:" >&5
56766 sed 's/^/| /' conftest.$ac_ext >&5
56768 ac_header_preproc=no
56770 rm -f conftest.err conftest.$ac_ext
56771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56772 echo "${ECHO_T}$ac_header_preproc" >&6
56774 # So? What about this header?
56775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56776 yes:no: )
56777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56781 ac_header_preproc=yes
56783 no:yes:* )
56784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56797 cat <<\_ASBOX
56798 ## ----------------------------------------- ##
56799 ## Report this to the package-unused lists. ##
56800 ## ----------------------------------------- ##
56801 _ASBOX
56803 sed "s/^/$as_me: WARNING: /" >&2
56805 esac
56806 echo "$as_me:$LINENO: checking for $ac_header" >&5
56807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56809 echo $ECHO_N "(cached) $ECHO_C" >&6
56810 else
56811 eval "$as_ac_Header=\$ac_header_preproc"
56813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56818 cat >>confdefs.h <<_ACEOF
56819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56820 _ACEOF
56821 ac_has_wchar_h=yes
56822 else
56823 ac_has_wchar_h=no
56826 done
56829 for ac_header in wctype.h
56831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56833 echo "$as_me:$LINENO: checking for $ac_header" >&5
56834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56836 echo $ECHO_N "(cached) $ECHO_C" >&6
56838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56840 else
56841 # Is the header compilable?
56842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56844 cat >conftest.$ac_ext <<_ACEOF
56845 /* confdefs.h. */
56846 _ACEOF
56847 cat confdefs.h >>conftest.$ac_ext
56848 cat >>conftest.$ac_ext <<_ACEOF
56849 /* end confdefs.h. */
56850 $ac_includes_default
56851 #include <$ac_header>
56852 _ACEOF
56853 rm -f conftest.$ac_objext
56854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56855 (eval $ac_compile) 2>conftest.er1
56856 ac_status=$?
56857 grep -v '^ *+' conftest.er1 >conftest.err
56858 rm -f conftest.er1
56859 cat conftest.err >&5
56860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56861 (exit $ac_status); } &&
56862 { ac_try='test -z "$ac_c_werror_flag"
56863 || test ! -s conftest.err'
56864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56865 (eval $ac_try) 2>&5
56866 ac_status=$?
56867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56868 (exit $ac_status); }; } &&
56869 { ac_try='test -s conftest.$ac_objext'
56870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56871 (eval $ac_try) 2>&5
56872 ac_status=$?
56873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56874 (exit $ac_status); }; }; then
56875 ac_header_compiler=yes
56876 else
56877 echo "$as_me: failed program was:" >&5
56878 sed 's/^/| /' conftest.$ac_ext >&5
56880 ac_header_compiler=no
56882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56884 echo "${ECHO_T}$ac_header_compiler" >&6
56886 # Is the header present?
56887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56889 cat >conftest.$ac_ext <<_ACEOF
56890 /* confdefs.h. */
56891 _ACEOF
56892 cat confdefs.h >>conftest.$ac_ext
56893 cat >>conftest.$ac_ext <<_ACEOF
56894 /* end confdefs.h. */
56895 #include <$ac_header>
56896 _ACEOF
56897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56899 ac_status=$?
56900 grep -v '^ *+' conftest.er1 >conftest.err
56901 rm -f conftest.er1
56902 cat conftest.err >&5
56903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56904 (exit $ac_status); } >/dev/null; then
56905 if test -s conftest.err; then
56906 ac_cpp_err=$ac_c_preproc_warn_flag
56907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56908 else
56909 ac_cpp_err=
56911 else
56912 ac_cpp_err=yes
56914 if test -z "$ac_cpp_err"; then
56915 ac_header_preproc=yes
56916 else
56917 echo "$as_me: failed program was:" >&5
56918 sed 's/^/| /' conftest.$ac_ext >&5
56920 ac_header_preproc=no
56922 rm -f conftest.err conftest.$ac_ext
56923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56924 echo "${ECHO_T}$ac_header_preproc" >&6
56926 # So? What about this header?
56927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56928 yes:no: )
56929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56933 ac_header_preproc=yes
56935 no:yes:* )
56936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56949 cat <<\_ASBOX
56950 ## ----------------------------------------- ##
56951 ## Report this to the package-unused lists. ##
56952 ## ----------------------------------------- ##
56953 _ASBOX
56955 sed "s/^/$as_me: WARNING: /" >&2
56957 esac
56958 echo "$as_me:$LINENO: checking for $ac_header" >&5
56959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56961 echo $ECHO_N "(cached) $ECHO_C" >&6
56962 else
56963 eval "$as_ac_Header=\$ac_header_preproc"
56965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56970 cat >>confdefs.h <<_ACEOF
56971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56972 _ACEOF
56973 ac_has_wctype_h=yes
56974 else
56975 ac_has_wctype_h=no
56978 done
56981 # Only continue checking if the ISO C99 headers exist and support is on.
56982 if test x"$ac_has_wchar_h" = xyes &&
56983 test x"$ac_has_wctype_h" = xyes &&
56984 test x"$enable_c_mbchar" != xno; then
56986 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56987 # numeric_limits can instantiate type_traits<wchar_t>
56988 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56989 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56990 cat >conftest.$ac_ext <<_ACEOF
56991 /* confdefs.h. */
56992 _ACEOF
56993 cat confdefs.h >>conftest.$ac_ext
56994 cat >>conftest.$ac_ext <<_ACEOF
56995 /* end confdefs.h. */
56996 #include <wchar.h>
56998 main ()
57000 int i = WCHAR_MIN; int j = WCHAR_MAX;
57002 return 0;
57004 _ACEOF
57005 rm -f conftest.$ac_objext
57006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57007 (eval $ac_compile) 2>conftest.er1
57008 ac_status=$?
57009 grep -v '^ *+' conftest.er1 >conftest.err
57010 rm -f conftest.er1
57011 cat conftest.err >&5
57012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57013 (exit $ac_status); } &&
57014 { ac_try='test -z "$ac_c_werror_flag"
57015 || test ! -s conftest.err'
57016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57017 (eval $ac_try) 2>&5
57018 ac_status=$?
57019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57020 (exit $ac_status); }; } &&
57021 { ac_try='test -s conftest.$ac_objext'
57022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57023 (eval $ac_try) 2>&5
57024 ac_status=$?
57025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57026 (exit $ac_status); }; }; then
57027 has_wchar_minmax=yes
57028 else
57029 echo "$as_me: failed program was:" >&5
57030 sed 's/^/| /' conftest.$ac_ext >&5
57032 has_wchar_minmax=no
57034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57035 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57036 echo "${ECHO_T}$has_wchar_minmax" >&6
57038 # Test wchar.h for WEOF, which is what we use to determine whether
57039 # to specialize for char_traits<wchar_t> or not.
57040 echo "$as_me:$LINENO: checking for WEOF" >&5
57041 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57042 cat >conftest.$ac_ext <<_ACEOF
57043 /* confdefs.h. */
57044 _ACEOF
57045 cat confdefs.h >>conftest.$ac_ext
57046 cat >>conftest.$ac_ext <<_ACEOF
57047 /* end confdefs.h. */
57049 #include <wchar.h>
57050 #include <stddef.h>
57052 main ()
57054 wint_t i = WEOF;
57056 return 0;
57058 _ACEOF
57059 rm -f conftest.$ac_objext
57060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57061 (eval $ac_compile) 2>conftest.er1
57062 ac_status=$?
57063 grep -v '^ *+' conftest.er1 >conftest.err
57064 rm -f conftest.er1
57065 cat conftest.err >&5
57066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57067 (exit $ac_status); } &&
57068 { ac_try='test -z "$ac_c_werror_flag"
57069 || test ! -s conftest.err'
57070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57071 (eval $ac_try) 2>&5
57072 ac_status=$?
57073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57074 (exit $ac_status); }; } &&
57075 { ac_try='test -s conftest.$ac_objext'
57076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57077 (eval $ac_try) 2>&5
57078 ac_status=$?
57079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57080 (exit $ac_status); }; }; then
57081 has_weof=yes
57082 else
57083 echo "$as_me: failed program was:" >&5
57084 sed 's/^/| /' conftest.$ac_ext >&5
57086 has_weof=no
57088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57089 echo "$as_me:$LINENO: result: $has_weof" >&5
57090 echo "${ECHO_T}$has_weof" >&6
57092 # Tests for wide character functions used in char_traits<wchar_t>.
57093 ac_wfuncs=yes
57100 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57103 echo "$as_me:$LINENO: checking for $ac_func" >&5
57104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57105 if eval "test \"\${$as_ac_var+set}\" = set"; then
57106 echo $ECHO_N "(cached) $ECHO_C" >&6
57107 else
57108 if test x$gcc_no_link = xyes; then
57109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57111 { (exit 1); exit 1; }; }
57113 cat >conftest.$ac_ext <<_ACEOF
57114 /* confdefs.h. */
57115 _ACEOF
57116 cat confdefs.h >>conftest.$ac_ext
57117 cat >>conftest.$ac_ext <<_ACEOF
57118 /* end confdefs.h. */
57119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57121 #define $ac_func innocuous_$ac_func
57123 /* System header to define __stub macros and hopefully few prototypes,
57124 which can conflict with char $ac_func (); below.
57125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57126 <limits.h> exists even on freestanding compilers. */
57128 #ifdef __STDC__
57129 # include <limits.h>
57130 #else
57131 # include <assert.h>
57132 #endif
57134 #undef $ac_func
57136 /* Override any gcc2 internal prototype to avoid an error. */
57137 #ifdef __cplusplus
57138 extern "C"
57140 #endif
57141 /* We use char because int might match the return type of a gcc2
57142 builtin and then its argument prototype would still apply. */
57143 char $ac_func ();
57144 /* The GNU C library defines this for functions which it implements
57145 to always fail with ENOSYS. Some functions are actually named
57146 something starting with __ and the normal name is an alias. */
57147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57148 choke me
57149 #else
57150 char (*f) () = $ac_func;
57151 #endif
57152 #ifdef __cplusplus
57154 #endif
57157 main ()
57159 return f != $ac_func;
57161 return 0;
57163 _ACEOF
57164 rm -f conftest.$ac_objext conftest$ac_exeext
57165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57166 (eval $ac_link) 2>conftest.er1
57167 ac_status=$?
57168 grep -v '^ *+' conftest.er1 >conftest.err
57169 rm -f conftest.er1
57170 cat conftest.err >&5
57171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57172 (exit $ac_status); } &&
57173 { ac_try='test -z "$ac_c_werror_flag"
57174 || test ! -s conftest.err'
57175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57176 (eval $ac_try) 2>&5
57177 ac_status=$?
57178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57179 (exit $ac_status); }; } &&
57180 { ac_try='test -s conftest$ac_exeext'
57181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57182 (eval $ac_try) 2>&5
57183 ac_status=$?
57184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57185 (exit $ac_status); }; }; then
57186 eval "$as_ac_var=yes"
57187 else
57188 echo "$as_me: failed program was:" >&5
57189 sed 's/^/| /' conftest.$ac_ext >&5
57191 eval "$as_ac_var=no"
57193 rm -f conftest.err conftest.$ac_objext \
57194 conftest$ac_exeext conftest.$ac_ext
57196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57198 if test `eval echo '${'$as_ac_var'}'` = yes; then
57199 cat >>confdefs.h <<_ACEOF
57200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57201 _ACEOF
57203 else
57204 ac_wfuncs=no
57206 done
57209 # Checks for names injected into std:: by the c_std headers.
57256 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57257 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
57258 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57259 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
57260 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57261 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57264 echo "$as_me:$LINENO: checking for $ac_func" >&5
57265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57266 if eval "test \"\${$as_ac_var+set}\" = set"; then
57267 echo $ECHO_N "(cached) $ECHO_C" >&6
57268 else
57269 if test x$gcc_no_link = xyes; then
57270 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57271 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57272 { (exit 1); exit 1; }; }
57274 cat >conftest.$ac_ext <<_ACEOF
57275 /* confdefs.h. */
57276 _ACEOF
57277 cat confdefs.h >>conftest.$ac_ext
57278 cat >>conftest.$ac_ext <<_ACEOF
57279 /* end confdefs.h. */
57280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57282 #define $ac_func innocuous_$ac_func
57284 /* System header to define __stub macros and hopefully few prototypes,
57285 which can conflict with char $ac_func (); below.
57286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57287 <limits.h> exists even on freestanding compilers. */
57289 #ifdef __STDC__
57290 # include <limits.h>
57291 #else
57292 # include <assert.h>
57293 #endif
57295 #undef $ac_func
57297 /* Override any gcc2 internal prototype to avoid an error. */
57298 #ifdef __cplusplus
57299 extern "C"
57301 #endif
57302 /* We use char because int might match the return type of a gcc2
57303 builtin and then its argument prototype would still apply. */
57304 char $ac_func ();
57305 /* The GNU C library defines this for functions which it implements
57306 to always fail with ENOSYS. Some functions are actually named
57307 something starting with __ and the normal name is an alias. */
57308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57309 choke me
57310 #else
57311 char (*f) () = $ac_func;
57312 #endif
57313 #ifdef __cplusplus
57315 #endif
57318 main ()
57320 return f != $ac_func;
57322 return 0;
57324 _ACEOF
57325 rm -f conftest.$ac_objext conftest$ac_exeext
57326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57327 (eval $ac_link) 2>conftest.er1
57328 ac_status=$?
57329 grep -v '^ *+' conftest.er1 >conftest.err
57330 rm -f conftest.er1
57331 cat conftest.err >&5
57332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57333 (exit $ac_status); } &&
57334 { ac_try='test -z "$ac_c_werror_flag"
57335 || test ! -s conftest.err'
57336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57337 (eval $ac_try) 2>&5
57338 ac_status=$?
57339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57340 (exit $ac_status); }; } &&
57341 { ac_try='test -s conftest$ac_exeext'
57342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57343 (eval $ac_try) 2>&5
57344 ac_status=$?
57345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57346 (exit $ac_status); }; }; then
57347 eval "$as_ac_var=yes"
57348 else
57349 echo "$as_me: failed program was:" >&5
57350 sed 's/^/| /' conftest.$ac_ext >&5
57352 eval "$as_ac_var=no"
57354 rm -f conftest.err conftest.$ac_objext \
57355 conftest$ac_exeext conftest.$ac_ext
57357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57359 if test `eval echo '${'$as_ac_var'}'` = yes; then
57360 cat >>confdefs.h <<_ACEOF
57361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57362 _ACEOF
57364 else
57365 ac_wfuncs=no
57367 done
57370 # Checks for wide character functions that are not required
57371 # for basic wchar_t support. Don't disable support if they are missing.
57372 # Injection of these is wrapped with guard macros.
57378 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
57380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57381 echo "$as_me:$LINENO: checking for $ac_func" >&5
57382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57383 if eval "test \"\${$as_ac_var+set}\" = set"; then
57384 echo $ECHO_N "(cached) $ECHO_C" >&6
57385 else
57386 if test x$gcc_no_link = xyes; then
57387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57389 { (exit 1); exit 1; }; }
57391 cat >conftest.$ac_ext <<_ACEOF
57392 /* confdefs.h. */
57393 _ACEOF
57394 cat confdefs.h >>conftest.$ac_ext
57395 cat >>conftest.$ac_ext <<_ACEOF
57396 /* end confdefs.h. */
57397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57399 #define $ac_func innocuous_$ac_func
57401 /* System header to define __stub macros and hopefully few prototypes,
57402 which can conflict with char $ac_func (); below.
57403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57404 <limits.h> exists even on freestanding compilers. */
57406 #ifdef __STDC__
57407 # include <limits.h>
57408 #else
57409 # include <assert.h>
57410 #endif
57412 #undef $ac_func
57414 /* Override any gcc2 internal prototype to avoid an error. */
57415 #ifdef __cplusplus
57416 extern "C"
57418 #endif
57419 /* We use char because int might match the return type of a gcc2
57420 builtin and then its argument prototype would still apply. */
57421 char $ac_func ();
57422 /* The GNU C library defines this for functions which it implements
57423 to always fail with ENOSYS. Some functions are actually named
57424 something starting with __ and the normal name is an alias. */
57425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57426 choke me
57427 #else
57428 char (*f) () = $ac_func;
57429 #endif
57430 #ifdef __cplusplus
57432 #endif
57435 main ()
57437 return f != $ac_func;
57439 return 0;
57441 _ACEOF
57442 rm -f conftest.$ac_objext conftest$ac_exeext
57443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57444 (eval $ac_link) 2>conftest.er1
57445 ac_status=$?
57446 grep -v '^ *+' conftest.er1 >conftest.err
57447 rm -f conftest.er1
57448 cat conftest.err >&5
57449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57450 (exit $ac_status); } &&
57451 { ac_try='test -z "$ac_c_werror_flag"
57452 || test ! -s conftest.err'
57453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57454 (eval $ac_try) 2>&5
57455 ac_status=$?
57456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57457 (exit $ac_status); }; } &&
57458 { ac_try='test -s conftest$ac_exeext'
57459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57460 (eval $ac_try) 2>&5
57461 ac_status=$?
57462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57463 (exit $ac_status); }; }; then
57464 eval "$as_ac_var=yes"
57465 else
57466 echo "$as_me: failed program was:" >&5
57467 sed 's/^/| /' conftest.$ac_ext >&5
57469 eval "$as_ac_var=no"
57471 rm -f conftest.err conftest.$ac_objext \
57472 conftest$ac_exeext conftest.$ac_ext
57474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57476 if test `eval echo '${'$as_ac_var'}'` = yes; then
57477 cat >>confdefs.h <<_ACEOF
57478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57479 _ACEOF
57482 done
57485 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57486 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57487 if test x"$has_weof" = xyes &&
57488 test x"$has_wchar_minmax" = xyes &&
57489 test x"$ac_wfuncs" = xyes;
57490 then
57491 ac_isoC99_wchar_t=yes
57492 else
57493 ac_isoC99_wchar_t=no
57495 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57496 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57498 # Use iconv for wchar_t to char conversions. As such, check for
57499 # X/Open Portability Guide, version 2 features (XPG2).
57500 if test "${ac_cv_header_iconv_h+set}" = set; then
57501 echo "$as_me:$LINENO: checking for iconv.h" >&5
57502 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57503 if test "${ac_cv_header_iconv_h+set}" = set; then
57504 echo $ECHO_N "(cached) $ECHO_C" >&6
57506 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57507 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57508 else
57509 # Is the header compilable?
57510 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57511 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57512 cat >conftest.$ac_ext <<_ACEOF
57513 /* confdefs.h. */
57514 _ACEOF
57515 cat confdefs.h >>conftest.$ac_ext
57516 cat >>conftest.$ac_ext <<_ACEOF
57517 /* end confdefs.h. */
57518 $ac_includes_default
57519 #include <iconv.h>
57520 _ACEOF
57521 rm -f conftest.$ac_objext
57522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57523 (eval $ac_compile) 2>conftest.er1
57524 ac_status=$?
57525 grep -v '^ *+' conftest.er1 >conftest.err
57526 rm -f conftest.er1
57527 cat conftest.err >&5
57528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57529 (exit $ac_status); } &&
57530 { ac_try='test -z "$ac_c_werror_flag"
57531 || test ! -s conftest.err'
57532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57533 (eval $ac_try) 2>&5
57534 ac_status=$?
57535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57536 (exit $ac_status); }; } &&
57537 { ac_try='test -s conftest.$ac_objext'
57538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57539 (eval $ac_try) 2>&5
57540 ac_status=$?
57541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57542 (exit $ac_status); }; }; then
57543 ac_header_compiler=yes
57544 else
57545 echo "$as_me: failed program was:" >&5
57546 sed 's/^/| /' conftest.$ac_ext >&5
57548 ac_header_compiler=no
57550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57552 echo "${ECHO_T}$ac_header_compiler" >&6
57554 # Is the header present?
57555 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57556 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57557 cat >conftest.$ac_ext <<_ACEOF
57558 /* confdefs.h. */
57559 _ACEOF
57560 cat confdefs.h >>conftest.$ac_ext
57561 cat >>conftest.$ac_ext <<_ACEOF
57562 /* end confdefs.h. */
57563 #include <iconv.h>
57564 _ACEOF
57565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57567 ac_status=$?
57568 grep -v '^ *+' conftest.er1 >conftest.err
57569 rm -f conftest.er1
57570 cat conftest.err >&5
57571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57572 (exit $ac_status); } >/dev/null; then
57573 if test -s conftest.err; then
57574 ac_cpp_err=$ac_c_preproc_warn_flag
57575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57576 else
57577 ac_cpp_err=
57579 else
57580 ac_cpp_err=yes
57582 if test -z "$ac_cpp_err"; then
57583 ac_header_preproc=yes
57584 else
57585 echo "$as_me: failed program was:" >&5
57586 sed 's/^/| /' conftest.$ac_ext >&5
57588 ac_header_preproc=no
57590 rm -f conftest.err conftest.$ac_ext
57591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57592 echo "${ECHO_T}$ac_header_preproc" >&6
57594 # So? What about this header?
57595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57596 yes:no: )
57597 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57598 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57599 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
57600 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
57601 ac_header_preproc=yes
57603 no:yes:* )
57604 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57605 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57606 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57607 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57608 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
57609 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
57610 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
57611 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
57612 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57613 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57614 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
57615 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
57617 cat <<\_ASBOX
57618 ## ----------------------------------------- ##
57619 ## Report this to the package-unused lists. ##
57620 ## ----------------------------------------- ##
57621 _ASBOX
57623 sed "s/^/$as_me: WARNING: /" >&2
57625 esac
57626 echo "$as_me:$LINENO: checking for iconv.h" >&5
57627 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57628 if test "${ac_cv_header_iconv_h+set}" = set; then
57629 echo $ECHO_N "(cached) $ECHO_C" >&6
57630 else
57631 ac_cv_header_iconv_h=$ac_header_preproc
57633 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57634 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57637 if test $ac_cv_header_iconv_h = yes; then
57638 ac_has_iconv_h=yes
57639 else
57640 ac_has_iconv_h=no
57644 if test "${ac_cv_header_langinfo_h+set}" = set; then
57645 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57646 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57647 if test "${ac_cv_header_langinfo_h+set}" = set; then
57648 echo $ECHO_N "(cached) $ECHO_C" >&6
57650 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57651 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57652 else
57653 # Is the header compilable?
57654 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57655 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57656 cat >conftest.$ac_ext <<_ACEOF
57657 /* confdefs.h. */
57658 _ACEOF
57659 cat confdefs.h >>conftest.$ac_ext
57660 cat >>conftest.$ac_ext <<_ACEOF
57661 /* end confdefs.h. */
57662 $ac_includes_default
57663 #include <langinfo.h>
57664 _ACEOF
57665 rm -f conftest.$ac_objext
57666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57667 (eval $ac_compile) 2>conftest.er1
57668 ac_status=$?
57669 grep -v '^ *+' conftest.er1 >conftest.err
57670 rm -f conftest.er1
57671 cat conftest.err >&5
57672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57673 (exit $ac_status); } &&
57674 { ac_try='test -z "$ac_c_werror_flag"
57675 || test ! -s conftest.err'
57676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57677 (eval $ac_try) 2>&5
57678 ac_status=$?
57679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57680 (exit $ac_status); }; } &&
57681 { ac_try='test -s conftest.$ac_objext'
57682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57683 (eval $ac_try) 2>&5
57684 ac_status=$?
57685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57686 (exit $ac_status); }; }; then
57687 ac_header_compiler=yes
57688 else
57689 echo "$as_me: failed program was:" >&5
57690 sed 's/^/| /' conftest.$ac_ext >&5
57692 ac_header_compiler=no
57694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57696 echo "${ECHO_T}$ac_header_compiler" >&6
57698 # Is the header present?
57699 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57700 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57701 cat >conftest.$ac_ext <<_ACEOF
57702 /* confdefs.h. */
57703 _ACEOF
57704 cat confdefs.h >>conftest.$ac_ext
57705 cat >>conftest.$ac_ext <<_ACEOF
57706 /* end confdefs.h. */
57707 #include <langinfo.h>
57708 _ACEOF
57709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57711 ac_status=$?
57712 grep -v '^ *+' conftest.er1 >conftest.err
57713 rm -f conftest.er1
57714 cat conftest.err >&5
57715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57716 (exit $ac_status); } >/dev/null; then
57717 if test -s conftest.err; then
57718 ac_cpp_err=$ac_c_preproc_warn_flag
57719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57720 else
57721 ac_cpp_err=
57723 else
57724 ac_cpp_err=yes
57726 if test -z "$ac_cpp_err"; then
57727 ac_header_preproc=yes
57728 else
57729 echo "$as_me: failed program was:" >&5
57730 sed 's/^/| /' conftest.$ac_ext >&5
57732 ac_header_preproc=no
57734 rm -f conftest.err conftest.$ac_ext
57735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57736 echo "${ECHO_T}$ac_header_preproc" >&6
57738 # So? What about this header?
57739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57740 yes:no: )
57741 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57742 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57743 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57744 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57745 ac_header_preproc=yes
57747 no:yes:* )
57748 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57749 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57750 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57751 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57752 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57753 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57754 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57755 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57756 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57757 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57758 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57759 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57761 cat <<\_ASBOX
57762 ## ----------------------------------------- ##
57763 ## Report this to the package-unused lists. ##
57764 ## ----------------------------------------- ##
57765 _ASBOX
57767 sed "s/^/$as_me: WARNING: /" >&2
57769 esac
57770 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57771 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57772 if test "${ac_cv_header_langinfo_h+set}" = set; then
57773 echo $ECHO_N "(cached) $ECHO_C" >&6
57774 else
57775 ac_cv_header_langinfo_h=$ac_header_preproc
57777 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57778 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57781 if test $ac_cv_header_langinfo_h = yes; then
57782 ac_has_langinfo_h=yes
57783 else
57784 ac_has_langinfo_h=no
57789 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57790 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57791 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57792 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57793 echo $ECHO_N "(cached) $ECHO_C" >&6
57794 else
57795 ac_check_lib_save_LIBS=$LIBS
57796 LIBS="-liconv $LIBS"
57797 if test x$gcc_no_link = xyes; then
57798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57800 { (exit 1); exit 1; }; }
57802 cat >conftest.$ac_ext <<_ACEOF
57803 /* confdefs.h. */
57804 _ACEOF
57805 cat confdefs.h >>conftest.$ac_ext
57806 cat >>conftest.$ac_ext <<_ACEOF
57807 /* end confdefs.h. */
57809 /* Override any gcc2 internal prototype to avoid an error. */
57810 #ifdef __cplusplus
57811 extern "C"
57812 #endif
57813 /* We use char because int might match the return type of a gcc2
57814 builtin and then its argument prototype would still apply. */
57815 char iconv ();
57817 main ()
57819 iconv ();
57821 return 0;
57823 _ACEOF
57824 rm -f conftest.$ac_objext conftest$ac_exeext
57825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57826 (eval $ac_link) 2>conftest.er1
57827 ac_status=$?
57828 grep -v '^ *+' conftest.er1 >conftest.err
57829 rm -f conftest.er1
57830 cat conftest.err >&5
57831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57832 (exit $ac_status); } &&
57833 { ac_try='test -z "$ac_c_werror_flag"
57834 || test ! -s conftest.err'
57835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57836 (eval $ac_try) 2>&5
57837 ac_status=$?
57838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57839 (exit $ac_status); }; } &&
57840 { ac_try='test -s conftest$ac_exeext'
57841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57842 (eval $ac_try) 2>&5
57843 ac_status=$?
57844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57845 (exit $ac_status); }; }; then
57846 ac_cv_lib_iconv_iconv=yes
57847 else
57848 echo "$as_me: failed program was:" >&5
57849 sed 's/^/| /' conftest.$ac_ext >&5
57851 ac_cv_lib_iconv_iconv=no
57853 rm -f conftest.err conftest.$ac_objext \
57854 conftest$ac_exeext conftest.$ac_ext
57855 LIBS=$ac_check_lib_save_LIBS
57857 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57858 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57859 if test $ac_cv_lib_iconv_iconv = yes; then
57860 libiconv="-liconv"
57863 ac_save_LIBS="$LIBS"
57864 LIBS="$LIBS $libiconv"
57870 for ac_func in iconv_open iconv_close iconv nl_langinfo
57872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57873 echo "$as_me:$LINENO: checking for $ac_func" >&5
57874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57875 if eval "test \"\${$as_ac_var+set}\" = set"; then
57876 echo $ECHO_N "(cached) $ECHO_C" >&6
57877 else
57878 if test x$gcc_no_link = xyes; then
57879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57881 { (exit 1); exit 1; }; }
57883 cat >conftest.$ac_ext <<_ACEOF
57884 /* confdefs.h. */
57885 _ACEOF
57886 cat confdefs.h >>conftest.$ac_ext
57887 cat >>conftest.$ac_ext <<_ACEOF
57888 /* end confdefs.h. */
57889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57891 #define $ac_func innocuous_$ac_func
57893 /* System header to define __stub macros and hopefully few prototypes,
57894 which can conflict with char $ac_func (); below.
57895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57896 <limits.h> exists even on freestanding compilers. */
57898 #ifdef __STDC__
57899 # include <limits.h>
57900 #else
57901 # include <assert.h>
57902 #endif
57904 #undef $ac_func
57906 /* Override any gcc2 internal prototype to avoid an error. */
57907 #ifdef __cplusplus
57908 extern "C"
57910 #endif
57911 /* We use char because int might match the return type of a gcc2
57912 builtin and then its argument prototype would still apply. */
57913 char $ac_func ();
57914 /* The GNU C library defines this for functions which it implements
57915 to always fail with ENOSYS. Some functions are actually named
57916 something starting with __ and the normal name is an alias. */
57917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57918 choke me
57919 #else
57920 char (*f) () = $ac_func;
57921 #endif
57922 #ifdef __cplusplus
57924 #endif
57927 main ()
57929 return f != $ac_func;
57931 return 0;
57933 _ACEOF
57934 rm -f conftest.$ac_objext conftest$ac_exeext
57935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57936 (eval $ac_link) 2>conftest.er1
57937 ac_status=$?
57938 grep -v '^ *+' conftest.er1 >conftest.err
57939 rm -f conftest.er1
57940 cat conftest.err >&5
57941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57942 (exit $ac_status); } &&
57943 { ac_try='test -z "$ac_c_werror_flag"
57944 || test ! -s conftest.err'
57945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57946 (eval $ac_try) 2>&5
57947 ac_status=$?
57948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57949 (exit $ac_status); }; } &&
57950 { ac_try='test -s conftest$ac_exeext'
57951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57952 (eval $ac_try) 2>&5
57953 ac_status=$?
57954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57955 (exit $ac_status); }; }; then
57956 eval "$as_ac_var=yes"
57957 else
57958 echo "$as_me: failed program was:" >&5
57959 sed 's/^/| /' conftest.$ac_ext >&5
57961 eval "$as_ac_var=no"
57963 rm -f conftest.err conftest.$ac_objext \
57964 conftest$ac_exeext conftest.$ac_ext
57966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57968 if test `eval echo '${'$as_ac_var'}'` = yes; then
57969 cat >>confdefs.h <<_ACEOF
57970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57971 _ACEOF
57972 ac_XPG2funcs=yes
57973 else
57974 ac_XPG2funcs=no
57976 done
57979 LIBS="$ac_save_LIBS"
57981 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57982 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57983 if test x"$ac_has_iconv_h" = xyes &&
57984 test x"$ac_has_langinfo_h" = xyes &&
57985 test x"$ac_XPG2funcs" = xyes;
57986 then
57987 ac_XPG2_wchar_t=yes
57988 else
57989 ac_XPG2_wchar_t=no
57991 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57992 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57994 # At the moment, only enable wchar_t specializations if all the
57995 # above support is present.
57996 if test x"$ac_isoC99_wchar_t" = xyes &&
57997 test x"$ac_XPG2_wchar_t" = xyes;
57998 then
57999 cat >>confdefs.h <<\_ACEOF
58000 #define _GLIBCXX_USE_WCHAR_T 1
58001 _ACEOF
58003 enable_wchar_t=yes
58006 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
58007 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
58008 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
58009 echo "${ECHO_T}$enable_wchar_t" >&6
58011 cat >>confdefs.h <<\_ACEOF
58012 #define HAVE_COPYSIGN 1
58013 _ACEOF
58015 cat >>confdefs.h <<\_ACEOF
58016 #define HAVE_COPYSIGNF 1
58017 _ACEOF
58019 cat >>confdefs.h <<\_ACEOF
58020 #define HAVE_FREXPF 1
58021 _ACEOF
58023 cat >>confdefs.h <<\_ACEOF
58024 #define HAVE_HYPOT 1
58025 _ACEOF
58027 case "$target" in
58028 *-hpux10*)
58029 cat >>confdefs.h <<\_ACEOF
58030 #define HAVE_FINITE 1
58031 _ACEOF
58033 cat >>confdefs.h <<\_ACEOF
58034 #define HAVE_FINITEF 1
58035 _ACEOF
58037 cat >>confdefs.h <<\_ACEOF
58038 #define HAVE_ISINF 1
58039 _ACEOF
58041 cat >>confdefs.h <<\_ACEOF
58042 #define HAVE_ISINFF 1
58043 _ACEOF
58045 cat >>confdefs.h <<\_ACEOF
58046 #define HAVE_ISNAN 1
58047 _ACEOF
58049 cat >>confdefs.h <<\_ACEOF
58050 #define HAVE_ISNANF 1
58051 _ACEOF
58054 esac
58056 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
58069 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
58070 machine/endian.h machine/param.h sys/machine.h sys/types.h \
58071 fp.h locale.h float.h inttypes.h
58073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58075 echo "$as_me:$LINENO: checking for $ac_header" >&5
58076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58078 echo $ECHO_N "(cached) $ECHO_C" >&6
58080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58082 else
58083 # Is the header compilable?
58084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58086 cat >conftest.$ac_ext <<_ACEOF
58087 /* confdefs.h. */
58088 _ACEOF
58089 cat confdefs.h >>conftest.$ac_ext
58090 cat >>conftest.$ac_ext <<_ACEOF
58091 /* end confdefs.h. */
58092 $ac_includes_default
58093 #include <$ac_header>
58094 _ACEOF
58095 rm -f conftest.$ac_objext
58096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58097 (eval $ac_compile) 2>conftest.er1
58098 ac_status=$?
58099 grep -v '^ *+' conftest.er1 >conftest.err
58100 rm -f conftest.er1
58101 cat conftest.err >&5
58102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58103 (exit $ac_status); } &&
58104 { ac_try='test -z "$ac_c_werror_flag"
58105 || test ! -s conftest.err'
58106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58107 (eval $ac_try) 2>&5
58108 ac_status=$?
58109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58110 (exit $ac_status); }; } &&
58111 { ac_try='test -s conftest.$ac_objext'
58112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58113 (eval $ac_try) 2>&5
58114 ac_status=$?
58115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58116 (exit $ac_status); }; }; then
58117 ac_header_compiler=yes
58118 else
58119 echo "$as_me: failed program was:" >&5
58120 sed 's/^/| /' conftest.$ac_ext >&5
58122 ac_header_compiler=no
58124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58126 echo "${ECHO_T}$ac_header_compiler" >&6
58128 # Is the header present?
58129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58131 cat >conftest.$ac_ext <<_ACEOF
58132 /* confdefs.h. */
58133 _ACEOF
58134 cat confdefs.h >>conftest.$ac_ext
58135 cat >>conftest.$ac_ext <<_ACEOF
58136 /* end confdefs.h. */
58137 #include <$ac_header>
58138 _ACEOF
58139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58141 ac_status=$?
58142 grep -v '^ *+' conftest.er1 >conftest.err
58143 rm -f conftest.er1
58144 cat conftest.err >&5
58145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58146 (exit $ac_status); } >/dev/null; then
58147 if test -s conftest.err; then
58148 ac_cpp_err=$ac_c_preproc_warn_flag
58149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58150 else
58151 ac_cpp_err=
58153 else
58154 ac_cpp_err=yes
58156 if test -z "$ac_cpp_err"; then
58157 ac_header_preproc=yes
58158 else
58159 echo "$as_me: failed program was:" >&5
58160 sed 's/^/| /' conftest.$ac_ext >&5
58162 ac_header_preproc=no
58164 rm -f conftest.err conftest.$ac_ext
58165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58166 echo "${ECHO_T}$ac_header_preproc" >&6
58168 # So? What about this header?
58169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58170 yes:no: )
58171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58175 ac_header_preproc=yes
58177 no:yes:* )
58178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58191 cat <<\_ASBOX
58192 ## ----------------------------------------- ##
58193 ## Report this to the package-unused lists. ##
58194 ## ----------------------------------------- ##
58195 _ASBOX
58197 sed "s/^/$as_me: WARNING: /" >&2
58199 esac
58200 echo "$as_me:$LINENO: checking for $ac_header" >&5
58201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58203 echo $ECHO_N "(cached) $ECHO_C" >&6
58204 else
58205 eval "$as_ac_Header=\$ac_header_preproc"
58207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58212 cat >>confdefs.h <<_ACEOF
58213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58214 _ACEOF
58218 done
58220 SECTION_FLAGS='-ffunction-sections -fdata-sections'
58223 # If we're not using GNU ld, then there's no point in even trying these
58224 # tests. Check for that first. We should have already tested for gld
58225 # by now (in libtool), but require it now just to be safe...
58226 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
58227 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
58231 # The name set by libtool depends on the version of libtool. Shame on us
58232 # for depending on an impl detail, but c'est la vie. Older versions used
58233 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
58234 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
58235 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
58236 # set (hence we're using an older libtool), then set it.
58237 if test x${with_gnu_ld+set} != xset; then
58238 if test x${ac_cv_prog_gnu_ld+set} != xset; then
58239 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
58240 with_gnu_ld=no
58241 else
58242 with_gnu_ld=$ac_cv_prog_gnu_ld
58246 # Start by getting the version number. I think the libtool test already
58247 # does some of this, but throws away the result.
58249 ldver=`$LD --version 2>/dev/null | head -1 | \
58250 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
58252 glibcxx_gnu_ld_version=`echo $ldver | \
58253 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
58255 # Set --gc-sections.
58256 if test "$with_gnu_ld" = "notbroken"; then
58257 # GNU ld it is! Joy and bunny rabbits!
58259 # All these tests are for C++; save the language and the compiler flags.
58260 # Need to do this so that g++ won't try to link in libstdc++
58261 ac_test_CFLAGS="${CFLAGS+set}"
58262 ac_save_CFLAGS="$CFLAGS"
58263 CFLAGS='-x c++ -Wl,--gc-sections'
58265 # Check for -Wl,--gc-sections
58266 # XXX This test is broken at the moment, as symbols required for linking
58267 # are now in libsupc++ (not built yet). In addition, this test has
58268 # cored on solaris in the past. In addition, --gc-sections doesn't
58269 # really work at the moment (keeps on discarding used sections, first
58270 # .eh_frame and now some of the glibc sections for iconv).
58271 # Bzzzzt. Thanks for playing, maybe next time.
58272 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
58273 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
58274 if test "$cross_compiling" = yes; then
58275 ac_sectionLDflags=yes
58276 else
58277 cat >conftest.$ac_ext <<_ACEOF
58278 /* confdefs.h. */
58279 _ACEOF
58280 cat confdefs.h >>conftest.$ac_ext
58281 cat >>conftest.$ac_ext <<_ACEOF
58282 /* end confdefs.h. */
58284 int main(void)
58286 try { throw 1; }
58287 catch (...) { };
58288 return 0;
58291 _ACEOF
58292 rm -f conftest$ac_exeext
58293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58294 (eval $ac_link) 2>&5
58295 ac_status=$?
58296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58299 (eval $ac_try) 2>&5
58300 ac_status=$?
58301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58302 (exit $ac_status); }; }; then
58303 ac_sectionLDflags=yes
58304 else
58305 echo "$as_me: program exited with status $ac_status" >&5
58306 echo "$as_me: failed program was:" >&5
58307 sed 's/^/| /' conftest.$ac_ext >&5
58309 ( exit $ac_status )
58310 ac_sectionLDflags=no
58312 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58314 if test "$ac_test_CFLAGS" = set; then
58315 CFLAGS="$ac_save_CFLAGS"
58316 else
58317 # this is the suspicious part
58318 CFLAGS=''
58320 if test "$ac_sectionLDflags" = "yes"; then
58321 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
58323 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
58324 echo "${ECHO_T}$ac_sectionLDflags" >&6
58327 # Set linker optimization flags.
58328 if test x"$with_gnu_ld" = x"yes"; then
58329 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
58337 echo "$as_me:$LINENO: checking for main in -lm" >&5
58338 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
58339 if test "${ac_cv_lib_m_main+set}" = set; then
58340 echo $ECHO_N "(cached) $ECHO_C" >&6
58341 else
58342 ac_check_lib_save_LIBS=$LIBS
58343 LIBS="-lm $LIBS"
58344 if test x$gcc_no_link = xyes; then
58345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58347 { (exit 1); exit 1; }; }
58349 cat >conftest.$ac_ext <<_ACEOF
58350 /* confdefs.h. */
58351 _ACEOF
58352 cat confdefs.h >>conftest.$ac_ext
58353 cat >>conftest.$ac_ext <<_ACEOF
58354 /* end confdefs.h. */
58358 main ()
58360 main ();
58362 return 0;
58364 _ACEOF
58365 rm -f conftest.$ac_objext conftest$ac_exeext
58366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58367 (eval $ac_link) 2>conftest.er1
58368 ac_status=$?
58369 grep -v '^ *+' conftest.er1 >conftest.err
58370 rm -f conftest.er1
58371 cat conftest.err >&5
58372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58373 (exit $ac_status); } &&
58374 { ac_try='test -z "$ac_c_werror_flag"
58375 || test ! -s conftest.err'
58376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58377 (eval $ac_try) 2>&5
58378 ac_status=$?
58379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58380 (exit $ac_status); }; } &&
58381 { ac_try='test -s conftest$ac_exeext'
58382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58383 (eval $ac_try) 2>&5
58384 ac_status=$?
58385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58386 (exit $ac_status); }; }; then
58387 ac_cv_lib_m_main=yes
58388 else
58389 echo "$as_me: failed program was:" >&5
58390 sed 's/^/| /' conftest.$ac_ext >&5
58392 ac_cv_lib_m_main=no
58394 rm -f conftest.err conftest.$ac_objext \
58395 conftest$ac_exeext conftest.$ac_ext
58396 LIBS=$ac_check_lib_save_LIBS
58398 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
58399 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
58400 if test $ac_cv_lib_m_main = yes; then
58401 cat >>confdefs.h <<_ACEOF
58402 #define HAVE_LIBM 1
58403 _ACEOF
58405 LIBS="-lm $LIBS"
58410 for ac_func in copysignf
58412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58413 echo "$as_me:$LINENO: checking for $ac_func" >&5
58414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58415 if eval "test \"\${$as_ac_var+set}\" = set"; then
58416 echo $ECHO_N "(cached) $ECHO_C" >&6
58417 else
58418 if test x$gcc_no_link = xyes; then
58419 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58421 { (exit 1); exit 1; }; }
58423 cat >conftest.$ac_ext <<_ACEOF
58424 /* confdefs.h. */
58425 _ACEOF
58426 cat confdefs.h >>conftest.$ac_ext
58427 cat >>conftest.$ac_ext <<_ACEOF
58428 /* end confdefs.h. */
58429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58431 #define $ac_func innocuous_$ac_func
58433 /* System header to define __stub macros and hopefully few prototypes,
58434 which can conflict with char $ac_func (); below.
58435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58436 <limits.h> exists even on freestanding compilers. */
58438 #ifdef __STDC__
58439 # include <limits.h>
58440 #else
58441 # include <assert.h>
58442 #endif
58444 #undef $ac_func
58446 /* Override any gcc2 internal prototype to avoid an error. */
58447 #ifdef __cplusplus
58448 extern "C"
58450 #endif
58451 /* We use char because int might match the return type of a gcc2
58452 builtin and then its argument prototype would still apply. */
58453 char $ac_func ();
58454 /* The GNU C library defines this for functions which it implements
58455 to always fail with ENOSYS. Some functions are actually named
58456 something starting with __ and the normal name is an alias. */
58457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58458 choke me
58459 #else
58460 char (*f) () = $ac_func;
58461 #endif
58462 #ifdef __cplusplus
58464 #endif
58467 main ()
58469 return f != $ac_func;
58471 return 0;
58473 _ACEOF
58474 rm -f conftest.$ac_objext conftest$ac_exeext
58475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58476 (eval $ac_link) 2>conftest.er1
58477 ac_status=$?
58478 grep -v '^ *+' conftest.er1 >conftest.err
58479 rm -f conftest.er1
58480 cat conftest.err >&5
58481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58482 (exit $ac_status); } &&
58483 { ac_try='test -z "$ac_c_werror_flag"
58484 || test ! -s conftest.err'
58485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58486 (eval $ac_try) 2>&5
58487 ac_status=$?
58488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58489 (exit $ac_status); }; } &&
58490 { ac_try='test -s conftest$ac_exeext'
58491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58492 (eval $ac_try) 2>&5
58493 ac_status=$?
58494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58495 (exit $ac_status); }; }; then
58496 eval "$as_ac_var=yes"
58497 else
58498 echo "$as_me: failed program was:" >&5
58499 sed 's/^/| /' conftest.$ac_ext >&5
58501 eval "$as_ac_var=no"
58503 rm -f conftest.err conftest.$ac_objext \
58504 conftest$ac_exeext conftest.$ac_ext
58506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58508 if test `eval echo '${'$as_ac_var'}'` = yes; then
58509 cat >>confdefs.h <<_ACEOF
58510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58511 _ACEOF
58513 else
58514 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
58516 done
58520 for ac_func in __signbit
58522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58523 echo "$as_me:$LINENO: checking for $ac_func" >&5
58524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58525 if eval "test \"\${$as_ac_var+set}\" = set"; then
58526 echo $ECHO_N "(cached) $ECHO_C" >&6
58527 else
58528 if test x$gcc_no_link = xyes; then
58529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58531 { (exit 1); exit 1; }; }
58533 cat >conftest.$ac_ext <<_ACEOF
58534 /* confdefs.h. */
58535 _ACEOF
58536 cat confdefs.h >>conftest.$ac_ext
58537 cat >>conftest.$ac_ext <<_ACEOF
58538 /* end confdefs.h. */
58539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58541 #define $ac_func innocuous_$ac_func
58543 /* System header to define __stub macros and hopefully few prototypes,
58544 which can conflict with char $ac_func (); below.
58545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58546 <limits.h> exists even on freestanding compilers. */
58548 #ifdef __STDC__
58549 # include <limits.h>
58550 #else
58551 # include <assert.h>
58552 #endif
58554 #undef $ac_func
58556 /* Override any gcc2 internal prototype to avoid an error. */
58557 #ifdef __cplusplus
58558 extern "C"
58560 #endif
58561 /* We use char because int might match the return type of a gcc2
58562 builtin and then its argument prototype would still apply. */
58563 char $ac_func ();
58564 /* The GNU C library defines this for functions which it implements
58565 to always fail with ENOSYS. Some functions are actually named
58566 something starting with __ and the normal name is an alias. */
58567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58568 choke me
58569 #else
58570 char (*f) () = $ac_func;
58571 #endif
58572 #ifdef __cplusplus
58574 #endif
58577 main ()
58579 return f != $ac_func;
58581 return 0;
58583 _ACEOF
58584 rm -f conftest.$ac_objext conftest$ac_exeext
58585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58586 (eval $ac_link) 2>conftest.er1
58587 ac_status=$?
58588 grep -v '^ *+' conftest.er1 >conftest.err
58589 rm -f conftest.er1
58590 cat conftest.err >&5
58591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58592 (exit $ac_status); } &&
58593 { ac_try='test -z "$ac_c_werror_flag"
58594 || test ! -s conftest.err'
58595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58596 (eval $ac_try) 2>&5
58597 ac_status=$?
58598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58599 (exit $ac_status); }; } &&
58600 { ac_try='test -s conftest$ac_exeext'
58601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58602 (eval $ac_try) 2>&5
58603 ac_status=$?
58604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58605 (exit $ac_status); }; }; then
58606 eval "$as_ac_var=yes"
58607 else
58608 echo "$as_me: failed program was:" >&5
58609 sed 's/^/| /' conftest.$ac_ext >&5
58611 eval "$as_ac_var=no"
58613 rm -f conftest.err conftest.$ac_objext \
58614 conftest$ac_exeext conftest.$ac_ext
58616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58618 if test `eval echo '${'$as_ac_var'}'` = yes; then
58619 cat >>confdefs.h <<_ACEOF
58620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58621 _ACEOF
58623 else
58624 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
58626 done
58629 for ac_func in __signbitf
58631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58632 echo "$as_me:$LINENO: checking for $ac_func" >&5
58633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58634 if eval "test \"\${$as_ac_var+set}\" = set"; then
58635 echo $ECHO_N "(cached) $ECHO_C" >&6
58636 else
58637 if test x$gcc_no_link = xyes; then
58638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58640 { (exit 1); exit 1; }; }
58642 cat >conftest.$ac_ext <<_ACEOF
58643 /* confdefs.h. */
58644 _ACEOF
58645 cat confdefs.h >>conftest.$ac_ext
58646 cat >>conftest.$ac_ext <<_ACEOF
58647 /* end confdefs.h. */
58648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58650 #define $ac_func innocuous_$ac_func
58652 /* System header to define __stub macros and hopefully few prototypes,
58653 which can conflict with char $ac_func (); below.
58654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58655 <limits.h> exists even on freestanding compilers. */
58657 #ifdef __STDC__
58658 # include <limits.h>
58659 #else
58660 # include <assert.h>
58661 #endif
58663 #undef $ac_func
58665 /* Override any gcc2 internal prototype to avoid an error. */
58666 #ifdef __cplusplus
58667 extern "C"
58669 #endif
58670 /* We use char because int might match the return type of a gcc2
58671 builtin and then its argument prototype would still apply. */
58672 char $ac_func ();
58673 /* The GNU C library defines this for functions which it implements
58674 to always fail with ENOSYS. Some functions are actually named
58675 something starting with __ and the normal name is an alias. */
58676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58677 choke me
58678 #else
58679 char (*f) () = $ac_func;
58680 #endif
58681 #ifdef __cplusplus
58683 #endif
58686 main ()
58688 return f != $ac_func;
58690 return 0;
58692 _ACEOF
58693 rm -f conftest.$ac_objext conftest$ac_exeext
58694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58695 (eval $ac_link) 2>conftest.er1
58696 ac_status=$?
58697 grep -v '^ *+' conftest.er1 >conftest.err
58698 rm -f conftest.er1
58699 cat conftest.err >&5
58700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58701 (exit $ac_status); } &&
58702 { ac_try='test -z "$ac_c_werror_flag"
58703 || test ! -s conftest.err'
58704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58705 (eval $ac_try) 2>&5
58706 ac_status=$?
58707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58708 (exit $ac_status); }; } &&
58709 { ac_try='test -s conftest$ac_exeext'
58710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58711 (eval $ac_try) 2>&5
58712 ac_status=$?
58713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58714 (exit $ac_status); }; }; then
58715 eval "$as_ac_var=yes"
58716 else
58717 echo "$as_me: failed program was:" >&5
58718 sed 's/^/| /' conftest.$ac_ext >&5
58720 eval "$as_ac_var=no"
58722 rm -f conftest.err conftest.$ac_objext \
58723 conftest$ac_exeext conftest.$ac_ext
58725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58727 if test `eval echo '${'$as_ac_var'}'` = yes; then
58728 cat >>confdefs.h <<_ACEOF
58729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58730 _ACEOF
58732 else
58733 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58735 done
58738 if test x$ac_cv_func_copysignl = x"yes"; then
58740 for ac_func in __signbitl
58742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58743 echo "$as_me:$LINENO: checking for $ac_func" >&5
58744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58745 if eval "test \"\${$as_ac_var+set}\" = set"; then
58746 echo $ECHO_N "(cached) $ECHO_C" >&6
58747 else
58748 if test x$gcc_no_link = xyes; then
58749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58751 { (exit 1); exit 1; }; }
58753 cat >conftest.$ac_ext <<_ACEOF
58754 /* confdefs.h. */
58755 _ACEOF
58756 cat confdefs.h >>conftest.$ac_ext
58757 cat >>conftest.$ac_ext <<_ACEOF
58758 /* end confdefs.h. */
58759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58761 #define $ac_func innocuous_$ac_func
58763 /* System header to define __stub macros and hopefully few prototypes,
58764 which can conflict with char $ac_func (); below.
58765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58766 <limits.h> exists even on freestanding compilers. */
58768 #ifdef __STDC__
58769 # include <limits.h>
58770 #else
58771 # include <assert.h>
58772 #endif
58774 #undef $ac_func
58776 /* Override any gcc2 internal prototype to avoid an error. */
58777 #ifdef __cplusplus
58778 extern "C"
58780 #endif
58781 /* We use char because int might match the return type of a gcc2
58782 builtin and then its argument prototype would still apply. */
58783 char $ac_func ();
58784 /* The GNU C library defines this for functions which it implements
58785 to always fail with ENOSYS. Some functions are actually named
58786 something starting with __ and the normal name is an alias. */
58787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58788 choke me
58789 #else
58790 char (*f) () = $ac_func;
58791 #endif
58792 #ifdef __cplusplus
58794 #endif
58797 main ()
58799 return f != $ac_func;
58801 return 0;
58803 _ACEOF
58804 rm -f conftest.$ac_objext conftest$ac_exeext
58805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58806 (eval $ac_link) 2>conftest.er1
58807 ac_status=$?
58808 grep -v '^ *+' conftest.er1 >conftest.err
58809 rm -f conftest.er1
58810 cat conftest.err >&5
58811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58812 (exit $ac_status); } &&
58813 { ac_try='test -z "$ac_c_werror_flag"
58814 || test ! -s conftest.err'
58815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58816 (eval $ac_try) 2>&5
58817 ac_status=$?
58818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58819 (exit $ac_status); }; } &&
58820 { ac_try='test -s conftest$ac_exeext'
58821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58822 (eval $ac_try) 2>&5
58823 ac_status=$?
58824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58825 (exit $ac_status); }; }; then
58826 eval "$as_ac_var=yes"
58827 else
58828 echo "$as_me: failed program was:" >&5
58829 sed 's/^/| /' conftest.$ac_ext >&5
58831 eval "$as_ac_var=no"
58833 rm -f conftest.err conftest.$ac_objext \
58834 conftest$ac_exeext conftest.$ac_ext
58836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58838 if test `eval echo '${'$as_ac_var'}'` = yes; then
58839 cat >>confdefs.h <<_ACEOF
58840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58841 _ACEOF
58843 else
58844 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
58846 done
58850 # XXX Review this. Nothing uses it.
58851 if test -n "$LIBMATHOBJS"; then
58852 need_libmath=yes
58857 # Test wchar.h for mbstate_t, which is needed for char_traits and
58858 # others even if wchar_t support is not on.
58859 echo "$as_me:$LINENO: checking for mbstate_t" >&5
58860 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
58861 cat >conftest.$ac_ext <<_ACEOF
58862 /* confdefs.h. */
58863 _ACEOF
58864 cat confdefs.h >>conftest.$ac_ext
58865 cat >>conftest.$ac_ext <<_ACEOF
58866 /* end confdefs.h. */
58867 #include <wchar.h>
58869 main ()
58871 mbstate_t teststate;
58873 return 0;
58875 _ACEOF
58876 rm -f conftest.$ac_objext
58877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58878 (eval $ac_compile) 2>conftest.er1
58879 ac_status=$?
58880 grep -v '^ *+' conftest.er1 >conftest.err
58881 rm -f conftest.er1
58882 cat conftest.err >&5
58883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58884 (exit $ac_status); } &&
58885 { ac_try='test -z "$ac_c_werror_flag"
58886 || test ! -s conftest.err'
58887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58888 (eval $ac_try) 2>&5
58889 ac_status=$?
58890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58891 (exit $ac_status); }; } &&
58892 { ac_try='test -s conftest.$ac_objext'
58893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58894 (eval $ac_try) 2>&5
58895 ac_status=$?
58896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58897 (exit $ac_status); }; }; then
58898 have_mbstate_t=yes
58899 else
58900 echo "$as_me: failed program was:" >&5
58901 sed 's/^/| /' conftest.$ac_ext >&5
58903 have_mbstate_t=no
58905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58906 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58907 echo "${ECHO_T}$have_mbstate_t" >&6
58908 if test x"$have_mbstate_t" = xyes; then
58909 cat >>confdefs.h <<\_ACEOF
58910 #define HAVE_MBSTATE_T 1
58911 _ACEOF
58915 # Sanity check for existence of ISO C99 headers for extended encoding.
58917 for ac_header in wchar.h
58919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58921 echo "$as_me:$LINENO: checking for $ac_header" >&5
58922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58924 echo $ECHO_N "(cached) $ECHO_C" >&6
58926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58928 else
58929 # Is the header compilable?
58930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58932 cat >conftest.$ac_ext <<_ACEOF
58933 /* confdefs.h. */
58934 _ACEOF
58935 cat confdefs.h >>conftest.$ac_ext
58936 cat >>conftest.$ac_ext <<_ACEOF
58937 /* end confdefs.h. */
58938 $ac_includes_default
58939 #include <$ac_header>
58940 _ACEOF
58941 rm -f conftest.$ac_objext
58942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58943 (eval $ac_compile) 2>conftest.er1
58944 ac_status=$?
58945 grep -v '^ *+' conftest.er1 >conftest.err
58946 rm -f conftest.er1
58947 cat conftest.err >&5
58948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58949 (exit $ac_status); } &&
58950 { ac_try='test -z "$ac_c_werror_flag"
58951 || test ! -s conftest.err'
58952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58953 (eval $ac_try) 2>&5
58954 ac_status=$?
58955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58956 (exit $ac_status); }; } &&
58957 { ac_try='test -s conftest.$ac_objext'
58958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58959 (eval $ac_try) 2>&5
58960 ac_status=$?
58961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58962 (exit $ac_status); }; }; then
58963 ac_header_compiler=yes
58964 else
58965 echo "$as_me: failed program was:" >&5
58966 sed 's/^/| /' conftest.$ac_ext >&5
58968 ac_header_compiler=no
58970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58972 echo "${ECHO_T}$ac_header_compiler" >&6
58974 # Is the header present?
58975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58977 cat >conftest.$ac_ext <<_ACEOF
58978 /* confdefs.h. */
58979 _ACEOF
58980 cat confdefs.h >>conftest.$ac_ext
58981 cat >>conftest.$ac_ext <<_ACEOF
58982 /* end confdefs.h. */
58983 #include <$ac_header>
58984 _ACEOF
58985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58987 ac_status=$?
58988 grep -v '^ *+' conftest.er1 >conftest.err
58989 rm -f conftest.er1
58990 cat conftest.err >&5
58991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58992 (exit $ac_status); } >/dev/null; then
58993 if test -s conftest.err; then
58994 ac_cpp_err=$ac_c_preproc_warn_flag
58995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58996 else
58997 ac_cpp_err=
58999 else
59000 ac_cpp_err=yes
59002 if test -z "$ac_cpp_err"; then
59003 ac_header_preproc=yes
59004 else
59005 echo "$as_me: failed program was:" >&5
59006 sed 's/^/| /' conftest.$ac_ext >&5
59008 ac_header_preproc=no
59010 rm -f conftest.err conftest.$ac_ext
59011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59012 echo "${ECHO_T}$ac_header_preproc" >&6
59014 # So? What about this header?
59015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59016 yes:no: )
59017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59021 ac_header_preproc=yes
59023 no:yes:* )
59024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59037 cat <<\_ASBOX
59038 ## ----------------------------------------- ##
59039 ## Report this to the package-unused lists. ##
59040 ## ----------------------------------------- ##
59041 _ASBOX
59043 sed "s/^/$as_me: WARNING: /" >&2
59045 esac
59046 echo "$as_me:$LINENO: checking for $ac_header" >&5
59047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59049 echo $ECHO_N "(cached) $ECHO_C" >&6
59050 else
59051 eval "$as_ac_Header=\$ac_header_preproc"
59053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59058 cat >>confdefs.h <<_ACEOF
59059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59060 _ACEOF
59061 ac_has_wchar_h=yes
59062 else
59063 ac_has_wchar_h=no
59066 done
59069 for ac_header in wctype.h
59071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59073 echo "$as_me:$LINENO: checking for $ac_header" >&5
59074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59076 echo $ECHO_N "(cached) $ECHO_C" >&6
59078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59080 else
59081 # Is the header compilable?
59082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59084 cat >conftest.$ac_ext <<_ACEOF
59085 /* confdefs.h. */
59086 _ACEOF
59087 cat confdefs.h >>conftest.$ac_ext
59088 cat >>conftest.$ac_ext <<_ACEOF
59089 /* end confdefs.h. */
59090 $ac_includes_default
59091 #include <$ac_header>
59092 _ACEOF
59093 rm -f conftest.$ac_objext
59094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59095 (eval $ac_compile) 2>conftest.er1
59096 ac_status=$?
59097 grep -v '^ *+' conftest.er1 >conftest.err
59098 rm -f conftest.er1
59099 cat conftest.err >&5
59100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59101 (exit $ac_status); } &&
59102 { ac_try='test -z "$ac_c_werror_flag"
59103 || test ! -s conftest.err'
59104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59105 (eval $ac_try) 2>&5
59106 ac_status=$?
59107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59108 (exit $ac_status); }; } &&
59109 { ac_try='test -s conftest.$ac_objext'
59110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59111 (eval $ac_try) 2>&5
59112 ac_status=$?
59113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59114 (exit $ac_status); }; }; then
59115 ac_header_compiler=yes
59116 else
59117 echo "$as_me: failed program was:" >&5
59118 sed 's/^/| /' conftest.$ac_ext >&5
59120 ac_header_compiler=no
59122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59124 echo "${ECHO_T}$ac_header_compiler" >&6
59126 # Is the header present?
59127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59129 cat >conftest.$ac_ext <<_ACEOF
59130 /* confdefs.h. */
59131 _ACEOF
59132 cat confdefs.h >>conftest.$ac_ext
59133 cat >>conftest.$ac_ext <<_ACEOF
59134 /* end confdefs.h. */
59135 #include <$ac_header>
59136 _ACEOF
59137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59139 ac_status=$?
59140 grep -v '^ *+' conftest.er1 >conftest.err
59141 rm -f conftest.er1
59142 cat conftest.err >&5
59143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59144 (exit $ac_status); } >/dev/null; then
59145 if test -s conftest.err; then
59146 ac_cpp_err=$ac_c_preproc_warn_flag
59147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59148 else
59149 ac_cpp_err=
59151 else
59152 ac_cpp_err=yes
59154 if test -z "$ac_cpp_err"; then
59155 ac_header_preproc=yes
59156 else
59157 echo "$as_me: failed program was:" >&5
59158 sed 's/^/| /' conftest.$ac_ext >&5
59160 ac_header_preproc=no
59162 rm -f conftest.err conftest.$ac_ext
59163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59164 echo "${ECHO_T}$ac_header_preproc" >&6
59166 # So? What about this header?
59167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59168 yes:no: )
59169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59173 ac_header_preproc=yes
59175 no:yes:* )
59176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59189 cat <<\_ASBOX
59190 ## ----------------------------------------- ##
59191 ## Report this to the package-unused lists. ##
59192 ## ----------------------------------------- ##
59193 _ASBOX
59195 sed "s/^/$as_me: WARNING: /" >&2
59197 esac
59198 echo "$as_me:$LINENO: checking for $ac_header" >&5
59199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59201 echo $ECHO_N "(cached) $ECHO_C" >&6
59202 else
59203 eval "$as_ac_Header=\$ac_header_preproc"
59205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59210 cat >>confdefs.h <<_ACEOF
59211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59212 _ACEOF
59213 ac_has_wctype_h=yes
59214 else
59215 ac_has_wctype_h=no
59218 done
59221 # Only continue checking if the ISO C99 headers exist and support is on.
59222 if test x"$ac_has_wchar_h" = xyes &&
59223 test x"$ac_has_wctype_h" = xyes &&
59224 test x"$enable_c_mbchar" != xno; then
59226 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59227 # numeric_limits can instantiate type_traits<wchar_t>
59228 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59229 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59230 cat >conftest.$ac_ext <<_ACEOF
59231 /* confdefs.h. */
59232 _ACEOF
59233 cat confdefs.h >>conftest.$ac_ext
59234 cat >>conftest.$ac_ext <<_ACEOF
59235 /* end confdefs.h. */
59236 #include <wchar.h>
59238 main ()
59240 int i = WCHAR_MIN; int j = WCHAR_MAX;
59242 return 0;
59244 _ACEOF
59245 rm -f conftest.$ac_objext
59246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59247 (eval $ac_compile) 2>conftest.er1
59248 ac_status=$?
59249 grep -v '^ *+' conftest.er1 >conftest.err
59250 rm -f conftest.er1
59251 cat conftest.err >&5
59252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59253 (exit $ac_status); } &&
59254 { ac_try='test -z "$ac_c_werror_flag"
59255 || test ! -s conftest.err'
59256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59257 (eval $ac_try) 2>&5
59258 ac_status=$?
59259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59260 (exit $ac_status); }; } &&
59261 { ac_try='test -s conftest.$ac_objext'
59262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59263 (eval $ac_try) 2>&5
59264 ac_status=$?
59265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59266 (exit $ac_status); }; }; then
59267 has_wchar_minmax=yes
59268 else
59269 echo "$as_me: failed program was:" >&5
59270 sed 's/^/| /' conftest.$ac_ext >&5
59272 has_wchar_minmax=no
59274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59275 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59276 echo "${ECHO_T}$has_wchar_minmax" >&6
59278 # Test wchar.h for WEOF, which is what we use to determine whether
59279 # to specialize for char_traits<wchar_t> or not.
59280 echo "$as_me:$LINENO: checking for WEOF" >&5
59281 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59282 cat >conftest.$ac_ext <<_ACEOF
59283 /* confdefs.h. */
59284 _ACEOF
59285 cat confdefs.h >>conftest.$ac_ext
59286 cat >>conftest.$ac_ext <<_ACEOF
59287 /* end confdefs.h. */
59289 #include <wchar.h>
59290 #include <stddef.h>
59292 main ()
59294 wint_t i = WEOF;
59296 return 0;
59298 _ACEOF
59299 rm -f conftest.$ac_objext
59300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59301 (eval $ac_compile) 2>conftest.er1
59302 ac_status=$?
59303 grep -v '^ *+' conftest.er1 >conftest.err
59304 rm -f conftest.er1
59305 cat conftest.err >&5
59306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59307 (exit $ac_status); } &&
59308 { ac_try='test -z "$ac_c_werror_flag"
59309 || test ! -s conftest.err'
59310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59311 (eval $ac_try) 2>&5
59312 ac_status=$?
59313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59314 (exit $ac_status); }; } &&
59315 { ac_try='test -s conftest.$ac_objext'
59316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59317 (eval $ac_try) 2>&5
59318 ac_status=$?
59319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59320 (exit $ac_status); }; }; then
59321 has_weof=yes
59322 else
59323 echo "$as_me: failed program was:" >&5
59324 sed 's/^/| /' conftest.$ac_ext >&5
59326 has_weof=no
59328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59329 echo "$as_me:$LINENO: result: $has_weof" >&5
59330 echo "${ECHO_T}$has_weof" >&6
59332 # Tests for wide character functions used in char_traits<wchar_t>.
59333 ac_wfuncs=yes
59340 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59343 echo "$as_me:$LINENO: checking for $ac_func" >&5
59344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59345 if eval "test \"\${$as_ac_var+set}\" = set"; then
59346 echo $ECHO_N "(cached) $ECHO_C" >&6
59347 else
59348 if test x$gcc_no_link = xyes; then
59349 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59351 { (exit 1); exit 1; }; }
59353 cat >conftest.$ac_ext <<_ACEOF
59354 /* confdefs.h. */
59355 _ACEOF
59356 cat confdefs.h >>conftest.$ac_ext
59357 cat >>conftest.$ac_ext <<_ACEOF
59358 /* end confdefs.h. */
59359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59361 #define $ac_func innocuous_$ac_func
59363 /* System header to define __stub macros and hopefully few prototypes,
59364 which can conflict with char $ac_func (); below.
59365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59366 <limits.h> exists even on freestanding compilers. */
59368 #ifdef __STDC__
59369 # include <limits.h>
59370 #else
59371 # include <assert.h>
59372 #endif
59374 #undef $ac_func
59376 /* Override any gcc2 internal prototype to avoid an error. */
59377 #ifdef __cplusplus
59378 extern "C"
59380 #endif
59381 /* We use char because int might match the return type of a gcc2
59382 builtin and then its argument prototype would still apply. */
59383 char $ac_func ();
59384 /* The GNU C library defines this for functions which it implements
59385 to always fail with ENOSYS. Some functions are actually named
59386 something starting with __ and the normal name is an alias. */
59387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59388 choke me
59389 #else
59390 char (*f) () = $ac_func;
59391 #endif
59392 #ifdef __cplusplus
59394 #endif
59397 main ()
59399 return f != $ac_func;
59401 return 0;
59403 _ACEOF
59404 rm -f conftest.$ac_objext conftest$ac_exeext
59405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59406 (eval $ac_link) 2>conftest.er1
59407 ac_status=$?
59408 grep -v '^ *+' conftest.er1 >conftest.err
59409 rm -f conftest.er1
59410 cat conftest.err >&5
59411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59412 (exit $ac_status); } &&
59413 { ac_try='test -z "$ac_c_werror_flag"
59414 || test ! -s conftest.err'
59415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59416 (eval $ac_try) 2>&5
59417 ac_status=$?
59418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59419 (exit $ac_status); }; } &&
59420 { ac_try='test -s conftest$ac_exeext'
59421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59422 (eval $ac_try) 2>&5
59423 ac_status=$?
59424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59425 (exit $ac_status); }; }; then
59426 eval "$as_ac_var=yes"
59427 else
59428 echo "$as_me: failed program was:" >&5
59429 sed 's/^/| /' conftest.$ac_ext >&5
59431 eval "$as_ac_var=no"
59433 rm -f conftest.err conftest.$ac_objext \
59434 conftest$ac_exeext conftest.$ac_ext
59436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59438 if test `eval echo '${'$as_ac_var'}'` = yes; then
59439 cat >>confdefs.h <<_ACEOF
59440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59441 _ACEOF
59443 else
59444 ac_wfuncs=no
59446 done
59449 # Checks for names injected into std:: by the c_std headers.
59496 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59497 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59498 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59499 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59500 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59501 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59504 echo "$as_me:$LINENO: checking for $ac_func" >&5
59505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59506 if eval "test \"\${$as_ac_var+set}\" = set"; then
59507 echo $ECHO_N "(cached) $ECHO_C" >&6
59508 else
59509 if test x$gcc_no_link = xyes; then
59510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59512 { (exit 1); exit 1; }; }
59514 cat >conftest.$ac_ext <<_ACEOF
59515 /* confdefs.h. */
59516 _ACEOF
59517 cat confdefs.h >>conftest.$ac_ext
59518 cat >>conftest.$ac_ext <<_ACEOF
59519 /* end confdefs.h. */
59520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59522 #define $ac_func innocuous_$ac_func
59524 /* System header to define __stub macros and hopefully few prototypes,
59525 which can conflict with char $ac_func (); below.
59526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59527 <limits.h> exists even on freestanding compilers. */
59529 #ifdef __STDC__
59530 # include <limits.h>
59531 #else
59532 # include <assert.h>
59533 #endif
59535 #undef $ac_func
59537 /* Override any gcc2 internal prototype to avoid an error. */
59538 #ifdef __cplusplus
59539 extern "C"
59541 #endif
59542 /* We use char because int might match the return type of a gcc2
59543 builtin and then its argument prototype would still apply. */
59544 char $ac_func ();
59545 /* The GNU C library defines this for functions which it implements
59546 to always fail with ENOSYS. Some functions are actually named
59547 something starting with __ and the normal name is an alias. */
59548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59549 choke me
59550 #else
59551 char (*f) () = $ac_func;
59552 #endif
59553 #ifdef __cplusplus
59555 #endif
59558 main ()
59560 return f != $ac_func;
59562 return 0;
59564 _ACEOF
59565 rm -f conftest.$ac_objext conftest$ac_exeext
59566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59567 (eval $ac_link) 2>conftest.er1
59568 ac_status=$?
59569 grep -v '^ *+' conftest.er1 >conftest.err
59570 rm -f conftest.er1
59571 cat conftest.err >&5
59572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59573 (exit $ac_status); } &&
59574 { ac_try='test -z "$ac_c_werror_flag"
59575 || test ! -s conftest.err'
59576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59577 (eval $ac_try) 2>&5
59578 ac_status=$?
59579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59580 (exit $ac_status); }; } &&
59581 { ac_try='test -s conftest$ac_exeext'
59582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59583 (eval $ac_try) 2>&5
59584 ac_status=$?
59585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59586 (exit $ac_status); }; }; then
59587 eval "$as_ac_var=yes"
59588 else
59589 echo "$as_me: failed program was:" >&5
59590 sed 's/^/| /' conftest.$ac_ext >&5
59592 eval "$as_ac_var=no"
59594 rm -f conftest.err conftest.$ac_objext \
59595 conftest$ac_exeext conftest.$ac_ext
59597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59599 if test `eval echo '${'$as_ac_var'}'` = yes; then
59600 cat >>confdefs.h <<_ACEOF
59601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59602 _ACEOF
59604 else
59605 ac_wfuncs=no
59607 done
59610 # Checks for wide character functions that are not required
59611 # for basic wchar_t support. Don't disable support if they are missing.
59612 # Injection of these is wrapped with guard macros.
59618 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
59620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59621 echo "$as_me:$LINENO: checking for $ac_func" >&5
59622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59623 if eval "test \"\${$as_ac_var+set}\" = set"; then
59624 echo $ECHO_N "(cached) $ECHO_C" >&6
59625 else
59626 if test x$gcc_no_link = xyes; then
59627 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59628 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59629 { (exit 1); exit 1; }; }
59631 cat >conftest.$ac_ext <<_ACEOF
59632 /* confdefs.h. */
59633 _ACEOF
59634 cat confdefs.h >>conftest.$ac_ext
59635 cat >>conftest.$ac_ext <<_ACEOF
59636 /* end confdefs.h. */
59637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59639 #define $ac_func innocuous_$ac_func
59641 /* System header to define __stub macros and hopefully few prototypes,
59642 which can conflict with char $ac_func (); below.
59643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59644 <limits.h> exists even on freestanding compilers. */
59646 #ifdef __STDC__
59647 # include <limits.h>
59648 #else
59649 # include <assert.h>
59650 #endif
59652 #undef $ac_func
59654 /* Override any gcc2 internal prototype to avoid an error. */
59655 #ifdef __cplusplus
59656 extern "C"
59658 #endif
59659 /* We use char because int might match the return type of a gcc2
59660 builtin and then its argument prototype would still apply. */
59661 char $ac_func ();
59662 /* The GNU C library defines this for functions which it implements
59663 to always fail with ENOSYS. Some functions are actually named
59664 something starting with __ and the normal name is an alias. */
59665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59666 choke me
59667 #else
59668 char (*f) () = $ac_func;
59669 #endif
59670 #ifdef __cplusplus
59672 #endif
59675 main ()
59677 return f != $ac_func;
59679 return 0;
59681 _ACEOF
59682 rm -f conftest.$ac_objext conftest$ac_exeext
59683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59684 (eval $ac_link) 2>conftest.er1
59685 ac_status=$?
59686 grep -v '^ *+' conftest.er1 >conftest.err
59687 rm -f conftest.er1
59688 cat conftest.err >&5
59689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59690 (exit $ac_status); } &&
59691 { ac_try='test -z "$ac_c_werror_flag"
59692 || test ! -s conftest.err'
59693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59694 (eval $ac_try) 2>&5
59695 ac_status=$?
59696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59697 (exit $ac_status); }; } &&
59698 { ac_try='test -s conftest$ac_exeext'
59699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59700 (eval $ac_try) 2>&5
59701 ac_status=$?
59702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59703 (exit $ac_status); }; }; then
59704 eval "$as_ac_var=yes"
59705 else
59706 echo "$as_me: failed program was:" >&5
59707 sed 's/^/| /' conftest.$ac_ext >&5
59709 eval "$as_ac_var=no"
59711 rm -f conftest.err conftest.$ac_objext \
59712 conftest$ac_exeext conftest.$ac_ext
59714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59716 if test `eval echo '${'$as_ac_var'}'` = yes; then
59717 cat >>confdefs.h <<_ACEOF
59718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59719 _ACEOF
59722 done
59725 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59726 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59727 if test x"$has_weof" = xyes &&
59728 test x"$has_wchar_minmax" = xyes &&
59729 test x"$ac_wfuncs" = xyes;
59730 then
59731 ac_isoC99_wchar_t=yes
59732 else
59733 ac_isoC99_wchar_t=no
59735 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59736 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59738 # Use iconv for wchar_t to char conversions. As such, check for
59739 # X/Open Portability Guide, version 2 features (XPG2).
59740 if test "${ac_cv_header_iconv_h+set}" = set; then
59741 echo "$as_me:$LINENO: checking for iconv.h" >&5
59742 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59743 if test "${ac_cv_header_iconv_h+set}" = set; then
59744 echo $ECHO_N "(cached) $ECHO_C" >&6
59746 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59747 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59748 else
59749 # Is the header compilable?
59750 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59751 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59752 cat >conftest.$ac_ext <<_ACEOF
59753 /* confdefs.h. */
59754 _ACEOF
59755 cat confdefs.h >>conftest.$ac_ext
59756 cat >>conftest.$ac_ext <<_ACEOF
59757 /* end confdefs.h. */
59758 $ac_includes_default
59759 #include <iconv.h>
59760 _ACEOF
59761 rm -f conftest.$ac_objext
59762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59763 (eval $ac_compile) 2>conftest.er1
59764 ac_status=$?
59765 grep -v '^ *+' conftest.er1 >conftest.err
59766 rm -f conftest.er1
59767 cat conftest.err >&5
59768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59769 (exit $ac_status); } &&
59770 { ac_try='test -z "$ac_c_werror_flag"
59771 || test ! -s conftest.err'
59772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59773 (eval $ac_try) 2>&5
59774 ac_status=$?
59775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59776 (exit $ac_status); }; } &&
59777 { ac_try='test -s conftest.$ac_objext'
59778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59779 (eval $ac_try) 2>&5
59780 ac_status=$?
59781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59782 (exit $ac_status); }; }; then
59783 ac_header_compiler=yes
59784 else
59785 echo "$as_me: failed program was:" >&5
59786 sed 's/^/| /' conftest.$ac_ext >&5
59788 ac_header_compiler=no
59790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59792 echo "${ECHO_T}$ac_header_compiler" >&6
59794 # Is the header present?
59795 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59796 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59797 cat >conftest.$ac_ext <<_ACEOF
59798 /* confdefs.h. */
59799 _ACEOF
59800 cat confdefs.h >>conftest.$ac_ext
59801 cat >>conftest.$ac_ext <<_ACEOF
59802 /* end confdefs.h. */
59803 #include <iconv.h>
59804 _ACEOF
59805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59807 ac_status=$?
59808 grep -v '^ *+' conftest.er1 >conftest.err
59809 rm -f conftest.er1
59810 cat conftest.err >&5
59811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59812 (exit $ac_status); } >/dev/null; then
59813 if test -s conftest.err; then
59814 ac_cpp_err=$ac_c_preproc_warn_flag
59815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59816 else
59817 ac_cpp_err=
59819 else
59820 ac_cpp_err=yes
59822 if test -z "$ac_cpp_err"; then
59823 ac_header_preproc=yes
59824 else
59825 echo "$as_me: failed program was:" >&5
59826 sed 's/^/| /' conftest.$ac_ext >&5
59828 ac_header_preproc=no
59830 rm -f conftest.err conftest.$ac_ext
59831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59832 echo "${ECHO_T}$ac_header_preproc" >&6
59834 # So? What about this header?
59835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59836 yes:no: )
59837 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59838 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59839 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
59840 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
59841 ac_header_preproc=yes
59843 no:yes:* )
59844 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59845 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
59846 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
59847 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
59848 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
59849 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
59850 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
59851 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
59852 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
59853 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
59854 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
59855 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
59857 cat <<\_ASBOX
59858 ## ----------------------------------------- ##
59859 ## Report this to the package-unused lists. ##
59860 ## ----------------------------------------- ##
59861 _ASBOX
59863 sed "s/^/$as_me: WARNING: /" >&2
59865 esac
59866 echo "$as_me:$LINENO: checking for iconv.h" >&5
59867 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59868 if test "${ac_cv_header_iconv_h+set}" = set; then
59869 echo $ECHO_N "(cached) $ECHO_C" >&6
59870 else
59871 ac_cv_header_iconv_h=$ac_header_preproc
59873 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59874 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59877 if test $ac_cv_header_iconv_h = yes; then
59878 ac_has_iconv_h=yes
59879 else
59880 ac_has_iconv_h=no
59884 if test "${ac_cv_header_langinfo_h+set}" = set; then
59885 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59886 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59887 if test "${ac_cv_header_langinfo_h+set}" = set; then
59888 echo $ECHO_N "(cached) $ECHO_C" >&6
59890 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59891 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59892 else
59893 # Is the header compilable?
59894 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
59895 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
59896 cat >conftest.$ac_ext <<_ACEOF
59897 /* confdefs.h. */
59898 _ACEOF
59899 cat confdefs.h >>conftest.$ac_ext
59900 cat >>conftest.$ac_ext <<_ACEOF
59901 /* end confdefs.h. */
59902 $ac_includes_default
59903 #include <langinfo.h>
59904 _ACEOF
59905 rm -f conftest.$ac_objext
59906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59907 (eval $ac_compile) 2>conftest.er1
59908 ac_status=$?
59909 grep -v '^ *+' conftest.er1 >conftest.err
59910 rm -f conftest.er1
59911 cat conftest.err >&5
59912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59913 (exit $ac_status); } &&
59914 { ac_try='test -z "$ac_c_werror_flag"
59915 || test ! -s conftest.err'
59916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59917 (eval $ac_try) 2>&5
59918 ac_status=$?
59919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59920 (exit $ac_status); }; } &&
59921 { ac_try='test -s conftest.$ac_objext'
59922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59923 (eval $ac_try) 2>&5
59924 ac_status=$?
59925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59926 (exit $ac_status); }; }; then
59927 ac_header_compiler=yes
59928 else
59929 echo "$as_me: failed program was:" >&5
59930 sed 's/^/| /' conftest.$ac_ext >&5
59932 ac_header_compiler=no
59934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59936 echo "${ECHO_T}$ac_header_compiler" >&6
59938 # Is the header present?
59939 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
59940 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
59941 cat >conftest.$ac_ext <<_ACEOF
59942 /* confdefs.h. */
59943 _ACEOF
59944 cat confdefs.h >>conftest.$ac_ext
59945 cat >>conftest.$ac_ext <<_ACEOF
59946 /* end confdefs.h. */
59947 #include <langinfo.h>
59948 _ACEOF
59949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59951 ac_status=$?
59952 grep -v '^ *+' conftest.er1 >conftest.err
59953 rm -f conftest.er1
59954 cat conftest.err >&5
59955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59956 (exit $ac_status); } >/dev/null; then
59957 if test -s conftest.err; then
59958 ac_cpp_err=$ac_c_preproc_warn_flag
59959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59960 else
59961 ac_cpp_err=
59963 else
59964 ac_cpp_err=yes
59966 if test -z "$ac_cpp_err"; then
59967 ac_header_preproc=yes
59968 else
59969 echo "$as_me: failed program was:" >&5
59970 sed 's/^/| /' conftest.$ac_ext >&5
59972 ac_header_preproc=no
59974 rm -f conftest.err conftest.$ac_ext
59975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59976 echo "${ECHO_T}$ac_header_preproc" >&6
59978 # So? What about this header?
59979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59980 yes:no: )
59981 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59982 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59983 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
59984 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
59985 ac_header_preproc=yes
59987 no:yes:* )
59988 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
59989 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
59990 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
59991 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
59992 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
59993 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
59994 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
59995 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
59996 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
59997 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
59998 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
59999 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
60001 cat <<\_ASBOX
60002 ## ----------------------------------------- ##
60003 ## Report this to the package-unused lists. ##
60004 ## ----------------------------------------- ##
60005 _ASBOX
60007 sed "s/^/$as_me: WARNING: /" >&2
60009 esac
60010 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60011 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60012 if test "${ac_cv_header_langinfo_h+set}" = set; then
60013 echo $ECHO_N "(cached) $ECHO_C" >&6
60014 else
60015 ac_cv_header_langinfo_h=$ac_header_preproc
60017 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60018 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60021 if test $ac_cv_header_langinfo_h = yes; then
60022 ac_has_langinfo_h=yes
60023 else
60024 ac_has_langinfo_h=no
60029 # Check for existence of libiconv.a providing XPG2 wchar_t support.
60030 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60031 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60032 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60033 echo $ECHO_N "(cached) $ECHO_C" >&6
60034 else
60035 ac_check_lib_save_LIBS=$LIBS
60036 LIBS="-liconv $LIBS"
60037 if test x$gcc_no_link = xyes; then
60038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60040 { (exit 1); exit 1; }; }
60042 cat >conftest.$ac_ext <<_ACEOF
60043 /* confdefs.h. */
60044 _ACEOF
60045 cat confdefs.h >>conftest.$ac_ext
60046 cat >>conftest.$ac_ext <<_ACEOF
60047 /* end confdefs.h. */
60049 /* Override any gcc2 internal prototype to avoid an error. */
60050 #ifdef __cplusplus
60051 extern "C"
60052 #endif
60053 /* We use char because int might match the return type of a gcc2
60054 builtin and then its argument prototype would still apply. */
60055 char iconv ();
60057 main ()
60059 iconv ();
60061 return 0;
60063 _ACEOF
60064 rm -f conftest.$ac_objext conftest$ac_exeext
60065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60066 (eval $ac_link) 2>conftest.er1
60067 ac_status=$?
60068 grep -v '^ *+' conftest.er1 >conftest.err
60069 rm -f conftest.er1
60070 cat conftest.err >&5
60071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60072 (exit $ac_status); } &&
60073 { ac_try='test -z "$ac_c_werror_flag"
60074 || test ! -s conftest.err'
60075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60076 (eval $ac_try) 2>&5
60077 ac_status=$?
60078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60079 (exit $ac_status); }; } &&
60080 { ac_try='test -s conftest$ac_exeext'
60081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60082 (eval $ac_try) 2>&5
60083 ac_status=$?
60084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60085 (exit $ac_status); }; }; then
60086 ac_cv_lib_iconv_iconv=yes
60087 else
60088 echo "$as_me: failed program was:" >&5
60089 sed 's/^/| /' conftest.$ac_ext >&5
60091 ac_cv_lib_iconv_iconv=no
60093 rm -f conftest.err conftest.$ac_objext \
60094 conftest$ac_exeext conftest.$ac_ext
60095 LIBS=$ac_check_lib_save_LIBS
60097 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60098 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60099 if test $ac_cv_lib_iconv_iconv = yes; then
60100 libiconv="-liconv"
60103 ac_save_LIBS="$LIBS"
60104 LIBS="$LIBS $libiconv"
60110 for ac_func in iconv_open iconv_close iconv nl_langinfo
60112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60113 echo "$as_me:$LINENO: checking for $ac_func" >&5
60114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60115 if eval "test \"\${$as_ac_var+set}\" = set"; then
60116 echo $ECHO_N "(cached) $ECHO_C" >&6
60117 else
60118 if test x$gcc_no_link = xyes; then
60119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60121 { (exit 1); exit 1; }; }
60123 cat >conftest.$ac_ext <<_ACEOF
60124 /* confdefs.h. */
60125 _ACEOF
60126 cat confdefs.h >>conftest.$ac_ext
60127 cat >>conftest.$ac_ext <<_ACEOF
60128 /* end confdefs.h. */
60129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60131 #define $ac_func innocuous_$ac_func
60133 /* System header to define __stub macros and hopefully few prototypes,
60134 which can conflict with char $ac_func (); below.
60135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60136 <limits.h> exists even on freestanding compilers. */
60138 #ifdef __STDC__
60139 # include <limits.h>
60140 #else
60141 # include <assert.h>
60142 #endif
60144 #undef $ac_func
60146 /* Override any gcc2 internal prototype to avoid an error. */
60147 #ifdef __cplusplus
60148 extern "C"
60150 #endif
60151 /* We use char because int might match the return type of a gcc2
60152 builtin and then its argument prototype would still apply. */
60153 char $ac_func ();
60154 /* The GNU C library defines this for functions which it implements
60155 to always fail with ENOSYS. Some functions are actually named
60156 something starting with __ and the normal name is an alias. */
60157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60158 choke me
60159 #else
60160 char (*f) () = $ac_func;
60161 #endif
60162 #ifdef __cplusplus
60164 #endif
60167 main ()
60169 return f != $ac_func;
60171 return 0;
60173 _ACEOF
60174 rm -f conftest.$ac_objext conftest$ac_exeext
60175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60176 (eval $ac_link) 2>conftest.er1
60177 ac_status=$?
60178 grep -v '^ *+' conftest.er1 >conftest.err
60179 rm -f conftest.er1
60180 cat conftest.err >&5
60181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60182 (exit $ac_status); } &&
60183 { ac_try='test -z "$ac_c_werror_flag"
60184 || test ! -s conftest.err'
60185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60186 (eval $ac_try) 2>&5
60187 ac_status=$?
60188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60189 (exit $ac_status); }; } &&
60190 { ac_try='test -s conftest$ac_exeext'
60191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60192 (eval $ac_try) 2>&5
60193 ac_status=$?
60194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60195 (exit $ac_status); }; }; then
60196 eval "$as_ac_var=yes"
60197 else
60198 echo "$as_me: failed program was:" >&5
60199 sed 's/^/| /' conftest.$ac_ext >&5
60201 eval "$as_ac_var=no"
60203 rm -f conftest.err conftest.$ac_objext \
60204 conftest$ac_exeext conftest.$ac_ext
60206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60208 if test `eval echo '${'$as_ac_var'}'` = yes; then
60209 cat >>confdefs.h <<_ACEOF
60210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60211 _ACEOF
60212 ac_XPG2funcs=yes
60213 else
60214 ac_XPG2funcs=no
60216 done
60219 LIBS="$ac_save_LIBS"
60221 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60222 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60223 if test x"$ac_has_iconv_h" = xyes &&
60224 test x"$ac_has_langinfo_h" = xyes &&
60225 test x"$ac_XPG2funcs" = xyes;
60226 then
60227 ac_XPG2_wchar_t=yes
60228 else
60229 ac_XPG2_wchar_t=no
60231 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60232 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60234 # At the moment, only enable wchar_t specializations if all the
60235 # above support is present.
60236 if test x"$ac_isoC99_wchar_t" = xyes &&
60237 test x"$ac_XPG2_wchar_t" = xyes;
60238 then
60239 cat >>confdefs.h <<\_ACEOF
60240 #define _GLIBCXX_USE_WCHAR_T 1
60241 _ACEOF
60243 enable_wchar_t=yes
60246 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60247 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60248 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60249 echo "${ECHO_T}$enable_wchar_t" >&6
60252 # For LFS.
60253 cat >>confdefs.h <<\_ACEOF
60254 #define HAVE_INT64_T 1
60255 _ACEOF
60257 case "$target" in
60258 *-uclinux*)
60259 # Don't enable LFS with uClibc
60262 cat >>confdefs.h <<\_ACEOF
60263 #define _GLIBCXX_USE_LFS 1
60264 _ACEOF
60266 esac
60268 # For showmanyc_helper().
60271 for ac_header in sys/ioctl.h sys/filio.h
60273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60275 echo "$as_me:$LINENO: checking for $ac_header" >&5
60276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60278 echo $ECHO_N "(cached) $ECHO_C" >&6
60280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60282 else
60283 # Is the header compilable?
60284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60286 cat >conftest.$ac_ext <<_ACEOF
60287 /* confdefs.h. */
60288 _ACEOF
60289 cat confdefs.h >>conftest.$ac_ext
60290 cat >>conftest.$ac_ext <<_ACEOF
60291 /* end confdefs.h. */
60292 $ac_includes_default
60293 #include <$ac_header>
60294 _ACEOF
60295 rm -f conftest.$ac_objext
60296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60297 (eval $ac_compile) 2>conftest.er1
60298 ac_status=$?
60299 grep -v '^ *+' conftest.er1 >conftest.err
60300 rm -f conftest.er1
60301 cat conftest.err >&5
60302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60303 (exit $ac_status); } &&
60304 { ac_try='test -z "$ac_c_werror_flag"
60305 || test ! -s conftest.err'
60306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60307 (eval $ac_try) 2>&5
60308 ac_status=$?
60309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60310 (exit $ac_status); }; } &&
60311 { ac_try='test -s conftest.$ac_objext'
60312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60313 (eval $ac_try) 2>&5
60314 ac_status=$?
60315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60316 (exit $ac_status); }; }; then
60317 ac_header_compiler=yes
60318 else
60319 echo "$as_me: failed program was:" >&5
60320 sed 's/^/| /' conftest.$ac_ext >&5
60322 ac_header_compiler=no
60324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60326 echo "${ECHO_T}$ac_header_compiler" >&6
60328 # Is the header present?
60329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60331 cat >conftest.$ac_ext <<_ACEOF
60332 /* confdefs.h. */
60333 _ACEOF
60334 cat confdefs.h >>conftest.$ac_ext
60335 cat >>conftest.$ac_ext <<_ACEOF
60336 /* end confdefs.h. */
60337 #include <$ac_header>
60338 _ACEOF
60339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60341 ac_status=$?
60342 grep -v '^ *+' conftest.er1 >conftest.err
60343 rm -f conftest.er1
60344 cat conftest.err >&5
60345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60346 (exit $ac_status); } >/dev/null; then
60347 if test -s conftest.err; then
60348 ac_cpp_err=$ac_c_preproc_warn_flag
60349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60350 else
60351 ac_cpp_err=
60353 else
60354 ac_cpp_err=yes
60356 if test -z "$ac_cpp_err"; then
60357 ac_header_preproc=yes
60358 else
60359 echo "$as_me: failed program was:" >&5
60360 sed 's/^/| /' conftest.$ac_ext >&5
60362 ac_header_preproc=no
60364 rm -f conftest.err conftest.$ac_ext
60365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60366 echo "${ECHO_T}$ac_header_preproc" >&6
60368 # So? What about this header?
60369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60370 yes:no: )
60371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60375 ac_header_preproc=yes
60377 no:yes:* )
60378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60391 cat <<\_ASBOX
60392 ## ----------------------------------------- ##
60393 ## Report this to the package-unused lists. ##
60394 ## ----------------------------------------- ##
60395 _ASBOX
60397 sed "s/^/$as_me: WARNING: /" >&2
60399 esac
60400 echo "$as_me:$LINENO: checking for $ac_header" >&5
60401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60403 echo $ECHO_N "(cached) $ECHO_C" >&6
60404 else
60405 eval "$as_ac_Header=\$ac_header_preproc"
60407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60412 cat >>confdefs.h <<_ACEOF
60413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60414 _ACEOF
60418 done
60421 if test "${glibcxx_cv_POLL+set}" = set; then
60422 echo $ECHO_N "(cached) $ECHO_C" >&6
60423 else
60425 if test x$gcc_no_link = xyes; then
60426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60428 { (exit 1); exit 1; }; }
60430 cat >conftest.$ac_ext <<_ACEOF
60431 /* confdefs.h. */
60432 _ACEOF
60433 cat confdefs.h >>conftest.$ac_ext
60434 cat >>conftest.$ac_ext <<_ACEOF
60435 /* end confdefs.h. */
60436 #include <poll.h>
60438 main ()
60440 struct pollfd pfd[1];
60441 pfd[0].events = POLLIN;
60442 poll(pfd, 1, 0);
60444 return 0;
60446 _ACEOF
60447 rm -f conftest.$ac_objext conftest$ac_exeext
60448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60449 (eval $ac_link) 2>conftest.er1
60450 ac_status=$?
60451 grep -v '^ *+' conftest.er1 >conftest.err
60452 rm -f conftest.er1
60453 cat conftest.err >&5
60454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60455 (exit $ac_status); } &&
60456 { ac_try='test -z "$ac_c_werror_flag"
60457 || test ! -s conftest.err'
60458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60459 (eval $ac_try) 2>&5
60460 ac_status=$?
60461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60462 (exit $ac_status); }; } &&
60463 { ac_try='test -s conftest$ac_exeext'
60464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60465 (eval $ac_try) 2>&5
60466 ac_status=$?
60467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60468 (exit $ac_status); }; }; then
60469 glibcxx_cv_POLL=yes
60470 else
60471 echo "$as_me: failed program was:" >&5
60472 sed 's/^/| /' conftest.$ac_ext >&5
60474 glibcxx_cv_POLL=no
60476 rm -f conftest.err conftest.$ac_objext \
60477 conftest$ac_exeext conftest.$ac_ext
60481 if test $glibcxx_cv_POLL = yes; then
60482 cat >>confdefs.h <<\_ACEOF
60483 #define HAVE_POLL 1
60484 _ACEOF
60489 if test "${glibcxx_cv_S_ISREG+set}" = set; then
60490 echo $ECHO_N "(cached) $ECHO_C" >&6
60491 else
60493 if test x$gcc_no_link = xyes; then
60494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60496 { (exit 1); exit 1; }; }
60498 cat >conftest.$ac_ext <<_ACEOF
60499 /* confdefs.h. */
60500 _ACEOF
60501 cat confdefs.h >>conftest.$ac_ext
60502 cat >>conftest.$ac_ext <<_ACEOF
60503 /* end confdefs.h. */
60504 #include <sys/stat.h>
60506 main ()
60508 struct stat buffer;
60509 fstat(0, &buffer);
60510 S_ISREG(buffer.st_mode);
60512 return 0;
60514 _ACEOF
60515 rm -f conftest.$ac_objext conftest$ac_exeext
60516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60517 (eval $ac_link) 2>conftest.er1
60518 ac_status=$?
60519 grep -v '^ *+' conftest.er1 >conftest.err
60520 rm -f conftest.er1
60521 cat conftest.err >&5
60522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60523 (exit $ac_status); } &&
60524 { ac_try='test -z "$ac_c_werror_flag"
60525 || test ! -s conftest.err'
60526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60527 (eval $ac_try) 2>&5
60528 ac_status=$?
60529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60530 (exit $ac_status); }; } &&
60531 { ac_try='test -s conftest$ac_exeext'
60532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60533 (eval $ac_try) 2>&5
60534 ac_status=$?
60535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60536 (exit $ac_status); }; }; then
60537 glibcxx_cv_S_ISREG=yes
60538 else
60539 echo "$as_me: failed program was:" >&5
60540 sed 's/^/| /' conftest.$ac_ext >&5
60542 glibcxx_cv_S_ISREG=no
60544 rm -f conftest.err conftest.$ac_objext \
60545 conftest$ac_exeext conftest.$ac_ext
60549 if test "${glibcxx_cv_S_IFREG+set}" = set; then
60550 echo $ECHO_N "(cached) $ECHO_C" >&6
60551 else
60553 if test x$gcc_no_link = xyes; then
60554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60556 { (exit 1); exit 1; }; }
60558 cat >conftest.$ac_ext <<_ACEOF
60559 /* confdefs.h. */
60560 _ACEOF
60561 cat confdefs.h >>conftest.$ac_ext
60562 cat >>conftest.$ac_ext <<_ACEOF
60563 /* end confdefs.h. */
60564 #include <sys/stat.h>
60566 main ()
60568 struct stat buffer;
60569 fstat(0, &buffer);
60570 S_IFREG & buffer.st_mode;
60572 return 0;
60574 _ACEOF
60575 rm -f conftest.$ac_objext conftest$ac_exeext
60576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60577 (eval $ac_link) 2>conftest.er1
60578 ac_status=$?
60579 grep -v '^ *+' conftest.er1 >conftest.err
60580 rm -f conftest.er1
60581 cat conftest.err >&5
60582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60583 (exit $ac_status); } &&
60584 { ac_try='test -z "$ac_c_werror_flag"
60585 || test ! -s conftest.err'
60586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60587 (eval $ac_try) 2>&5
60588 ac_status=$?
60589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60590 (exit $ac_status); }; } &&
60591 { ac_try='test -s conftest$ac_exeext'
60592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60593 (eval $ac_try) 2>&5
60594 ac_status=$?
60595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60596 (exit $ac_status); }; }; then
60597 glibcxx_cv_S_IFREG=yes
60598 else
60599 echo "$as_me: failed program was:" >&5
60600 sed 's/^/| /' conftest.$ac_ext >&5
60602 glibcxx_cv_S_IFREG=no
60604 rm -f conftest.err conftest.$ac_objext \
60605 conftest$ac_exeext conftest.$ac_ext
60609 if test $glibcxx_cv_S_ISREG = yes; then
60610 cat >>confdefs.h <<\_ACEOF
60611 #define HAVE_S_ISREG 1
60612 _ACEOF
60614 elif test $glibcxx_cv_S_IFREG = yes; then
60615 cat >>confdefs.h <<\_ACEOF
60616 #define HAVE_S_IFREG 1
60617 _ACEOF
60622 # For xsputn_2().
60624 for ac_header in sys/uio.h
60626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60628 echo "$as_me:$LINENO: checking for $ac_header" >&5
60629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60631 echo $ECHO_N "(cached) $ECHO_C" >&6
60633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60635 else
60636 # Is the header compilable?
60637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60639 cat >conftest.$ac_ext <<_ACEOF
60640 /* confdefs.h. */
60641 _ACEOF
60642 cat confdefs.h >>conftest.$ac_ext
60643 cat >>conftest.$ac_ext <<_ACEOF
60644 /* end confdefs.h. */
60645 $ac_includes_default
60646 #include <$ac_header>
60647 _ACEOF
60648 rm -f conftest.$ac_objext
60649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60650 (eval $ac_compile) 2>conftest.er1
60651 ac_status=$?
60652 grep -v '^ *+' conftest.er1 >conftest.err
60653 rm -f conftest.er1
60654 cat conftest.err >&5
60655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60656 (exit $ac_status); } &&
60657 { ac_try='test -z "$ac_c_werror_flag"
60658 || test ! -s conftest.err'
60659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60660 (eval $ac_try) 2>&5
60661 ac_status=$?
60662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60663 (exit $ac_status); }; } &&
60664 { ac_try='test -s conftest.$ac_objext'
60665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60666 (eval $ac_try) 2>&5
60667 ac_status=$?
60668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60669 (exit $ac_status); }; }; then
60670 ac_header_compiler=yes
60671 else
60672 echo "$as_me: failed program was:" >&5
60673 sed 's/^/| /' conftest.$ac_ext >&5
60675 ac_header_compiler=no
60677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60679 echo "${ECHO_T}$ac_header_compiler" >&6
60681 # Is the header present?
60682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60684 cat >conftest.$ac_ext <<_ACEOF
60685 /* confdefs.h. */
60686 _ACEOF
60687 cat confdefs.h >>conftest.$ac_ext
60688 cat >>conftest.$ac_ext <<_ACEOF
60689 /* end confdefs.h. */
60690 #include <$ac_header>
60691 _ACEOF
60692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60694 ac_status=$?
60695 grep -v '^ *+' conftest.er1 >conftest.err
60696 rm -f conftest.er1
60697 cat conftest.err >&5
60698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60699 (exit $ac_status); } >/dev/null; then
60700 if test -s conftest.err; then
60701 ac_cpp_err=$ac_c_preproc_warn_flag
60702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60703 else
60704 ac_cpp_err=
60706 else
60707 ac_cpp_err=yes
60709 if test -z "$ac_cpp_err"; then
60710 ac_header_preproc=yes
60711 else
60712 echo "$as_me: failed program was:" >&5
60713 sed 's/^/| /' conftest.$ac_ext >&5
60715 ac_header_preproc=no
60717 rm -f conftest.err conftest.$ac_ext
60718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60719 echo "${ECHO_T}$ac_header_preproc" >&6
60721 # So? What about this header?
60722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60723 yes:no: )
60724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60728 ac_header_preproc=yes
60730 no:yes:* )
60731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60744 cat <<\_ASBOX
60745 ## ----------------------------------------- ##
60746 ## Report this to the package-unused lists. ##
60747 ## ----------------------------------------- ##
60748 _ASBOX
60750 sed "s/^/$as_me: WARNING: /" >&2
60752 esac
60753 echo "$as_me:$LINENO: checking for $ac_header" >&5
60754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60756 echo $ECHO_N "(cached) $ECHO_C" >&6
60757 else
60758 eval "$as_ac_Header=\$ac_header_preproc"
60760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60765 cat >>confdefs.h <<_ACEOF
60766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60767 _ACEOF
60771 done
60774 if test "${glibcxx_cv_WRITEV+set}" = set; then
60775 echo $ECHO_N "(cached) $ECHO_C" >&6
60776 else
60778 if test x$gcc_no_link = xyes; then
60779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60781 { (exit 1); exit 1; }; }
60783 cat >conftest.$ac_ext <<_ACEOF
60784 /* confdefs.h. */
60785 _ACEOF
60786 cat confdefs.h >>conftest.$ac_ext
60787 cat >>conftest.$ac_ext <<_ACEOF
60788 /* end confdefs.h. */
60789 #include <sys/uio.h>
60791 main ()
60793 struct iovec iov[2];
60794 writev(0, iov, 0);
60796 return 0;
60798 _ACEOF
60799 rm -f conftest.$ac_objext conftest$ac_exeext
60800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60801 (eval $ac_link) 2>conftest.er1
60802 ac_status=$?
60803 grep -v '^ *+' conftest.er1 >conftest.err
60804 rm -f conftest.er1
60805 cat conftest.err >&5
60806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60807 (exit $ac_status); } &&
60808 { ac_try='test -z "$ac_c_werror_flag"
60809 || test ! -s conftest.err'
60810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60811 (eval $ac_try) 2>&5
60812 ac_status=$?
60813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60814 (exit $ac_status); }; } &&
60815 { ac_try='test -s conftest$ac_exeext'
60816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60817 (eval $ac_try) 2>&5
60818 ac_status=$?
60819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60820 (exit $ac_status); }; }; then
60821 glibcxx_cv_WRITEV=yes
60822 else
60823 echo "$as_me: failed program was:" >&5
60824 sed 's/^/| /' conftest.$ac_ext >&5
60826 glibcxx_cv_WRITEV=no
60828 rm -f conftest.err conftest.$ac_objext \
60829 conftest$ac_exeext conftest.$ac_ext
60833 if test $glibcxx_cv_WRITEV = yes; then
60834 cat >>confdefs.h <<\_ACEOF
60835 #define HAVE_WRITEV 1
60836 _ACEOF
60841 cat >>confdefs.h <<\_ACEOF
60842 #define HAVE_COPYSIGN 1
60843 _ACEOF
60845 cat >>confdefs.h <<\_ACEOF
60846 #define HAVE_COPYSIGNF 1
60847 _ACEOF
60849 cat >>confdefs.h <<\_ACEOF
60850 #define HAVE_FINITE 1
60851 _ACEOF
60853 cat >>confdefs.h <<\_ACEOF
60854 #define HAVE_FINITEF 1
60855 _ACEOF
60857 cat >>confdefs.h <<\_ACEOF
60858 #define HAVE_FREXPF 1
60859 _ACEOF
60861 cat >>confdefs.h <<\_ACEOF
60862 #define HAVE_HYPOTF 1
60863 _ACEOF
60865 cat >>confdefs.h <<\_ACEOF
60866 #define HAVE_ISINF 1
60867 _ACEOF
60869 cat >>confdefs.h <<\_ACEOF
60870 #define HAVE_ISINFF 1
60871 _ACEOF
60873 cat >>confdefs.h <<\_ACEOF
60874 #define HAVE_ISNAN 1
60875 _ACEOF
60877 cat >>confdefs.h <<\_ACEOF
60878 #define HAVE_ISNANF 1
60879 _ACEOF
60881 cat >>confdefs.h <<\_ACEOF
60882 #define HAVE_SINCOS 1
60883 _ACEOF
60885 cat >>confdefs.h <<\_ACEOF
60886 #define HAVE_SINCOSF 1
60887 _ACEOF
60889 if test x"long_double_math_on_this_cpu" = x"yes"; then
60890 cat >>confdefs.h <<\_ACEOF
60891 #define HAVE_FINITEL 1
60892 _ACEOF
60894 cat >>confdefs.h <<\_ACEOF
60895 #define HAVE_HYPOTL 1
60896 _ACEOF
60898 cat >>confdefs.h <<\_ACEOF
60899 #define HAVE_ISINFL 1
60900 _ACEOF
60902 cat >>confdefs.h <<\_ACEOF
60903 #define HAVE_ISNANL 1
60904 _ACEOF
60908 *-mingw32*)
60912 for ac_header in sys/types.h locale.h float.h
60914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60916 echo "$as_me:$LINENO: checking for $ac_header" >&5
60917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60919 echo $ECHO_N "(cached) $ECHO_C" >&6
60921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60923 else
60924 # Is the header compilable?
60925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60927 cat >conftest.$ac_ext <<_ACEOF
60928 /* confdefs.h. */
60929 _ACEOF
60930 cat confdefs.h >>conftest.$ac_ext
60931 cat >>conftest.$ac_ext <<_ACEOF
60932 /* end confdefs.h. */
60933 $ac_includes_default
60934 #include <$ac_header>
60935 _ACEOF
60936 rm -f conftest.$ac_objext
60937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60938 (eval $ac_compile) 2>conftest.er1
60939 ac_status=$?
60940 grep -v '^ *+' conftest.er1 >conftest.err
60941 rm -f conftest.er1
60942 cat conftest.err >&5
60943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60944 (exit $ac_status); } &&
60945 { ac_try='test -z "$ac_c_werror_flag"
60946 || test ! -s conftest.err'
60947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60948 (eval $ac_try) 2>&5
60949 ac_status=$?
60950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60951 (exit $ac_status); }; } &&
60952 { ac_try='test -s conftest.$ac_objext'
60953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60954 (eval $ac_try) 2>&5
60955 ac_status=$?
60956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60957 (exit $ac_status); }; }; then
60958 ac_header_compiler=yes
60959 else
60960 echo "$as_me: failed program was:" >&5
60961 sed 's/^/| /' conftest.$ac_ext >&5
60963 ac_header_compiler=no
60965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60967 echo "${ECHO_T}$ac_header_compiler" >&6
60969 # Is the header present?
60970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60972 cat >conftest.$ac_ext <<_ACEOF
60973 /* confdefs.h. */
60974 _ACEOF
60975 cat confdefs.h >>conftest.$ac_ext
60976 cat >>conftest.$ac_ext <<_ACEOF
60977 /* end confdefs.h. */
60978 #include <$ac_header>
60979 _ACEOF
60980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60982 ac_status=$?
60983 grep -v '^ *+' conftest.er1 >conftest.err
60984 rm -f conftest.er1
60985 cat conftest.err >&5
60986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60987 (exit $ac_status); } >/dev/null; then
60988 if test -s conftest.err; then
60989 ac_cpp_err=$ac_c_preproc_warn_flag
60990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60991 else
60992 ac_cpp_err=
60994 else
60995 ac_cpp_err=yes
60997 if test -z "$ac_cpp_err"; then
60998 ac_header_preproc=yes
60999 else
61000 echo "$as_me: failed program was:" >&5
61001 sed 's/^/| /' conftest.$ac_ext >&5
61003 ac_header_preproc=no
61005 rm -f conftest.err conftest.$ac_ext
61006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61007 echo "${ECHO_T}$ac_header_preproc" >&6
61009 # So? What about this header?
61010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61011 yes:no: )
61012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61016 ac_header_preproc=yes
61018 no:yes:* )
61019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61032 cat <<\_ASBOX
61033 ## ----------------------------------------- ##
61034 ## Report this to the package-unused lists. ##
61035 ## ----------------------------------------- ##
61036 _ASBOX
61038 sed "s/^/$as_me: WARNING: /" >&2
61040 esac
61041 echo "$as_me:$LINENO: checking for $ac_header" >&5
61042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61044 echo $ECHO_N "(cached) $ECHO_C" >&6
61045 else
61046 eval "$as_ac_Header=\$ac_header_preproc"
61048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61053 cat >>confdefs.h <<_ACEOF
61054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61055 _ACEOF
61059 done
61062 # If we're not using GNU ld, then there's no point in even trying these
61063 # tests. Check for that first. We should have already tested for gld
61064 # by now (in libtool), but require it now just to be safe...
61065 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61066 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61070 # The name set by libtool depends on the version of libtool. Shame on us
61071 # for depending on an impl detail, but c'est la vie. Older versions used
61072 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61073 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61074 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
61075 # set (hence we're using an older libtool), then set it.
61076 if test x${with_gnu_ld+set} != xset; then
61077 if test x${ac_cv_prog_gnu_ld+set} != xset; then
61078 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
61079 with_gnu_ld=no
61080 else
61081 with_gnu_ld=$ac_cv_prog_gnu_ld
61085 # Start by getting the version number. I think the libtool test already
61086 # does some of this, but throws away the result.
61088 ldver=`$LD --version 2>/dev/null | head -1 | \
61089 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61091 glibcxx_gnu_ld_version=`echo $ldver | \
61092 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61094 # Set --gc-sections.
61095 if test "$with_gnu_ld" = "notbroken"; then
61096 # GNU ld it is! Joy and bunny rabbits!
61098 # All these tests are for C++; save the language and the compiler flags.
61099 # Need to do this so that g++ won't try to link in libstdc++
61100 ac_test_CFLAGS="${CFLAGS+set}"
61101 ac_save_CFLAGS="$CFLAGS"
61102 CFLAGS='-x c++ -Wl,--gc-sections'
61104 # Check for -Wl,--gc-sections
61105 # XXX This test is broken at the moment, as symbols required for linking
61106 # are now in libsupc++ (not built yet). In addition, this test has
61107 # cored on solaris in the past. In addition, --gc-sections doesn't
61108 # really work at the moment (keeps on discarding used sections, first
61109 # .eh_frame and now some of the glibc sections for iconv).
61110 # Bzzzzt. Thanks for playing, maybe next time.
61111 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61112 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61113 if test "$cross_compiling" = yes; then
61114 ac_sectionLDflags=yes
61115 else
61116 cat >conftest.$ac_ext <<_ACEOF
61117 /* confdefs.h. */
61118 _ACEOF
61119 cat confdefs.h >>conftest.$ac_ext
61120 cat >>conftest.$ac_ext <<_ACEOF
61121 /* end confdefs.h. */
61123 int main(void)
61125 try { throw 1; }
61126 catch (...) { };
61127 return 0;
61130 _ACEOF
61131 rm -f conftest$ac_exeext
61132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61133 (eval $ac_link) 2>&5
61134 ac_status=$?
61135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61138 (eval $ac_try) 2>&5
61139 ac_status=$?
61140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61141 (exit $ac_status); }; }; then
61142 ac_sectionLDflags=yes
61143 else
61144 echo "$as_me: program exited with status $ac_status" >&5
61145 echo "$as_me: failed program was:" >&5
61146 sed 's/^/| /' conftest.$ac_ext >&5
61148 ( exit $ac_status )
61149 ac_sectionLDflags=no
61151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61153 if test "$ac_test_CFLAGS" = set; then
61154 CFLAGS="$ac_save_CFLAGS"
61155 else
61156 # this is the suspicious part
61157 CFLAGS=''
61159 if test "$ac_sectionLDflags" = "yes"; then
61160 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61162 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61163 echo "${ECHO_T}$ac_sectionLDflags" >&6
61166 # Set linker optimization flags.
61167 if test x"$with_gnu_ld" = x"yes"; then
61168 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61176 echo "$as_me:$LINENO: checking for main in -lm" >&5
61177 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61178 if test "${ac_cv_lib_m_main+set}" = set; then
61179 echo $ECHO_N "(cached) $ECHO_C" >&6
61180 else
61181 ac_check_lib_save_LIBS=$LIBS
61182 LIBS="-lm $LIBS"
61183 if test x$gcc_no_link = xyes; then
61184 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61185 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61186 { (exit 1); exit 1; }; }
61188 cat >conftest.$ac_ext <<_ACEOF
61189 /* confdefs.h. */
61190 _ACEOF
61191 cat confdefs.h >>conftest.$ac_ext
61192 cat >>conftest.$ac_ext <<_ACEOF
61193 /* end confdefs.h. */
61197 main ()
61199 main ();
61201 return 0;
61203 _ACEOF
61204 rm -f conftest.$ac_objext conftest$ac_exeext
61205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61206 (eval $ac_link) 2>conftest.er1
61207 ac_status=$?
61208 grep -v '^ *+' conftest.er1 >conftest.err
61209 rm -f conftest.er1
61210 cat conftest.err >&5
61211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61212 (exit $ac_status); } &&
61213 { ac_try='test -z "$ac_c_werror_flag"
61214 || test ! -s conftest.err'
61215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61216 (eval $ac_try) 2>&5
61217 ac_status=$?
61218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61219 (exit $ac_status); }; } &&
61220 { ac_try='test -s conftest$ac_exeext'
61221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61222 (eval $ac_try) 2>&5
61223 ac_status=$?
61224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61225 (exit $ac_status); }; }; then
61226 ac_cv_lib_m_main=yes
61227 else
61228 echo "$as_me: failed program was:" >&5
61229 sed 's/^/| /' conftest.$ac_ext >&5
61231 ac_cv_lib_m_main=no
61233 rm -f conftest.err conftest.$ac_objext \
61234 conftest$ac_exeext conftest.$ac_ext
61235 LIBS=$ac_check_lib_save_LIBS
61237 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61238 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61239 if test $ac_cv_lib_m_main = yes; then
61240 cat >>confdefs.h <<_ACEOF
61241 #define HAVE_LIBM 1
61242 _ACEOF
61244 LIBS="-lm $LIBS"
61249 for ac_func in copysignf
61251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61252 echo "$as_me:$LINENO: checking for $ac_func" >&5
61253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61254 if eval "test \"\${$as_ac_var+set}\" = set"; then
61255 echo $ECHO_N "(cached) $ECHO_C" >&6
61256 else
61257 if test x$gcc_no_link = xyes; then
61258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61260 { (exit 1); exit 1; }; }
61262 cat >conftest.$ac_ext <<_ACEOF
61263 /* confdefs.h. */
61264 _ACEOF
61265 cat confdefs.h >>conftest.$ac_ext
61266 cat >>conftest.$ac_ext <<_ACEOF
61267 /* end confdefs.h. */
61268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61270 #define $ac_func innocuous_$ac_func
61272 /* System header to define __stub macros and hopefully few prototypes,
61273 which can conflict with char $ac_func (); below.
61274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61275 <limits.h> exists even on freestanding compilers. */
61277 #ifdef __STDC__
61278 # include <limits.h>
61279 #else
61280 # include <assert.h>
61281 #endif
61283 #undef $ac_func
61285 /* Override any gcc2 internal prototype to avoid an error. */
61286 #ifdef __cplusplus
61287 extern "C"
61289 #endif
61290 /* We use char because int might match the return type of a gcc2
61291 builtin and then its argument prototype would still apply. */
61292 char $ac_func ();
61293 /* The GNU C library defines this for functions which it implements
61294 to always fail with ENOSYS. Some functions are actually named
61295 something starting with __ and the normal name is an alias. */
61296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61297 choke me
61298 #else
61299 char (*f) () = $ac_func;
61300 #endif
61301 #ifdef __cplusplus
61303 #endif
61306 main ()
61308 return f != $ac_func;
61310 return 0;
61312 _ACEOF
61313 rm -f conftest.$ac_objext conftest$ac_exeext
61314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61315 (eval $ac_link) 2>conftest.er1
61316 ac_status=$?
61317 grep -v '^ *+' conftest.er1 >conftest.err
61318 rm -f conftest.er1
61319 cat conftest.err >&5
61320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61321 (exit $ac_status); } &&
61322 { ac_try='test -z "$ac_c_werror_flag"
61323 || test ! -s conftest.err'
61324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61325 (eval $ac_try) 2>&5
61326 ac_status=$?
61327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61328 (exit $ac_status); }; } &&
61329 { ac_try='test -s conftest$ac_exeext'
61330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61331 (eval $ac_try) 2>&5
61332 ac_status=$?
61333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61334 (exit $ac_status); }; }; then
61335 eval "$as_ac_var=yes"
61336 else
61337 echo "$as_me: failed program was:" >&5
61338 sed 's/^/| /' conftest.$ac_ext >&5
61340 eval "$as_ac_var=no"
61342 rm -f conftest.err conftest.$ac_objext \
61343 conftest$ac_exeext conftest.$ac_ext
61345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61347 if test `eval echo '${'$as_ac_var'}'` = yes; then
61348 cat >>confdefs.h <<_ACEOF
61349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61350 _ACEOF
61352 else
61353 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61355 done
61359 for ac_func in __signbit
61361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61362 echo "$as_me:$LINENO: checking for $ac_func" >&5
61363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61364 if eval "test \"\${$as_ac_var+set}\" = set"; then
61365 echo $ECHO_N "(cached) $ECHO_C" >&6
61366 else
61367 if test x$gcc_no_link = xyes; then
61368 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61370 { (exit 1); exit 1; }; }
61372 cat >conftest.$ac_ext <<_ACEOF
61373 /* confdefs.h. */
61374 _ACEOF
61375 cat confdefs.h >>conftest.$ac_ext
61376 cat >>conftest.$ac_ext <<_ACEOF
61377 /* end confdefs.h. */
61378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61380 #define $ac_func innocuous_$ac_func
61382 /* System header to define __stub macros and hopefully few prototypes,
61383 which can conflict with char $ac_func (); below.
61384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61385 <limits.h> exists even on freestanding compilers. */
61387 #ifdef __STDC__
61388 # include <limits.h>
61389 #else
61390 # include <assert.h>
61391 #endif
61393 #undef $ac_func
61395 /* Override any gcc2 internal prototype to avoid an error. */
61396 #ifdef __cplusplus
61397 extern "C"
61399 #endif
61400 /* We use char because int might match the return type of a gcc2
61401 builtin and then its argument prototype would still apply. */
61402 char $ac_func ();
61403 /* The GNU C library defines this for functions which it implements
61404 to always fail with ENOSYS. Some functions are actually named
61405 something starting with __ and the normal name is an alias. */
61406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61407 choke me
61408 #else
61409 char (*f) () = $ac_func;
61410 #endif
61411 #ifdef __cplusplus
61413 #endif
61416 main ()
61418 return f != $ac_func;
61420 return 0;
61422 _ACEOF
61423 rm -f conftest.$ac_objext conftest$ac_exeext
61424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61425 (eval $ac_link) 2>conftest.er1
61426 ac_status=$?
61427 grep -v '^ *+' conftest.er1 >conftest.err
61428 rm -f conftest.er1
61429 cat conftest.err >&5
61430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61431 (exit $ac_status); } &&
61432 { ac_try='test -z "$ac_c_werror_flag"
61433 || test ! -s conftest.err'
61434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61435 (eval $ac_try) 2>&5
61436 ac_status=$?
61437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61438 (exit $ac_status); }; } &&
61439 { ac_try='test -s conftest$ac_exeext'
61440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61441 (eval $ac_try) 2>&5
61442 ac_status=$?
61443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61444 (exit $ac_status); }; }; then
61445 eval "$as_ac_var=yes"
61446 else
61447 echo "$as_me: failed program was:" >&5
61448 sed 's/^/| /' conftest.$ac_ext >&5
61450 eval "$as_ac_var=no"
61452 rm -f conftest.err conftest.$ac_objext \
61453 conftest$ac_exeext conftest.$ac_ext
61455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61457 if test `eval echo '${'$as_ac_var'}'` = yes; then
61458 cat >>confdefs.h <<_ACEOF
61459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61460 _ACEOF
61462 else
61463 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61465 done
61468 for ac_func in __signbitf
61470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61471 echo "$as_me:$LINENO: checking for $ac_func" >&5
61472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61473 if eval "test \"\${$as_ac_var+set}\" = set"; then
61474 echo $ECHO_N "(cached) $ECHO_C" >&6
61475 else
61476 if test x$gcc_no_link = xyes; then
61477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61479 { (exit 1); exit 1; }; }
61481 cat >conftest.$ac_ext <<_ACEOF
61482 /* confdefs.h. */
61483 _ACEOF
61484 cat confdefs.h >>conftest.$ac_ext
61485 cat >>conftest.$ac_ext <<_ACEOF
61486 /* end confdefs.h. */
61487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61489 #define $ac_func innocuous_$ac_func
61491 /* System header to define __stub macros and hopefully few prototypes,
61492 which can conflict with char $ac_func (); below.
61493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61494 <limits.h> exists even on freestanding compilers. */
61496 #ifdef __STDC__
61497 # include <limits.h>
61498 #else
61499 # include <assert.h>
61500 #endif
61502 #undef $ac_func
61504 /* Override any gcc2 internal prototype to avoid an error. */
61505 #ifdef __cplusplus
61506 extern "C"
61508 #endif
61509 /* We use char because int might match the return type of a gcc2
61510 builtin and then its argument prototype would still apply. */
61511 char $ac_func ();
61512 /* The GNU C library defines this for functions which it implements
61513 to always fail with ENOSYS. Some functions are actually named
61514 something starting with __ and the normal name is an alias. */
61515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61516 choke me
61517 #else
61518 char (*f) () = $ac_func;
61519 #endif
61520 #ifdef __cplusplus
61522 #endif
61525 main ()
61527 return f != $ac_func;
61529 return 0;
61531 _ACEOF
61532 rm -f conftest.$ac_objext conftest$ac_exeext
61533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61534 (eval $ac_link) 2>conftest.er1
61535 ac_status=$?
61536 grep -v '^ *+' conftest.er1 >conftest.err
61537 rm -f conftest.er1
61538 cat conftest.err >&5
61539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61540 (exit $ac_status); } &&
61541 { ac_try='test -z "$ac_c_werror_flag"
61542 || test ! -s conftest.err'
61543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61544 (eval $ac_try) 2>&5
61545 ac_status=$?
61546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61547 (exit $ac_status); }; } &&
61548 { ac_try='test -s conftest$ac_exeext'
61549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61550 (eval $ac_try) 2>&5
61551 ac_status=$?
61552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61553 (exit $ac_status); }; }; then
61554 eval "$as_ac_var=yes"
61555 else
61556 echo "$as_me: failed program was:" >&5
61557 sed 's/^/| /' conftest.$ac_ext >&5
61559 eval "$as_ac_var=no"
61561 rm -f conftest.err conftest.$ac_objext \
61562 conftest$ac_exeext conftest.$ac_ext
61564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61566 if test `eval echo '${'$as_ac_var'}'` = yes; then
61567 cat >>confdefs.h <<_ACEOF
61568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61569 _ACEOF
61571 else
61572 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61574 done
61577 if test x$ac_cv_func_copysignl = x"yes"; then
61579 for ac_func in __signbitl
61581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61582 echo "$as_me:$LINENO: checking for $ac_func" >&5
61583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61584 if eval "test \"\${$as_ac_var+set}\" = set"; then
61585 echo $ECHO_N "(cached) $ECHO_C" >&6
61586 else
61587 if test x$gcc_no_link = xyes; then
61588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61590 { (exit 1); exit 1; }; }
61592 cat >conftest.$ac_ext <<_ACEOF
61593 /* confdefs.h. */
61594 _ACEOF
61595 cat confdefs.h >>conftest.$ac_ext
61596 cat >>conftest.$ac_ext <<_ACEOF
61597 /* end confdefs.h. */
61598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61600 #define $ac_func innocuous_$ac_func
61602 /* System header to define __stub macros and hopefully few prototypes,
61603 which can conflict with char $ac_func (); below.
61604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61605 <limits.h> exists even on freestanding compilers. */
61607 #ifdef __STDC__
61608 # include <limits.h>
61609 #else
61610 # include <assert.h>
61611 #endif
61613 #undef $ac_func
61615 /* Override any gcc2 internal prototype to avoid an error. */
61616 #ifdef __cplusplus
61617 extern "C"
61619 #endif
61620 /* We use char because int might match the return type of a gcc2
61621 builtin and then its argument prototype would still apply. */
61622 char $ac_func ();
61623 /* The GNU C library defines this for functions which it implements
61624 to always fail with ENOSYS. Some functions are actually named
61625 something starting with __ and the normal name is an alias. */
61626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61627 choke me
61628 #else
61629 char (*f) () = $ac_func;
61630 #endif
61631 #ifdef __cplusplus
61633 #endif
61636 main ()
61638 return f != $ac_func;
61640 return 0;
61642 _ACEOF
61643 rm -f conftest.$ac_objext conftest$ac_exeext
61644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61645 (eval $ac_link) 2>conftest.er1
61646 ac_status=$?
61647 grep -v '^ *+' conftest.er1 >conftest.err
61648 rm -f conftest.er1
61649 cat conftest.err >&5
61650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61651 (exit $ac_status); } &&
61652 { ac_try='test -z "$ac_c_werror_flag"
61653 || test ! -s conftest.err'
61654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61655 (eval $ac_try) 2>&5
61656 ac_status=$?
61657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61658 (exit $ac_status); }; } &&
61659 { ac_try='test -s conftest$ac_exeext'
61660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61661 (eval $ac_try) 2>&5
61662 ac_status=$?
61663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61664 (exit $ac_status); }; }; then
61665 eval "$as_ac_var=yes"
61666 else
61667 echo "$as_me: failed program was:" >&5
61668 sed 's/^/| /' conftest.$ac_ext >&5
61670 eval "$as_ac_var=no"
61672 rm -f conftest.err conftest.$ac_objext \
61673 conftest$ac_exeext conftest.$ac_ext
61675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61677 if test `eval echo '${'$as_ac_var'}'` = yes; then
61678 cat >>confdefs.h <<_ACEOF
61679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61680 _ACEOF
61682 else
61683 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
61685 done
61689 # XXX Review this. Nothing uses it.
61690 if test -n "$LIBMATHOBJS"; then
61691 need_libmath=yes
61696 # Test wchar.h for mbstate_t, which is needed for char_traits and
61697 # others even if wchar_t support is not on.
61698 echo "$as_me:$LINENO: checking for mbstate_t" >&5
61699 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
61700 cat >conftest.$ac_ext <<_ACEOF
61701 /* confdefs.h. */
61702 _ACEOF
61703 cat confdefs.h >>conftest.$ac_ext
61704 cat >>conftest.$ac_ext <<_ACEOF
61705 /* end confdefs.h. */
61706 #include <wchar.h>
61708 main ()
61710 mbstate_t teststate;
61712 return 0;
61714 _ACEOF
61715 rm -f conftest.$ac_objext
61716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61717 (eval $ac_compile) 2>conftest.er1
61718 ac_status=$?
61719 grep -v '^ *+' conftest.er1 >conftest.err
61720 rm -f conftest.er1
61721 cat conftest.err >&5
61722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61723 (exit $ac_status); } &&
61724 { ac_try='test -z "$ac_c_werror_flag"
61725 || test ! -s conftest.err'
61726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61727 (eval $ac_try) 2>&5
61728 ac_status=$?
61729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61730 (exit $ac_status); }; } &&
61731 { ac_try='test -s conftest.$ac_objext'
61732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61733 (eval $ac_try) 2>&5
61734 ac_status=$?
61735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61736 (exit $ac_status); }; }; then
61737 have_mbstate_t=yes
61738 else
61739 echo "$as_me: failed program was:" >&5
61740 sed 's/^/| /' conftest.$ac_ext >&5
61742 have_mbstate_t=no
61744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61745 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
61746 echo "${ECHO_T}$have_mbstate_t" >&6
61747 if test x"$have_mbstate_t" = xyes; then
61748 cat >>confdefs.h <<\_ACEOF
61749 #define HAVE_MBSTATE_T 1
61750 _ACEOF
61754 # Sanity check for existence of ISO C99 headers for extended encoding.
61756 for ac_header in wchar.h
61758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61760 echo "$as_me:$LINENO: checking for $ac_header" >&5
61761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61763 echo $ECHO_N "(cached) $ECHO_C" >&6
61765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61767 else
61768 # Is the header compilable?
61769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61771 cat >conftest.$ac_ext <<_ACEOF
61772 /* confdefs.h. */
61773 _ACEOF
61774 cat confdefs.h >>conftest.$ac_ext
61775 cat >>conftest.$ac_ext <<_ACEOF
61776 /* end confdefs.h. */
61777 $ac_includes_default
61778 #include <$ac_header>
61779 _ACEOF
61780 rm -f conftest.$ac_objext
61781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61782 (eval $ac_compile) 2>conftest.er1
61783 ac_status=$?
61784 grep -v '^ *+' conftest.er1 >conftest.err
61785 rm -f conftest.er1
61786 cat conftest.err >&5
61787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61788 (exit $ac_status); } &&
61789 { ac_try='test -z "$ac_c_werror_flag"
61790 || test ! -s conftest.err'
61791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61792 (eval $ac_try) 2>&5
61793 ac_status=$?
61794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61795 (exit $ac_status); }; } &&
61796 { ac_try='test -s conftest.$ac_objext'
61797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61798 (eval $ac_try) 2>&5
61799 ac_status=$?
61800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61801 (exit $ac_status); }; }; then
61802 ac_header_compiler=yes
61803 else
61804 echo "$as_me: failed program was:" >&5
61805 sed 's/^/| /' conftest.$ac_ext >&5
61807 ac_header_compiler=no
61809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61811 echo "${ECHO_T}$ac_header_compiler" >&6
61813 # Is the header present?
61814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61816 cat >conftest.$ac_ext <<_ACEOF
61817 /* confdefs.h. */
61818 _ACEOF
61819 cat confdefs.h >>conftest.$ac_ext
61820 cat >>conftest.$ac_ext <<_ACEOF
61821 /* end confdefs.h. */
61822 #include <$ac_header>
61823 _ACEOF
61824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61826 ac_status=$?
61827 grep -v '^ *+' conftest.er1 >conftest.err
61828 rm -f conftest.er1
61829 cat conftest.err >&5
61830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61831 (exit $ac_status); } >/dev/null; then
61832 if test -s conftest.err; then
61833 ac_cpp_err=$ac_c_preproc_warn_flag
61834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61835 else
61836 ac_cpp_err=
61838 else
61839 ac_cpp_err=yes
61841 if test -z "$ac_cpp_err"; then
61842 ac_header_preproc=yes
61843 else
61844 echo "$as_me: failed program was:" >&5
61845 sed 's/^/| /' conftest.$ac_ext >&5
61847 ac_header_preproc=no
61849 rm -f conftest.err conftest.$ac_ext
61850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61851 echo "${ECHO_T}$ac_header_preproc" >&6
61853 # So? What about this header?
61854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61855 yes:no: )
61856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61860 ac_header_preproc=yes
61862 no:yes:* )
61863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61876 cat <<\_ASBOX
61877 ## ----------------------------------------- ##
61878 ## Report this to the package-unused lists. ##
61879 ## ----------------------------------------- ##
61880 _ASBOX
61882 sed "s/^/$as_me: WARNING: /" >&2
61884 esac
61885 echo "$as_me:$LINENO: checking for $ac_header" >&5
61886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61888 echo $ECHO_N "(cached) $ECHO_C" >&6
61889 else
61890 eval "$as_ac_Header=\$ac_header_preproc"
61892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61897 cat >>confdefs.h <<_ACEOF
61898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61899 _ACEOF
61900 ac_has_wchar_h=yes
61901 else
61902 ac_has_wchar_h=no
61905 done
61908 for ac_header in wctype.h
61910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61912 echo "$as_me:$LINENO: checking for $ac_header" >&5
61913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61915 echo $ECHO_N "(cached) $ECHO_C" >&6
61917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61919 else
61920 # Is the header compilable?
61921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61923 cat >conftest.$ac_ext <<_ACEOF
61924 /* confdefs.h. */
61925 _ACEOF
61926 cat confdefs.h >>conftest.$ac_ext
61927 cat >>conftest.$ac_ext <<_ACEOF
61928 /* end confdefs.h. */
61929 $ac_includes_default
61930 #include <$ac_header>
61931 _ACEOF
61932 rm -f conftest.$ac_objext
61933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61934 (eval $ac_compile) 2>conftest.er1
61935 ac_status=$?
61936 grep -v '^ *+' conftest.er1 >conftest.err
61937 rm -f conftest.er1
61938 cat conftest.err >&5
61939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61940 (exit $ac_status); } &&
61941 { ac_try='test -z "$ac_c_werror_flag"
61942 || test ! -s conftest.err'
61943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61944 (eval $ac_try) 2>&5
61945 ac_status=$?
61946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61947 (exit $ac_status); }; } &&
61948 { ac_try='test -s conftest.$ac_objext'
61949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61950 (eval $ac_try) 2>&5
61951 ac_status=$?
61952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61953 (exit $ac_status); }; }; then
61954 ac_header_compiler=yes
61955 else
61956 echo "$as_me: failed program was:" >&5
61957 sed 's/^/| /' conftest.$ac_ext >&5
61959 ac_header_compiler=no
61961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61963 echo "${ECHO_T}$ac_header_compiler" >&6
61965 # Is the header present?
61966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61968 cat >conftest.$ac_ext <<_ACEOF
61969 /* confdefs.h. */
61970 _ACEOF
61971 cat confdefs.h >>conftest.$ac_ext
61972 cat >>conftest.$ac_ext <<_ACEOF
61973 /* end confdefs.h. */
61974 #include <$ac_header>
61975 _ACEOF
61976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61978 ac_status=$?
61979 grep -v '^ *+' conftest.er1 >conftest.err
61980 rm -f conftest.er1
61981 cat conftest.err >&5
61982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61983 (exit $ac_status); } >/dev/null; then
61984 if test -s conftest.err; then
61985 ac_cpp_err=$ac_c_preproc_warn_flag
61986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61987 else
61988 ac_cpp_err=
61990 else
61991 ac_cpp_err=yes
61993 if test -z "$ac_cpp_err"; then
61994 ac_header_preproc=yes
61995 else
61996 echo "$as_me: failed program was:" >&5
61997 sed 's/^/| /' conftest.$ac_ext >&5
61999 ac_header_preproc=no
62001 rm -f conftest.err conftest.$ac_ext
62002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62003 echo "${ECHO_T}$ac_header_preproc" >&6
62005 # So? What about this header?
62006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62007 yes:no: )
62008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62012 ac_header_preproc=yes
62014 no:yes:* )
62015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
62018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
62019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
62022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
62023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62028 cat <<\_ASBOX
62029 ## ----------------------------------------- ##
62030 ## Report this to the package-unused lists. ##
62031 ## ----------------------------------------- ##
62032 _ASBOX
62034 sed "s/^/$as_me: WARNING: /" >&2
62036 esac
62037 echo "$as_me:$LINENO: checking for $ac_header" >&5
62038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62040 echo $ECHO_N "(cached) $ECHO_C" >&6
62041 else
62042 eval "$as_ac_Header=\$ac_header_preproc"
62044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62049 cat >>confdefs.h <<_ACEOF
62050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62051 _ACEOF
62052 ac_has_wctype_h=yes
62053 else
62054 ac_has_wctype_h=no
62057 done
62060 # Only continue checking if the ISO C99 headers exist and support is on.
62061 if test x"$ac_has_wchar_h" = xyes &&
62062 test x"$ac_has_wctype_h" = xyes &&
62063 test x"$enable_c_mbchar" != xno; then
62065 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
62066 # numeric_limits can instantiate type_traits<wchar_t>
62067 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62068 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62069 cat >conftest.$ac_ext <<_ACEOF
62070 /* confdefs.h. */
62071 _ACEOF
62072 cat confdefs.h >>conftest.$ac_ext
62073 cat >>conftest.$ac_ext <<_ACEOF
62074 /* end confdefs.h. */
62075 #include <wchar.h>
62077 main ()
62079 int i = WCHAR_MIN; int j = WCHAR_MAX;
62081 return 0;
62083 _ACEOF
62084 rm -f conftest.$ac_objext
62085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62086 (eval $ac_compile) 2>conftest.er1
62087 ac_status=$?
62088 grep -v '^ *+' conftest.er1 >conftest.err
62089 rm -f conftest.er1
62090 cat conftest.err >&5
62091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62092 (exit $ac_status); } &&
62093 { ac_try='test -z "$ac_c_werror_flag"
62094 || test ! -s conftest.err'
62095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62096 (eval $ac_try) 2>&5
62097 ac_status=$?
62098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62099 (exit $ac_status); }; } &&
62100 { ac_try='test -s conftest.$ac_objext'
62101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62102 (eval $ac_try) 2>&5
62103 ac_status=$?
62104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62105 (exit $ac_status); }; }; then
62106 has_wchar_minmax=yes
62107 else
62108 echo "$as_me: failed program was:" >&5
62109 sed 's/^/| /' conftest.$ac_ext >&5
62111 has_wchar_minmax=no
62113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62114 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62115 echo "${ECHO_T}$has_wchar_minmax" >&6
62117 # Test wchar.h for WEOF, which is what we use to determine whether
62118 # to specialize for char_traits<wchar_t> or not.
62119 echo "$as_me:$LINENO: checking for WEOF" >&5
62120 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62121 cat >conftest.$ac_ext <<_ACEOF
62122 /* confdefs.h. */
62123 _ACEOF
62124 cat confdefs.h >>conftest.$ac_ext
62125 cat >>conftest.$ac_ext <<_ACEOF
62126 /* end confdefs.h. */
62128 #include <wchar.h>
62129 #include <stddef.h>
62131 main ()
62133 wint_t i = WEOF;
62135 return 0;
62137 _ACEOF
62138 rm -f conftest.$ac_objext
62139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62140 (eval $ac_compile) 2>conftest.er1
62141 ac_status=$?
62142 grep -v '^ *+' conftest.er1 >conftest.err
62143 rm -f conftest.er1
62144 cat conftest.err >&5
62145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62146 (exit $ac_status); } &&
62147 { ac_try='test -z "$ac_c_werror_flag"
62148 || test ! -s conftest.err'
62149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62150 (eval $ac_try) 2>&5
62151 ac_status=$?
62152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62153 (exit $ac_status); }; } &&
62154 { ac_try='test -s conftest.$ac_objext'
62155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62156 (eval $ac_try) 2>&5
62157 ac_status=$?
62158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62159 (exit $ac_status); }; }; then
62160 has_weof=yes
62161 else
62162 echo "$as_me: failed program was:" >&5
62163 sed 's/^/| /' conftest.$ac_ext >&5
62165 has_weof=no
62167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62168 echo "$as_me:$LINENO: result: $has_weof" >&5
62169 echo "${ECHO_T}$has_weof" >&6
62171 # Tests for wide character functions used in char_traits<wchar_t>.
62172 ac_wfuncs=yes
62179 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62182 echo "$as_me:$LINENO: checking for $ac_func" >&5
62183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62184 if eval "test \"\${$as_ac_var+set}\" = set"; then
62185 echo $ECHO_N "(cached) $ECHO_C" >&6
62186 else
62187 if test x$gcc_no_link = xyes; then
62188 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62190 { (exit 1); exit 1; }; }
62192 cat >conftest.$ac_ext <<_ACEOF
62193 /* confdefs.h. */
62194 _ACEOF
62195 cat confdefs.h >>conftest.$ac_ext
62196 cat >>conftest.$ac_ext <<_ACEOF
62197 /* end confdefs.h. */
62198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62200 #define $ac_func innocuous_$ac_func
62202 /* System header to define __stub macros and hopefully few prototypes,
62203 which can conflict with char $ac_func (); below.
62204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62205 <limits.h> exists even on freestanding compilers. */
62207 #ifdef __STDC__
62208 # include <limits.h>
62209 #else
62210 # include <assert.h>
62211 #endif
62213 #undef $ac_func
62215 /* Override any gcc2 internal prototype to avoid an error. */
62216 #ifdef __cplusplus
62217 extern "C"
62219 #endif
62220 /* We use char because int might match the return type of a gcc2
62221 builtin and then its argument prototype would still apply. */
62222 char $ac_func ();
62223 /* The GNU C library defines this for functions which it implements
62224 to always fail with ENOSYS. Some functions are actually named
62225 something starting with __ and the normal name is an alias. */
62226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62227 choke me
62228 #else
62229 char (*f) () = $ac_func;
62230 #endif
62231 #ifdef __cplusplus
62233 #endif
62236 main ()
62238 return f != $ac_func;
62240 return 0;
62242 _ACEOF
62243 rm -f conftest.$ac_objext conftest$ac_exeext
62244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62245 (eval $ac_link) 2>conftest.er1
62246 ac_status=$?
62247 grep -v '^ *+' conftest.er1 >conftest.err
62248 rm -f conftest.er1
62249 cat conftest.err >&5
62250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62251 (exit $ac_status); } &&
62252 { ac_try='test -z "$ac_c_werror_flag"
62253 || test ! -s conftest.err'
62254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62255 (eval $ac_try) 2>&5
62256 ac_status=$?
62257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62258 (exit $ac_status); }; } &&
62259 { ac_try='test -s conftest$ac_exeext'
62260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62261 (eval $ac_try) 2>&5
62262 ac_status=$?
62263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62264 (exit $ac_status); }; }; then
62265 eval "$as_ac_var=yes"
62266 else
62267 echo "$as_me: failed program was:" >&5
62268 sed 's/^/| /' conftest.$ac_ext >&5
62270 eval "$as_ac_var=no"
62272 rm -f conftest.err conftest.$ac_objext \
62273 conftest$ac_exeext conftest.$ac_ext
62275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62277 if test `eval echo '${'$as_ac_var'}'` = yes; then
62278 cat >>confdefs.h <<_ACEOF
62279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62280 _ACEOF
62282 else
62283 ac_wfuncs=no
62285 done
62288 # Checks for names injected into std:: by the c_std headers.
62335 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62336 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62337 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62338 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62339 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62340 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62343 echo "$as_me:$LINENO: checking for $ac_func" >&5
62344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62345 if eval "test \"\${$as_ac_var+set}\" = set"; then
62346 echo $ECHO_N "(cached) $ECHO_C" >&6
62347 else
62348 if test x$gcc_no_link = xyes; then
62349 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62351 { (exit 1); exit 1; }; }
62353 cat >conftest.$ac_ext <<_ACEOF
62354 /* confdefs.h. */
62355 _ACEOF
62356 cat confdefs.h >>conftest.$ac_ext
62357 cat >>conftest.$ac_ext <<_ACEOF
62358 /* end confdefs.h. */
62359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62361 #define $ac_func innocuous_$ac_func
62363 /* System header to define __stub macros and hopefully few prototypes,
62364 which can conflict with char $ac_func (); below.
62365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62366 <limits.h> exists even on freestanding compilers. */
62368 #ifdef __STDC__
62369 # include <limits.h>
62370 #else
62371 # include <assert.h>
62372 #endif
62374 #undef $ac_func
62376 /* Override any gcc2 internal prototype to avoid an error. */
62377 #ifdef __cplusplus
62378 extern "C"
62380 #endif
62381 /* We use char because int might match the return type of a gcc2
62382 builtin and then its argument prototype would still apply. */
62383 char $ac_func ();
62384 /* The GNU C library defines this for functions which it implements
62385 to always fail with ENOSYS. Some functions are actually named
62386 something starting with __ and the normal name is an alias. */
62387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62388 choke me
62389 #else
62390 char (*f) () = $ac_func;
62391 #endif
62392 #ifdef __cplusplus
62394 #endif
62397 main ()
62399 return f != $ac_func;
62401 return 0;
62403 _ACEOF
62404 rm -f conftest.$ac_objext conftest$ac_exeext
62405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62406 (eval $ac_link) 2>conftest.er1
62407 ac_status=$?
62408 grep -v '^ *+' conftest.er1 >conftest.err
62409 rm -f conftest.er1
62410 cat conftest.err >&5
62411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62412 (exit $ac_status); } &&
62413 { ac_try='test -z "$ac_c_werror_flag"
62414 || test ! -s conftest.err'
62415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62416 (eval $ac_try) 2>&5
62417 ac_status=$?
62418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62419 (exit $ac_status); }; } &&
62420 { ac_try='test -s conftest$ac_exeext'
62421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62422 (eval $ac_try) 2>&5
62423 ac_status=$?
62424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62425 (exit $ac_status); }; }; then
62426 eval "$as_ac_var=yes"
62427 else
62428 echo "$as_me: failed program was:" >&5
62429 sed 's/^/| /' conftest.$ac_ext >&5
62431 eval "$as_ac_var=no"
62433 rm -f conftest.err conftest.$ac_objext \
62434 conftest$ac_exeext conftest.$ac_ext
62436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62438 if test `eval echo '${'$as_ac_var'}'` = yes; then
62439 cat >>confdefs.h <<_ACEOF
62440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62441 _ACEOF
62443 else
62444 ac_wfuncs=no
62446 done
62449 # Checks for wide character functions that are not required
62450 # for basic wchar_t support. Don't disable support if they are missing.
62451 # Injection of these is wrapped with guard macros.
62457 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62460 echo "$as_me:$LINENO: checking for $ac_func" >&5
62461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62462 if eval "test \"\${$as_ac_var+set}\" = set"; then
62463 echo $ECHO_N "(cached) $ECHO_C" >&6
62464 else
62465 if test x$gcc_no_link = xyes; then
62466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62468 { (exit 1); exit 1; }; }
62470 cat >conftest.$ac_ext <<_ACEOF
62471 /* confdefs.h. */
62472 _ACEOF
62473 cat confdefs.h >>conftest.$ac_ext
62474 cat >>conftest.$ac_ext <<_ACEOF
62475 /* end confdefs.h. */
62476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62478 #define $ac_func innocuous_$ac_func
62480 /* System header to define __stub macros and hopefully few prototypes,
62481 which can conflict with char $ac_func (); below.
62482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62483 <limits.h> exists even on freestanding compilers. */
62485 #ifdef __STDC__
62486 # include <limits.h>
62487 #else
62488 # include <assert.h>
62489 #endif
62491 #undef $ac_func
62493 /* Override any gcc2 internal prototype to avoid an error. */
62494 #ifdef __cplusplus
62495 extern "C"
62497 #endif
62498 /* We use char because int might match the return type of a gcc2
62499 builtin and then its argument prototype would still apply. */
62500 char $ac_func ();
62501 /* The GNU C library defines this for functions which it implements
62502 to always fail with ENOSYS. Some functions are actually named
62503 something starting with __ and the normal name is an alias. */
62504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62505 choke me
62506 #else
62507 char (*f) () = $ac_func;
62508 #endif
62509 #ifdef __cplusplus
62511 #endif
62514 main ()
62516 return f != $ac_func;
62518 return 0;
62520 _ACEOF
62521 rm -f conftest.$ac_objext conftest$ac_exeext
62522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62523 (eval $ac_link) 2>conftest.er1
62524 ac_status=$?
62525 grep -v '^ *+' conftest.er1 >conftest.err
62526 rm -f conftest.er1
62527 cat conftest.err >&5
62528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62529 (exit $ac_status); } &&
62530 { ac_try='test -z "$ac_c_werror_flag"
62531 || test ! -s conftest.err'
62532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62533 (eval $ac_try) 2>&5
62534 ac_status=$?
62535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62536 (exit $ac_status); }; } &&
62537 { ac_try='test -s conftest$ac_exeext'
62538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62539 (eval $ac_try) 2>&5
62540 ac_status=$?
62541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62542 (exit $ac_status); }; }; then
62543 eval "$as_ac_var=yes"
62544 else
62545 echo "$as_me: failed program was:" >&5
62546 sed 's/^/| /' conftest.$ac_ext >&5
62548 eval "$as_ac_var=no"
62550 rm -f conftest.err conftest.$ac_objext \
62551 conftest$ac_exeext conftest.$ac_ext
62553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62555 if test `eval echo '${'$as_ac_var'}'` = yes; then
62556 cat >>confdefs.h <<_ACEOF
62557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62558 _ACEOF
62561 done
62564 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62565 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62566 if test x"$has_weof" = xyes &&
62567 test x"$has_wchar_minmax" = xyes &&
62568 test x"$ac_wfuncs" = xyes;
62569 then
62570 ac_isoC99_wchar_t=yes
62571 else
62572 ac_isoC99_wchar_t=no
62574 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62575 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62577 # Use iconv for wchar_t to char conversions. As such, check for
62578 # X/Open Portability Guide, version 2 features (XPG2).
62579 if test "${ac_cv_header_iconv_h+set}" = set; then
62580 echo "$as_me:$LINENO: checking for iconv.h" >&5
62581 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62582 if test "${ac_cv_header_iconv_h+set}" = set; then
62583 echo $ECHO_N "(cached) $ECHO_C" >&6
62585 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62586 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62587 else
62588 # Is the header compilable?
62589 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62590 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
62591 cat >conftest.$ac_ext <<_ACEOF
62592 /* confdefs.h. */
62593 _ACEOF
62594 cat confdefs.h >>conftest.$ac_ext
62595 cat >>conftest.$ac_ext <<_ACEOF
62596 /* end confdefs.h. */
62597 $ac_includes_default
62598 #include <iconv.h>
62599 _ACEOF
62600 rm -f conftest.$ac_objext
62601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62602 (eval $ac_compile) 2>conftest.er1
62603 ac_status=$?
62604 grep -v '^ *+' conftest.er1 >conftest.err
62605 rm -f conftest.er1
62606 cat conftest.err >&5
62607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62608 (exit $ac_status); } &&
62609 { ac_try='test -z "$ac_c_werror_flag"
62610 || test ! -s conftest.err'
62611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62612 (eval $ac_try) 2>&5
62613 ac_status=$?
62614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62615 (exit $ac_status); }; } &&
62616 { ac_try='test -s conftest.$ac_objext'
62617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62618 (eval $ac_try) 2>&5
62619 ac_status=$?
62620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62621 (exit $ac_status); }; }; then
62622 ac_header_compiler=yes
62623 else
62624 echo "$as_me: failed program was:" >&5
62625 sed 's/^/| /' conftest.$ac_ext >&5
62627 ac_header_compiler=no
62629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62631 echo "${ECHO_T}$ac_header_compiler" >&6
62633 # Is the header present?
62634 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62635 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62636 cat >conftest.$ac_ext <<_ACEOF
62637 /* confdefs.h. */
62638 _ACEOF
62639 cat confdefs.h >>conftest.$ac_ext
62640 cat >>conftest.$ac_ext <<_ACEOF
62641 /* end confdefs.h. */
62642 #include <iconv.h>
62643 _ACEOF
62644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62646 ac_status=$?
62647 grep -v '^ *+' conftest.er1 >conftest.err
62648 rm -f conftest.er1
62649 cat conftest.err >&5
62650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62651 (exit $ac_status); } >/dev/null; then
62652 if test -s conftest.err; then
62653 ac_cpp_err=$ac_c_preproc_warn_flag
62654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62655 else
62656 ac_cpp_err=
62658 else
62659 ac_cpp_err=yes
62661 if test -z "$ac_cpp_err"; then
62662 ac_header_preproc=yes
62663 else
62664 echo "$as_me: failed program was:" >&5
62665 sed 's/^/| /' conftest.$ac_ext >&5
62667 ac_header_preproc=no
62669 rm -f conftest.err conftest.$ac_ext
62670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62671 echo "${ECHO_T}$ac_header_preproc" >&6
62673 # So? What about this header?
62674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62675 yes:no: )
62676 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
62677 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62678 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
62679 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
62680 ac_header_preproc=yes
62682 no:yes:* )
62683 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
62684 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
62685 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
62686 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
62687 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
62688 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
62689 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
62690 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
62691 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62692 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62693 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
62694 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
62696 cat <<\_ASBOX
62697 ## ----------------------------------------- ##
62698 ## Report this to the package-unused lists. ##
62699 ## ----------------------------------------- ##
62700 _ASBOX
62702 sed "s/^/$as_me: WARNING: /" >&2
62704 esac
62705 echo "$as_me:$LINENO: checking for iconv.h" >&5
62706 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62707 if test "${ac_cv_header_iconv_h+set}" = set; then
62708 echo $ECHO_N "(cached) $ECHO_C" >&6
62709 else
62710 ac_cv_header_iconv_h=$ac_header_preproc
62712 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62713 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62716 if test $ac_cv_header_iconv_h = yes; then
62717 ac_has_iconv_h=yes
62718 else
62719 ac_has_iconv_h=no
62723 if test "${ac_cv_header_langinfo_h+set}" = set; then
62724 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62725 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62726 if test "${ac_cv_header_langinfo_h+set}" = set; then
62727 echo $ECHO_N "(cached) $ECHO_C" >&6
62729 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62730 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62731 else
62732 # Is the header compilable?
62733 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
62734 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
62735 cat >conftest.$ac_ext <<_ACEOF
62736 /* confdefs.h. */
62737 _ACEOF
62738 cat confdefs.h >>conftest.$ac_ext
62739 cat >>conftest.$ac_ext <<_ACEOF
62740 /* end confdefs.h. */
62741 $ac_includes_default
62742 #include <langinfo.h>
62743 _ACEOF
62744 rm -f conftest.$ac_objext
62745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62746 (eval $ac_compile) 2>conftest.er1
62747 ac_status=$?
62748 grep -v '^ *+' conftest.er1 >conftest.err
62749 rm -f conftest.er1
62750 cat conftest.err >&5
62751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62752 (exit $ac_status); } &&
62753 { ac_try='test -z "$ac_c_werror_flag"
62754 || test ! -s conftest.err'
62755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62756 (eval $ac_try) 2>&5
62757 ac_status=$?
62758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62759 (exit $ac_status); }; } &&
62760 { ac_try='test -s conftest.$ac_objext'
62761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62762 (eval $ac_try) 2>&5
62763 ac_status=$?
62764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62765 (exit $ac_status); }; }; then
62766 ac_header_compiler=yes
62767 else
62768 echo "$as_me: failed program was:" >&5
62769 sed 's/^/| /' conftest.$ac_ext >&5
62771 ac_header_compiler=no
62773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62775 echo "${ECHO_T}$ac_header_compiler" >&6
62777 # Is the header present?
62778 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
62779 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
62780 cat >conftest.$ac_ext <<_ACEOF
62781 /* confdefs.h. */
62782 _ACEOF
62783 cat confdefs.h >>conftest.$ac_ext
62784 cat >>conftest.$ac_ext <<_ACEOF
62785 /* end confdefs.h. */
62786 #include <langinfo.h>
62787 _ACEOF
62788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62790 ac_status=$?
62791 grep -v '^ *+' conftest.er1 >conftest.err
62792 rm -f conftest.er1
62793 cat conftest.err >&5
62794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62795 (exit $ac_status); } >/dev/null; then
62796 if test -s conftest.err; then
62797 ac_cpp_err=$ac_c_preproc_warn_flag
62798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62799 else
62800 ac_cpp_err=
62802 else
62803 ac_cpp_err=yes
62805 if test -z "$ac_cpp_err"; then
62806 ac_header_preproc=yes
62807 else
62808 echo "$as_me: failed program was:" >&5
62809 sed 's/^/| /' conftest.$ac_ext >&5
62811 ac_header_preproc=no
62813 rm -f conftest.err conftest.$ac_ext
62814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62815 echo "${ECHO_T}$ac_header_preproc" >&6
62817 # So? What about this header?
62818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62819 yes:no: )
62820 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
62821 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62822 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
62823 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
62824 ac_header_preproc=yes
62826 no:yes:* )
62827 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
62828 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
62829 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
62830 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
62831 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
62832 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
62833 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
62834 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
62835 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
62836 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
62837 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
62838 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
62840 cat <<\_ASBOX
62841 ## ----------------------------------------- ##
62842 ## Report this to the package-unused lists. ##
62843 ## ----------------------------------------- ##
62844 _ASBOX
62846 sed "s/^/$as_me: WARNING: /" >&2
62848 esac
62849 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62850 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62851 if test "${ac_cv_header_langinfo_h+set}" = set; then
62852 echo $ECHO_N "(cached) $ECHO_C" >&6
62853 else
62854 ac_cv_header_langinfo_h=$ac_header_preproc
62856 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62857 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62860 if test $ac_cv_header_langinfo_h = yes; then
62861 ac_has_langinfo_h=yes
62862 else
62863 ac_has_langinfo_h=no
62868 # Check for existence of libiconv.a providing XPG2 wchar_t support.
62869 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
62870 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
62871 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
62872 echo $ECHO_N "(cached) $ECHO_C" >&6
62873 else
62874 ac_check_lib_save_LIBS=$LIBS
62875 LIBS="-liconv $LIBS"
62876 if test x$gcc_no_link = xyes; then
62877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62879 { (exit 1); exit 1; }; }
62881 cat >conftest.$ac_ext <<_ACEOF
62882 /* confdefs.h. */
62883 _ACEOF
62884 cat confdefs.h >>conftest.$ac_ext
62885 cat >>conftest.$ac_ext <<_ACEOF
62886 /* end confdefs.h. */
62888 /* Override any gcc2 internal prototype to avoid an error. */
62889 #ifdef __cplusplus
62890 extern "C"
62891 #endif
62892 /* We use char because int might match the return type of a gcc2
62893 builtin and then its argument prototype would still apply. */
62894 char iconv ();
62896 main ()
62898 iconv ();
62900 return 0;
62902 _ACEOF
62903 rm -f conftest.$ac_objext conftest$ac_exeext
62904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62905 (eval $ac_link) 2>conftest.er1
62906 ac_status=$?
62907 grep -v '^ *+' conftest.er1 >conftest.err
62908 rm -f conftest.er1
62909 cat conftest.err >&5
62910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62911 (exit $ac_status); } &&
62912 { ac_try='test -z "$ac_c_werror_flag"
62913 || test ! -s conftest.err'
62914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62915 (eval $ac_try) 2>&5
62916 ac_status=$?
62917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62918 (exit $ac_status); }; } &&
62919 { ac_try='test -s conftest$ac_exeext'
62920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62921 (eval $ac_try) 2>&5
62922 ac_status=$?
62923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62924 (exit $ac_status); }; }; then
62925 ac_cv_lib_iconv_iconv=yes
62926 else
62927 echo "$as_me: failed program was:" >&5
62928 sed 's/^/| /' conftest.$ac_ext >&5
62930 ac_cv_lib_iconv_iconv=no
62932 rm -f conftest.err conftest.$ac_objext \
62933 conftest$ac_exeext conftest.$ac_ext
62934 LIBS=$ac_check_lib_save_LIBS
62936 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
62937 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
62938 if test $ac_cv_lib_iconv_iconv = yes; then
62939 libiconv="-liconv"
62942 ac_save_LIBS="$LIBS"
62943 LIBS="$LIBS $libiconv"
62949 for ac_func in iconv_open iconv_close iconv nl_langinfo
62951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62952 echo "$as_me:$LINENO: checking for $ac_func" >&5
62953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62954 if eval "test \"\${$as_ac_var+set}\" = set"; then
62955 echo $ECHO_N "(cached) $ECHO_C" >&6
62956 else
62957 if test x$gcc_no_link = xyes; then
62958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62960 { (exit 1); exit 1; }; }
62962 cat >conftest.$ac_ext <<_ACEOF
62963 /* confdefs.h. */
62964 _ACEOF
62965 cat confdefs.h >>conftest.$ac_ext
62966 cat >>conftest.$ac_ext <<_ACEOF
62967 /* end confdefs.h. */
62968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62970 #define $ac_func innocuous_$ac_func
62972 /* System header to define __stub macros and hopefully few prototypes,
62973 which can conflict with char $ac_func (); below.
62974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62975 <limits.h> exists even on freestanding compilers. */
62977 #ifdef __STDC__
62978 # include <limits.h>
62979 #else
62980 # include <assert.h>
62981 #endif
62983 #undef $ac_func
62985 /* Override any gcc2 internal prototype to avoid an error. */
62986 #ifdef __cplusplus
62987 extern "C"
62989 #endif
62990 /* We use char because int might match the return type of a gcc2
62991 builtin and then its argument prototype would still apply. */
62992 char $ac_func ();
62993 /* The GNU C library defines this for functions which it implements
62994 to always fail with ENOSYS. Some functions are actually named
62995 something starting with __ and the normal name is an alias. */
62996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62997 choke me
62998 #else
62999 char (*f) () = $ac_func;
63000 #endif
63001 #ifdef __cplusplus
63003 #endif
63006 main ()
63008 return f != $ac_func;
63010 return 0;
63012 _ACEOF
63013 rm -f conftest.$ac_objext conftest$ac_exeext
63014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63015 (eval $ac_link) 2>conftest.er1
63016 ac_status=$?
63017 grep -v '^ *+' conftest.er1 >conftest.err
63018 rm -f conftest.er1
63019 cat conftest.err >&5
63020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63021 (exit $ac_status); } &&
63022 { ac_try='test -z "$ac_c_werror_flag"
63023 || test ! -s conftest.err'
63024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63025 (eval $ac_try) 2>&5
63026 ac_status=$?
63027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63028 (exit $ac_status); }; } &&
63029 { ac_try='test -s conftest$ac_exeext'
63030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63031 (eval $ac_try) 2>&5
63032 ac_status=$?
63033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63034 (exit $ac_status); }; }; then
63035 eval "$as_ac_var=yes"
63036 else
63037 echo "$as_me: failed program was:" >&5
63038 sed 's/^/| /' conftest.$ac_ext >&5
63040 eval "$as_ac_var=no"
63042 rm -f conftest.err conftest.$ac_objext \
63043 conftest$ac_exeext conftest.$ac_ext
63045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63047 if test `eval echo '${'$as_ac_var'}'` = yes; then
63048 cat >>confdefs.h <<_ACEOF
63049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63050 _ACEOF
63051 ac_XPG2funcs=yes
63052 else
63053 ac_XPG2funcs=no
63055 done
63058 LIBS="$ac_save_LIBS"
63060 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
63061 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
63062 if test x"$ac_has_iconv_h" = xyes &&
63063 test x"$ac_has_langinfo_h" = xyes &&
63064 test x"$ac_XPG2funcs" = xyes;
63065 then
63066 ac_XPG2_wchar_t=yes
63067 else
63068 ac_XPG2_wchar_t=no
63070 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63071 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63073 # At the moment, only enable wchar_t specializations if all the
63074 # above support is present.
63075 if test x"$ac_isoC99_wchar_t" = xyes &&
63076 test x"$ac_XPG2_wchar_t" = xyes;
63077 then
63078 cat >>confdefs.h <<\_ACEOF
63079 #define _GLIBCXX_USE_WCHAR_T 1
63080 _ACEOF
63082 enable_wchar_t=yes
63085 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63086 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63087 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63088 echo "${ECHO_T}$enable_wchar_t" >&6
63091 *-netbsd*)
63104 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
63105 machine/endian.h machine/param.h sys/machine.h sys/types.h \
63106 fp.h locale.h float.h inttypes.h
63108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63110 echo "$as_me:$LINENO: checking for $ac_header" >&5
63111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63113 echo $ECHO_N "(cached) $ECHO_C" >&6
63115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63117 else
63118 # Is the header compilable?
63119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63121 cat >conftest.$ac_ext <<_ACEOF
63122 /* confdefs.h. */
63123 _ACEOF
63124 cat confdefs.h >>conftest.$ac_ext
63125 cat >>conftest.$ac_ext <<_ACEOF
63126 /* end confdefs.h. */
63127 $ac_includes_default
63128 #include <$ac_header>
63129 _ACEOF
63130 rm -f conftest.$ac_objext
63131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63132 (eval $ac_compile) 2>conftest.er1
63133 ac_status=$?
63134 grep -v '^ *+' conftest.er1 >conftest.err
63135 rm -f conftest.er1
63136 cat conftest.err >&5
63137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63138 (exit $ac_status); } &&
63139 { ac_try='test -z "$ac_c_werror_flag"
63140 || test ! -s conftest.err'
63141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63142 (eval $ac_try) 2>&5
63143 ac_status=$?
63144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63145 (exit $ac_status); }; } &&
63146 { ac_try='test -s conftest.$ac_objext'
63147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63148 (eval $ac_try) 2>&5
63149 ac_status=$?
63150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63151 (exit $ac_status); }; }; then
63152 ac_header_compiler=yes
63153 else
63154 echo "$as_me: failed program was:" >&5
63155 sed 's/^/| /' conftest.$ac_ext >&5
63157 ac_header_compiler=no
63159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63161 echo "${ECHO_T}$ac_header_compiler" >&6
63163 # Is the header present?
63164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63166 cat >conftest.$ac_ext <<_ACEOF
63167 /* confdefs.h. */
63168 _ACEOF
63169 cat confdefs.h >>conftest.$ac_ext
63170 cat >>conftest.$ac_ext <<_ACEOF
63171 /* end confdefs.h. */
63172 #include <$ac_header>
63173 _ACEOF
63174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63176 ac_status=$?
63177 grep -v '^ *+' conftest.er1 >conftest.err
63178 rm -f conftest.er1
63179 cat conftest.err >&5
63180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63181 (exit $ac_status); } >/dev/null; then
63182 if test -s conftest.err; then
63183 ac_cpp_err=$ac_c_preproc_warn_flag
63184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63185 else
63186 ac_cpp_err=
63188 else
63189 ac_cpp_err=yes
63191 if test -z "$ac_cpp_err"; then
63192 ac_header_preproc=yes
63193 else
63194 echo "$as_me: failed program was:" >&5
63195 sed 's/^/| /' conftest.$ac_ext >&5
63197 ac_header_preproc=no
63199 rm -f conftest.err conftest.$ac_ext
63200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63201 echo "${ECHO_T}$ac_header_preproc" >&6
63203 # So? What about this header?
63204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63205 yes:no: )
63206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63210 ac_header_preproc=yes
63212 no:yes:* )
63213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
63216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
63217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
63220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
63221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63226 cat <<\_ASBOX
63227 ## ----------------------------------------- ##
63228 ## Report this to the package-unused lists. ##
63229 ## ----------------------------------------- ##
63230 _ASBOX
63232 sed "s/^/$as_me: WARNING: /" >&2
63234 esac
63235 echo "$as_me:$LINENO: checking for $ac_header" >&5
63236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63238 echo $ECHO_N "(cached) $ECHO_C" >&6
63239 else
63240 eval "$as_ac_Header=\$ac_header_preproc"
63242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63247 cat >>confdefs.h <<_ACEOF
63248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63249 _ACEOF
63253 done
63255 SECTION_FLAGS='-ffunction-sections -fdata-sections'
63258 # If we're not using GNU ld, then there's no point in even trying these
63259 # tests. Check for that first. We should have already tested for gld
63260 # by now (in libtool), but require it now just to be safe...
63261 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
63262 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
63266 # The name set by libtool depends on the version of libtool. Shame on us
63267 # for depending on an impl detail, but c'est la vie. Older versions used
63268 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
63269 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
63270 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
63271 # set (hence we're using an older libtool), then set it.
63272 if test x${with_gnu_ld+set} != xset; then
63273 if test x${ac_cv_prog_gnu_ld+set} != xset; then
63274 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
63275 with_gnu_ld=no
63276 else
63277 with_gnu_ld=$ac_cv_prog_gnu_ld
63281 # Start by getting the version number. I think the libtool test already
63282 # does some of this, but throws away the result.
63284 ldver=`$LD --version 2>/dev/null | head -1 | \
63285 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
63287 glibcxx_gnu_ld_version=`echo $ldver | \
63288 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
63290 # Set --gc-sections.
63291 if test "$with_gnu_ld" = "notbroken"; then
63292 # GNU ld it is! Joy and bunny rabbits!
63294 # All these tests are for C++; save the language and the compiler flags.
63295 # Need to do this so that g++ won't try to link in libstdc++
63296 ac_test_CFLAGS="${CFLAGS+set}"
63297 ac_save_CFLAGS="$CFLAGS"
63298 CFLAGS='-x c++ -Wl,--gc-sections'
63300 # Check for -Wl,--gc-sections
63301 # XXX This test is broken at the moment, as symbols required for linking
63302 # are now in libsupc++ (not built yet). In addition, this test has
63303 # cored on solaris in the past. In addition, --gc-sections doesn't
63304 # really work at the moment (keeps on discarding used sections, first
63305 # .eh_frame and now some of the glibc sections for iconv).
63306 # Bzzzzt. Thanks for playing, maybe next time.
63307 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
63308 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
63309 if test "$cross_compiling" = yes; then
63310 ac_sectionLDflags=yes
63311 else
63312 cat >conftest.$ac_ext <<_ACEOF
63313 /* confdefs.h. */
63314 _ACEOF
63315 cat confdefs.h >>conftest.$ac_ext
63316 cat >>conftest.$ac_ext <<_ACEOF
63317 /* end confdefs.h. */
63319 int main(void)
63321 try { throw 1; }
63322 catch (...) { };
63323 return 0;
63326 _ACEOF
63327 rm -f conftest$ac_exeext
63328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63329 (eval $ac_link) 2>&5
63330 ac_status=$?
63331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63334 (eval $ac_try) 2>&5
63335 ac_status=$?
63336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63337 (exit $ac_status); }; }; then
63338 ac_sectionLDflags=yes
63339 else
63340 echo "$as_me: program exited with status $ac_status" >&5
63341 echo "$as_me: failed program was:" >&5
63342 sed 's/^/| /' conftest.$ac_ext >&5
63344 ( exit $ac_status )
63345 ac_sectionLDflags=no
63347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63349 if test "$ac_test_CFLAGS" = set; then
63350 CFLAGS="$ac_save_CFLAGS"
63351 else
63352 # this is the suspicious part
63353 CFLAGS=''
63355 if test "$ac_sectionLDflags" = "yes"; then
63356 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
63358 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
63359 echo "${ECHO_T}$ac_sectionLDflags" >&6
63362 # Set linker optimization flags.
63363 if test x"$with_gnu_ld" = x"yes"; then
63364 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
63372 echo "$as_me:$LINENO: checking for main in -lm" >&5
63373 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
63374 if test "${ac_cv_lib_m_main+set}" = set; then
63375 echo $ECHO_N "(cached) $ECHO_C" >&6
63376 else
63377 ac_check_lib_save_LIBS=$LIBS
63378 LIBS="-lm $LIBS"
63379 if test x$gcc_no_link = xyes; then
63380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63382 { (exit 1); exit 1; }; }
63384 cat >conftest.$ac_ext <<_ACEOF
63385 /* confdefs.h. */
63386 _ACEOF
63387 cat confdefs.h >>conftest.$ac_ext
63388 cat >>conftest.$ac_ext <<_ACEOF
63389 /* end confdefs.h. */
63393 main ()
63395 main ();
63397 return 0;
63399 _ACEOF
63400 rm -f conftest.$ac_objext conftest$ac_exeext
63401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63402 (eval $ac_link) 2>conftest.er1
63403 ac_status=$?
63404 grep -v '^ *+' conftest.er1 >conftest.err
63405 rm -f conftest.er1
63406 cat conftest.err >&5
63407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63408 (exit $ac_status); } &&
63409 { ac_try='test -z "$ac_c_werror_flag"
63410 || test ! -s conftest.err'
63411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63412 (eval $ac_try) 2>&5
63413 ac_status=$?
63414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63415 (exit $ac_status); }; } &&
63416 { ac_try='test -s conftest$ac_exeext'
63417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63418 (eval $ac_try) 2>&5
63419 ac_status=$?
63420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63421 (exit $ac_status); }; }; then
63422 ac_cv_lib_m_main=yes
63423 else
63424 echo "$as_me: failed program was:" >&5
63425 sed 's/^/| /' conftest.$ac_ext >&5
63427 ac_cv_lib_m_main=no
63429 rm -f conftest.err conftest.$ac_objext \
63430 conftest$ac_exeext conftest.$ac_ext
63431 LIBS=$ac_check_lib_save_LIBS
63433 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
63434 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
63435 if test $ac_cv_lib_m_main = yes; then
63436 cat >>confdefs.h <<_ACEOF
63437 #define HAVE_LIBM 1
63438 _ACEOF
63440 LIBS="-lm $LIBS"
63445 for ac_func in copysignf
63447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63448 echo "$as_me:$LINENO: checking for $ac_func" >&5
63449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63450 if eval "test \"\${$as_ac_var+set}\" = set"; then
63451 echo $ECHO_N "(cached) $ECHO_C" >&6
63452 else
63453 if test x$gcc_no_link = xyes; then
63454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63456 { (exit 1); exit 1; }; }
63458 cat >conftest.$ac_ext <<_ACEOF
63459 /* confdefs.h. */
63460 _ACEOF
63461 cat confdefs.h >>conftest.$ac_ext
63462 cat >>conftest.$ac_ext <<_ACEOF
63463 /* end confdefs.h. */
63464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63466 #define $ac_func innocuous_$ac_func
63468 /* System header to define __stub macros and hopefully few prototypes,
63469 which can conflict with char $ac_func (); below.
63470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63471 <limits.h> exists even on freestanding compilers. */
63473 #ifdef __STDC__
63474 # include <limits.h>
63475 #else
63476 # include <assert.h>
63477 #endif
63479 #undef $ac_func
63481 /* Override any gcc2 internal prototype to avoid an error. */
63482 #ifdef __cplusplus
63483 extern "C"
63485 #endif
63486 /* We use char because int might match the return type of a gcc2
63487 builtin and then its argument prototype would still apply. */
63488 char $ac_func ();
63489 /* The GNU C library defines this for functions which it implements
63490 to always fail with ENOSYS. Some functions are actually named
63491 something starting with __ and the normal name is an alias. */
63492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63493 choke me
63494 #else
63495 char (*f) () = $ac_func;
63496 #endif
63497 #ifdef __cplusplus
63499 #endif
63502 main ()
63504 return f != $ac_func;
63506 return 0;
63508 _ACEOF
63509 rm -f conftest.$ac_objext conftest$ac_exeext
63510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63511 (eval $ac_link) 2>conftest.er1
63512 ac_status=$?
63513 grep -v '^ *+' conftest.er1 >conftest.err
63514 rm -f conftest.er1
63515 cat conftest.err >&5
63516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63517 (exit $ac_status); } &&
63518 { ac_try='test -z "$ac_c_werror_flag"
63519 || test ! -s conftest.err'
63520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63521 (eval $ac_try) 2>&5
63522 ac_status=$?
63523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63524 (exit $ac_status); }; } &&
63525 { ac_try='test -s conftest$ac_exeext'
63526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63527 (eval $ac_try) 2>&5
63528 ac_status=$?
63529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63530 (exit $ac_status); }; }; then
63531 eval "$as_ac_var=yes"
63532 else
63533 echo "$as_me: failed program was:" >&5
63534 sed 's/^/| /' conftest.$ac_ext >&5
63536 eval "$as_ac_var=no"
63538 rm -f conftest.err conftest.$ac_objext \
63539 conftest$ac_exeext conftest.$ac_ext
63541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63543 if test `eval echo '${'$as_ac_var'}'` = yes; then
63544 cat >>confdefs.h <<_ACEOF
63545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63546 _ACEOF
63548 else
63549 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
63551 done
63555 for ac_func in __signbit
63557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63558 echo "$as_me:$LINENO: checking for $ac_func" >&5
63559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63560 if eval "test \"\${$as_ac_var+set}\" = set"; then
63561 echo $ECHO_N "(cached) $ECHO_C" >&6
63562 else
63563 if test x$gcc_no_link = xyes; then
63564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63566 { (exit 1); exit 1; }; }
63568 cat >conftest.$ac_ext <<_ACEOF
63569 /* confdefs.h. */
63570 _ACEOF
63571 cat confdefs.h >>conftest.$ac_ext
63572 cat >>conftest.$ac_ext <<_ACEOF
63573 /* end confdefs.h. */
63574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63576 #define $ac_func innocuous_$ac_func
63578 /* System header to define __stub macros and hopefully few prototypes,
63579 which can conflict with char $ac_func (); below.
63580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63581 <limits.h> exists even on freestanding compilers. */
63583 #ifdef __STDC__
63584 # include <limits.h>
63585 #else
63586 # include <assert.h>
63587 #endif
63589 #undef $ac_func
63591 /* Override any gcc2 internal prototype to avoid an error. */
63592 #ifdef __cplusplus
63593 extern "C"
63595 #endif
63596 /* We use char because int might match the return type of a gcc2
63597 builtin and then its argument prototype would still apply. */
63598 char $ac_func ();
63599 /* The GNU C library defines this for functions which it implements
63600 to always fail with ENOSYS. Some functions are actually named
63601 something starting with __ and the normal name is an alias. */
63602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63603 choke me
63604 #else
63605 char (*f) () = $ac_func;
63606 #endif
63607 #ifdef __cplusplus
63609 #endif
63612 main ()
63614 return f != $ac_func;
63616 return 0;
63618 _ACEOF
63619 rm -f conftest.$ac_objext conftest$ac_exeext
63620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63621 (eval $ac_link) 2>conftest.er1
63622 ac_status=$?
63623 grep -v '^ *+' conftest.er1 >conftest.err
63624 rm -f conftest.er1
63625 cat conftest.err >&5
63626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63627 (exit $ac_status); } &&
63628 { ac_try='test -z "$ac_c_werror_flag"
63629 || test ! -s conftest.err'
63630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63631 (eval $ac_try) 2>&5
63632 ac_status=$?
63633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63634 (exit $ac_status); }; } &&
63635 { ac_try='test -s conftest$ac_exeext'
63636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63637 (eval $ac_try) 2>&5
63638 ac_status=$?
63639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63640 (exit $ac_status); }; }; then
63641 eval "$as_ac_var=yes"
63642 else
63643 echo "$as_me: failed program was:" >&5
63644 sed 's/^/| /' conftest.$ac_ext >&5
63646 eval "$as_ac_var=no"
63648 rm -f conftest.err conftest.$ac_objext \
63649 conftest$ac_exeext conftest.$ac_ext
63651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63653 if test `eval echo '${'$as_ac_var'}'` = yes; then
63654 cat >>confdefs.h <<_ACEOF
63655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63656 _ACEOF
63658 else
63659 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
63661 done
63664 for ac_func in __signbitf
63666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63667 echo "$as_me:$LINENO: checking for $ac_func" >&5
63668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63669 if eval "test \"\${$as_ac_var+set}\" = set"; then
63670 echo $ECHO_N "(cached) $ECHO_C" >&6
63671 else
63672 if test x$gcc_no_link = xyes; then
63673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63675 { (exit 1); exit 1; }; }
63677 cat >conftest.$ac_ext <<_ACEOF
63678 /* confdefs.h. */
63679 _ACEOF
63680 cat confdefs.h >>conftest.$ac_ext
63681 cat >>conftest.$ac_ext <<_ACEOF
63682 /* end confdefs.h. */
63683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63685 #define $ac_func innocuous_$ac_func
63687 /* System header to define __stub macros and hopefully few prototypes,
63688 which can conflict with char $ac_func (); below.
63689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63690 <limits.h> exists even on freestanding compilers. */
63692 #ifdef __STDC__
63693 # include <limits.h>
63694 #else
63695 # include <assert.h>
63696 #endif
63698 #undef $ac_func
63700 /* Override any gcc2 internal prototype to avoid an error. */
63701 #ifdef __cplusplus
63702 extern "C"
63704 #endif
63705 /* We use char because int might match the return type of a gcc2
63706 builtin and then its argument prototype would still apply. */
63707 char $ac_func ();
63708 /* The GNU C library defines this for functions which it implements
63709 to always fail with ENOSYS. Some functions are actually named
63710 something starting with __ and the normal name is an alias. */
63711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63712 choke me
63713 #else
63714 char (*f) () = $ac_func;
63715 #endif
63716 #ifdef __cplusplus
63718 #endif
63721 main ()
63723 return f != $ac_func;
63725 return 0;
63727 _ACEOF
63728 rm -f conftest.$ac_objext conftest$ac_exeext
63729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63730 (eval $ac_link) 2>conftest.er1
63731 ac_status=$?
63732 grep -v '^ *+' conftest.er1 >conftest.err
63733 rm -f conftest.er1
63734 cat conftest.err >&5
63735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63736 (exit $ac_status); } &&
63737 { ac_try='test -z "$ac_c_werror_flag"
63738 || test ! -s conftest.err'
63739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63740 (eval $ac_try) 2>&5
63741 ac_status=$?
63742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63743 (exit $ac_status); }; } &&
63744 { ac_try='test -s conftest$ac_exeext'
63745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63746 (eval $ac_try) 2>&5
63747 ac_status=$?
63748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63749 (exit $ac_status); }; }; then
63750 eval "$as_ac_var=yes"
63751 else
63752 echo "$as_me: failed program was:" >&5
63753 sed 's/^/| /' conftest.$ac_ext >&5
63755 eval "$as_ac_var=no"
63757 rm -f conftest.err conftest.$ac_objext \
63758 conftest$ac_exeext conftest.$ac_ext
63760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63762 if test `eval echo '${'$as_ac_var'}'` = yes; then
63763 cat >>confdefs.h <<_ACEOF
63764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63765 _ACEOF
63767 else
63768 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
63770 done
63773 if test x$ac_cv_func_copysignl = x"yes"; then
63775 for ac_func in __signbitl
63777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63778 echo "$as_me:$LINENO: checking for $ac_func" >&5
63779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63780 if eval "test \"\${$as_ac_var+set}\" = set"; then
63781 echo $ECHO_N "(cached) $ECHO_C" >&6
63782 else
63783 if test x$gcc_no_link = xyes; then
63784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63786 { (exit 1); exit 1; }; }
63788 cat >conftest.$ac_ext <<_ACEOF
63789 /* confdefs.h. */
63790 _ACEOF
63791 cat confdefs.h >>conftest.$ac_ext
63792 cat >>conftest.$ac_ext <<_ACEOF
63793 /* end confdefs.h. */
63794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63796 #define $ac_func innocuous_$ac_func
63798 /* System header to define __stub macros and hopefully few prototypes,
63799 which can conflict with char $ac_func (); below.
63800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63801 <limits.h> exists even on freestanding compilers. */
63803 #ifdef __STDC__
63804 # include <limits.h>
63805 #else
63806 # include <assert.h>
63807 #endif
63809 #undef $ac_func
63811 /* Override any gcc2 internal prototype to avoid an error. */
63812 #ifdef __cplusplus
63813 extern "C"
63815 #endif
63816 /* We use char because int might match the return type of a gcc2
63817 builtin and then its argument prototype would still apply. */
63818 char $ac_func ();
63819 /* The GNU C library defines this for functions which it implements
63820 to always fail with ENOSYS. Some functions are actually named
63821 something starting with __ and the normal name is an alias. */
63822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63823 choke me
63824 #else
63825 char (*f) () = $ac_func;
63826 #endif
63827 #ifdef __cplusplus
63829 #endif
63832 main ()
63834 return f != $ac_func;
63836 return 0;
63838 _ACEOF
63839 rm -f conftest.$ac_objext conftest$ac_exeext
63840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63841 (eval $ac_link) 2>conftest.er1
63842 ac_status=$?
63843 grep -v '^ *+' conftest.er1 >conftest.err
63844 rm -f conftest.er1
63845 cat conftest.err >&5
63846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63847 (exit $ac_status); } &&
63848 { ac_try='test -z "$ac_c_werror_flag"
63849 || test ! -s conftest.err'
63850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63851 (eval $ac_try) 2>&5
63852 ac_status=$?
63853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63854 (exit $ac_status); }; } &&
63855 { ac_try='test -s conftest$ac_exeext'
63856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63857 (eval $ac_try) 2>&5
63858 ac_status=$?
63859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63860 (exit $ac_status); }; }; then
63861 eval "$as_ac_var=yes"
63862 else
63863 echo "$as_me: failed program was:" >&5
63864 sed 's/^/| /' conftest.$ac_ext >&5
63866 eval "$as_ac_var=no"
63868 rm -f conftest.err conftest.$ac_objext \
63869 conftest$ac_exeext conftest.$ac_ext
63871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63873 if test `eval echo '${'$as_ac_var'}'` = yes; then
63874 cat >>confdefs.h <<_ACEOF
63875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63876 _ACEOF
63878 else
63879 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
63881 done
63885 # XXX Review this. Nothing uses it.
63886 if test -n "$LIBMATHOBJS"; then
63887 need_libmath=yes
63892 # Test wchar.h for mbstate_t, which is needed for char_traits and
63893 # others even if wchar_t support is not on.
63894 echo "$as_me:$LINENO: checking for mbstate_t" >&5
63895 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
63896 cat >conftest.$ac_ext <<_ACEOF
63897 /* confdefs.h. */
63898 _ACEOF
63899 cat confdefs.h >>conftest.$ac_ext
63900 cat >>conftest.$ac_ext <<_ACEOF
63901 /* end confdefs.h. */
63902 #include <wchar.h>
63904 main ()
63906 mbstate_t teststate;
63908 return 0;
63910 _ACEOF
63911 rm -f conftest.$ac_objext
63912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63913 (eval $ac_compile) 2>conftest.er1
63914 ac_status=$?
63915 grep -v '^ *+' conftest.er1 >conftest.err
63916 rm -f conftest.er1
63917 cat conftest.err >&5
63918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63919 (exit $ac_status); } &&
63920 { ac_try='test -z "$ac_c_werror_flag"
63921 || test ! -s conftest.err'
63922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63923 (eval $ac_try) 2>&5
63924 ac_status=$?
63925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63926 (exit $ac_status); }; } &&
63927 { ac_try='test -s conftest.$ac_objext'
63928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63929 (eval $ac_try) 2>&5
63930 ac_status=$?
63931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63932 (exit $ac_status); }; }; then
63933 have_mbstate_t=yes
63934 else
63935 echo "$as_me: failed program was:" >&5
63936 sed 's/^/| /' conftest.$ac_ext >&5
63938 have_mbstate_t=no
63940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63941 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
63942 echo "${ECHO_T}$have_mbstate_t" >&6
63943 if test x"$have_mbstate_t" = xyes; then
63944 cat >>confdefs.h <<\_ACEOF
63945 #define HAVE_MBSTATE_T 1
63946 _ACEOF
63950 # Sanity check for existence of ISO C99 headers for extended encoding.
63952 for ac_header in wchar.h
63954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63956 echo "$as_me:$LINENO: checking for $ac_header" >&5
63957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63959 echo $ECHO_N "(cached) $ECHO_C" >&6
63961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63963 else
63964 # Is the header compilable?
63965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63967 cat >conftest.$ac_ext <<_ACEOF
63968 /* confdefs.h. */
63969 _ACEOF
63970 cat confdefs.h >>conftest.$ac_ext
63971 cat >>conftest.$ac_ext <<_ACEOF
63972 /* end confdefs.h. */
63973 $ac_includes_default
63974 #include <$ac_header>
63975 _ACEOF
63976 rm -f conftest.$ac_objext
63977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63978 (eval $ac_compile) 2>conftest.er1
63979 ac_status=$?
63980 grep -v '^ *+' conftest.er1 >conftest.err
63981 rm -f conftest.er1
63982 cat conftest.err >&5
63983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63984 (exit $ac_status); } &&
63985 { ac_try='test -z "$ac_c_werror_flag"
63986 || test ! -s conftest.err'
63987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63988 (eval $ac_try) 2>&5
63989 ac_status=$?
63990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63991 (exit $ac_status); }; } &&
63992 { ac_try='test -s conftest.$ac_objext'
63993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63994 (eval $ac_try) 2>&5
63995 ac_status=$?
63996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63997 (exit $ac_status); }; }; then
63998 ac_header_compiler=yes
63999 else
64000 echo "$as_me: failed program was:" >&5
64001 sed 's/^/| /' conftest.$ac_ext >&5
64003 ac_header_compiler=no
64005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64007 echo "${ECHO_T}$ac_header_compiler" >&6
64009 # Is the header present?
64010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64012 cat >conftest.$ac_ext <<_ACEOF
64013 /* confdefs.h. */
64014 _ACEOF
64015 cat confdefs.h >>conftest.$ac_ext
64016 cat >>conftest.$ac_ext <<_ACEOF
64017 /* end confdefs.h. */
64018 #include <$ac_header>
64019 _ACEOF
64020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64022 ac_status=$?
64023 grep -v '^ *+' conftest.er1 >conftest.err
64024 rm -f conftest.er1
64025 cat conftest.err >&5
64026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64027 (exit $ac_status); } >/dev/null; then
64028 if test -s conftest.err; then
64029 ac_cpp_err=$ac_c_preproc_warn_flag
64030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64031 else
64032 ac_cpp_err=
64034 else
64035 ac_cpp_err=yes
64037 if test -z "$ac_cpp_err"; then
64038 ac_header_preproc=yes
64039 else
64040 echo "$as_me: failed program was:" >&5
64041 sed 's/^/| /' conftest.$ac_ext >&5
64043 ac_header_preproc=no
64045 rm -f conftest.err conftest.$ac_ext
64046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64047 echo "${ECHO_T}$ac_header_preproc" >&6
64049 # So? What about this header?
64050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64051 yes:no: )
64052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64056 ac_header_preproc=yes
64058 no:yes:* )
64059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64072 cat <<\_ASBOX
64073 ## ----------------------------------------- ##
64074 ## Report this to the package-unused lists. ##
64075 ## ----------------------------------------- ##
64076 _ASBOX
64078 sed "s/^/$as_me: WARNING: /" >&2
64080 esac
64081 echo "$as_me:$LINENO: checking for $ac_header" >&5
64082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64084 echo $ECHO_N "(cached) $ECHO_C" >&6
64085 else
64086 eval "$as_ac_Header=\$ac_header_preproc"
64088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64093 cat >>confdefs.h <<_ACEOF
64094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64095 _ACEOF
64096 ac_has_wchar_h=yes
64097 else
64098 ac_has_wchar_h=no
64101 done
64104 for ac_header in wctype.h
64106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64108 echo "$as_me:$LINENO: checking for $ac_header" >&5
64109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64111 echo $ECHO_N "(cached) $ECHO_C" >&6
64113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64115 else
64116 # Is the header compilable?
64117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64119 cat >conftest.$ac_ext <<_ACEOF
64120 /* confdefs.h. */
64121 _ACEOF
64122 cat confdefs.h >>conftest.$ac_ext
64123 cat >>conftest.$ac_ext <<_ACEOF
64124 /* end confdefs.h. */
64125 $ac_includes_default
64126 #include <$ac_header>
64127 _ACEOF
64128 rm -f conftest.$ac_objext
64129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64130 (eval $ac_compile) 2>conftest.er1
64131 ac_status=$?
64132 grep -v '^ *+' conftest.er1 >conftest.err
64133 rm -f conftest.er1
64134 cat conftest.err >&5
64135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64136 (exit $ac_status); } &&
64137 { ac_try='test -z "$ac_c_werror_flag"
64138 || test ! -s conftest.err'
64139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64140 (eval $ac_try) 2>&5
64141 ac_status=$?
64142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64143 (exit $ac_status); }; } &&
64144 { ac_try='test -s conftest.$ac_objext'
64145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64146 (eval $ac_try) 2>&5
64147 ac_status=$?
64148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64149 (exit $ac_status); }; }; then
64150 ac_header_compiler=yes
64151 else
64152 echo "$as_me: failed program was:" >&5
64153 sed 's/^/| /' conftest.$ac_ext >&5
64155 ac_header_compiler=no
64157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64159 echo "${ECHO_T}$ac_header_compiler" >&6
64161 # Is the header present?
64162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64164 cat >conftest.$ac_ext <<_ACEOF
64165 /* confdefs.h. */
64166 _ACEOF
64167 cat confdefs.h >>conftest.$ac_ext
64168 cat >>conftest.$ac_ext <<_ACEOF
64169 /* end confdefs.h. */
64170 #include <$ac_header>
64171 _ACEOF
64172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64174 ac_status=$?
64175 grep -v '^ *+' conftest.er1 >conftest.err
64176 rm -f conftest.er1
64177 cat conftest.err >&5
64178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64179 (exit $ac_status); } >/dev/null; then
64180 if test -s conftest.err; then
64181 ac_cpp_err=$ac_c_preproc_warn_flag
64182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64183 else
64184 ac_cpp_err=
64186 else
64187 ac_cpp_err=yes
64189 if test -z "$ac_cpp_err"; then
64190 ac_header_preproc=yes
64191 else
64192 echo "$as_me: failed program was:" >&5
64193 sed 's/^/| /' conftest.$ac_ext >&5
64195 ac_header_preproc=no
64197 rm -f conftest.err conftest.$ac_ext
64198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64199 echo "${ECHO_T}$ac_header_preproc" >&6
64201 # So? What about this header?
64202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64203 yes:no: )
64204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64208 ac_header_preproc=yes
64210 no:yes:* )
64211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64224 cat <<\_ASBOX
64225 ## ----------------------------------------- ##
64226 ## Report this to the package-unused lists. ##
64227 ## ----------------------------------------- ##
64228 _ASBOX
64230 sed "s/^/$as_me: WARNING: /" >&2
64232 esac
64233 echo "$as_me:$LINENO: checking for $ac_header" >&5
64234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64236 echo $ECHO_N "(cached) $ECHO_C" >&6
64237 else
64238 eval "$as_ac_Header=\$ac_header_preproc"
64240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64245 cat >>confdefs.h <<_ACEOF
64246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64247 _ACEOF
64248 ac_has_wctype_h=yes
64249 else
64250 ac_has_wctype_h=no
64253 done
64256 # Only continue checking if the ISO C99 headers exist and support is on.
64257 if test x"$ac_has_wchar_h" = xyes &&
64258 test x"$ac_has_wctype_h" = xyes &&
64259 test x"$enable_c_mbchar" != xno; then
64261 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
64262 # numeric_limits can instantiate type_traits<wchar_t>
64263 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
64264 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
64265 cat >conftest.$ac_ext <<_ACEOF
64266 /* confdefs.h. */
64267 _ACEOF
64268 cat confdefs.h >>conftest.$ac_ext
64269 cat >>conftest.$ac_ext <<_ACEOF
64270 /* end confdefs.h. */
64271 #include <wchar.h>
64273 main ()
64275 int i = WCHAR_MIN; int j = WCHAR_MAX;
64277 return 0;
64279 _ACEOF
64280 rm -f conftest.$ac_objext
64281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64282 (eval $ac_compile) 2>conftest.er1
64283 ac_status=$?
64284 grep -v '^ *+' conftest.er1 >conftest.err
64285 rm -f conftest.er1
64286 cat conftest.err >&5
64287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64288 (exit $ac_status); } &&
64289 { ac_try='test -z "$ac_c_werror_flag"
64290 || test ! -s conftest.err'
64291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64292 (eval $ac_try) 2>&5
64293 ac_status=$?
64294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64295 (exit $ac_status); }; } &&
64296 { ac_try='test -s conftest.$ac_objext'
64297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64298 (eval $ac_try) 2>&5
64299 ac_status=$?
64300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64301 (exit $ac_status); }; }; then
64302 has_wchar_minmax=yes
64303 else
64304 echo "$as_me: failed program was:" >&5
64305 sed 's/^/| /' conftest.$ac_ext >&5
64307 has_wchar_minmax=no
64309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64310 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
64311 echo "${ECHO_T}$has_wchar_minmax" >&6
64313 # Test wchar.h for WEOF, which is what we use to determine whether
64314 # to specialize for char_traits<wchar_t> or not.
64315 echo "$as_me:$LINENO: checking for WEOF" >&5
64316 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
64317 cat >conftest.$ac_ext <<_ACEOF
64318 /* confdefs.h. */
64319 _ACEOF
64320 cat confdefs.h >>conftest.$ac_ext
64321 cat >>conftest.$ac_ext <<_ACEOF
64322 /* end confdefs.h. */
64324 #include <wchar.h>
64325 #include <stddef.h>
64327 main ()
64329 wint_t i = WEOF;
64331 return 0;
64333 _ACEOF
64334 rm -f conftest.$ac_objext
64335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64336 (eval $ac_compile) 2>conftest.er1
64337 ac_status=$?
64338 grep -v '^ *+' conftest.er1 >conftest.err
64339 rm -f conftest.er1
64340 cat conftest.err >&5
64341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64342 (exit $ac_status); } &&
64343 { ac_try='test -z "$ac_c_werror_flag"
64344 || test ! -s conftest.err'
64345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64346 (eval $ac_try) 2>&5
64347 ac_status=$?
64348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64349 (exit $ac_status); }; } &&
64350 { ac_try='test -s conftest.$ac_objext'
64351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64352 (eval $ac_try) 2>&5
64353 ac_status=$?
64354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64355 (exit $ac_status); }; }; then
64356 has_weof=yes
64357 else
64358 echo "$as_me: failed program was:" >&5
64359 sed 's/^/| /' conftest.$ac_ext >&5
64361 has_weof=no
64363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64364 echo "$as_me:$LINENO: result: $has_weof" >&5
64365 echo "${ECHO_T}$has_weof" >&6
64367 # Tests for wide character functions used in char_traits<wchar_t>.
64368 ac_wfuncs=yes
64375 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
64377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64378 echo "$as_me:$LINENO: checking for $ac_func" >&5
64379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64380 if eval "test \"\${$as_ac_var+set}\" = set"; then
64381 echo $ECHO_N "(cached) $ECHO_C" >&6
64382 else
64383 if test x$gcc_no_link = xyes; then
64384 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64386 { (exit 1); exit 1; }; }
64388 cat >conftest.$ac_ext <<_ACEOF
64389 /* confdefs.h. */
64390 _ACEOF
64391 cat confdefs.h >>conftest.$ac_ext
64392 cat >>conftest.$ac_ext <<_ACEOF
64393 /* end confdefs.h. */
64394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64396 #define $ac_func innocuous_$ac_func
64398 /* System header to define __stub macros and hopefully few prototypes,
64399 which can conflict with char $ac_func (); below.
64400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64401 <limits.h> exists even on freestanding compilers. */
64403 #ifdef __STDC__
64404 # include <limits.h>
64405 #else
64406 # include <assert.h>
64407 #endif
64409 #undef $ac_func
64411 /* Override any gcc2 internal prototype to avoid an error. */
64412 #ifdef __cplusplus
64413 extern "C"
64415 #endif
64416 /* We use char because int might match the return type of a gcc2
64417 builtin and then its argument prototype would still apply. */
64418 char $ac_func ();
64419 /* The GNU C library defines this for functions which it implements
64420 to always fail with ENOSYS. Some functions are actually named
64421 something starting with __ and the normal name is an alias. */
64422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64423 choke me
64424 #else
64425 char (*f) () = $ac_func;
64426 #endif
64427 #ifdef __cplusplus
64429 #endif
64432 main ()
64434 return f != $ac_func;
64436 return 0;
64438 _ACEOF
64439 rm -f conftest.$ac_objext conftest$ac_exeext
64440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64441 (eval $ac_link) 2>conftest.er1
64442 ac_status=$?
64443 grep -v '^ *+' conftest.er1 >conftest.err
64444 rm -f conftest.er1
64445 cat conftest.err >&5
64446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64447 (exit $ac_status); } &&
64448 { ac_try='test -z "$ac_c_werror_flag"
64449 || test ! -s conftest.err'
64450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64451 (eval $ac_try) 2>&5
64452 ac_status=$?
64453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64454 (exit $ac_status); }; } &&
64455 { ac_try='test -s conftest$ac_exeext'
64456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64457 (eval $ac_try) 2>&5
64458 ac_status=$?
64459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64460 (exit $ac_status); }; }; then
64461 eval "$as_ac_var=yes"
64462 else
64463 echo "$as_me: failed program was:" >&5
64464 sed 's/^/| /' conftest.$ac_ext >&5
64466 eval "$as_ac_var=no"
64468 rm -f conftest.err conftest.$ac_objext \
64469 conftest$ac_exeext conftest.$ac_ext
64471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64473 if test `eval echo '${'$as_ac_var'}'` = yes; then
64474 cat >>confdefs.h <<_ACEOF
64475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64476 _ACEOF
64478 else
64479 ac_wfuncs=no
64481 done
64484 # Checks for names injected into std:: by the c_std headers.
64531 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
64532 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
64533 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
64534 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
64535 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
64536 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
64538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64539 echo "$as_me:$LINENO: checking for $ac_func" >&5
64540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64541 if eval "test \"\${$as_ac_var+set}\" = set"; then
64542 echo $ECHO_N "(cached) $ECHO_C" >&6
64543 else
64544 if test x$gcc_no_link = xyes; then
64545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64547 { (exit 1); exit 1; }; }
64549 cat >conftest.$ac_ext <<_ACEOF
64550 /* confdefs.h. */
64551 _ACEOF
64552 cat confdefs.h >>conftest.$ac_ext
64553 cat >>conftest.$ac_ext <<_ACEOF
64554 /* end confdefs.h. */
64555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64557 #define $ac_func innocuous_$ac_func
64559 /* System header to define __stub macros and hopefully few prototypes,
64560 which can conflict with char $ac_func (); below.
64561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64562 <limits.h> exists even on freestanding compilers. */
64564 #ifdef __STDC__
64565 # include <limits.h>
64566 #else
64567 # include <assert.h>
64568 #endif
64570 #undef $ac_func
64572 /* Override any gcc2 internal prototype to avoid an error. */
64573 #ifdef __cplusplus
64574 extern "C"
64576 #endif
64577 /* We use char because int might match the return type of a gcc2
64578 builtin and then its argument prototype would still apply. */
64579 char $ac_func ();
64580 /* The GNU C library defines this for functions which it implements
64581 to always fail with ENOSYS. Some functions are actually named
64582 something starting with __ and the normal name is an alias. */
64583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64584 choke me
64585 #else
64586 char (*f) () = $ac_func;
64587 #endif
64588 #ifdef __cplusplus
64590 #endif
64593 main ()
64595 return f != $ac_func;
64597 return 0;
64599 _ACEOF
64600 rm -f conftest.$ac_objext conftest$ac_exeext
64601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64602 (eval $ac_link) 2>conftest.er1
64603 ac_status=$?
64604 grep -v '^ *+' conftest.er1 >conftest.err
64605 rm -f conftest.er1
64606 cat conftest.err >&5
64607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64608 (exit $ac_status); } &&
64609 { ac_try='test -z "$ac_c_werror_flag"
64610 || test ! -s conftest.err'
64611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64612 (eval $ac_try) 2>&5
64613 ac_status=$?
64614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64615 (exit $ac_status); }; } &&
64616 { ac_try='test -s conftest$ac_exeext'
64617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64618 (eval $ac_try) 2>&5
64619 ac_status=$?
64620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64621 (exit $ac_status); }; }; then
64622 eval "$as_ac_var=yes"
64623 else
64624 echo "$as_me: failed program was:" >&5
64625 sed 's/^/| /' conftest.$ac_ext >&5
64627 eval "$as_ac_var=no"
64629 rm -f conftest.err conftest.$ac_objext \
64630 conftest$ac_exeext conftest.$ac_ext
64632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64634 if test `eval echo '${'$as_ac_var'}'` = yes; then
64635 cat >>confdefs.h <<_ACEOF
64636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64637 _ACEOF
64639 else
64640 ac_wfuncs=no
64642 done
64645 # Checks for wide character functions that are not required
64646 # for basic wchar_t support. Don't disable support if they are missing.
64647 # Injection of these is wrapped with guard macros.
64653 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
64655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64656 echo "$as_me:$LINENO: checking for $ac_func" >&5
64657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64658 if eval "test \"\${$as_ac_var+set}\" = set"; then
64659 echo $ECHO_N "(cached) $ECHO_C" >&6
64660 else
64661 if test x$gcc_no_link = xyes; then
64662 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64663 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64664 { (exit 1); exit 1; }; }
64666 cat >conftest.$ac_ext <<_ACEOF
64667 /* confdefs.h. */
64668 _ACEOF
64669 cat confdefs.h >>conftest.$ac_ext
64670 cat >>conftest.$ac_ext <<_ACEOF
64671 /* end confdefs.h. */
64672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64674 #define $ac_func innocuous_$ac_func
64676 /* System header to define __stub macros and hopefully few prototypes,
64677 which can conflict with char $ac_func (); below.
64678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64679 <limits.h> exists even on freestanding compilers. */
64681 #ifdef __STDC__
64682 # include <limits.h>
64683 #else
64684 # include <assert.h>
64685 #endif
64687 #undef $ac_func
64689 /* Override any gcc2 internal prototype to avoid an error. */
64690 #ifdef __cplusplus
64691 extern "C"
64693 #endif
64694 /* We use char because int might match the return type of a gcc2
64695 builtin and then its argument prototype would still apply. */
64696 char $ac_func ();
64697 /* The GNU C library defines this for functions which it implements
64698 to always fail with ENOSYS. Some functions are actually named
64699 something starting with __ and the normal name is an alias. */
64700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64701 choke me
64702 #else
64703 char (*f) () = $ac_func;
64704 #endif
64705 #ifdef __cplusplus
64707 #endif
64710 main ()
64712 return f != $ac_func;
64714 return 0;
64716 _ACEOF
64717 rm -f conftest.$ac_objext conftest$ac_exeext
64718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64719 (eval $ac_link) 2>conftest.er1
64720 ac_status=$?
64721 grep -v '^ *+' conftest.er1 >conftest.err
64722 rm -f conftest.er1
64723 cat conftest.err >&5
64724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64725 (exit $ac_status); } &&
64726 { ac_try='test -z "$ac_c_werror_flag"
64727 || test ! -s conftest.err'
64728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64729 (eval $ac_try) 2>&5
64730 ac_status=$?
64731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64732 (exit $ac_status); }; } &&
64733 { ac_try='test -s conftest$ac_exeext'
64734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64735 (eval $ac_try) 2>&5
64736 ac_status=$?
64737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64738 (exit $ac_status); }; }; then
64739 eval "$as_ac_var=yes"
64740 else
64741 echo "$as_me: failed program was:" >&5
64742 sed 's/^/| /' conftest.$ac_ext >&5
64744 eval "$as_ac_var=no"
64746 rm -f conftest.err conftest.$ac_objext \
64747 conftest$ac_exeext conftest.$ac_ext
64749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64751 if test `eval echo '${'$as_ac_var'}'` = yes; then
64752 cat >>confdefs.h <<_ACEOF
64753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64754 _ACEOF
64757 done
64760 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
64761 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
64762 if test x"$has_weof" = xyes &&
64763 test x"$has_wchar_minmax" = xyes &&
64764 test x"$ac_wfuncs" = xyes;
64765 then
64766 ac_isoC99_wchar_t=yes
64767 else
64768 ac_isoC99_wchar_t=no
64770 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
64771 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
64773 # Use iconv for wchar_t to char conversions. As such, check for
64774 # X/Open Portability Guide, version 2 features (XPG2).
64775 if test "${ac_cv_header_iconv_h+set}" = set; then
64776 echo "$as_me:$LINENO: checking for iconv.h" >&5
64777 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64778 if test "${ac_cv_header_iconv_h+set}" = set; then
64779 echo $ECHO_N "(cached) $ECHO_C" >&6
64781 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64782 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64783 else
64784 # Is the header compilable?
64785 echo "$as_me:$LINENO: checking iconv.h usability" >&5
64786 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
64787 cat >conftest.$ac_ext <<_ACEOF
64788 /* confdefs.h. */
64789 _ACEOF
64790 cat confdefs.h >>conftest.$ac_ext
64791 cat >>conftest.$ac_ext <<_ACEOF
64792 /* end confdefs.h. */
64793 $ac_includes_default
64794 #include <iconv.h>
64795 _ACEOF
64796 rm -f conftest.$ac_objext
64797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64798 (eval $ac_compile) 2>conftest.er1
64799 ac_status=$?
64800 grep -v '^ *+' conftest.er1 >conftest.err
64801 rm -f conftest.er1
64802 cat conftest.err >&5
64803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64804 (exit $ac_status); } &&
64805 { ac_try='test -z "$ac_c_werror_flag"
64806 || test ! -s conftest.err'
64807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64808 (eval $ac_try) 2>&5
64809 ac_status=$?
64810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64811 (exit $ac_status); }; } &&
64812 { ac_try='test -s conftest.$ac_objext'
64813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64814 (eval $ac_try) 2>&5
64815 ac_status=$?
64816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64817 (exit $ac_status); }; }; then
64818 ac_header_compiler=yes
64819 else
64820 echo "$as_me: failed program was:" >&5
64821 sed 's/^/| /' conftest.$ac_ext >&5
64823 ac_header_compiler=no
64825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64827 echo "${ECHO_T}$ac_header_compiler" >&6
64829 # Is the header present?
64830 echo "$as_me:$LINENO: checking iconv.h presence" >&5
64831 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
64832 cat >conftest.$ac_ext <<_ACEOF
64833 /* confdefs.h. */
64834 _ACEOF
64835 cat confdefs.h >>conftest.$ac_ext
64836 cat >>conftest.$ac_ext <<_ACEOF
64837 /* end confdefs.h. */
64838 #include <iconv.h>
64839 _ACEOF
64840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64842 ac_status=$?
64843 grep -v '^ *+' conftest.er1 >conftest.err
64844 rm -f conftest.er1
64845 cat conftest.err >&5
64846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64847 (exit $ac_status); } >/dev/null; then
64848 if test -s conftest.err; then
64849 ac_cpp_err=$ac_c_preproc_warn_flag
64850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64851 else
64852 ac_cpp_err=
64854 else
64855 ac_cpp_err=yes
64857 if test -z "$ac_cpp_err"; then
64858 ac_header_preproc=yes
64859 else
64860 echo "$as_me: failed program was:" >&5
64861 sed 's/^/| /' conftest.$ac_ext >&5
64863 ac_header_preproc=no
64865 rm -f conftest.err conftest.$ac_ext
64866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64867 echo "${ECHO_T}$ac_header_preproc" >&6
64869 # So? What about this header?
64870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64871 yes:no: )
64872 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
64873 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
64874 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
64875 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
64876 ac_header_preproc=yes
64878 no:yes:* )
64879 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
64880 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
64881 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
64882 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
64883 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
64884 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
64885 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
64886 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
64887 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
64888 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
64889 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
64890 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
64892 cat <<\_ASBOX
64893 ## ----------------------------------------- ##
64894 ## Report this to the package-unused lists. ##
64895 ## ----------------------------------------- ##
64896 _ASBOX
64898 sed "s/^/$as_me: WARNING: /" >&2
64900 esac
64901 echo "$as_me:$LINENO: checking for iconv.h" >&5
64902 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64903 if test "${ac_cv_header_iconv_h+set}" = set; then
64904 echo $ECHO_N "(cached) $ECHO_C" >&6
64905 else
64906 ac_cv_header_iconv_h=$ac_header_preproc
64908 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64909 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64912 if test $ac_cv_header_iconv_h = yes; then
64913 ac_has_iconv_h=yes
64914 else
64915 ac_has_iconv_h=no
64919 if test "${ac_cv_header_langinfo_h+set}" = set; then
64920 echo "$as_me:$LINENO: checking for langinfo.h" >&5
64921 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
64922 if test "${ac_cv_header_langinfo_h+set}" = set; then
64923 echo $ECHO_N "(cached) $ECHO_C" >&6
64925 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
64926 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
64927 else
64928 # Is the header compilable?
64929 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
64930 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
64931 cat >conftest.$ac_ext <<_ACEOF
64932 /* confdefs.h. */
64933 _ACEOF
64934 cat confdefs.h >>conftest.$ac_ext
64935 cat >>conftest.$ac_ext <<_ACEOF
64936 /* end confdefs.h. */
64937 $ac_includes_default
64938 #include <langinfo.h>
64939 _ACEOF
64940 rm -f conftest.$ac_objext
64941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64942 (eval $ac_compile) 2>conftest.er1
64943 ac_status=$?
64944 grep -v '^ *+' conftest.er1 >conftest.err
64945 rm -f conftest.er1
64946 cat conftest.err >&5
64947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64948 (exit $ac_status); } &&
64949 { ac_try='test -z "$ac_c_werror_flag"
64950 || test ! -s conftest.err'
64951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64952 (eval $ac_try) 2>&5
64953 ac_status=$?
64954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64955 (exit $ac_status); }; } &&
64956 { ac_try='test -s conftest.$ac_objext'
64957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64958 (eval $ac_try) 2>&5
64959 ac_status=$?
64960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64961 (exit $ac_status); }; }; then
64962 ac_header_compiler=yes
64963 else
64964 echo "$as_me: failed program was:" >&5
64965 sed 's/^/| /' conftest.$ac_ext >&5
64967 ac_header_compiler=no
64969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64971 echo "${ECHO_T}$ac_header_compiler" >&6
64973 # Is the header present?
64974 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
64975 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
64976 cat >conftest.$ac_ext <<_ACEOF
64977 /* confdefs.h. */
64978 _ACEOF
64979 cat confdefs.h >>conftest.$ac_ext
64980 cat >>conftest.$ac_ext <<_ACEOF
64981 /* end confdefs.h. */
64982 #include <langinfo.h>
64983 _ACEOF
64984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64986 ac_status=$?
64987 grep -v '^ *+' conftest.er1 >conftest.err
64988 rm -f conftest.er1
64989 cat conftest.err >&5
64990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64991 (exit $ac_status); } >/dev/null; then
64992 if test -s conftest.err; then
64993 ac_cpp_err=$ac_c_preproc_warn_flag
64994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64995 else
64996 ac_cpp_err=
64998 else
64999 ac_cpp_err=yes
65001 if test -z "$ac_cpp_err"; then
65002 ac_header_preproc=yes
65003 else
65004 echo "$as_me: failed program was:" >&5
65005 sed 's/^/| /' conftest.$ac_ext >&5
65007 ac_header_preproc=no
65009 rm -f conftest.err conftest.$ac_ext
65010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65011 echo "${ECHO_T}$ac_header_preproc" >&6
65013 # So? What about this header?
65014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65015 yes:no: )
65016 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
65017 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65018 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
65019 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
65020 ac_header_preproc=yes
65022 no:yes:* )
65023 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
65024 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
65025 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
65026 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
65027 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
65028 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
65029 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
65030 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
65031 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
65032 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
65033 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
65034 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
65036 cat <<\_ASBOX
65037 ## ----------------------------------------- ##
65038 ## Report this to the package-unused lists. ##
65039 ## ----------------------------------------- ##
65040 _ASBOX
65042 sed "s/^/$as_me: WARNING: /" >&2
65044 esac
65045 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65046 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65047 if test "${ac_cv_header_langinfo_h+set}" = set; then
65048 echo $ECHO_N "(cached) $ECHO_C" >&6
65049 else
65050 ac_cv_header_langinfo_h=$ac_header_preproc
65052 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65053 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65056 if test $ac_cv_header_langinfo_h = yes; then
65057 ac_has_langinfo_h=yes
65058 else
65059 ac_has_langinfo_h=no
65064 # Check for existence of libiconv.a providing XPG2 wchar_t support.
65065 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
65066 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65067 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65068 echo $ECHO_N "(cached) $ECHO_C" >&6
65069 else
65070 ac_check_lib_save_LIBS=$LIBS
65071 LIBS="-liconv $LIBS"
65072 if test x$gcc_no_link = xyes; then
65073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65075 { (exit 1); exit 1; }; }
65077 cat >conftest.$ac_ext <<_ACEOF
65078 /* confdefs.h. */
65079 _ACEOF
65080 cat confdefs.h >>conftest.$ac_ext
65081 cat >>conftest.$ac_ext <<_ACEOF
65082 /* end confdefs.h. */
65084 /* Override any gcc2 internal prototype to avoid an error. */
65085 #ifdef __cplusplus
65086 extern "C"
65087 #endif
65088 /* We use char because int might match the return type of a gcc2
65089 builtin and then its argument prototype would still apply. */
65090 char iconv ();
65092 main ()
65094 iconv ();
65096 return 0;
65098 _ACEOF
65099 rm -f conftest.$ac_objext conftest$ac_exeext
65100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65101 (eval $ac_link) 2>conftest.er1
65102 ac_status=$?
65103 grep -v '^ *+' conftest.er1 >conftest.err
65104 rm -f conftest.er1
65105 cat conftest.err >&5
65106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65107 (exit $ac_status); } &&
65108 { ac_try='test -z "$ac_c_werror_flag"
65109 || test ! -s conftest.err'
65110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65111 (eval $ac_try) 2>&5
65112 ac_status=$?
65113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65114 (exit $ac_status); }; } &&
65115 { ac_try='test -s conftest$ac_exeext'
65116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65117 (eval $ac_try) 2>&5
65118 ac_status=$?
65119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65120 (exit $ac_status); }; }; then
65121 ac_cv_lib_iconv_iconv=yes
65122 else
65123 echo "$as_me: failed program was:" >&5
65124 sed 's/^/| /' conftest.$ac_ext >&5
65126 ac_cv_lib_iconv_iconv=no
65128 rm -f conftest.err conftest.$ac_objext \
65129 conftest$ac_exeext conftest.$ac_ext
65130 LIBS=$ac_check_lib_save_LIBS
65132 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65133 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65134 if test $ac_cv_lib_iconv_iconv = yes; then
65135 libiconv="-liconv"
65138 ac_save_LIBS="$LIBS"
65139 LIBS="$LIBS $libiconv"
65145 for ac_func in iconv_open iconv_close iconv nl_langinfo
65147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65148 echo "$as_me:$LINENO: checking for $ac_func" >&5
65149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65150 if eval "test \"\${$as_ac_var+set}\" = set"; then
65151 echo $ECHO_N "(cached) $ECHO_C" >&6
65152 else
65153 if test x$gcc_no_link = xyes; then
65154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65156 { (exit 1); exit 1; }; }
65158 cat >conftest.$ac_ext <<_ACEOF
65159 /* confdefs.h. */
65160 _ACEOF
65161 cat confdefs.h >>conftest.$ac_ext
65162 cat >>conftest.$ac_ext <<_ACEOF
65163 /* end confdefs.h. */
65164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65166 #define $ac_func innocuous_$ac_func
65168 /* System header to define __stub macros and hopefully few prototypes,
65169 which can conflict with char $ac_func (); below.
65170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65171 <limits.h> exists even on freestanding compilers. */
65173 #ifdef __STDC__
65174 # include <limits.h>
65175 #else
65176 # include <assert.h>
65177 #endif
65179 #undef $ac_func
65181 /* Override any gcc2 internal prototype to avoid an error. */
65182 #ifdef __cplusplus
65183 extern "C"
65185 #endif
65186 /* We use char because int might match the return type of a gcc2
65187 builtin and then its argument prototype would still apply. */
65188 char $ac_func ();
65189 /* The GNU C library defines this for functions which it implements
65190 to always fail with ENOSYS. Some functions are actually named
65191 something starting with __ and the normal name is an alias. */
65192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65193 choke me
65194 #else
65195 char (*f) () = $ac_func;
65196 #endif
65197 #ifdef __cplusplus
65199 #endif
65202 main ()
65204 return f != $ac_func;
65206 return 0;
65208 _ACEOF
65209 rm -f conftest.$ac_objext conftest$ac_exeext
65210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65211 (eval $ac_link) 2>conftest.er1
65212 ac_status=$?
65213 grep -v '^ *+' conftest.er1 >conftest.err
65214 rm -f conftest.er1
65215 cat conftest.err >&5
65216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65217 (exit $ac_status); } &&
65218 { ac_try='test -z "$ac_c_werror_flag"
65219 || test ! -s conftest.err'
65220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65221 (eval $ac_try) 2>&5
65222 ac_status=$?
65223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65224 (exit $ac_status); }; } &&
65225 { ac_try='test -s conftest$ac_exeext'
65226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65227 (eval $ac_try) 2>&5
65228 ac_status=$?
65229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65230 (exit $ac_status); }; }; then
65231 eval "$as_ac_var=yes"
65232 else
65233 echo "$as_me: failed program was:" >&5
65234 sed 's/^/| /' conftest.$ac_ext >&5
65236 eval "$as_ac_var=no"
65238 rm -f conftest.err conftest.$ac_objext \
65239 conftest$ac_exeext conftest.$ac_ext
65241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65243 if test `eval echo '${'$as_ac_var'}'` = yes; then
65244 cat >>confdefs.h <<_ACEOF
65245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65246 _ACEOF
65247 ac_XPG2funcs=yes
65248 else
65249 ac_XPG2funcs=no
65251 done
65254 LIBS="$ac_save_LIBS"
65256 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
65257 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
65258 if test x"$ac_has_iconv_h" = xyes &&
65259 test x"$ac_has_langinfo_h" = xyes &&
65260 test x"$ac_XPG2funcs" = xyes;
65261 then
65262 ac_XPG2_wchar_t=yes
65263 else
65264 ac_XPG2_wchar_t=no
65266 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
65267 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
65269 # At the moment, only enable wchar_t specializations if all the
65270 # above support is present.
65271 if test x"$ac_isoC99_wchar_t" = xyes &&
65272 test x"$ac_XPG2_wchar_t" = xyes;
65273 then
65274 cat >>confdefs.h <<\_ACEOF
65275 #define _GLIBCXX_USE_WCHAR_T 1
65276 _ACEOF
65278 enable_wchar_t=yes
65281 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
65282 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
65283 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
65284 echo "${ECHO_T}$enable_wchar_t" >&6
65286 cat >>confdefs.h <<\_ACEOF
65287 #define HAVE_COPYSIGN 1
65288 _ACEOF
65290 cat >>confdefs.h <<\_ACEOF
65291 #define HAVE_COPYSIGNF 1
65292 _ACEOF
65294 cat >>confdefs.h <<\_ACEOF
65295 #define HAVE_FINITEF 1
65296 _ACEOF
65298 cat >>confdefs.h <<\_ACEOF
65299 #define HAVE_FINITE 1
65300 _ACEOF
65302 cat >>confdefs.h <<\_ACEOF
65303 #define HAVE_FREXPF 1
65304 _ACEOF
65306 cat >>confdefs.h <<\_ACEOF
65307 #define HAVE_HYPOTF 1
65308 _ACEOF
65310 cat >>confdefs.h <<\_ACEOF
65311 #define HAVE_ISINF 1
65312 _ACEOF
65314 cat >>confdefs.h <<\_ACEOF
65315 #define HAVE_ISINFF 1
65316 _ACEOF
65318 cat >>confdefs.h <<\_ACEOF
65319 #define HAVE_ISNAN 1
65320 _ACEOF
65322 cat >>confdefs.h <<\_ACEOF
65323 #define HAVE_ISNANF 1
65324 _ACEOF
65326 if test x"long_double_math_on_this_cpu" = x"yes"; then
65327 cat >>confdefs.h <<\_ACEOF
65328 #define HAVE_FINITEL 1
65329 _ACEOF
65331 cat >>confdefs.h <<\_ACEOF
65332 #define HAVE_ISINFL 1
65333 _ACEOF
65335 cat >>confdefs.h <<\_ACEOF
65336 #define HAVE_ISNANL 1
65337 _ACEOF
65341 *-qnx6.1* | *-qnx6.2*)
65342 SECTION_FLAGS='-ffunction-sections -fdata-sections'
65345 # If we're not using GNU ld, then there's no point in even trying these
65346 # tests. Check for that first. We should have already tested for gld
65347 # by now (in libtool), but require it now just to be safe...
65348 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
65349 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
65353 # The name set by libtool depends on the version of libtool. Shame on us
65354 # for depending on an impl detail, but c'est la vie. Older versions used
65355 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
65356 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
65357 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
65358 # set (hence we're using an older libtool), then set it.
65359 if test x${with_gnu_ld+set} != xset; then
65360 if test x${ac_cv_prog_gnu_ld+set} != xset; then
65361 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
65362 with_gnu_ld=no
65363 else
65364 with_gnu_ld=$ac_cv_prog_gnu_ld
65368 # Start by getting the version number. I think the libtool test already
65369 # does some of this, but throws away the result.
65371 ldver=`$LD --version 2>/dev/null | head -1 | \
65372 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
65374 glibcxx_gnu_ld_version=`echo $ldver | \
65375 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
65377 # Set --gc-sections.
65378 if test "$with_gnu_ld" = "notbroken"; then
65379 # GNU ld it is! Joy and bunny rabbits!
65381 # All these tests are for C++; save the language and the compiler flags.
65382 # Need to do this so that g++ won't try to link in libstdc++
65383 ac_test_CFLAGS="${CFLAGS+set}"
65384 ac_save_CFLAGS="$CFLAGS"
65385 CFLAGS='-x c++ -Wl,--gc-sections'
65387 # Check for -Wl,--gc-sections
65388 # XXX This test is broken at the moment, as symbols required for linking
65389 # are now in libsupc++ (not built yet). In addition, this test has
65390 # cored on solaris in the past. In addition, --gc-sections doesn't
65391 # really work at the moment (keeps on discarding used sections, first
65392 # .eh_frame and now some of the glibc sections for iconv).
65393 # Bzzzzt. Thanks for playing, maybe next time.
65394 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
65395 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
65396 if test "$cross_compiling" = yes; then
65397 ac_sectionLDflags=yes
65398 else
65399 cat >conftest.$ac_ext <<_ACEOF
65400 /* confdefs.h. */
65401 _ACEOF
65402 cat confdefs.h >>conftest.$ac_ext
65403 cat >>conftest.$ac_ext <<_ACEOF
65404 /* end confdefs.h. */
65406 int main(void)
65408 try { throw 1; }
65409 catch (...) { };
65410 return 0;
65413 _ACEOF
65414 rm -f conftest$ac_exeext
65415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65416 (eval $ac_link) 2>&5
65417 ac_status=$?
65418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65421 (eval $ac_try) 2>&5
65422 ac_status=$?
65423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65424 (exit $ac_status); }; }; then
65425 ac_sectionLDflags=yes
65426 else
65427 echo "$as_me: program exited with status $ac_status" >&5
65428 echo "$as_me: failed program was:" >&5
65429 sed 's/^/| /' conftest.$ac_ext >&5
65431 ( exit $ac_status )
65432 ac_sectionLDflags=no
65434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65436 if test "$ac_test_CFLAGS" = set; then
65437 CFLAGS="$ac_save_CFLAGS"
65438 else
65439 # this is the suspicious part
65440 CFLAGS=''
65442 if test "$ac_sectionLDflags" = "yes"; then
65443 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
65445 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
65446 echo "${ECHO_T}$ac_sectionLDflags" >&6
65449 # Set linker optimization flags.
65450 if test x"$with_gnu_ld" = x"yes"; then
65451 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
65459 echo "$as_me:$LINENO: checking for main in -lm" >&5
65460 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
65461 if test "${ac_cv_lib_m_main+set}" = set; then
65462 echo $ECHO_N "(cached) $ECHO_C" >&6
65463 else
65464 ac_check_lib_save_LIBS=$LIBS
65465 LIBS="-lm $LIBS"
65466 if test x$gcc_no_link = xyes; then
65467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65469 { (exit 1); exit 1; }; }
65471 cat >conftest.$ac_ext <<_ACEOF
65472 /* confdefs.h. */
65473 _ACEOF
65474 cat confdefs.h >>conftest.$ac_ext
65475 cat >>conftest.$ac_ext <<_ACEOF
65476 /* end confdefs.h. */
65480 main ()
65482 main ();
65484 return 0;
65486 _ACEOF
65487 rm -f conftest.$ac_objext conftest$ac_exeext
65488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65489 (eval $ac_link) 2>conftest.er1
65490 ac_status=$?
65491 grep -v '^ *+' conftest.er1 >conftest.err
65492 rm -f conftest.er1
65493 cat conftest.err >&5
65494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65495 (exit $ac_status); } &&
65496 { ac_try='test -z "$ac_c_werror_flag"
65497 || test ! -s conftest.err'
65498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65499 (eval $ac_try) 2>&5
65500 ac_status=$?
65501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65502 (exit $ac_status); }; } &&
65503 { ac_try='test -s conftest$ac_exeext'
65504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65505 (eval $ac_try) 2>&5
65506 ac_status=$?
65507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65508 (exit $ac_status); }; }; then
65509 ac_cv_lib_m_main=yes
65510 else
65511 echo "$as_me: failed program was:" >&5
65512 sed 's/^/| /' conftest.$ac_ext >&5
65514 ac_cv_lib_m_main=no
65516 rm -f conftest.err conftest.$ac_objext \
65517 conftest$ac_exeext conftest.$ac_ext
65518 LIBS=$ac_check_lib_save_LIBS
65520 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
65521 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
65522 if test $ac_cv_lib_m_main = yes; then
65523 cat >>confdefs.h <<_ACEOF
65524 #define HAVE_LIBM 1
65525 _ACEOF
65527 LIBS="-lm $LIBS"
65532 for ac_func in copysignf
65534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65535 echo "$as_me:$LINENO: checking for $ac_func" >&5
65536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65537 if eval "test \"\${$as_ac_var+set}\" = set"; then
65538 echo $ECHO_N "(cached) $ECHO_C" >&6
65539 else
65540 if test x$gcc_no_link = xyes; then
65541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65543 { (exit 1); exit 1; }; }
65545 cat >conftest.$ac_ext <<_ACEOF
65546 /* confdefs.h. */
65547 _ACEOF
65548 cat confdefs.h >>conftest.$ac_ext
65549 cat >>conftest.$ac_ext <<_ACEOF
65550 /* end confdefs.h. */
65551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65553 #define $ac_func innocuous_$ac_func
65555 /* System header to define __stub macros and hopefully few prototypes,
65556 which can conflict with char $ac_func (); below.
65557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65558 <limits.h> exists even on freestanding compilers. */
65560 #ifdef __STDC__
65561 # include <limits.h>
65562 #else
65563 # include <assert.h>
65564 #endif
65566 #undef $ac_func
65568 /* Override any gcc2 internal prototype to avoid an error. */
65569 #ifdef __cplusplus
65570 extern "C"
65572 #endif
65573 /* We use char because int might match the return type of a gcc2
65574 builtin and then its argument prototype would still apply. */
65575 char $ac_func ();
65576 /* The GNU C library defines this for functions which it implements
65577 to always fail with ENOSYS. Some functions are actually named
65578 something starting with __ and the normal name is an alias. */
65579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65580 choke me
65581 #else
65582 char (*f) () = $ac_func;
65583 #endif
65584 #ifdef __cplusplus
65586 #endif
65589 main ()
65591 return f != $ac_func;
65593 return 0;
65595 _ACEOF
65596 rm -f conftest.$ac_objext conftest$ac_exeext
65597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65598 (eval $ac_link) 2>conftest.er1
65599 ac_status=$?
65600 grep -v '^ *+' conftest.er1 >conftest.err
65601 rm -f conftest.er1
65602 cat conftest.err >&5
65603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65604 (exit $ac_status); } &&
65605 { ac_try='test -z "$ac_c_werror_flag"
65606 || test ! -s conftest.err'
65607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65608 (eval $ac_try) 2>&5
65609 ac_status=$?
65610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65611 (exit $ac_status); }; } &&
65612 { ac_try='test -s conftest$ac_exeext'
65613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65614 (eval $ac_try) 2>&5
65615 ac_status=$?
65616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65617 (exit $ac_status); }; }; then
65618 eval "$as_ac_var=yes"
65619 else
65620 echo "$as_me: failed program was:" >&5
65621 sed 's/^/| /' conftest.$ac_ext >&5
65623 eval "$as_ac_var=no"
65625 rm -f conftest.err conftest.$ac_objext \
65626 conftest$ac_exeext conftest.$ac_ext
65628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65630 if test `eval echo '${'$as_ac_var'}'` = yes; then
65631 cat >>confdefs.h <<_ACEOF
65632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65633 _ACEOF
65635 else
65636 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
65638 done
65642 for ac_func in __signbit
65644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65645 echo "$as_me:$LINENO: checking for $ac_func" >&5
65646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65647 if eval "test \"\${$as_ac_var+set}\" = set"; then
65648 echo $ECHO_N "(cached) $ECHO_C" >&6
65649 else
65650 if test x$gcc_no_link = xyes; then
65651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65653 { (exit 1); exit 1; }; }
65655 cat >conftest.$ac_ext <<_ACEOF
65656 /* confdefs.h. */
65657 _ACEOF
65658 cat confdefs.h >>conftest.$ac_ext
65659 cat >>conftest.$ac_ext <<_ACEOF
65660 /* end confdefs.h. */
65661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65663 #define $ac_func innocuous_$ac_func
65665 /* System header to define __stub macros and hopefully few prototypes,
65666 which can conflict with char $ac_func (); below.
65667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65668 <limits.h> exists even on freestanding compilers. */
65670 #ifdef __STDC__
65671 # include <limits.h>
65672 #else
65673 # include <assert.h>
65674 #endif
65676 #undef $ac_func
65678 /* Override any gcc2 internal prototype to avoid an error. */
65679 #ifdef __cplusplus
65680 extern "C"
65682 #endif
65683 /* We use char because int might match the return type of a gcc2
65684 builtin and then its argument prototype would still apply. */
65685 char $ac_func ();
65686 /* The GNU C library defines this for functions which it implements
65687 to always fail with ENOSYS. Some functions are actually named
65688 something starting with __ and the normal name is an alias. */
65689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65690 choke me
65691 #else
65692 char (*f) () = $ac_func;
65693 #endif
65694 #ifdef __cplusplus
65696 #endif
65699 main ()
65701 return f != $ac_func;
65703 return 0;
65705 _ACEOF
65706 rm -f conftest.$ac_objext conftest$ac_exeext
65707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65708 (eval $ac_link) 2>conftest.er1
65709 ac_status=$?
65710 grep -v '^ *+' conftest.er1 >conftest.err
65711 rm -f conftest.er1
65712 cat conftest.err >&5
65713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65714 (exit $ac_status); } &&
65715 { ac_try='test -z "$ac_c_werror_flag"
65716 || test ! -s conftest.err'
65717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65718 (eval $ac_try) 2>&5
65719 ac_status=$?
65720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65721 (exit $ac_status); }; } &&
65722 { ac_try='test -s conftest$ac_exeext'
65723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65724 (eval $ac_try) 2>&5
65725 ac_status=$?
65726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65727 (exit $ac_status); }; }; then
65728 eval "$as_ac_var=yes"
65729 else
65730 echo "$as_me: failed program was:" >&5
65731 sed 's/^/| /' conftest.$ac_ext >&5
65733 eval "$as_ac_var=no"
65735 rm -f conftest.err conftest.$ac_objext \
65736 conftest$ac_exeext conftest.$ac_ext
65738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65740 if test `eval echo '${'$as_ac_var'}'` = yes; then
65741 cat >>confdefs.h <<_ACEOF
65742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65743 _ACEOF
65745 else
65746 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
65748 done
65751 for ac_func in __signbitf
65753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65754 echo "$as_me:$LINENO: checking for $ac_func" >&5
65755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65756 if eval "test \"\${$as_ac_var+set}\" = set"; then
65757 echo $ECHO_N "(cached) $ECHO_C" >&6
65758 else
65759 if test x$gcc_no_link = xyes; then
65760 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65762 { (exit 1); exit 1; }; }
65764 cat >conftest.$ac_ext <<_ACEOF
65765 /* confdefs.h. */
65766 _ACEOF
65767 cat confdefs.h >>conftest.$ac_ext
65768 cat >>conftest.$ac_ext <<_ACEOF
65769 /* end confdefs.h. */
65770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65772 #define $ac_func innocuous_$ac_func
65774 /* System header to define __stub macros and hopefully few prototypes,
65775 which can conflict with char $ac_func (); below.
65776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65777 <limits.h> exists even on freestanding compilers. */
65779 #ifdef __STDC__
65780 # include <limits.h>
65781 #else
65782 # include <assert.h>
65783 #endif
65785 #undef $ac_func
65787 /* Override any gcc2 internal prototype to avoid an error. */
65788 #ifdef __cplusplus
65789 extern "C"
65791 #endif
65792 /* We use char because int might match the return type of a gcc2
65793 builtin and then its argument prototype would still apply. */
65794 char $ac_func ();
65795 /* The GNU C library defines this for functions which it implements
65796 to always fail with ENOSYS. Some functions are actually named
65797 something starting with __ and the normal name is an alias. */
65798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65799 choke me
65800 #else
65801 char (*f) () = $ac_func;
65802 #endif
65803 #ifdef __cplusplus
65805 #endif
65808 main ()
65810 return f != $ac_func;
65812 return 0;
65814 _ACEOF
65815 rm -f conftest.$ac_objext conftest$ac_exeext
65816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65817 (eval $ac_link) 2>conftest.er1
65818 ac_status=$?
65819 grep -v '^ *+' conftest.er1 >conftest.err
65820 rm -f conftest.er1
65821 cat conftest.err >&5
65822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65823 (exit $ac_status); } &&
65824 { ac_try='test -z "$ac_c_werror_flag"
65825 || test ! -s conftest.err'
65826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65827 (eval $ac_try) 2>&5
65828 ac_status=$?
65829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65830 (exit $ac_status); }; } &&
65831 { ac_try='test -s conftest$ac_exeext'
65832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65833 (eval $ac_try) 2>&5
65834 ac_status=$?
65835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65836 (exit $ac_status); }; }; then
65837 eval "$as_ac_var=yes"
65838 else
65839 echo "$as_me: failed program was:" >&5
65840 sed 's/^/| /' conftest.$ac_ext >&5
65842 eval "$as_ac_var=no"
65844 rm -f conftest.err conftest.$ac_objext \
65845 conftest$ac_exeext conftest.$ac_ext
65847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65849 if test `eval echo '${'$as_ac_var'}'` = yes; then
65850 cat >>confdefs.h <<_ACEOF
65851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65852 _ACEOF
65854 else
65855 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
65857 done
65860 if test x$ac_cv_func_copysignl = x"yes"; then
65862 for ac_func in __signbitl
65864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65865 echo "$as_me:$LINENO: checking for $ac_func" >&5
65866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65867 if eval "test \"\${$as_ac_var+set}\" = set"; then
65868 echo $ECHO_N "(cached) $ECHO_C" >&6
65869 else
65870 if test x$gcc_no_link = xyes; then
65871 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65872 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65873 { (exit 1); exit 1; }; }
65875 cat >conftest.$ac_ext <<_ACEOF
65876 /* confdefs.h. */
65877 _ACEOF
65878 cat confdefs.h >>conftest.$ac_ext
65879 cat >>conftest.$ac_ext <<_ACEOF
65880 /* end confdefs.h. */
65881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65883 #define $ac_func innocuous_$ac_func
65885 /* System header to define __stub macros and hopefully few prototypes,
65886 which can conflict with char $ac_func (); below.
65887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65888 <limits.h> exists even on freestanding compilers. */
65890 #ifdef __STDC__
65891 # include <limits.h>
65892 #else
65893 # include <assert.h>
65894 #endif
65896 #undef $ac_func
65898 /* Override any gcc2 internal prototype to avoid an error. */
65899 #ifdef __cplusplus
65900 extern "C"
65902 #endif
65903 /* We use char because int might match the return type of a gcc2
65904 builtin and then its argument prototype would still apply. */
65905 char $ac_func ();
65906 /* The GNU C library defines this for functions which it implements
65907 to always fail with ENOSYS. Some functions are actually named
65908 something starting with __ and the normal name is an alias. */
65909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65910 choke me
65911 #else
65912 char (*f) () = $ac_func;
65913 #endif
65914 #ifdef __cplusplus
65916 #endif
65919 main ()
65921 return f != $ac_func;
65923 return 0;
65925 _ACEOF
65926 rm -f conftest.$ac_objext conftest$ac_exeext
65927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65928 (eval $ac_link) 2>conftest.er1
65929 ac_status=$?
65930 grep -v '^ *+' conftest.er1 >conftest.err
65931 rm -f conftest.er1
65932 cat conftest.err >&5
65933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65934 (exit $ac_status); } &&
65935 { ac_try='test -z "$ac_c_werror_flag"
65936 || test ! -s conftest.err'
65937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65938 (eval $ac_try) 2>&5
65939 ac_status=$?
65940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65941 (exit $ac_status); }; } &&
65942 { ac_try='test -s conftest$ac_exeext'
65943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65944 (eval $ac_try) 2>&5
65945 ac_status=$?
65946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65947 (exit $ac_status); }; }; then
65948 eval "$as_ac_var=yes"
65949 else
65950 echo "$as_me: failed program was:" >&5
65951 sed 's/^/| /' conftest.$ac_ext >&5
65953 eval "$as_ac_var=no"
65955 rm -f conftest.err conftest.$ac_objext \
65956 conftest$ac_exeext conftest.$ac_ext
65958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65960 if test `eval echo '${'$as_ac_var'}'` = yes; then
65961 cat >>confdefs.h <<_ACEOF
65962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65963 _ACEOF
65965 else
65966 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
65968 done
65972 # XXX Review this. Nothing uses it.
65973 if test -n "$LIBMATHOBJS"; then
65974 need_libmath=yes
65979 # Test wchar.h for mbstate_t, which is needed for char_traits and
65980 # others even if wchar_t support is not on.
65981 echo "$as_me:$LINENO: checking for mbstate_t" >&5
65982 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
65983 cat >conftest.$ac_ext <<_ACEOF
65984 /* confdefs.h. */
65985 _ACEOF
65986 cat confdefs.h >>conftest.$ac_ext
65987 cat >>conftest.$ac_ext <<_ACEOF
65988 /* end confdefs.h. */
65989 #include <wchar.h>
65991 main ()
65993 mbstate_t teststate;
65995 return 0;
65997 _ACEOF
65998 rm -f conftest.$ac_objext
65999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66000 (eval $ac_compile) 2>conftest.er1
66001 ac_status=$?
66002 grep -v '^ *+' conftest.er1 >conftest.err
66003 rm -f conftest.er1
66004 cat conftest.err >&5
66005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66006 (exit $ac_status); } &&
66007 { ac_try='test -z "$ac_c_werror_flag"
66008 || test ! -s conftest.err'
66009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66010 (eval $ac_try) 2>&5
66011 ac_status=$?
66012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66013 (exit $ac_status); }; } &&
66014 { ac_try='test -s conftest.$ac_objext'
66015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66016 (eval $ac_try) 2>&5
66017 ac_status=$?
66018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66019 (exit $ac_status); }; }; then
66020 have_mbstate_t=yes
66021 else
66022 echo "$as_me: failed program was:" >&5
66023 sed 's/^/| /' conftest.$ac_ext >&5
66025 have_mbstate_t=no
66027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66028 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
66029 echo "${ECHO_T}$have_mbstate_t" >&6
66030 if test x"$have_mbstate_t" = xyes; then
66031 cat >>confdefs.h <<\_ACEOF
66032 #define HAVE_MBSTATE_T 1
66033 _ACEOF
66037 # Sanity check for existence of ISO C99 headers for extended encoding.
66039 for ac_header in wchar.h
66041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66043 echo "$as_me:$LINENO: checking for $ac_header" >&5
66044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66046 echo $ECHO_N "(cached) $ECHO_C" >&6
66048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66050 else
66051 # Is the header compilable?
66052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66054 cat >conftest.$ac_ext <<_ACEOF
66055 /* confdefs.h. */
66056 _ACEOF
66057 cat confdefs.h >>conftest.$ac_ext
66058 cat >>conftest.$ac_ext <<_ACEOF
66059 /* end confdefs.h. */
66060 $ac_includes_default
66061 #include <$ac_header>
66062 _ACEOF
66063 rm -f conftest.$ac_objext
66064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66065 (eval $ac_compile) 2>conftest.er1
66066 ac_status=$?
66067 grep -v '^ *+' conftest.er1 >conftest.err
66068 rm -f conftest.er1
66069 cat conftest.err >&5
66070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66071 (exit $ac_status); } &&
66072 { ac_try='test -z "$ac_c_werror_flag"
66073 || test ! -s conftest.err'
66074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66075 (eval $ac_try) 2>&5
66076 ac_status=$?
66077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66078 (exit $ac_status); }; } &&
66079 { ac_try='test -s conftest.$ac_objext'
66080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66081 (eval $ac_try) 2>&5
66082 ac_status=$?
66083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66084 (exit $ac_status); }; }; then
66085 ac_header_compiler=yes
66086 else
66087 echo "$as_me: failed program was:" >&5
66088 sed 's/^/| /' conftest.$ac_ext >&5
66090 ac_header_compiler=no
66092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66094 echo "${ECHO_T}$ac_header_compiler" >&6
66096 # Is the header present?
66097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66099 cat >conftest.$ac_ext <<_ACEOF
66100 /* confdefs.h. */
66101 _ACEOF
66102 cat confdefs.h >>conftest.$ac_ext
66103 cat >>conftest.$ac_ext <<_ACEOF
66104 /* end confdefs.h. */
66105 #include <$ac_header>
66106 _ACEOF
66107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66109 ac_status=$?
66110 grep -v '^ *+' conftest.er1 >conftest.err
66111 rm -f conftest.er1
66112 cat conftest.err >&5
66113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66114 (exit $ac_status); } >/dev/null; then
66115 if test -s conftest.err; then
66116 ac_cpp_err=$ac_c_preproc_warn_flag
66117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66118 else
66119 ac_cpp_err=
66121 else
66122 ac_cpp_err=yes
66124 if test -z "$ac_cpp_err"; then
66125 ac_header_preproc=yes
66126 else
66127 echo "$as_me: failed program was:" >&5
66128 sed 's/^/| /' conftest.$ac_ext >&5
66130 ac_header_preproc=no
66132 rm -f conftest.err conftest.$ac_ext
66133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66134 echo "${ECHO_T}$ac_header_preproc" >&6
66136 # So? What about this header?
66137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66138 yes:no: )
66139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66143 ac_header_preproc=yes
66145 no:yes:* )
66146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66159 cat <<\_ASBOX
66160 ## ----------------------------------------- ##
66161 ## Report this to the package-unused lists. ##
66162 ## ----------------------------------------- ##
66163 _ASBOX
66165 sed "s/^/$as_me: WARNING: /" >&2
66167 esac
66168 echo "$as_me:$LINENO: checking for $ac_header" >&5
66169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66171 echo $ECHO_N "(cached) $ECHO_C" >&6
66172 else
66173 eval "$as_ac_Header=\$ac_header_preproc"
66175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66180 cat >>confdefs.h <<_ACEOF
66181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66182 _ACEOF
66183 ac_has_wchar_h=yes
66184 else
66185 ac_has_wchar_h=no
66188 done
66191 for ac_header in wctype.h
66193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66195 echo "$as_me:$LINENO: checking for $ac_header" >&5
66196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66198 echo $ECHO_N "(cached) $ECHO_C" >&6
66200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66202 else
66203 # Is the header compilable?
66204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66206 cat >conftest.$ac_ext <<_ACEOF
66207 /* confdefs.h. */
66208 _ACEOF
66209 cat confdefs.h >>conftest.$ac_ext
66210 cat >>conftest.$ac_ext <<_ACEOF
66211 /* end confdefs.h. */
66212 $ac_includes_default
66213 #include <$ac_header>
66214 _ACEOF
66215 rm -f conftest.$ac_objext
66216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66217 (eval $ac_compile) 2>conftest.er1
66218 ac_status=$?
66219 grep -v '^ *+' conftest.er1 >conftest.err
66220 rm -f conftest.er1
66221 cat conftest.err >&5
66222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66223 (exit $ac_status); } &&
66224 { ac_try='test -z "$ac_c_werror_flag"
66225 || test ! -s conftest.err'
66226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66227 (eval $ac_try) 2>&5
66228 ac_status=$?
66229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66230 (exit $ac_status); }; } &&
66231 { ac_try='test -s conftest.$ac_objext'
66232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66233 (eval $ac_try) 2>&5
66234 ac_status=$?
66235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66236 (exit $ac_status); }; }; then
66237 ac_header_compiler=yes
66238 else
66239 echo "$as_me: failed program was:" >&5
66240 sed 's/^/| /' conftest.$ac_ext >&5
66242 ac_header_compiler=no
66244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66246 echo "${ECHO_T}$ac_header_compiler" >&6
66248 # Is the header present?
66249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66251 cat >conftest.$ac_ext <<_ACEOF
66252 /* confdefs.h. */
66253 _ACEOF
66254 cat confdefs.h >>conftest.$ac_ext
66255 cat >>conftest.$ac_ext <<_ACEOF
66256 /* end confdefs.h. */
66257 #include <$ac_header>
66258 _ACEOF
66259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66261 ac_status=$?
66262 grep -v '^ *+' conftest.er1 >conftest.err
66263 rm -f conftest.er1
66264 cat conftest.err >&5
66265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66266 (exit $ac_status); } >/dev/null; then
66267 if test -s conftest.err; then
66268 ac_cpp_err=$ac_c_preproc_warn_flag
66269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66270 else
66271 ac_cpp_err=
66273 else
66274 ac_cpp_err=yes
66276 if test -z "$ac_cpp_err"; then
66277 ac_header_preproc=yes
66278 else
66279 echo "$as_me: failed program was:" >&5
66280 sed 's/^/| /' conftest.$ac_ext >&5
66282 ac_header_preproc=no
66284 rm -f conftest.err conftest.$ac_ext
66285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66286 echo "${ECHO_T}$ac_header_preproc" >&6
66288 # So? What about this header?
66289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66290 yes:no: )
66291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66295 ac_header_preproc=yes
66297 no:yes:* )
66298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66311 cat <<\_ASBOX
66312 ## ----------------------------------------- ##
66313 ## Report this to the package-unused lists. ##
66314 ## ----------------------------------------- ##
66315 _ASBOX
66317 sed "s/^/$as_me: WARNING: /" >&2
66319 esac
66320 echo "$as_me:$LINENO: checking for $ac_header" >&5
66321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66323 echo $ECHO_N "(cached) $ECHO_C" >&6
66324 else
66325 eval "$as_ac_Header=\$ac_header_preproc"
66327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66332 cat >>confdefs.h <<_ACEOF
66333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66334 _ACEOF
66335 ac_has_wctype_h=yes
66336 else
66337 ac_has_wctype_h=no
66340 done
66343 # Only continue checking if the ISO C99 headers exist and support is on.
66344 if test x"$ac_has_wchar_h" = xyes &&
66345 test x"$ac_has_wctype_h" = xyes &&
66346 test x"$enable_c_mbchar" != xno; then
66348 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66349 # numeric_limits can instantiate type_traits<wchar_t>
66350 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66351 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66352 cat >conftest.$ac_ext <<_ACEOF
66353 /* confdefs.h. */
66354 _ACEOF
66355 cat confdefs.h >>conftest.$ac_ext
66356 cat >>conftest.$ac_ext <<_ACEOF
66357 /* end confdefs.h. */
66358 #include <wchar.h>
66360 main ()
66362 int i = WCHAR_MIN; int j = WCHAR_MAX;
66364 return 0;
66366 _ACEOF
66367 rm -f conftest.$ac_objext
66368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66369 (eval $ac_compile) 2>conftest.er1
66370 ac_status=$?
66371 grep -v '^ *+' conftest.er1 >conftest.err
66372 rm -f conftest.er1
66373 cat conftest.err >&5
66374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66375 (exit $ac_status); } &&
66376 { ac_try='test -z "$ac_c_werror_flag"
66377 || test ! -s conftest.err'
66378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66379 (eval $ac_try) 2>&5
66380 ac_status=$?
66381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66382 (exit $ac_status); }; } &&
66383 { ac_try='test -s conftest.$ac_objext'
66384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66385 (eval $ac_try) 2>&5
66386 ac_status=$?
66387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66388 (exit $ac_status); }; }; then
66389 has_wchar_minmax=yes
66390 else
66391 echo "$as_me: failed program was:" >&5
66392 sed 's/^/| /' conftest.$ac_ext >&5
66394 has_wchar_minmax=no
66396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66397 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66398 echo "${ECHO_T}$has_wchar_minmax" >&6
66400 # Test wchar.h for WEOF, which is what we use to determine whether
66401 # to specialize for char_traits<wchar_t> or not.
66402 echo "$as_me:$LINENO: checking for WEOF" >&5
66403 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66404 cat >conftest.$ac_ext <<_ACEOF
66405 /* confdefs.h. */
66406 _ACEOF
66407 cat confdefs.h >>conftest.$ac_ext
66408 cat >>conftest.$ac_ext <<_ACEOF
66409 /* end confdefs.h. */
66411 #include <wchar.h>
66412 #include <stddef.h>
66414 main ()
66416 wint_t i = WEOF;
66418 return 0;
66420 _ACEOF
66421 rm -f conftest.$ac_objext
66422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66423 (eval $ac_compile) 2>conftest.er1
66424 ac_status=$?
66425 grep -v '^ *+' conftest.er1 >conftest.err
66426 rm -f conftest.er1
66427 cat conftest.err >&5
66428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66429 (exit $ac_status); } &&
66430 { ac_try='test -z "$ac_c_werror_flag"
66431 || test ! -s conftest.err'
66432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66433 (eval $ac_try) 2>&5
66434 ac_status=$?
66435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66436 (exit $ac_status); }; } &&
66437 { ac_try='test -s conftest.$ac_objext'
66438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66439 (eval $ac_try) 2>&5
66440 ac_status=$?
66441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66442 (exit $ac_status); }; }; then
66443 has_weof=yes
66444 else
66445 echo "$as_me: failed program was:" >&5
66446 sed 's/^/| /' conftest.$ac_ext >&5
66448 has_weof=no
66450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66451 echo "$as_me:$LINENO: result: $has_weof" >&5
66452 echo "${ECHO_T}$has_weof" >&6
66454 # Tests for wide character functions used in char_traits<wchar_t>.
66455 ac_wfuncs=yes
66462 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66465 echo "$as_me:$LINENO: checking for $ac_func" >&5
66466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66467 if eval "test \"\${$as_ac_var+set}\" = set"; then
66468 echo $ECHO_N "(cached) $ECHO_C" >&6
66469 else
66470 if test x$gcc_no_link = xyes; then
66471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66473 { (exit 1); exit 1; }; }
66475 cat >conftest.$ac_ext <<_ACEOF
66476 /* confdefs.h. */
66477 _ACEOF
66478 cat confdefs.h >>conftest.$ac_ext
66479 cat >>conftest.$ac_ext <<_ACEOF
66480 /* end confdefs.h. */
66481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66483 #define $ac_func innocuous_$ac_func
66485 /* System header to define __stub macros and hopefully few prototypes,
66486 which can conflict with char $ac_func (); below.
66487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66488 <limits.h> exists even on freestanding compilers. */
66490 #ifdef __STDC__
66491 # include <limits.h>
66492 #else
66493 # include <assert.h>
66494 #endif
66496 #undef $ac_func
66498 /* Override any gcc2 internal prototype to avoid an error. */
66499 #ifdef __cplusplus
66500 extern "C"
66502 #endif
66503 /* We use char because int might match the return type of a gcc2
66504 builtin and then its argument prototype would still apply. */
66505 char $ac_func ();
66506 /* The GNU C library defines this for functions which it implements
66507 to always fail with ENOSYS. Some functions are actually named
66508 something starting with __ and the normal name is an alias. */
66509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66510 choke me
66511 #else
66512 char (*f) () = $ac_func;
66513 #endif
66514 #ifdef __cplusplus
66516 #endif
66519 main ()
66521 return f != $ac_func;
66523 return 0;
66525 _ACEOF
66526 rm -f conftest.$ac_objext conftest$ac_exeext
66527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66528 (eval $ac_link) 2>conftest.er1
66529 ac_status=$?
66530 grep -v '^ *+' conftest.er1 >conftest.err
66531 rm -f conftest.er1
66532 cat conftest.err >&5
66533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66534 (exit $ac_status); } &&
66535 { ac_try='test -z "$ac_c_werror_flag"
66536 || test ! -s conftest.err'
66537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66538 (eval $ac_try) 2>&5
66539 ac_status=$?
66540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66541 (exit $ac_status); }; } &&
66542 { ac_try='test -s conftest$ac_exeext'
66543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66544 (eval $ac_try) 2>&5
66545 ac_status=$?
66546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66547 (exit $ac_status); }; }; then
66548 eval "$as_ac_var=yes"
66549 else
66550 echo "$as_me: failed program was:" >&5
66551 sed 's/^/| /' conftest.$ac_ext >&5
66553 eval "$as_ac_var=no"
66555 rm -f conftest.err conftest.$ac_objext \
66556 conftest$ac_exeext conftest.$ac_ext
66558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66560 if test `eval echo '${'$as_ac_var'}'` = yes; then
66561 cat >>confdefs.h <<_ACEOF
66562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66563 _ACEOF
66565 else
66566 ac_wfuncs=no
66568 done
66571 # Checks for names injected into std:: by the c_std headers.
66618 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
66619 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
66620 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
66621 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
66622 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
66623 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
66625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66626 echo "$as_me:$LINENO: checking for $ac_func" >&5
66627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66628 if eval "test \"\${$as_ac_var+set}\" = set"; then
66629 echo $ECHO_N "(cached) $ECHO_C" >&6
66630 else
66631 if test x$gcc_no_link = xyes; then
66632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66634 { (exit 1); exit 1; }; }
66636 cat >conftest.$ac_ext <<_ACEOF
66637 /* confdefs.h. */
66638 _ACEOF
66639 cat confdefs.h >>conftest.$ac_ext
66640 cat >>conftest.$ac_ext <<_ACEOF
66641 /* end confdefs.h. */
66642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66644 #define $ac_func innocuous_$ac_func
66646 /* System header to define __stub macros and hopefully few prototypes,
66647 which can conflict with char $ac_func (); below.
66648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66649 <limits.h> exists even on freestanding compilers. */
66651 #ifdef __STDC__
66652 # include <limits.h>
66653 #else
66654 # include <assert.h>
66655 #endif
66657 #undef $ac_func
66659 /* Override any gcc2 internal prototype to avoid an error. */
66660 #ifdef __cplusplus
66661 extern "C"
66663 #endif
66664 /* We use char because int might match the return type of a gcc2
66665 builtin and then its argument prototype would still apply. */
66666 char $ac_func ();
66667 /* The GNU C library defines this for functions which it implements
66668 to always fail with ENOSYS. Some functions are actually named
66669 something starting with __ and the normal name is an alias. */
66670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66671 choke me
66672 #else
66673 char (*f) () = $ac_func;
66674 #endif
66675 #ifdef __cplusplus
66677 #endif
66680 main ()
66682 return f != $ac_func;
66684 return 0;
66686 _ACEOF
66687 rm -f conftest.$ac_objext conftest$ac_exeext
66688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66689 (eval $ac_link) 2>conftest.er1
66690 ac_status=$?
66691 grep -v '^ *+' conftest.er1 >conftest.err
66692 rm -f conftest.er1
66693 cat conftest.err >&5
66694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66695 (exit $ac_status); } &&
66696 { ac_try='test -z "$ac_c_werror_flag"
66697 || test ! -s conftest.err'
66698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66699 (eval $ac_try) 2>&5
66700 ac_status=$?
66701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66702 (exit $ac_status); }; } &&
66703 { ac_try='test -s conftest$ac_exeext'
66704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66705 (eval $ac_try) 2>&5
66706 ac_status=$?
66707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66708 (exit $ac_status); }; }; then
66709 eval "$as_ac_var=yes"
66710 else
66711 echo "$as_me: failed program was:" >&5
66712 sed 's/^/| /' conftest.$ac_ext >&5
66714 eval "$as_ac_var=no"
66716 rm -f conftest.err conftest.$ac_objext \
66717 conftest$ac_exeext conftest.$ac_ext
66719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66721 if test `eval echo '${'$as_ac_var'}'` = yes; then
66722 cat >>confdefs.h <<_ACEOF
66723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66724 _ACEOF
66726 else
66727 ac_wfuncs=no
66729 done
66732 # Checks for wide character functions that are not required
66733 # for basic wchar_t support. Don't disable support if they are missing.
66734 # Injection of these is wrapped with guard macros.
66740 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
66742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66743 echo "$as_me:$LINENO: checking for $ac_func" >&5
66744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66745 if eval "test \"\${$as_ac_var+set}\" = set"; then
66746 echo $ECHO_N "(cached) $ECHO_C" >&6
66747 else
66748 if test x$gcc_no_link = xyes; then
66749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66751 { (exit 1); exit 1; }; }
66753 cat >conftest.$ac_ext <<_ACEOF
66754 /* confdefs.h. */
66755 _ACEOF
66756 cat confdefs.h >>conftest.$ac_ext
66757 cat >>conftest.$ac_ext <<_ACEOF
66758 /* end confdefs.h. */
66759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66761 #define $ac_func innocuous_$ac_func
66763 /* System header to define __stub macros and hopefully few prototypes,
66764 which can conflict with char $ac_func (); below.
66765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66766 <limits.h> exists even on freestanding compilers. */
66768 #ifdef __STDC__
66769 # include <limits.h>
66770 #else
66771 # include <assert.h>
66772 #endif
66774 #undef $ac_func
66776 /* Override any gcc2 internal prototype to avoid an error. */
66777 #ifdef __cplusplus
66778 extern "C"
66780 #endif
66781 /* We use char because int might match the return type of a gcc2
66782 builtin and then its argument prototype would still apply. */
66783 char $ac_func ();
66784 /* The GNU C library defines this for functions which it implements
66785 to always fail with ENOSYS. Some functions are actually named
66786 something starting with __ and the normal name is an alias. */
66787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66788 choke me
66789 #else
66790 char (*f) () = $ac_func;
66791 #endif
66792 #ifdef __cplusplus
66794 #endif
66797 main ()
66799 return f != $ac_func;
66801 return 0;
66803 _ACEOF
66804 rm -f conftest.$ac_objext conftest$ac_exeext
66805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66806 (eval $ac_link) 2>conftest.er1
66807 ac_status=$?
66808 grep -v '^ *+' conftest.er1 >conftest.err
66809 rm -f conftest.er1
66810 cat conftest.err >&5
66811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66812 (exit $ac_status); } &&
66813 { ac_try='test -z "$ac_c_werror_flag"
66814 || test ! -s conftest.err'
66815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66816 (eval $ac_try) 2>&5
66817 ac_status=$?
66818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66819 (exit $ac_status); }; } &&
66820 { ac_try='test -s conftest$ac_exeext'
66821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66822 (eval $ac_try) 2>&5
66823 ac_status=$?
66824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66825 (exit $ac_status); }; }; then
66826 eval "$as_ac_var=yes"
66827 else
66828 echo "$as_me: failed program was:" >&5
66829 sed 's/^/| /' conftest.$ac_ext >&5
66831 eval "$as_ac_var=no"
66833 rm -f conftest.err conftest.$ac_objext \
66834 conftest$ac_exeext conftest.$ac_ext
66836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66838 if test `eval echo '${'$as_ac_var'}'` = yes; then
66839 cat >>confdefs.h <<_ACEOF
66840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66841 _ACEOF
66844 done
66847 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
66848 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
66849 if test x"$has_weof" = xyes &&
66850 test x"$has_wchar_minmax" = xyes &&
66851 test x"$ac_wfuncs" = xyes;
66852 then
66853 ac_isoC99_wchar_t=yes
66854 else
66855 ac_isoC99_wchar_t=no
66857 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
66858 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
66860 # Use iconv for wchar_t to char conversions. As such, check for
66861 # X/Open Portability Guide, version 2 features (XPG2).
66862 if test "${ac_cv_header_iconv_h+set}" = set; then
66863 echo "$as_me:$LINENO: checking for iconv.h" >&5
66864 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66865 if test "${ac_cv_header_iconv_h+set}" = set; then
66866 echo $ECHO_N "(cached) $ECHO_C" >&6
66868 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66869 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66870 else
66871 # Is the header compilable?
66872 echo "$as_me:$LINENO: checking iconv.h usability" >&5
66873 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
66874 cat >conftest.$ac_ext <<_ACEOF
66875 /* confdefs.h. */
66876 _ACEOF
66877 cat confdefs.h >>conftest.$ac_ext
66878 cat >>conftest.$ac_ext <<_ACEOF
66879 /* end confdefs.h. */
66880 $ac_includes_default
66881 #include <iconv.h>
66882 _ACEOF
66883 rm -f conftest.$ac_objext
66884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66885 (eval $ac_compile) 2>conftest.er1
66886 ac_status=$?
66887 grep -v '^ *+' conftest.er1 >conftest.err
66888 rm -f conftest.er1
66889 cat conftest.err >&5
66890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66891 (exit $ac_status); } &&
66892 { ac_try='test -z "$ac_c_werror_flag"
66893 || test ! -s conftest.err'
66894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66895 (eval $ac_try) 2>&5
66896 ac_status=$?
66897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66898 (exit $ac_status); }; } &&
66899 { ac_try='test -s conftest.$ac_objext'
66900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66901 (eval $ac_try) 2>&5
66902 ac_status=$?
66903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66904 (exit $ac_status); }; }; then
66905 ac_header_compiler=yes
66906 else
66907 echo "$as_me: failed program was:" >&5
66908 sed 's/^/| /' conftest.$ac_ext >&5
66910 ac_header_compiler=no
66912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66914 echo "${ECHO_T}$ac_header_compiler" >&6
66916 # Is the header present?
66917 echo "$as_me:$LINENO: checking iconv.h presence" >&5
66918 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
66919 cat >conftest.$ac_ext <<_ACEOF
66920 /* confdefs.h. */
66921 _ACEOF
66922 cat confdefs.h >>conftest.$ac_ext
66923 cat >>conftest.$ac_ext <<_ACEOF
66924 /* end confdefs.h. */
66925 #include <iconv.h>
66926 _ACEOF
66927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66929 ac_status=$?
66930 grep -v '^ *+' conftest.er1 >conftest.err
66931 rm -f conftest.er1
66932 cat conftest.err >&5
66933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66934 (exit $ac_status); } >/dev/null; then
66935 if test -s conftest.err; then
66936 ac_cpp_err=$ac_c_preproc_warn_flag
66937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66938 else
66939 ac_cpp_err=
66941 else
66942 ac_cpp_err=yes
66944 if test -z "$ac_cpp_err"; then
66945 ac_header_preproc=yes
66946 else
66947 echo "$as_me: failed program was:" >&5
66948 sed 's/^/| /' conftest.$ac_ext >&5
66950 ac_header_preproc=no
66952 rm -f conftest.err conftest.$ac_ext
66953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66954 echo "${ECHO_T}$ac_header_preproc" >&6
66956 # So? What about this header?
66957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66958 yes:no: )
66959 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
66960 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
66961 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
66962 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
66963 ac_header_preproc=yes
66965 no:yes:* )
66966 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
66967 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
66968 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
66969 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
66970 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
66971 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
66972 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
66973 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
66974 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
66975 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
66976 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
66977 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
66979 cat <<\_ASBOX
66980 ## ----------------------------------------- ##
66981 ## Report this to the package-unused lists. ##
66982 ## ----------------------------------------- ##
66983 _ASBOX
66985 sed "s/^/$as_me: WARNING: /" >&2
66987 esac
66988 echo "$as_me:$LINENO: checking for iconv.h" >&5
66989 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66990 if test "${ac_cv_header_iconv_h+set}" = set; then
66991 echo $ECHO_N "(cached) $ECHO_C" >&6
66992 else
66993 ac_cv_header_iconv_h=$ac_header_preproc
66995 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66996 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66999 if test $ac_cv_header_iconv_h = yes; then
67000 ac_has_iconv_h=yes
67001 else
67002 ac_has_iconv_h=no
67006 if test "${ac_cv_header_langinfo_h+set}" = set; then
67007 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67008 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67009 if test "${ac_cv_header_langinfo_h+set}" = set; then
67010 echo $ECHO_N "(cached) $ECHO_C" >&6
67012 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67013 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67014 else
67015 # Is the header compilable?
67016 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
67017 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
67018 cat >conftest.$ac_ext <<_ACEOF
67019 /* confdefs.h. */
67020 _ACEOF
67021 cat confdefs.h >>conftest.$ac_ext
67022 cat >>conftest.$ac_ext <<_ACEOF
67023 /* end confdefs.h. */
67024 $ac_includes_default
67025 #include <langinfo.h>
67026 _ACEOF
67027 rm -f conftest.$ac_objext
67028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67029 (eval $ac_compile) 2>conftest.er1
67030 ac_status=$?
67031 grep -v '^ *+' conftest.er1 >conftest.err
67032 rm -f conftest.er1
67033 cat conftest.err >&5
67034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67035 (exit $ac_status); } &&
67036 { ac_try='test -z "$ac_c_werror_flag"
67037 || test ! -s conftest.err'
67038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67039 (eval $ac_try) 2>&5
67040 ac_status=$?
67041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67042 (exit $ac_status); }; } &&
67043 { ac_try='test -s conftest.$ac_objext'
67044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67045 (eval $ac_try) 2>&5
67046 ac_status=$?
67047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67048 (exit $ac_status); }; }; then
67049 ac_header_compiler=yes
67050 else
67051 echo "$as_me: failed program was:" >&5
67052 sed 's/^/| /' conftest.$ac_ext >&5
67054 ac_header_compiler=no
67056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67058 echo "${ECHO_T}$ac_header_compiler" >&6
67060 # Is the header present?
67061 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
67062 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
67063 cat >conftest.$ac_ext <<_ACEOF
67064 /* confdefs.h. */
67065 _ACEOF
67066 cat confdefs.h >>conftest.$ac_ext
67067 cat >>conftest.$ac_ext <<_ACEOF
67068 /* end confdefs.h. */
67069 #include <langinfo.h>
67070 _ACEOF
67071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67073 ac_status=$?
67074 grep -v '^ *+' conftest.er1 >conftest.err
67075 rm -f conftest.er1
67076 cat conftest.err >&5
67077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67078 (exit $ac_status); } >/dev/null; then
67079 if test -s conftest.err; then
67080 ac_cpp_err=$ac_c_preproc_warn_flag
67081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67082 else
67083 ac_cpp_err=
67085 else
67086 ac_cpp_err=yes
67088 if test -z "$ac_cpp_err"; then
67089 ac_header_preproc=yes
67090 else
67091 echo "$as_me: failed program was:" >&5
67092 sed 's/^/| /' conftest.$ac_ext >&5
67094 ac_header_preproc=no
67096 rm -f conftest.err conftest.$ac_ext
67097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67098 echo "${ECHO_T}$ac_header_preproc" >&6
67100 # So? What about this header?
67101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67102 yes:no: )
67103 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67104 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67105 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67106 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67107 ac_header_preproc=yes
67109 no:yes:* )
67110 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67111 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67112 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
67113 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
67114 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67115 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67116 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
67117 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
67118 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67119 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67120 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67121 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67123 cat <<\_ASBOX
67124 ## ----------------------------------------- ##
67125 ## Report this to the package-unused lists. ##
67126 ## ----------------------------------------- ##
67127 _ASBOX
67129 sed "s/^/$as_me: WARNING: /" >&2
67131 esac
67132 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67133 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67134 if test "${ac_cv_header_langinfo_h+set}" = set; then
67135 echo $ECHO_N "(cached) $ECHO_C" >&6
67136 else
67137 ac_cv_header_langinfo_h=$ac_header_preproc
67139 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67140 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67143 if test $ac_cv_header_langinfo_h = yes; then
67144 ac_has_langinfo_h=yes
67145 else
67146 ac_has_langinfo_h=no
67151 # Check for existence of libiconv.a providing XPG2 wchar_t support.
67152 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67153 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67154 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67155 echo $ECHO_N "(cached) $ECHO_C" >&6
67156 else
67157 ac_check_lib_save_LIBS=$LIBS
67158 LIBS="-liconv $LIBS"
67159 if test x$gcc_no_link = xyes; then
67160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67162 { (exit 1); exit 1; }; }
67164 cat >conftest.$ac_ext <<_ACEOF
67165 /* confdefs.h. */
67166 _ACEOF
67167 cat confdefs.h >>conftest.$ac_ext
67168 cat >>conftest.$ac_ext <<_ACEOF
67169 /* end confdefs.h. */
67171 /* Override any gcc2 internal prototype to avoid an error. */
67172 #ifdef __cplusplus
67173 extern "C"
67174 #endif
67175 /* We use char because int might match the return type of a gcc2
67176 builtin and then its argument prototype would still apply. */
67177 char iconv ();
67179 main ()
67181 iconv ();
67183 return 0;
67185 _ACEOF
67186 rm -f conftest.$ac_objext conftest$ac_exeext
67187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67188 (eval $ac_link) 2>conftest.er1
67189 ac_status=$?
67190 grep -v '^ *+' conftest.er1 >conftest.err
67191 rm -f conftest.er1
67192 cat conftest.err >&5
67193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67194 (exit $ac_status); } &&
67195 { ac_try='test -z "$ac_c_werror_flag"
67196 || test ! -s conftest.err'
67197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67198 (eval $ac_try) 2>&5
67199 ac_status=$?
67200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67201 (exit $ac_status); }; } &&
67202 { ac_try='test -s conftest$ac_exeext'
67203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67204 (eval $ac_try) 2>&5
67205 ac_status=$?
67206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67207 (exit $ac_status); }; }; then
67208 ac_cv_lib_iconv_iconv=yes
67209 else
67210 echo "$as_me: failed program was:" >&5
67211 sed 's/^/| /' conftest.$ac_ext >&5
67213 ac_cv_lib_iconv_iconv=no
67215 rm -f conftest.err conftest.$ac_objext \
67216 conftest$ac_exeext conftest.$ac_ext
67217 LIBS=$ac_check_lib_save_LIBS
67219 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67220 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67221 if test $ac_cv_lib_iconv_iconv = yes; then
67222 libiconv="-liconv"
67225 ac_save_LIBS="$LIBS"
67226 LIBS="$LIBS $libiconv"
67232 for ac_func in iconv_open iconv_close iconv nl_langinfo
67234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67235 echo "$as_me:$LINENO: checking for $ac_func" >&5
67236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67237 if eval "test \"\${$as_ac_var+set}\" = set"; then
67238 echo $ECHO_N "(cached) $ECHO_C" >&6
67239 else
67240 if test x$gcc_no_link = xyes; then
67241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67243 { (exit 1); exit 1; }; }
67245 cat >conftest.$ac_ext <<_ACEOF
67246 /* confdefs.h. */
67247 _ACEOF
67248 cat confdefs.h >>conftest.$ac_ext
67249 cat >>conftest.$ac_ext <<_ACEOF
67250 /* end confdefs.h. */
67251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67253 #define $ac_func innocuous_$ac_func
67255 /* System header to define __stub macros and hopefully few prototypes,
67256 which can conflict with char $ac_func (); below.
67257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67258 <limits.h> exists even on freestanding compilers. */
67260 #ifdef __STDC__
67261 # include <limits.h>
67262 #else
67263 # include <assert.h>
67264 #endif
67266 #undef $ac_func
67268 /* Override any gcc2 internal prototype to avoid an error. */
67269 #ifdef __cplusplus
67270 extern "C"
67272 #endif
67273 /* We use char because int might match the return type of a gcc2
67274 builtin and then its argument prototype would still apply. */
67275 char $ac_func ();
67276 /* The GNU C library defines this for functions which it implements
67277 to always fail with ENOSYS. Some functions are actually named
67278 something starting with __ and the normal name is an alias. */
67279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67280 choke me
67281 #else
67282 char (*f) () = $ac_func;
67283 #endif
67284 #ifdef __cplusplus
67286 #endif
67289 main ()
67291 return f != $ac_func;
67293 return 0;
67295 _ACEOF
67296 rm -f conftest.$ac_objext conftest$ac_exeext
67297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67298 (eval $ac_link) 2>conftest.er1
67299 ac_status=$?
67300 grep -v '^ *+' conftest.er1 >conftest.err
67301 rm -f conftest.er1
67302 cat conftest.err >&5
67303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67304 (exit $ac_status); } &&
67305 { ac_try='test -z "$ac_c_werror_flag"
67306 || test ! -s conftest.err'
67307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67308 (eval $ac_try) 2>&5
67309 ac_status=$?
67310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67311 (exit $ac_status); }; } &&
67312 { ac_try='test -s conftest$ac_exeext'
67313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67314 (eval $ac_try) 2>&5
67315 ac_status=$?
67316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67317 (exit $ac_status); }; }; then
67318 eval "$as_ac_var=yes"
67319 else
67320 echo "$as_me: failed program was:" >&5
67321 sed 's/^/| /' conftest.$ac_ext >&5
67323 eval "$as_ac_var=no"
67325 rm -f conftest.err conftest.$ac_objext \
67326 conftest$ac_exeext conftest.$ac_ext
67328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67330 if test `eval echo '${'$as_ac_var'}'` = yes; then
67331 cat >>confdefs.h <<_ACEOF
67332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67333 _ACEOF
67334 ac_XPG2funcs=yes
67335 else
67336 ac_XPG2funcs=no
67338 done
67341 LIBS="$ac_save_LIBS"
67343 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67344 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67345 if test x"$ac_has_iconv_h" = xyes &&
67346 test x"$ac_has_langinfo_h" = xyes &&
67347 test x"$ac_XPG2funcs" = xyes;
67348 then
67349 ac_XPG2_wchar_t=yes
67350 else
67351 ac_XPG2_wchar_t=no
67353 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67354 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67356 # At the moment, only enable wchar_t specializations if all the
67357 # above support is present.
67358 if test x"$ac_isoC99_wchar_t" = xyes &&
67359 test x"$ac_XPG2_wchar_t" = xyes;
67360 then
67361 cat >>confdefs.h <<\_ACEOF
67362 #define _GLIBCXX_USE_WCHAR_T 1
67363 _ACEOF
67365 enable_wchar_t=yes
67368 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67369 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67370 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67371 echo "${ECHO_T}$enable_wchar_t" >&6
67373 cat >>confdefs.h <<\_ACEOF
67374 #define HAVE_COSF 1
67375 _ACEOF
67377 cat >>confdefs.h <<\_ACEOF
67378 #define HAVE_COSL 1
67379 _ACEOF
67381 cat >>confdefs.h <<\_ACEOF
67382 #define HAVE_COSHF 1
67383 _ACEOF
67385 cat >>confdefs.h <<\_ACEOF
67386 #define HAVE_COSHL 1
67387 _ACEOF
67389 cat >>confdefs.h <<\_ACEOF
67390 #define HAVE_LOGF 1
67391 _ACEOF
67393 cat >>confdefs.h <<\_ACEOF
67394 #define HAVE_LOGL 1
67395 _ACEOF
67397 cat >>confdefs.h <<\_ACEOF
67398 #define HAVE_LOG10F 1
67399 _ACEOF
67401 cat >>confdefs.h <<\_ACEOF
67402 #define HAVE_LOG10L 1
67403 _ACEOF
67405 cat >>confdefs.h <<\_ACEOF
67406 #define HAVE_SINF 1
67407 _ACEOF
67409 cat >>confdefs.h <<\_ACEOF
67410 #define HAVE_SINL 1
67411 _ACEOF
67413 cat >>confdefs.h <<\_ACEOF
67414 #define HAVE_SINHF 1
67415 _ACEOF
67417 cat >>confdefs.h <<\_ACEOF
67418 #define HAVE_SINHL 1
67419 _ACEOF
67422 *-solaris*)
67423 case "$target" in
67424 # *-solaris2.5)
67425 # os_include_dir="os/solaris/solaris2.5"
67426 # ;;
67427 # *-solaris2.6)
67428 # os_include_dir="os/solaris/solaris2.6"
67429 # ;;
67430 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
67431 cat >>confdefs.h <<\_ACEOF
67432 #define HAVE_GETPAGESIZE 1
67433 _ACEOF
67435 cat >>confdefs.h <<\_ACEOF
67436 #define HAVE_SIGSETJMP 1
67437 _ACEOF
67439 cat >>confdefs.h <<\_ACEOF
67440 #define HAVE_MBSTATE_T 1
67441 _ACEOF
67443 cat >>confdefs.h <<\_ACEOF
67444 #define HAVE_POLL 1
67445 _ACEOF
67447 cat >>confdefs.h <<\_ACEOF
67448 #define HAVE_S_ISREG 1
67449 _ACEOF
67451 cat >>confdefs.h <<\_ACEOF
67452 #define HAVE_LC_MESSAGES 1
67453 _ACEOF
67455 cat >>confdefs.h <<\_ACEOF
67456 #define HAVE_BTOWC 1
67457 _ACEOF
67459 cat >>confdefs.h <<\_ACEOF
67460 #define HAVE_FGETWC 1
67461 _ACEOF
67463 cat >>confdefs.h <<\_ACEOF
67464 #define HAVE_FGETWS 1
67465 _ACEOF
67467 cat >>confdefs.h <<\_ACEOF
67468 #define HAVE_FINITE 1
67469 _ACEOF
67471 cat >>confdefs.h <<\_ACEOF
67472 #define HAVE_FPCLASS 1
67473 _ACEOF
67475 cat >>confdefs.h <<\_ACEOF
67476 #define HAVE_FPUTWC 1
67477 _ACEOF
67479 cat >>confdefs.h <<\_ACEOF
67480 #define HAVE_FPUTWS 1
67481 _ACEOF
67483 cat >>confdefs.h <<\_ACEOF
67484 #define HAVE_FWIDE 1
67485 _ACEOF
67487 cat >>confdefs.h <<\_ACEOF
67488 #define HAVE_FWPRINTF 1
67489 _ACEOF
67491 cat >>confdefs.h <<\_ACEOF
67492 #define HAVE_FWSCANF 1
67493 _ACEOF
67495 cat >>confdefs.h <<\_ACEOF
67496 #define HAVE_GETPAGESIZE 1
67497 _ACEOF
67499 cat >>confdefs.h <<\_ACEOF
67500 #define HAVE_GETWC 1
67501 _ACEOF
67503 cat >>confdefs.h <<\_ACEOF
67504 #define HAVE_GETWCHAR 1
67505 _ACEOF
67507 cat >>confdefs.h <<\_ACEOF
67508 #define HAVE_MBRLEN 1
67509 _ACEOF
67511 cat >>confdefs.h <<\_ACEOF
67512 #define HAVE_MBRTOWC 1
67513 _ACEOF
67515 cat >>confdefs.h <<\_ACEOF
67516 #define HAVE_MBSINIT 1
67517 _ACEOF
67519 cat >>confdefs.h <<\_ACEOF
67520 #define HAVE_MBSRTOWCS 1
67521 _ACEOF
67523 cat >>confdefs.h <<\_ACEOF
67524 #define HAVE_NL_LANGINFO 1
67525 _ACEOF
67527 cat >>confdefs.h <<\_ACEOF
67528 #define HAVE_PUTWC 1
67529 _ACEOF
67531 cat >>confdefs.h <<\_ACEOF
67532 #define HAVE_PUTWCHAR 1
67533 _ACEOF
67535 cat >>confdefs.h <<\_ACEOF
67536 #define HAVE_SWPRINTF 1
67537 _ACEOF
67539 cat >>confdefs.h <<\_ACEOF
67540 #define HAVE_SWSCANF 1
67541 _ACEOF
67543 cat >>confdefs.h <<\_ACEOF
67544 #define HAVE_UNGETWC 1
67545 _ACEOF
67547 cat >>confdefs.h <<\_ACEOF
67548 #define HAVE_VFWPRINTF 1
67549 _ACEOF
67551 cat >>confdefs.h <<\_ACEOF
67552 #define HAVE_VSWPRINTF 1
67553 _ACEOF
67555 cat >>confdefs.h <<\_ACEOF
67556 #define HAVE_VWPRINTF 1
67557 _ACEOF
67559 cat >>confdefs.h <<\_ACEOF
67560 #define HAVE_WCRTOMB 1
67561 _ACEOF
67563 cat >>confdefs.h <<\_ACEOF
67564 #define HAVE_WCSCAT 1
67565 _ACEOF
67567 cat >>confdefs.h <<\_ACEOF
67568 #define HAVE_WCSCHR 1
67569 _ACEOF
67571 cat >>confdefs.h <<\_ACEOF
67572 #define HAVE_WCSCMP 1
67573 _ACEOF
67575 cat >>confdefs.h <<\_ACEOF
67576 #define HAVE_WCSCOLL 1
67577 _ACEOF
67579 cat >>confdefs.h <<\_ACEOF
67580 #define HAVE_WCSCPY 1
67581 _ACEOF
67583 cat >>confdefs.h <<\_ACEOF
67584 #define HAVE_WCSCSPN 1
67585 _ACEOF
67587 cat >>confdefs.h <<\_ACEOF
67588 #define HAVE_WCSFTIME 1
67589 _ACEOF
67591 cat >>confdefs.h <<\_ACEOF
67592 #define HAVE_WCSLEN 1
67593 _ACEOF
67595 cat >>confdefs.h <<\_ACEOF
67596 #define HAVE_WCSNCAT 1
67597 _ACEOF
67599 cat >>confdefs.h <<\_ACEOF
67600 #define HAVE_WCSNCMP 1
67601 _ACEOF
67603 cat >>confdefs.h <<\_ACEOF
67604 #define HAVE_WCSNCPY 1
67605 _ACEOF
67607 cat >>confdefs.h <<\_ACEOF
67608 #define HAVE_WCSPBRK 1
67609 _ACEOF
67611 cat >>confdefs.h <<\_ACEOF
67612 #define HAVE_WCSRCHR 1
67613 _ACEOF
67615 cat >>confdefs.h <<\_ACEOF
67616 #define HAVE_WCSRTOMBS 1
67617 _ACEOF
67619 cat >>confdefs.h <<\_ACEOF
67620 #define HAVE_WCSSPN 1
67621 _ACEOF
67623 cat >>confdefs.h <<\_ACEOF
67624 #define HAVE_WCSSTR 1
67625 _ACEOF
67627 cat >>confdefs.h <<\_ACEOF
67628 #define HAVE_WCSTOD 1
67629 _ACEOF
67631 cat >>confdefs.h <<\_ACEOF
67632 #define HAVE_WCSTOK 1
67633 _ACEOF
67635 cat >>confdefs.h <<\_ACEOF
67636 #define HAVE_WCSTOL 1
67637 _ACEOF
67639 cat >>confdefs.h <<\_ACEOF
67640 #define HAVE_WCSTOUL 1
67641 _ACEOF
67643 cat >>confdefs.h <<\_ACEOF
67644 #define HAVE_WCSXFRM 1
67645 _ACEOF
67647 cat >>confdefs.h <<\_ACEOF
67648 #define HAVE_WCTOB 1
67649 _ACEOF
67651 cat >>confdefs.h <<\_ACEOF
67652 #define HAVE_WMEMCHR 1
67653 _ACEOF
67655 cat >>confdefs.h <<\_ACEOF
67656 #define HAVE_WMEMCMP 1
67657 _ACEOF
67659 cat >>confdefs.h <<\_ACEOF
67660 #define HAVE_WMEMCPY 1
67661 _ACEOF
67663 cat >>confdefs.h <<\_ACEOF
67664 #define HAVE_WMEMMOVE 1
67665 _ACEOF
67667 cat >>confdefs.h <<\_ACEOF
67668 #define HAVE_WMEMSET 1
67669 _ACEOF
67671 cat >>confdefs.h <<\_ACEOF
67672 #define HAVE_WPRINTF 1
67673 _ACEOF
67675 cat >>confdefs.h <<\_ACEOF
67676 #define HAVE_WSCANF 1
67677 _ACEOF
67679 cat >>confdefs.h <<\_ACEOF
67680 #define HAVE_ICONV 1
67681 _ACEOF
67683 cat >>confdefs.h <<\_ACEOF
67684 #define HAVE_ICONV_CLOSE 1
67685 _ACEOF
67687 cat >>confdefs.h <<\_ACEOF
67688 #define HAVE_ICONV_OPEN 1
67689 _ACEOF
67691 # Look for the pieces required for wchar_t support in order to
67692 # get all the right HAVE_* macros defined.
67694 # Test wchar.h for mbstate_t, which is needed for char_traits and
67695 # others even if wchar_t support is not on.
67696 echo "$as_me:$LINENO: checking for mbstate_t" >&5
67697 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
67698 cat >conftest.$ac_ext <<_ACEOF
67699 /* confdefs.h. */
67700 _ACEOF
67701 cat confdefs.h >>conftest.$ac_ext
67702 cat >>conftest.$ac_ext <<_ACEOF
67703 /* end confdefs.h. */
67704 #include <wchar.h>
67706 main ()
67708 mbstate_t teststate;
67710 return 0;
67712 _ACEOF
67713 rm -f conftest.$ac_objext
67714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67715 (eval $ac_compile) 2>conftest.er1
67716 ac_status=$?
67717 grep -v '^ *+' conftest.er1 >conftest.err
67718 rm -f conftest.er1
67719 cat conftest.err >&5
67720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67721 (exit $ac_status); } &&
67722 { ac_try='test -z "$ac_c_werror_flag"
67723 || test ! -s conftest.err'
67724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67725 (eval $ac_try) 2>&5
67726 ac_status=$?
67727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67728 (exit $ac_status); }; } &&
67729 { ac_try='test -s conftest.$ac_objext'
67730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67731 (eval $ac_try) 2>&5
67732 ac_status=$?
67733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67734 (exit $ac_status); }; }; then
67735 have_mbstate_t=yes
67736 else
67737 echo "$as_me: failed program was:" >&5
67738 sed 's/^/| /' conftest.$ac_ext >&5
67740 have_mbstate_t=no
67742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67743 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
67744 echo "${ECHO_T}$have_mbstate_t" >&6
67745 if test x"$have_mbstate_t" = xyes; then
67746 cat >>confdefs.h <<\_ACEOF
67747 #define HAVE_MBSTATE_T 1
67748 _ACEOF
67752 # Sanity check for existence of ISO C99 headers for extended encoding.
67754 for ac_header in wchar.h
67756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67758 echo "$as_me:$LINENO: checking for $ac_header" >&5
67759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67761 echo $ECHO_N "(cached) $ECHO_C" >&6
67763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67765 else
67766 # Is the header compilable?
67767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67769 cat >conftest.$ac_ext <<_ACEOF
67770 /* confdefs.h. */
67771 _ACEOF
67772 cat confdefs.h >>conftest.$ac_ext
67773 cat >>conftest.$ac_ext <<_ACEOF
67774 /* end confdefs.h. */
67775 $ac_includes_default
67776 #include <$ac_header>
67777 _ACEOF
67778 rm -f conftest.$ac_objext
67779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67780 (eval $ac_compile) 2>conftest.er1
67781 ac_status=$?
67782 grep -v '^ *+' conftest.er1 >conftest.err
67783 rm -f conftest.er1
67784 cat conftest.err >&5
67785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67786 (exit $ac_status); } &&
67787 { ac_try='test -z "$ac_c_werror_flag"
67788 || test ! -s conftest.err'
67789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67790 (eval $ac_try) 2>&5
67791 ac_status=$?
67792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67793 (exit $ac_status); }; } &&
67794 { ac_try='test -s conftest.$ac_objext'
67795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67796 (eval $ac_try) 2>&5
67797 ac_status=$?
67798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67799 (exit $ac_status); }; }; then
67800 ac_header_compiler=yes
67801 else
67802 echo "$as_me: failed program was:" >&5
67803 sed 's/^/| /' conftest.$ac_ext >&5
67805 ac_header_compiler=no
67807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67809 echo "${ECHO_T}$ac_header_compiler" >&6
67811 # Is the header present?
67812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67814 cat >conftest.$ac_ext <<_ACEOF
67815 /* confdefs.h. */
67816 _ACEOF
67817 cat confdefs.h >>conftest.$ac_ext
67818 cat >>conftest.$ac_ext <<_ACEOF
67819 /* end confdefs.h. */
67820 #include <$ac_header>
67821 _ACEOF
67822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67824 ac_status=$?
67825 grep -v '^ *+' conftest.er1 >conftest.err
67826 rm -f conftest.er1
67827 cat conftest.err >&5
67828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67829 (exit $ac_status); } >/dev/null; then
67830 if test -s conftest.err; then
67831 ac_cpp_err=$ac_c_preproc_warn_flag
67832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67833 else
67834 ac_cpp_err=
67836 else
67837 ac_cpp_err=yes
67839 if test -z "$ac_cpp_err"; then
67840 ac_header_preproc=yes
67841 else
67842 echo "$as_me: failed program was:" >&5
67843 sed 's/^/| /' conftest.$ac_ext >&5
67845 ac_header_preproc=no
67847 rm -f conftest.err conftest.$ac_ext
67848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67849 echo "${ECHO_T}$ac_header_preproc" >&6
67851 # So? What about this header?
67852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67853 yes:no: )
67854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67858 ac_header_preproc=yes
67860 no:yes:* )
67861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
67864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
67865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
67868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
67869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67874 cat <<\_ASBOX
67875 ## ----------------------------------------- ##
67876 ## Report this to the package-unused lists. ##
67877 ## ----------------------------------------- ##
67878 _ASBOX
67880 sed "s/^/$as_me: WARNING: /" >&2
67882 esac
67883 echo "$as_me:$LINENO: checking for $ac_header" >&5
67884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67886 echo $ECHO_N "(cached) $ECHO_C" >&6
67887 else
67888 eval "$as_ac_Header=\$ac_header_preproc"
67890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
67895 cat >>confdefs.h <<_ACEOF
67896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
67897 _ACEOF
67898 ac_has_wchar_h=yes
67899 else
67900 ac_has_wchar_h=no
67903 done
67906 for ac_header in wctype.h
67908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67910 echo "$as_me:$LINENO: checking for $ac_header" >&5
67911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67913 echo $ECHO_N "(cached) $ECHO_C" >&6
67915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67917 else
67918 # Is the header compilable?
67919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67921 cat >conftest.$ac_ext <<_ACEOF
67922 /* confdefs.h. */
67923 _ACEOF
67924 cat confdefs.h >>conftest.$ac_ext
67925 cat >>conftest.$ac_ext <<_ACEOF
67926 /* end confdefs.h. */
67927 $ac_includes_default
67928 #include <$ac_header>
67929 _ACEOF
67930 rm -f conftest.$ac_objext
67931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67932 (eval $ac_compile) 2>conftest.er1
67933 ac_status=$?
67934 grep -v '^ *+' conftest.er1 >conftest.err
67935 rm -f conftest.er1
67936 cat conftest.err >&5
67937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67938 (exit $ac_status); } &&
67939 { ac_try='test -z "$ac_c_werror_flag"
67940 || test ! -s conftest.err'
67941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67942 (eval $ac_try) 2>&5
67943 ac_status=$?
67944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67945 (exit $ac_status); }; } &&
67946 { ac_try='test -s conftest.$ac_objext'
67947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67948 (eval $ac_try) 2>&5
67949 ac_status=$?
67950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67951 (exit $ac_status); }; }; then
67952 ac_header_compiler=yes
67953 else
67954 echo "$as_me: failed program was:" >&5
67955 sed 's/^/| /' conftest.$ac_ext >&5
67957 ac_header_compiler=no
67959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67961 echo "${ECHO_T}$ac_header_compiler" >&6
67963 # Is the header present?
67964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67966 cat >conftest.$ac_ext <<_ACEOF
67967 /* confdefs.h. */
67968 _ACEOF
67969 cat confdefs.h >>conftest.$ac_ext
67970 cat >>conftest.$ac_ext <<_ACEOF
67971 /* end confdefs.h. */
67972 #include <$ac_header>
67973 _ACEOF
67974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67976 ac_status=$?
67977 grep -v '^ *+' conftest.er1 >conftest.err
67978 rm -f conftest.er1
67979 cat conftest.err >&5
67980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67981 (exit $ac_status); } >/dev/null; then
67982 if test -s conftest.err; then
67983 ac_cpp_err=$ac_c_preproc_warn_flag
67984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67985 else
67986 ac_cpp_err=
67988 else
67989 ac_cpp_err=yes
67991 if test -z "$ac_cpp_err"; then
67992 ac_header_preproc=yes
67993 else
67994 echo "$as_me: failed program was:" >&5
67995 sed 's/^/| /' conftest.$ac_ext >&5
67997 ac_header_preproc=no
67999 rm -f conftest.err conftest.$ac_ext
68000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68001 echo "${ECHO_T}$ac_header_preproc" >&6
68003 # So? What about this header?
68004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68005 yes:no: )
68006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68010 ac_header_preproc=yes
68012 no:yes:* )
68013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
68016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
68017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
68020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
68021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68026 cat <<\_ASBOX
68027 ## ----------------------------------------- ##
68028 ## Report this to the package-unused lists. ##
68029 ## ----------------------------------------- ##
68030 _ASBOX
68032 sed "s/^/$as_me: WARNING: /" >&2
68034 esac
68035 echo "$as_me:$LINENO: checking for $ac_header" >&5
68036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68038 echo $ECHO_N "(cached) $ECHO_C" >&6
68039 else
68040 eval "$as_ac_Header=\$ac_header_preproc"
68042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68047 cat >>confdefs.h <<_ACEOF
68048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68049 _ACEOF
68050 ac_has_wctype_h=yes
68051 else
68052 ac_has_wctype_h=no
68055 done
68058 # Only continue checking if the ISO C99 headers exist and support is on.
68059 if test x"$ac_has_wchar_h" = xyes &&
68060 test x"$ac_has_wctype_h" = xyes &&
68061 test x"$enable_c_mbchar" != xno; then
68063 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
68064 # numeric_limits can instantiate type_traits<wchar_t>
68065 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
68066 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
68067 cat >conftest.$ac_ext <<_ACEOF
68068 /* confdefs.h. */
68069 _ACEOF
68070 cat confdefs.h >>conftest.$ac_ext
68071 cat >>conftest.$ac_ext <<_ACEOF
68072 /* end confdefs.h. */
68073 #include <wchar.h>
68075 main ()
68077 int i = WCHAR_MIN; int j = WCHAR_MAX;
68079 return 0;
68081 _ACEOF
68082 rm -f conftest.$ac_objext
68083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68084 (eval $ac_compile) 2>conftest.er1
68085 ac_status=$?
68086 grep -v '^ *+' conftest.er1 >conftest.err
68087 rm -f conftest.er1
68088 cat conftest.err >&5
68089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68090 (exit $ac_status); } &&
68091 { ac_try='test -z "$ac_c_werror_flag"
68092 || test ! -s conftest.err'
68093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68094 (eval $ac_try) 2>&5
68095 ac_status=$?
68096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68097 (exit $ac_status); }; } &&
68098 { ac_try='test -s conftest.$ac_objext'
68099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68100 (eval $ac_try) 2>&5
68101 ac_status=$?
68102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68103 (exit $ac_status); }; }; then
68104 has_wchar_minmax=yes
68105 else
68106 echo "$as_me: failed program was:" >&5
68107 sed 's/^/| /' conftest.$ac_ext >&5
68109 has_wchar_minmax=no
68111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68112 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
68113 echo "${ECHO_T}$has_wchar_minmax" >&6
68115 # Test wchar.h for WEOF, which is what we use to determine whether
68116 # to specialize for char_traits<wchar_t> or not.
68117 echo "$as_me:$LINENO: checking for WEOF" >&5
68118 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
68119 cat >conftest.$ac_ext <<_ACEOF
68120 /* confdefs.h. */
68121 _ACEOF
68122 cat confdefs.h >>conftest.$ac_ext
68123 cat >>conftest.$ac_ext <<_ACEOF
68124 /* end confdefs.h. */
68126 #include <wchar.h>
68127 #include <stddef.h>
68129 main ()
68131 wint_t i = WEOF;
68133 return 0;
68135 _ACEOF
68136 rm -f conftest.$ac_objext
68137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68138 (eval $ac_compile) 2>conftest.er1
68139 ac_status=$?
68140 grep -v '^ *+' conftest.er1 >conftest.err
68141 rm -f conftest.er1
68142 cat conftest.err >&5
68143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68144 (exit $ac_status); } &&
68145 { ac_try='test -z "$ac_c_werror_flag"
68146 || test ! -s conftest.err'
68147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68148 (eval $ac_try) 2>&5
68149 ac_status=$?
68150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68151 (exit $ac_status); }; } &&
68152 { ac_try='test -s conftest.$ac_objext'
68153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68154 (eval $ac_try) 2>&5
68155 ac_status=$?
68156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68157 (exit $ac_status); }; }; then
68158 has_weof=yes
68159 else
68160 echo "$as_me: failed program was:" >&5
68161 sed 's/^/| /' conftest.$ac_ext >&5
68163 has_weof=no
68165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68166 echo "$as_me:$LINENO: result: $has_weof" >&5
68167 echo "${ECHO_T}$has_weof" >&6
68169 # Tests for wide character functions used in char_traits<wchar_t>.
68170 ac_wfuncs=yes
68177 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
68179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68180 echo "$as_me:$LINENO: checking for $ac_func" >&5
68181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68182 if eval "test \"\${$as_ac_var+set}\" = set"; then
68183 echo $ECHO_N "(cached) $ECHO_C" >&6
68184 else
68185 if test x$gcc_no_link = xyes; then
68186 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68188 { (exit 1); exit 1; }; }
68190 cat >conftest.$ac_ext <<_ACEOF
68191 /* confdefs.h. */
68192 _ACEOF
68193 cat confdefs.h >>conftest.$ac_ext
68194 cat >>conftest.$ac_ext <<_ACEOF
68195 /* end confdefs.h. */
68196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68198 #define $ac_func innocuous_$ac_func
68200 /* System header to define __stub macros and hopefully few prototypes,
68201 which can conflict with char $ac_func (); below.
68202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68203 <limits.h> exists even on freestanding compilers. */
68205 #ifdef __STDC__
68206 # include <limits.h>
68207 #else
68208 # include <assert.h>
68209 #endif
68211 #undef $ac_func
68213 /* Override any gcc2 internal prototype to avoid an error. */
68214 #ifdef __cplusplus
68215 extern "C"
68217 #endif
68218 /* We use char because int might match the return type of a gcc2
68219 builtin and then its argument prototype would still apply. */
68220 char $ac_func ();
68221 /* The GNU C library defines this for functions which it implements
68222 to always fail with ENOSYS. Some functions are actually named
68223 something starting with __ and the normal name is an alias. */
68224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68225 choke me
68226 #else
68227 char (*f) () = $ac_func;
68228 #endif
68229 #ifdef __cplusplus
68231 #endif
68234 main ()
68236 return f != $ac_func;
68238 return 0;
68240 _ACEOF
68241 rm -f conftest.$ac_objext conftest$ac_exeext
68242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68243 (eval $ac_link) 2>conftest.er1
68244 ac_status=$?
68245 grep -v '^ *+' conftest.er1 >conftest.err
68246 rm -f conftest.er1
68247 cat conftest.err >&5
68248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68249 (exit $ac_status); } &&
68250 { ac_try='test -z "$ac_c_werror_flag"
68251 || test ! -s conftest.err'
68252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68253 (eval $ac_try) 2>&5
68254 ac_status=$?
68255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68256 (exit $ac_status); }; } &&
68257 { ac_try='test -s conftest$ac_exeext'
68258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68259 (eval $ac_try) 2>&5
68260 ac_status=$?
68261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68262 (exit $ac_status); }; }; then
68263 eval "$as_ac_var=yes"
68264 else
68265 echo "$as_me: failed program was:" >&5
68266 sed 's/^/| /' conftest.$ac_ext >&5
68268 eval "$as_ac_var=no"
68270 rm -f conftest.err conftest.$ac_objext \
68271 conftest$ac_exeext conftest.$ac_ext
68273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68275 if test `eval echo '${'$as_ac_var'}'` = yes; then
68276 cat >>confdefs.h <<_ACEOF
68277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68278 _ACEOF
68280 else
68281 ac_wfuncs=no
68283 done
68286 # Checks for names injected into std:: by the c_std headers.
68333 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
68334 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
68335 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
68336 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
68337 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
68338 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
68340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68341 echo "$as_me:$LINENO: checking for $ac_func" >&5
68342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68343 if eval "test \"\${$as_ac_var+set}\" = set"; then
68344 echo $ECHO_N "(cached) $ECHO_C" >&6
68345 else
68346 if test x$gcc_no_link = xyes; then
68347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68349 { (exit 1); exit 1; }; }
68351 cat >conftest.$ac_ext <<_ACEOF
68352 /* confdefs.h. */
68353 _ACEOF
68354 cat confdefs.h >>conftest.$ac_ext
68355 cat >>conftest.$ac_ext <<_ACEOF
68356 /* end confdefs.h. */
68357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68359 #define $ac_func innocuous_$ac_func
68361 /* System header to define __stub macros and hopefully few prototypes,
68362 which can conflict with char $ac_func (); below.
68363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68364 <limits.h> exists even on freestanding compilers. */
68366 #ifdef __STDC__
68367 # include <limits.h>
68368 #else
68369 # include <assert.h>
68370 #endif
68372 #undef $ac_func
68374 /* Override any gcc2 internal prototype to avoid an error. */
68375 #ifdef __cplusplus
68376 extern "C"
68378 #endif
68379 /* We use char because int might match the return type of a gcc2
68380 builtin and then its argument prototype would still apply. */
68381 char $ac_func ();
68382 /* The GNU C library defines this for functions which it implements
68383 to always fail with ENOSYS. Some functions are actually named
68384 something starting with __ and the normal name is an alias. */
68385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68386 choke me
68387 #else
68388 char (*f) () = $ac_func;
68389 #endif
68390 #ifdef __cplusplus
68392 #endif
68395 main ()
68397 return f != $ac_func;
68399 return 0;
68401 _ACEOF
68402 rm -f conftest.$ac_objext conftest$ac_exeext
68403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68404 (eval $ac_link) 2>conftest.er1
68405 ac_status=$?
68406 grep -v '^ *+' conftest.er1 >conftest.err
68407 rm -f conftest.er1
68408 cat conftest.err >&5
68409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68410 (exit $ac_status); } &&
68411 { ac_try='test -z "$ac_c_werror_flag"
68412 || test ! -s conftest.err'
68413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68414 (eval $ac_try) 2>&5
68415 ac_status=$?
68416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68417 (exit $ac_status); }; } &&
68418 { ac_try='test -s conftest$ac_exeext'
68419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68420 (eval $ac_try) 2>&5
68421 ac_status=$?
68422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68423 (exit $ac_status); }; }; then
68424 eval "$as_ac_var=yes"
68425 else
68426 echo "$as_me: failed program was:" >&5
68427 sed 's/^/| /' conftest.$ac_ext >&5
68429 eval "$as_ac_var=no"
68431 rm -f conftest.err conftest.$ac_objext \
68432 conftest$ac_exeext conftest.$ac_ext
68434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68436 if test `eval echo '${'$as_ac_var'}'` = yes; then
68437 cat >>confdefs.h <<_ACEOF
68438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68439 _ACEOF
68441 else
68442 ac_wfuncs=no
68444 done
68447 # Checks for wide character functions that are not required
68448 # for basic wchar_t support. Don't disable support if they are missing.
68449 # Injection of these is wrapped with guard macros.
68455 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
68457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68458 echo "$as_me:$LINENO: checking for $ac_func" >&5
68459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68460 if eval "test \"\${$as_ac_var+set}\" = set"; then
68461 echo $ECHO_N "(cached) $ECHO_C" >&6
68462 else
68463 if test x$gcc_no_link = xyes; then
68464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68466 { (exit 1); exit 1; }; }
68468 cat >conftest.$ac_ext <<_ACEOF
68469 /* confdefs.h. */
68470 _ACEOF
68471 cat confdefs.h >>conftest.$ac_ext
68472 cat >>conftest.$ac_ext <<_ACEOF
68473 /* end confdefs.h. */
68474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68476 #define $ac_func innocuous_$ac_func
68478 /* System header to define __stub macros and hopefully few prototypes,
68479 which can conflict with char $ac_func (); below.
68480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68481 <limits.h> exists even on freestanding compilers. */
68483 #ifdef __STDC__
68484 # include <limits.h>
68485 #else
68486 # include <assert.h>
68487 #endif
68489 #undef $ac_func
68491 /* Override any gcc2 internal prototype to avoid an error. */
68492 #ifdef __cplusplus
68493 extern "C"
68495 #endif
68496 /* We use char because int might match the return type of a gcc2
68497 builtin and then its argument prototype would still apply. */
68498 char $ac_func ();
68499 /* The GNU C library defines this for functions which it implements
68500 to always fail with ENOSYS. Some functions are actually named
68501 something starting with __ and the normal name is an alias. */
68502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68503 choke me
68504 #else
68505 char (*f) () = $ac_func;
68506 #endif
68507 #ifdef __cplusplus
68509 #endif
68512 main ()
68514 return f != $ac_func;
68516 return 0;
68518 _ACEOF
68519 rm -f conftest.$ac_objext conftest$ac_exeext
68520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68521 (eval $ac_link) 2>conftest.er1
68522 ac_status=$?
68523 grep -v '^ *+' conftest.er1 >conftest.err
68524 rm -f conftest.er1
68525 cat conftest.err >&5
68526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68527 (exit $ac_status); } &&
68528 { ac_try='test -z "$ac_c_werror_flag"
68529 || test ! -s conftest.err'
68530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68531 (eval $ac_try) 2>&5
68532 ac_status=$?
68533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68534 (exit $ac_status); }; } &&
68535 { ac_try='test -s conftest$ac_exeext'
68536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68537 (eval $ac_try) 2>&5
68538 ac_status=$?
68539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68540 (exit $ac_status); }; }; then
68541 eval "$as_ac_var=yes"
68542 else
68543 echo "$as_me: failed program was:" >&5
68544 sed 's/^/| /' conftest.$ac_ext >&5
68546 eval "$as_ac_var=no"
68548 rm -f conftest.err conftest.$ac_objext \
68549 conftest$ac_exeext conftest.$ac_ext
68551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68553 if test `eval echo '${'$as_ac_var'}'` = yes; then
68554 cat >>confdefs.h <<_ACEOF
68555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68556 _ACEOF
68559 done
68562 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
68563 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
68564 if test x"$has_weof" = xyes &&
68565 test x"$has_wchar_minmax" = xyes &&
68566 test x"$ac_wfuncs" = xyes;
68567 then
68568 ac_isoC99_wchar_t=yes
68569 else
68570 ac_isoC99_wchar_t=no
68572 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
68573 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
68575 # Use iconv for wchar_t to char conversions. As such, check for
68576 # X/Open Portability Guide, version 2 features (XPG2).
68577 if test "${ac_cv_header_iconv_h+set}" = set; then
68578 echo "$as_me:$LINENO: checking for iconv.h" >&5
68579 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68580 if test "${ac_cv_header_iconv_h+set}" = set; then
68581 echo $ECHO_N "(cached) $ECHO_C" >&6
68583 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68584 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68585 else
68586 # Is the header compilable?
68587 echo "$as_me:$LINENO: checking iconv.h usability" >&5
68588 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
68589 cat >conftest.$ac_ext <<_ACEOF
68590 /* confdefs.h. */
68591 _ACEOF
68592 cat confdefs.h >>conftest.$ac_ext
68593 cat >>conftest.$ac_ext <<_ACEOF
68594 /* end confdefs.h. */
68595 $ac_includes_default
68596 #include <iconv.h>
68597 _ACEOF
68598 rm -f conftest.$ac_objext
68599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68600 (eval $ac_compile) 2>conftest.er1
68601 ac_status=$?
68602 grep -v '^ *+' conftest.er1 >conftest.err
68603 rm -f conftest.er1
68604 cat conftest.err >&5
68605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68606 (exit $ac_status); } &&
68607 { ac_try='test -z "$ac_c_werror_flag"
68608 || test ! -s conftest.err'
68609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68610 (eval $ac_try) 2>&5
68611 ac_status=$?
68612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68613 (exit $ac_status); }; } &&
68614 { ac_try='test -s conftest.$ac_objext'
68615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68616 (eval $ac_try) 2>&5
68617 ac_status=$?
68618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68619 (exit $ac_status); }; }; then
68620 ac_header_compiler=yes
68621 else
68622 echo "$as_me: failed program was:" >&5
68623 sed 's/^/| /' conftest.$ac_ext >&5
68625 ac_header_compiler=no
68627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68629 echo "${ECHO_T}$ac_header_compiler" >&6
68631 # Is the header present?
68632 echo "$as_me:$LINENO: checking iconv.h presence" >&5
68633 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
68634 cat >conftest.$ac_ext <<_ACEOF
68635 /* confdefs.h. */
68636 _ACEOF
68637 cat confdefs.h >>conftest.$ac_ext
68638 cat >>conftest.$ac_ext <<_ACEOF
68639 /* end confdefs.h. */
68640 #include <iconv.h>
68641 _ACEOF
68642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68644 ac_status=$?
68645 grep -v '^ *+' conftest.er1 >conftest.err
68646 rm -f conftest.er1
68647 cat conftest.err >&5
68648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68649 (exit $ac_status); } >/dev/null; then
68650 if test -s conftest.err; then
68651 ac_cpp_err=$ac_c_preproc_warn_flag
68652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68653 else
68654 ac_cpp_err=
68656 else
68657 ac_cpp_err=yes
68659 if test -z "$ac_cpp_err"; then
68660 ac_header_preproc=yes
68661 else
68662 echo "$as_me: failed program was:" >&5
68663 sed 's/^/| /' conftest.$ac_ext >&5
68665 ac_header_preproc=no
68667 rm -f conftest.err conftest.$ac_ext
68668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68669 echo "${ECHO_T}$ac_header_preproc" >&6
68671 # So? What about this header?
68672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68673 yes:no: )
68674 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
68675 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68676 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
68677 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
68678 ac_header_preproc=yes
68680 no:yes:* )
68681 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
68682 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
68683 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
68684 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
68685 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
68686 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
68687 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
68688 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
68689 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
68690 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
68691 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
68692 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
68694 cat <<\_ASBOX
68695 ## ----------------------------------------- ##
68696 ## Report this to the package-unused lists. ##
68697 ## ----------------------------------------- ##
68698 _ASBOX
68700 sed "s/^/$as_me: WARNING: /" >&2
68702 esac
68703 echo "$as_me:$LINENO: checking for iconv.h" >&5
68704 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68705 if test "${ac_cv_header_iconv_h+set}" = set; then
68706 echo $ECHO_N "(cached) $ECHO_C" >&6
68707 else
68708 ac_cv_header_iconv_h=$ac_header_preproc
68710 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68711 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68714 if test $ac_cv_header_iconv_h = yes; then
68715 ac_has_iconv_h=yes
68716 else
68717 ac_has_iconv_h=no
68721 if test "${ac_cv_header_langinfo_h+set}" = set; then
68722 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68723 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68724 if test "${ac_cv_header_langinfo_h+set}" = set; then
68725 echo $ECHO_N "(cached) $ECHO_C" >&6
68727 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68728 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68729 else
68730 # Is the header compilable?
68731 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
68732 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
68733 cat >conftest.$ac_ext <<_ACEOF
68734 /* confdefs.h. */
68735 _ACEOF
68736 cat confdefs.h >>conftest.$ac_ext
68737 cat >>conftest.$ac_ext <<_ACEOF
68738 /* end confdefs.h. */
68739 $ac_includes_default
68740 #include <langinfo.h>
68741 _ACEOF
68742 rm -f conftest.$ac_objext
68743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68744 (eval $ac_compile) 2>conftest.er1
68745 ac_status=$?
68746 grep -v '^ *+' conftest.er1 >conftest.err
68747 rm -f conftest.er1
68748 cat conftest.err >&5
68749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68750 (exit $ac_status); } &&
68751 { ac_try='test -z "$ac_c_werror_flag"
68752 || test ! -s conftest.err'
68753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68754 (eval $ac_try) 2>&5
68755 ac_status=$?
68756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68757 (exit $ac_status); }; } &&
68758 { ac_try='test -s conftest.$ac_objext'
68759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68760 (eval $ac_try) 2>&5
68761 ac_status=$?
68762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68763 (exit $ac_status); }; }; then
68764 ac_header_compiler=yes
68765 else
68766 echo "$as_me: failed program was:" >&5
68767 sed 's/^/| /' conftest.$ac_ext >&5
68769 ac_header_compiler=no
68771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68773 echo "${ECHO_T}$ac_header_compiler" >&6
68775 # Is the header present?
68776 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
68777 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
68778 cat >conftest.$ac_ext <<_ACEOF
68779 /* confdefs.h. */
68780 _ACEOF
68781 cat confdefs.h >>conftest.$ac_ext
68782 cat >>conftest.$ac_ext <<_ACEOF
68783 /* end confdefs.h. */
68784 #include <langinfo.h>
68785 _ACEOF
68786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68788 ac_status=$?
68789 grep -v '^ *+' conftest.er1 >conftest.err
68790 rm -f conftest.er1
68791 cat conftest.err >&5
68792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68793 (exit $ac_status); } >/dev/null; then
68794 if test -s conftest.err; then
68795 ac_cpp_err=$ac_c_preproc_warn_flag
68796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68797 else
68798 ac_cpp_err=
68800 else
68801 ac_cpp_err=yes
68803 if test -z "$ac_cpp_err"; then
68804 ac_header_preproc=yes
68805 else
68806 echo "$as_me: failed program was:" >&5
68807 sed 's/^/| /' conftest.$ac_ext >&5
68809 ac_header_preproc=no
68811 rm -f conftest.err conftest.$ac_ext
68812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68813 echo "${ECHO_T}$ac_header_preproc" >&6
68815 # So? What about this header?
68816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68817 yes:no: )
68818 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
68819 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68820 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
68821 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
68822 ac_header_preproc=yes
68824 no:yes:* )
68825 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
68826 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
68827 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
68828 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
68829 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
68830 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
68831 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
68832 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
68833 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
68834 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
68835 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
68836 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
68838 cat <<\_ASBOX
68839 ## ----------------------------------------- ##
68840 ## Report this to the package-unused lists. ##
68841 ## ----------------------------------------- ##
68842 _ASBOX
68844 sed "s/^/$as_me: WARNING: /" >&2
68846 esac
68847 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68848 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68849 if test "${ac_cv_header_langinfo_h+set}" = set; then
68850 echo $ECHO_N "(cached) $ECHO_C" >&6
68851 else
68852 ac_cv_header_langinfo_h=$ac_header_preproc
68854 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68855 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68858 if test $ac_cv_header_langinfo_h = yes; then
68859 ac_has_langinfo_h=yes
68860 else
68861 ac_has_langinfo_h=no
68866 # Check for existence of libiconv.a providing XPG2 wchar_t support.
68867 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
68868 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
68869 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
68870 echo $ECHO_N "(cached) $ECHO_C" >&6
68871 else
68872 ac_check_lib_save_LIBS=$LIBS
68873 LIBS="-liconv $LIBS"
68874 if test x$gcc_no_link = xyes; then
68875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68877 { (exit 1); exit 1; }; }
68879 cat >conftest.$ac_ext <<_ACEOF
68880 /* confdefs.h. */
68881 _ACEOF
68882 cat confdefs.h >>conftest.$ac_ext
68883 cat >>conftest.$ac_ext <<_ACEOF
68884 /* end confdefs.h. */
68886 /* Override any gcc2 internal prototype to avoid an error. */
68887 #ifdef __cplusplus
68888 extern "C"
68889 #endif
68890 /* We use char because int might match the return type of a gcc2
68891 builtin and then its argument prototype would still apply. */
68892 char iconv ();
68894 main ()
68896 iconv ();
68898 return 0;
68900 _ACEOF
68901 rm -f conftest.$ac_objext conftest$ac_exeext
68902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68903 (eval $ac_link) 2>conftest.er1
68904 ac_status=$?
68905 grep -v '^ *+' conftest.er1 >conftest.err
68906 rm -f conftest.er1
68907 cat conftest.err >&5
68908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68909 (exit $ac_status); } &&
68910 { ac_try='test -z "$ac_c_werror_flag"
68911 || test ! -s conftest.err'
68912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68913 (eval $ac_try) 2>&5
68914 ac_status=$?
68915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68916 (exit $ac_status); }; } &&
68917 { ac_try='test -s conftest$ac_exeext'
68918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68919 (eval $ac_try) 2>&5
68920 ac_status=$?
68921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68922 (exit $ac_status); }; }; then
68923 ac_cv_lib_iconv_iconv=yes
68924 else
68925 echo "$as_me: failed program was:" >&5
68926 sed 's/^/| /' conftest.$ac_ext >&5
68928 ac_cv_lib_iconv_iconv=no
68930 rm -f conftest.err conftest.$ac_objext \
68931 conftest$ac_exeext conftest.$ac_ext
68932 LIBS=$ac_check_lib_save_LIBS
68934 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
68935 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
68936 if test $ac_cv_lib_iconv_iconv = yes; then
68937 libiconv="-liconv"
68940 ac_save_LIBS="$LIBS"
68941 LIBS="$LIBS $libiconv"
68947 for ac_func in iconv_open iconv_close iconv nl_langinfo
68949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68950 echo "$as_me:$LINENO: checking for $ac_func" >&5
68951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68952 if eval "test \"\${$as_ac_var+set}\" = set"; then
68953 echo $ECHO_N "(cached) $ECHO_C" >&6
68954 else
68955 if test x$gcc_no_link = xyes; then
68956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68958 { (exit 1); exit 1; }; }
68960 cat >conftest.$ac_ext <<_ACEOF
68961 /* confdefs.h. */
68962 _ACEOF
68963 cat confdefs.h >>conftest.$ac_ext
68964 cat >>conftest.$ac_ext <<_ACEOF
68965 /* end confdefs.h. */
68966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68968 #define $ac_func innocuous_$ac_func
68970 /* System header to define __stub macros and hopefully few prototypes,
68971 which can conflict with char $ac_func (); below.
68972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68973 <limits.h> exists even on freestanding compilers. */
68975 #ifdef __STDC__
68976 # include <limits.h>
68977 #else
68978 # include <assert.h>
68979 #endif
68981 #undef $ac_func
68983 /* Override any gcc2 internal prototype to avoid an error. */
68984 #ifdef __cplusplus
68985 extern "C"
68987 #endif
68988 /* We use char because int might match the return type of a gcc2
68989 builtin and then its argument prototype would still apply. */
68990 char $ac_func ();
68991 /* The GNU C library defines this for functions which it implements
68992 to always fail with ENOSYS. Some functions are actually named
68993 something starting with __ and the normal name is an alias. */
68994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68995 choke me
68996 #else
68997 char (*f) () = $ac_func;
68998 #endif
68999 #ifdef __cplusplus
69001 #endif
69004 main ()
69006 return f != $ac_func;
69008 return 0;
69010 _ACEOF
69011 rm -f conftest.$ac_objext conftest$ac_exeext
69012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69013 (eval $ac_link) 2>conftest.er1
69014 ac_status=$?
69015 grep -v '^ *+' conftest.er1 >conftest.err
69016 rm -f conftest.er1
69017 cat conftest.err >&5
69018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69019 (exit $ac_status); } &&
69020 { ac_try='test -z "$ac_c_werror_flag"
69021 || test ! -s conftest.err'
69022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69023 (eval $ac_try) 2>&5
69024 ac_status=$?
69025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69026 (exit $ac_status); }; } &&
69027 { ac_try='test -s conftest$ac_exeext'
69028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69029 (eval $ac_try) 2>&5
69030 ac_status=$?
69031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69032 (exit $ac_status); }; }; then
69033 eval "$as_ac_var=yes"
69034 else
69035 echo "$as_me: failed program was:" >&5
69036 sed 's/^/| /' conftest.$ac_ext >&5
69038 eval "$as_ac_var=no"
69040 rm -f conftest.err conftest.$ac_objext \
69041 conftest$ac_exeext conftest.$ac_ext
69043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69045 if test `eval echo '${'$as_ac_var'}'` = yes; then
69046 cat >>confdefs.h <<_ACEOF
69047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69048 _ACEOF
69049 ac_XPG2funcs=yes
69050 else
69051 ac_XPG2funcs=no
69053 done
69056 LIBS="$ac_save_LIBS"
69058 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
69059 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
69060 if test x"$ac_has_iconv_h" = xyes &&
69061 test x"$ac_has_langinfo_h" = xyes &&
69062 test x"$ac_XPG2funcs" = xyes;
69063 then
69064 ac_XPG2_wchar_t=yes
69065 else
69066 ac_XPG2_wchar_t=no
69068 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
69069 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
69071 # At the moment, only enable wchar_t specializations if all the
69072 # above support is present.
69073 if test x"$ac_isoC99_wchar_t" = xyes &&
69074 test x"$ac_XPG2_wchar_t" = xyes;
69075 then
69076 cat >>confdefs.h <<\_ACEOF
69077 #define _GLIBCXX_USE_WCHAR_T 1
69078 _ACEOF
69080 enable_wchar_t=yes
69083 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
69084 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
69085 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
69086 echo "${ECHO_T}$enable_wchar_t" >&6
69088 # All of the dependencies for wide character support are here, so
69089 # turn it on. This requires some syncronization with the
69090 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
69091 cat >>confdefs.h <<\_ACEOF
69092 #define _GLIBCXX_USE_WCHAR_T 1
69093 _ACEOF
69095 # Are these tested for even when cross?
69096 cat >>confdefs.h <<\_ACEOF
69097 #define HAVE_FLOAT_H 1
69098 _ACEOF
69100 cat >>confdefs.h <<\_ACEOF
69101 #define HAVE_IEEEFP_H 1
69102 _ACEOF
69104 cat >>confdefs.h <<\_ACEOF
69105 #define HAVE_INTTYPES_H 1
69106 _ACEOF
69108 cat >>confdefs.h <<\_ACEOF
69109 #define HAVE_LOCALE_H 1
69110 _ACEOF
69112 cat >>confdefs.h <<\_ACEOF
69113 #define HAVE_NAN_H 1
69114 _ACEOF
69116 cat >>confdefs.h <<\_ACEOF
69117 #define HAVE_SYS_FILIO_H 1
69118 _ACEOF
69120 cat >>confdefs.h <<\_ACEOF
69121 #define HAVE_SYS_IOCTL_H 1
69122 _ACEOF
69124 cat >>confdefs.h <<\_ACEOF
69125 #define HAVE_SYS_ISA_DEFS_H 1
69126 _ACEOF
69128 cat >>confdefs.h <<\_ACEOF
69129 #define HAVE_SYS_RESOURCE_H 1
69130 _ACEOF
69132 cat >>confdefs.h <<\_ACEOF
69133 #define HAVE_SYS_TIME_H 1
69134 _ACEOF
69136 cat >>confdefs.h <<\_ACEOF
69137 #define HAVE_SYS_TYPES_H 1
69138 _ACEOF
69140 cat >>confdefs.h <<\_ACEOF
69141 #define HAVE_UNISTD_H 1
69142 _ACEOF
69144 cat >>confdefs.h <<\_ACEOF
69145 #define HAVE_WCHAR_H 1
69146 _ACEOF
69148 cat >>confdefs.h <<\_ACEOF
69149 #define HAVE_WCTYPE_H 1
69150 _ACEOF
69152 cat >>confdefs.h <<\_ACEOF
69153 #define HAVE_LIBM 1
69154 _ACEOF
69157 esac
69158 case "$target" in
69159 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
69160 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
69161 cat >>confdefs.h <<\_ACEOF
69162 #define HAVE___BUILTIN_ABS 1
69163 _ACEOF
69165 cat >>confdefs.h <<\_ACEOF
69166 #define HAVE___BUILTIN_LABS 1
69167 _ACEOF
69169 cat >>confdefs.h <<\_ACEOF
69170 #define HAVE___BUILTIN_FABS 1
69171 _ACEOF
69173 cat >>confdefs.h <<\_ACEOF
69174 #define HAVE___BUILTIN_FABSF 1
69175 _ACEOF
69177 cat >>confdefs.h <<\_ACEOF
69178 #define HAVE___BUILTIN_FABSL 1
69179 _ACEOF
69181 cat >>confdefs.h <<\_ACEOF
69182 #define HAVE___BUILTIN_COS 1
69183 _ACEOF
69185 cat >>confdefs.h <<\_ACEOF
69186 #define HAVE___BUILTIN_COSF 1
69187 _ACEOF
69189 cat >>confdefs.h <<\_ACEOF
69190 #define HAVE___BUILTIN_SIN 1
69191 _ACEOF
69193 cat >>confdefs.h <<\_ACEOF
69194 #define HAVE___BUILTIN_SINF 1
69195 _ACEOF
69198 esac
69199 cat >>confdefs.h <<\_ACEOF
69200 #define HAVE_STRTOF 1
69201 _ACEOF
69203 cat >>confdefs.h <<\_ACEOF
69204 #define HAVE_STRTOLD 1
69205 _ACEOF
69207 cat >>confdefs.h <<\_ACEOF
69208 #define HAVE_MMAP 1
69209 _ACEOF
69211 cat >>confdefs.h <<\_ACEOF
69212 #define HAVE_COPYSIGN 1
69213 _ACEOF
69215 cat >>confdefs.h <<\_ACEOF
69216 #define HAVE_ISNAN 1
69217 _ACEOF
69219 cat >>confdefs.h <<\_ACEOF
69220 #define HAVE_ISNANF 1
69221 _ACEOF
69223 cat >>confdefs.h <<\_ACEOF
69224 #define HAVE_MODFF 1
69225 _ACEOF
69227 cat >>confdefs.h <<\_ACEOF
69228 #define HAVE_HYPOT 1
69229 _ACEOF
69232 *-tpf)
69241 for ac_header in nan.h endian.h machine/endian.h \
69242 sys/param.h sys/types.h locale.h float.h inttypes.h
69244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69246 echo "$as_me:$LINENO: checking for $ac_header" >&5
69247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69249 echo $ECHO_N "(cached) $ECHO_C" >&6
69251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69253 else
69254 # Is the header compilable?
69255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
69256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
69257 cat >conftest.$ac_ext <<_ACEOF
69258 /* confdefs.h. */
69259 _ACEOF
69260 cat confdefs.h >>conftest.$ac_ext
69261 cat >>conftest.$ac_ext <<_ACEOF
69262 /* end confdefs.h. */
69263 $ac_includes_default
69264 #include <$ac_header>
69265 _ACEOF
69266 rm -f conftest.$ac_objext
69267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69268 (eval $ac_compile) 2>conftest.er1
69269 ac_status=$?
69270 grep -v '^ *+' conftest.er1 >conftest.err
69271 rm -f conftest.er1
69272 cat conftest.err >&5
69273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69274 (exit $ac_status); } &&
69275 { ac_try='test -z "$ac_c_werror_flag"
69276 || test ! -s conftest.err'
69277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69278 (eval $ac_try) 2>&5
69279 ac_status=$?
69280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69281 (exit $ac_status); }; } &&
69282 { ac_try='test -s conftest.$ac_objext'
69283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69284 (eval $ac_try) 2>&5
69285 ac_status=$?
69286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69287 (exit $ac_status); }; }; then
69288 ac_header_compiler=yes
69289 else
69290 echo "$as_me: failed program was:" >&5
69291 sed 's/^/| /' conftest.$ac_ext >&5
69293 ac_header_compiler=no
69295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69297 echo "${ECHO_T}$ac_header_compiler" >&6
69299 # Is the header present?
69300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
69301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
69302 cat >conftest.$ac_ext <<_ACEOF
69303 /* confdefs.h. */
69304 _ACEOF
69305 cat confdefs.h >>conftest.$ac_ext
69306 cat >>conftest.$ac_ext <<_ACEOF
69307 /* end confdefs.h. */
69308 #include <$ac_header>
69309 _ACEOF
69310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69312 ac_status=$?
69313 grep -v '^ *+' conftest.er1 >conftest.err
69314 rm -f conftest.er1
69315 cat conftest.err >&5
69316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69317 (exit $ac_status); } >/dev/null; then
69318 if test -s conftest.err; then
69319 ac_cpp_err=$ac_c_preproc_warn_flag
69320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69321 else
69322 ac_cpp_err=
69324 else
69325 ac_cpp_err=yes
69327 if test -z "$ac_cpp_err"; then
69328 ac_header_preproc=yes
69329 else
69330 echo "$as_me: failed program was:" >&5
69331 sed 's/^/| /' conftest.$ac_ext >&5
69333 ac_header_preproc=no
69335 rm -f conftest.err conftest.$ac_ext
69336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69337 echo "${ECHO_T}$ac_header_preproc" >&6
69339 # So? What about this header?
69340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69341 yes:no: )
69342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
69343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
69344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
69345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
69346 ac_header_preproc=yes
69348 no:yes:* )
69349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
69350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
69351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
69352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
69353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
69354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
69355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
69356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
69357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
69358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
69359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
69360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
69362 cat <<\_ASBOX
69363 ## ----------------------------------------- ##
69364 ## Report this to the package-unused lists. ##
69365 ## ----------------------------------------- ##
69366 _ASBOX
69368 sed "s/^/$as_me: WARNING: /" >&2
69370 esac
69371 echo "$as_me:$LINENO: checking for $ac_header" >&5
69372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69374 echo $ECHO_N "(cached) $ECHO_C" >&6
69375 else
69376 eval "$as_ac_Header=\$ac_header_preproc"
69378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
69383 cat >>confdefs.h <<_ACEOF
69384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
69385 _ACEOF
69389 done
69391 SECTION_FLAGS='-ffunction-sections -fdata-sections'
69394 # If we're not using GNU ld, then there's no point in even trying these
69395 # tests. Check for that first. We should have already tested for gld
69396 # by now (in libtool), but require it now just to be safe...
69397 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
69398 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
69402 # The name set by libtool depends on the version of libtool. Shame on us
69403 # for depending on an impl detail, but c'est la vie. Older versions used
69404 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
69405 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
69406 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
69407 # set (hence we're using an older libtool), then set it.
69408 if test x${with_gnu_ld+set} != xset; then
69409 if test x${ac_cv_prog_gnu_ld+set} != xset; then
69410 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
69411 with_gnu_ld=no
69412 else
69413 with_gnu_ld=$ac_cv_prog_gnu_ld
69417 # Start by getting the version number. I think the libtool test already
69418 # does some of this, but throws away the result.
69420 ldver=`$LD --version 2>/dev/null | head -1 | \
69421 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
69423 glibcxx_gnu_ld_version=`echo $ldver | \
69424 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
69426 # Set --gc-sections.
69427 if test "$with_gnu_ld" = "notbroken"; then
69428 # GNU ld it is! Joy and bunny rabbits!
69430 # All these tests are for C++; save the language and the compiler flags.
69431 # Need to do this so that g++ won't try to link in libstdc++
69432 ac_test_CFLAGS="${CFLAGS+set}"
69433 ac_save_CFLAGS="$CFLAGS"
69434 CFLAGS='-x c++ -Wl,--gc-sections'
69436 # Check for -Wl,--gc-sections
69437 # XXX This test is broken at the moment, as symbols required for linking
69438 # are now in libsupc++ (not built yet). In addition, this test has
69439 # cored on solaris in the past. In addition, --gc-sections doesn't
69440 # really work at the moment (keeps on discarding used sections, first
69441 # .eh_frame and now some of the glibc sections for iconv).
69442 # Bzzzzt. Thanks for playing, maybe next time.
69443 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
69444 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
69445 if test "$cross_compiling" = yes; then
69446 ac_sectionLDflags=yes
69447 else
69448 cat >conftest.$ac_ext <<_ACEOF
69449 /* confdefs.h. */
69450 _ACEOF
69451 cat confdefs.h >>conftest.$ac_ext
69452 cat >>conftest.$ac_ext <<_ACEOF
69453 /* end confdefs.h. */
69455 int main(void)
69457 try { throw 1; }
69458 catch (...) { };
69459 return 0;
69462 _ACEOF
69463 rm -f conftest$ac_exeext
69464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69465 (eval $ac_link) 2>&5
69466 ac_status=$?
69467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
69469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69470 (eval $ac_try) 2>&5
69471 ac_status=$?
69472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69473 (exit $ac_status); }; }; then
69474 ac_sectionLDflags=yes
69475 else
69476 echo "$as_me: program exited with status $ac_status" >&5
69477 echo "$as_me: failed program was:" >&5
69478 sed 's/^/| /' conftest.$ac_ext >&5
69480 ( exit $ac_status )
69481 ac_sectionLDflags=no
69483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
69485 if test "$ac_test_CFLAGS" = set; then
69486 CFLAGS="$ac_save_CFLAGS"
69487 else
69488 # this is the suspicious part
69489 CFLAGS=''
69491 if test "$ac_sectionLDflags" = "yes"; then
69492 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
69494 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
69495 echo "${ECHO_T}$ac_sectionLDflags" >&6
69498 # Set linker optimization flags.
69499 if test x"$with_gnu_ld" = x"yes"; then
69500 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
69508 echo "$as_me:$LINENO: checking for main in -lm" >&5
69509 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
69510 if test "${ac_cv_lib_m_main+set}" = set; then
69511 echo $ECHO_N "(cached) $ECHO_C" >&6
69512 else
69513 ac_check_lib_save_LIBS=$LIBS
69514 LIBS="-lm $LIBS"
69515 if test x$gcc_no_link = xyes; then
69516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69518 { (exit 1); exit 1; }; }
69520 cat >conftest.$ac_ext <<_ACEOF
69521 /* confdefs.h. */
69522 _ACEOF
69523 cat confdefs.h >>conftest.$ac_ext
69524 cat >>conftest.$ac_ext <<_ACEOF
69525 /* end confdefs.h. */
69529 main ()
69531 main ();
69533 return 0;
69535 _ACEOF
69536 rm -f conftest.$ac_objext conftest$ac_exeext
69537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69538 (eval $ac_link) 2>conftest.er1
69539 ac_status=$?
69540 grep -v '^ *+' conftest.er1 >conftest.err
69541 rm -f conftest.er1
69542 cat conftest.err >&5
69543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69544 (exit $ac_status); } &&
69545 { ac_try='test -z "$ac_c_werror_flag"
69546 || test ! -s conftest.err'
69547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69548 (eval $ac_try) 2>&5
69549 ac_status=$?
69550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69551 (exit $ac_status); }; } &&
69552 { ac_try='test -s conftest$ac_exeext'
69553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69554 (eval $ac_try) 2>&5
69555 ac_status=$?
69556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69557 (exit $ac_status); }; }; then
69558 ac_cv_lib_m_main=yes
69559 else
69560 echo "$as_me: failed program was:" >&5
69561 sed 's/^/| /' conftest.$ac_ext >&5
69563 ac_cv_lib_m_main=no
69565 rm -f conftest.err conftest.$ac_objext \
69566 conftest$ac_exeext conftest.$ac_ext
69567 LIBS=$ac_check_lib_save_LIBS
69569 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
69570 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
69571 if test $ac_cv_lib_m_main = yes; then
69572 cat >>confdefs.h <<_ACEOF
69573 #define HAVE_LIBM 1
69574 _ACEOF
69576 LIBS="-lm $LIBS"
69581 for ac_func in copysignf
69583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69584 echo "$as_me:$LINENO: checking for $ac_func" >&5
69585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69586 if eval "test \"\${$as_ac_var+set}\" = set"; then
69587 echo $ECHO_N "(cached) $ECHO_C" >&6
69588 else
69589 if test x$gcc_no_link = xyes; then
69590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69592 { (exit 1); exit 1; }; }
69594 cat >conftest.$ac_ext <<_ACEOF
69595 /* confdefs.h. */
69596 _ACEOF
69597 cat confdefs.h >>conftest.$ac_ext
69598 cat >>conftest.$ac_ext <<_ACEOF
69599 /* end confdefs.h. */
69600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69602 #define $ac_func innocuous_$ac_func
69604 /* System header to define __stub macros and hopefully few prototypes,
69605 which can conflict with char $ac_func (); below.
69606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69607 <limits.h> exists even on freestanding compilers. */
69609 #ifdef __STDC__
69610 # include <limits.h>
69611 #else
69612 # include <assert.h>
69613 #endif
69615 #undef $ac_func
69617 /* Override any gcc2 internal prototype to avoid an error. */
69618 #ifdef __cplusplus
69619 extern "C"
69621 #endif
69622 /* We use char because int might match the return type of a gcc2
69623 builtin and then its argument prototype would still apply. */
69624 char $ac_func ();
69625 /* The GNU C library defines this for functions which it implements
69626 to always fail with ENOSYS. Some functions are actually named
69627 something starting with __ and the normal name is an alias. */
69628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69629 choke me
69630 #else
69631 char (*f) () = $ac_func;
69632 #endif
69633 #ifdef __cplusplus
69635 #endif
69638 main ()
69640 return f != $ac_func;
69642 return 0;
69644 _ACEOF
69645 rm -f conftest.$ac_objext conftest$ac_exeext
69646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69647 (eval $ac_link) 2>conftest.er1
69648 ac_status=$?
69649 grep -v '^ *+' conftest.er1 >conftest.err
69650 rm -f conftest.er1
69651 cat conftest.err >&5
69652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69653 (exit $ac_status); } &&
69654 { ac_try='test -z "$ac_c_werror_flag"
69655 || test ! -s conftest.err'
69656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69657 (eval $ac_try) 2>&5
69658 ac_status=$?
69659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69660 (exit $ac_status); }; } &&
69661 { ac_try='test -s conftest$ac_exeext'
69662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69663 (eval $ac_try) 2>&5
69664 ac_status=$?
69665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69666 (exit $ac_status); }; }; then
69667 eval "$as_ac_var=yes"
69668 else
69669 echo "$as_me: failed program was:" >&5
69670 sed 's/^/| /' conftest.$ac_ext >&5
69672 eval "$as_ac_var=no"
69674 rm -f conftest.err conftest.$ac_objext \
69675 conftest$ac_exeext conftest.$ac_ext
69677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69679 if test `eval echo '${'$as_ac_var'}'` = yes; then
69680 cat >>confdefs.h <<_ACEOF
69681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69682 _ACEOF
69684 else
69685 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
69687 done
69691 for ac_func in __signbit
69693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69694 echo "$as_me:$LINENO: checking for $ac_func" >&5
69695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69696 if eval "test \"\${$as_ac_var+set}\" = set"; then
69697 echo $ECHO_N "(cached) $ECHO_C" >&6
69698 else
69699 if test x$gcc_no_link = xyes; then
69700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69702 { (exit 1); exit 1; }; }
69704 cat >conftest.$ac_ext <<_ACEOF
69705 /* confdefs.h. */
69706 _ACEOF
69707 cat confdefs.h >>conftest.$ac_ext
69708 cat >>conftest.$ac_ext <<_ACEOF
69709 /* end confdefs.h. */
69710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69712 #define $ac_func innocuous_$ac_func
69714 /* System header to define __stub macros and hopefully few prototypes,
69715 which can conflict with char $ac_func (); below.
69716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69717 <limits.h> exists even on freestanding compilers. */
69719 #ifdef __STDC__
69720 # include <limits.h>
69721 #else
69722 # include <assert.h>
69723 #endif
69725 #undef $ac_func
69727 /* Override any gcc2 internal prototype to avoid an error. */
69728 #ifdef __cplusplus
69729 extern "C"
69731 #endif
69732 /* We use char because int might match the return type of a gcc2
69733 builtin and then its argument prototype would still apply. */
69734 char $ac_func ();
69735 /* The GNU C library defines this for functions which it implements
69736 to always fail with ENOSYS. Some functions are actually named
69737 something starting with __ and the normal name is an alias. */
69738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69739 choke me
69740 #else
69741 char (*f) () = $ac_func;
69742 #endif
69743 #ifdef __cplusplus
69745 #endif
69748 main ()
69750 return f != $ac_func;
69752 return 0;
69754 _ACEOF
69755 rm -f conftest.$ac_objext conftest$ac_exeext
69756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69757 (eval $ac_link) 2>conftest.er1
69758 ac_status=$?
69759 grep -v '^ *+' conftest.er1 >conftest.err
69760 rm -f conftest.er1
69761 cat conftest.err >&5
69762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69763 (exit $ac_status); } &&
69764 { ac_try='test -z "$ac_c_werror_flag"
69765 || test ! -s conftest.err'
69766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69767 (eval $ac_try) 2>&5
69768 ac_status=$?
69769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69770 (exit $ac_status); }; } &&
69771 { ac_try='test -s conftest$ac_exeext'
69772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69773 (eval $ac_try) 2>&5
69774 ac_status=$?
69775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69776 (exit $ac_status); }; }; then
69777 eval "$as_ac_var=yes"
69778 else
69779 echo "$as_me: failed program was:" >&5
69780 sed 's/^/| /' conftest.$ac_ext >&5
69782 eval "$as_ac_var=no"
69784 rm -f conftest.err conftest.$ac_objext \
69785 conftest$ac_exeext conftest.$ac_ext
69787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69789 if test `eval echo '${'$as_ac_var'}'` = yes; then
69790 cat >>confdefs.h <<_ACEOF
69791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69792 _ACEOF
69794 else
69795 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
69797 done
69800 for ac_func in __signbitf
69802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69803 echo "$as_me:$LINENO: checking for $ac_func" >&5
69804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69805 if eval "test \"\${$as_ac_var+set}\" = set"; then
69806 echo $ECHO_N "(cached) $ECHO_C" >&6
69807 else
69808 if test x$gcc_no_link = xyes; then
69809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69811 { (exit 1); exit 1; }; }
69813 cat >conftest.$ac_ext <<_ACEOF
69814 /* confdefs.h. */
69815 _ACEOF
69816 cat confdefs.h >>conftest.$ac_ext
69817 cat >>conftest.$ac_ext <<_ACEOF
69818 /* end confdefs.h. */
69819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69821 #define $ac_func innocuous_$ac_func
69823 /* System header to define __stub macros and hopefully few prototypes,
69824 which can conflict with char $ac_func (); below.
69825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69826 <limits.h> exists even on freestanding compilers. */
69828 #ifdef __STDC__
69829 # include <limits.h>
69830 #else
69831 # include <assert.h>
69832 #endif
69834 #undef $ac_func
69836 /* Override any gcc2 internal prototype to avoid an error. */
69837 #ifdef __cplusplus
69838 extern "C"
69840 #endif
69841 /* We use char because int might match the return type of a gcc2
69842 builtin and then its argument prototype would still apply. */
69843 char $ac_func ();
69844 /* The GNU C library defines this for functions which it implements
69845 to always fail with ENOSYS. Some functions are actually named
69846 something starting with __ and the normal name is an alias. */
69847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69848 choke me
69849 #else
69850 char (*f) () = $ac_func;
69851 #endif
69852 #ifdef __cplusplus
69854 #endif
69857 main ()
69859 return f != $ac_func;
69861 return 0;
69863 _ACEOF
69864 rm -f conftest.$ac_objext conftest$ac_exeext
69865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69866 (eval $ac_link) 2>conftest.er1
69867 ac_status=$?
69868 grep -v '^ *+' conftest.er1 >conftest.err
69869 rm -f conftest.er1
69870 cat conftest.err >&5
69871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69872 (exit $ac_status); } &&
69873 { ac_try='test -z "$ac_c_werror_flag"
69874 || test ! -s conftest.err'
69875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69876 (eval $ac_try) 2>&5
69877 ac_status=$?
69878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69879 (exit $ac_status); }; } &&
69880 { ac_try='test -s conftest$ac_exeext'
69881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69882 (eval $ac_try) 2>&5
69883 ac_status=$?
69884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69885 (exit $ac_status); }; }; then
69886 eval "$as_ac_var=yes"
69887 else
69888 echo "$as_me: failed program was:" >&5
69889 sed 's/^/| /' conftest.$ac_ext >&5
69891 eval "$as_ac_var=no"
69893 rm -f conftest.err conftest.$ac_objext \
69894 conftest$ac_exeext conftest.$ac_ext
69896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69898 if test `eval echo '${'$as_ac_var'}'` = yes; then
69899 cat >>confdefs.h <<_ACEOF
69900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69901 _ACEOF
69903 else
69904 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
69906 done
69909 if test x$ac_cv_func_copysignl = x"yes"; then
69911 for ac_func in __signbitl
69913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69914 echo "$as_me:$LINENO: checking for $ac_func" >&5
69915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69916 if eval "test \"\${$as_ac_var+set}\" = set"; then
69917 echo $ECHO_N "(cached) $ECHO_C" >&6
69918 else
69919 if test x$gcc_no_link = xyes; then
69920 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69922 { (exit 1); exit 1; }; }
69924 cat >conftest.$ac_ext <<_ACEOF
69925 /* confdefs.h. */
69926 _ACEOF
69927 cat confdefs.h >>conftest.$ac_ext
69928 cat >>conftest.$ac_ext <<_ACEOF
69929 /* end confdefs.h. */
69930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69932 #define $ac_func innocuous_$ac_func
69934 /* System header to define __stub macros and hopefully few prototypes,
69935 which can conflict with char $ac_func (); below.
69936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69937 <limits.h> exists even on freestanding compilers. */
69939 #ifdef __STDC__
69940 # include <limits.h>
69941 #else
69942 # include <assert.h>
69943 #endif
69945 #undef $ac_func
69947 /* Override any gcc2 internal prototype to avoid an error. */
69948 #ifdef __cplusplus
69949 extern "C"
69951 #endif
69952 /* We use char because int might match the return type of a gcc2
69953 builtin and then its argument prototype would still apply. */
69954 char $ac_func ();
69955 /* The GNU C library defines this for functions which it implements
69956 to always fail with ENOSYS. Some functions are actually named
69957 something starting with __ and the normal name is an alias. */
69958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69959 choke me
69960 #else
69961 char (*f) () = $ac_func;
69962 #endif
69963 #ifdef __cplusplus
69965 #endif
69968 main ()
69970 return f != $ac_func;
69972 return 0;
69974 _ACEOF
69975 rm -f conftest.$ac_objext conftest$ac_exeext
69976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69977 (eval $ac_link) 2>conftest.er1
69978 ac_status=$?
69979 grep -v '^ *+' conftest.er1 >conftest.err
69980 rm -f conftest.er1
69981 cat conftest.err >&5
69982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69983 (exit $ac_status); } &&
69984 { ac_try='test -z "$ac_c_werror_flag"
69985 || test ! -s conftest.err'
69986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69987 (eval $ac_try) 2>&5
69988 ac_status=$?
69989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69990 (exit $ac_status); }; } &&
69991 { ac_try='test -s conftest$ac_exeext'
69992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69993 (eval $ac_try) 2>&5
69994 ac_status=$?
69995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69996 (exit $ac_status); }; }; then
69997 eval "$as_ac_var=yes"
69998 else
69999 echo "$as_me: failed program was:" >&5
70000 sed 's/^/| /' conftest.$ac_ext >&5
70002 eval "$as_ac_var=no"
70004 rm -f conftest.err conftest.$ac_objext \
70005 conftest$ac_exeext conftest.$ac_ext
70007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70009 if test `eval echo '${'$as_ac_var'}'` = yes; then
70010 cat >>confdefs.h <<_ACEOF
70011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70012 _ACEOF
70014 else
70015 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
70017 done
70021 # XXX Review this. Nothing uses it.
70022 if test -n "$LIBMATHOBJS"; then
70023 need_libmath=yes
70028 # Test wchar.h for mbstate_t, which is needed for char_traits and
70029 # others even if wchar_t support is not on.
70030 echo "$as_me:$LINENO: checking for mbstate_t" >&5
70031 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
70032 cat >conftest.$ac_ext <<_ACEOF
70033 /* confdefs.h. */
70034 _ACEOF
70035 cat confdefs.h >>conftest.$ac_ext
70036 cat >>conftest.$ac_ext <<_ACEOF
70037 /* end confdefs.h. */
70038 #include <wchar.h>
70040 main ()
70042 mbstate_t teststate;
70044 return 0;
70046 _ACEOF
70047 rm -f conftest.$ac_objext
70048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70049 (eval $ac_compile) 2>conftest.er1
70050 ac_status=$?
70051 grep -v '^ *+' conftest.er1 >conftest.err
70052 rm -f conftest.er1
70053 cat conftest.err >&5
70054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70055 (exit $ac_status); } &&
70056 { ac_try='test -z "$ac_c_werror_flag"
70057 || test ! -s conftest.err'
70058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70059 (eval $ac_try) 2>&5
70060 ac_status=$?
70061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70062 (exit $ac_status); }; } &&
70063 { ac_try='test -s conftest.$ac_objext'
70064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70065 (eval $ac_try) 2>&5
70066 ac_status=$?
70067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70068 (exit $ac_status); }; }; then
70069 have_mbstate_t=yes
70070 else
70071 echo "$as_me: failed program was:" >&5
70072 sed 's/^/| /' conftest.$ac_ext >&5
70074 have_mbstate_t=no
70076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70077 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
70078 echo "${ECHO_T}$have_mbstate_t" >&6
70079 if test x"$have_mbstate_t" = xyes; then
70080 cat >>confdefs.h <<\_ACEOF
70081 #define HAVE_MBSTATE_T 1
70082 _ACEOF
70086 # Sanity check for existence of ISO C99 headers for extended encoding.
70088 for ac_header in wchar.h
70090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70092 echo "$as_me:$LINENO: checking for $ac_header" >&5
70093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70095 echo $ECHO_N "(cached) $ECHO_C" >&6
70097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70099 else
70100 # Is the header compilable?
70101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70103 cat >conftest.$ac_ext <<_ACEOF
70104 /* confdefs.h. */
70105 _ACEOF
70106 cat confdefs.h >>conftest.$ac_ext
70107 cat >>conftest.$ac_ext <<_ACEOF
70108 /* end confdefs.h. */
70109 $ac_includes_default
70110 #include <$ac_header>
70111 _ACEOF
70112 rm -f conftest.$ac_objext
70113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70114 (eval $ac_compile) 2>conftest.er1
70115 ac_status=$?
70116 grep -v '^ *+' conftest.er1 >conftest.err
70117 rm -f conftest.er1
70118 cat conftest.err >&5
70119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70120 (exit $ac_status); } &&
70121 { ac_try='test -z "$ac_c_werror_flag"
70122 || test ! -s conftest.err'
70123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70124 (eval $ac_try) 2>&5
70125 ac_status=$?
70126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70127 (exit $ac_status); }; } &&
70128 { ac_try='test -s conftest.$ac_objext'
70129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70130 (eval $ac_try) 2>&5
70131 ac_status=$?
70132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70133 (exit $ac_status); }; }; then
70134 ac_header_compiler=yes
70135 else
70136 echo "$as_me: failed program was:" >&5
70137 sed 's/^/| /' conftest.$ac_ext >&5
70139 ac_header_compiler=no
70141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70143 echo "${ECHO_T}$ac_header_compiler" >&6
70145 # Is the header present?
70146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70148 cat >conftest.$ac_ext <<_ACEOF
70149 /* confdefs.h. */
70150 _ACEOF
70151 cat confdefs.h >>conftest.$ac_ext
70152 cat >>conftest.$ac_ext <<_ACEOF
70153 /* end confdefs.h. */
70154 #include <$ac_header>
70155 _ACEOF
70156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70158 ac_status=$?
70159 grep -v '^ *+' conftest.er1 >conftest.err
70160 rm -f conftest.er1
70161 cat conftest.err >&5
70162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70163 (exit $ac_status); } >/dev/null; then
70164 if test -s conftest.err; then
70165 ac_cpp_err=$ac_c_preproc_warn_flag
70166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70167 else
70168 ac_cpp_err=
70170 else
70171 ac_cpp_err=yes
70173 if test -z "$ac_cpp_err"; then
70174 ac_header_preproc=yes
70175 else
70176 echo "$as_me: failed program was:" >&5
70177 sed 's/^/| /' conftest.$ac_ext >&5
70179 ac_header_preproc=no
70181 rm -f conftest.err conftest.$ac_ext
70182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70183 echo "${ECHO_T}$ac_header_preproc" >&6
70185 # So? What about this header?
70186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70187 yes:no: )
70188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70192 ac_header_preproc=yes
70194 no:yes:* )
70195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70208 cat <<\_ASBOX
70209 ## ----------------------------------------- ##
70210 ## Report this to the package-unused lists. ##
70211 ## ----------------------------------------- ##
70212 _ASBOX
70214 sed "s/^/$as_me: WARNING: /" >&2
70216 esac
70217 echo "$as_me:$LINENO: checking for $ac_header" >&5
70218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70220 echo $ECHO_N "(cached) $ECHO_C" >&6
70221 else
70222 eval "$as_ac_Header=\$ac_header_preproc"
70224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70229 cat >>confdefs.h <<_ACEOF
70230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70231 _ACEOF
70232 ac_has_wchar_h=yes
70233 else
70234 ac_has_wchar_h=no
70237 done
70240 for ac_header in wctype.h
70242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70244 echo "$as_me:$LINENO: checking for $ac_header" >&5
70245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70247 echo $ECHO_N "(cached) $ECHO_C" >&6
70249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70251 else
70252 # Is the header compilable?
70253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70255 cat >conftest.$ac_ext <<_ACEOF
70256 /* confdefs.h. */
70257 _ACEOF
70258 cat confdefs.h >>conftest.$ac_ext
70259 cat >>conftest.$ac_ext <<_ACEOF
70260 /* end confdefs.h. */
70261 $ac_includes_default
70262 #include <$ac_header>
70263 _ACEOF
70264 rm -f conftest.$ac_objext
70265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70266 (eval $ac_compile) 2>conftest.er1
70267 ac_status=$?
70268 grep -v '^ *+' conftest.er1 >conftest.err
70269 rm -f conftest.er1
70270 cat conftest.err >&5
70271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70272 (exit $ac_status); } &&
70273 { ac_try='test -z "$ac_c_werror_flag"
70274 || test ! -s conftest.err'
70275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70276 (eval $ac_try) 2>&5
70277 ac_status=$?
70278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70279 (exit $ac_status); }; } &&
70280 { ac_try='test -s conftest.$ac_objext'
70281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70282 (eval $ac_try) 2>&5
70283 ac_status=$?
70284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70285 (exit $ac_status); }; }; then
70286 ac_header_compiler=yes
70287 else
70288 echo "$as_me: failed program was:" >&5
70289 sed 's/^/| /' conftest.$ac_ext >&5
70291 ac_header_compiler=no
70293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70295 echo "${ECHO_T}$ac_header_compiler" >&6
70297 # Is the header present?
70298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70300 cat >conftest.$ac_ext <<_ACEOF
70301 /* confdefs.h. */
70302 _ACEOF
70303 cat confdefs.h >>conftest.$ac_ext
70304 cat >>conftest.$ac_ext <<_ACEOF
70305 /* end confdefs.h. */
70306 #include <$ac_header>
70307 _ACEOF
70308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70310 ac_status=$?
70311 grep -v '^ *+' conftest.er1 >conftest.err
70312 rm -f conftest.er1
70313 cat conftest.err >&5
70314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70315 (exit $ac_status); } >/dev/null; then
70316 if test -s conftest.err; then
70317 ac_cpp_err=$ac_c_preproc_warn_flag
70318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70319 else
70320 ac_cpp_err=
70322 else
70323 ac_cpp_err=yes
70325 if test -z "$ac_cpp_err"; then
70326 ac_header_preproc=yes
70327 else
70328 echo "$as_me: failed program was:" >&5
70329 sed 's/^/| /' conftest.$ac_ext >&5
70331 ac_header_preproc=no
70333 rm -f conftest.err conftest.$ac_ext
70334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70335 echo "${ECHO_T}$ac_header_preproc" >&6
70337 # So? What about this header?
70338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70339 yes:no: )
70340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70344 ac_header_preproc=yes
70346 no:yes:* )
70347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70360 cat <<\_ASBOX
70361 ## ----------------------------------------- ##
70362 ## Report this to the package-unused lists. ##
70363 ## ----------------------------------------- ##
70364 _ASBOX
70366 sed "s/^/$as_me: WARNING: /" >&2
70368 esac
70369 echo "$as_me:$LINENO: checking for $ac_header" >&5
70370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70372 echo $ECHO_N "(cached) $ECHO_C" >&6
70373 else
70374 eval "$as_ac_Header=\$ac_header_preproc"
70376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70381 cat >>confdefs.h <<_ACEOF
70382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70383 _ACEOF
70384 ac_has_wctype_h=yes
70385 else
70386 ac_has_wctype_h=no
70389 done
70392 # Only continue checking if the ISO C99 headers exist and support is on.
70393 if test x"$ac_has_wchar_h" = xyes &&
70394 test x"$ac_has_wctype_h" = xyes &&
70395 test x"$enable_c_mbchar" != xno; then
70397 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
70398 # numeric_limits can instantiate type_traits<wchar_t>
70399 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
70400 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
70401 cat >conftest.$ac_ext <<_ACEOF
70402 /* confdefs.h. */
70403 _ACEOF
70404 cat confdefs.h >>conftest.$ac_ext
70405 cat >>conftest.$ac_ext <<_ACEOF
70406 /* end confdefs.h. */
70407 #include <wchar.h>
70409 main ()
70411 int i = WCHAR_MIN; int j = WCHAR_MAX;
70413 return 0;
70415 _ACEOF
70416 rm -f conftest.$ac_objext
70417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70418 (eval $ac_compile) 2>conftest.er1
70419 ac_status=$?
70420 grep -v '^ *+' conftest.er1 >conftest.err
70421 rm -f conftest.er1
70422 cat conftest.err >&5
70423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70424 (exit $ac_status); } &&
70425 { ac_try='test -z "$ac_c_werror_flag"
70426 || test ! -s conftest.err'
70427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70428 (eval $ac_try) 2>&5
70429 ac_status=$?
70430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70431 (exit $ac_status); }; } &&
70432 { ac_try='test -s conftest.$ac_objext'
70433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70434 (eval $ac_try) 2>&5
70435 ac_status=$?
70436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70437 (exit $ac_status); }; }; then
70438 has_wchar_minmax=yes
70439 else
70440 echo "$as_me: failed program was:" >&5
70441 sed 's/^/| /' conftest.$ac_ext >&5
70443 has_wchar_minmax=no
70445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70446 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
70447 echo "${ECHO_T}$has_wchar_minmax" >&6
70449 # Test wchar.h for WEOF, which is what we use to determine whether
70450 # to specialize for char_traits<wchar_t> or not.
70451 echo "$as_me:$LINENO: checking for WEOF" >&5
70452 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
70453 cat >conftest.$ac_ext <<_ACEOF
70454 /* confdefs.h. */
70455 _ACEOF
70456 cat confdefs.h >>conftest.$ac_ext
70457 cat >>conftest.$ac_ext <<_ACEOF
70458 /* end confdefs.h. */
70460 #include <wchar.h>
70461 #include <stddef.h>
70463 main ()
70465 wint_t i = WEOF;
70467 return 0;
70469 _ACEOF
70470 rm -f conftest.$ac_objext
70471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70472 (eval $ac_compile) 2>conftest.er1
70473 ac_status=$?
70474 grep -v '^ *+' conftest.er1 >conftest.err
70475 rm -f conftest.er1
70476 cat conftest.err >&5
70477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70478 (exit $ac_status); } &&
70479 { ac_try='test -z "$ac_c_werror_flag"
70480 || test ! -s conftest.err'
70481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70482 (eval $ac_try) 2>&5
70483 ac_status=$?
70484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70485 (exit $ac_status); }; } &&
70486 { ac_try='test -s conftest.$ac_objext'
70487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70488 (eval $ac_try) 2>&5
70489 ac_status=$?
70490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70491 (exit $ac_status); }; }; then
70492 has_weof=yes
70493 else
70494 echo "$as_me: failed program was:" >&5
70495 sed 's/^/| /' conftest.$ac_ext >&5
70497 has_weof=no
70499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70500 echo "$as_me:$LINENO: result: $has_weof" >&5
70501 echo "${ECHO_T}$has_weof" >&6
70503 # Tests for wide character functions used in char_traits<wchar_t>.
70504 ac_wfuncs=yes
70511 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
70513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70514 echo "$as_me:$LINENO: checking for $ac_func" >&5
70515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70516 if eval "test \"\${$as_ac_var+set}\" = set"; then
70517 echo $ECHO_N "(cached) $ECHO_C" >&6
70518 else
70519 if test x$gcc_no_link = xyes; then
70520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70522 { (exit 1); exit 1; }; }
70524 cat >conftest.$ac_ext <<_ACEOF
70525 /* confdefs.h. */
70526 _ACEOF
70527 cat confdefs.h >>conftest.$ac_ext
70528 cat >>conftest.$ac_ext <<_ACEOF
70529 /* end confdefs.h. */
70530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70532 #define $ac_func innocuous_$ac_func
70534 /* System header to define __stub macros and hopefully few prototypes,
70535 which can conflict with char $ac_func (); below.
70536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70537 <limits.h> exists even on freestanding compilers. */
70539 #ifdef __STDC__
70540 # include <limits.h>
70541 #else
70542 # include <assert.h>
70543 #endif
70545 #undef $ac_func
70547 /* Override any gcc2 internal prototype to avoid an error. */
70548 #ifdef __cplusplus
70549 extern "C"
70551 #endif
70552 /* We use char because int might match the return type of a gcc2
70553 builtin and then its argument prototype would still apply. */
70554 char $ac_func ();
70555 /* The GNU C library defines this for functions which it implements
70556 to always fail with ENOSYS. Some functions are actually named
70557 something starting with __ and the normal name is an alias. */
70558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70559 choke me
70560 #else
70561 char (*f) () = $ac_func;
70562 #endif
70563 #ifdef __cplusplus
70565 #endif
70568 main ()
70570 return f != $ac_func;
70572 return 0;
70574 _ACEOF
70575 rm -f conftest.$ac_objext conftest$ac_exeext
70576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70577 (eval $ac_link) 2>conftest.er1
70578 ac_status=$?
70579 grep -v '^ *+' conftest.er1 >conftest.err
70580 rm -f conftest.er1
70581 cat conftest.err >&5
70582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70583 (exit $ac_status); } &&
70584 { ac_try='test -z "$ac_c_werror_flag"
70585 || test ! -s conftest.err'
70586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70587 (eval $ac_try) 2>&5
70588 ac_status=$?
70589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70590 (exit $ac_status); }; } &&
70591 { ac_try='test -s conftest$ac_exeext'
70592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70593 (eval $ac_try) 2>&5
70594 ac_status=$?
70595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70596 (exit $ac_status); }; }; then
70597 eval "$as_ac_var=yes"
70598 else
70599 echo "$as_me: failed program was:" >&5
70600 sed 's/^/| /' conftest.$ac_ext >&5
70602 eval "$as_ac_var=no"
70604 rm -f conftest.err conftest.$ac_objext \
70605 conftest$ac_exeext conftest.$ac_ext
70607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70609 if test `eval echo '${'$as_ac_var'}'` = yes; then
70610 cat >>confdefs.h <<_ACEOF
70611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70612 _ACEOF
70614 else
70615 ac_wfuncs=no
70617 done
70620 # Checks for names injected into std:: by the c_std headers.
70667 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
70668 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
70669 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
70670 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
70671 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
70672 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
70674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70675 echo "$as_me:$LINENO: checking for $ac_func" >&5
70676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70677 if eval "test \"\${$as_ac_var+set}\" = set"; then
70678 echo $ECHO_N "(cached) $ECHO_C" >&6
70679 else
70680 if test x$gcc_no_link = xyes; then
70681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70683 { (exit 1); exit 1; }; }
70685 cat >conftest.$ac_ext <<_ACEOF
70686 /* confdefs.h. */
70687 _ACEOF
70688 cat confdefs.h >>conftest.$ac_ext
70689 cat >>conftest.$ac_ext <<_ACEOF
70690 /* end confdefs.h. */
70691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70693 #define $ac_func innocuous_$ac_func
70695 /* System header to define __stub macros and hopefully few prototypes,
70696 which can conflict with char $ac_func (); below.
70697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70698 <limits.h> exists even on freestanding compilers. */
70700 #ifdef __STDC__
70701 # include <limits.h>
70702 #else
70703 # include <assert.h>
70704 #endif
70706 #undef $ac_func
70708 /* Override any gcc2 internal prototype to avoid an error. */
70709 #ifdef __cplusplus
70710 extern "C"
70712 #endif
70713 /* We use char because int might match the return type of a gcc2
70714 builtin and then its argument prototype would still apply. */
70715 char $ac_func ();
70716 /* The GNU C library defines this for functions which it implements
70717 to always fail with ENOSYS. Some functions are actually named
70718 something starting with __ and the normal name is an alias. */
70719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70720 choke me
70721 #else
70722 char (*f) () = $ac_func;
70723 #endif
70724 #ifdef __cplusplus
70726 #endif
70729 main ()
70731 return f != $ac_func;
70733 return 0;
70735 _ACEOF
70736 rm -f conftest.$ac_objext conftest$ac_exeext
70737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70738 (eval $ac_link) 2>conftest.er1
70739 ac_status=$?
70740 grep -v '^ *+' conftest.er1 >conftest.err
70741 rm -f conftest.er1
70742 cat conftest.err >&5
70743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70744 (exit $ac_status); } &&
70745 { ac_try='test -z "$ac_c_werror_flag"
70746 || test ! -s conftest.err'
70747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70748 (eval $ac_try) 2>&5
70749 ac_status=$?
70750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70751 (exit $ac_status); }; } &&
70752 { ac_try='test -s conftest$ac_exeext'
70753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70754 (eval $ac_try) 2>&5
70755 ac_status=$?
70756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70757 (exit $ac_status); }; }; then
70758 eval "$as_ac_var=yes"
70759 else
70760 echo "$as_me: failed program was:" >&5
70761 sed 's/^/| /' conftest.$ac_ext >&5
70763 eval "$as_ac_var=no"
70765 rm -f conftest.err conftest.$ac_objext \
70766 conftest$ac_exeext conftest.$ac_ext
70768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70770 if test `eval echo '${'$as_ac_var'}'` = yes; then
70771 cat >>confdefs.h <<_ACEOF
70772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70773 _ACEOF
70775 else
70776 ac_wfuncs=no
70778 done
70781 # Checks for wide character functions that are not required
70782 # for basic wchar_t support. Don't disable support if they are missing.
70783 # Injection of these is wrapped with guard macros.
70789 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
70791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70792 echo "$as_me:$LINENO: checking for $ac_func" >&5
70793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70794 if eval "test \"\${$as_ac_var+set}\" = set"; then
70795 echo $ECHO_N "(cached) $ECHO_C" >&6
70796 else
70797 if test x$gcc_no_link = xyes; then
70798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70800 { (exit 1); exit 1; }; }
70802 cat >conftest.$ac_ext <<_ACEOF
70803 /* confdefs.h. */
70804 _ACEOF
70805 cat confdefs.h >>conftest.$ac_ext
70806 cat >>conftest.$ac_ext <<_ACEOF
70807 /* end confdefs.h. */
70808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70810 #define $ac_func innocuous_$ac_func
70812 /* System header to define __stub macros and hopefully few prototypes,
70813 which can conflict with char $ac_func (); below.
70814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70815 <limits.h> exists even on freestanding compilers. */
70817 #ifdef __STDC__
70818 # include <limits.h>
70819 #else
70820 # include <assert.h>
70821 #endif
70823 #undef $ac_func
70825 /* Override any gcc2 internal prototype to avoid an error. */
70826 #ifdef __cplusplus
70827 extern "C"
70829 #endif
70830 /* We use char because int might match the return type of a gcc2
70831 builtin and then its argument prototype would still apply. */
70832 char $ac_func ();
70833 /* The GNU C library defines this for functions which it implements
70834 to always fail with ENOSYS. Some functions are actually named
70835 something starting with __ and the normal name is an alias. */
70836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70837 choke me
70838 #else
70839 char (*f) () = $ac_func;
70840 #endif
70841 #ifdef __cplusplus
70843 #endif
70846 main ()
70848 return f != $ac_func;
70850 return 0;
70852 _ACEOF
70853 rm -f conftest.$ac_objext conftest$ac_exeext
70854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70855 (eval $ac_link) 2>conftest.er1
70856 ac_status=$?
70857 grep -v '^ *+' conftest.er1 >conftest.err
70858 rm -f conftest.er1
70859 cat conftest.err >&5
70860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70861 (exit $ac_status); } &&
70862 { ac_try='test -z "$ac_c_werror_flag"
70863 || test ! -s conftest.err'
70864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70865 (eval $ac_try) 2>&5
70866 ac_status=$?
70867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70868 (exit $ac_status); }; } &&
70869 { ac_try='test -s conftest$ac_exeext'
70870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70871 (eval $ac_try) 2>&5
70872 ac_status=$?
70873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70874 (exit $ac_status); }; }; then
70875 eval "$as_ac_var=yes"
70876 else
70877 echo "$as_me: failed program was:" >&5
70878 sed 's/^/| /' conftest.$ac_ext >&5
70880 eval "$as_ac_var=no"
70882 rm -f conftest.err conftest.$ac_objext \
70883 conftest$ac_exeext conftest.$ac_ext
70885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70887 if test `eval echo '${'$as_ac_var'}'` = yes; then
70888 cat >>confdefs.h <<_ACEOF
70889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70890 _ACEOF
70893 done
70896 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
70897 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
70898 if test x"$has_weof" = xyes &&
70899 test x"$has_wchar_minmax" = xyes &&
70900 test x"$ac_wfuncs" = xyes;
70901 then
70902 ac_isoC99_wchar_t=yes
70903 else
70904 ac_isoC99_wchar_t=no
70906 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
70907 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
70909 # Use iconv for wchar_t to char conversions. As such, check for
70910 # X/Open Portability Guide, version 2 features (XPG2).
70911 if test "${ac_cv_header_iconv_h+set}" = set; then
70912 echo "$as_me:$LINENO: checking for iconv.h" >&5
70913 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
70914 if test "${ac_cv_header_iconv_h+set}" = set; then
70915 echo $ECHO_N "(cached) $ECHO_C" >&6
70917 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
70918 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
70919 else
70920 # Is the header compilable?
70921 echo "$as_me:$LINENO: checking iconv.h usability" >&5
70922 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
70923 cat >conftest.$ac_ext <<_ACEOF
70924 /* confdefs.h. */
70925 _ACEOF
70926 cat confdefs.h >>conftest.$ac_ext
70927 cat >>conftest.$ac_ext <<_ACEOF
70928 /* end confdefs.h. */
70929 $ac_includes_default
70930 #include <iconv.h>
70931 _ACEOF
70932 rm -f conftest.$ac_objext
70933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70934 (eval $ac_compile) 2>conftest.er1
70935 ac_status=$?
70936 grep -v '^ *+' conftest.er1 >conftest.err
70937 rm -f conftest.er1
70938 cat conftest.err >&5
70939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70940 (exit $ac_status); } &&
70941 { ac_try='test -z "$ac_c_werror_flag"
70942 || test ! -s conftest.err'
70943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70944 (eval $ac_try) 2>&5
70945 ac_status=$?
70946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70947 (exit $ac_status); }; } &&
70948 { ac_try='test -s conftest.$ac_objext'
70949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70950 (eval $ac_try) 2>&5
70951 ac_status=$?
70952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70953 (exit $ac_status); }; }; then
70954 ac_header_compiler=yes
70955 else
70956 echo "$as_me: failed program was:" >&5
70957 sed 's/^/| /' conftest.$ac_ext >&5
70959 ac_header_compiler=no
70961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70963 echo "${ECHO_T}$ac_header_compiler" >&6
70965 # Is the header present?
70966 echo "$as_me:$LINENO: checking iconv.h presence" >&5
70967 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
70968 cat >conftest.$ac_ext <<_ACEOF
70969 /* confdefs.h. */
70970 _ACEOF
70971 cat confdefs.h >>conftest.$ac_ext
70972 cat >>conftest.$ac_ext <<_ACEOF
70973 /* end confdefs.h. */
70974 #include <iconv.h>
70975 _ACEOF
70976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70978 ac_status=$?
70979 grep -v '^ *+' conftest.er1 >conftest.err
70980 rm -f conftest.er1
70981 cat conftest.err >&5
70982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70983 (exit $ac_status); } >/dev/null; then
70984 if test -s conftest.err; then
70985 ac_cpp_err=$ac_c_preproc_warn_flag
70986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70987 else
70988 ac_cpp_err=
70990 else
70991 ac_cpp_err=yes
70993 if test -z "$ac_cpp_err"; then
70994 ac_header_preproc=yes
70995 else
70996 echo "$as_me: failed program was:" >&5
70997 sed 's/^/| /' conftest.$ac_ext >&5
70999 ac_header_preproc=no
71001 rm -f conftest.err conftest.$ac_ext
71002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71003 echo "${ECHO_T}$ac_header_preproc" >&6
71005 # So? What about this header?
71006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71007 yes:no: )
71008 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
71009 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71010 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
71011 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
71012 ac_header_preproc=yes
71014 no:yes:* )
71015 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
71016 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
71017 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
71018 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
71019 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
71020 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
71021 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
71022 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
71023 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
71024 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
71025 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
71026 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
71028 cat <<\_ASBOX
71029 ## ----------------------------------------- ##
71030 ## Report this to the package-unused lists. ##
71031 ## ----------------------------------------- ##
71032 _ASBOX
71034 sed "s/^/$as_me: WARNING: /" >&2
71036 esac
71037 echo "$as_me:$LINENO: checking for iconv.h" >&5
71038 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
71039 if test "${ac_cv_header_iconv_h+set}" = set; then
71040 echo $ECHO_N "(cached) $ECHO_C" >&6
71041 else
71042 ac_cv_header_iconv_h=$ac_header_preproc
71044 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
71045 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
71048 if test $ac_cv_header_iconv_h = yes; then
71049 ac_has_iconv_h=yes
71050 else
71051 ac_has_iconv_h=no
71055 if test "${ac_cv_header_langinfo_h+set}" = set; then
71056 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71057 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71058 if test "${ac_cv_header_langinfo_h+set}" = set; then
71059 echo $ECHO_N "(cached) $ECHO_C" >&6
71061 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71062 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71063 else
71064 # Is the header compilable?
71065 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
71066 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
71067 cat >conftest.$ac_ext <<_ACEOF
71068 /* confdefs.h. */
71069 _ACEOF
71070 cat confdefs.h >>conftest.$ac_ext
71071 cat >>conftest.$ac_ext <<_ACEOF
71072 /* end confdefs.h. */
71073 $ac_includes_default
71074 #include <langinfo.h>
71075 _ACEOF
71076 rm -f conftest.$ac_objext
71077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71078 (eval $ac_compile) 2>conftest.er1
71079 ac_status=$?
71080 grep -v '^ *+' conftest.er1 >conftest.err
71081 rm -f conftest.er1
71082 cat conftest.err >&5
71083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71084 (exit $ac_status); } &&
71085 { ac_try='test -z "$ac_c_werror_flag"
71086 || test ! -s conftest.err'
71087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71088 (eval $ac_try) 2>&5
71089 ac_status=$?
71090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71091 (exit $ac_status); }; } &&
71092 { ac_try='test -s conftest.$ac_objext'
71093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71094 (eval $ac_try) 2>&5
71095 ac_status=$?
71096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71097 (exit $ac_status); }; }; then
71098 ac_header_compiler=yes
71099 else
71100 echo "$as_me: failed program was:" >&5
71101 sed 's/^/| /' conftest.$ac_ext >&5
71103 ac_header_compiler=no
71105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71107 echo "${ECHO_T}$ac_header_compiler" >&6
71109 # Is the header present?
71110 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
71111 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
71112 cat >conftest.$ac_ext <<_ACEOF
71113 /* confdefs.h. */
71114 _ACEOF
71115 cat confdefs.h >>conftest.$ac_ext
71116 cat >>conftest.$ac_ext <<_ACEOF
71117 /* end confdefs.h. */
71118 #include <langinfo.h>
71119 _ACEOF
71120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71122 ac_status=$?
71123 grep -v '^ *+' conftest.er1 >conftest.err
71124 rm -f conftest.er1
71125 cat conftest.err >&5
71126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71127 (exit $ac_status); } >/dev/null; then
71128 if test -s conftest.err; then
71129 ac_cpp_err=$ac_c_preproc_warn_flag
71130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71131 else
71132 ac_cpp_err=
71134 else
71135 ac_cpp_err=yes
71137 if test -z "$ac_cpp_err"; then
71138 ac_header_preproc=yes
71139 else
71140 echo "$as_me: failed program was:" >&5
71141 sed 's/^/| /' conftest.$ac_ext >&5
71143 ac_header_preproc=no
71145 rm -f conftest.err conftest.$ac_ext
71146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71147 echo "${ECHO_T}$ac_header_preproc" >&6
71149 # So? What about this header?
71150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71151 yes:no: )
71152 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
71153 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71154 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
71155 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
71156 ac_header_preproc=yes
71158 no:yes:* )
71159 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
71160 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
71161 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
71162 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
71163 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
71164 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
71165 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
71166 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
71167 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
71168 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
71169 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
71170 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
71172 cat <<\_ASBOX
71173 ## ----------------------------------------- ##
71174 ## Report this to the package-unused lists. ##
71175 ## ----------------------------------------- ##
71176 _ASBOX
71178 sed "s/^/$as_me: WARNING: /" >&2
71180 esac
71181 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71182 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71183 if test "${ac_cv_header_langinfo_h+set}" = set; then
71184 echo $ECHO_N "(cached) $ECHO_C" >&6
71185 else
71186 ac_cv_header_langinfo_h=$ac_header_preproc
71188 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71189 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71192 if test $ac_cv_header_langinfo_h = yes; then
71193 ac_has_langinfo_h=yes
71194 else
71195 ac_has_langinfo_h=no
71200 # Check for existence of libiconv.a providing XPG2 wchar_t support.
71201 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
71202 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
71203 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
71204 echo $ECHO_N "(cached) $ECHO_C" >&6
71205 else
71206 ac_check_lib_save_LIBS=$LIBS
71207 LIBS="-liconv $LIBS"
71208 if test x$gcc_no_link = xyes; then
71209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71211 { (exit 1); exit 1; }; }
71213 cat >conftest.$ac_ext <<_ACEOF
71214 /* confdefs.h. */
71215 _ACEOF
71216 cat confdefs.h >>conftest.$ac_ext
71217 cat >>conftest.$ac_ext <<_ACEOF
71218 /* end confdefs.h. */
71220 /* Override any gcc2 internal prototype to avoid an error. */
71221 #ifdef __cplusplus
71222 extern "C"
71223 #endif
71224 /* We use char because int might match the return type of a gcc2
71225 builtin and then its argument prototype would still apply. */
71226 char iconv ();
71228 main ()
71230 iconv ();
71232 return 0;
71234 _ACEOF
71235 rm -f conftest.$ac_objext conftest$ac_exeext
71236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71237 (eval $ac_link) 2>conftest.er1
71238 ac_status=$?
71239 grep -v '^ *+' conftest.er1 >conftest.err
71240 rm -f conftest.er1
71241 cat conftest.err >&5
71242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71243 (exit $ac_status); } &&
71244 { ac_try='test -z "$ac_c_werror_flag"
71245 || test ! -s conftest.err'
71246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71247 (eval $ac_try) 2>&5
71248 ac_status=$?
71249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71250 (exit $ac_status); }; } &&
71251 { ac_try='test -s conftest$ac_exeext'
71252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71253 (eval $ac_try) 2>&5
71254 ac_status=$?
71255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71256 (exit $ac_status); }; }; then
71257 ac_cv_lib_iconv_iconv=yes
71258 else
71259 echo "$as_me: failed program was:" >&5
71260 sed 's/^/| /' conftest.$ac_ext >&5
71262 ac_cv_lib_iconv_iconv=no
71264 rm -f conftest.err conftest.$ac_objext \
71265 conftest$ac_exeext conftest.$ac_ext
71266 LIBS=$ac_check_lib_save_LIBS
71268 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
71269 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
71270 if test $ac_cv_lib_iconv_iconv = yes; then
71271 libiconv="-liconv"
71274 ac_save_LIBS="$LIBS"
71275 LIBS="$LIBS $libiconv"
71281 for ac_func in iconv_open iconv_close iconv nl_langinfo
71283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71284 echo "$as_me:$LINENO: checking for $ac_func" >&5
71285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71286 if eval "test \"\${$as_ac_var+set}\" = set"; then
71287 echo $ECHO_N "(cached) $ECHO_C" >&6
71288 else
71289 if test x$gcc_no_link = xyes; then
71290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71292 { (exit 1); exit 1; }; }
71294 cat >conftest.$ac_ext <<_ACEOF
71295 /* confdefs.h. */
71296 _ACEOF
71297 cat confdefs.h >>conftest.$ac_ext
71298 cat >>conftest.$ac_ext <<_ACEOF
71299 /* end confdefs.h. */
71300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71302 #define $ac_func innocuous_$ac_func
71304 /* System header to define __stub macros and hopefully few prototypes,
71305 which can conflict with char $ac_func (); below.
71306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71307 <limits.h> exists even on freestanding compilers. */
71309 #ifdef __STDC__
71310 # include <limits.h>
71311 #else
71312 # include <assert.h>
71313 #endif
71315 #undef $ac_func
71317 /* Override any gcc2 internal prototype to avoid an error. */
71318 #ifdef __cplusplus
71319 extern "C"
71321 #endif
71322 /* We use char because int might match the return type of a gcc2
71323 builtin and then its argument prototype would still apply. */
71324 char $ac_func ();
71325 /* The GNU C library defines this for functions which it implements
71326 to always fail with ENOSYS. Some functions are actually named
71327 something starting with __ and the normal name is an alias. */
71328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71329 choke me
71330 #else
71331 char (*f) () = $ac_func;
71332 #endif
71333 #ifdef __cplusplus
71335 #endif
71338 main ()
71340 return f != $ac_func;
71342 return 0;
71344 _ACEOF
71345 rm -f conftest.$ac_objext conftest$ac_exeext
71346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71347 (eval $ac_link) 2>conftest.er1
71348 ac_status=$?
71349 grep -v '^ *+' conftest.er1 >conftest.err
71350 rm -f conftest.er1
71351 cat conftest.err >&5
71352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71353 (exit $ac_status); } &&
71354 { ac_try='test -z "$ac_c_werror_flag"
71355 || test ! -s conftest.err'
71356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71357 (eval $ac_try) 2>&5
71358 ac_status=$?
71359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71360 (exit $ac_status); }; } &&
71361 { ac_try='test -s conftest$ac_exeext'
71362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71363 (eval $ac_try) 2>&5
71364 ac_status=$?
71365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71366 (exit $ac_status); }; }; then
71367 eval "$as_ac_var=yes"
71368 else
71369 echo "$as_me: failed program was:" >&5
71370 sed 's/^/| /' conftest.$ac_ext >&5
71372 eval "$as_ac_var=no"
71374 rm -f conftest.err conftest.$ac_objext \
71375 conftest$ac_exeext conftest.$ac_ext
71377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71379 if test `eval echo '${'$as_ac_var'}'` = yes; then
71380 cat >>confdefs.h <<_ACEOF
71381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71382 _ACEOF
71383 ac_XPG2funcs=yes
71384 else
71385 ac_XPG2funcs=no
71387 done
71390 LIBS="$ac_save_LIBS"
71392 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
71393 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
71394 if test x"$ac_has_iconv_h" = xyes &&
71395 test x"$ac_has_langinfo_h" = xyes &&
71396 test x"$ac_XPG2funcs" = xyes;
71397 then
71398 ac_XPG2_wchar_t=yes
71399 else
71400 ac_XPG2_wchar_t=no
71402 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
71403 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
71405 # At the moment, only enable wchar_t specializations if all the
71406 # above support is present.
71407 if test x"$ac_isoC99_wchar_t" = xyes &&
71408 test x"$ac_XPG2_wchar_t" = xyes;
71409 then
71410 cat >>confdefs.h <<\_ACEOF
71411 #define _GLIBCXX_USE_WCHAR_T 1
71412 _ACEOF
71414 enable_wchar_t=yes
71417 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
71418 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
71419 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
71420 echo "${ECHO_T}$enable_wchar_t" >&6
71422 cat >>confdefs.h <<\_ACEOF
71423 #define HAVE_COPYSIGN 1
71424 _ACEOF
71426 cat >>confdefs.h <<\_ACEOF
71427 #define HAVE_COPYSIGNF 1
71428 _ACEOF
71430 cat >>confdefs.h <<\_ACEOF
71431 #define HAVE_FINITE 1
71432 _ACEOF
71434 cat >>confdefs.h <<\_ACEOF
71435 #define HAVE_FINITEF 1
71436 _ACEOF
71438 cat >>confdefs.h <<\_ACEOF
71439 #define HAVE_FREXPF 1
71440 _ACEOF
71442 cat >>confdefs.h <<\_ACEOF
71443 #define HAVE_HYPOTF 1
71444 _ACEOF
71446 cat >>confdefs.h <<\_ACEOF
71447 #define HAVE_ISINF 1
71448 _ACEOF
71450 cat >>confdefs.h <<\_ACEOF
71451 #define HAVE_ISINFF 1
71452 _ACEOF
71454 cat >>confdefs.h <<\_ACEOF
71455 #define HAVE_ISNAN 1
71456 _ACEOF
71458 cat >>confdefs.h <<\_ACEOF
71459 #define HAVE_ISNANF 1
71460 _ACEOF
71462 cat >>confdefs.h <<\_ACEOF
71463 #define HAVE_SINCOS 1
71464 _ACEOF
71466 cat >>confdefs.h <<\_ACEOF
71467 #define HAVE_SINCOSF 1
71468 _ACEOF
71470 if test x"long_double_math_on_this_cpu" = x"yes"; then
71471 cat >>confdefs.h <<\_ACEOF
71472 #define HAVE_FINITEL 1
71473 _ACEOF
71475 cat >>confdefs.h <<\_ACEOF
71476 #define HAVE_HYPOTL 1
71477 _ACEOF
71479 cat >>confdefs.h <<\_ACEOF
71480 #define HAVE_ISINFL 1
71481 _ACEOF
71483 cat >>confdefs.h <<\_ACEOF
71484 #define HAVE_ISNANL 1
71485 _ACEOF
71489 *-vxworks)
71490 cat >>confdefs.h <<\_ACEOF
71491 #define HAVE_MMAP 1
71492 _ACEOF
71494 cat >>confdefs.h <<\_ACEOF
71495 #define HAVE_ACOSF 1
71496 _ACEOF
71498 cat >>confdefs.h <<\_ACEOF
71499 #define HAVE_ASINF 1
71500 _ACEOF
71502 cat >>confdefs.h <<\_ACEOF
71503 #define HAVE_ATAN2F 1
71504 _ACEOF
71506 cat >>confdefs.h <<\_ACEOF
71507 #define HAVE_ATANF 1
71508 _ACEOF
71510 cat >>confdefs.h <<\_ACEOF
71511 #define HAVE_CEILF 1
71512 _ACEOF
71514 cat >>confdefs.h <<\_ACEOF
71515 #define HAVE_COSF 1
71516 _ACEOF
71518 cat >>confdefs.h <<\_ACEOF
71519 #define HAVE_COSHF 1
71520 _ACEOF
71522 cat >>confdefs.h <<\_ACEOF
71523 #define HAVE_EXPF 1
71524 _ACEOF
71526 cat >>confdefs.h <<\_ACEOF
71527 #define HAVE_FABSF 1
71528 _ACEOF
71530 cat >>confdefs.h <<\_ACEOF
71531 #define HAVE_FLOORF 1
71532 _ACEOF
71534 cat >>confdefs.h <<\_ACEOF
71535 #define HAVE_FMODF 1
71536 _ACEOF
71538 cat >>confdefs.h <<\_ACEOF
71539 #define HAVE_HYPOT 1
71540 _ACEOF
71542 cat >>confdefs.h <<\_ACEOF
71543 #define HAVE_LOG10F 1
71544 _ACEOF
71546 cat >>confdefs.h <<\_ACEOF
71547 #define HAVE_LOGF 1
71548 _ACEOF
71550 cat >>confdefs.h <<\_ACEOF
71551 #define HAVE_POWF 1
71552 _ACEOF
71554 cat >>confdefs.h <<\_ACEOF
71555 #define HAVE_SINF 1
71556 _ACEOF
71558 cat >>confdefs.h <<\_ACEOF
71559 #define HAVE_SINHF 1
71560 _ACEOF
71562 cat >>confdefs.h <<\_ACEOF
71563 #define HAVE_SQRTF 1
71564 _ACEOF
71566 cat >>confdefs.h <<\_ACEOF
71567 #define HAVE_TANF 1
71568 _ACEOF
71570 cat >>confdefs.h <<\_ACEOF
71571 #define HAVE_TANHF 1
71572 _ACEOF
71575 *-windiss*)
71576 cat >>confdefs.h <<\_ACEOF
71577 #define HAVE_ACOSF 1
71578 _ACEOF
71580 cat >>confdefs.h <<\_ACEOF
71581 #define HAVE_ACOSL 1
71582 _ACEOF
71584 cat >>confdefs.h <<\_ACEOF
71585 #define HAVE_ASINF 1
71586 _ACEOF
71588 cat >>confdefs.h <<\_ACEOF
71589 #define HAVE_ASINL 1
71590 _ACEOF
71592 cat >>confdefs.h <<\_ACEOF
71593 #define HAVE_ATAN2F 1
71594 _ACEOF
71596 cat >>confdefs.h <<\_ACEOF
71597 #define HAVE_ATAN2L 1
71598 _ACEOF
71600 cat >>confdefs.h <<\_ACEOF
71601 #define HAVE_ATANF 1
71602 _ACEOF
71604 cat >>confdefs.h <<\_ACEOF
71605 #define HAVE_ATANL 1
71606 _ACEOF
71608 cat >>confdefs.h <<\_ACEOF
71609 #define HAVE_CEILF 1
71610 _ACEOF
71612 cat >>confdefs.h <<\_ACEOF
71613 #define HAVE_CEILL 1
71614 _ACEOF
71616 cat >>confdefs.h <<\_ACEOF
71617 #define HAVE_COPYSIGN 1
71618 _ACEOF
71620 cat >>confdefs.h <<\_ACEOF
71621 #define HAVE_COPYSIGNF 1
71622 _ACEOF
71624 cat >>confdefs.h <<\_ACEOF
71625 #define HAVE_COSF 1
71626 _ACEOF
71628 cat >>confdefs.h <<\_ACEOF
71629 #define HAVE_COSL 1
71630 _ACEOF
71632 cat >>confdefs.h <<\_ACEOF
71633 #define HAVE_COSHF 1
71634 _ACEOF
71636 cat >>confdefs.h <<\_ACEOF
71637 #define HAVE_COSHL 1
71638 _ACEOF
71640 cat >>confdefs.h <<\_ACEOF
71641 #define HAVE_EXPF 1
71642 _ACEOF
71644 cat >>confdefs.h <<\_ACEOF
71645 #define HAVE_EXPL 1
71646 _ACEOF
71648 cat >>confdefs.h <<\_ACEOF
71649 #define HAVE_FABSF 1
71650 _ACEOF
71652 cat >>confdefs.h <<\_ACEOF
71653 #define HAVE_FABSL 1
71654 _ACEOF
71656 cat >>confdefs.h <<\_ACEOF
71657 #define HAVE_FLOORF 1
71658 _ACEOF
71660 cat >>confdefs.h <<\_ACEOF
71661 #define HAVE_FLOORL 1
71662 _ACEOF
71664 cat >>confdefs.h <<\_ACEOF
71665 #define HAVE_FMODF 1
71666 _ACEOF
71668 cat >>confdefs.h <<\_ACEOF
71669 #define HAVE_FMODL 1
71670 _ACEOF
71672 cat >>confdefs.h <<\_ACEOF
71673 #define HAVE_FREXPF 1
71674 _ACEOF
71676 cat >>confdefs.h <<\_ACEOF
71677 #define HAVE_FREXPL 1
71678 _ACEOF
71680 cat >>confdefs.h <<\_ACEOF
71681 #define HAVE_LDEXPF 1
71682 _ACEOF
71684 cat >>confdefs.h <<\_ACEOF
71685 #define HAVE_LDEXPL 1
71686 _ACEOF
71688 cat >>confdefs.h <<\_ACEOF
71689 #define HAVE_LOG10F 1
71690 _ACEOF
71692 cat >>confdefs.h <<\_ACEOF
71693 #define HAVE_LOG10L 1
71694 _ACEOF
71696 cat >>confdefs.h <<\_ACEOF
71697 #define HAVE_LOGF 1
71698 _ACEOF
71700 cat >>confdefs.h <<\_ACEOF
71701 #define HAVE_MODFF 1
71702 _ACEOF
71704 cat >>confdefs.h <<\_ACEOF
71705 #define HAVE_MODFL 1
71706 _ACEOF
71708 cat >>confdefs.h <<\_ACEOF
71709 #define HAVE_POWF 1
71710 _ACEOF
71712 cat >>confdefs.h <<\_ACEOF
71713 #define HAVE_POWL 1
71714 _ACEOF
71716 cat >>confdefs.h <<\_ACEOF
71717 #define HAVE_SINF 1
71718 _ACEOF
71720 cat >>confdefs.h <<\_ACEOF
71721 #define HAVE_SINL 1
71722 _ACEOF
71724 cat >>confdefs.h <<\_ACEOF
71725 #define HAVE_SINHF 1
71726 _ACEOF
71728 cat >>confdefs.h <<\_ACEOF
71729 #define HAVE_SINHL 1
71730 _ACEOF
71732 cat >>confdefs.h <<\_ACEOF
71733 #define HAVE_SQRTF 1
71734 _ACEOF
71736 cat >>confdefs.h <<\_ACEOF
71737 #define HAVE_SQRTL 1
71738 _ACEOF
71740 cat >>confdefs.h <<\_ACEOF
71741 #define HAVE_TANF 1
71742 _ACEOF
71744 cat >>confdefs.h <<\_ACEOF
71745 #define HAVE_TANL 1
71746 _ACEOF
71748 cat >>confdefs.h <<\_ACEOF
71749 #define HAVE_TANHF 1
71750 _ACEOF
71752 cat >>confdefs.h <<\_ACEOF
71753 #define HAVE_TANHL 1
71754 _ACEOF
71758 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
71759 echo "$as_me: error: No support for this host/target combination." >&2;}
71760 { (exit 1); exit 1; }; }
71762 esac
71767 # At some point, we should differentiate between architectures
71768 # like x86, which have long double versions, and alpha/powerpc/etc.,
71769 # which don't. For the time being, punt.
71770 if test x"long_double_math_on_this_cpu" = x"yes"; then
71771 cat >>confdefs.h <<\_ACEOF
71772 #define HAVE_ACOSL 1
71773 _ACEOF
71775 cat >>confdefs.h <<\_ACEOF
71776 #define HAVE_ASINL 1
71777 _ACEOF
71779 cat >>confdefs.h <<\_ACEOF
71780 #define HAVE_ATAN2L 1
71781 _ACEOF
71783 cat >>confdefs.h <<\_ACEOF
71784 #define HAVE_ATANL 1
71785 _ACEOF
71787 cat >>confdefs.h <<\_ACEOF
71788 #define HAVE_CEILL 1
71789 _ACEOF
71791 cat >>confdefs.h <<\_ACEOF
71792 #define HAVE_COPYSIGNL 1
71793 _ACEOF
71795 cat >>confdefs.h <<\_ACEOF
71796 #define HAVE_COSL 1
71797 _ACEOF
71799 cat >>confdefs.h <<\_ACEOF
71800 #define HAVE_COSHL 1
71801 _ACEOF
71803 cat >>confdefs.h <<\_ACEOF
71804 #define HAVE_EXPL 1
71805 _ACEOF
71807 cat >>confdefs.h <<\_ACEOF
71808 #define HAVE_FABSL 1
71809 _ACEOF
71811 cat >>confdefs.h <<\_ACEOF
71812 #define HAVE_FLOORL 1
71813 _ACEOF
71815 cat >>confdefs.h <<\_ACEOF
71816 #define HAVE_FMODL 1
71817 _ACEOF
71819 cat >>confdefs.h <<\_ACEOF
71820 #define HAVE_FREXPL 1
71821 _ACEOF
71823 cat >>confdefs.h <<\_ACEOF
71824 #define HAVE_LDEXPL 1
71825 _ACEOF
71827 cat >>confdefs.h <<\_ACEOF
71828 #define HAVE_LOG10L 1
71829 _ACEOF
71831 cat >>confdefs.h <<\_ACEOF
71832 #define HAVE_LOGL 1
71833 _ACEOF
71835 cat >>confdefs.h <<\_ACEOF
71836 #define HAVE_MODFL 1
71837 _ACEOF
71839 cat >>confdefs.h <<\_ACEOF
71840 #define HAVE_POWL 1
71841 _ACEOF
71843 cat >>confdefs.h <<\_ACEOF
71844 #define HAVE_SINCOSL 1
71845 _ACEOF
71847 cat >>confdefs.h <<\_ACEOF
71848 #define HAVE_SINL 1
71849 _ACEOF
71851 cat >>confdefs.h <<\_ACEOF
71852 #define HAVE_SINHL 1
71853 _ACEOF
71855 cat >>confdefs.h <<\_ACEOF
71856 #define HAVE_SQRTL 1
71857 _ACEOF
71859 cat >>confdefs.h <<\_ACEOF
71860 #define HAVE_TANL 1
71861 _ACEOF
71863 cat >>confdefs.h <<\_ACEOF
71864 #define HAVE_TANHL 1
71865 _ACEOF
71871 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
71874 # Check whether --enable-symvers or --disable-symvers was given.
71875 if test "${enable_symvers+set}" = set; then
71876 enableval="$enable_symvers"
71878 case "$enableval" in
71879 yes|no|gnu) ;;
71880 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
71881 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
71882 { (exit 1); exit 1; }; } ;;
71883 esac
71885 else
71886 enable_symvers=yes
71890 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
71891 # don't know enough about $LD to do tricks...
71893 # FIXME The following test is too strict, in theory.
71894 if test $enable_shared = no ||
71895 test "x$LD" = x ||
71896 test x$glibcxx_gnu_ld_version = x; then
71897 enable_symvers=no
71900 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
71901 if test $enable_symvers != no; then
71902 echo "$as_me:$LINENO: checking for shared libgcc" >&5
71903 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
71904 ac_save_CFLAGS="$CFLAGS"
71905 CFLAGS=' -lgcc_s'
71906 if test x$gcc_no_link = xyes; then
71907 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71909 { (exit 1); exit 1; }; }
71911 cat >conftest.$ac_ext <<_ACEOF
71912 /* confdefs.h. */
71913 _ACEOF
71914 cat confdefs.h >>conftest.$ac_ext
71915 cat >>conftest.$ac_ext <<_ACEOF
71916 /* end confdefs.h. */
71919 main ()
71921 return 0;
71923 return 0;
71925 _ACEOF
71926 rm -f conftest.$ac_objext conftest$ac_exeext
71927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71928 (eval $ac_link) 2>conftest.er1
71929 ac_status=$?
71930 grep -v '^ *+' conftest.er1 >conftest.err
71931 rm -f conftest.er1
71932 cat conftest.err >&5
71933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71934 (exit $ac_status); } &&
71935 { ac_try='test -z "$ac_c_werror_flag"
71936 || test ! -s conftest.err'
71937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71938 (eval $ac_try) 2>&5
71939 ac_status=$?
71940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71941 (exit $ac_status); }; } &&
71942 { ac_try='test -s conftest$ac_exeext'
71943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71944 (eval $ac_try) 2>&5
71945 ac_status=$?
71946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71947 (exit $ac_status); }; }; then
71948 glibcxx_shared_libgcc=yes
71949 else
71950 echo "$as_me: failed program was:" >&5
71951 sed 's/^/| /' conftest.$ac_ext >&5
71953 glibcxx_shared_libgcc=no
71955 rm -f conftest.err conftest.$ac_objext \
71956 conftest$ac_exeext conftest.$ac_ext
71957 CFLAGS="$ac_save_CFLAGS"
71958 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
71959 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
71962 # For GNU ld, we need at least this version. The format is described in
71963 # GLIBCXX_CHECK_LINKER_FEATURES above.
71964 glibcxx_min_gnu_ld_version=21400
71965 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
71967 # Check to see if unspecified "yes" value can win, given results above.
71968 # Change "yes" into either "no" or a style name.
71969 if test $enable_symvers = yes; then
71970 if test $with_gnu_ld = yes &&
71971 test $glibcxx_shared_libgcc = yes;
71972 then
71973 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
71974 enable_symvers=gnu
71975 else
71976 # The right tools, the right setup, but too old. Fallbacks?
71977 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
71978 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
71979 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
71980 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
71981 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
71982 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
71983 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
71984 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
71985 if test $glibcxx_gnu_ld_version -ge 21200 ; then
71986 # Globbing fix is present, proper block support is not.
71987 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71988 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71989 enable_symvers=no
71990 else
71991 # 2.11 or older.
71992 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71993 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71994 enable_symvers=no
71997 else
71998 # just fail for now
71999 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
72000 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
72001 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
72002 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
72003 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
72004 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
72005 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72006 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72007 enable_symvers=no
72011 # Everything parsed; figure out what file to use.
72012 case $enable_symvers in
72014 SYMVER_MAP=config/linker-map.dummy
72016 gnu)
72017 SYMVER_MAP=config/linker-map.gnu
72018 cat >>confdefs.h <<\_ACEOF
72019 #define _GLIBCXX_SYMVER 1
72020 _ACEOF
72023 esac
72028 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
72029 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
72032 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
72034 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
72035 # Do checks for memory limit functions.
72037 setrlimit_have_headers=yes
72041 for ac_header in unistd.h sys/time.h sys/resource.h
72043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
72044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72045 echo "$as_me:$LINENO: checking for $ac_header" >&5
72046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72048 echo $ECHO_N "(cached) $ECHO_C" >&6
72050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72052 else
72053 # Is the header compilable?
72054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
72055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
72056 cat >conftest.$ac_ext <<_ACEOF
72057 /* confdefs.h. */
72058 _ACEOF
72059 cat confdefs.h >>conftest.$ac_ext
72060 cat >>conftest.$ac_ext <<_ACEOF
72061 /* end confdefs.h. */
72062 $ac_includes_default
72063 #include <$ac_header>
72064 _ACEOF
72065 rm -f conftest.$ac_objext
72066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72067 (eval $ac_compile) 2>conftest.er1
72068 ac_status=$?
72069 grep -v '^ *+' conftest.er1 >conftest.err
72070 rm -f conftest.er1
72071 cat conftest.err >&5
72072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72073 (exit $ac_status); } &&
72074 { ac_try='test -z "$ac_c_werror_flag"
72075 || test ! -s conftest.err'
72076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72077 (eval $ac_try) 2>&5
72078 ac_status=$?
72079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72080 (exit $ac_status); }; } &&
72081 { ac_try='test -s conftest.$ac_objext'
72082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72083 (eval $ac_try) 2>&5
72084 ac_status=$?
72085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72086 (exit $ac_status); }; }; then
72087 ac_header_compiler=yes
72088 else
72089 echo "$as_me: failed program was:" >&5
72090 sed 's/^/| /' conftest.$ac_ext >&5
72092 ac_header_compiler=no
72094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
72096 echo "${ECHO_T}$ac_header_compiler" >&6
72098 # Is the header present?
72099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
72100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
72101 cat >conftest.$ac_ext <<_ACEOF
72102 /* confdefs.h. */
72103 _ACEOF
72104 cat confdefs.h >>conftest.$ac_ext
72105 cat >>conftest.$ac_ext <<_ACEOF
72106 /* end confdefs.h. */
72107 #include <$ac_header>
72108 _ACEOF
72109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
72110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
72111 ac_status=$?
72112 grep -v '^ *+' conftest.er1 >conftest.err
72113 rm -f conftest.er1
72114 cat conftest.err >&5
72115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72116 (exit $ac_status); } >/dev/null; then
72117 if test -s conftest.err; then
72118 ac_cpp_err=$ac_c_preproc_warn_flag
72119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
72120 else
72121 ac_cpp_err=
72123 else
72124 ac_cpp_err=yes
72126 if test -z "$ac_cpp_err"; then
72127 ac_header_preproc=yes
72128 else
72129 echo "$as_me: failed program was:" >&5
72130 sed 's/^/| /' conftest.$ac_ext >&5
72132 ac_header_preproc=no
72134 rm -f conftest.err conftest.$ac_ext
72135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
72136 echo "${ECHO_T}$ac_header_preproc" >&6
72138 # So? What about this header?
72139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
72140 yes:no: )
72141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
72142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
72143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
72144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
72145 ac_header_preproc=yes
72147 no:yes:* )
72148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
72149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
72150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
72151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
72152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
72153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
72154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
72155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
72156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
72157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
72158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
72159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
72161 cat <<\_ASBOX
72162 ## ----------------------------------------- ##
72163 ## Report this to the package-unused lists. ##
72164 ## ----------------------------------------- ##
72165 _ASBOX
72167 sed "s/^/$as_me: WARNING: /" >&2
72169 esac
72170 echo "$as_me:$LINENO: checking for $ac_header" >&5
72171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72173 echo $ECHO_N "(cached) $ECHO_C" >&6
72174 else
72175 eval "$as_ac_Header=\$ac_header_preproc"
72177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
72182 cat >>confdefs.h <<_ACEOF
72183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
72184 _ACEOF
72186 else
72187 setrlimit_have_headers=no
72190 done
72192 # If don't have the headers, then we can't run the tests now, and we
72193 # won't be seeing any of these during testsuite compilation.
72194 if test $setrlimit_have_headers = yes; then
72195 # Can't do these in a loop, else the resulting syntax is wrong.
72197 cat >conftest.$ac_ext <<_ACEOF
72198 /* confdefs.h. */
72199 _ACEOF
72200 cat confdefs.h >>conftest.$ac_ext
72201 cat >>conftest.$ac_ext <<_ACEOF
72202 /* end confdefs.h. */
72203 #include <unistd.h>
72204 #include <sys/time.h>
72205 #include <sys/resource.h>
72208 main ()
72210 int f = RLIMIT_DATA ;
72212 return 0;
72214 _ACEOF
72215 rm -f conftest.$ac_objext
72216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72217 (eval $ac_compile) 2>conftest.er1
72218 ac_status=$?
72219 grep -v '^ *+' conftest.er1 >conftest.err
72220 rm -f conftest.er1
72221 cat conftest.err >&5
72222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72223 (exit $ac_status); } &&
72224 { ac_try='test -z "$ac_c_werror_flag"
72225 || test ! -s conftest.err'
72226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72227 (eval $ac_try) 2>&5
72228 ac_status=$?
72229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72230 (exit $ac_status); }; } &&
72231 { ac_try='test -s conftest.$ac_objext'
72232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72233 (eval $ac_try) 2>&5
72234 ac_status=$?
72235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72236 (exit $ac_status); }; }; then
72237 glibcxx_mresult=1
72238 else
72239 echo "$as_me: failed program was:" >&5
72240 sed 's/^/| /' conftest.$ac_ext >&5
72242 glibcxx_mresult=0
72244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72246 cat >>confdefs.h <<_ACEOF
72247 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
72248 _ACEOF
72252 cat >conftest.$ac_ext <<_ACEOF
72253 /* confdefs.h. */
72254 _ACEOF
72255 cat confdefs.h >>conftest.$ac_ext
72256 cat >>conftest.$ac_ext <<_ACEOF
72257 /* end confdefs.h. */
72258 #include <unistd.h>
72259 #include <sys/time.h>
72260 #include <sys/resource.h>
72263 main ()
72265 int f = RLIMIT_RSS ;
72267 return 0;
72269 _ACEOF
72270 rm -f conftest.$ac_objext
72271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72272 (eval $ac_compile) 2>conftest.er1
72273 ac_status=$?
72274 grep -v '^ *+' conftest.er1 >conftest.err
72275 rm -f conftest.er1
72276 cat conftest.err >&5
72277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72278 (exit $ac_status); } &&
72279 { ac_try='test -z "$ac_c_werror_flag"
72280 || test ! -s conftest.err'
72281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72282 (eval $ac_try) 2>&5
72283 ac_status=$?
72284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72285 (exit $ac_status); }; } &&
72286 { ac_try='test -s conftest.$ac_objext'
72287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72288 (eval $ac_try) 2>&5
72289 ac_status=$?
72290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72291 (exit $ac_status); }; }; then
72292 glibcxx_mresult=1
72293 else
72294 echo "$as_me: failed program was:" >&5
72295 sed 's/^/| /' conftest.$ac_ext >&5
72297 glibcxx_mresult=0
72299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72301 cat >>confdefs.h <<_ACEOF
72302 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
72303 _ACEOF
72307 cat >conftest.$ac_ext <<_ACEOF
72308 /* confdefs.h. */
72309 _ACEOF
72310 cat confdefs.h >>conftest.$ac_ext
72311 cat >>conftest.$ac_ext <<_ACEOF
72312 /* end confdefs.h. */
72313 #include <unistd.h>
72314 #include <sys/time.h>
72315 #include <sys/resource.h>
72318 main ()
72320 int f = RLIMIT_VMEM ;
72322 return 0;
72324 _ACEOF
72325 rm -f conftest.$ac_objext
72326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72327 (eval $ac_compile) 2>conftest.er1
72328 ac_status=$?
72329 grep -v '^ *+' conftest.er1 >conftest.err
72330 rm -f conftest.er1
72331 cat conftest.err >&5
72332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72333 (exit $ac_status); } &&
72334 { ac_try='test -z "$ac_c_werror_flag"
72335 || test ! -s conftest.err'
72336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72337 (eval $ac_try) 2>&5
72338 ac_status=$?
72339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72340 (exit $ac_status); }; } &&
72341 { ac_try='test -s conftest.$ac_objext'
72342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72343 (eval $ac_try) 2>&5
72344 ac_status=$?
72345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72346 (exit $ac_status); }; }; then
72347 glibcxx_mresult=1
72348 else
72349 echo "$as_me: failed program was:" >&5
72350 sed 's/^/| /' conftest.$ac_ext >&5
72352 glibcxx_mresult=0
72354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72356 cat >>confdefs.h <<_ACEOF
72357 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
72358 _ACEOF
72362 cat >conftest.$ac_ext <<_ACEOF
72363 /* confdefs.h. */
72364 _ACEOF
72365 cat confdefs.h >>conftest.$ac_ext
72366 cat >>conftest.$ac_ext <<_ACEOF
72367 /* end confdefs.h. */
72368 #include <unistd.h>
72369 #include <sys/time.h>
72370 #include <sys/resource.h>
72373 main ()
72375 int f = RLIMIT_AS ;
72377 return 0;
72379 _ACEOF
72380 rm -f conftest.$ac_objext
72381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72382 (eval $ac_compile) 2>conftest.er1
72383 ac_status=$?
72384 grep -v '^ *+' conftest.er1 >conftest.err
72385 rm -f conftest.er1
72386 cat conftest.err >&5
72387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72388 (exit $ac_status); } &&
72389 { ac_try='test -z "$ac_c_werror_flag"
72390 || test ! -s conftest.err'
72391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72392 (eval $ac_try) 2>&5
72393 ac_status=$?
72394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72395 (exit $ac_status); }; } &&
72396 { ac_try='test -s conftest.$ac_objext'
72397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72398 (eval $ac_try) 2>&5
72399 ac_status=$?
72400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72401 (exit $ac_status); }; }; then
72402 glibcxx_mresult=1
72403 else
72404 echo "$as_me: failed program was:" >&5
72405 sed 's/^/| /' conftest.$ac_ext >&5
72407 glibcxx_mresult=0
72409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72411 cat >>confdefs.h <<_ACEOF
72412 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
72413 _ACEOF
72417 # Check for rlimit, setrlimit.
72418 if test "${ac_setrlimit+set}" = set; then
72419 echo $ECHO_N "(cached) $ECHO_C" >&6
72420 else
72422 cat >conftest.$ac_ext <<_ACEOF
72423 /* confdefs.h. */
72424 _ACEOF
72425 cat confdefs.h >>conftest.$ac_ext
72426 cat >>conftest.$ac_ext <<_ACEOF
72427 /* end confdefs.h. */
72428 #include <unistd.h>
72429 #include <sys/time.h>
72430 #include <sys/resource.h>
72433 main ()
72435 struct rlimit r;
72436 setrlimit(0, &r);
72438 return 0;
72440 _ACEOF
72441 rm -f conftest.$ac_objext
72442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72443 (eval $ac_compile) 2>conftest.er1
72444 ac_status=$?
72445 grep -v '^ *+' conftest.er1 >conftest.err
72446 rm -f conftest.er1
72447 cat conftest.err >&5
72448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72449 (exit $ac_status); } &&
72450 { ac_try='test -z "$ac_c_werror_flag"
72451 || test ! -s conftest.err'
72452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72453 (eval $ac_try) 2>&5
72454 ac_status=$?
72455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72456 (exit $ac_status); }; } &&
72457 { ac_try='test -s conftest.$ac_objext'
72458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72459 (eval $ac_try) 2>&5
72460 ac_status=$?
72461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72462 (exit $ac_status); }; }; then
72463 ac_setrlimit=yes
72464 else
72465 echo "$as_me: failed program was:" >&5
72466 sed 's/^/| /' conftest.$ac_ext >&5
72468 ac_setrlimit=no
72470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72476 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
72477 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
72478 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
72479 ac_mem_limits=yes
72480 cat >>confdefs.h <<\_ACEOF
72481 #define _GLIBCXX_MEM_LIMITS 1
72482 _ACEOF
72484 else
72485 ac_mem_limits=no
72487 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
72488 echo "${ECHO_T}$ac_mem_limits" >&6
72491 # Look for setenv, so that extended locale tests can be performed.
72493 echo "$as_me:$LINENO: checking for setenv declaration" >&5
72494 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
72495 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
72496 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
72497 echo $ECHO_N "(cached) $ECHO_C" >&6
72498 else
72502 ac_ext=cc
72503 ac_cpp='$CXXCPP $CPPFLAGS'
72504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72508 cat >conftest.$ac_ext <<_ACEOF
72509 /* confdefs.h. */
72510 _ACEOF
72511 cat confdefs.h >>conftest.$ac_ext
72512 cat >>conftest.$ac_ext <<_ACEOF
72513 /* end confdefs.h. */
72514 #include <stdlib.h>
72516 main ()
72518 setenv(0, 0, 0);
72520 return 0;
72522 _ACEOF
72523 rm -f conftest.$ac_objext
72524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72525 (eval $ac_compile) 2>conftest.er1
72526 ac_status=$?
72527 grep -v '^ *+' conftest.er1 >conftest.err
72528 rm -f conftest.er1
72529 cat conftest.err >&5
72530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72531 (exit $ac_status); } &&
72532 { ac_try='test -z "$ac_cxx_werror_flag"
72533 || test ! -s conftest.err'
72534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72535 (eval $ac_try) 2>&5
72536 ac_status=$?
72537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72538 (exit $ac_status); }; } &&
72539 { ac_try='test -s conftest.$ac_objext'
72540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72541 (eval $ac_try) 2>&5
72542 ac_status=$?
72543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72544 (exit $ac_status); }; }; then
72545 glibcxx_cv_func_setenv_use=yes
72546 else
72547 echo "$as_me: failed program was:" >&5
72548 sed 's/^/| /' conftest.$ac_ext >&5
72550 glibcxx_cv_func_setenv_use=no
72552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72553 ac_ext=c
72554 ac_cpp='$CPP $CPPFLAGS'
72555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72563 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
72564 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
72565 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
72567 for ac_func in setenv
72569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
72570 echo "$as_me:$LINENO: checking for $ac_func" >&5
72571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
72572 if eval "test \"\${$as_ac_var+set}\" = set"; then
72573 echo $ECHO_N "(cached) $ECHO_C" >&6
72574 else
72575 if test x$gcc_no_link = xyes; then
72576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72578 { (exit 1); exit 1; }; }
72580 cat >conftest.$ac_ext <<_ACEOF
72581 /* confdefs.h. */
72582 _ACEOF
72583 cat confdefs.h >>conftest.$ac_ext
72584 cat >>conftest.$ac_ext <<_ACEOF
72585 /* end confdefs.h. */
72586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72588 #define $ac_func innocuous_$ac_func
72590 /* System header to define __stub macros and hopefully few prototypes,
72591 which can conflict with char $ac_func (); below.
72592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72593 <limits.h> exists even on freestanding compilers. */
72595 #ifdef __STDC__
72596 # include <limits.h>
72597 #else
72598 # include <assert.h>
72599 #endif
72601 #undef $ac_func
72603 /* Override any gcc2 internal prototype to avoid an error. */
72604 #ifdef __cplusplus
72605 extern "C"
72607 #endif
72608 /* We use char because int might match the return type of a gcc2
72609 builtin and then its argument prototype would still apply. */
72610 char $ac_func ();
72611 /* The GNU C library defines this for functions which it implements
72612 to always fail with ENOSYS. Some functions are actually named
72613 something starting with __ and the normal name is an alias. */
72614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
72615 choke me
72616 #else
72617 char (*f) () = $ac_func;
72618 #endif
72619 #ifdef __cplusplus
72621 #endif
72624 main ()
72626 return f != $ac_func;
72628 return 0;
72630 _ACEOF
72631 rm -f conftest.$ac_objext conftest$ac_exeext
72632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72633 (eval $ac_link) 2>conftest.er1
72634 ac_status=$?
72635 grep -v '^ *+' conftest.er1 >conftest.err
72636 rm -f conftest.er1
72637 cat conftest.err >&5
72638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72639 (exit $ac_status); } &&
72640 { ac_try='test -z "$ac_c_werror_flag"
72641 || test ! -s conftest.err'
72642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72643 (eval $ac_try) 2>&5
72644 ac_status=$?
72645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72646 (exit $ac_status); }; } &&
72647 { ac_try='test -s conftest$ac_exeext'
72648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72649 (eval $ac_try) 2>&5
72650 ac_status=$?
72651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72652 (exit $ac_status); }; }; then
72653 eval "$as_ac_var=yes"
72654 else
72655 echo "$as_me: failed program was:" >&5
72656 sed 's/^/| /' conftest.$ac_ext >&5
72658 eval "$as_ac_var=no"
72660 rm -f conftest.err conftest.$ac_objext \
72661 conftest$ac_exeext conftest.$ac_ext
72663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
72664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
72665 if test `eval echo '${'$as_ac_var'}'` = yes; then
72666 cat >>confdefs.h <<_ACEOF
72667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72668 _ACEOF
72671 done
72676 if test $enable_symvers = no; then
72677 enable_abi_check=no
72678 else
72679 case "$host" in
72680 *-*-cygwin*)
72681 enable_abi_check=no ;;
72683 enable_abi_check=yes ;;
72684 esac
72686 else
72687 # Only build this as native, since automake does not understand
72688 # CXX_FOR_BUILD.
72689 enable_abi_check=no
72692 # Export file names for ABI checking.
72693 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
72700 # Propagate the target-specific source directories through the build chain.
72701 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
72702 # uses it, and it only gets used in this file.)
72703 ATOMICITY_SRCDIR=config/${atomicity_dir}
72704 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
72705 OS_INC_SRCDIR=config/${os_include_dir}
72710 # Determine cross-compile flags and AM_CONDITIONALs.
72711 #AC_SUBST(GLIBCXX_IS_NATIVE)
72712 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
72713 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
72714 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
72717 if test $is_hosted = yes; then
72718 GLIBCXX_HOSTED_TRUE=
72719 GLIBCXX_HOSTED_FALSE='#'
72720 else
72721 GLIBCXX_HOSTED_TRUE='#'
72722 GLIBCXX_HOSTED_FALSE=
72728 if test $enable_libstdcxx_pch = yes; then
72729 GLIBCXX_BUILD_PCH_TRUE=
72730 GLIBCXX_BUILD_PCH_FALSE='#'
72731 else
72732 GLIBCXX_BUILD_PCH_TRUE='#'
72733 GLIBCXX_BUILD_PCH_FALSE=
72739 if test $enable_cheaders = c; then
72740 GLIBCXX_C_HEADERS_C_TRUE=
72741 GLIBCXX_C_HEADERS_C_FALSE='#'
72742 else
72743 GLIBCXX_C_HEADERS_C_TRUE='#'
72744 GLIBCXX_C_HEADERS_C_FALSE=
72750 if test $enable_cheaders = c_std; then
72751 GLIBCXX_C_HEADERS_C_STD_TRUE=
72752 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
72753 else
72754 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
72755 GLIBCXX_C_HEADERS_C_STD_FALSE=
72761 if test $c_compatibility = yes; then
72762 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
72763 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
72764 else
72765 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
72766 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
72772 if test $enable_libstdcxx_debug = yes; then
72773 GLIBCXX_BUILD_DEBUG_TRUE=
72774 GLIBCXX_BUILD_DEBUG_FALSE='#'
72775 else
72776 GLIBCXX_BUILD_DEBUG_TRUE='#'
72777 GLIBCXX_BUILD_DEBUG_FALSE=
72783 if test $enable_symvers != no; then
72784 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
72785 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
72786 else
72787 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
72788 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
72794 if test $enable_wchar_t = yes; then
72795 GLIBCXX_TEST_WCHAR_T_TRUE=
72796 GLIBCXX_TEST_WCHAR_T_FALSE='#'
72797 else
72798 GLIBCXX_TEST_WCHAR_T_TRUE='#'
72799 GLIBCXX_TEST_WCHAR_T_FALSE=
72805 if test $enable_abi_check = yes; then
72806 GLIBCXX_TEST_ABI_TRUE=
72807 GLIBCXX_TEST_ABI_FALSE='#'
72808 else
72809 GLIBCXX_TEST_ABI_TRUE='#'
72810 GLIBCXX_TEST_ABI_FALSE=
72816 cat >confcache <<\_ACEOF
72817 # This file is a shell script that caches the results of configure
72818 # tests run on this system so they can be shared between configure
72819 # scripts and configure runs, see configure's option --config-cache.
72820 # It is not useful on other systems. If it contains results you don't
72821 # want to keep, you may remove or edit it.
72823 # config.status only pays attention to the cache file if you give it
72824 # the --recheck option to rerun configure.
72826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
72827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
72828 # following values.
72830 _ACEOF
72832 # The following way of writing the cache mishandles newlines in values,
72833 # but we know of no workaround that is simple, portable, and efficient.
72834 # So, don't put newlines in cache variables' values.
72835 # Ultrix sh set writes to stderr and can't be redirected directly,
72836 # and sets the high bit in the cache file unless we assign to the vars.
72838 (set) 2>&1 |
72839 case `(ac_space=' '; set | grep ac_space) 2>&1` in
72840 *ac_space=\ *)
72841 # `set' does not quote correctly, so add quotes (double-quote
72842 # substitution turns \\\\ into \\, and sed turns \\ into \).
72843 sed -n \
72844 "s/'/'\\\\''/g;
72845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
72848 # `set' quotes correctly as required by POSIX, so do not add quotes.
72849 sed -n \
72850 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
72852 esac;
72854 sed '
72855 t clear
72856 : clear
72857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
72858 t end
72859 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
72860 : end' >>confcache
72861 if diff $cache_file confcache >/dev/null 2>&1; then :; else
72862 if test -w $cache_file; then
72863 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
72864 cat confcache >$cache_file
72865 else
72866 echo "not updating unwritable cache $cache_file"
72869 rm -f confcache
72871 if test ${multilib} = yes; then
72872 multilib_arg="--enable-multilib"
72873 else
72874 multilib_arg=
72877 # Export all the install information.
72879 glibcxx_toolexecdir=no
72880 glibcxx_toolexeclibdir=no
72881 glibcxx_prefixdir=$prefix
72883 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
72884 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
72886 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
72887 if test "${with_gxx_include_dir+set}" = set; then
72888 withval="$with_gxx_include_dir"
72889 case "$withval" in
72890 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
72891 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
72892 { (exit 1); exit 1; }; } ;;
72893 no) gxx_include_dir=no ;;
72894 *) gxx_include_dir=$withval ;;
72895 esac
72896 else
72897 gxx_include_dir=no
72899 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72900 echo "${ECHO_T}$gxx_include_dir" >&6
72902 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
72903 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
72904 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
72905 if test "${enable_version_specific_runtime_libs+set}" = set; then
72906 enableval="$enable_version_specific_runtime_libs"
72907 case "$enableval" in
72908 yes) version_specific_libs=yes ;;
72909 no) version_specific_libs=no ;;
72910 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
72911 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
72912 { (exit 1); exit 1; }; };;
72913 esac
72914 else
72915 version_specific_libs=no
72917 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
72918 echo "${ECHO_T}$version_specific_libs" >&6
72920 # Default case for install directory for include files.
72921 if test $version_specific_libs = no && test $gxx_include_dir = no; then
72922 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
72925 # Version-specific runtime libs processing.
72926 if test $version_specific_libs = yes; then
72927 # Need the gcc compiler version to know where to install libraries
72928 # and header files if --enable-version-specific-runtime-libs option
72929 # is selected. FIXME: these variables are misnamed, there are
72930 # no executables installed in _toolexecdir or _toolexeclibdir.
72931 if test x"$gxx_include_dir" = x"no"; then
72932 gxx_include_dir='${libdir}/gcc/${host_alias}/'$gcc_version/include/c++
72934 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72935 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
72938 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
72939 # Install a library built with a cross compiler in tooldir, not libdir.
72940 if test x"$glibcxx_toolexecdir" = x"no"; then
72941 if test -n "$with_cross_host" &&
72942 test x"$with_cross_host" != x"no"; then
72943 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
72944 glibcxx_toolexeclibdir='${toolexecdir}/lib'
72945 else
72946 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72947 glibcxx_toolexeclibdir='${libdir}'
72949 multi_os_directory=`$CXX -print-multi-os-directory`
72950 case $multi_os_directory in
72951 .) ;; # Avoid trailing /.
72952 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
72953 esac
72956 echo "$as_me:$LINENO: checking for install location" >&5
72957 echo $ECHO_N "checking for install location... $ECHO_C" >&6
72958 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72959 echo "${ECHO_T}$gxx_include_dir" >&6
72967 # Export all the include and flag information to Makefiles.
72969 # Used for every C++ compile we perform.
72970 GLIBCXX_INCLUDES="\
72971 -I$glibcxx_builddir/include/$host_alias \
72972 -I$glibcxx_builddir/include \
72973 -I$glibcxx_srcdir/libsupc++"
72975 # For Canadian crosses, pick this up too.
72976 if test $CANADIAN = yes; then
72977 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
72980 # Stuff in the actual top level. Currently only used by libsupc++ to
72981 # get unwind* headers from the gcc dir.
72982 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
72983 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
72985 # Now, export this to all the little Makefiles....
72990 # Optimization flags that are probably a good idea for thrill-seekers. Just
72991 # uncomment the lines below and make, everything else is ready to go...
72992 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
72993 OPTIMIZE_CXXFLAGS=
72996 WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
73000 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
73001 grep "enable shared" > /dev/null;
73002 then
73003 LIBSUPCXX_PICFLAGS=-prefer-pic
73004 else
73005 LIBSUPCXX_PICFLAGS=
73009 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
73011 ac_config_files="$ac_config_files scripts/check_survey"
73013 ac_config_files="$ac_config_files scripts/testsuite_flags"
73016 ac_config_commands="$ac_config_commands default"
73019 cat >confcache <<\_ACEOF
73020 # This file is a shell script that caches the results of configure
73021 # tests run on this system so they can be shared between configure
73022 # scripts and configure runs, see configure's option --config-cache.
73023 # It is not useful on other systems. If it contains results you don't
73024 # want to keep, you may remove or edit it.
73026 # config.status only pays attention to the cache file if you give it
73027 # the --recheck option to rerun configure.
73029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73031 # following values.
73033 _ACEOF
73035 # The following way of writing the cache mishandles newlines in values,
73036 # but we know of no workaround that is simple, portable, and efficient.
73037 # So, don't put newlines in cache variables' values.
73038 # Ultrix sh set writes to stderr and can't be redirected directly,
73039 # and sets the high bit in the cache file unless we assign to the vars.
73041 (set) 2>&1 |
73042 case `(ac_space=' '; set | grep ac_space) 2>&1` in
73043 *ac_space=\ *)
73044 # `set' does not quote correctly, so add quotes (double-quote
73045 # substitution turns \\\\ into \\, and sed turns \\ into \).
73046 sed -n \
73047 "s/'/'\\\\''/g;
73048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73051 # `set' quotes correctly as required by POSIX, so do not add quotes.
73052 sed -n \
73053 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73055 esac;
73057 sed '
73058 t clear
73059 : clear
73060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73061 t end
73062 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73063 : end' >>confcache
73064 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73065 if test -w $cache_file; then
73066 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73067 cat confcache >$cache_file
73068 else
73069 echo "not updating unwritable cache $cache_file"
73072 rm -f confcache
73074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73075 # Let make expand exec_prefix.
73076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73078 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73079 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73080 # trailing colons and then remove the whole line if VPATH becomes empty
73081 # (actually we leave an empty line to preserve line numbers).
73082 if test "x$srcdir" = x.; then
73083 ac_vpsub='/^[ ]*VPATH[ ]*=/{
73084 s/:*\$(srcdir):*/:/;
73085 s/:*\${srcdir}:*/:/;
73086 s/:*@srcdir@:*/:/;
73087 s/^\([^=]*=[ ]*\):*/\1/;
73088 s/:*$//;
73089 s/^[^=]*=[ ]*$//;
73093 DEFS=-DHAVE_CONFIG_H
73095 ac_libobjs=
73096 ac_ltlibobjs=
73097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73098 # 1. Remove the extension, and $U if already installed.
73099 ac_i=`echo "$ac_i" |
73100 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
73101 # 2. Add them.
73102 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
73103 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
73104 done
73105 LIBOBJS=$ac_libobjs
73107 LTLIBOBJS=$ac_ltlibobjs
73110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73111 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
73112 Usually this means the macro was only invoked conditionally." >&5
73113 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
73114 Usually this means the macro was only invoked conditionally." >&2;}
73115 { (exit 1); exit 1; }; }
73117 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
73118 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73119 Usually this means the macro was only invoked conditionally." >&5
73120 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73121 Usually this means the macro was only invoked conditionally." >&2;}
73122 { (exit 1); exit 1; }; }
73124 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
73125 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73126 Usually this means the macro was only invoked conditionally." >&5
73127 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73128 Usually this means the macro was only invoked conditionally." >&2;}
73129 { (exit 1); exit 1; }; }
73131 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
73132 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73133 Usually this means the macro was only invoked conditionally." >&5
73134 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73135 Usually this means the macro was only invoked conditionally." >&2;}
73136 { (exit 1); exit 1; }; }
73138 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
73139 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73140 Usually this means the macro was only invoked conditionally." >&5
73141 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73142 Usually this means the macro was only invoked conditionally." >&2;}
73143 { (exit 1); exit 1; }; }
73145 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
73146 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73147 Usually this means the macro was only invoked conditionally." >&5
73148 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73149 Usually this means the macro was only invoked conditionally." >&2;}
73150 { (exit 1); exit 1; }; }
73152 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
73153 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73154 Usually this means the macro was only invoked conditionally." >&5
73155 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73156 Usually this means the macro was only invoked conditionally." >&2;}
73157 { (exit 1); exit 1; }; }
73159 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
73160 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73161 Usually this means the macro was only invoked conditionally." >&5
73162 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73163 Usually this means the macro was only invoked conditionally." >&2;}
73164 { (exit 1); exit 1; }; }
73166 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
73167 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73168 Usually this means the macro was only invoked conditionally." >&5
73169 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73170 Usually this means the macro was only invoked conditionally." >&2;}
73171 { (exit 1); exit 1; }; }
73173 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
73174 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73175 Usually this means the macro was only invoked conditionally." >&5
73176 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73177 Usually this means the macro was only invoked conditionally." >&2;}
73178 { (exit 1); exit 1; }; }
73181 : ${CONFIG_STATUS=./config.status}
73182 ac_clean_files_save=$ac_clean_files
73183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
73184 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
73185 echo "$as_me: creating $CONFIG_STATUS" >&6;}
73186 cat >$CONFIG_STATUS <<_ACEOF
73187 #! $SHELL
73188 # Generated by $as_me.
73189 # Run this file to recreate the current configuration.
73190 # Compiler output produced by configure, useful for debugging
73191 # configure, is in config.log if it exists.
73193 debug=false
73194 ac_cs_recheck=false
73195 ac_cs_silent=false
73196 SHELL=\${CONFIG_SHELL-$SHELL}
73197 _ACEOF
73199 cat >>$CONFIG_STATUS <<\_ACEOF
73200 ## --------------------- ##
73201 ## M4sh Initialization. ##
73202 ## --------------------- ##
73204 # Be Bourne compatible
73205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
73206 emulate sh
73207 NULLCMD=:
73208 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
73209 # is contrary to our usage. Disable this feature.
73210 alias -g '${1+"$@"}'='"$@"'
73211 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73212 set -o posix
73214 DUALCASE=1; export DUALCASE # for MKS sh
73216 # Support unset when possible.
73217 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
73218 as_unset=unset
73219 else
73220 as_unset=false
73224 # Work around bugs in pre-3.0 UWIN ksh.
73225 $as_unset ENV MAIL MAILPATH
73226 PS1='$ '
73227 PS2='> '
73228 PS4='+ '
73230 # NLS nuisances.
73231 for as_var in \
73232 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
73233 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
73234 LC_TELEPHONE LC_TIME
73236 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
73237 eval $as_var=C; export $as_var
73238 else
73239 $as_unset $as_var
73241 done
73243 # Required to use basename.
73244 if expr a : '\(a\)' >/dev/null 2>&1; then
73245 as_expr=expr
73246 else
73247 as_expr=false
73250 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
73251 as_basename=basename
73252 else
73253 as_basename=false
73257 # Name of the executable.
73258 as_me=`$as_basename "$0" ||
73259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73260 X"$0" : 'X\(//\)$' \| \
73261 X"$0" : 'X\(/\)$' \| \
73262 . : '\(.\)' 2>/dev/null ||
73263 echo X/"$0" |
73264 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73265 /^X\/\(\/\/\)$/{ s//\1/; q; }
73266 /^X\/\(\/\).*/{ s//\1/; q; }
73267 s/.*/./; q'`
73270 # PATH needs CR, and LINENO needs CR and PATH.
73271 # Avoid depending upon Character Ranges.
73272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
73273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
73275 as_cr_digits='0123456789'
73276 as_cr_alnum=$as_cr_Letters$as_cr_digits
73278 # The user is always right.
73279 if test "${PATH_SEPARATOR+set}" != set; then
73280 echo "#! /bin/sh" >conf$$.sh
73281 echo "exit 0" >>conf$$.sh
73282 chmod +x conf$$.sh
73283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73284 PATH_SEPARATOR=';'
73285 else
73286 PATH_SEPARATOR=:
73288 rm -f conf$$.sh
73292 as_lineno_1=$LINENO
73293 as_lineno_2=$LINENO
73294 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73295 test "x$as_lineno_1" != "x$as_lineno_2" &&
73296 test "x$as_lineno_3" = "x$as_lineno_2" || {
73297 # Find who we are. Look in the path if we contain no path at all
73298 # relative or not.
73299 case $0 in
73300 *[\\/]* ) as_myself=$0 ;;
73301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73302 for as_dir in $PATH
73304 IFS=$as_save_IFS
73305 test -z "$as_dir" && as_dir=.
73306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73307 done
73310 esac
73311 # We did not find ourselves, most probably we were run as `sh COMMAND'
73312 # in which case we are not to be found in the path.
73313 if test "x$as_myself" = x; then
73314 as_myself=$0
73316 if test ! -f "$as_myself"; then
73317 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
73318 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
73319 { (exit 1); exit 1; }; }
73321 case $CONFIG_SHELL in
73323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73324 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
73326 IFS=$as_save_IFS
73327 test -z "$as_dir" && as_dir=.
73328 for as_base in sh bash ksh sh5; do
73329 case $as_dir in
73331 if ("$as_dir/$as_base" -c '
73332 as_lineno_1=$LINENO
73333 as_lineno_2=$LINENO
73334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73335 test "x$as_lineno_1" != "x$as_lineno_2" &&
73336 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
73337 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
73338 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
73339 CONFIG_SHELL=$as_dir/$as_base
73340 export CONFIG_SHELL
73341 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
73342 fi;;
73343 esac
73344 done
73345 done
73347 esac
73349 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
73350 # uniformly replaced by the line number. The first 'sed' inserts a
73351 # line-number line before each line; the second 'sed' does the real
73352 # work. The second script uses 'N' to pair each line-number line
73353 # with the numbered line, and appends trailing '-' during
73354 # substitution so that $LINENO is not a special case at line end.
73355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
73356 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
73357 sed '=' <$as_myself |
73358 sed '
73360 s,$,-,
73361 : loop
73362 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
73363 t loop
73364 s,-$,,
73365 s,^['$as_cr_digits']*\n,,
73366 ' >$as_me.lineno &&
73367 chmod +x $as_me.lineno ||
73368 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
73369 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
73370 { (exit 1); exit 1; }; }
73372 # Don't try to exec as it changes $[0], causing all sort of problems
73373 # (the dirname of $[0] is not the place where we might find the
73374 # original and so on. Autoconf is especially sensible to this).
73375 . ./$as_me.lineno
73376 # Exit status is that of the last command.
73377 exit
73381 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
73382 *c*,-n*) ECHO_N= ECHO_C='
73383 ' ECHO_T=' ' ;;
73384 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
73385 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
73386 esac
73388 if expr a : '\(a\)' >/dev/null 2>&1; then
73389 as_expr=expr
73390 else
73391 as_expr=false
73394 rm -f conf$$ conf$$.exe conf$$.file
73395 echo >conf$$.file
73396 if ln -s conf$$.file conf$$ 2>/dev/null; then
73397 # We could just check for DJGPP; but this test a) works b) is more generic
73398 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
73399 if test -f conf$$.exe; then
73400 # Don't use ln at all; we don't have any links
73401 as_ln_s='cp -p'
73402 else
73403 as_ln_s='ln -s'
73405 elif ln conf$$.file conf$$ 2>/dev/null; then
73406 as_ln_s=ln
73407 else
73408 as_ln_s='cp -p'
73410 rm -f conf$$ conf$$.exe conf$$.file
73412 if mkdir -p . 2>/dev/null; then
73413 as_mkdir_p=:
73414 else
73415 test -d ./-p && rmdir ./-p
73416 as_mkdir_p=false
73419 as_executable_p="test -f"
73421 # Sed expression to map a string onto a valid CPP name.
73422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
73424 # Sed expression to map a string onto a valid variable name.
73425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
73428 # IFS
73429 # We need space, tab and new line, in precisely that order.
73430 as_nl='
73432 IFS=" $as_nl"
73434 # CDPATH.
73435 $as_unset CDPATH
73437 exec 6>&1
73439 # Open the log real soon, to keep \$[0] and so on meaningful, and to
73440 # report actual input values of CONFIG_FILES etc. instead of their
73441 # values after options handling. Logging --version etc. is OK.
73442 exec 5>>config.log
73444 echo
73445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
73446 ## Running $as_me. ##
73447 _ASBOX
73448 } >&5
73449 cat >&5 <<_CSEOF
73451 This file was extended by package-unused $as_me version-unused, which was
73452 generated by GNU Autoconf 2.59. Invocation command line was
73454 CONFIG_FILES = $CONFIG_FILES
73455 CONFIG_HEADERS = $CONFIG_HEADERS
73456 CONFIG_LINKS = $CONFIG_LINKS
73457 CONFIG_COMMANDS = $CONFIG_COMMANDS
73458 $ $0 $@
73460 _CSEOF
73461 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
73462 echo >&5
73463 _ACEOF
73465 # Files that config.status was made for.
73466 if test -n "$ac_config_files"; then
73467 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
73470 if test -n "$ac_config_headers"; then
73471 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
73474 if test -n "$ac_config_links"; then
73475 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
73478 if test -n "$ac_config_commands"; then
73479 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
73482 cat >>$CONFIG_STATUS <<\_ACEOF
73484 ac_cs_usage="\
73485 \`$as_me' instantiates files from templates according to the
73486 current configuration.
73488 Usage: $0 [OPTIONS] [FILE]...
73490 -h, --help print this help, then exit
73491 -V, --version print version number, then exit
73492 -q, --quiet do not print progress messages
73493 -d, --debug don't remove temporary files
73494 --recheck update $as_me by reconfiguring in the same conditions
73495 --file=FILE[:TEMPLATE]
73496 instantiate the configuration file FILE
73497 --header=FILE[:TEMPLATE]
73498 instantiate the configuration header FILE
73500 Configuration files:
73501 $config_files
73503 Configuration headers:
73504 $config_headers
73506 Configuration commands:
73507 $config_commands
73509 Report bugs to <bug-autoconf@gnu.org>."
73510 _ACEOF
73512 cat >>$CONFIG_STATUS <<_ACEOF
73513 ac_cs_version="\\
73514 package-unused config.status version-unused
73515 configured by $0, generated by GNU Autoconf 2.59,
73516 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
73518 Copyright (C) 2003 Free Software Foundation, Inc.
73519 This config.status script is free software; the Free Software Foundation
73520 gives unlimited permission to copy, distribute and modify it."
73521 srcdir=$srcdir
73522 INSTALL="$INSTALL"
73523 _ACEOF
73525 cat >>$CONFIG_STATUS <<\_ACEOF
73526 # If no file are specified by the user, then we need to provide default
73527 # value. By we need to know if files were specified by the user.
73528 ac_need_defaults=:
73529 while test $# != 0
73531 case $1 in
73532 --*=*)
73533 ac_option=`expr "x$1" : 'x\([^=]*\)='`
73534 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
73535 ac_shift=:
73538 ac_option=$1
73539 ac_optarg=$2
73540 ac_shift=shift
73542 *) # This is not an option, so the user has probably given explicit
73543 # arguments.
73544 ac_option=$1
73545 ac_need_defaults=false;;
73546 esac
73548 case $ac_option in
73549 # Handling of the options.
73550 _ACEOF
73551 cat >>$CONFIG_STATUS <<\_ACEOF
73552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
73553 ac_cs_recheck=: ;;
73554 --version | --vers* | -V )
73555 echo "$ac_cs_version"; exit 0 ;;
73556 --he | --h)
73557 # Conflict between --help and --header
73558 { { echo "$as_me:$LINENO: error: ambiguous option: $1
73559 Try \`$0 --help' for more information." >&5
73560 echo "$as_me: error: ambiguous option: $1
73561 Try \`$0 --help' for more information." >&2;}
73562 { (exit 1); exit 1; }; };;
73563 --help | --hel | -h )
73564 echo "$ac_cs_usage"; exit 0 ;;
73565 --debug | --d* | -d )
73566 debug=: ;;
73567 --file | --fil | --fi | --f )
73568 $ac_shift
73569 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
73570 ac_need_defaults=false;;
73571 --header | --heade | --head | --hea )
73572 $ac_shift
73573 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
73574 ac_need_defaults=false;;
73575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
73576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
73577 ac_cs_silent=: ;;
73579 # This is an error.
73580 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
73581 Try \`$0 --help' for more information." >&5
73582 echo "$as_me: error: unrecognized option: $1
73583 Try \`$0 --help' for more information." >&2;}
73584 { (exit 1); exit 1; }; } ;;
73586 *) ac_config_targets="$ac_config_targets $1" ;;
73588 esac
73589 shift
73590 done
73592 ac_configure_extra_args=
73594 if $ac_cs_silent; then
73595 exec 6>/dev/null
73596 ac_configure_extra_args="$ac_configure_extra_args --silent"
73599 _ACEOF
73600 cat >>$CONFIG_STATUS <<_ACEOF
73601 if \$ac_cs_recheck; then
73602 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
73603 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
73606 _ACEOF
73608 cat >>$CONFIG_STATUS <<_ACEOF
73610 # INIT-COMMANDS section.
73614 srcdir="$srcdir"
73615 host="$host"
73616 target="$target"
73617 with_multisubdir="$with_multisubdir"
73618 with_multisrctop="$with_multisrctop"
73619 with_target_subdir="$with_target_subdir"
73620 ac_configure_args="${multilib_arg} ${ac_configure_args}"
73621 multi_basedir="$multi_basedir"
73622 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
73623 CC="$CC"
73625 # Variables needed in config.status (file generation) which aren't already
73626 # passed by autoconf.
73627 SUBDIRS="$SUBDIRS"
73630 _ACEOF
73634 cat >>$CONFIG_STATUS <<\_ACEOF
73635 for ac_config_target in $ac_config_targets
73637 case "$ac_config_target" in
73638 # Handling of arguments.
73639 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
73640 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
73641 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
73642 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
73643 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
73644 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
73645 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
73646 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
73647 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
73648 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
73649 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
73650 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
73651 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
73652 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
73653 { (exit 1); exit 1; }; };;
73654 esac
73655 done
73657 # If the user did not use the arguments to specify the items to instantiate,
73658 # then the envvar interface is used. Set only those that are not.
73659 # We use the long form for the default assignment because of an extremely
73660 # bizarre bug on SunOS 4.1.3.
73661 if $ac_need_defaults; then
73662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
73663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
73664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
73667 # Have a temporary directory for convenience. Make it in the build tree
73668 # simply because there is no reason to put it here, and in addition,
73669 # creating and moving files from /tmp can sometimes cause problems.
73670 # Create a temporary directory, and hook for its removal unless debugging.
73671 $debug ||
73673 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
73674 trap '{ (exit 1); exit 1; }' 1 2 13 15
73677 # Create a (secure) tmp directory for tmp files.
73680 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
73681 test -n "$tmp" && test -d "$tmp"
73682 } ||
73684 tmp=./confstat$$-$RANDOM
73685 (umask 077 && mkdir $tmp)
73686 } ||
73688 echo "$me: cannot create a temporary directory in ." >&2
73689 { (exit 1); exit 1; }
73692 _ACEOF
73694 cat >>$CONFIG_STATUS <<_ACEOF
73697 # CONFIG_FILES section.
73700 # No need to generate the scripts if there are no CONFIG_FILES.
73701 # This happens for instance when ./config.status config.h
73702 if test -n "\$CONFIG_FILES"; then
73703 # Protect against being on the right side of a sed subst in config.status.
73704 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
73705 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
73706 s,@SHELL@,$SHELL,;t t
73707 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
73708 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
73709 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
73710 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
73711 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
73712 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
73713 s,@exec_prefix@,$exec_prefix,;t t
73714 s,@prefix@,$prefix,;t t
73715 s,@program_transform_name@,$program_transform_name,;t t
73716 s,@bindir@,$bindir,;t t
73717 s,@sbindir@,$sbindir,;t t
73718 s,@libexecdir@,$libexecdir,;t t
73719 s,@datadir@,$datadir,;t t
73720 s,@sysconfdir@,$sysconfdir,;t t
73721 s,@sharedstatedir@,$sharedstatedir,;t t
73722 s,@localstatedir@,$localstatedir,;t t
73723 s,@libdir@,$libdir,;t t
73724 s,@includedir@,$includedir,;t t
73725 s,@oldincludedir@,$oldincludedir,;t t
73726 s,@infodir@,$infodir,;t t
73727 s,@mandir@,$mandir,;t t
73728 s,@build_alias@,$build_alias,;t t
73729 s,@host_alias@,$host_alias,;t t
73730 s,@target_alias@,$target_alias,;t t
73731 s,@DEFS@,$DEFS,;t t
73732 s,@ECHO_C@,$ECHO_C,;t t
73733 s,@ECHO_N@,$ECHO_N,;t t
73734 s,@ECHO_T@,$ECHO_T,;t t
73735 s,@LIBS@,$LIBS,;t t
73736 s,@libtool_VERSION@,$libtool_VERSION,;t t
73737 s,@multi_basedir@,$multi_basedir,;t t
73738 s,@build@,$build,;t t
73739 s,@build_cpu@,$build_cpu,;t t
73740 s,@build_vendor@,$build_vendor,;t t
73741 s,@build_os@,$build_os,;t t
73742 s,@host@,$host,;t t
73743 s,@host_cpu@,$host_cpu,;t t
73744 s,@host_vendor@,$host_vendor,;t t
73745 s,@host_os@,$host_os,;t t
73746 s,@target@,$target,;t t
73747 s,@target_cpu@,$target_cpu,;t t
73748 s,@target_vendor@,$target_vendor,;t t
73749 s,@target_os@,$target_os,;t t
73750 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
73751 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
73752 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
73753 s,@CYGPATH_W@,$CYGPATH_W,;t t
73754 s,@PACKAGE@,$PACKAGE,;t t
73755 s,@VERSION@,$VERSION,;t t
73756 s,@ACLOCAL@,$ACLOCAL,;t t
73757 s,@AUTOCONF@,$AUTOCONF,;t t
73758 s,@AUTOMAKE@,$AUTOMAKE,;t t
73759 s,@AUTOHEADER@,$AUTOHEADER,;t t
73760 s,@MAKEINFO@,$MAKEINFO,;t t
73761 s,@AMTAR@,$AMTAR,;t t
73762 s,@install_sh@,$install_sh,;t t
73763 s,@STRIP@,$STRIP,;t t
73764 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
73765 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
73766 s,@mkdir_p@,$mkdir_p,;t t
73767 s,@AWK@,$AWK,;t t
73768 s,@SET_MAKE@,$SET_MAKE,;t t
73769 s,@am__leading_dot@,$am__leading_dot,;t t
73770 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
73771 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
73772 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
73773 s,@CC@,$CC,;t t
73774 s,@ac_ct_CC@,$ac_ct_CC,;t t
73775 s,@EXEEXT@,$EXEEXT,;t t
73776 s,@OBJEXT@,$OBJEXT,;t t
73777 s,@CXX@,$CXX,;t t
73778 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
73779 s,@CFLAGS@,$CFLAGS,;t t
73780 s,@CXXFLAGS@,$CXXFLAGS,;t t
73781 s,@LN_S@,$LN_S,;t t
73782 s,@AS@,$AS,;t t
73783 s,@ac_ct_AS@,$ac_ct_AS,;t t
73784 s,@AR@,$AR,;t t
73785 s,@ac_ct_AR@,$ac_ct_AR,;t t
73786 s,@RANLIB@,$RANLIB,;t t
73787 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
73788 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
73789 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
73790 s,@MAINT@,$MAINT,;t t
73791 s,@LIBTOOL@,$LIBTOOL,;t t
73792 s,@CXXCPP@,$CXXCPP,;t t
73793 s,@CPPFLAGS@,$CPPFLAGS,;t t
73794 s,@enable_shared@,$enable_shared,;t t
73795 s,@enable_static@,$enable_static,;t t
73796 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
73797 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
73798 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
73799 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
73800 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
73801 s,@CSTDIO_H@,$CSTDIO_H,;t t
73802 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
73803 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
73804 s,@CPP@,$CPP,;t t
73805 s,@EGREP@,$EGREP,;t t
73806 s,@check_msgfmt@,$check_msgfmt,;t t
73807 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
73808 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
73809 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
73810 s,@USE_NLS@,$USE_NLS,;t t
73811 s,@CLOCALE_H@,$CLOCALE_H,;t t
73812 s,@CCODECVT_H@,$CCODECVT_H,;t t
73813 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
73814 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
73815 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
73816 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
73817 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
73818 s,@CMONEY_CC@,$CMONEY_CC,;t t
73819 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
73820 s,@CTIME_H@,$CTIME_H,;t t
73821 s,@CTIME_CC@,$CTIME_CC,;t t
73822 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
73823 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
73824 s,@ALLOCATOR_H@,$ALLOCATOR_H,;t t
73825 s,@ALLOCATOR_NAME@,$ALLOCATOR_NAME,;t t
73826 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
73827 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
73828 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
73829 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
73830 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
73831 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
73832 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
73833 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
73834 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
73835 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
73836 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
73837 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
73838 s,@WERROR@,$WERROR,;t t
73839 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
73840 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
73841 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
73842 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
73843 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
73844 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
73845 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
73846 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
73847 s,@baseline_dir@,$baseline_dir,;t t
73848 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
73849 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
73850 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
73851 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
73852 s,@ATOMICITY_SRCDIR@,$ATOMICITY_SRCDIR,;t t
73853 s,@ATOMIC_WORD_SRCDIR@,$ATOMIC_WORD_SRCDIR,;t t
73854 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
73855 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
73856 s,@gxx_include_dir@,$gxx_include_dir,;t t
73857 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
73858 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
73859 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
73860 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
73861 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
73862 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
73863 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
73864 s,@LIBOBJS@,$LIBOBJS,;t t
73865 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
73866 CEOF
73868 _ACEOF
73870 cat >>$CONFIG_STATUS <<\_ACEOF
73871 # Split the substitutions into bite-sized pieces for seds with
73872 # small command number limits, like on Digital OSF/1 and HP-UX.
73873 ac_max_sed_lines=48
73874 ac_sed_frag=1 # Number of current file.
73875 ac_beg=1 # First line for current file.
73876 ac_end=$ac_max_sed_lines # Line after last line for current file.
73877 ac_more_lines=:
73878 ac_sed_cmds=
73879 while $ac_more_lines; do
73880 if test $ac_beg -gt 1; then
73881 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73882 else
73883 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73885 if test ! -s $tmp/subs.frag; then
73886 ac_more_lines=false
73887 else
73888 # The purpose of the label and of the branching condition is to
73889 # speed up the sed processing (if there are no `@' at all, there
73890 # is no need to browse any of the substitutions).
73891 # These are the two extra sed commands mentioned above.
73892 (echo ':t
73893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
73894 if test -z "$ac_sed_cmds"; then
73895 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
73896 else
73897 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
73899 ac_sed_frag=`expr $ac_sed_frag + 1`
73900 ac_beg=$ac_end
73901 ac_end=`expr $ac_end + $ac_max_sed_lines`
73903 done
73904 if test -z "$ac_sed_cmds"; then
73905 ac_sed_cmds=cat
73907 fi # test -n "$CONFIG_FILES"
73909 _ACEOF
73910 cat >>$CONFIG_STATUS <<\_ACEOF
73911 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
73912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
73913 case $ac_file in
73914 - | *:- | *:-:* ) # input from stdin
73915 cat >$tmp/stdin
73916 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73918 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73920 * ) ac_file_in=$ac_file.in ;;
73921 esac
73923 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
73924 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
73925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73926 X"$ac_file" : 'X\(//\)[^/]' \| \
73927 X"$ac_file" : 'X\(//\)$' \| \
73928 X"$ac_file" : 'X\(/\)' \| \
73929 . : '\(.\)' 2>/dev/null ||
73930 echo X"$ac_file" |
73931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73933 /^X\(\/\/\)$/{ s//\1/; q; }
73934 /^X\(\/\).*/{ s//\1/; q; }
73935 s/.*/./; q'`
73936 { if $as_mkdir_p; then
73937 mkdir -p "$ac_dir"
73938 else
73939 as_dir="$ac_dir"
73940 as_dirs=
73941 while test ! -d "$as_dir"; do
73942 as_dirs="$as_dir $as_dirs"
73943 as_dir=`(dirname "$as_dir") 2>/dev/null ||
73944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73945 X"$as_dir" : 'X\(//\)[^/]' \| \
73946 X"$as_dir" : 'X\(//\)$' \| \
73947 X"$as_dir" : 'X\(/\)' \| \
73948 . : '\(.\)' 2>/dev/null ||
73949 echo X"$as_dir" |
73950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73952 /^X\(\/\/\)$/{ s//\1/; q; }
73953 /^X\(\/\).*/{ s//\1/; q; }
73954 s/.*/./; q'`
73955 done
73956 test ! -n "$as_dirs" || mkdir $as_dirs
73957 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
73958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
73959 { (exit 1); exit 1; }; }; }
73961 ac_builddir=.
73963 if test "$ac_dir" != .; then
73964 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
73965 # A "../" for each directory in $ac_dir_suffix.
73966 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
73967 else
73968 ac_dir_suffix= ac_top_builddir=
73971 case $srcdir in
73972 .) # No --srcdir option. We are building in place.
73973 ac_srcdir=.
73974 if test -z "$ac_top_builddir"; then
73975 ac_top_srcdir=.
73976 else
73977 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
73978 fi ;;
73979 [\\/]* | ?:[\\/]* ) # Absolute path.
73980 ac_srcdir=$srcdir$ac_dir_suffix;
73981 ac_top_srcdir=$srcdir ;;
73982 *) # Relative path.
73983 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
73984 ac_top_srcdir=$ac_top_builddir$srcdir ;;
73985 esac
73987 # Do not use `cd foo && pwd` to compute absolute paths, because
73988 # the directories may not exist.
73989 case `pwd` in
73990 .) ac_abs_builddir="$ac_dir";;
73992 case "$ac_dir" in
73993 .) ac_abs_builddir=`pwd`;;
73994 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
73995 *) ac_abs_builddir=`pwd`/"$ac_dir";;
73996 esac;;
73997 esac
73998 case $ac_abs_builddir in
73999 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74001 case ${ac_top_builddir}. in
74002 .) ac_abs_top_builddir=$ac_abs_builddir;;
74003 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74004 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74005 esac;;
74006 esac
74007 case $ac_abs_builddir in
74008 .) ac_abs_srcdir=$ac_srcdir;;
74010 case $ac_srcdir in
74011 .) ac_abs_srcdir=$ac_abs_builddir;;
74012 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74013 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74014 esac;;
74015 esac
74016 case $ac_abs_builddir in
74017 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74019 case $ac_top_srcdir in
74020 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74021 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74022 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74023 esac;;
74024 esac
74027 case $INSTALL in
74028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
74029 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
74030 esac
74032 if test x"$ac_file" != x-; then
74033 { echo "$as_me:$LINENO: creating $ac_file" >&5
74034 echo "$as_me: creating $ac_file" >&6;}
74035 rm -f "$ac_file"
74037 # Let's still pretend it is `configure' which instantiates (i.e., don't
74038 # use $as_me), people would be surprised to read:
74039 # /* config.h. Generated by config.status. */
74040 if test x"$ac_file" = x-; then
74041 configure_input=
74042 else
74043 configure_input="$ac_file. "
74045 configure_input=$configure_input"Generated from `echo $ac_file_in |
74046 sed 's,.*/,,'` by configure."
74048 # First look for the input files in the build tree, otherwise in the
74049 # src tree.
74050 ac_file_inputs=`IFS=:
74051 for f in $ac_file_in; do
74052 case $f in
74053 -) echo $tmp/stdin ;;
74054 [\\/$]*)
74055 # Absolute (can't be DOS-style, as IFS=:)
74056 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74057 echo "$as_me: error: cannot find input file: $f" >&2;}
74058 { (exit 1); exit 1; }; }
74059 echo "$f";;
74060 *) # Relative
74061 if test -f "$f"; then
74062 # Build tree
74063 echo "$f"
74064 elif test -f "$srcdir/$f"; then
74065 # Source tree
74066 echo "$srcdir/$f"
74067 else
74068 # /dev/null tree
74069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74070 echo "$as_me: error: cannot find input file: $f" >&2;}
74071 { (exit 1); exit 1; }; }
74072 fi;;
74073 esac
74074 done` || { (exit 1); exit 1; }
74075 _ACEOF
74076 cat >>$CONFIG_STATUS <<_ACEOF
74077 sed "$ac_vpsub
74078 $extrasub
74079 _ACEOF
74080 cat >>$CONFIG_STATUS <<\_ACEOF
74082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74083 s,@configure_input@,$configure_input,;t t
74084 s,@srcdir@,$ac_srcdir,;t t
74085 s,@abs_srcdir@,$ac_abs_srcdir,;t t
74086 s,@top_srcdir@,$ac_top_srcdir,;t t
74087 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
74088 s,@builddir@,$ac_builddir,;t t
74089 s,@abs_builddir@,$ac_abs_builddir,;t t
74090 s,@top_builddir@,$ac_top_builddir,;t t
74091 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
74092 s,@INSTALL@,$ac_INSTALL,;t t
74093 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
74094 rm -f $tmp/stdin
74095 if test x"$ac_file" != x-; then
74096 mv $tmp/out $ac_file
74097 else
74098 cat $tmp/out
74099 rm -f $tmp/out
74102 # Run the commands associated with the file.
74103 case $ac_file in
74104 scripts/check_survey ) chmod +x scripts/check_survey ;;
74105 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
74106 esac
74107 done
74108 _ACEOF
74109 cat >>$CONFIG_STATUS <<\_ACEOF
74112 # CONFIG_HEADER section.
74115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
74116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
74118 # ac_d sets the value in "#define NAME VALUE" lines.
74119 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
74120 ac_dB='[ ].*$,\1#\2'
74121 ac_dC=' '
74122 ac_dD=',;t'
74123 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
74124 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
74125 ac_uB='$,\1#\2define\3'
74126 ac_uC=' '
74127 ac_uD=',;t'
74129 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
74130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74131 case $ac_file in
74132 - | *:- | *:-:* ) # input from stdin
74133 cat >$tmp/stdin
74134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74138 * ) ac_file_in=$ac_file.in ;;
74139 esac
74141 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
74142 echo "$as_me: creating $ac_file" >&6;}
74144 # First look for the input files in the build tree, otherwise in the
74145 # src tree.
74146 ac_file_inputs=`IFS=:
74147 for f in $ac_file_in; do
74148 case $f in
74149 -) echo $tmp/stdin ;;
74150 [\\/$]*)
74151 # Absolute (can't be DOS-style, as IFS=:)
74152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74153 echo "$as_me: error: cannot find input file: $f" >&2;}
74154 { (exit 1); exit 1; }; }
74155 # Do quote $f, to prevent DOS paths from being IFS'd.
74156 echo "$f";;
74157 *) # Relative
74158 if test -f "$f"; then
74159 # Build tree
74160 echo "$f"
74161 elif test -f "$srcdir/$f"; then
74162 # Source tree
74163 echo "$srcdir/$f"
74164 else
74165 # /dev/null tree
74166 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74167 echo "$as_me: error: cannot find input file: $f" >&2;}
74168 { (exit 1); exit 1; }; }
74169 fi;;
74170 esac
74171 done` || { (exit 1); exit 1; }
74172 # Remove the trailing spaces.
74173 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
74175 _ACEOF
74177 # Transform confdefs.h into two sed scripts, `conftest.defines' and
74178 # `conftest.undefs', that substitutes the proper values into
74179 # config.h.in to produce config.h. The first handles `#define'
74180 # templates, and the second `#undef' templates.
74181 # And first: Protect against being on the right side of a sed subst in
74182 # config.status. Protect against being in an unquoted here document
74183 # in config.status.
74184 rm -f conftest.defines conftest.undefs
74185 # Using a here document instead of a string reduces the quoting nightmare.
74186 # Putting comments in sed scripts is not portable.
74188 # `end' is used to avoid that the second main sed command (meant for
74189 # 0-ary CPP macros) applies to n-ary macro definitions.
74190 # See the Autoconf documentation for `clear'.
74191 cat >confdef2sed.sed <<\_ACEOF
74192 s/[\\&,]/\\&/g
74193 s,[\\$`],\\&,g
74194 t clear
74195 : clear
74196 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
74197 t end
74198 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
74199 : end
74200 _ACEOF
74201 # If some macros were called several times there might be several times
74202 # the same #defines, which is useless. Nevertheless, we may not want to
74203 # sort them, since we want the *last* AC-DEFINE to be honored.
74204 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
74205 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
74206 rm -f confdef2sed.sed
74208 # This sed command replaces #undef with comments. This is necessary, for
74209 # example, in the case of _POSIX_SOURCE, which is predefined and required
74210 # on some systems where configure will not decide to define it.
74211 cat >>conftest.undefs <<\_ACEOF
74212 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
74213 _ACEOF
74215 # Break up conftest.defines because some shells have a limit on the size
74216 # of here documents, and old seds have small limits too (100 cmds).
74217 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
74218 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
74219 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
74220 echo ' :' >>$CONFIG_STATUS
74221 rm -f conftest.tail
74222 while grep . conftest.defines >/dev/null
74224 # Write a limited-size here document to $tmp/defines.sed.
74225 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
74226 # Speed up: don't consider the non `#define' lines.
74227 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
74228 # Work around the forget-to-reset-the-flag bug.
74229 echo 't clr' >>$CONFIG_STATUS
74230 echo ': clr' >>$CONFIG_STATUS
74231 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
74232 echo 'CEOF
74233 sed -f $tmp/defines.sed $tmp/in >$tmp/out
74234 rm -f $tmp/in
74235 mv $tmp/out $tmp/in
74236 ' >>$CONFIG_STATUS
74237 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
74238 rm -f conftest.defines
74239 mv conftest.tail conftest.defines
74240 done
74241 rm -f conftest.defines
74242 echo ' fi # grep' >>$CONFIG_STATUS
74243 echo >>$CONFIG_STATUS
74245 # Break up conftest.undefs because some shells have a limit on the size
74246 # of here documents, and old seds have small limits too (100 cmds).
74247 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
74248 rm -f conftest.tail
74249 while grep . conftest.undefs >/dev/null
74251 # Write a limited-size here document to $tmp/undefs.sed.
74252 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
74253 # Speed up: don't consider the non `#undef'
74254 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
74255 # Work around the forget-to-reset-the-flag bug.
74256 echo 't clr' >>$CONFIG_STATUS
74257 echo ': clr' >>$CONFIG_STATUS
74258 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
74259 echo 'CEOF
74260 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
74261 rm -f $tmp/in
74262 mv $tmp/out $tmp/in
74263 ' >>$CONFIG_STATUS
74264 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
74265 rm -f conftest.undefs
74266 mv conftest.tail conftest.undefs
74267 done
74268 rm -f conftest.undefs
74270 cat >>$CONFIG_STATUS <<\_ACEOF
74271 # Let's still pretend it is `configure' which instantiates (i.e., don't
74272 # use $as_me), people would be surprised to read:
74273 # /* config.h. Generated by config.status. */
74274 if test x"$ac_file" = x-; then
74275 echo "/* Generated by configure. */" >$tmp/config.h
74276 else
74277 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
74279 cat $tmp/in >>$tmp/config.h
74280 rm -f $tmp/in
74281 if test x"$ac_file" != x-; then
74282 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
74283 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
74284 echo "$as_me: $ac_file is unchanged" >&6;}
74285 else
74286 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74288 X"$ac_file" : 'X\(//\)[^/]' \| \
74289 X"$ac_file" : 'X\(//\)$' \| \
74290 X"$ac_file" : 'X\(/\)' \| \
74291 . : '\(.\)' 2>/dev/null ||
74292 echo X"$ac_file" |
74293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74295 /^X\(\/\/\)$/{ s//\1/; q; }
74296 /^X\(\/\).*/{ s//\1/; q; }
74297 s/.*/./; q'`
74298 { if $as_mkdir_p; then
74299 mkdir -p "$ac_dir"
74300 else
74301 as_dir="$ac_dir"
74302 as_dirs=
74303 while test ! -d "$as_dir"; do
74304 as_dirs="$as_dir $as_dirs"
74305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74307 X"$as_dir" : 'X\(//\)[^/]' \| \
74308 X"$as_dir" : 'X\(//\)$' \| \
74309 X"$as_dir" : 'X\(/\)' \| \
74310 . : '\(.\)' 2>/dev/null ||
74311 echo X"$as_dir" |
74312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74314 /^X\(\/\/\)$/{ s//\1/; q; }
74315 /^X\(\/\).*/{ s//\1/; q; }
74316 s/.*/./; q'`
74317 done
74318 test ! -n "$as_dirs" || mkdir $as_dirs
74319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74321 { (exit 1); exit 1; }; }; }
74323 rm -f $ac_file
74324 mv $tmp/config.h $ac_file
74326 else
74327 cat $tmp/config.h
74328 rm -f $tmp/config.h
74330 # Compute $ac_file's index in $config_headers.
74331 _am_stamp_count=1
74332 for _am_header in $config_headers :; do
74333 case $_am_header in
74334 $ac_file | $ac_file:* )
74335 break ;;
74337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
74338 esac
74339 done
74340 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
74341 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74342 X$ac_file : 'X\(//\)[^/]' \| \
74343 X$ac_file : 'X\(//\)$' \| \
74344 X$ac_file : 'X\(/\)' \| \
74345 . : '\(.\)' 2>/dev/null ||
74346 echo X$ac_file |
74347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74349 /^X\(\/\/\)$/{ s//\1/; q; }
74350 /^X\(\/\).*/{ s//\1/; q; }
74351 s/.*/./; q'`/stamp-h$_am_stamp_count
74352 done
74353 _ACEOF
74354 cat >>$CONFIG_STATUS <<\_ACEOF
74357 # CONFIG_COMMANDS section.
74359 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
74360 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
74361 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
74362 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
74363 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74364 X"$ac_dest" : 'X\(//\)[^/]' \| \
74365 X"$ac_dest" : 'X\(//\)$' \| \
74366 X"$ac_dest" : 'X\(/\)' \| \
74367 . : '\(.\)' 2>/dev/null ||
74368 echo X"$ac_dest" |
74369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74371 /^X\(\/\/\)$/{ s//\1/; q; }
74372 /^X\(\/\).*/{ s//\1/; q; }
74373 s/.*/./; q'`
74374 { if $as_mkdir_p; then
74375 mkdir -p "$ac_dir"
74376 else
74377 as_dir="$ac_dir"
74378 as_dirs=
74379 while test ! -d "$as_dir"; do
74380 as_dirs="$as_dir $as_dirs"
74381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74383 X"$as_dir" : 'X\(//\)[^/]' \| \
74384 X"$as_dir" : 'X\(//\)$' \| \
74385 X"$as_dir" : 'X\(/\)' \| \
74386 . : '\(.\)' 2>/dev/null ||
74387 echo X"$as_dir" |
74388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74390 /^X\(\/\/\)$/{ s//\1/; q; }
74391 /^X\(\/\).*/{ s//\1/; q; }
74392 s/.*/./; q'`
74393 done
74394 test ! -n "$as_dirs" || mkdir $as_dirs
74395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74397 { (exit 1); exit 1; }; }; }
74399 ac_builddir=.
74401 if test "$ac_dir" != .; then
74402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74403 # A "../" for each directory in $ac_dir_suffix.
74404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74405 else
74406 ac_dir_suffix= ac_top_builddir=
74409 case $srcdir in
74410 .) # No --srcdir option. We are building in place.
74411 ac_srcdir=.
74412 if test -z "$ac_top_builddir"; then
74413 ac_top_srcdir=.
74414 else
74415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74416 fi ;;
74417 [\\/]* | ?:[\\/]* ) # Absolute path.
74418 ac_srcdir=$srcdir$ac_dir_suffix;
74419 ac_top_srcdir=$srcdir ;;
74420 *) # Relative path.
74421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74422 ac_top_srcdir=$ac_top_builddir$srcdir ;;
74423 esac
74425 # Do not use `cd foo && pwd` to compute absolute paths, because
74426 # the directories may not exist.
74427 case `pwd` in
74428 .) ac_abs_builddir="$ac_dir";;
74430 case "$ac_dir" in
74431 .) ac_abs_builddir=`pwd`;;
74432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74433 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74434 esac;;
74435 esac
74436 case $ac_abs_builddir in
74437 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74439 case ${ac_top_builddir}. in
74440 .) ac_abs_top_builddir=$ac_abs_builddir;;
74441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74443 esac;;
74444 esac
74445 case $ac_abs_builddir in
74446 .) ac_abs_srcdir=$ac_srcdir;;
74448 case $ac_srcdir in
74449 .) ac_abs_srcdir=$ac_abs_builddir;;
74450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74452 esac;;
74453 esac
74454 case $ac_abs_builddir in
74455 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74457 case $ac_top_srcdir in
74458 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74461 esac;;
74462 esac
74465 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
74466 echo "$as_me: executing $ac_dest commands" >&6;}
74467 case $ac_dest in
74468 default-1 )
74469 # Only add multilib support code if we just rebuilt the top-level
74470 # Makefile.
74471 case " $CONFIG_FILES " in
74472 *" Makefile "*)
74473 ac_file=Makefile . ${multi_basedir}/config-ml.in
74475 esac ;;
74476 default ) if test -n "$CONFIG_FILES"; then
74477 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
74478 # that multilib installs will end up installed in the correct place.
74479 # The testsuite needs it for multilib-aware ABI baseline files.
74480 # To work around this not being passed down from config-ml.in ->
74481 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
74482 # append it here. Only modify Makefiles that have just been created.
74484 # Also, get rid of this simulated-VPATH thing that automake does.
74485 cat > vpsed << \_EOF
74486 s!`test -f '$<' || echo '$(srcdir)/'`!!
74487 _EOF
74488 for i in $SUBDIRS; do
74489 case $CONFIG_FILES in
74490 *${i}/Makefile*)
74491 #echo "Adding MULTISUBDIR to $i/Makefile"
74492 sed -f vpsed $i/Makefile > tmp
74493 grep '^MULTISUBDIR =' Makefile >> tmp
74494 mv tmp $i/Makefile
74496 esac
74497 done
74498 rm vpsed
74500 (cd include && ${MAKE-make})
74502 esac
74503 done
74504 _ACEOF
74506 cat >>$CONFIG_STATUS <<\_ACEOF
74508 { (exit 0); exit 0; }
74509 _ACEOF
74510 chmod +x $CONFIG_STATUS
74511 ac_clean_files=$ac_clean_files_save
74514 # configure is writing to config.log, and then calls config.status.
74515 # config.status does its own redirection, appending to config.log.
74516 # Unfortunately, on DOS this fails, as config.log is still kept open
74517 # by configure, so config.status won't be able to write to it; its
74518 # output is simply discarded. So we exec the FD to /dev/null,
74519 # effectively closing config.log, so it can be properly (re)opened and
74520 # appended to by config.status. When coming back to configure, we
74521 # need to make the FD available again.
74522 if test "$no_create" != yes; then
74523 ac_cs_success=:
74524 ac_config_status_args=
74525 test "$silent" = yes &&
74526 ac_config_status_args="$ac_config_status_args --quiet"
74527 exec 5>/dev/null
74528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
74529 exec 5>>config.log
74530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
74531 # would make configure fail if this is the last instruction.
74532 $ac_cs_success || { (exit 1); exit 1; }