2003-10-26 Andreas Jaeger <aj@suse.de>
[official-gcc.git] / libstdc++-v3 / configure
blobb472b6596c8e31b2128d27a90efec736155d3bf1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for package-unused version-unused.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='package-unused'
268 PACKAGE_TARNAME='libstdc++'
269 PACKAGE_VERSION='version-unused'
270 PACKAGE_STRING='package-unused version-unused'
271 PACKAGE_BUGREPORT=''
273 ac_unique_file="src/ios.cc"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 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 LIBUNWIND_FLAG 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 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_INC_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'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXXCPP_set=${CXXCPP+set}
753 ac_env_CXXCPP_value=$CXXCPP
754 ac_cv_env_CXXCPP_set=${CXXCPP+set}
755 ac_cv_env_CXXCPP_value=$CXXCPP
756 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_env_CPPFLAGS_value=$CPPFLAGS
758 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
760 ac_env_CPP_set=${CPP+set}
761 ac_env_CPP_value=$CPP
762 ac_cv_env_CPP_set=${CPP+set}
763 ac_cv_env_CPP_value=$CPP
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
771 cat <<_ACEOF
772 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
781 Configuration:
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792 _ACEOF
794 cat <<_ACEOF
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
797 [$ac_default_prefix]
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799 [PREFIX]
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
821 _ACEOF
823 cat <<\_ACEOF
825 Program names:
826 --program-prefix=PREFIX prepend PREFIX to installed program names
827 --program-suffix=SUFFIX append SUFFIX to installed program names
828 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830 System types:
831 --build=BUILD configure for building on BUILD [guessed]
832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
833 --target=TARGET configure for building compilers for TARGET [HOST]
834 _ACEOF
837 if test -n "$ac_init_help"; then
838 case $ac_init_help in
839 short | recursive ) echo "Configuration of package-unused version-unused:";;
840 esac
841 cat <<\_ACEOF
843 Optional Features:
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --enable-multilib build many library versions (default)
847 --enable-maintainer-mode enable make rules and dependencies not useful
848 (and sometimes confusing) to the casual installer
849 --enable-shared=PKGS build shared libraries default=yes
850 --enable-static=PKGS build static libraries default=yes
851 --enable-fast-install=PKGS optimize for fast installation default=yes
852 --disable-libtool-lock avoid locking (might break parallel builds)
853 --disable-hosted-libstdcxx
854 only build freestanding C++ runtime support
855 --enable-sjlj-exceptions
856 force use of builtin_setjmp for exceptions
857 [default=auto]
858 --enable-libunwind-exceptions
859 force use of libunwind for exceptions
860 [default=no]
861 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
862 [default=$is_hosted]
863 --enable-cstdio=PACKAGE use target-specific I/O package
864 [default=stdio]
865 --enable-clocale[=MODEL]
866 use MODEL for target locale package
867 [default=auto]
868 --enable-nls use Native Language Support (default)
869 --enable-cheaders=KIND construct "C" headers for g++
870 [default=$c_model]
871 --enable-c-mbchar enable multibyte (wide) characters
872 [default=yes]
873 --enable-c99 turns on ISO/IEC 9899:1999 support
874 [default=yes]
875 --enable-long-long enables I/O support for 'long long'
876 [default=yes]
877 --enable-concept-checks use Boost-derived template checks [default=no]
878 --enable-libstdcxx-debug-flags=FLAGS
879 pass compiler FLAGS when building debug library
880 [default="-g3 -O0"]
881 --enable-libstdcxx-debug
882 build extra debug library [default=no]
883 --enable-cxx-flags=FLAGS
884 pass compiler FLAGS when building library
885 [default=]
886 --enable-symvers=STYLE enables symbol versioning of the shared library
887 [default=yes]
888 --enable-version-specific-runtime-libs
889 Specify that runtime libraries should be installed
890 in a compiler-specific directory
892 Optional Packages:
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-target-subdir=SUBDIR
896 configuring in a subdirectory
897 --with-cross-host=HOST configuring with a cross compiler
898 --with-newlib assume newlib as a system C library
899 --with-gnu-ld assume the C compiler uses GNU ld default=no
900 --with-pic try to use only PIC/non-PIC objects default=use both
901 --with-gxx-include-dir=DIR
902 installation directory for include files
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CXX C++ compiler command
912 CXXFLAGS C++ compiler flags
913 CXXCPP C++ preprocessor
914 CPP C preprocessor
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
919 _ACEOF
922 if test "$ac_init_help" = "recursive"; then
923 # If there are subdirs, report their specific --help.
924 ac_popdir=`pwd`
925 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926 test -d $ac_dir || continue
927 ac_builddir=.
929 if test "$ac_dir" != .; then
930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931 # A "../" for each directory in $ac_dir_suffix.
932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934 ac_dir_suffix= ac_top_builddir=
937 case $srcdir in
938 .) # No --srcdir option. We are building in place.
939 ac_srcdir=.
940 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=.
942 else
943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 fi ;;
945 [\\/]* | ?:[\\/]* ) # Absolute path.
946 ac_srcdir=$srcdir$ac_dir_suffix;
947 ac_top_srcdir=$srcdir ;;
948 *) # Relative path.
949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
952 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
953 # absolute.
954 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
955 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
956 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
957 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 cd "$ac_popdir"
975 done
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981 package-unused configure version-unused
982 generated by GNU Autoconf 2.57
984 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
985 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by package-unused $as_me version-unused, which was
997 generated by GNU Autoconf 2.57. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_headers="$ac_config_headers config.h"
1336 # This works around the fact that libtool configuration may change LD
1337 # for this particular configuration, but some shells, instead of
1338 # keeping the changes in LD private, export them just because LD is
1339 # exported. Only used at the end of this file.
1340 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1342 # For libtool versioning info, format is CURRENT:REVISION:AGE
1343 libtool_VERSION=6:0:0
1346 # Find the rest of the source tree framework.
1348 # Sets up multi_basedir, which is srcdir/.. plus the usual
1349 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1350 # Default to --enable-multilib
1351 # Check whether --enable-multilib or --disable-multilib was given.
1352 if test "${enable_multilib+set}" = set; then
1353 enableval="$enable_multilib"
1354 case "$enableval" in
1355 yes) multilib=yes ;;
1356 no) multilib=no ;;
1357 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1358 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1359 { (exit 1); exit 1; }; } ;;
1360 esac
1361 else
1362 multilib=yes
1365 # We may get other options which we leave undocumented:
1366 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1367 # See config-ml.in if you want the gory details.
1369 if test "$srcdir" = "."; then
1370 if test "$with_target_subdir" != "."; then
1371 multi_basedir="$srcdir/$with_multisrctop../.."
1372 else
1373 multi_basedir="$srcdir/$with_multisrctop.."
1375 else
1376 multi_basedir="$srcdir/.."
1380 ac_config_commands="$ac_config_commands default-1"
1383 # The generated code is exactly the same, except that automake's looks in
1384 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1385 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1386 # know what they are or what the other differences might be (and they keep
1387 # changing anyhow).
1389 # Looking in multi_basedir seems smarter, so actually execute that branch.
1390 if false; then
1391 # this is for automake
1392 ac_aux_dir=
1393 for ac_dir in .. $srcdir/..; do
1394 if test -f $ac_dir/install-sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1397 break
1398 elif test -f $ac_dir/install.sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1401 break
1402 elif test -f $ac_dir/shtool; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 break
1407 done
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 else
1418 # this is for autoconf
1419 ac_aux_dir=
1420 for ac_dir in ${multi_basedir}; do
1421 if test -f $ac_dir/install-sh; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/install-sh -c"
1424 break
1425 elif test -f $ac_dir/install.sh; then
1426 ac_aux_dir=$ac_dir
1427 ac_install_sh="$ac_aux_dir/install.sh -c"
1428 break
1429 elif test -f $ac_dir/shtool; then
1430 ac_aux_dir=$ac_dir
1431 ac_install_sh="$ac_aux_dir/shtool install -c"
1432 break
1434 done
1435 if test -z "$ac_aux_dir"; then
1436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1437 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1438 { (exit 1); exit 1; }; }
1440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1448 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1450 # You will slowly go insane if you do not grok the following fact: when
1451 # building v3 as part of the compiler, the top-level /target/ becomes the
1452 # library's /host/. configure then causes --target to default to --host,
1453 # exactly like any other package using autoconf. Therefore, 'target' and
1454 # 'host' will always be the same. This makes sense both for native and
1455 # cross compilers, just think about it for a little while. :-)
1457 # Also, if v3 is being configured as part of a cross compiler, the top-level
1458 # configure script will pass the "real" host as $with_cross_host.
1460 # Do not delete or change the following two lines. For why, see
1461 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1462 # Make sure we can run config.sub.
1463 $ac_config_sub sun4 >/dev/null 2>&1 ||
1464 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1465 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1466 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: checking build system type" >&5
1469 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1470 if test "${ac_cv_build+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 ac_cv_build_alias=$build_alias
1474 test -z "$ac_cv_build_alias" &&
1475 ac_cv_build_alias=`$ac_config_guess`
1476 test -z "$ac_cv_build_alias" &&
1477 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1478 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1479 { (exit 1); exit 1; }; }
1480 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1487 echo "${ECHO_T}$ac_cv_build" >&6
1488 build=$ac_cv_build
1489 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 echo "$as_me:$LINENO: checking host system type" >&5
1495 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1496 if test "${ac_cv_host+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 ac_cv_host_alias=$host_alias
1500 test -z "$ac_cv_host_alias" &&
1501 ac_cv_host_alias=$ac_cv_build_alias
1502 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1509 echo "${ECHO_T}$ac_cv_host" >&6
1510 host=$ac_cv_host
1511 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516 echo "$as_me:$LINENO: checking target system type" >&5
1517 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1518 if test "${ac_cv_target+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 ac_cv_target_alias=$target_alias
1522 test "x$ac_cv_target_alias" = "x" &&
1523 ac_cv_target_alias=$ac_cv_host_alias
1524 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1525 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1526 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1527 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1531 echo "${ECHO_T}$ac_cv_target" >&6
1532 target=$ac_cv_target
1533 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538 # The aliases save the names the user supplied, while $host etc.
1539 # will get canonicalized.
1540 test -n "$target_alias" &&
1541 test "$program_prefix$program_suffix$program_transform_name" = \
1542 NONENONEs,x,x, &&
1543 program_prefix=${target_alias}-
1544 target_alias=${target_alias-$host_alias}
1546 # Handy for debugging:
1547 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1549 if test "$build" != "$host"; then
1550 # We are being configured with some form of cross compiler.
1551 GLIBCXX_IS_NATIVE=false
1553 else
1554 GLIBCXX_IS_NATIVE=true
1557 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1558 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1559 # 1.x: minimum required version
1560 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1561 # of other PACKAGE_* variables will, however, and there's nothing
1562 # we can do about that; they come from AC_INIT).
1563 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1564 # file in the top srcdir, etc, etc), so stop complaining.
1565 # no-dependencies: turns off auto dependency generation (just for now)
1566 # -Wall: turns on all automake warnings
1567 am__api_version="1.7"
1568 # Find a good install program. We prefer a C program (faster),
1569 # so one script is as good as another. But avoid the broken or
1570 # incompatible versions:
1571 # SysV /etc/install, /usr/sbin/install
1572 # SunOS /usr/etc/install
1573 # IRIX /sbin/install
1574 # AIX /bin/install
1575 # AmigaOS /C/install, which installs bootblocks on floppy discs
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 /usr/ucb/* ) ;;
1597 # OSF1 and SCO ODT 3.0 have their own names for install.
1598 # Don't use installbsd from OSF since it installs stuff as root
1599 # by default.
1600 for ac_prog in ginstall scoinst install; do
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603 if test $ac_prog = install &&
1604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605 # AIX install. It has an incompatible calling convention.
1607 elif test $ac_prog = install &&
1608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609 # program-specific install script used by HP pwplus--don't use.
1611 else
1612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613 break 3
1616 done
1617 done
1619 esac
1620 done
1624 if test "${ac_cv_path_install+set}" = set; then
1625 INSTALL=$ac_cv_path_install
1626 else
1627 # As a last resort, use the slow shell script. We don't cache a
1628 # path for INSTALL within a source directory, because that will
1629 # break other packages using the cache if that directory is
1630 # removed, or if the path is relative.
1631 INSTALL=$ac_install_sh
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments. Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657 if test "$*" = "X"; then
1658 # -L didn't work.
1659 set X `ls -t $srcdir/configure conftest.file`
1661 rm -f conftest.file
1662 if test "$*" != "X $srcdir/configure conftest.file" \
1663 && test "$*" != "X conftest.file $srcdir/configure"; then
1665 # If neither matched, then we have a broken ls. This can happen
1666 # if, for instance, CONFIG_SHELL is bash and it inherits a
1667 # broken ls alias from the environment. This has actually
1668 # happened. Such a system could not be considered "sane".
1669 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1672 alias in your environment" >&2;}
1673 { (exit 1); exit 1; }; }
1676 test "$2" = conftest.file
1678 then
1679 # Ok.
1681 else
1682 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686 { (exit 1); exit 1; }; }
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $. echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1711 else
1712 am_missing_run=
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1717 for ac_prog in gawk mawk nawk awk
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 if test -n "$AWK"; then
1727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_AWK="$ac_prog"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1740 done
1741 done
1745 AWK=$ac_cv_prog_AWK
1746 if test -n "$AWK"; then
1747 echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 test -n "$AWK" && break
1755 done
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 cat >conftest.make <<\_ACEOF
1764 all:
1765 @echo 'ac_maketemp="$(MAKE)"'
1766 _ACEOF
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770 eval ac_cv_prog_make_${ac_make}_set=yes
1771 else
1772 eval ac_cv_prog_make_${ac_make}_set=no
1774 rm -f conftest.make
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777 echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779 SET_MAKE=
1780 else
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 SET_MAKE="MAKE=${MAKE-make}"
1786 rm -rf .tst 2>/dev/null
1787 mkdir .tst 2>/dev/null
1788 if test -d .tst; then
1789 am__leading_dot=.
1790 else
1791 am__leading_dot=_
1793 rmdir .tst 2>/dev/null
1795 # test to see if srcdir already configured
1796 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797 test -f $srcdir/config.status; then
1798 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800 { (exit 1); exit 1; }; }
1803 # test whether we have cygpath
1804 if test -z "$CYGPATH_W"; then
1805 if (cygpath --version) >/dev/null 2>/dev/null; then
1806 CYGPATH_W='cygpath -w'
1807 else
1808 CYGPATH_W=echo
1813 # Define the identity of the package.
1814 PACKAGE='libstdc++'
1815 VERSION='version-unused'
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835 AMTAR=${AMTAR-"${am_missing_run}tar"}
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'. However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$STRIP"; then
1853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873 echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1881 if test -z "$ac_cv_prog_STRIP"; then
1882 ac_ct_STRIP=$STRIP
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$ac_ct_STRIP"; then
1891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_STRIP="strip"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1904 done
1905 done
1907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 STRIP=$ac_ct_STRIP
1920 else
1921 STRIP="$ac_cv_prog_STRIP"
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1927 # We need awk for the "check" target. The system "awk" is bad on
1928 # some platforms.
1933 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1934 # up critical shell variables.
1936 # Keep these sync'd with the list in Makefile.am. The first provides an
1937 # expandable list at autoconf time; the second provides an expandable list
1938 # (i.e., shell variable) at configure time.
1940 SUBDIRS='include libmath libsupc++ src po testsuite'
1942 # These need to be absolute paths, yet at the same time need to
1943 # canonicalize only relative paths, because then amd will not unmount
1944 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1945 glibcxx_builddir=`${PWDCMD-pwd}`
1946 case $srcdir in
1947 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1948 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1949 esac
1950 toplevel_srcdir=${glibcxx_srcdir}/..
1955 # We use these options to decide which functions to include. They are
1956 # set from the top level.
1958 # Check whether --with-target-subdir or --without-target-subdir was given.
1959 if test "${with_target_subdir+set}" = set; then
1960 withval="$with_target_subdir"
1965 # Check whether --with-cross-host or --without-cross-host was given.
1966 if test "${with_cross_host+set}" = set; then
1967 withval="$with_cross_host"
1972 # Check whether --with-newlib or --without-newlib was given.
1973 if test "${with_newlib+set}" = set; then
1974 withval="$with_newlib"
1978 # We're almost certainly being configured before anything else which uses
1979 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
1980 # we not cache the value of CXX that we "discover" here, because it's set
1981 # to something unique for us and libjava. Other target libraries need to
1982 # find CXX for themselves. We yank the rug out from under the normal AC_*
1983 # process by sneakily renaming the cache variable. This also lets us debug
1984 # the value of "our" CXX in postmortems.
1986 # We must also force CXX to /not/ be a precious variable, otherwise the
1987 # wrong (non-multilib-adjusted) value will be used in multilibs. This
1988 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
1989 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1990 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1992 # -fno-builtin must be present here so that a non-conflicting form of
1993 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1998 save_CXXFLAGS="$CXXFLAGS"
1999 CXXFLAGS="$CXXFLAGS -fno-builtin"
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$ac_cv_prog_CC"; then
2043 ac_ct_CC=$CC
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 CC=$ac_ct_CC
2080 else
2081 CC="$ac_cv_prog_CC"
2084 if test -z "$CC"; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2087 set dummy ${ac_tool_prefix}cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="${ac_tool_prefix}cc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2107 done
2108 done
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2122 if test -z "$ac_cv_prog_CC"; then
2123 ac_ct_CC=$CC
2124 # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC="cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2145 done
2146 done
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2159 CC=$ac_ct_CC
2160 else
2161 CC="$ac_cv_prog_CC"
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2195 if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2198 shift
2199 if test $# != 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2203 shift
2204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 for ac_prog in cl
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2244 done
2245 done
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251 echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2253 else
2254 echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2258 test -n "$CC" && break
2259 done
2261 if test -z "$CC"; then
2262 ac_ct_CC=$CC
2263 for ac_prog in cl
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2300 test -n "$ac_ct_CC" && break
2301 done
2303 CC=$ac_ct_CC
2309 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2315 # Provide some information about the compiler.
2316 echo "$as_me:$LINENO:" \
2317 "checking for C compiler version" >&5
2318 ac_compiler=`set X $ac_compile; echo $2`
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2320 (eval $ac_compiler --version </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2325 (eval $ac_compiler -v </dev/null >&5) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2330 (eval $ac_compiler -V </dev/null >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2344 main ()
2348 return 0;
2350 _ACEOF
2351 # FIXME: Cleanup?
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 gcc_no_link=no
2358 else
2359 gcc_no_link=yes
2362 if test x$gcc_no_link = xyes; then
2363 # Setting cross_compile will disable run tests; it will
2364 # also disable AC_CHECK_FILE but that's generally
2365 # correct if we can't link.
2366 cross_compiling=yes
2367 EXEEXT=
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 main ()
2382 return 0;
2384 _ACEOF
2385 ac_clean_files_save=$ac_clean_files
2386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2389 # of exeext.
2390 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2391 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2394 (eval $ac_link_default) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Find the output, starting from the most likely. This scheme is
2399 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2400 # resort.
2402 # Be careful to initialize this variable, since it used to be cached.
2403 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2404 ac_cv_exeext=
2405 # b.out is created by i960 compilers.
2406 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412 conftest.$ac_ext )
2413 # This is the source file.
2415 [ab].out )
2416 # We found the default executable, but exeext='' is most
2417 # certainly right.
2418 break;;
2419 *.* )
2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # FIXME: I believe we export ac_cv_exeext for Libtool,
2422 # but it would be cool to find out if it's true. Does anybody
2423 # maintain Libtool? --akim.
2424 export ac_cv_exeext
2425 break;;
2427 break;;
2428 esac
2429 done
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&2;}
2438 { (exit 77); exit 77; }; }
2441 ac_exeext=$ac_cv_exeext
2442 echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6
2445 # Check the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2448 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2449 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2450 # If not cross compiling, check that we can run a simple program.
2451 if test "$cross_compiling" != yes; then
2452 if { ac_try='./$ac_file'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 cross_compiling=no
2459 else
2460 if test "$cross_compiling" = maybe; then
2461 cross_compiling=yes
2462 else
2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2473 echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2482 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6
2485 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2488 (eval $ac_link) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; then
2492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2493 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2494 # work properly (i.e., refer to `conftest.exe'), while it won't with
2495 # `rm'.
2496 for ac_file in conftest.exe conftest conftest.*; do
2497 test -f "$ac_file" || continue
2498 case $ac_file in
2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 export ac_cv_exeext
2502 break;;
2503 * ) break;;
2504 esac
2505 done
2506 else
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2514 rm -f conftest$ac_cv_exeext
2515 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516 echo "${ECHO_T}$ac_cv_exeext" >&6
2518 rm -f conftest.$ac_ext
2519 EXEEXT=$ac_cv_exeext
2520 ac_exeext=$EXEEXT
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2536 main ()
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555 done
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2587 main ()
2589 #ifndef __GNUC__
2590 choke me
2591 #endif
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_compiler_gnu=yes
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 ac_compiler_gnu=no
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2625 CFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 main ()
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_cv_prog_cc_g=yes
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 ac_cv_prog_cc_g=no
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2674 CFLAGS="-g -O2"
2675 else
2676 CFLAGS="-g"
2678 else
2679 if test "$GCC" = yes; then
2680 CFLAGS="-O2"
2681 else
2682 CFLAGS=
2685 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2686 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 ac_cv_prog_cc_stdc=no
2691 ac_save_CC=$CC
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699 #include <stdarg.h>
2700 #include <stdio.h>
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2707 char **p;
2708 int i;
2710 return p[i];
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2714 char *s;
2715 va_list v;
2716 va_start (v,p);
2717 s = g (p, va_arg (v,int));
2718 va_end (v);
2719 return s;
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2728 main ()
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 return 0;
2734 _ACEOF
2735 # Don't try gcc -ansi; that turns off useful extensions and
2736 # breaks some systems' header files.
2737 # AIX -qlanglvl=ansi
2738 # Ultrix and OSF/1 -std1
2739 # HP-UX 10.20 and later -Ae
2740 # HP-UX older versions -Aa -D_HPUX_SOURCE
2741 # SVR4 -Xc -D__EXTENSIONS__
2742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2771 case "x$ac_cv_prog_cc_stdc" in
2772 x|xno)
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2781 # Some people use a C++ compiler to compile C. Since we use `exit',
2782 # in C++ we need to declare it. In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787 choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2803 '' \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2808 'void exit (int);'
2810 cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2817 $ac_declaration
2818 #include <stdlib.h>
2820 main ()
2822 exit (42);
2824 return 0;
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 continue
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 $ac_declaration
2856 main ()
2858 exit (42);
2860 return 0;
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 break
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 done
2883 rm -f conftest*
2884 if test -n "$ac_declaration"; then
2885 echo '#ifdef __cplusplus' >>confdefs.h
2886 echo $ac_declaration >>confdefs.h
2887 echo '#endif' >>confdefs.h
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2895 rm -f conftest.$ac_objext conftest.$ac_ext
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 ac_ext=cc
2903 ac_cpp='$CXXCPP $CPPFLAGS'
2904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$CXX"; then
2918 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2936 CXX=$glibcxx_cv_prog_CXX
2937 if test -n "$CXX"; then
2938 echo "$as_me:$LINENO: result: $CXX" >&5
2939 echo "${ECHO_T}$CXX" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2945 test -n "$CXX" && break
2946 done
2948 if test -z "$CXX"; then
2949 ac_ct_CXX=$CXX
2950 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 if test -n "$ac_ct_CXX"; then
2960 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_CXX="$ac_prog"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2978 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2979 if test -n "$ac_ct_CXX"; then
2980 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2981 echo "${ECHO_T}$ac_ct_CXX" >&6
2982 else
2983 echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6
2987 test -n "$ac_ct_CXX" && break
2988 done
2989 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2991 CXX=$ac_ct_CXX
2995 # Provide some information about the compiler.
2996 echo "$as_me:$LINENO:" \
2997 "checking for C++ compiler version" >&5
2998 ac_compiler=`set X $ac_compile; echo $2`
2999 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3000 (eval $ac_compiler --version </dev/null >&5) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3005 (eval $ac_compiler -v </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3010 (eval $ac_compiler -V </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3015 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3017 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 #line $LINENO "configure"
3022 /* confdefs.h. */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3029 main ()
3031 #ifndef __GNUC__
3032 choke me
3033 #endif
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_compiler_gnu=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 ac_compiler_gnu=no
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3059 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3062 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3063 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3064 GXX=`test $ac_compiler_gnu = yes && echo yes`
3065 ac_test_CXXFLAGS=${CXXFLAGS+set}
3066 ac_save_CXXFLAGS=$CXXFLAGS
3067 CXXFLAGS="-g"
3068 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3069 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3070 if test "${ac_cv_prog_cxx_g+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 cat >conftest.$ac_ext <<_ACEOF
3074 #line $LINENO "configure"
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3082 main ()
3086 return 0;
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 ac_cv_prog_cxx_g=yes
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 ac_cv_prog_cxx_g=no
3108 rm -f conftest.$ac_objext conftest.$ac_ext
3110 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3112 if test "$ac_test_CXXFLAGS" = set; then
3113 CXXFLAGS=$ac_save_CXXFLAGS
3114 elif test $ac_cv_prog_cxx_g = yes; then
3115 if test "$GXX" = yes; then
3116 CXXFLAGS="-g -O2"
3117 else
3118 CXXFLAGS="-g"
3120 else
3121 if test "$GXX" = yes; then
3122 CXXFLAGS="-O2"
3123 else
3124 CXXFLAGS=
3127 for ac_declaration in \
3128 '' \
3129 'extern "C" void std::exit (int) throw (); using std::exit;' \
3130 'extern "C" void std::exit (int); using std::exit;' \
3131 'extern "C" void exit (int) throw ();' \
3132 'extern "C" void exit (int);' \
3133 'void exit (int);'
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 $ac_declaration
3143 #include <stdlib.h>
3145 main ()
3147 exit (42);
3149 return 0;
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 continue
3171 rm -f conftest.$ac_objext conftest.$ac_ext
3172 cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 $ac_declaration
3181 main ()
3183 exit (42);
3185 return 0;
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 break
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f conftest.$ac_objext conftest.$ac_ext
3207 done
3208 rm -f conftest*
3209 if test -n "$ac_declaration"; then
3210 echo '#ifdef __cplusplus' >>confdefs.h
3211 echo $ac_declaration >>confdefs.h
3212 echo '#endif' >>confdefs.h
3215 ac_ext=c
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 CXXFLAGS="$save_CXXFLAGS"
3226 # For directory versioning (e.g., headers) and other variables.
3227 echo "$as_me:$LINENO: checking for GCC version number" >&5
3228 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3229 gcc_version=`$CXX -dumpversion`
3230 echo "$as_me:$LINENO: result: $gcc_version" >&5
3231 echo "${ECHO_T}$gcc_version" >&6
3233 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3234 # available). Uncomment the next line to force a particular method.
3235 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3237 LN_S=$as_ln_s
3238 if test "$LN_S" = "ln -s"; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240 echo "${ECHO_T}yes" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3243 echo "${ECHO_T}no, using $LN_S" >&6
3246 #LN_S='cp -p'
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}as; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_AS+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$AS"; then
3257 ac_cv_prog_AS="$AS" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_AS="${ac_tool_prefix}as"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3270 done
3271 done
3275 AS=$ac_cv_prog_AS
3276 if test -n "$AS"; then
3277 echo "$as_me:$LINENO: result: $AS" >&5
3278 echo "${ECHO_T}$AS" >&6
3279 else
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3285 if test -z "$ac_cv_prog_AS"; then
3286 ac_ct_AS=$AS
3287 # Extract the first word of "as", so it can be a program name with args.
3288 set dummy as; ac_word=$2
3289 echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 if test -n "$ac_ct_AS"; then
3295 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_ac_ct_AS="as"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3308 done
3309 done
3313 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3314 if test -n "$ac_ct_AS"; then
3315 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3316 echo "${ECHO_T}$ac_ct_AS" >&6
3317 else
3318 echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3322 AS=$ac_ct_AS
3323 else
3324 AS="$ac_cv_prog_AS"
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}ar; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_AR+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 if test -n "$AR"; then
3336 ac_cv_prog_AR="$AR" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_AR="${ac_tool_prefix}ar"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3354 AR=$ac_cv_prog_AR
3355 if test -n "$AR"; then
3356 echo "$as_me:$LINENO: result: $AR" >&5
3357 echo "${ECHO_T}$AR" >&6
3358 else
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3364 if test -z "$ac_cv_prog_AR"; then
3365 ac_ct_AR=$AR
3366 # Extract the first word of "ar", so it can be a program name with args.
3367 set dummy ar; ac_word=$2
3368 echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 if test -n "$ac_ct_AR"; then
3374 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_AR="ar"
3384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3387 done
3388 done
3392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3393 if test -n "$ac_ct_AR"; then
3394 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3395 echo "${ECHO_T}$ac_ct_AR" >&6
3396 else
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3401 AR=$ac_ct_AR
3402 else
3403 AR="$ac_cv_prog_AR"
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$RANLIB"; then
3415 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3433 RANLIB=$ac_cv_prog_RANLIB
3434 if test -n "$RANLIB"; then
3435 echo "$as_me:$LINENO: result: $RANLIB" >&5
3436 echo "${ECHO_T}$RANLIB" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_RANLIB"; then
3444 ac_ct_RANLIB=$RANLIB
3445 # Extract the first word of "ranlib", so it can be a program name with args.
3446 set dummy ranlib; 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_RANLIB+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_RANLIB"; then
3453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473 if test -n "$ac_ct_RANLIB"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3476 else
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 RANLIB=$ac_ct_RANLIB
3482 else
3483 RANLIB="$ac_cv_prog_RANLIB"
3487 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3488 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3489 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3490 if test "${enable_maintainer_mode+set}" = set; then
3491 enableval="$enable_maintainer_mode"
3492 USE_MAINTAINER_MODE=$enableval
3493 else
3494 USE_MAINTAINER_MODE=no
3496 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3497 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3500 if test $USE_MAINTAINER_MODE = yes; then
3501 MAINTAINER_MODE_TRUE=
3502 MAINTAINER_MODE_FALSE='#'
3503 else
3504 MAINTAINER_MODE_TRUE='#'
3505 MAINTAINER_MODE_FALSE=
3508 MAINT=$MAINTAINER_MODE_TRUE
3512 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3513 # which are themselves conditionally expanded.
3514 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3515 ## other macros from doing the same. This should be automated.) -pme
3516 need_libmath=no
3517 enable_wchar_t=no
3518 #enable_libstdcxx_debug=no
3519 #enable_libstdcxx_pch=no
3520 #enable_cheaders=c
3521 #c_compatibility=no
3522 #enable_abi_check=no
3523 #enable_symvers=no
3524 #enable_hosted_libstdcxx=yes
3526 # Find platform-specific directories containing configuration info.
3527 # Also possibly modify flags used elsewhere, as needed by the platform.
3529 . $glibcxx_srcdir/configure.host
3530 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3531 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3532 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3533 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3537 #AC_MSG_NOTICE([====== Starting libtool configuration])
3539 # Check whether --enable-shared or --disable-shared was given.
3540 if test "${enable_shared+set}" = set; then
3541 enableval="$enable_shared"
3542 p=${PACKAGE-default}
3543 case $enableval in
3544 yes) enable_shared=yes ;;
3545 no) enable_shared=no ;;
3547 enable_shared=no
3548 # Look at the argument we got. We use all the common list separators.
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3550 for pkg in $enableval; do
3551 if test "X$pkg" = "X$p"; then
3552 enable_shared=yes
3554 done
3555 IFS="$ac_save_ifs"
3557 esac
3558 else
3559 enable_shared=yes
3561 # Check whether --enable-static or --disable-static was given.
3562 if test "${enable_static+set}" = set; then
3563 enableval="$enable_static"
3564 p=${PACKAGE-default}
3565 case $enableval in
3566 yes) enable_static=yes ;;
3567 no) enable_static=no ;;
3569 enable_static=no
3570 # Look at the argument we got. We use all the common list separators.
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3572 for pkg in $enableval; do
3573 if test "X$pkg" = "X$p"; then
3574 enable_static=yes
3576 done
3577 IFS="$ac_save_ifs"
3579 esac
3580 else
3581 enable_static=yes
3583 # Check whether --enable-fast-install or --disable-fast-install was given.
3584 if test "${enable_fast_install+set}" = set; then
3585 enableval="$enable_fast_install"
3586 p=${PACKAGE-default}
3587 case $enableval in
3588 yes) enable_fast_install=yes ;;
3589 no) enable_fast_install=no ;;
3591 enable_fast_install=no
3592 # Look at the argument we got. We use all the common list separators.
3593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3594 for pkg in $enableval; do
3595 if test "X$pkg" = "X$p"; then
3596 enable_fast_install=yes
3598 done
3599 IFS="$ac_save_ifs"
3601 esac
3602 else
3603 enable_fast_install=yes
3606 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3607 if test "${with_gnu_ld+set}" = set; then
3608 withval="$with_gnu_ld"
3609 test "$withval" = no || with_gnu_ld=yes
3610 else
3611 with_gnu_ld=no
3613 ac_prog=ld
3614 if test "$GCC" = yes; then
3615 # Check if gcc -print-prog-name=ld gives a path.
3616 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3617 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3618 case $host in
3619 *-*-mingw*)
3620 # gcc leaves a trailing carriage return which upsets mingw
3621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3624 esac
3625 case $ac_prog in
3626 # Accept absolute paths.
3627 [\\/]* | [A-Za-z]:[\\/]*)
3628 re_direlt='/[^/][^/]*/\.\./'
3629 # Canonicalize the path of ld
3630 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3631 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3632 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3633 done
3634 test -z "$LD" && LD="$ac_prog"
3637 # If it fails, then pretend we aren't using GCC.
3638 ac_prog=ld
3641 # If it is relative, then search for the first ld in PATH.
3642 with_gnu_ld=unknown
3644 esac
3645 elif test "$with_gnu_ld" = yes; then
3646 echo "$as_me:$LINENO: checking for GNU ld" >&5
3647 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3648 else
3649 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3650 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3652 if test "${lt_cv_path_LD+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -z "$LD"; then
3656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3657 for ac_dir in $PATH; do
3658 test -z "$ac_dir" && ac_dir=.
3659 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3660 lt_cv_path_LD="$ac_dir/$ac_prog"
3661 # Check to see if the program is GNU ld. I'd rather use --version,
3662 # but apparently some GNU ld's only accept -v.
3663 # Break only if it was the GNU/non-GNU ld that we prefer.
3664 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3665 test "$with_gnu_ld" != no && break
3666 else
3667 test "$with_gnu_ld" != yes && break
3670 done
3671 IFS="$ac_save_ifs"
3672 else
3673 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3677 LD="$lt_cv_path_LD"
3678 if test -n "$LD"; then
3679 echo "$as_me:$LINENO: result: $LD" >&5
3680 echo "${ECHO_T}$LD" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3685 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3686 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3687 { (exit 1); exit 1; }; }
3688 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3689 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3690 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3694 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3695 lt_cv_prog_gnu_ld=yes
3696 else
3697 lt_cv_prog_gnu_ld=no
3700 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3701 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3702 with_gnu_ld=$lt_cv_prog_gnu_ld
3705 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3706 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3707 if test "${lt_cv_ld_reload_flag+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 lt_cv_ld_reload_flag='-r'
3712 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3713 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3714 reload_flag=$lt_cv_ld_reload_flag
3715 test -n "$reload_flag" && reload_flag=" $reload_flag"
3717 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3718 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3719 if test "${lt_cv_path_NM+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$NM"; then
3723 # Let the user override the test.
3724 lt_cv_path_NM="$NM"
3725 else
3726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3727 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3728 test -z "$ac_dir" && ac_dir=.
3729 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3730 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3731 # Check to see if the nm accepts a BSD-compat flag.
3732 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3733 # nm: unknown option "B" ignored
3734 # Tru64's nm complains that /dev/null is an invalid object file
3735 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3736 lt_cv_path_NM="$tmp_nm -B"
3737 break
3738 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3739 lt_cv_path_NM="$tmp_nm -p"
3740 break
3741 else
3742 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3743 continue # so that we can try to find one that supports BSD flags
3746 done
3747 IFS="$ac_save_ifs"
3748 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3752 NM="$lt_cv_path_NM"
3753 echo "$as_me:$LINENO: result: $NM" >&5
3754 echo "${ECHO_T}$NM" >&6
3756 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3757 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3758 if test "${lt_cv_deplibs_check_method+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 lt_cv_file_magic_cmd='$MAGIC_CMD'
3762 lt_cv_file_magic_test_file=
3763 lt_cv_deplibs_check_method='unknown'
3764 # Need to set the preceding variable on all platforms that support
3765 # interlibrary dependencies.
3766 # 'none' -- dependencies not supported.
3767 # `unknown' -- same as none, but documents that we really don't know.
3768 # 'pass_all' -- all dependencies passed with no checks.
3769 # 'test_compile' -- check by making test program.
3770 # 'file_magic [regex]' -- check by looking for files in library path
3771 # which responds to the $file_magic_cmd with a given egrep regex.
3772 # If you have `file' or equivalent on your system and you're not sure
3773 # whether `pass_all' will *always* work, you probably want this one.
3775 case $host_os in
3776 aix*)
3777 lt_cv_deplibs_check_method=pass_all
3780 beos*)
3781 lt_cv_deplibs_check_method=pass_all
3784 bsdi4*)
3785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3786 lt_cv_file_magic_cmd='/usr/bin/file -L'
3787 lt_cv_file_magic_test_file=/shlib/libc.so
3790 cygwin* | mingw* |pw32*)
3791 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3792 lt_cv_file_magic_cmd='$OBJDUMP -f'
3795 darwin* | rhapsody*)
3796 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3797 lt_cv_file_magic_cmd='/usr/bin/file -L'
3798 case "$host_os" in
3799 rhapsody* | darwin1.012)
3800 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3802 *) # Darwin 1.3 on
3803 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3805 esac
3808 freebsd* )
3809 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3810 case $host_cpu in
3811 i*86 )
3812 # Not sure whether the presence of OpenBSD here was a mistake.
3813 # Let's accept both of them until this is cleared up.
3814 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3815 lt_cv_file_magic_cmd=/usr/bin/file
3816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3818 esac
3819 else
3820 lt_cv_deplibs_check_method=pass_all
3824 gnu*)
3825 lt_cv_deplibs_check_method=pass_all
3828 hpux10.20*|hpux11*)
3829 case $host_cpu in
3830 hppa*)
3831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3832 lt_cv_file_magic_cmd=/usr/bin/file
3833 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3835 ia64*)
3836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3840 esac
3843 irix5* | irix6*)
3844 case $host_os in
3845 irix5*)
3846 # this will be overridden with pass_all, but let us keep it just in case
3847 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3850 case $LD in
3851 *-32|*"-32 ") libmagic=32-bit;;
3852 *-n32|*"-n32 ") libmagic=N32;;
3853 *-64|*"-64 ") libmagic=64-bit;;
3854 *) libmagic=never-match;;
3855 esac
3856 # this will be overridden with pass_all, but let us keep it just in case
3857 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3859 esac
3860 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3861 lt_cv_deplibs_check_method=pass_all
3864 # This must be Linux ELF.
3865 linux-gnu*)
3866 case $host_cpu in
3867 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3868 lt_cv_deplibs_check_method=pass_all ;;
3870 # glibc up to 2.1.1 does not perform some relocations on ARM
3871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3872 esac
3873 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3876 netbsd*)
3877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3878 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3879 else
3880 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3884 newsos6)
3885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3886 lt_cv_file_magic_cmd=/usr/bin/file
3887 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3890 osf3* | osf4* | osf5*)
3891 # this will be overridden with pass_all, but let us keep it just in case
3892 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3893 lt_cv_file_magic_test_file=/shlib/libc.so
3894 lt_cv_deplibs_check_method=pass_all
3897 sco3.2v5*)
3898 lt_cv_deplibs_check_method=pass_all
3901 solaris*)
3902 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_file_magic_test_file=/lib/libc.so
3906 sysv5uw[78]* | sysv4*uw2*)
3907 lt_cv_deplibs_check_method=pass_all
3910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3911 case $host_vendor in
3912 ncr)
3913 lt_cv_deplibs_check_method=pass_all
3915 motorola)
3916 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]'
3917 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3919 esac
3921 esac
3924 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3925 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3926 file_magic_cmd=$lt_cv_file_magic_cmd
3927 deplibs_check_method=$lt_cv_deplibs_check_method
3933 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3935 # Only perform the check for file, if the check method requires it
3936 case $deplibs_check_method in
3937 file_magic*)
3938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3939 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 case $MAGIC_CMD in
3946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3948 ?:/*)
3949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3952 ac_save_MAGIC_CMD="$MAGIC_CMD"
3953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3954 ac_dummy="/usr/bin:$PATH"
3955 for ac_dir in $ac_dummy; do
3956 test -z "$ac_dir" && ac_dir=.
3957 if test -f $ac_dir/${ac_tool_prefix}file; then
3958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3959 if test -n "$file_magic_test_file"; then
3960 case $deplibs_check_method in
3961 "file_magic "*)
3962 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3965 egrep "$file_magic_regex" > /dev/null; then
3967 else
3968 cat <<EOF 1>&2
3970 *** Warning: the command libtool uses to detect shared libraries,
3971 *** $file_magic_cmd, produces output that libtool cannot recognize.
3972 *** The result is that libtool may fail to recognize shared libraries
3973 *** as such. This will affect the creation of libtool libraries that
3974 *** depend on shared libraries, but programs linked with such libtool
3975 *** libraries will work regardless of this problem. Nevertheless, you
3976 *** may want to report the problem to your system manager and/or to
3977 *** bug-libtool@gnu.org
3980 fi ;;
3981 esac
3983 break
3985 done
3986 IFS="$ac_save_ifs"
3987 MAGIC_CMD="$ac_save_MAGIC_CMD"
3989 esac
3992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3993 if test -n "$MAGIC_CMD"; then
3994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3995 echo "${ECHO_T}$MAGIC_CMD" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 if test -z "$lt_cv_path_MAGIC_CMD"; then
4002 if test -n "$ac_tool_prefix"; then
4003 echo "$as_me:$LINENO: checking for file" >&5
4004 echo $ECHO_N "checking for file... $ECHO_C" >&6
4005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 case $MAGIC_CMD in
4010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4012 ?:/*)
4013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4016 ac_save_MAGIC_CMD="$MAGIC_CMD"
4017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4018 ac_dummy="/usr/bin:$PATH"
4019 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 if test -f $ac_dir/file; then
4022 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4023 if test -n "$file_magic_test_file"; then
4024 case $deplibs_check_method in
4025 "file_magic "*)
4026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4029 egrep "$file_magic_regex" > /dev/null; then
4031 else
4032 cat <<EOF 1>&2
4034 *** Warning: the command libtool uses to detect shared libraries,
4035 *** $file_magic_cmd, produces output that libtool cannot recognize.
4036 *** The result is that libtool may fail to recognize shared libraries
4037 *** as such. This will affect the creation of libtool libraries that
4038 *** depend on shared libraries, but programs linked with such libtool
4039 *** libraries will work regardless of this problem. Nevertheless, you
4040 *** may want to report the problem to your system manager and/or to
4041 *** bug-libtool@gnu.org
4044 fi ;;
4045 esac
4047 break
4049 done
4050 IFS="$ac_save_ifs"
4051 MAGIC_CMD="$ac_save_MAGIC_CMD"
4053 esac
4056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4057 if test -n "$MAGIC_CMD"; then
4058 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4059 echo "${ECHO_T}$MAGIC_CMD" >&6
4060 else
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 else
4066 MAGIC_CMD=:
4072 esac
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_RANLIB+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if test -n "$RANLIB"; then
4083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4096 done
4097 done
4101 RANLIB=$ac_cv_prog_RANLIB
4102 if test -n "$RANLIB"; then
4103 echo "$as_me:$LINENO: result: $RANLIB" >&5
4104 echo "${ECHO_T}$RANLIB" >&6
4105 else
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4111 if test -z "$ac_cv_prog_RANLIB"; then
4112 ac_ct_RANLIB=$RANLIB
4113 # Extract the first word of "ranlib", so it can be a program name with args.
4114 set dummy ranlib; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$ac_ct_RANLIB"; then
4121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_ac_ct_RANLIB="ranlib"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4141 if test -n "$ac_ct_RANLIB"; then
4142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4143 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4144 else
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4149 RANLIB=$ac_ct_RANLIB
4150 else
4151 RANLIB="$ac_cv_prog_RANLIB"
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4156 set dummy ${ac_tool_prefix}strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_STRIP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -n "$STRIP"; then
4163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4181 STRIP=$ac_cv_prog_STRIP
4182 if test -n "$STRIP"; then
4183 echo "$as_me:$LINENO: result: $STRIP" >&5
4184 echo "${ECHO_T}$STRIP" >&6
4185 else
4186 echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4191 if test -z "$ac_cv_prog_STRIP"; then
4192 ac_ct_STRIP=$STRIP
4193 # Extract the first word of "strip", so it can be a program name with args.
4194 set dummy strip; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 if test -n "$ac_ct_STRIP"; then
4201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_ac_ct_STRIP="strip"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4214 done
4215 done
4217 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4221 if test -n "$ac_ct_STRIP"; then
4222 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4223 echo "${ECHO_T}$ac_ct_STRIP" >&6
4224 else
4225 echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4229 STRIP=$ac_ct_STRIP
4230 else
4231 STRIP="$ac_cv_prog_STRIP"
4235 # Check for any special flags to pass to ltconfig.
4236 libtool_flags="--cache-file=$cache_file"
4237 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4238 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4239 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4240 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4241 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4244 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4245 if test "${enable_libtool_lock+set}" = set; then
4246 enableval="$enable_libtool_lock"
4249 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4250 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4253 # Check whether --with-pic or --without-pic was given.
4254 if test "${with_pic+set}" = set; then
4255 withval="$with_pic"
4256 pic_mode="$withval"
4257 else
4258 pic_mode=default
4260 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4261 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4263 # Some flags need to be propagated to the compiler or linker for good
4264 # libtool support.
4265 case $host in
4266 *-*-irix6*)
4267 # Find out which ABI we are using.
4268 echo '#line 4268 "configure"' > conftest.$ac_ext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; then
4274 if test "$lt_cv_prog_gnu_ld" = yes; then
4275 case `/usr/bin/file conftest.$ac_objext` in
4276 *32-bit*)
4277 LD="${LD-ld} -melf32bsmip"
4279 *N32*)
4280 LD="${LD-ld} -melf32bmipn32"
4282 *64-bit*)
4283 LD="${LD-ld} -melf64bmip"
4285 esac
4286 else
4287 case `/usr/bin/file conftest.$ac_objext` in
4288 *32-bit*)
4289 LD="${LD-ld} -32"
4291 *N32*)
4292 LD="${LD-ld} -n32"
4294 *64-bit*)
4295 LD="${LD-ld} -64"
4297 esac
4300 rm -rf conftest*
4303 ia64-*-hpux*)
4304 # Find out which ABI we are using.
4305 echo 'int i;' > conftest.$ac_ext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; then
4311 case "`/usr/bin/file conftest.o`" in
4312 *ELF-32*)
4313 HPUX_IA64_MODE="32"
4315 *ELF-64*)
4316 HPUX_IA64_MODE="64"
4318 esac
4320 rm -rf conftest*
4323 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4324 # Find out which ABI we are using.
4325 echo 'int i;' > conftest.$ac_ext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; then
4331 case "`/usr/bin/file conftest.o`" in
4332 *32-bit*)
4333 case $host in
4334 x86_64-*linux*)
4335 LD="${LD-ld} -m elf_i386"
4337 ppc64-*linux*|powerpc64-*linux*)
4338 LD="${LD-ld} -m elf32ppclinux"
4340 s390x-*linux*)
4341 LD="${LD-ld} -m elf_s390"
4343 sparc64-*linux*)
4344 LD="${LD-ld} -m elf32_sparc"
4346 esac
4348 *64-bit*)
4349 case $host in
4350 x86_64-*linux*)
4351 LD="${LD-ld} -m elf_x86_64"
4353 ppc*-*linux*|powerpc*-*linux*)
4354 LD="${LD-ld} -m elf64ppc"
4356 s390*-*linux*)
4357 LD="${LD-ld} -m elf64_s390"
4359 sparc*-*linux*)
4360 LD="${LD-ld} -m elf64_sparc"
4362 esac
4364 esac
4366 rm -rf conftest*
4369 *-*-sco3.2v5*)
4370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4371 SAVE_CFLAGS="$CFLAGS"
4372 CFLAGS="$CFLAGS -belf"
4373 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4374 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4375 if test "${lt_cv_cc_needs_belf+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 if test x$gcc_no_link = xyes; then
4387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4389 { (exit 1); exit 1; }; }
4391 cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 rm -f conftest.$ac_objext conftest$ac_exeext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4409 (eval $ac_link) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -s conftest$ac_exeext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 lt_cv_cc_needs_belf=yes
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 lt_cv_cc_needs_belf=no
4426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4435 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4438 CFLAGS="$SAVE_CFLAGS"
4443 esac
4446 # Save cache, so that ltconfig can load it
4447 cat >confcache <<\_ACEOF
4448 # This file is a shell script that caches the results of configure
4449 # tests run on this system so they can be shared between configure
4450 # scripts and configure runs, see configure's option --config-cache.
4451 # It is not useful on other systems. If it contains results you don't
4452 # want to keep, you may remove or edit it.
4454 # config.status only pays attention to the cache file if you give it
4455 # the --recheck option to rerun configure.
4457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4459 # following values.
4461 _ACEOF
4463 # The following way of writing the cache mishandles newlines in values,
4464 # but we know of no workaround that is simple, portable, and efficient.
4465 # So, don't put newlines in cache variables' values.
4466 # Ultrix sh set writes to stderr and can't be redirected directly,
4467 # and sets the high bit in the cache file unless we assign to the vars.
4469 (set) 2>&1 |
4470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4471 *ac_space=\ *)
4472 # `set' does not quote correctly, so add quotes (double-quote
4473 # substitution turns \\\\ into \\, and sed turns \\ into \).
4474 sed -n \
4475 "s/'/'\\\\''/g;
4476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4479 # `set' quotes correctly as required by POSIX, so do not add quotes.
4480 sed -n \
4481 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4483 esac;
4485 sed '
4486 t clear
4487 : clear
4488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4489 t end
4490 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4491 : end' >>confcache
4492 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4493 if test -w $cache_file; then
4494 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4495 cat confcache >$cache_file
4496 else
4497 echo "not updating unwritable cache $cache_file"
4500 rm -f confcache
4502 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4503 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4504 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4505 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4506 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4507 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4508 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4509 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4510 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4511 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4512 echo "$as_me: error: libtool configure failed" >&2;}
4513 { (exit 1); exit 1; }; }
4515 # Reload cache, that may have been modified by ltconfig
4516 if test -r "$cache_file"; then
4517 # Some versions of bash will fail to source /dev/null (special
4518 # files actually), so we avoid doing that.
4519 if test -f "$cache_file"; then
4520 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4521 echo "$as_me: loading cache $cache_file" >&6;}
4522 case $cache_file in
4523 [\\/]* | ?:[\\/]* ) . $cache_file;;
4524 *) . ./$cache_file;;
4525 esac
4527 else
4528 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4529 echo "$as_me: creating cache $cache_file" >&6;}
4530 >$cache_file
4534 # This can be used to rebuild libtool when needed
4535 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4537 # Always use our own libtool.
4538 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4540 # Redirect the config.log output again, so that the ltconfig log is not
4541 # clobbered by the next message.
4542 exec 5>>./config.log
4544 ac_ext=cc
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4550 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4551 if test -z "$CXXCPP"; then
4552 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 # Double quotes because CXXCPP needs to be expanded
4556 for CXXCPP in "$CXX -E" "/lib/cpp"
4558 ac_preproc_ok=false
4559 for ac_cxx_preproc_warn_flag in '' yes
4561 # Use a header file that comes with gcc, so configuring glibc
4562 # with a fresh cross-compiler works.
4563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 # <limits.h> exists even on freestanding compilers.
4565 # On the NeXT, cc -E runs the code through the compiler's parser,
4566 # not just through cpp. "Syntax error" is here to catch this case.
4567 cat >conftest.$ac_ext <<_ACEOF
4568 #line $LINENO "configure"
4569 /* confdefs.h. */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579 Syntax error
4580 _ACEOF
4581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null; then
4589 if test -s conftest.err; then
4590 ac_cpp_err=$ac_cxx_preproc_warn_flag
4591 else
4592 ac_cpp_err=
4594 else
4595 ac_cpp_err=yes
4597 if test -z "$ac_cpp_err"; then
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 # Broken: fails on valid input.
4604 continue
4606 rm -f conftest.err conftest.$ac_ext
4608 # OK, works on sane cases. Now check whether non-existent headers
4609 # can be detected and how.
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #include <ac_nonexistent.h>
4618 _ACEOF
4619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } >/dev/null; then
4627 if test -s conftest.err; then
4628 ac_cpp_err=$ac_cxx_preproc_warn_flag
4629 else
4630 ac_cpp_err=
4632 else
4633 ac_cpp_err=yes
4635 if test -z "$ac_cpp_err"; then
4636 # Broken: success on invalid input.
4637 continue
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 # Passes both tests.
4643 ac_preproc_ok=:
4644 break
4646 rm -f conftest.err conftest.$ac_ext
4648 done
4649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4650 rm -f conftest.err conftest.$ac_ext
4651 if $ac_preproc_ok; then
4652 break
4655 done
4656 ac_cv_prog_CXXCPP=$CXXCPP
4659 CXXCPP=$ac_cv_prog_CXXCPP
4660 else
4661 ac_cv_prog_CXXCPP=$CXXCPP
4663 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4664 echo "${ECHO_T}$CXXCPP" >&6
4665 ac_preproc_ok=false
4666 for ac_cxx_preproc_warn_flag in '' yes
4668 # Use a header file that comes with gcc, so configuring glibc
4669 # with a fresh cross-compiler works.
4670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4671 # <limits.h> exists even on freestanding compilers.
4672 # On the NeXT, cc -E runs the code through the compiler's parser,
4673 # not just through cpp. "Syntax error" is here to catch this case.
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #ifdef __STDC__
4682 # include <limits.h>
4683 #else
4684 # include <assert.h>
4685 #endif
4686 Syntax error
4687 _ACEOF
4688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } >/dev/null; then
4696 if test -s conftest.err; then
4697 ac_cpp_err=$ac_cxx_preproc_warn_flag
4698 else
4699 ac_cpp_err=
4701 else
4702 ac_cpp_err=yes
4704 if test -z "$ac_cpp_err"; then
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 # Broken: fails on valid input.
4711 continue
4713 rm -f conftest.err conftest.$ac_ext
4715 # OK, works on sane cases. Now check whether non-existent headers
4716 # can be detected and how.
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <ac_nonexistent.h>
4725 _ACEOF
4726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev/null; then
4734 if test -s conftest.err; then
4735 ac_cpp_err=$ac_cxx_preproc_warn_flag
4736 else
4737 ac_cpp_err=
4739 else
4740 ac_cpp_err=yes
4742 if test -z "$ac_cpp_err"; then
4743 # Broken: success on invalid input.
4744 continue
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 # Passes both tests.
4750 ac_preproc_ok=:
4751 break
4753 rm -f conftest.err conftest.$ac_ext
4755 done
4756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4757 rm -f conftest.err conftest.$ac_ext
4758 if $ac_preproc_ok; then
4760 else
4761 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4762 See \`config.log' for more details." >&5
4763 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4764 See \`config.log' for more details." >&2;}
4765 { (exit 1); exit 1; }; }
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4777 lt_save_CC="$CC"
4778 lt_save_CFLAGS="$CFLAGS"
4779 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4780 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4781 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4782 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4783 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4784 deplibs_check_method="$deplibs_check_method" \
4785 file_magic_cmd="$file_magic_cmd" \
4786 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4787 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4788 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4789 echo "$as_me: error: libtool tag configuration failed" >&2;}
4790 { (exit 1); exit 1; }; }
4791 CC="$lt_save_CC"
4792 CFLAGS="$lt_save_CFLAGS"
4794 # Redirect the config.log output again, so that the ltconfig log is not
4795 # clobbered by the next message.
4796 exec 5>>./config.log
4805 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4807 # Possibly disable most of the library.
4808 ## XXX Consider skipping unncessary tests altogether in this case, rather
4809 ## than just ignoring the results. Faster /and/ more correct, win win.
4811 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4812 if test "${enable_hosted_libstdcxx+set}" = set; then
4813 enableval="$enable_hosted_libstdcxx"
4815 else
4816 enable_hosted_libstdcxx=yes
4818 if test "$enable_hosted_libstdcxx" = no; then
4819 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4820 echo "$as_me: Only freestanding libraries will be built" >&6;}
4821 is_hosted=no
4822 hosted_define=0
4823 enable_abi_check=no
4824 enable_libstdcxx_pch=no
4825 else
4826 is_hosted=yes
4827 hosted_define=1
4831 cat >>confdefs.h <<_ACEOF
4832 #define _GLIBCXX_HOSTED $hosted_define
4833 _ACEOF
4837 # Check for support bits and g++ features that don't require linking.
4839 echo "$as_me:$LINENO: checking for exception model to use" >&5
4840 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4843 ac_ext=cc
4844 ac_cpp='$CXXCPP $CPPFLAGS'
4845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4849 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4850 if test "${enable_sjlj_exceptions+set}" = set; then
4851 enableval="$enable_sjlj_exceptions"
4853 case "$enableval" in
4854 yes|no|auto) ;;
4855 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4856 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4858 esac
4860 else
4861 enable_sjlj_exceptions=auto
4865 if test $enable_sjlj_exceptions = auto; then
4866 # Botheration. Now we've got to detect the exception model. Link tests
4867 # against libgcc.a are problematic since we've not been given proper -L
4868 # bits for single-tree newlib and libgloss.
4870 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4871 cat > conftest.$ac_ext << EOF
4872 #line 4872 "configure"
4873 struct S { ~S(); };
4874 void bar();
4875 void foo()
4877 S s;
4878 bar();
4881 old_CXXFLAGS="$CXXFLAGS"
4882 CXXFLAGS=-S
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; then
4888 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4889 enable_sjlj_exceptions=yes
4890 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4891 enable_sjlj_exceptions=no
4894 CXXFLAGS="$old_CXXFLAGS"
4895 rm -f conftest*
4898 # This is a tad weird, for hysterical raisins. We have to map enable/disable
4899 # to two different models.
4900 case $enable_sjlj_exceptions in
4901 yes)
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4905 _ACEOF
4907 ac_exception_model_name=sjlj
4910 ac_exception_model_name="call frame"
4913 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4914 echo "$as_me: error: unable to detect exception model" >&2;}
4915 { (exit 1); exit 1; }; }
4917 esac
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4925 echo "${ECHO_T}$ac_exception_model_name" >&6
4928 echo "$as_me:$LINENO: checking for use of libunwind" >&5
4929 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4930 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4931 if test "${enable_libunwind_exceptions+set}" = set; then
4932 enableval="$enable_libunwind_exceptions"
4934 case "$enableval" in
4935 yes|no) ;;
4936 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4937 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939 esac
4941 else
4942 enable_libunwind_exceptions=no
4945 echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4946 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4947 if test $enable_libunwind_exceptions = yes; then
4948 LIBUNWIND_FLAG="-lunwind"
4949 else
4950 LIBUNWIND_FLAG=""
4955 echo "$as_me:$LINENO: checking for enabled PCH" >&5
4956 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4957 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4958 if test "${enable_libstdcxx_pch+set}" = set; then
4959 enableval="$enable_libstdcxx_pch"
4961 case "$enableval" in
4962 yes|no) ;;
4963 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4964 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966 esac
4968 else
4969 enable_libstdcxx_pch=$is_hosted
4972 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4973 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4975 if test $enable_libstdcxx_pch = yes; then
4976 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4977 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4978 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 ac_save_CXXFLAGS="$CXXFLAGS"
4982 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4985 ac_ext=cc
4986 ac_cpp='$CXXCPP $CPPFLAGS'
4987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 echo '#include <math.h>' > conftest.h
4992 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4993 -o conftest.h.gch 1>&5 2>&1 &&
4994 echo '#error "pch failed"' > conftest.h &&
4995 echo '#include "conftest.h"' > conftest.cc &&
4996 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4997 then
4998 glibcxx_cv_prog_CXX_pch=yes
4999 else
5000 glibcxx_cv_prog_CXX_pch=no
5002 rm -f conftest*
5003 CXXFLAGS=$ac_save_CXXFLAGS
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5013 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5014 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5018 if test $enable_libstdcxx_pch = yes; then
5019 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5020 else
5021 glibcxx_PCHFLAGS=""
5026 # Enable all the variable C++ runtime options.
5027 # NB: C_MBCHAR must come early.
5029 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5030 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5031 # Check whether --enable-cstdio or --disable-cstdio was given.
5032 if test "${enable_cstdio+set}" = set; then
5033 enableval="$enable_cstdio"
5035 case "$enableval" in
5036 stdio) ;;
5037 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5038 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5039 { (exit 1); exit 1; }; } ;;
5040 esac
5042 else
5043 enable_cstdio=stdio
5047 # Now that libio has been removed, you can have any color you want as long
5048 # as it's black. This is one big no-op until other packages are added, but
5049 # showing the framework never hurts.
5050 case ${enable_cstdio} in
5051 stdio)
5052 CSTDIO_H=config/io/c_io_stdio.h
5053 BASIC_FILE_H=config/io/basic_file_stdio.h
5054 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5055 echo "$as_me:$LINENO: result: stdio" >&5
5056 echo "${ECHO_T}stdio" >&6
5058 esac
5064 ac_ext=c
5065 ac_cpp='$CPP $CPPFLAGS'
5066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5070 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5071 # On Suns, sometimes $CPP names a directory.
5072 if test -n "$CPP" && test -d "$CPP"; then
5073 CPP=
5075 if test -z "$CPP"; then
5076 if test "${ac_cv_prog_CPP+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 # Double quotes because CPP needs to be expanded
5080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082 ac_preproc_ok=false
5083 for ac_c_preproc_warn_flag in '' yes
5085 # Use a header file that comes with gcc, so configuring glibc
5086 # with a fresh cross-compiler works.
5087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 # <limits.h> exists even on freestanding compilers.
5089 # On the NeXT, cc -E runs the code through the compiler's parser,
5090 # not just through cpp. "Syntax error" is here to catch this case.
5091 cat >conftest.$ac_ext <<_ACEOF
5092 #line $LINENO "configure"
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103 Syntax error
5104 _ACEOF
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_c_preproc_warn_flag
5115 else
5116 ac_cpp_err=
5118 else
5119 ac_cpp_err=yes
5121 if test -z "$ac_cpp_err"; then
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 # Broken: fails on valid input.
5128 continue
5130 rm -f conftest.err conftest.$ac_ext
5132 # OK, works on sane cases. Now check whether non-existent headers
5133 # can be detected and how.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 #line $LINENO "configure"
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5142 _ACEOF
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145 ac_status=$?
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_c_preproc_warn_flag
5153 else
5154 ac_cpp_err=
5156 else
5157 ac_cpp_err=yes
5159 if test -z "$ac_cpp_err"; then
5160 # Broken: success on invalid input.
5161 continue
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 # Passes both tests.
5167 ac_preproc_ok=:
5168 break
5170 rm -f conftest.err conftest.$ac_ext
5172 done
5173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5174 rm -f conftest.err conftest.$ac_ext
5175 if $ac_preproc_ok; then
5176 break
5179 done
5180 ac_cv_prog_CPP=$CPP
5183 CPP=$ac_cv_prog_CPP
5184 else
5185 ac_cv_prog_CPP=$CPP
5187 echo "$as_me:$LINENO: result: $CPP" >&5
5188 echo "${ECHO_T}$CPP" >&6
5189 ac_preproc_ok=false
5190 for ac_c_preproc_warn_flag in '' yes
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat >conftest.$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5200 /* confdefs.h. */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 #ifdef __STDC__
5206 # include <limits.h>
5207 #else
5208 # include <assert.h>
5209 #endif
5210 Syntax error
5211 _ACEOF
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null; then
5220 if test -s conftest.err; then
5221 ac_cpp_err=$ac_c_preproc_warn_flag
5222 else
5223 ac_cpp_err=
5225 else
5226 ac_cpp_err=yes
5228 if test -z "$ac_cpp_err"; then
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 # Broken: fails on valid input.
5235 continue
5237 rm -f conftest.err conftest.$ac_ext
5239 # OK, works on sane cases. Now check whether non-existent headers
5240 # can be detected and how.
5241 cat >conftest.$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <ac_nonexistent.h>
5249 _ACEOF
5250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } >/dev/null; then
5258 if test -s conftest.err; then
5259 ac_cpp_err=$ac_c_preproc_warn_flag
5260 else
5261 ac_cpp_err=
5263 else
5264 ac_cpp_err=yes
5266 if test -z "$ac_cpp_err"; then
5267 # Broken: success on invalid input.
5268 continue
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 # Passes both tests.
5274 ac_preproc_ok=:
5275 break
5277 rm -f conftest.err conftest.$ac_ext
5279 done
5280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5281 rm -f conftest.err conftest.$ac_ext
5282 if $ac_preproc_ok; then
5284 else
5285 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5286 See \`config.log' for more details." >&5
5287 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5288 See \`config.log' for more details." >&2;}
5289 { (exit 1); exit 1; }; }
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5299 echo "$as_me:$LINENO: checking for egrep" >&5
5300 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5301 if test "${ac_cv_prog_egrep+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5305 then ac_cv_prog_egrep='grep -E'
5306 else ac_cv_prog_egrep='egrep'
5309 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5310 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5311 EGREP=$ac_cv_prog_egrep
5314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5316 if test "${ac_cv_header_stdc+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <stdlib.h>
5327 #include <stdarg.h>
5328 #include <string.h>
5329 #include <float.h>
5332 main ()
5336 return 0;
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_cv_header_stdc=yes
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ac_cv_header_stdc=no
5358 rm -f conftest.$ac_objext conftest.$ac_ext
5360 if test $ac_cv_header_stdc = yes; then
5361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5362 cat >conftest.$ac_ext <<_ACEOF
5363 #line $LINENO "configure"
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <string.h>
5371 _ACEOF
5372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373 $EGREP "memchr" >/dev/null 2>&1; then
5375 else
5376 ac_cv_header_stdc=no
5378 rm -f conftest*
5382 if test $ac_cv_header_stdc = yes; then
5383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 #include <stdlib.h>
5393 _ACEOF
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "free" >/dev/null 2>&1; then
5397 else
5398 ac_cv_header_stdc=no
5400 rm -f conftest*
5404 if test $ac_cv_header_stdc = yes; then
5405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5406 if test "$cross_compiling" = yes; then
5408 else
5409 cat >conftest.$ac_ext <<_ACEOF
5410 #line $LINENO "configure"
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <ctype.h>
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 #else
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5426 #endif
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5430 main ()
5432 int i;
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5436 exit(2);
5437 exit (0);
5439 _ACEOF
5440 rm -f conftest$ac_exeext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5442 (eval $ac_link) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5452 else
5453 echo "$as_me: program exited with status $ac_status" >&5
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ( exit $ac_status )
5458 ac_cv_header_stdc=no
5460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5465 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5466 if test $ac_cv_header_stdc = yes; then
5468 cat >>confdefs.h <<\_ACEOF
5469 #define STDC_HEADERS 1
5470 _ACEOF
5474 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5484 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5485 inttypes.h stdint.h unistd.h
5487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5488 echo "$as_me:$LINENO: checking for $ac_header" >&5
5489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 $ac_includes_default
5502 #include <$ac_header>
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506 (eval $ac_compile) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 eval "$as_ac_Header=yes"
5517 else
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 eval "$as_ac_Header=no"
5523 rm -f conftest.$ac_objext conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5528 cat >>confdefs.h <<_ACEOF
5529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5530 _ACEOF
5534 done
5538 echo "$as_me:$LINENO: checking for C locale to use" >&5
5539 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5540 # Check whether --enable-clocale or --disable-clocale was given.
5541 if test "${enable_clocale+set}" = set; then
5542 enableval="$enable_clocale"
5544 case "$enableval" in
5545 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5546 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5547 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5548 { (exit 1); exit 1; }; } ;;
5549 esac
5551 else
5552 enable_clocale=auto
5556 # If they didn't use this option switch, or if they specified --enable
5557 # with no specific model, we'll have to look for one. If they
5558 # specified --disable (???), do likewise.
5559 if test $enable_clocale = no || test $enable_clocale = yes; then
5560 enable_clocale=auto
5563 # Either a known package, or "auto"
5564 enable_clocale_flag=$enable_clocale
5566 # Probe for locale support if no specific model is specified.
5567 # Default to "generic".
5568 if test $enable_clocale_flag = auto; then
5569 case x${target_os} in
5570 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 #include <features.h>
5580 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5581 _GLIBCXX_ok
5582 #endif
5584 _ACEOF
5585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5586 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5587 enable_clocale_flag=gnu
5588 else
5589 enable_clocale_flag=generic
5591 rm -f conftest*
5594 # Test for bugs early in glibc-2.2.x series
5595 if test x$enable_clocale_flag = xgnu; then
5596 if test "$cross_compiling" = yes; then
5597 enable_clocale_flag=generic
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 #line $LINENO "configure"
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5607 #define _GNU_SOURCE 1
5608 #include <locale.h>
5609 #include <string.h>
5610 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5611 extern __typeof(newlocale) __newlocale;
5612 extern __typeof(duplocale) __duplocale;
5613 extern __typeof(strcoll_l) __strcoll_l;
5614 #endif
5615 int main()
5617 const char __one[] = "Äuglein Augmen";
5618 const char __two[] = "Äuglein";
5619 int i;
5620 int j;
5621 __locale_t loc;
5622 __locale_t loc_dup;
5623 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5624 loc_dup = __duplocale(loc);
5625 i = __strcoll_l(__one, __two, loc);
5626 j = __strcoll_l(__one, __two, loc_dup);
5627 return 0;
5630 _ACEOF
5631 rm -f conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 enable_clocale_flag=gnu
5643 else
5644 echo "$as_me: program exited with status $ac_status" >&5
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ( exit $ac_status )
5649 enable_clocale_flag=generic
5651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5655 # ... at some point put __strxfrm_l tests in as well.
5658 enable_clocale_flag=generic
5660 esac
5663 # Deal with gettext issues. Default to not using it (=no) until we detect
5664 # support for it later. Let the user turn it off via --e/d, but let that
5665 # default to on for easier handling.
5666 USE_NLS=no
5667 # Check whether --enable-nls or --disable-nls was given.
5668 if test "${enable_nls+set}" = set; then
5669 enableval="$enable_nls"
5671 else
5672 enable_nls=yes
5675 # Set configure bits for specified locale package
5676 case ${enable_clocale_flag} in
5677 generic)
5678 echo "$as_me:$LINENO: result: generic" >&5
5679 echo "${ECHO_T}generic" >&6
5681 CLOCALE_H=config/locale/generic/c_locale.h
5682 CLOCALE_CC=config/locale/generic/c_locale.cc
5683 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5684 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5685 CCOLLATE_CC=config/locale/generic/collate_members.cc
5686 CCTYPE_CC=config/locale/generic/ctype_members.cc
5687 CMESSAGES_H=config/locale/generic/messages_members.h
5688 CMESSAGES_CC=config/locale/generic/messages_members.cc
5689 CMONEY_CC=config/locale/generic/monetary_members.cc
5690 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5691 CTIME_H=config/locale/generic/time_members.h
5692 CTIME_CC=config/locale/generic/time_members.cc
5693 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5695 gnu)
5696 echo "$as_me:$LINENO: result: gnu" >&5
5697 echo "${ECHO_T}gnu" >&6
5699 # Declare intention to use gettext, and add support for specific
5700 # languages.
5701 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5702 ALL_LINGUAS="de fr"
5704 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5705 # Extract the first word of "msgfmt", so it can be a program name with args.
5706 set dummy msgfmt; ac_word=$2
5707 echo "$as_me:$LINENO: checking for $ac_word" >&5
5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5709 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712 if test -n "$check_msgfmt"; then
5713 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_check_msgfmt="yes"
5723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5726 done
5727 done
5729 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5732 check_msgfmt=$ac_cv_prog_check_msgfmt
5733 if test -n "$check_msgfmt"; then
5734 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5735 echo "${ECHO_T}$check_msgfmt" >&6
5736 else
5737 echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6
5741 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5742 USE_NLS=yes
5744 # Export the build objects.
5745 for ling in $ALL_LINGUAS; do \
5746 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5747 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5748 done
5752 CLOCALE_H=config/locale/gnu/c_locale.h
5753 CLOCALE_CC=config/locale/gnu/c_locale.cc
5754 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5755 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5756 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5757 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5758 CMESSAGES_H=config/locale/gnu/messages_members.h
5759 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5760 CMONEY_CC=config/locale/gnu/monetary_members.cc
5761 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5762 CTIME_H=config/locale/gnu/time_members.h
5763 CTIME_CC=config/locale/gnu/time_members.cc
5764 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5766 ieee_1003.1-2001)
5767 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5768 echo "${ECHO_T}IEEE 1003.1" >&6
5770 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5771 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5772 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5773 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5774 CCOLLATE_CC=config/locale/generic/collate_members.cc
5775 CCTYPE_CC=config/locale/generic/ctype_members.cc
5776 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5777 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5778 CMONEY_CC=config/locale/generic/monetary_members.cc
5779 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5780 CTIME_H=config/locale/generic/time_members.h
5781 CTIME_CC=config/locale/generic/time_members.cc
5782 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5784 esac
5786 # This is where the testsuite looks for locale catalogs, using the
5787 # -DLOCALEDIR define during testsuite compilation.
5788 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5791 # A standalone libintl (e.g., GNU libintl) may be in use.
5792 if test $USE_NLS = yes; then
5794 for ac_header in libintl.h
5796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5805 else
5806 # Is the header compilable?
5807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5809 cat >conftest.$ac_ext <<_ACEOF
5810 #line $LINENO "configure"
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 $ac_includes_default
5817 #include <$ac_header>
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_header_compiler=yes
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 ac_header_compiler=no
5838 rm -f conftest.$ac_objext conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5840 echo "${ECHO_T}$ac_header_compiler" >&6
5842 # Is the header present?
5843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5846 #line $LINENO "configure"
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #include <$ac_header>
5853 _ACEOF
5854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } >/dev/null; then
5862 if test -s conftest.err; then
5863 ac_cpp_err=$ac_c_preproc_warn_flag
5864 else
5865 ac_cpp_err=
5867 else
5868 ac_cpp_err=yes
5870 if test -z "$ac_cpp_err"; then
5871 ac_header_preproc=yes
5872 else
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 ac_header_preproc=no
5878 rm -f conftest.err conftest.$ac_ext
5879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5880 echo "${ECHO_T}$ac_header_preproc" >&6
5882 # So? What about this header?
5883 case $ac_header_compiler:$ac_header_preproc in
5884 yes:no )
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5890 cat <<\_ASBOX
5891 ## ------------------------------------ ##
5892 ## Report this to bug-autoconf@gnu.org. ##
5893 ## ------------------------------------ ##
5894 _ASBOX
5896 sed "s/^/$as_me: WARNING: /" >&2
5898 no:yes )
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5906 cat <<\_ASBOX
5907 ## ------------------------------------ ##
5908 ## Report this to bug-autoconf@gnu.org. ##
5909 ## ------------------------------------ ##
5910 _ASBOX
5912 sed "s/^/$as_me: WARNING: /" >&2
5914 esac
5915 echo "$as_me:$LINENO: checking for $ac_header" >&5
5916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 eval "$as_ac_Header=$ac_header_preproc"
5922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5927 cat >>confdefs.h <<_ACEOF
5928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5929 _ACEOF
5931 else
5932 USE_NLS=no
5935 done
5937 echo "$as_me:$LINENO: checking for library containing gettext" >&5
5938 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5939 if test "${ac_cv_search_gettext+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 ac_func_search_save_LIBS=$LIBS
5943 ac_cv_search_gettext=no
5944 if test x$gcc_no_link = xyes; then
5945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5947 { (exit 1); exit 1; }; }
5949 cat >conftest.$ac_ext <<_ACEOF
5950 #line $LINENO "configure"
5951 /* confdefs.h. */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 #ifdef __cplusplus
5959 extern "C"
5960 #endif
5961 /* We use char because int might match the return type of a gcc2
5962 builtin and then its argument prototype would still apply. */
5963 char gettext ();
5965 main ()
5967 gettext ();
5969 return 0;
5971 _ACEOF
5972 rm -f conftest.$ac_objext conftest$ac_exeext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974 (eval $ac_link) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -s conftest$ac_exeext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_search_gettext="none required"
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5991 if test "$ac_cv_search_gettext" = no; then
5992 for ac_lib in intl; do
5993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5994 if test x$gcc_no_link = xyes; then
5995 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5997 { (exit 1); exit 1; }; }
5999 cat >conftest.$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 #ifdef __cplusplus
6009 extern "C"
6010 #endif
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6013 char gettext ();
6015 main ()
6017 gettext ();
6019 return 0;
6021 _ACEOF
6022 rm -f conftest.$ac_objext conftest$ac_exeext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024 (eval $ac_link) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -s conftest$ac_exeext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_search_gettext="-l$ac_lib"
6035 break
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6042 done
6044 LIBS=$ac_func_search_save_LIBS
6046 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6047 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6048 if test "$ac_cv_search_gettext" != no; then
6049 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6051 else
6052 USE_NLS=no
6056 if test $USE_NLS = yes; then
6057 cat >>confdefs.h <<\_ACEOF
6058 #define _GLIBCXX_USE_NLS 1
6059 _ACEOF
6079 # Check whether --enable-cheaders or --disable-cheaders was given.
6080 if test "${enable_cheaders+set}" = set; then
6081 enableval="$enable_cheaders"
6083 case "$enableval" in
6084 c|c_std) ;;
6085 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6086 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6087 { (exit 1); exit 1; }; } ;;
6088 esac
6090 else
6091 enable_cheaders=$c_model
6094 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6095 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6097 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6104 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6105 if test "${enable_c_mbchar+set}" = set; then
6106 enableval="$enable_c_mbchar"
6108 case "$enableval" in
6109 yes|no) ;;
6110 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6111 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6112 { (exit 1); exit 1; }; } ;;
6113 esac
6115 else
6116 enable_c_mbchar=yes
6119 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6123 # Check whether --enable-c99 or --disable-c99 was given.
6124 if test "${enable_c99+set}" = set; then
6125 enableval="$enable_c99"
6127 case "$enableval" in
6128 yes|no) ;;
6129 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6130 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6131 { (exit 1); exit 1; }; } ;;
6132 esac
6134 else
6135 enable_c99=yes
6141 ac_ext=cc
6142 ac_cpp='$CXXCPP $CPPFLAGS'
6143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6148 # Check for the existence of <math.h> functions used if C99 is enabled.
6149 ac_c99_math=yes;
6150 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6151 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6152 cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 #include <math.h>
6161 main ()
6163 fpclassify(0.0);
6165 return 0;
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170 (eval $ac_compile) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -s conftest.$ac_objext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 ac_c99_math=no
6187 rm -f conftest.$ac_objext conftest.$ac_ext
6188 cat >conftest.$ac_ext <<_ACEOF
6189 #line $LINENO "configure"
6190 /* confdefs.h. */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 #include <math.h>
6197 main ()
6199 isfinite(0.0);
6201 return 0;
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6217 else
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6221 ac_c99_math=no
6223 rm -f conftest.$ac_objext conftest.$ac_ext
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <math.h>
6233 main ()
6235 isinf(0.0);
6237 return 0;
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242 (eval $ac_compile) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ac_c99_math=no
6259 rm -f conftest.$ac_objext conftest.$ac_ext
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line $LINENO "configure"
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <math.h>
6269 main ()
6271 isnan(0.0);
6273 return 0;
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -s conftest.$ac_objext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6289 else
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_c99_math=no
6295 rm -f conftest.$ac_objext conftest.$ac_ext
6296 cat >conftest.$ac_ext <<_ACEOF
6297 #line $LINENO "configure"
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <math.h>
6305 main ()
6307 isnormal(0.0);
6309 return 0;
6311 _ACEOF
6312 rm -f conftest.$ac_objext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314 (eval $ac_compile) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6325 else
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 ac_c99_math=no
6331 rm -f conftest.$ac_objext conftest.$ac_ext
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <math.h>
6341 main ()
6343 signbit(0.0);
6345 return 0;
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_c99_math=no
6367 rm -f conftest.$ac_objext conftest.$ac_ext
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #include <math.h>
6377 main ()
6379 isgreater(0.0,0.0);
6381 return 0;
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386 (eval $ac_compile) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6397 else
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ac_c99_math=no
6403 rm -f conftest.$ac_objext conftest.$ac_ext
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <math.h>
6413 main ()
6415 isgreaterequal(0.0,0.0);
6417 return 0;
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6433 else
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 ac_c99_math=no
6439 rm -f conftest.$ac_objext conftest.$ac_ext
6440 cat >conftest.$ac_ext <<_ACEOF
6441 #line $LINENO "configure"
6442 /* confdefs.h. */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 #include <math.h>
6449 main ()
6451 isless(0.0,0.0);
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_c99_math=no
6475 rm -f conftest.$ac_objext conftest.$ac_ext
6476 cat >conftest.$ac_ext <<_ACEOF
6477 #line $LINENO "configure"
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <math.h>
6485 main ()
6487 islessequal(0.0,0.0);
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494 (eval $ac_compile) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -s conftest.$ac_objext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_c99_math=no
6511 rm -f conftest.$ac_objext conftest.$ac_ext
6512 cat >conftest.$ac_ext <<_ACEOF
6513 #line $LINENO "configure"
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <math.h>
6521 main ()
6523 islessgreater(0.0,0.0);
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_c99_math=no
6547 rm -f conftest.$ac_objext conftest.$ac_ext
6548 cat >conftest.$ac_ext <<_ACEOF
6549 #line $LINENO "configure"
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 #include <math.h>
6557 main ()
6559 isunordered(0.0,0.0);
6561 return 0;
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_c99_math=no
6583 rm -f conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6585 echo "${ECHO_T}$ac_c99_math" >&6
6587 # Check for the existence in <stdio.h> of vscanf, et. al.
6588 ac_c99_stdio=yes;
6589 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6590 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6592 #line $LINENO "configure"
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <stdio.h>
6600 main ()
6602 snprintf("12", 0, "%i");
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6620 else
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6624 ac_c99_stdio=no
6626 rm -f conftest.$ac_objext conftest.$ac_ext
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6629 /* confdefs.h. */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <stdio.h>
6635 #include <stdarg.h>
6636 void foo(char* fmt, ...)
6637 {va_list args; va_start(args, fmt);
6638 vfscanf(stderr, "%i", args);}
6640 main ()
6644 return 0;
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649 (eval $ac_compile) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -s conftest.$ac_objext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 ac_c99_stdio=no
6666 rm -f conftest.$ac_objext conftest.$ac_ext
6667 cat >conftest.$ac_ext <<_ACEOF
6668 #line $LINENO "configure"
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 #include <stdio.h>
6675 #include <stdarg.h>
6676 void foo(char* fmt, ...)
6677 {va_list args; va_start(args, fmt);
6678 vscanf("%i", args);}
6680 main ()
6684 return 0;
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_c99_stdio=no
6706 rm -f conftest.$ac_objext conftest.$ac_ext
6707 cat >conftest.$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 #include <stdio.h>
6715 #include <stdarg.h>
6716 void foo(char* fmt, ...)
6717 {va_list args; va_start(args, fmt);
6718 vsnprintf(fmt, 0, "%i", args);}
6720 main ()
6724 return 0;
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -s conftest.$ac_objext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_c99_stdio=no
6746 rm -f conftest.$ac_objext conftest.$ac_ext
6747 cat >conftest.$ac_ext <<_ACEOF
6748 #line $LINENO "configure"
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 #include <stdio.h>
6755 #include <stdarg.h>
6756 void foo(char* fmt, ...)
6757 {va_list args; va_start(args, fmt);
6758 vsscanf(fmt, "%i", args);}
6760 main ()
6764 return 0;
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_c99_stdio=no
6786 rm -f conftest.$ac_objext conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6788 echo "${ECHO_T}$ac_c99_stdio" >&6
6790 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6791 ac_c99_stdlib=yes;
6792 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6793 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6794 if test "${ac_c99_lldiv_t+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6798 cat >conftest.$ac_ext <<_ACEOF
6799 #line $LINENO "configure"
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 #include <stdlib.h>
6807 main ()
6809 lldiv_t mydivt;
6811 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -s conftest.$ac_objext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_c99_lldiv_t=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_c99_lldiv_t=no
6833 rm -f conftest.$ac_objext conftest.$ac_ext
6837 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6838 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6840 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6841 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6842 cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 #include <stdlib.h>
6851 main ()
6853 char* tmp; strtof("gnu", &tmp);
6855 return 0;
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6871 else
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6875 ac_c99_stdlib=no
6877 rm -f conftest.$ac_objext conftest.$ac_ext
6878 cat >conftest.$ac_ext <<_ACEOF
6879 #line $LINENO "configure"
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <stdlib.h>
6887 main ()
6889 char* tmp; strtold("gnu", &tmp);
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -s conftest.$ac_objext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 ac_c99_stdlib=no
6913 rm -f conftest.$ac_objext conftest.$ac_ext
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line $LINENO "configure"
6916 /* confdefs.h. */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 #include <stdlib.h>
6923 main ()
6925 llabs(10);
6927 return 0;
6929 _ACEOF
6930 rm -f conftest.$ac_objext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932 (eval $ac_compile) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6947 ac_c99_stdlib=no
6949 rm -f conftest.$ac_objext conftest.$ac_ext
6950 cat >conftest.$ac_ext <<_ACEOF
6951 #line $LINENO "configure"
6952 /* confdefs.h. */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 #include <stdlib.h>
6959 main ()
6961 lldiv(10,1);
6963 return 0;
6965 _ACEOF
6966 rm -f conftest.$ac_objext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968 (eval $ac_compile) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_c99_stdlib=no
6985 rm -f conftest.$ac_objext conftest.$ac_ext
6986 cat >conftest.$ac_ext <<_ACEOF
6987 #line $LINENO "configure"
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <stdlib.h>
6995 main ()
6997 atoll("10");
6999 return 0;
7001 _ACEOF
7002 rm -f conftest.$ac_objext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004 (eval $ac_compile) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -s conftest.$ac_objext'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7019 ac_c99_stdlib=no
7021 rm -f conftest.$ac_objext conftest.$ac_ext
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <stdlib.h>
7031 main ()
7033 _Exit(0);
7035 return 0;
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7040 (eval $ac_compile) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_c99_stdlib=no
7057 rm -f conftest.$ac_objext conftest.$ac_ext
7058 if test x"$ac_c99_lldiv_t" = x"no"; then
7059 ac_c99_stdlib=no;
7061 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7062 echo "${ECHO_T}$ac_c99_stdlib" >&6
7064 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7065 # XXX the wchar.h checks should be rolled into the general C99 bits.
7066 ac_c99_wchar=yes;
7067 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7068 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #include <wchar.h>
7078 main ()
7080 wcstold(L"10.0", NULL);
7082 return 0;
7084 _ACEOF
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7098 else
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ac_c99_wchar=no
7104 rm -f conftest.$ac_objext conftest.$ac_ext
7105 cat >conftest.$ac_ext <<_ACEOF
7106 #line $LINENO "configure"
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <wchar.h>
7114 main ()
7116 wcstoll(L"10", NULL, 10);
7118 return 0;
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_c99_wchar=no
7140 rm -f conftest.$ac_objext conftest.$ac_ext
7141 cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7143 /* confdefs.h. */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 #include <wchar.h>
7150 main ()
7152 wcstoull(L"10", NULL, 10);
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -s conftest.$ac_objext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_c99_wchar=no
7176 rm -f conftest.$ac_objext conftest.$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7178 echo "${ECHO_T}$ac_c99_wchar" >&6
7180 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7181 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7182 if test x"$ac_c99_math" = x"no" ||
7183 test x"$ac_c99_stdio" = x"no" ||
7184 test x"$ac_c99_stdlib" = x"no" ||
7185 test x"$ac_c99_wchar" = x"no"; then
7186 enable_c99=no;
7188 echo "$as_me:$LINENO: result: $enable_c99" >&5
7189 echo "${ECHO_T}$enable_c99" >&6
7191 # Option parsed, now set things appropriately
7192 if test x"$enable_c99" = x"yes"; then
7193 cat >>confdefs.h <<\_ACEOF
7194 #define _GLIBCXX_USE_C99 1
7195 _ACEOF
7199 ac_ext=c
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7207 # Check whether --enable-long-long or --disable-long-long was given.
7208 if test "${enable_long_long+set}" = set; then
7209 enableval="$enable_long_long"
7211 case "$enableval" in
7212 yes|no) ;;
7213 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7214 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7215 { (exit 1); exit 1; }; } ;;
7216 esac
7218 else
7219 enable_long_long=yes
7225 ac_ext=cc
7226 ac_cpp='$CXXCPP $CPPFLAGS'
7227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7232 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7233 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7234 # iostreams require strtoll, strtoull to compile
7235 cat >conftest.$ac_ext <<_ACEOF
7236 #line $LINENO "configure"
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 #include <stdlib.h>
7244 main ()
7246 char* tmp; strtoll("gnu", &tmp, 10);
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 enable_long_long=no
7270 rm -f conftest.$ac_objext conftest.$ac_ext
7271 cat >conftest.$ac_ext <<_ACEOF
7272 #line $LINENO "configure"
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 #include <stdlib.h>
7280 main ()
7282 char* tmp; strtoull("gnu", &tmp, 10);
7284 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 enable_long_long=no
7306 rm -f conftest.$ac_objext conftest.$ac_ext
7308 # Option parsed, now set things appropriately
7309 if test $enable_long_long = yes; then
7310 cat >>confdefs.h <<\_ACEOF
7311 #define _GLIBCXX_USE_LONG_LONG 1
7312 _ACEOF
7315 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7316 echo "${ECHO_T}$enable_long_long" >&6
7318 ac_ext=c
7319 ac_cpp='$CPP $CPPFLAGS'
7320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7327 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7328 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7329 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7330 echo "${ECHO_T}$target_thread_file" >&6
7332 if test $target_thread_file != single; then
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_GTHR_DEFAULT 1
7335 _ACEOF
7337 cat >>confdefs.h <<\_ACEOF
7338 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7339 _ACEOF
7343 glibcxx_thread_h=gthr-$target_thread_file.h
7347 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7348 if test "${enable_concept_checks+set}" = set; then
7349 enableval="$enable_concept_checks"
7351 case "$enableval" in
7352 yes|no) ;;
7353 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7354 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7355 { (exit 1); exit 1; }; } ;;
7356 esac
7358 else
7359 enable_concept_checks=no
7362 if test $enable_concept_checks = yes; then
7363 cat >>confdefs.h <<\_ACEOF
7364 #define _GLIBCXX_CONCEPT_CHECKS 1
7365 _ACEOF
7370 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7371 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7372 enableval="$enable_libstdcxx_debug_flags"
7373 case "x$enable_libstdcxx_debug_flags" in
7374 xno | x) enable_libstdcxx_debug_flags= ;;
7375 x-*) ;;
7376 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7377 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7378 { (exit 1); exit 1; }; } ;;
7379 esac
7380 else
7381 enable_libstdcxx_debug_flags="-g3 -O0"
7385 # Option parsed, now set things appropriately
7386 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7389 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7390 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7393 echo "$as_me:$LINENO: checking for additional debug build" >&5
7394 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7395 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7396 if test "${enable_libstdcxx_debug+set}" = set; then
7397 enableval="$enable_libstdcxx_debug"
7399 case "$enableval" in
7400 yes|no) ;;
7401 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7402 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7403 { (exit 1); exit 1; }; } ;;
7404 esac
7406 else
7407 enable_libstdcxx_debug=no
7410 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7411 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7414 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7415 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7416 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7417 if test "${enable_cxx_flags+set}" = set; then
7418 enableval="$enable_cxx_flags"
7419 case "x$enable_cxx_flags" in
7420 xno | x) enable_cxx_flags= ;;
7421 x-*) ;;
7422 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7423 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7424 { (exit 1); exit 1; }; } ;;
7425 esac
7426 else
7427 enable_cxx_flags=
7431 # Run through flags (either default or command-line) and set anything
7432 # extra (e.g., #defines) that must accompany particular g++ options.
7433 if test -n "$enable_cxx_flags"; then
7434 for f in $enable_cxx_flags; do
7435 case "$f" in
7436 -fhonor-std) ;;
7437 -*) ;;
7438 *) # and we're trying to pass /what/ exactly?
7439 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7440 echo "$as_me: error: compiler flags start with a -" >&2;}
7441 { (exit 1); exit 1; }; } ;;
7442 esac
7443 done
7446 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7447 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7448 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7452 # No surprises, no surprises...
7453 if test $atomicity_include_dir = cpu/generic ; then
7454 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7455 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7456 if test $target_thread_file = single; then
7457 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7458 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7459 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7460 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7461 else
7462 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7463 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7464 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7465 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7470 if $GLIBCXX_IS_NATIVE; then
7472 # We can do more elaborate tests that assume a working linker.
7473 CANADIAN=no
7475 # Check for available headers.
7489 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7490 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7491 sys/types.h
7493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7495 echo "$as_me:$LINENO: checking for $ac_header" >&5
7496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7502 else
7503 # Is the header compilable?
7504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7506 cat >conftest.$ac_ext <<_ACEOF
7507 #line $LINENO "configure"
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 #include <$ac_header>
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7518 (eval $ac_compile) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_header_compiler=yes
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 ac_header_compiler=no
7535 rm -f conftest.$ac_objext conftest.$ac_ext
7536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7537 echo "${ECHO_T}$ac_header_compiler" >&6
7539 # Is the header present?
7540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7542 cat >conftest.$ac_ext <<_ACEOF
7543 #line $LINENO "configure"
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 #include <$ac_header>
7550 _ACEOF
7551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7553 ac_status=$?
7554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } >/dev/null; then
7559 if test -s conftest.err; then
7560 ac_cpp_err=$ac_c_preproc_warn_flag
7561 else
7562 ac_cpp_err=
7564 else
7565 ac_cpp_err=yes
7567 if test -z "$ac_cpp_err"; then
7568 ac_header_preproc=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 ac_header_preproc=no
7575 rm -f conftest.err conftest.$ac_ext
7576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7577 echo "${ECHO_T}$ac_header_preproc" >&6
7579 # So? What about this header?
7580 case $ac_header_compiler:$ac_header_preproc in
7581 yes:no )
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7587 cat <<\_ASBOX
7588 ## ------------------------------------ ##
7589 ## Report this to bug-autoconf@gnu.org. ##
7590 ## ------------------------------------ ##
7591 _ASBOX
7593 sed "s/^/$as_me: WARNING: /" >&2
7595 no:yes )
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7603 cat <<\_ASBOX
7604 ## ------------------------------------ ##
7605 ## Report this to bug-autoconf@gnu.org. ##
7606 ## ------------------------------------ ##
7607 _ASBOX
7609 sed "s/^/$as_me: WARNING: /" >&2
7611 esac
7612 echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617 eval "$as_ac_Header=$ac_header_preproc"
7619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7626 _ACEOF
7630 done
7634 # All these tests are for C++; save the language and the compiler flags.
7635 # The CXXFLAGS thing is suspicious, but based on similar bits previously
7636 # found in GLIBCXX_CONFIGURE.
7639 ac_ext=cc
7640 ac_cpp='$CXXCPP $CPPFLAGS'
7641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7645 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7646 ac_save_CXXFLAGS="$CXXFLAGS"
7648 # Check for maintainer-mode bits.
7649 if test x"$USE_MAINTAINER_MODE" = xno; then
7650 WERROR=''
7651 else
7652 WERROR='-Werror'
7655 # Check for -ffunction-sections -fdata-sections
7656 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7657 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7658 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7659 cat >conftest.$ac_ext <<_ACEOF
7660 #line $LINENO "configure"
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7668 main ()
7670 int foo;
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -s conftest.$ac_objext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 (eval $ac_try) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_fdsections=yes
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_fdsections=no
7694 rm -f conftest.$ac_objext conftest.$ac_ext
7695 if test "$ac_test_CXXFLAGS" = set; then
7696 CXXFLAGS="$ac_save_CXXFLAGS"
7697 else
7698 # this is the suspicious part
7699 CXXFLAGS=''
7701 if test x"$ac_fdsections" = x"yes"; then
7702 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7704 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7705 echo "${ECHO_T}$ac_fdsections" >&6
7707 ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717 # If we're not using GNU ld, then there's no point in even trying these
7718 # tests. Check for that first. We should have already tested for gld
7719 # by now (in libtool), but require it now just to be safe...
7720 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7721 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7725 # The name set by libtool depends on the version of libtool. Shame on us
7726 # for depending on an impl detail, but c'est la vie. Older versions used
7727 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7728 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7729 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7730 # set (hence we're using an older libtool), then set it.
7731 if test x${with_gnu_ld+set} != xset; then
7732 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7733 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7734 with_gnu_ld=no
7735 else
7736 with_gnu_ld=$ac_cv_prog_gnu_ld
7740 # Start by getting the version number. I think the libtool test already
7741 # does some of this, but throws away the result.
7743 ldver=`$LD --version 2>/dev/null | head -1 | \
7744 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7746 glibcxx_gnu_ld_version=`echo $ldver | \
7747 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7749 # Set --gc-sections.
7750 if test "$with_gnu_ld" = "notbroken"; then
7751 # GNU ld it is! Joy and bunny rabbits!
7753 # All these tests are for C++; save the language and the compiler flags.
7754 # Need to do this so that g++ won't try to link in libstdc++
7755 ac_test_CFLAGS="${CFLAGS+set}"
7756 ac_save_CFLAGS="$CFLAGS"
7757 CFLAGS='-x c++ -Wl,--gc-sections'
7759 # Check for -Wl,--gc-sections
7760 # XXX This test is broken at the moment, as symbols required for linking
7761 # are now in libsupc++ (not built yet). In addition, this test has
7762 # cored on solaris in the past. In addition, --gc-sections doesn't
7763 # really work at the moment (keeps on discarding used sections, first
7764 # .eh_frame and now some of the glibc sections for iconv).
7765 # Bzzzzt. Thanks for playing, maybe next time.
7766 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7767 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7768 if test "$cross_compiling" = yes; then
7769 ac_sectionLDflags=yes
7770 else
7771 cat >conftest.$ac_ext <<_ACEOF
7772 #line $LINENO "configure"
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7779 int main(void)
7781 try { throw 1; }
7782 catch (...) { };
7783 return 0;
7786 _ACEOF
7787 rm -f conftest$ac_exeext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789 (eval $ac_link) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_sectionLDflags=yes
7799 else
7800 echo "$as_me: program exited with status $ac_status" >&5
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 ( exit $ac_status )
7805 ac_sectionLDflags=no
7807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7809 if test "$ac_test_CFLAGS" = set; then
7810 CFLAGS="$ac_save_CFLAGS"
7811 else
7812 # this is the suspicious part
7813 CFLAGS=''
7815 if test "$ac_sectionLDflags" = "yes"; then
7816 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7818 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7819 echo "${ECHO_T}$ac_sectionLDflags" >&6
7822 # Set linker optimization flags.
7823 if test x"$with_gnu_ld" = x"yes"; then
7824 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7831 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7832 ac_save_CXXFLAGS="$CXXFLAGS"
7833 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7835 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7836 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7837 if test "${ac_cv_lib_m_sin+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 ac_check_lib_save_LIBS=$LIBS
7841 LIBS="-lm $LIBS"
7842 if test x$gcc_no_link = xyes; then
7843 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7844 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7845 { (exit 1); exit 1; }; }
7847 cat >conftest.$ac_ext <<_ACEOF
7848 #line $LINENO "configure"
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7855 /* Override any gcc2 internal prototype to avoid an error. */
7856 #ifdef __cplusplus
7857 extern "C"
7858 #endif
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7861 char sin ();
7863 main ()
7865 sin ();
7867 return 0;
7869 _ACEOF
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7872 (eval $ac_link) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 (eval $ac_try) 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_lib_m_sin=yes
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_cv_lib_m_sin=no
7889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7890 LIBS=$ac_check_lib_save_LIBS
7892 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7893 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7894 if test $ac_cv_lib_m_sin = yes; then
7895 libm="-lm"
7898 ac_save_LIBS="$LIBS"
7899 LIBS="$LIBS $libm"
7903 echo "$as_me:$LINENO: checking for isinf declaration" >&5
7904 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7905 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7906 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7912 ac_ext=cc
7913 ac_cpp='$CXXCPP $CPPFLAGS'
7914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 #include <math.h>
7926 #ifdef HAVE_IEEEFP_H
7927 #include <ieeefp.h>
7928 #endif
7931 main ()
7933 isinf(0);
7935 return 0;
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7940 (eval $ac_compile) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -s conftest.$ac_objext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 (eval $ac_try) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 glibcxx_cv_func_isinf_use=yes
7951 else
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 glibcxx_cv_func_isinf_use=no
7957 rm -f conftest.$ac_objext conftest.$ac_ext
7958 ac_ext=c
7959 ac_cpp='$CPP $CPPFLAGS'
7960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7968 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7969 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7971 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7973 for ac_func in isinf
7975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7976 echo "$as_me:$LINENO: checking for $ac_func" >&5
7977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7978 if eval "test \"\${$as_ac_var+set}\" = set"; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 if test x$gcc_no_link = xyes; then
7982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7984 { (exit 1); exit 1; }; }
7986 cat >conftest.$ac_ext <<_ACEOF
7987 #line $LINENO "configure"
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 /* System header to define __stub macros and hopefully few prototypes,
7994 which can conflict with char $ac_func (); below.
7995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7996 <limits.h> exists even on freestanding compilers. */
7997 #ifdef __STDC__
7998 # include <limits.h>
7999 #else
8000 # include <assert.h>
8001 #endif
8002 /* Override any gcc2 internal prototype to avoid an error. */
8003 #ifdef __cplusplus
8004 extern "C"
8006 #endif
8007 /* We use char because int might match the return type of a gcc2
8008 builtin and then its argument prototype would still apply. */
8009 char $ac_func ();
8010 /* The GNU C library defines this for functions which it implements
8011 to always fail with ENOSYS. Some functions are actually named
8012 something starting with __ and the normal name is an alias. */
8013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8014 choke me
8015 #else
8016 char (*f) () = $ac_func;
8017 #endif
8018 #ifdef __cplusplus
8020 #endif
8023 main ()
8025 return f != $ac_func;
8027 return 0;
8029 _ACEOF
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 eval "$as_ac_var=yes"
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 eval "$as_ac_var=no"
8049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8053 if test `eval echo '${'$as_ac_var'}'` = yes; then
8054 cat >>confdefs.h <<_ACEOF
8055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8056 _ACEOF
8059 done
8061 else
8063 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8064 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8065 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8066 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8072 ac_ext=cc
8073 ac_cpp='$CXXCPP $CPPFLAGS'
8074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8078 cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 #include <math.h>
8086 #ifdef HAVE_IEEEFP_H
8087 #include <ieeefp.h>
8088 #endif
8091 main ()
8093 _isinf(0);
8095 return 0;
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100 (eval $ac_compile) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -s conftest.$ac_objext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 glibcxx_cv_func__isinf_use=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 glibcxx_cv_func__isinf_use=no
8117 rm -f conftest.$ac_objext conftest.$ac_ext
8118 ac_ext=c
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8129 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8131 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8133 for ac_func in _isinf
8135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8136 echo "$as_me:$LINENO: checking for $ac_func" >&5
8137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8138 if eval "test \"\${$as_ac_var+set}\" = set"; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 if test x$gcc_no_link = xyes; then
8142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8144 { (exit 1); exit 1; }; }
8146 cat >conftest.$ac_ext <<_ACEOF
8147 #line $LINENO "configure"
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char $ac_func (); below.
8155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8156 <limits.h> exists even on freestanding compilers. */
8157 #ifdef __STDC__
8158 # include <limits.h>
8159 #else
8160 # include <assert.h>
8161 #endif
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 #ifdef __cplusplus
8164 extern "C"
8166 #endif
8167 /* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
8169 char $ac_func ();
8170 /* The GNU C library defines this for functions which it implements
8171 to always fail with ENOSYS. Some functions are actually named
8172 something starting with __ and the normal name is an alias. */
8173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8174 choke me
8175 #else
8176 char (*f) () = $ac_func;
8177 #endif
8178 #ifdef __cplusplus
8180 #endif
8183 main ()
8185 return f != $ac_func;
8187 return 0;
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -s conftest$ac_exeext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 eval "$as_ac_var=yes"
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 eval "$as_ac_var=no"
8209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8213 if test `eval echo '${'$as_ac_var'}'` = yes; then
8214 cat >>confdefs.h <<_ACEOF
8215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8216 _ACEOF
8219 done
8226 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8227 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8228 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8229 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8235 ac_ext=cc
8236 ac_cpp='$CXXCPP $CPPFLAGS'
8237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 #include <math.h>
8249 #ifdef HAVE_IEEEFP_H
8250 #include <ieeefp.h>
8251 #endif
8254 main ()
8256 isnan(0);
8258 return 0;
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8263 (eval $ac_compile) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -s conftest.$ac_objext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 glibcxx_cv_func_isnan_use=yes
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 glibcxx_cv_func_isnan_use=no
8280 rm -f conftest.$ac_objext conftest.$ac_ext
8281 ac_ext=c
8282 ac_cpp='$CPP $CPPFLAGS'
8283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8292 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8294 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8296 for ac_func in isnan
8298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8299 echo "$as_me:$LINENO: checking for $ac_func" >&5
8300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8301 if eval "test \"\${$as_ac_var+set}\" = set"; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304 if test x$gcc_no_link = xyes; then
8305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8307 { (exit 1); exit 1; }; }
8309 cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char $ac_func (); below.
8318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8319 <limits.h> exists even on freestanding compilers. */
8320 #ifdef __STDC__
8321 # include <limits.h>
8322 #else
8323 # include <assert.h>
8324 #endif
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 #ifdef __cplusplus
8327 extern "C"
8329 #endif
8330 /* We use char because int might match the return type of a gcc2
8331 builtin and then its argument prototype would still apply. */
8332 char $ac_func ();
8333 /* The GNU C library defines this for functions which it implements
8334 to always fail with ENOSYS. Some functions are actually named
8335 something starting with __ and the normal name is an alias. */
8336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8337 choke me
8338 #else
8339 char (*f) () = $ac_func;
8340 #endif
8341 #ifdef __cplusplus
8343 #endif
8346 main ()
8348 return f != $ac_func;
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 eval "$as_ac_var=yes"
8366 else
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 eval "$as_ac_var=no"
8372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8376 if test `eval echo '${'$as_ac_var'}'` = yes; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8379 _ACEOF
8382 done
8384 else
8386 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8387 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8388 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8389 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8395 ac_ext=cc
8396 ac_cpp='$CXXCPP $CPPFLAGS'
8397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 #include <math.h>
8409 #ifdef HAVE_IEEEFP_H
8410 #include <ieeefp.h>
8411 #endif
8414 main ()
8416 _isnan(0);
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8423 (eval $ac_compile) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -s conftest.$ac_objext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 glibcxx_cv_func__isnan_use=yes
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 glibcxx_cv_func__isnan_use=no
8440 rm -f conftest.$ac_objext conftest.$ac_ext
8441 ac_ext=c
8442 ac_cpp='$CPP $CPPFLAGS'
8443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8452 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8454 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8456 for ac_func in _isnan
8458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8459 echo "$as_me:$LINENO: checking for $ac_func" >&5
8460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8461 if eval "test \"\${$as_ac_var+set}\" = set"; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 if test x$gcc_no_link = xyes; then
8465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8467 { (exit 1); exit 1; }; }
8469 cat >conftest.$ac_ext <<_ACEOF
8470 #line $LINENO "configure"
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 /* System header to define __stub macros and hopefully few prototypes,
8477 which can conflict with char $ac_func (); below.
8478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8479 <limits.h> exists even on freestanding compilers. */
8480 #ifdef __STDC__
8481 # include <limits.h>
8482 #else
8483 # include <assert.h>
8484 #endif
8485 /* Override any gcc2 internal prototype to avoid an error. */
8486 #ifdef __cplusplus
8487 extern "C"
8489 #endif
8490 /* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8492 char $ac_func ();
8493 /* The GNU C library defines this for functions which it implements
8494 to always fail with ENOSYS. Some functions are actually named
8495 something starting with __ and the normal name is an alias. */
8496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8497 choke me
8498 #else
8499 char (*f) () = $ac_func;
8500 #endif
8501 #ifdef __cplusplus
8503 #endif
8506 main ()
8508 return f != $ac_func;
8510 return 0;
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -s conftest$ac_exeext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 eval "$as_ac_var=yes"
8526 else
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 eval "$as_ac_var=no"
8532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8536 if test `eval echo '${'$as_ac_var'}'` = yes; then
8537 cat >>confdefs.h <<_ACEOF
8538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8539 _ACEOF
8542 done
8549 echo "$as_me:$LINENO: checking for finite declaration" >&5
8550 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8551 if test x${glibcxx_cv_func_finite_use+set} != xset; then
8552 if test "${glibcxx_cv_func_finite_use+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8558 ac_ext=cc
8559 ac_cpp='$CXXCPP $CPPFLAGS'
8560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8564 cat >conftest.$ac_ext <<_ACEOF
8565 #line $LINENO "configure"
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 #include <math.h>
8572 #ifdef HAVE_IEEEFP_H
8573 #include <ieeefp.h>
8574 #endif
8577 main ()
8579 finite(0);
8581 return 0;
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -s conftest.$ac_objext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 (eval $ac_try) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 glibcxx_cv_func_finite_use=yes
8597 else
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 glibcxx_cv_func_finite_use=no
8603 rm -f conftest.$ac_objext conftest.$ac_ext
8604 ac_ext=c
8605 ac_cpp='$CPP $CPPFLAGS'
8606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8615 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8617 if test x$glibcxx_cv_func_finite_use = x"yes"; then
8619 for ac_func in finite
8621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8622 echo "$as_me:$LINENO: checking for $ac_func" >&5
8623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8624 if eval "test \"\${$as_ac_var+set}\" = set"; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627 if test x$gcc_no_link = xyes; then
8628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8630 { (exit 1); exit 1; }; }
8632 cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char $ac_func (); below.
8641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642 <limits.h> exists even on freestanding compilers. */
8643 #ifdef __STDC__
8644 # include <limits.h>
8645 #else
8646 # include <assert.h>
8647 #endif
8648 /* Override any gcc2 internal prototype to avoid an error. */
8649 #ifdef __cplusplus
8650 extern "C"
8652 #endif
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655 char $ac_func ();
8656 /* The GNU C library defines this for functions which it implements
8657 to always fail with ENOSYS. Some functions are actually named
8658 something starting with __ and the normal name is an alias. */
8659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8660 choke me
8661 #else
8662 char (*f) () = $ac_func;
8663 #endif
8664 #ifdef __cplusplus
8666 #endif
8669 main ()
8671 return f != $ac_func;
8673 return 0;
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -s conftest$ac_exeext'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 eval "$as_ac_var=yes"
8689 else
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 eval "$as_ac_var=no"
8695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8699 if test `eval echo '${'$as_ac_var'}'` = yes; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8702 _ACEOF
8705 done
8707 else
8709 echo "$as_me:$LINENO: checking for _finite declaration" >&5
8710 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8711 if test x${glibcxx_cv_func__finite_use+set} != xset; then
8712 if test "${glibcxx_cv_func__finite_use+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8718 ac_ext=cc
8719 ac_cpp='$CXXCPP $CPPFLAGS'
8720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include <math.h>
8732 #ifdef HAVE_IEEEFP_H
8733 #include <ieeefp.h>
8734 #endif
8737 main ()
8739 _finite(0);
8741 return 0;
8743 _ACEOF
8744 rm -f conftest.$ac_objext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8746 (eval $ac_compile) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -s conftest.$ac_objext'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 (eval $ac_try) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
8756 glibcxx_cv_func__finite_use=yes
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 glibcxx_cv_func__finite_use=no
8763 rm -f conftest.$ac_objext conftest.$ac_ext
8764 ac_ext=c
8765 ac_cpp='$CPP $CPPFLAGS'
8766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8774 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8775 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8777 if test x$glibcxx_cv_func__finite_use = x"yes"; then
8779 for ac_func in _finite
8781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8782 echo "$as_me:$LINENO: checking for $ac_func" >&5
8783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8784 if eval "test \"\${$as_ac_var+set}\" = set"; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 if test x$gcc_no_link = xyes; then
8788 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8790 { (exit 1); exit 1; }; }
8792 cat >conftest.$ac_ext <<_ACEOF
8793 #line $LINENO "configure"
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 /* System header to define __stub macros and hopefully few prototypes,
8800 which can conflict with char $ac_func (); below.
8801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8802 <limits.h> exists even on freestanding compilers. */
8803 #ifdef __STDC__
8804 # include <limits.h>
8805 #else
8806 # include <assert.h>
8807 #endif
8808 /* Override any gcc2 internal prototype to avoid an error. */
8809 #ifdef __cplusplus
8810 extern "C"
8812 #endif
8813 /* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8815 char $ac_func ();
8816 /* The GNU C library defines this for functions which it implements
8817 to always fail with ENOSYS. Some functions are actually named
8818 something starting with __ and the normal name is an alias. */
8819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8820 choke me
8821 #else
8822 char (*f) () = $ac_func;
8823 #endif
8824 #ifdef __cplusplus
8826 #endif
8829 main ()
8831 return f != $ac_func;
8833 return 0;
8835 _ACEOF
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838 (eval $ac_link) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } &&
8842 { ac_try='test -s conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 eval "$as_ac_var=yes"
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 eval "$as_ac_var=no"
8855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8859 if test `eval echo '${'$as_ac_var'}'` = yes; then
8860 cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8862 _ACEOF
8865 done
8872 echo "$as_me:$LINENO: checking for copysign declaration" >&5
8873 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8874 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8875 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8881 ac_ext=cc
8882 ac_cpp='$CXXCPP $CPPFLAGS'
8883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8887 cat >conftest.$ac_ext <<_ACEOF
8888 #line $LINENO "configure"
8889 /* confdefs.h. */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 #include <math.h>
8896 main ()
8898 copysign(0, 0);
8900 return 0;
8902 _ACEOF
8903 rm -f conftest.$ac_objext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8905 (eval $ac_compile) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -s conftest.$ac_objext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 glibcxx_cv_func_copysign_use=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 glibcxx_cv_func_copysign_use=no
8922 rm -f conftest.$ac_objext conftest.$ac_ext
8923 ac_ext=c
8924 ac_cpp='$CPP $CPPFLAGS'
8925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8933 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8934 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8936 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8938 for ac_func in copysign
8940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8941 echo "$as_me:$LINENO: checking for $ac_func" >&5
8942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_var+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 if test x$gcc_no_link = xyes; then
8947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8949 { (exit 1); exit 1; }; }
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 /* System header to define __stub macros and hopefully few prototypes,
8959 which can conflict with char $ac_func (); below.
8960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8961 <limits.h> exists even on freestanding compilers. */
8962 #ifdef __STDC__
8963 # include <limits.h>
8964 #else
8965 # include <assert.h>
8966 #endif
8967 /* Override any gcc2 internal prototype to avoid an error. */
8968 #ifdef __cplusplus
8969 extern "C"
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8974 char $ac_func ();
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8979 choke me
8980 #else
8981 char (*f) () = $ac_func;
8982 #endif
8983 #ifdef __cplusplus
8985 #endif
8988 main ()
8990 return f != $ac_func;
8992 return 0;
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 eval "$as_ac_var=yes"
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 eval "$as_ac_var=no"
9014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9018 if test `eval echo '${'$as_ac_var'}'` = yes; then
9019 cat >>confdefs.h <<_ACEOF
9020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9021 _ACEOF
9024 done
9026 else
9028 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9029 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9030 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9031 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9037 ac_ext=cc
9038 ac_cpp='$CXXCPP $CPPFLAGS'
9039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9045 /* confdefs.h. */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9050 #include <math.h>
9052 main ()
9054 _copysign(0, 0);
9056 return 0;
9058 _ACEOF
9059 rm -f conftest.$ac_objext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -s conftest.$ac_objext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 glibcxx_cv_func__copysign_use=yes
9072 else
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 glibcxx_cv_func__copysign_use=no
9078 rm -f conftest.$ac_objext conftest.$ac_ext
9079 ac_ext=c
9080 ac_cpp='$CPP $CPPFLAGS'
9081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9089 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9090 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9092 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9094 for ac_func in _copysign
9096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9097 echo "$as_me:$LINENO: checking for $ac_func" >&5
9098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9099 if eval "test \"\${$as_ac_var+set}\" = set"; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 if test x$gcc_no_link = xyes; then
9103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9105 { (exit 1); exit 1; }; }
9107 cat >conftest.$ac_ext <<_ACEOF
9108 #line $LINENO "configure"
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
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. */
9118 #ifdef __STDC__
9119 # include <limits.h>
9120 #else
9121 # include <assert.h>
9122 #endif
9123 /* Override any gcc2 internal prototype to avoid an error. */
9124 #ifdef __cplusplus
9125 extern "C"
9127 #endif
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9130 char $ac_func ();
9131 /* The GNU C library defines this for functions which it implements
9132 to always fail with ENOSYS. Some functions are actually named
9133 something starting with __ and the normal name is an alias. */
9134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9135 choke me
9136 #else
9137 char (*f) () = $ac_func;
9138 #endif
9139 #ifdef __cplusplus
9141 #endif
9144 main ()
9146 return f != $ac_func;
9148 return 0;
9150 _ACEOF
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 (eval $ac_link) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -s conftest$ac_exeext'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 eval "$as_ac_var=yes"
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 eval "$as_ac_var=no"
9170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9174 if test `eval echo '${'$as_ac_var'}'` = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9177 _ACEOF
9180 done
9187 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9188 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9189 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9190 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9196 ac_ext=cc
9197 ac_cpp='$CXXCPP $CPPFLAGS'
9198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9204 /* confdefs.h. */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 #include <math.h>
9211 main ()
9213 sincos(0, 0, 0);
9215 return 0;
9217 _ACEOF
9218 rm -f conftest.$ac_objext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220 (eval $ac_compile) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -s conftest.$ac_objext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 glibcxx_cv_func_sincos_use=yes
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 glibcxx_cv_func_sincos_use=no
9237 rm -f conftest.$ac_objext conftest.$ac_ext
9238 ac_ext=c
9239 ac_cpp='$CPP $CPPFLAGS'
9240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9248 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9249 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9251 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9253 for ac_func in sincos
9255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9256 echo "$as_me:$LINENO: checking for $ac_func" >&5
9257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9258 if eval "test \"\${$as_ac_var+set}\" = set"; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261 if test x$gcc_no_link = xyes; then
9262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9264 { (exit 1); exit 1; }; }
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* System header to define __stub macros and hopefully few prototypes,
9274 which can conflict with char $ac_func (); below.
9275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9276 <limits.h> exists even on freestanding compilers. */
9277 #ifdef __STDC__
9278 # include <limits.h>
9279 #else
9280 # include <assert.h>
9281 #endif
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 #ifdef __cplusplus
9284 extern "C"
9286 #endif
9287 /* We use char because int might match the return type of a gcc2
9288 builtin and then its argument prototype would still apply. */
9289 char $ac_func ();
9290 /* The GNU C library defines this for functions which it implements
9291 to always fail with ENOSYS. Some functions are actually named
9292 something starting with __ and the normal name is an alias. */
9293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9294 choke me
9295 #else
9296 char (*f) () = $ac_func;
9297 #endif
9298 #ifdef __cplusplus
9300 #endif
9303 main ()
9305 return f != $ac_func;
9307 return 0;
9309 _ACEOF
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 eval "$as_ac_var=yes"
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 eval "$as_ac_var=no"
9329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9333 if test `eval echo '${'$as_ac_var'}'` = yes; then
9334 cat >>confdefs.h <<_ACEOF
9335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9336 _ACEOF
9339 done
9341 else
9343 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9344 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9345 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9346 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9352 ac_ext=cc
9353 ac_cpp='$CXXCPP $CPPFLAGS'
9354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #include <math.h>
9367 main ()
9369 _sincos(0, 0, 0);
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -s conftest.$ac_objext'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 (eval $ac_try) 2>&5
9383 ac_status=$?
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9386 glibcxx_cv_func__sincos_use=yes
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 glibcxx_cv_func__sincos_use=no
9393 rm -f conftest.$ac_objext conftest.$ac_ext
9394 ac_ext=c
9395 ac_cpp='$CPP $CPPFLAGS'
9396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9404 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9405 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9407 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9409 for ac_func in _sincos
9411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9412 echo "$as_me:$LINENO: checking for $ac_func" >&5
9413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9414 if eval "test \"\${$as_ac_var+set}\" = set"; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 if test x$gcc_no_link = xyes; then
9418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9420 { (exit 1); exit 1; }; }
9422 cat >conftest.$ac_ext <<_ACEOF
9423 #line $LINENO "configure"
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 /* System header to define __stub macros and hopefully few prototypes,
9430 which can conflict with char $ac_func (); below.
9431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9432 <limits.h> exists even on freestanding compilers. */
9433 #ifdef __STDC__
9434 # include <limits.h>
9435 #else
9436 # include <assert.h>
9437 #endif
9438 /* Override any gcc2 internal prototype to avoid an error. */
9439 #ifdef __cplusplus
9440 extern "C"
9442 #endif
9443 /* We use char because int might match the return type of a gcc2
9444 builtin and then its argument prototype would still apply. */
9445 char $ac_func ();
9446 /* The GNU C library defines this for functions which it implements
9447 to always fail with ENOSYS. Some functions are actually named
9448 something starting with __ and the normal name is an alias. */
9449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9450 choke me
9451 #else
9452 char (*f) () = $ac_func;
9453 #endif
9454 #ifdef __cplusplus
9456 #endif
9459 main ()
9461 return f != $ac_func;
9463 return 0;
9465 _ACEOF
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468 (eval $ac_link) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 eval "$as_ac_var=yes"
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 eval "$as_ac_var=no"
9485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9489 if test `eval echo '${'$as_ac_var'}'` = yes; then
9490 cat >>confdefs.h <<_ACEOF
9491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9492 _ACEOF
9495 done
9502 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9503 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9504 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9505 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9511 ac_ext=cc
9512 ac_cpp='$CXXCPP $CPPFLAGS'
9513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line $LINENO "configure"
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <math.h>
9525 #ifdef HAVE_IEEEFP_H
9526 #include <ieeefp.h>
9527 #endif
9530 main ()
9532 fpclass(0);
9534 return 0;
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 glibcxx_cv_func_fpclass_use=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 glibcxx_cv_func_fpclass_use=no
9556 rm -f conftest.$ac_objext conftest.$ac_ext
9557 ac_ext=c
9558 ac_cpp='$CPP $CPPFLAGS'
9559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9567 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9568 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9570 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9572 for ac_func in fpclass
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580 if test x$gcc_no_link = xyes; then
9581 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9583 { (exit 1); exit 1; }; }
9585 cat >conftest.$ac_ext <<_ACEOF
9586 #line $LINENO "configure"
9587 /* confdefs.h. */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 /* System header to define __stub macros and hopefully few prototypes,
9593 which can conflict with char $ac_func (); below.
9594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9595 <limits.h> exists even on freestanding compilers. */
9596 #ifdef __STDC__
9597 # include <limits.h>
9598 #else
9599 # include <assert.h>
9600 #endif
9601 /* Override any gcc2 internal prototype to avoid an error. */
9602 #ifdef __cplusplus
9603 extern "C"
9605 #endif
9606 /* We use char because int might match the return type of a gcc2
9607 builtin and then its argument prototype would still apply. */
9608 char $ac_func ();
9609 /* The GNU C library defines this for functions which it implements
9610 to always fail with ENOSYS. Some functions are actually named
9611 something starting with __ and the normal name is an alias. */
9612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9613 choke me
9614 #else
9615 char (*f) () = $ac_func;
9616 #endif
9617 #ifdef __cplusplus
9619 #endif
9622 main ()
9624 return f != $ac_func;
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 eval "$as_ac_var=yes"
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 eval "$as_ac_var=no"
9648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9652 if test `eval echo '${'$as_ac_var'}'` = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9655 _ACEOF
9658 done
9660 else
9662 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9663 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9664 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9665 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9671 ac_ext=cc
9672 ac_cpp='$CXXCPP $CPPFLAGS'
9673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 #include <math.h>
9685 #ifdef HAVE_IEEEFP_H
9686 #include <ieeefp.h>
9687 #endif
9690 main ()
9692 _fpclass(0);
9694 return 0;
9696 _ACEOF
9697 rm -f conftest.$ac_objext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9699 (eval $ac_compile) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -s conftest.$ac_objext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 glibcxx_cv_func__fpclass_use=yes
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 glibcxx_cv_func__fpclass_use=no
9716 rm -f conftest.$ac_objext conftest.$ac_ext
9717 ac_ext=c
9718 ac_cpp='$CPP $CPPFLAGS'
9719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9727 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9728 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9730 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9732 for ac_func in _fpclass
9734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9735 echo "$as_me:$LINENO: checking for $ac_func" >&5
9736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9737 if eval "test \"\${$as_ac_var+set}\" = set"; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740 if test x$gcc_no_link = xyes; then
9741 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9742 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9743 { (exit 1); exit 1; }; }
9745 cat >conftest.$ac_ext <<_ACEOF
9746 #line $LINENO "configure"
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 /* System header to define __stub macros and hopefully few prototypes,
9753 which can conflict with char $ac_func (); below.
9754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9755 <limits.h> exists even on freestanding compilers. */
9756 #ifdef __STDC__
9757 # include <limits.h>
9758 #else
9759 # include <assert.h>
9760 #endif
9761 /* Override any gcc2 internal prototype to avoid an error. */
9762 #ifdef __cplusplus
9763 extern "C"
9765 #endif
9766 /* We use char because int might match the return type of a gcc2
9767 builtin and then its argument prototype would still apply. */
9768 char $ac_func ();
9769 /* The GNU C library defines this for functions which it implements
9770 to always fail with ENOSYS. Some functions are actually named
9771 something starting with __ and the normal name is an alias. */
9772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9773 choke me
9774 #else
9775 char (*f) () = $ac_func;
9776 #endif
9777 #ifdef __cplusplus
9779 #endif
9782 main ()
9784 return f != $ac_func;
9786 return 0;
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791 (eval $ac_link) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 eval "$as_ac_var=yes"
9802 else
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 eval "$as_ac_var=no"
9808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9812 if test `eval echo '${'$as_ac_var'}'` = yes; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9815 _ACEOF
9818 done
9825 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9826 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9827 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9828 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9834 ac_ext=cc
9835 ac_cpp='$CXXCPP $CPPFLAGS'
9836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line $LINENO "configure"
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 #include <math.h>
9848 #ifdef HAVE_IEEEFP_H
9849 #include <ieeefp.h>
9850 #endif
9853 main ()
9855 qfpclass(0);
9857 return 0;
9859 _ACEOF
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862 (eval $ac_compile) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 glibcxx_cv_func_qfpclass_use=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 glibcxx_cv_func_qfpclass_use=no
9879 rm -f conftest.$ac_objext conftest.$ac_ext
9880 ac_ext=c
9881 ac_cpp='$CPP $CPPFLAGS'
9882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9890 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9891 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9893 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9895 for ac_func in qfpclass
9897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9898 echo "$as_me:$LINENO: checking for $ac_func" >&5
9899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9900 if eval "test \"\${$as_ac_var+set}\" = set"; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 if test x$gcc_no_link = xyes; then
9904 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9905 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9906 { (exit 1); exit 1; }; }
9908 cat >conftest.$ac_ext <<_ACEOF
9909 #line $LINENO "configure"
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char $ac_func (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
9919 #ifdef __STDC__
9920 # include <limits.h>
9921 #else
9922 # include <assert.h>
9923 #endif
9924 /* Override any gcc2 internal prototype to avoid an error. */
9925 #ifdef __cplusplus
9926 extern "C"
9928 #endif
9929 /* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */
9931 char $ac_func ();
9932 /* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9936 choke me
9937 #else
9938 char (*f) () = $ac_func;
9939 #endif
9940 #ifdef __cplusplus
9942 #endif
9945 main ()
9947 return f != $ac_func;
9949 return 0;
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 eval "$as_ac_var=yes"
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 eval "$as_ac_var=no"
9971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976 cat >>confdefs.h <<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9978 _ACEOF
9981 done
9983 else
9985 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9986 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9987 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9988 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9994 ac_ext=cc
9995 ac_cpp='$CXXCPP $CPPFLAGS'
9996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10002 /* confdefs.h. */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 #include <math.h>
10008 #ifdef HAVE_IEEEFP_H
10009 #include <ieeefp.h>
10010 #endif
10013 main ()
10015 _qfpclass(0);
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10022 (eval $ac_compile) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -s conftest.$ac_objext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 glibcxx_cv_func__qfpclass_use=yes
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 glibcxx_cv_func__qfpclass_use=no
10039 rm -f conftest.$ac_objext conftest.$ac_ext
10040 ac_ext=c
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10050 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10051 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10053 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10055 for ac_func in _qfpclass
10057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10058 echo "$as_me:$LINENO: checking for $ac_func" >&5
10059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10060 if eval "test \"\${$as_ac_var+set}\" = set"; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063 if test x$gcc_no_link = xyes; then
10064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10066 { (exit 1); exit 1; }; }
10068 cat >conftest.$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 /* System header to define __stub macros and hopefully few prototypes,
10076 which can conflict with char $ac_func (); below.
10077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10078 <limits.h> exists even on freestanding compilers. */
10079 #ifdef __STDC__
10080 # include <limits.h>
10081 #else
10082 # include <assert.h>
10083 #endif
10084 /* Override any gcc2 internal prototype to avoid an error. */
10085 #ifdef __cplusplus
10086 extern "C"
10088 #endif
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10091 char $ac_func ();
10092 /* The GNU C library defines this for functions which it implements
10093 to always fail with ENOSYS. Some functions are actually named
10094 something starting with __ and the normal name is an alias. */
10095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10096 choke me
10097 #else
10098 char (*f) () = $ac_func;
10099 #endif
10100 #ifdef __cplusplus
10102 #endif
10105 main ()
10107 return f != $ac_func;
10109 return 0;
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 eval "$as_ac_var=yes"
10125 else
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 eval "$as_ac_var=no"
10131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10135 if test `eval echo '${'$as_ac_var'}'` = yes; then
10136 cat >>confdefs.h <<_ACEOF
10137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10138 _ACEOF
10141 done
10148 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10149 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10150 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10151 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10157 ac_ext=cc
10158 ac_cpp='$CXXCPP $CPPFLAGS'
10159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 #include <math.h>
10172 main ()
10174 hypot(0, 0);
10176 return 0;
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 glibcxx_cv_func_hypot_use=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 glibcxx_cv_func_hypot_use=no
10198 rm -f conftest.$ac_objext conftest.$ac_ext
10199 ac_ext=c
10200 ac_cpp='$CPP $CPPFLAGS'
10201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10209 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10210 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10212 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10214 for ac_func in hypot
10216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10217 echo "$as_me:$LINENO: checking for $ac_func" >&5
10218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10219 if eval "test \"\${$as_ac_var+set}\" = set"; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222 if test x$gcc_no_link = xyes; then
10223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10225 { (exit 1); exit 1; }; }
10227 cat >conftest.$ac_ext <<_ACEOF
10228 #line $LINENO "configure"
10229 /* confdefs.h. */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 /* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char $ac_func (); below.
10236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237 <limits.h> exists even on freestanding compilers. */
10238 #ifdef __STDC__
10239 # include <limits.h>
10240 #else
10241 # include <assert.h>
10242 #endif
10243 /* Override any gcc2 internal prototype to avoid an error. */
10244 #ifdef __cplusplus
10245 extern "C"
10247 #endif
10248 /* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
10250 char $ac_func ();
10251 /* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10255 choke me
10256 #else
10257 char (*f) () = $ac_func;
10258 #endif
10259 #ifdef __cplusplus
10261 #endif
10264 main ()
10266 return f != $ac_func;
10268 return 0;
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 eval "$as_ac_var=yes"
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 eval "$as_ac_var=no"
10290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10294 if test `eval echo '${'$as_ac_var'}'` = yes; then
10295 cat >>confdefs.h <<_ACEOF
10296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10297 _ACEOF
10300 done
10302 else
10304 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10305 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10306 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10307 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10313 ac_ext=cc
10314 ac_cpp='$CXXCPP $CPPFLAGS'
10315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10319 cat >conftest.$ac_ext <<_ACEOF
10320 #line $LINENO "configure"
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #include <math.h>
10328 main ()
10330 _hypot(0, 0);
10332 return 0;
10334 _ACEOF
10335 rm -f conftest.$ac_objext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 glibcxx_cv_func__hypot_use=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 glibcxx_cv_func__hypot_use=no
10354 rm -f conftest.$ac_objext conftest.$ac_ext
10355 ac_ext=c
10356 ac_cpp='$CPP $CPPFLAGS'
10357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10366 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10368 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10370 for ac_func in _hypot
10372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10373 echo "$as_me:$LINENO: checking for $ac_func" >&5
10374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10375 if eval "test \"\${$as_ac_var+set}\" = set"; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378 if test x$gcc_no_link = xyes; then
10379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10381 { (exit 1); exit 1; }; }
10383 cat >conftest.$ac_ext <<_ACEOF
10384 #line $LINENO "configure"
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 /* System header to define __stub macros and hopefully few prototypes,
10391 which can conflict with char $ac_func (); below.
10392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393 <limits.h> exists even on freestanding compilers. */
10394 #ifdef __STDC__
10395 # include <limits.h>
10396 #else
10397 # include <assert.h>
10398 #endif
10399 /* Override any gcc2 internal prototype to avoid an error. */
10400 #ifdef __cplusplus
10401 extern "C"
10403 #endif
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10406 char $ac_func ();
10407 /* The GNU C library defines this for functions which it implements
10408 to always fail with ENOSYS. Some functions are actually named
10409 something starting with __ and the normal name is an alias. */
10410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10411 choke me
10412 #else
10413 char (*f) () = $ac_func;
10414 #endif
10415 #ifdef __cplusplus
10417 #endif
10420 main ()
10422 return f != $ac_func;
10424 return 0;
10426 _ACEOF
10427 rm -f conftest.$ac_objext conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 eval "$as_ac_var=yes"
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 eval "$as_ac_var=no"
10446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10450 if test `eval echo '${'$as_ac_var'}'` = yes; then
10451 cat >>confdefs.h <<_ACEOF
10452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10453 _ACEOF
10456 done
10463 echo "$as_me:$LINENO: checking for float trig functions" >&5
10464 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10465 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10471 ac_ext=cc
10472 ac_cpp='$CXXCPP $CPPFLAGS'
10473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10477 cat >conftest.$ac_ext <<_ACEOF
10478 #line $LINENO "configure"
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <math.h>
10486 main ()
10488 `for x in acosf asinf atanf \
10489 cosf sinf tanf \
10490 coshf sinhf tanhf; do echo "$x (0);"; done`
10492 return 0;
10494 _ACEOF
10495 rm -f conftest.$ac_objext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 glibcxx_cv_func_float_trig_use=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 glibcxx_cv_func_float_trig_use=no
10514 rm -f conftest.$ac_objext conftest.$ac_ext
10515 ac_ext=c
10516 ac_cpp='$CPP $CPPFLAGS'
10517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10523 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10524 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10525 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10535 for ac_func in acosf asinf atanf \
10536 cosf sinf tanf \
10537 coshf sinhf tanhf
10539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540 echo "$as_me:$LINENO: checking for $ac_func" >&5
10541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10542 if eval "test \"\${$as_ac_var+set}\" = set"; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 if test x$gcc_no_link = xyes; then
10546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10548 { (exit 1); exit 1; }; }
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 /* confdefs.h. */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 /* System header to define __stub macros and hopefully few prototypes,
10558 which can conflict with char $ac_func (); below.
10559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10560 <limits.h> exists even on freestanding compilers. */
10561 #ifdef __STDC__
10562 # include <limits.h>
10563 #else
10564 # include <assert.h>
10565 #endif
10566 /* Override any gcc2 internal prototype to avoid an error. */
10567 #ifdef __cplusplus
10568 extern "C"
10570 #endif
10571 /* We use char because int might match the return type of a gcc2
10572 builtin and then its argument prototype would still apply. */
10573 char $ac_func ();
10574 /* The GNU C library defines this for functions which it implements
10575 to always fail with ENOSYS. Some functions are actually named
10576 something starting with __ and the normal name is an alias. */
10577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10578 choke me
10579 #else
10580 char (*f) () = $ac_func;
10581 #endif
10582 #ifdef __cplusplus
10584 #endif
10587 main ()
10589 return f != $ac_func;
10591 return 0;
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -s conftest$ac_exeext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 eval "$as_ac_var=yes"
10607 else
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 eval "$as_ac_var=no"
10613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10617 if test `eval echo '${'$as_ac_var'}'` = yes; then
10618 cat >>confdefs.h <<_ACEOF
10619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10620 _ACEOF
10623 done
10628 echo "$as_me:$LINENO: checking for float round functions" >&5
10629 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10630 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10636 ac_ext=cc
10637 ac_cpp='$CXXCPP $CPPFLAGS'
10638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10642 cat >conftest.$ac_ext <<_ACEOF
10643 #line $LINENO "configure"
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 #include <math.h>
10651 main ()
10653 `for x in ceilf floorf; do echo "$x (0);"; done`
10655 return 0;
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 glibcxx_cv_func_float_round_use=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 glibcxx_cv_func_float_round_use=no
10677 rm -f conftest.$ac_objext conftest.$ac_ext
10678 ac_ext=c
10679 ac_cpp='$CPP $CPPFLAGS'
10680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10687 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10688 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10691 for ac_func in ceilf floorf
10693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10694 echo "$as_me:$LINENO: checking for $ac_func" >&5
10695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10696 if eval "test \"\${$as_ac_var+set}\" = set"; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699 if test x$gcc_no_link = xyes; then
10700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10702 { (exit 1); exit 1; }; }
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 /* System header to define __stub macros and hopefully few prototypes,
10712 which can conflict with char $ac_func (); below.
10713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10714 <limits.h> exists even on freestanding compilers. */
10715 #ifdef __STDC__
10716 # include <limits.h>
10717 #else
10718 # include <assert.h>
10719 #endif
10720 /* Override any gcc2 internal prototype to avoid an error. */
10721 #ifdef __cplusplus
10722 extern "C"
10724 #endif
10725 /* We use char because int might match the return type of a gcc2
10726 builtin and then its argument prototype would still apply. */
10727 char $ac_func ();
10728 /* The GNU C library defines this for functions which it implements
10729 to always fail with ENOSYS. Some functions are actually named
10730 something starting with __ and the normal name is an alias. */
10731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10732 choke me
10733 #else
10734 char (*f) () = $ac_func;
10735 #endif
10736 #ifdef __cplusplus
10738 #endif
10741 main ()
10743 return f != $ac_func;
10745 return 0;
10747 _ACEOF
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -s conftest$ac_exeext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 eval "$as_ac_var=yes"
10761 else
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 eval "$as_ac_var=no"
10767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10771 if test `eval echo '${'$as_ac_var'}'` = yes; then
10772 cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10774 _ACEOF
10777 done
10783 echo "$as_me:$LINENO: checking for expf declaration" >&5
10784 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10785 if test x${glibcxx_cv_func_expf_use+set} != xset; then
10786 if test "${glibcxx_cv_func_expf_use+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10792 ac_ext=cc
10793 ac_cpp='$CXXCPP $CPPFLAGS'
10794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10798 cat >conftest.$ac_ext <<_ACEOF
10799 #line $LINENO "configure"
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <math.h>
10806 #ifdef HAVE_IEEEFP_H
10807 #include <ieeefp.h>
10808 #endif
10811 main ()
10813 expf(0);
10815 return 0;
10817 _ACEOF
10818 rm -f conftest.$ac_objext
10819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10820 (eval $ac_compile) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 glibcxx_cv_func_expf_use=yes
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 glibcxx_cv_func_expf_use=no
10837 rm -f conftest.$ac_objext conftest.$ac_ext
10838 ac_ext=c
10839 ac_cpp='$CPP $CPPFLAGS'
10840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10848 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10849 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10851 if test x$glibcxx_cv_func_expf_use = x"yes"; then
10853 for ac_func in expf
10855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10856 echo "$as_me:$LINENO: checking for $ac_func" >&5
10857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10858 if eval "test \"\${$as_ac_var+set}\" = set"; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 if test x$gcc_no_link = xyes; then
10862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10864 { (exit 1); exit 1; }; }
10866 cat >conftest.$ac_ext <<_ACEOF
10867 #line $LINENO "configure"
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 /* System header to define __stub macros and hopefully few prototypes,
10874 which can conflict with char $ac_func (); below.
10875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10876 <limits.h> exists even on freestanding compilers. */
10877 #ifdef __STDC__
10878 # include <limits.h>
10879 #else
10880 # include <assert.h>
10881 #endif
10882 /* Override any gcc2 internal prototype to avoid an error. */
10883 #ifdef __cplusplus
10884 extern "C"
10886 #endif
10887 /* We use char because int might match the return type of a gcc2
10888 builtin and then its argument prototype would still apply. */
10889 char $ac_func ();
10890 /* The GNU C library defines this for functions which it implements
10891 to always fail with ENOSYS. Some functions are actually named
10892 something starting with __ and the normal name is an alias. */
10893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10894 choke me
10895 #else
10896 char (*f) () = $ac_func;
10897 #endif
10898 #ifdef __cplusplus
10900 #endif
10903 main ()
10905 return f != $ac_func;
10907 return 0;
10909 _ACEOF
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10912 (eval $ac_link) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 eval "$as_ac_var=yes"
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 eval "$as_ac_var=no"
10929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10933 if test `eval echo '${'$as_ac_var'}'` = yes; then
10934 cat >>confdefs.h <<_ACEOF
10935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 _ACEOF
10939 done
10941 else
10943 echo "$as_me:$LINENO: checking for _expf declaration" >&5
10944 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10945 if test x${glibcxx_cv_func__expf_use+set} != xset; then
10946 if test "${glibcxx_cv_func__expf_use+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10952 ac_ext=cc
10953 ac_cpp='$CXXCPP $CPPFLAGS'
10954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10958 cat >conftest.$ac_ext <<_ACEOF
10959 #line $LINENO "configure"
10960 /* confdefs.h. */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 #include <math.h>
10966 #ifdef HAVE_IEEEFP_H
10967 #include <ieeefp.h>
10968 #endif
10971 main ()
10973 _expf(0);
10975 return 0;
10977 _ACEOF
10978 rm -f conftest.$ac_objext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980 (eval $ac_compile) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 glibcxx_cv_func__expf_use=yes
10991 else
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 glibcxx_cv_func__expf_use=no
10997 rm -f conftest.$ac_objext conftest.$ac_ext
10998 ac_ext=c
10999 ac_cpp='$CPP $CPPFLAGS'
11000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
11009 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
11011 if test x$glibcxx_cv_func__expf_use = x"yes"; then
11013 for ac_func in _expf
11015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11016 echo "$as_me:$LINENO: checking for $ac_func" >&5
11017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11018 if eval "test \"\${$as_ac_var+set}\" = set"; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021 if test x$gcc_no_link = xyes; then
11022 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11023 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11024 { (exit 1); exit 1; }; }
11026 cat >conftest.$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 /* System header to define __stub macros and hopefully few prototypes,
11034 which can conflict with char $ac_func (); below.
11035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036 <limits.h> exists even on freestanding compilers. */
11037 #ifdef __STDC__
11038 # include <limits.h>
11039 #else
11040 # include <assert.h>
11041 #endif
11042 /* Override any gcc2 internal prototype to avoid an error. */
11043 #ifdef __cplusplus
11044 extern "C"
11046 #endif
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11049 char $ac_func ();
11050 /* The GNU C library defines this for functions which it implements
11051 to always fail with ENOSYS. Some functions are actually named
11052 something starting with __ and the normal name is an alias. */
11053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11054 choke me
11055 #else
11056 char (*f) () = $ac_func;
11057 #endif
11058 #ifdef __cplusplus
11060 #endif
11063 main ()
11065 return f != $ac_func;
11067 return 0;
11069 _ACEOF
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11072 (eval $ac_link) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 eval "$as_ac_var=yes"
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 eval "$as_ac_var=no"
11089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11093 if test `eval echo '${'$as_ac_var'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096 _ACEOF
11099 done
11106 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
11107 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
11108 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
11109 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11115 ac_ext=cc
11116 ac_cpp='$CXXCPP $CPPFLAGS'
11117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11123 /* confdefs.h. */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128 #include <math.h>
11129 #ifdef HAVE_IEEEFP_H
11130 #include <ieeefp.h>
11131 #endif
11134 main ()
11136 isnanf(0);
11138 return 0;
11140 _ACEOF
11141 rm -f conftest.$ac_objext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11143 (eval $ac_compile) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -s conftest.$ac_objext'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 glibcxx_cv_func_isnanf_use=yes
11154 else
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 glibcxx_cv_func_isnanf_use=no
11160 rm -f conftest.$ac_objext conftest.$ac_ext
11161 ac_ext=c
11162 ac_cpp='$CPP $CPPFLAGS'
11163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11171 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11172 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11174 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11176 for ac_func in isnanf
11178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11179 echo "$as_me:$LINENO: checking for $ac_func" >&5
11180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11181 if eval "test \"\${$as_ac_var+set}\" = set"; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 if test x$gcc_no_link = xyes; then
11185 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11187 { (exit 1); exit 1; }; }
11189 cat >conftest.$ac_ext <<_ACEOF
11190 #line $LINENO "configure"
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11200 #ifdef __STDC__
11201 # include <limits.h>
11202 #else
11203 # include <assert.h>
11204 #endif
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 #ifdef __cplusplus
11207 extern "C"
11209 #endif
11210 /* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11212 char $ac_func ();
11213 /* The GNU C library defines this for functions which it implements
11214 to always fail with ENOSYS. Some functions are actually named
11215 something starting with __ and the normal name is an alias. */
11216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11217 choke me
11218 #else
11219 char (*f) () = $ac_func;
11220 #endif
11221 #ifdef __cplusplus
11223 #endif
11226 main ()
11228 return f != $ac_func;
11230 return 0;
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 eval "$as_ac_var=yes"
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 eval "$as_ac_var=no"
11252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11256 if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259 _ACEOF
11262 done
11264 else
11266 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11267 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11268 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11269 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11275 ac_ext=cc
11276 ac_cpp='$CXXCPP $CPPFLAGS'
11277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11281 cat >conftest.$ac_ext <<_ACEOF
11282 #line $LINENO "configure"
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <math.h>
11289 #ifdef HAVE_IEEEFP_H
11290 #include <ieeefp.h>
11291 #endif
11294 main ()
11296 _isnanf(0);
11298 return 0;
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 glibcxx_cv_func__isnanf_use=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 glibcxx_cv_func__isnanf_use=no
11320 rm -f conftest.$ac_objext conftest.$ac_ext
11321 ac_ext=c
11322 ac_cpp='$CPP $CPPFLAGS'
11323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11332 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11334 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11336 for ac_func in _isnanf
11338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11339 echo "$as_me:$LINENO: checking for $ac_func" >&5
11340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11341 if eval "test \"\${$as_ac_var+set}\" = set"; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344 if test x$gcc_no_link = xyes; then
11345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11347 { (exit 1); exit 1; }; }
11349 cat >conftest.$ac_ext <<_ACEOF
11350 #line $LINENO "configure"
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 /* System header to define __stub macros and hopefully few prototypes,
11357 which can conflict with char $ac_func (); below.
11358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11359 <limits.h> exists even on freestanding compilers. */
11360 #ifdef __STDC__
11361 # include <limits.h>
11362 #else
11363 # include <assert.h>
11364 #endif
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>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -s conftest$ac_exeext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 eval "$as_ac_var=yes"
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 eval "$as_ac_var=no"
11412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11416 if test `eval echo '${'$as_ac_var'}'` = yes; then
11417 cat >>confdefs.h <<_ACEOF
11418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11419 _ACEOF
11422 done
11429 echo "$as_me:$LINENO: checking for isinff declaration" >&5
11430 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11431 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11432 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11438 ac_ext=cc
11439 ac_cpp='$CXXCPP $CPPFLAGS'
11440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11444 cat >conftest.$ac_ext <<_ACEOF
11445 #line $LINENO "configure"
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 #include <math.h>
11452 #ifdef HAVE_IEEEFP_H
11453 #include <ieeefp.h>
11454 #endif
11457 main ()
11459 isinff(0);
11461 return 0;
11463 _ACEOF
11464 rm -f conftest.$ac_objext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11466 (eval $ac_compile) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 glibcxx_cv_func_isinff_use=yes
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 glibcxx_cv_func_isinff_use=no
11483 rm -f conftest.$ac_objext conftest.$ac_ext
11484 ac_ext=c
11485 ac_cpp='$CPP $CPPFLAGS'
11486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11494 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11495 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11497 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11499 for ac_func in isinff
11501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11504 if eval "test \"\${$as_ac_var+set}\" = set"; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507 if test x$gcc_no_link = xyes; then
11508 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11510 { (exit 1); exit 1; }; }
11512 cat >conftest.$ac_ext <<_ACEOF
11513 #line $LINENO "configure"
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 /* System header to define __stub macros and hopefully few prototypes,
11520 which can conflict with char $ac_func (); below.
11521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11522 <limits.h> exists even on freestanding compilers. */
11523 #ifdef __STDC__
11524 # include <limits.h>
11525 #else
11526 # include <assert.h>
11527 #endif
11528 /* Override any gcc2 internal prototype to avoid an error. */
11529 #ifdef __cplusplus
11530 extern "C"
11532 #endif
11533 /* We use char because int might match the return type of a gcc2
11534 builtin and then its argument prototype would still apply. */
11535 char $ac_func ();
11536 /* The GNU C library defines this for functions which it implements
11537 to always fail with ENOSYS. Some functions are actually named
11538 something starting with __ and the normal name is an alias. */
11539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11540 choke me
11541 #else
11542 char (*f) () = $ac_func;
11543 #endif
11544 #ifdef __cplusplus
11546 #endif
11549 main ()
11551 return f != $ac_func;
11553 return 0;
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11558 (eval $ac_link) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -s conftest$ac_exeext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 eval "$as_ac_var=no"
11575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11579 if test `eval echo '${'$as_ac_var'}'` = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11582 _ACEOF
11585 done
11587 else
11589 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11590 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11591 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11592 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11598 ac_ext=cc
11599 ac_cpp='$CXXCPP $CPPFLAGS'
11600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11604 cat >conftest.$ac_ext <<_ACEOF
11605 #line $LINENO "configure"
11606 /* confdefs.h. */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 #include <math.h>
11612 #ifdef HAVE_IEEEFP_H
11613 #include <ieeefp.h>
11614 #endif
11617 main ()
11619 _isinff(0);
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11626 (eval $ac_compile) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -s conftest.$ac_objext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 glibcxx_cv_func__isinff_use=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 glibcxx_cv_func__isinff_use=no
11643 rm -f conftest.$ac_objext conftest.$ac_ext
11644 ac_ext=c
11645 ac_cpp='$CPP $CPPFLAGS'
11646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11655 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11657 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11659 for ac_func in _isinff
11661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11662 echo "$as_me:$LINENO: checking for $ac_func" >&5
11663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11664 if eval "test \"\${$as_ac_var+set}\" = set"; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667 if test x$gcc_no_link = xyes; then
11668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11670 { (exit 1); exit 1; }; }
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line $LINENO "configure"
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 /* System header to define __stub macros and hopefully few prototypes,
11680 which can conflict with char $ac_func (); below.
11681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11682 <limits.h> exists even on freestanding compilers. */
11683 #ifdef __STDC__
11684 # include <limits.h>
11685 #else
11686 # include <assert.h>
11687 #endif
11688 /* Override any gcc2 internal prototype to avoid an error. */
11689 #ifdef __cplusplus
11690 extern "C"
11692 #endif
11693 /* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11695 char $ac_func ();
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11700 choke me
11701 #else
11702 char (*f) () = $ac_func;
11703 #endif
11704 #ifdef __cplusplus
11706 #endif
11709 main ()
11711 return f != $ac_func;
11713 return 0;
11715 _ACEOF
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 eval "$as_ac_var=yes"
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 eval "$as_ac_var=no"
11735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 _ACEOF
11745 done
11752 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11753 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11754 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11755 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11761 ac_ext=cc
11762 ac_cpp='$CXXCPP $CPPFLAGS'
11763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11767 cat >conftest.$ac_ext <<_ACEOF
11768 #line $LINENO "configure"
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <math.h>
11776 main ()
11778 atan2f(0, 0);
11780 return 0;
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 glibcxx_cv_func_atan2f_use=yes
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 glibcxx_cv_func_atan2f_use=no
11802 rm -f conftest.$ac_objext conftest.$ac_ext
11803 ac_ext=c
11804 ac_cpp='$CPP $CPPFLAGS'
11805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11813 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11814 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11816 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11818 for ac_func in atan2f
11820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821 echo "$as_me:$LINENO: checking for $ac_func" >&5
11822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11823 if eval "test \"\${$as_ac_var+set}\" = set"; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826 if test x$gcc_no_link = xyes; then
11827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11829 { (exit 1); exit 1; }; }
11831 cat >conftest.$ac_ext <<_ACEOF
11832 #line $LINENO "configure"
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below.
11840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 <limits.h> exists even on freestanding compilers. */
11842 #ifdef __STDC__
11843 # include <limits.h>
11844 #else
11845 # include <assert.h>
11846 #endif
11847 /* Override any gcc2 internal prototype to avoid an error. */
11848 #ifdef __cplusplus
11849 extern "C"
11851 #endif
11852 /* We use char because int might match the return type of a gcc2
11853 builtin and then its argument prototype would still apply. */
11854 char $ac_func ();
11855 /* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11859 choke me
11860 #else
11861 char (*f) () = $ac_func;
11862 #endif
11863 #ifdef __cplusplus
11865 #endif
11868 main ()
11870 return f != $ac_func;
11872 return 0;
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -s conftest$ac_exeext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 eval "$as_ac_var=yes"
11888 else
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 eval "$as_ac_var=no"
11894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11898 if test `eval echo '${'$as_ac_var'}'` = yes; then
11899 cat >>confdefs.h <<_ACEOF
11900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11901 _ACEOF
11904 done
11906 else
11908 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11909 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11910 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11911 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11917 ac_ext=cc
11918 ac_cpp='$CXXCPP $CPPFLAGS'
11919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11923 cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 #include <math.h>
11932 main ()
11934 _atan2f(0, 0);
11936 return 0;
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -s conftest.$ac_objext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 glibcxx_cv_func__atan2f_use=yes
11952 else
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 glibcxx_cv_func__atan2f_use=no
11958 rm -f conftest.$ac_objext conftest.$ac_ext
11959 ac_ext=c
11960 ac_cpp='$CPP $CPPFLAGS'
11961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11969 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11970 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11972 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11974 for ac_func in _atan2f
11976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11977 echo "$as_me:$LINENO: checking for $ac_func" >&5
11978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11979 if eval "test \"\${$as_ac_var+set}\" = set"; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 if test x$gcc_no_link = xyes; then
11983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11984 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11985 { (exit 1); exit 1; }; }
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
11998 #ifdef __STDC__
11999 # include <limits.h>
12000 #else
12001 # include <assert.h>
12002 #endif
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 #ifdef __cplusplus
12005 extern "C"
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12010 char $ac_func ();
12011 /* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12015 choke me
12016 #else
12017 char (*f) () = $ac_func;
12018 #endif
12019 #ifdef __cplusplus
12021 #endif
12024 main ()
12026 return f != $ac_func;
12028 return 0;
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 eval "$as_ac_var=yes"
12044 else
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 eval "$as_ac_var=no"
12050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12054 if test `eval echo '${'$as_ac_var'}'` = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12057 _ACEOF
12060 done
12067 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
12068 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
12069 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
12070 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12076 ac_ext=cc
12077 ac_cpp='$CXXCPP $CPPFLAGS'
12078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12082 cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 #include <math.h>
12090 #ifdef HAVE_IEEEFP_H
12091 #include <ieeefp.h>
12092 #endif
12095 main ()
12097 fabsf(0);
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -s conftest.$ac_objext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 glibcxx_cv_func_fabsf_use=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 glibcxx_cv_func_fabsf_use=no
12121 rm -f conftest.$ac_objext conftest.$ac_ext
12122 ac_ext=c
12123 ac_cpp='$CPP $CPPFLAGS'
12124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12132 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
12133 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
12135 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
12137 for ac_func in fabsf
12139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12140 echo "$as_me:$LINENO: checking for $ac_func" >&5
12141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12142 if eval "test \"\${$as_ac_var+set}\" = set"; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145 if test x$gcc_no_link = xyes; then
12146 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12147 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12148 { (exit 1); exit 1; }; }
12150 cat >conftest.$ac_ext <<_ACEOF
12151 #line $LINENO "configure"
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 /* System header to define __stub macros and hopefully few prototypes,
12158 which can conflict with char $ac_func (); below.
12159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160 <limits.h> exists even on freestanding compilers. */
12161 #ifdef __STDC__
12162 # include <limits.h>
12163 #else
12164 # include <assert.h>
12165 #endif
12166 /* Override any gcc2 internal prototype to avoid an error. */
12167 #ifdef __cplusplus
12168 extern "C"
12170 #endif
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173 char $ac_func ();
12174 /* The GNU C library defines this for functions which it implements
12175 to always fail with ENOSYS. Some functions are actually named
12176 something starting with __ and the normal name is an alias. */
12177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12178 choke me
12179 #else
12180 char (*f) () = $ac_func;
12181 #endif
12182 #ifdef __cplusplus
12184 #endif
12187 main ()
12189 return f != $ac_func;
12191 return 0;
12193 _ACEOF
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -s conftest$ac_exeext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 eval "$as_ac_var=yes"
12207 else
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 eval "$as_ac_var=no"
12213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12217 if test `eval echo '${'$as_ac_var'}'` = yes; then
12218 cat >>confdefs.h <<_ACEOF
12219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12220 _ACEOF
12223 done
12225 else
12227 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12228 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12229 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12230 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12236 ac_ext=cc
12237 ac_cpp='$CXXCPP $CPPFLAGS'
12238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12242 cat >conftest.$ac_ext <<_ACEOF
12243 #line $LINENO "configure"
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 #include <math.h>
12250 #ifdef HAVE_IEEEFP_H
12251 #include <ieeefp.h>
12252 #endif
12255 main ()
12257 _fabsf(0);
12259 return 0;
12261 _ACEOF
12262 rm -f conftest.$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 (eval $ac_compile) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -s conftest.$ac_objext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 glibcxx_cv_func__fabsf_use=yes
12275 else
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 glibcxx_cv_func__fabsf_use=no
12281 rm -f conftest.$ac_objext conftest.$ac_ext
12282 ac_ext=c
12283 ac_cpp='$CPP $CPPFLAGS'
12284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12292 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12293 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12295 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12297 for ac_func in _fabsf
12299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12300 echo "$as_me:$LINENO: checking for $ac_func" >&5
12301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12302 if eval "test \"\${$as_ac_var+set}\" = set"; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 if test x$gcc_no_link = xyes; then
12306 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12308 { (exit 1); exit 1; }; }
12310 cat >conftest.$ac_ext <<_ACEOF
12311 #line $LINENO "configure"
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 /* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12321 #ifdef __STDC__
12322 # include <limits.h>
12323 #else
12324 # include <assert.h>
12325 #endif
12326 /* Override any gcc2 internal prototype to avoid an error. */
12327 #ifdef __cplusplus
12328 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char $ac_func ();
12334 /* The GNU C library defines this for functions which it implements
12335 to always fail with ENOSYS. Some functions are actually named
12336 something starting with __ and the normal name is an alias. */
12337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12338 choke me
12339 #else
12340 char (*f) () = $ac_func;
12341 #endif
12342 #ifdef __cplusplus
12344 #endif
12347 main ()
12349 return f != $ac_func;
12351 return 0;
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -s conftest$ac_exeext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 eval "$as_ac_var=yes"
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12371 eval "$as_ac_var=no"
12373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12377 if test `eval echo '${'$as_ac_var'}'` = yes; then
12378 cat >>confdefs.h <<_ACEOF
12379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12380 _ACEOF
12383 done
12390 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12391 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12392 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12393 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12399 ac_ext=cc
12400 ac_cpp='$CXXCPP $CPPFLAGS'
12401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 #include <math.h>
12414 main ()
12416 fmodf(0, 0);
12418 return 0;
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 glibcxx_cv_func_fmodf_use=yes
12434 else
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 glibcxx_cv_func_fmodf_use=no
12440 rm -f conftest.$ac_objext conftest.$ac_ext
12441 ac_ext=c
12442 ac_cpp='$CPP $CPPFLAGS'
12443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12451 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12452 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12454 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12456 for ac_func in fmodf
12458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 echo "$as_me:$LINENO: checking for $ac_func" >&5
12460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12461 if eval "test \"\${$as_ac_var+set}\" = set"; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 if test x$gcc_no_link = xyes; then
12465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12467 { (exit 1); exit 1; }; }
12469 cat >conftest.$ac_ext <<_ACEOF
12470 #line $LINENO "configure"
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 /* System header to define __stub macros and hopefully few prototypes,
12477 which can conflict with char $ac_func (); below.
12478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479 <limits.h> exists even on freestanding compilers. */
12480 #ifdef __STDC__
12481 # include <limits.h>
12482 #else
12483 # include <assert.h>
12484 #endif
12485 /* Override any gcc2 internal prototype to avoid an error. */
12486 #ifdef __cplusplus
12487 extern "C"
12489 #endif
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12492 char $ac_func ();
12493 /* The GNU C library defines this for functions which it implements
12494 to always fail with ENOSYS. Some functions are actually named
12495 something starting with __ and the normal name is an alias. */
12496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12497 choke me
12498 #else
12499 char (*f) () = $ac_func;
12500 #endif
12501 #ifdef __cplusplus
12503 #endif
12506 main ()
12508 return f != $ac_func;
12510 return 0;
12512 _ACEOF
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -s conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 eval "$as_ac_var=yes"
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 eval "$as_ac_var=no"
12532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12536 if test `eval echo '${'$as_ac_var'}'` = yes; then
12537 cat >>confdefs.h <<_ACEOF
12538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12539 _ACEOF
12542 done
12544 else
12546 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12547 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12548 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12549 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12555 ac_ext=cc
12556 ac_cpp='$CXXCPP $CPPFLAGS'
12557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12561 cat >conftest.$ac_ext <<_ACEOF
12562 #line $LINENO "configure"
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #include <math.h>
12570 main ()
12572 _fmodf(0, 0);
12574 return 0;
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -s conftest.$ac_objext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 glibcxx_cv_func__fmodf_use=yes
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 glibcxx_cv_func__fmodf_use=no
12596 rm -f conftest.$ac_objext conftest.$ac_ext
12597 ac_ext=c
12598 ac_cpp='$CPP $CPPFLAGS'
12599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12607 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12608 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12610 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12612 for ac_func in _fmodf
12614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615 echo "$as_me:$LINENO: checking for $ac_func" >&5
12616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12617 if eval "test \"\${$as_ac_var+set}\" = set"; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620 if test x$gcc_no_link = xyes; then
12621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12623 { (exit 1); exit 1; }; }
12625 cat >conftest.$ac_ext <<_ACEOF
12626 #line $LINENO "configure"
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 /* System header to define __stub macros and hopefully few prototypes,
12633 which can conflict with char $ac_func (); below.
12634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12635 <limits.h> exists even on freestanding compilers. */
12636 #ifdef __STDC__
12637 # include <limits.h>
12638 #else
12639 # include <assert.h>
12640 #endif
12641 /* Override any gcc2 internal prototype to avoid an error. */
12642 #ifdef __cplusplus
12643 extern "C"
12645 #endif
12646 /* We use char because int might match the return type of a gcc2
12647 builtin and then its argument prototype would still apply. */
12648 char $ac_func ();
12649 /* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653 choke me
12654 #else
12655 char (*f) () = $ac_func;
12656 #endif
12657 #ifdef __cplusplus
12659 #endif
12662 main ()
12664 return f != $ac_func;
12666 return 0;
12668 _ACEOF
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 eval "$as_ac_var=yes"
12682 else
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 eval "$as_ac_var=no"
12688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12692 if test `eval echo '${'$as_ac_var'}'` = yes; then
12693 cat >>confdefs.h <<_ACEOF
12694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12695 _ACEOF
12698 done
12705 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12706 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12707 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12708 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12714 ac_ext=cc
12715 ac_cpp='$CXXCPP $CPPFLAGS'
12716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12720 cat >conftest.$ac_ext <<_ACEOF
12721 #line $LINENO "configure"
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 #include <math.h>
12729 main ()
12731 frexpf(0, 0);
12733 return 0;
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
12742 { ac_try='test -s conftest.$ac_objext'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 glibcxx_cv_func_frexpf_use=yes
12749 else
12750 echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12753 glibcxx_cv_func_frexpf_use=no
12755 rm -f conftest.$ac_objext conftest.$ac_ext
12756 ac_ext=c
12757 ac_cpp='$CPP $CPPFLAGS'
12758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12767 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12769 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12771 for ac_func in frexpf
12773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12774 echo "$as_me:$LINENO: checking for $ac_func" >&5
12775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12776 if eval "test \"\${$as_ac_var+set}\" = set"; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779 if test x$gcc_no_link = xyes; then
12780 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12781 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12782 { (exit 1); exit 1; }; }
12784 cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 /* System header to define __stub macros and hopefully few prototypes,
12792 which can conflict with char $ac_func (); below.
12793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12794 <limits.h> exists even on freestanding compilers. */
12795 #ifdef __STDC__
12796 # include <limits.h>
12797 #else
12798 # include <assert.h>
12799 #endif
12800 /* Override any gcc2 internal prototype to avoid an error. */
12801 #ifdef __cplusplus
12802 extern "C"
12804 #endif
12805 /* We use char because int might match the return type of a gcc2
12806 builtin and then its argument prototype would still apply. */
12807 char $ac_func ();
12808 /* The GNU C library defines this for functions which it implements
12809 to always fail with ENOSYS. Some functions are actually named
12810 something starting with __ and the normal name is an alias. */
12811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12812 choke me
12813 #else
12814 char (*f) () = $ac_func;
12815 #endif
12816 #ifdef __cplusplus
12818 #endif
12821 main ()
12823 return f != $ac_func;
12825 return 0;
12827 _ACEOF
12828 rm -f conftest.$ac_objext conftest$ac_exeext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830 (eval $ac_link) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -s conftest$ac_exeext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 eval "$as_ac_var=yes"
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 eval "$as_ac_var=no"
12847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12851 if test `eval echo '${'$as_ac_var'}'` = yes; then
12852 cat >>confdefs.h <<_ACEOF
12853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12854 _ACEOF
12857 done
12859 else
12861 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12862 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12863 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12864 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12870 ac_ext=cc
12871 ac_cpp='$CXXCPP $CPPFLAGS'
12872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12876 cat >conftest.$ac_ext <<_ACEOF
12877 #line $LINENO "configure"
12878 /* confdefs.h. */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 #include <math.h>
12885 main ()
12887 _frexpf(0, 0);
12889 return 0;
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 glibcxx_cv_func__frexpf_use=yes
12905 else
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 glibcxx_cv_func__frexpf_use=no
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12912 ac_ext=c
12913 ac_cpp='$CPP $CPPFLAGS'
12914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12922 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12923 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12925 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12927 for ac_func in _frexpf
12929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12930 echo "$as_me:$LINENO: checking for $ac_func" >&5
12931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12932 if eval "test \"\${$as_ac_var+set}\" = set"; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 if test x$gcc_no_link = xyes; then
12936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12938 { (exit 1); exit 1; }; }
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 /* confdefs.h. */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 /* System header to define __stub macros and hopefully few prototypes,
12948 which can conflict with char $ac_func (); below.
12949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12950 <limits.h> exists even on freestanding compilers. */
12951 #ifdef __STDC__
12952 # include <limits.h>
12953 #else
12954 # include <assert.h>
12955 #endif
12956 /* Override any gcc2 internal prototype to avoid an error. */
12957 #ifdef __cplusplus
12958 extern "C"
12960 #endif
12961 /* We use char because int might match the return type of a gcc2
12962 builtin and then its argument prototype would still apply. */
12963 char $ac_func ();
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 choke me
12969 #else
12970 char (*f) () = $ac_func;
12971 #endif
12972 #ifdef __cplusplus
12974 #endif
12977 main ()
12979 return f != $ac_func;
12981 return 0;
12983 _ACEOF
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 eval "$as_ac_var=yes"
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 eval "$as_ac_var=no"
13003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13007 if test `eval echo '${'$as_ac_var'}'` = yes; then
13008 cat >>confdefs.h <<_ACEOF
13009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13010 _ACEOF
13013 done
13020 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
13021 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
13022 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
13023 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13029 ac_ext=cc
13030 ac_cpp='$CXXCPP $CPPFLAGS'
13031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13035 cat >conftest.$ac_ext <<_ACEOF
13036 #line $LINENO "configure"
13037 /* confdefs.h. */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <math.h>
13044 main ()
13046 hypotf(0, 0);
13048 return 0;
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 glibcxx_cv_func_hypotf_use=yes
13064 else
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 glibcxx_cv_func_hypotf_use=no
13070 rm -f conftest.$ac_objext conftest.$ac_ext
13071 ac_ext=c
13072 ac_cpp='$CPP $CPPFLAGS'
13073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
13082 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
13084 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
13086 for ac_func in hypotf
13088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13089 echo "$as_me:$LINENO: checking for $ac_func" >&5
13090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13091 if eval "test \"\${$as_ac_var+set}\" = set"; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 if test x$gcc_no_link = xyes; then
13095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13097 { (exit 1); exit 1; }; }
13099 cat >conftest.$ac_ext <<_ACEOF
13100 #line $LINENO "configure"
13101 /* confdefs.h. */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 /* System header to define __stub macros and hopefully few prototypes,
13107 which can conflict with char $ac_func (); below.
13108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13109 <limits.h> exists even on freestanding compilers. */
13110 #ifdef __STDC__
13111 # include <limits.h>
13112 #else
13113 # include <assert.h>
13114 #endif
13115 /* Override any gcc2 internal prototype to avoid an error. */
13116 #ifdef __cplusplus
13117 extern "C"
13119 #endif
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13122 char $ac_func ();
13123 /* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127 choke me
13128 #else
13129 char (*f) () = $ac_func;
13130 #endif
13131 #ifdef __cplusplus
13133 #endif
13136 main ()
13138 return f != $ac_func;
13140 return 0;
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145 (eval $ac_link) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest$ac_exeext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 eval "$as_ac_var=yes"
13156 else
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 eval "$as_ac_var=no"
13162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13166 if test `eval echo '${'$as_ac_var'}'` = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13169 _ACEOF
13172 done
13174 else
13176 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
13177 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
13178 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
13179 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 else
13185 ac_ext=cc
13186 ac_cpp='$CXXCPP $CPPFLAGS'
13187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13191 cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13193 /* confdefs.h. */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 #include <math.h>
13200 main ()
13202 _hypotf(0, 0);
13204 return 0;
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 glibcxx_cv_func__hypotf_use=yes
13220 else
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 glibcxx_cv_func__hypotf_use=no
13226 rm -f conftest.$ac_objext conftest.$ac_ext
13227 ac_ext=c
13228 ac_cpp='$CPP $CPPFLAGS'
13229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13238 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13240 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13242 for ac_func in _hypotf
13244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13245 echo "$as_me:$LINENO: checking for $ac_func" >&5
13246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13247 if eval "test \"\${$as_ac_var+set}\" = set"; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 if test x$gcc_no_link = xyes; then
13251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13253 { (exit 1); exit 1; }; }
13255 cat >conftest.$ac_ext <<_ACEOF
13256 #line $LINENO "configure"
13257 /* confdefs.h. */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 /* System header to define __stub macros and hopefully few prototypes,
13263 which can conflict with char $ac_func (); below.
13264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13265 <limits.h> exists even on freestanding compilers. */
13266 #ifdef __STDC__
13267 # include <limits.h>
13268 #else
13269 # include <assert.h>
13270 #endif
13271 /* Override any gcc2 internal prototype to avoid an error. */
13272 #ifdef __cplusplus
13273 extern "C"
13275 #endif
13276 /* We use char because int might match the return type of a gcc2
13277 builtin and then its argument prototype would still apply. */
13278 char $ac_func ();
13279 /* The GNU C library defines this for functions which it implements
13280 to always fail with ENOSYS. Some functions are actually named
13281 something starting with __ and the normal name is an alias. */
13282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13283 choke me
13284 #else
13285 char (*f) () = $ac_func;
13286 #endif
13287 #ifdef __cplusplus
13289 #endif
13292 main ()
13294 return f != $ac_func;
13296 return 0;
13298 _ACEOF
13299 rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301 (eval $ac_link) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -s conftest$ac_exeext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 eval "$as_ac_var=yes"
13312 else
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 eval "$as_ac_var=no"
13318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13322 if test `eval echo '${'$as_ac_var'}'` = yes; then
13323 cat >>confdefs.h <<_ACEOF
13324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13325 _ACEOF
13328 done
13335 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13336 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13337 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13338 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13344 ac_ext=cc
13345 ac_cpp='$CXXCPP $CPPFLAGS'
13346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13350 cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13352 /* confdefs.h. */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 #include <math.h>
13359 main ()
13361 ldexpf(0, 0);
13363 return 0;
13365 _ACEOF
13366 rm -f conftest.$ac_objext
13367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13368 (eval $ac_compile) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 glibcxx_cv_func_ldexpf_use=yes
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 glibcxx_cv_func_ldexpf_use=no
13385 rm -f conftest.$ac_objext conftest.$ac_ext
13386 ac_ext=c
13387 ac_cpp='$CPP $CPPFLAGS'
13388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13396 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13397 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13399 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13401 for ac_func in ldexpf
13403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13404 echo "$as_me:$LINENO: checking for $ac_func" >&5
13405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13406 if eval "test \"\${$as_ac_var+set}\" = set"; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409 if test x$gcc_no_link = xyes; then
13410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13412 { (exit 1); exit 1; }; }
13414 cat >conftest.$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 /* System header to define __stub macros and hopefully few prototypes,
13422 which can conflict with char $ac_func (); below.
13423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13424 <limits.h> exists even on freestanding compilers. */
13425 #ifdef __STDC__
13426 # include <limits.h>
13427 #else
13428 # include <assert.h>
13429 #endif
13430 /* Override any gcc2 internal prototype to avoid an error. */
13431 #ifdef __cplusplus
13432 extern "C"
13434 #endif
13435 /* We use char because int might match the return type of a gcc2
13436 builtin and then its argument prototype would still apply. */
13437 char $ac_func ();
13438 /* The GNU C library defines this for functions which it implements
13439 to always fail with ENOSYS. Some functions are actually named
13440 something starting with __ and the normal name is an alias. */
13441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13442 choke me
13443 #else
13444 char (*f) () = $ac_func;
13445 #endif
13446 #ifdef __cplusplus
13448 #endif
13451 main ()
13453 return f != $ac_func;
13455 return 0;
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460 (eval $ac_link) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } &&
13464 { ac_try='test -s conftest$ac_exeext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 eval "$as_ac_var=yes"
13471 else
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 eval "$as_ac_var=no"
13477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13481 if test `eval echo '${'$as_ac_var'}'` = yes; then
13482 cat >>confdefs.h <<_ACEOF
13483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13484 _ACEOF
13487 done
13489 else
13491 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13492 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13493 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13494 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13500 ac_ext=cc
13501 ac_cpp='$CXXCPP $CPPFLAGS'
13502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13506 cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #include <math.h>
13515 main ()
13517 _ldexpf(0, 0);
13519 return 0;
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 glibcxx_cv_func__ldexpf_use=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 glibcxx_cv_func__ldexpf_use=no
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13542 ac_ext=c
13543 ac_cpp='$CPP $CPPFLAGS'
13544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13552 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13553 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13555 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13557 for ac_func in _ldexpf
13559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13560 echo "$as_me:$LINENO: checking for $ac_func" >&5
13561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13562 if eval "test \"\${$as_ac_var+set}\" = set"; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565 if test x$gcc_no_link = xyes; then
13566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13568 { (exit 1); exit 1; }; }
13570 cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 /* System header to define __stub macros and hopefully few prototypes,
13578 which can conflict with char $ac_func (); below.
13579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13580 <limits.h> exists even on freestanding compilers. */
13581 #ifdef __STDC__
13582 # include <limits.h>
13583 #else
13584 # include <assert.h>
13585 #endif
13586 /* Override any gcc2 internal prototype to avoid an error. */
13587 #ifdef __cplusplus
13588 extern "C"
13590 #endif
13591 /* We use char because int might match the return type of a gcc2
13592 builtin and then its argument prototype would still apply. */
13593 char $ac_func ();
13594 /* The GNU C library defines this for functions which it implements
13595 to always fail with ENOSYS. Some functions are actually named
13596 something starting with __ and the normal name is an alias. */
13597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13598 choke me
13599 #else
13600 char (*f) () = $ac_func;
13601 #endif
13602 #ifdef __cplusplus
13604 #endif
13607 main ()
13609 return f != $ac_func;
13611 return 0;
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616 (eval $ac_link) 2>&5
13617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -s conftest$ac_exeext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 eval "$as_ac_var=yes"
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 eval "$as_ac_var=no"
13633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13637 if test `eval echo '${'$as_ac_var'}'` = yes; then
13638 cat >>confdefs.h <<_ACEOF
13639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13640 _ACEOF
13643 done
13650 echo "$as_me:$LINENO: checking for logf declaration" >&5
13651 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13652 if test x${glibcxx_cv_func_logf_use+set} != xset; then
13653 if test "${glibcxx_cv_func_logf_use+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13659 ac_ext=cc
13660 ac_cpp='$CXXCPP $CPPFLAGS'
13661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13665 cat >conftest.$ac_ext <<_ACEOF
13666 #line $LINENO "configure"
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include <math.h>
13673 #ifdef HAVE_IEEEFP_H
13674 #include <ieeefp.h>
13675 #endif
13678 main ()
13680 logf(0);
13682 return 0;
13684 _ACEOF
13685 rm -f conftest.$ac_objext
13686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; }; then
13697 glibcxx_cv_func_logf_use=yes
13698 else
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 glibcxx_cv_func_logf_use=no
13704 rm -f conftest.$ac_objext conftest.$ac_ext
13705 ac_ext=c
13706 ac_cpp='$CPP $CPPFLAGS'
13707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13715 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13716 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13718 if test x$glibcxx_cv_func_logf_use = x"yes"; then
13720 for ac_func in logf
13722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13723 echo "$as_me:$LINENO: checking for $ac_func" >&5
13724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13725 if eval "test \"\${$as_ac_var+set}\" = set"; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728 if test x$gcc_no_link = xyes; then
13729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13731 { (exit 1); exit 1; }; }
13733 cat >conftest.$ac_ext <<_ACEOF
13734 #line $LINENO "configure"
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 /* System header to define __stub macros and hopefully few prototypes,
13741 which can conflict with char $ac_func (); below.
13742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13743 <limits.h> exists even on freestanding compilers. */
13744 #ifdef __STDC__
13745 # include <limits.h>
13746 #else
13747 # include <assert.h>
13748 #endif
13749 /* Override any gcc2 internal prototype to avoid an error. */
13750 #ifdef __cplusplus
13751 extern "C"
13753 #endif
13754 /* We use char because int might match the return type of a gcc2
13755 builtin and then its argument prototype would still apply. */
13756 char $ac_func ();
13757 /* The GNU C library defines this for functions which it implements
13758 to always fail with ENOSYS. Some functions are actually named
13759 something starting with __ and the normal name is an alias. */
13760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13761 choke me
13762 #else
13763 char (*f) () = $ac_func;
13764 #endif
13765 #ifdef __cplusplus
13767 #endif
13770 main ()
13772 return f != $ac_func;
13774 return 0;
13776 _ACEOF
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779 (eval $ac_link) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -s conftest$ac_exeext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 eval "$as_ac_var=yes"
13790 else
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13794 eval "$as_ac_var=no"
13796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13800 if test `eval echo '${'$as_ac_var'}'` = yes; then
13801 cat >>confdefs.h <<_ACEOF
13802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13803 _ACEOF
13806 done
13808 else
13810 echo "$as_me:$LINENO: checking for _logf declaration" >&5
13811 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13812 if test x${glibcxx_cv_func__logf_use+set} != xset; then
13813 if test "${glibcxx_cv_func__logf_use+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13819 ac_ext=cc
13820 ac_cpp='$CXXCPP $CPPFLAGS'
13821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13825 cat >conftest.$ac_ext <<_ACEOF
13826 #line $LINENO "configure"
13827 /* confdefs.h. */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 #include <math.h>
13833 #ifdef HAVE_IEEEFP_H
13834 #include <ieeefp.h>
13835 #endif
13838 main ()
13840 _logf(0);
13842 return 0;
13844 _ACEOF
13845 rm -f conftest.$ac_objext
13846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -s conftest.$ac_objext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 glibcxx_cv_func__logf_use=yes
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 glibcxx_cv_func__logf_use=no
13864 rm -f conftest.$ac_objext conftest.$ac_ext
13865 ac_ext=c
13866 ac_cpp='$CPP $CPPFLAGS'
13867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13875 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13876 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13878 if test x$glibcxx_cv_func__logf_use = x"yes"; then
13880 for ac_func in _logf
13882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13883 echo "$as_me:$LINENO: checking for $ac_func" >&5
13884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13885 if eval "test \"\${$as_ac_var+set}\" = set"; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 if test x$gcc_no_link = xyes; then
13889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13891 { (exit 1); exit 1; }; }
13893 cat >conftest.$ac_ext <<_ACEOF
13894 #line $LINENO "configure"
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 /* System header to define __stub macros and hopefully few prototypes,
13901 which can conflict with char $ac_func (); below.
13902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13903 <limits.h> exists even on freestanding compilers. */
13904 #ifdef __STDC__
13905 # include <limits.h>
13906 #else
13907 # include <assert.h>
13908 #endif
13909 /* Override any gcc2 internal prototype to avoid an error. */
13910 #ifdef __cplusplus
13911 extern "C"
13913 #endif
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13916 char $ac_func ();
13917 /* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13921 choke me
13922 #else
13923 char (*f) () = $ac_func;
13924 #endif
13925 #ifdef __cplusplus
13927 #endif
13930 main ()
13932 return f != $ac_func;
13934 return 0;
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -s conftest$ac_exeext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 eval "$as_ac_var=yes"
13950 else
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 eval "$as_ac_var=no"
13956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13960 if test `eval echo '${'$as_ac_var'}'` = yes; then
13961 cat >>confdefs.h <<_ACEOF
13962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13963 _ACEOF
13966 done
13973 echo "$as_me:$LINENO: checking for log10f declaration" >&5
13974 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13975 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13976 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13982 ac_ext=cc
13983 ac_cpp='$CXXCPP $CPPFLAGS'
13984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13988 cat >conftest.$ac_ext <<_ACEOF
13989 #line $LINENO "configure"
13990 /* confdefs.h. */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <math.h>
13996 #ifdef HAVE_IEEEFP_H
13997 #include <ieeefp.h>
13998 #endif
14001 main ()
14003 log10f(0);
14005 return 0;
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 glibcxx_cv_func_log10f_use=yes
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 glibcxx_cv_func_log10f_use=no
14027 rm -f conftest.$ac_objext conftest.$ac_ext
14028 ac_ext=c
14029 ac_cpp='$CPP $CPPFLAGS'
14030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14038 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
14039 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
14041 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14043 for ac_func in log10f
14045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14046 echo "$as_me:$LINENO: checking for $ac_func" >&5
14047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14048 if eval "test \"\${$as_ac_var+set}\" = set"; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051 if test x$gcc_no_link = xyes; then
14052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14054 { (exit 1); exit 1; }; }
14056 cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 /* System header to define __stub macros and hopefully few prototypes,
14064 which can conflict with char $ac_func (); below.
14065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14066 <limits.h> exists even on freestanding compilers. */
14067 #ifdef __STDC__
14068 # include <limits.h>
14069 #else
14070 # include <assert.h>
14071 #endif
14072 /* Override any gcc2 internal prototype to avoid an error. */
14073 #ifdef __cplusplus
14074 extern "C"
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079 char $ac_func ();
14080 /* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14084 choke me
14085 #else
14086 char (*f) () = $ac_func;
14087 #endif
14088 #ifdef __cplusplus
14090 #endif
14093 main ()
14095 return f != $ac_func;
14097 return 0;
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102 (eval $ac_link) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 eval "$as_ac_var=no"
14119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14123 if test `eval echo '${'$as_ac_var'}'` = yes; then
14124 cat >>confdefs.h <<_ACEOF
14125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14126 _ACEOF
14129 done
14131 else
14133 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
14134 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
14135 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14136 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14142 ac_ext=cc
14143 ac_cpp='$CXXCPP $CPPFLAGS'
14144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 #include <math.h>
14156 #ifdef HAVE_IEEEFP_H
14157 #include <ieeefp.h>
14158 #endif
14161 main ()
14163 _log10f(0);
14165 return 0;
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 glibcxx_cv_func__log10f_use=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 glibcxx_cv_func__log10f_use=no
14187 rm -f conftest.$ac_objext conftest.$ac_ext
14188 ac_ext=c
14189 ac_cpp='$CPP $CPPFLAGS'
14190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14198 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
14199 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
14201 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14203 for ac_func in _log10f
14205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14206 echo "$as_me:$LINENO: checking for $ac_func" >&5
14207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14208 if eval "test \"\${$as_ac_var+set}\" = set"; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211 if test x$gcc_no_link = xyes; then
14212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14214 { (exit 1); exit 1; }; }
14216 cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 /* System header to define __stub macros and hopefully few prototypes,
14224 which can conflict with char $ac_func (); below.
14225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14226 <limits.h> exists even on freestanding compilers. */
14227 #ifdef __STDC__
14228 # include <limits.h>
14229 #else
14230 # include <assert.h>
14231 #endif
14232 /* Override any gcc2 internal prototype to avoid an error. */
14233 #ifdef __cplusplus
14234 extern "C"
14236 #endif
14237 /* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14239 char $ac_func ();
14240 /* The GNU C library defines this for functions which it implements
14241 to always fail with ENOSYS. Some functions are actually named
14242 something starting with __ and the normal name is an alias. */
14243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14244 choke me
14245 #else
14246 char (*f) () = $ac_func;
14247 #endif
14248 #ifdef __cplusplus
14250 #endif
14253 main ()
14255 return f != $ac_func;
14257 return 0;
14259 _ACEOF
14260 rm -f conftest.$ac_objext conftest$ac_exeext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14262 (eval $ac_link) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -s conftest$ac_exeext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 eval "$as_ac_var=yes"
14273 else
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 eval "$as_ac_var=no"
14279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14283 if test `eval echo '${'$as_ac_var'}'` = yes; then
14284 cat >>confdefs.h <<_ACEOF
14285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14286 _ACEOF
14289 done
14296 echo "$as_me:$LINENO: checking for modff declaration" >&5
14297 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14298 if test x${glibcxx_cv_func_modff_use+set} != xset; then
14299 if test "${glibcxx_cv_func_modff_use+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14305 ac_ext=cc
14306 ac_cpp='$CXXCPP $CPPFLAGS'
14307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14311 cat >conftest.$ac_ext <<_ACEOF
14312 #line $LINENO "configure"
14313 /* confdefs.h. */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 #include <math.h>
14320 main ()
14322 modff(0, 0);
14324 return 0;
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 glibcxx_cv_func_modff_use=yes
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 glibcxx_cv_func_modff_use=no
14346 rm -f conftest.$ac_objext conftest.$ac_ext
14347 ac_ext=c
14348 ac_cpp='$CPP $CPPFLAGS'
14349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14357 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14358 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14360 if test x$glibcxx_cv_func_modff_use = x"yes"; then
14362 for ac_func in modff
14364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14365 echo "$as_me:$LINENO: checking for $ac_func" >&5
14366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14367 if eval "test \"\${$as_ac_var+set}\" = set"; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370 if test x$gcc_no_link = xyes; then
14371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14373 { (exit 1); exit 1; }; }
14375 cat >conftest.$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char $ac_func (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14386 #ifdef __STDC__
14387 # include <limits.h>
14388 #else
14389 # include <assert.h>
14390 #endif
14391 /* Override any gcc2 internal prototype to avoid an error. */
14392 #ifdef __cplusplus
14393 extern "C"
14395 #endif
14396 /* We use char because int might match the return type of a gcc2
14397 builtin and then its argument prototype would still apply. */
14398 char $ac_func ();
14399 /* The GNU C library defines this for functions which it implements
14400 to always fail with ENOSYS. Some functions are actually named
14401 something starting with __ and the normal name is an alias. */
14402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14403 choke me
14404 #else
14405 char (*f) () = $ac_func;
14406 #endif
14407 #ifdef __cplusplus
14409 #endif
14412 main ()
14414 return f != $ac_func;
14416 return 0;
14418 _ACEOF
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421 (eval $ac_link) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 eval "$as_ac_var=yes"
14432 else
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 eval "$as_ac_var=no"
14438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14442 if test `eval echo '${'$as_ac_var'}'` = yes; then
14443 cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14445 _ACEOF
14448 done
14450 else
14452 echo "$as_me:$LINENO: checking for _modff declaration" >&5
14453 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14454 if test x${glibcxx_cv_func__modff_use+set} != xset; then
14455 if test "${glibcxx_cv_func__modff_use+set}" = set; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14461 ac_ext=cc
14462 ac_cpp='$CXXCPP $CPPFLAGS'
14463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14467 cat >conftest.$ac_ext <<_ACEOF
14468 #line $LINENO "configure"
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 #include <math.h>
14476 main ()
14478 _modff(0, 0);
14480 return 0;
14482 _ACEOF
14483 rm -f conftest.$ac_objext
14484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14485 (eval $ac_compile) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -s conftest.$ac_objext'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
14495 glibcxx_cv_func__modff_use=yes
14496 else
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 glibcxx_cv_func__modff_use=no
14502 rm -f conftest.$ac_objext conftest.$ac_ext
14503 ac_ext=c
14504 ac_cpp='$CPP $CPPFLAGS'
14505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14513 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14514 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14516 if test x$glibcxx_cv_func__modff_use = x"yes"; then
14518 for ac_func in _modff
14520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14521 echo "$as_me:$LINENO: checking for $ac_func" >&5
14522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14523 if eval "test \"\${$as_ac_var+set}\" = set"; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 if test x$gcc_no_link = xyes; then
14527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14529 { (exit 1); exit 1; }; }
14531 cat >conftest.$ac_ext <<_ACEOF
14532 #line $LINENO "configure"
14533 /* confdefs.h. */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 /* System header to define __stub macros and hopefully few prototypes,
14539 which can conflict with char $ac_func (); below.
14540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14541 <limits.h> exists even on freestanding compilers. */
14542 #ifdef __STDC__
14543 # include <limits.h>
14544 #else
14545 # include <assert.h>
14546 #endif
14547 /* Override any gcc2 internal prototype to avoid an error. */
14548 #ifdef __cplusplus
14549 extern "C"
14551 #endif
14552 /* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14554 char $ac_func ();
14555 /* The GNU C library defines this for functions which it implements
14556 to always fail with ENOSYS. Some functions are actually named
14557 something starting with __ and the normal name is an alias. */
14558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14559 choke me
14560 #else
14561 char (*f) () = $ac_func;
14562 #endif
14563 #ifdef __cplusplus
14565 #endif
14568 main ()
14570 return f != $ac_func;
14572 return 0;
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577 (eval $ac_link) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -s conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 eval "$as_ac_var=yes"
14588 else
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 eval "$as_ac_var=no"
14594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14598 if test `eval echo '${'$as_ac_var'}'` = yes; then
14599 cat >>confdefs.h <<_ACEOF
14600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14601 _ACEOF
14604 done
14611 echo "$as_me:$LINENO: checking for powf declaration" >&5
14612 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14613 if test x${glibcxx_cv_func_powf_use+set} != xset; then
14614 if test "${glibcxx_cv_func_powf_use+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14620 ac_ext=cc
14621 ac_cpp='$CXXCPP $CPPFLAGS'
14622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14626 cat >conftest.$ac_ext <<_ACEOF
14627 #line $LINENO "configure"
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 powf(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>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 glibcxx_cv_func_powf_use=yes
14655 else
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 glibcxx_cv_func_powf_use=no
14661 rm -f conftest.$ac_objext conftest.$ac_ext
14662 ac_ext=c
14663 ac_cpp='$CPP $CPPFLAGS'
14664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14672 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14673 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14675 if test x$glibcxx_cv_func_powf_use = x"yes"; then
14677 for ac_func in powf
14679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14680 echo "$as_me:$LINENO: checking for $ac_func" >&5
14681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14682 if eval "test \"\${$as_ac_var+set}\" = set"; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685 if test x$gcc_no_link = xyes; then
14686 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14688 { (exit 1); exit 1; }; }
14690 cat >conftest.$ac_ext <<_ACEOF
14691 #line $LINENO "configure"
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 /* System header to define __stub macros and hopefully few prototypes,
14698 which can conflict with char $ac_func (); below.
14699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14700 <limits.h> exists even on freestanding compilers. */
14701 #ifdef __STDC__
14702 # include <limits.h>
14703 #else
14704 # include <assert.h>
14705 #endif
14706 /* Override any gcc2 internal prototype to avoid an error. */
14707 #ifdef __cplusplus
14708 extern "C"
14710 #endif
14711 /* We use char because int might match the return type of a gcc2
14712 builtin and then its argument prototype would still apply. */
14713 char $ac_func ();
14714 /* The GNU C library defines this for functions which it implements
14715 to always fail with ENOSYS. Some functions are actually named
14716 something starting with __ and the normal name is an alias. */
14717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14718 choke me
14719 #else
14720 char (*f) () = $ac_func;
14721 #endif
14722 #ifdef __cplusplus
14724 #endif
14727 main ()
14729 return f != $ac_func;
14731 return 0;
14733 _ACEOF
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14736 (eval $ac_link) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -s conftest$ac_exeext'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 eval "$as_ac_var=yes"
14747 else
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 eval "$as_ac_var=no"
14753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14757 if test `eval echo '${'$as_ac_var'}'` = yes; then
14758 cat >>confdefs.h <<_ACEOF
14759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14760 _ACEOF
14763 done
14765 else
14767 echo "$as_me:$LINENO: checking for _powf declaration" >&5
14768 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14769 if test x${glibcxx_cv_func__powf_use+set} != xset; then
14770 if test "${glibcxx_cv_func__powf_use+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14776 ac_ext=cc
14777 ac_cpp='$CXXCPP $CPPFLAGS'
14778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14782 cat >conftest.$ac_ext <<_ACEOF
14783 #line $LINENO "configure"
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <math.h>
14791 main ()
14793 _powf(0, 0);
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 glibcxx_cv_func__powf_use=yes
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 glibcxx_cv_func__powf_use=no
14817 rm -f conftest.$ac_objext conftest.$ac_ext
14818 ac_ext=c
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14828 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14829 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14831 if test x$glibcxx_cv_func__powf_use = x"yes"; then
14833 for ac_func in _powf
14835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14836 echo "$as_me:$LINENO: checking for $ac_func" >&5
14837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14838 if eval "test \"\${$as_ac_var+set}\" = set"; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841 if test x$gcc_no_link = xyes; then
14842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14844 { (exit 1); exit 1; }; }
14846 cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 /* System header to define __stub macros and hopefully few prototypes,
14854 which can conflict with char $ac_func (); below.
14855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14856 <limits.h> exists even on freestanding compilers. */
14857 #ifdef __STDC__
14858 # include <limits.h>
14859 #else
14860 # include <assert.h>
14861 #endif
14862 /* Override any gcc2 internal prototype to avoid an error. */
14863 #ifdef __cplusplus
14864 extern "C"
14866 #endif
14867 /* We use char because int might match the return type of a gcc2
14868 builtin and then its argument prototype would still apply. */
14869 char $ac_func ();
14870 /* The GNU C library defines this for functions which it implements
14871 to always fail with ENOSYS. Some functions are actually named
14872 something starting with __ and the normal name is an alias. */
14873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14874 choke me
14875 #else
14876 char (*f) () = $ac_func;
14877 #endif
14878 #ifdef __cplusplus
14880 #endif
14883 main ()
14885 return f != $ac_func;
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14892 (eval $ac_link) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 eval "$as_ac_var=yes"
14903 else
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14907 eval "$as_ac_var=no"
14909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14913 if test `eval echo '${'$as_ac_var'}'` = yes; then
14914 cat >>confdefs.h <<_ACEOF
14915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14916 _ACEOF
14919 done
14926 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14927 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14928 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14929 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 else
14935 ac_ext=cc
14936 ac_cpp='$CXXCPP $CPPFLAGS'
14937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14941 cat >conftest.$ac_ext <<_ACEOF
14942 #line $LINENO "configure"
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 #include <math.h>
14949 #ifdef HAVE_IEEEFP_H
14950 #include <ieeefp.h>
14951 #endif
14954 main ()
14956 sqrtf(0);
14958 return 0;
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963 (eval $ac_compile) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 glibcxx_cv_func_sqrtf_use=yes
14974 else
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 glibcxx_cv_func_sqrtf_use=no
14980 rm -f conftest.$ac_objext conftest.$ac_ext
14981 ac_ext=c
14982 ac_cpp='$CPP $CPPFLAGS'
14983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14991 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14992 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14994 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
14996 for ac_func in sqrtf
14998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14999 echo "$as_me:$LINENO: checking for $ac_func" >&5
15000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15001 if eval "test \"\${$as_ac_var+set}\" = set"; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15003 else
15004 if test x$gcc_no_link = xyes; then
15005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15007 { (exit 1); exit 1; }; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 #line $LINENO "configure"
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 /* System header to define __stub macros and hopefully few prototypes,
15017 which can conflict with char $ac_func (); below.
15018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15019 <limits.h> exists even on freestanding compilers. */
15020 #ifdef __STDC__
15021 # include <limits.h>
15022 #else
15023 # include <assert.h>
15024 #endif
15025 /* Override any gcc2 internal prototype to avoid an error. */
15026 #ifdef __cplusplus
15027 extern "C"
15029 #endif
15030 /* We use char because int might match the return type of a gcc2
15031 builtin and then its argument prototype would still apply. */
15032 char $ac_func ();
15033 /* The GNU C library defines this for functions which it implements
15034 to always fail with ENOSYS. Some functions are actually named
15035 something starting with __ and the normal name is an alias. */
15036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15037 choke me
15038 #else
15039 char (*f) () = $ac_func;
15040 #endif
15041 #ifdef __cplusplus
15043 #endif
15046 main ()
15048 return f != $ac_func;
15050 return 0;
15052 _ACEOF
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15055 (eval $ac_link) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -s conftest$ac_exeext'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 eval "$as_ac_var=yes"
15066 else
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 eval "$as_ac_var=no"
15072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15076 if test `eval echo '${'$as_ac_var'}'` = yes; then
15077 cat >>confdefs.h <<_ACEOF
15078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15079 _ACEOF
15082 done
15084 else
15086 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
15087 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
15088 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15089 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15095 ac_ext=cc
15096 ac_cpp='$CXXCPP $CPPFLAGS'
15097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15101 cat >conftest.$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #include <math.h>
15109 #ifdef HAVE_IEEEFP_H
15110 #include <ieeefp.h>
15111 #endif
15114 main ()
15116 _sqrtf(0);
15118 return 0;
15120 _ACEOF
15121 rm -f conftest.$ac_objext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123 (eval $ac_compile) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 glibcxx_cv_func__sqrtf_use=yes
15134 else
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 glibcxx_cv_func__sqrtf_use=no
15140 rm -f conftest.$ac_objext conftest.$ac_ext
15141 ac_ext=c
15142 ac_cpp='$CPP $CPPFLAGS'
15143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15151 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
15152 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
15154 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15156 for ac_func in _sqrtf
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161 if eval "test \"\${$as_ac_var+set}\" = set"; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 if test x$gcc_no_link = xyes; then
15165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15167 { (exit 1); exit 1; }; }
15169 cat >conftest.$ac_ext <<_ACEOF
15170 #line $LINENO "configure"
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 /* System header to define __stub macros and hopefully few prototypes,
15177 which can conflict with char $ac_func (); below.
15178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15179 <limits.h> exists even on freestanding compilers. */
15180 #ifdef __STDC__
15181 # include <limits.h>
15182 #else
15183 # include <assert.h>
15184 #endif
15185 /* Override any gcc2 internal prototype to avoid an error. */
15186 #ifdef __cplusplus
15187 extern "C"
15189 #endif
15190 /* We use char because int might match the return type of a gcc2
15191 builtin and then its argument prototype would still apply. */
15192 char $ac_func ();
15193 /* The GNU C library defines this for functions which it implements
15194 to always fail with ENOSYS. Some functions are actually named
15195 something starting with __ and the normal name is an alias. */
15196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15197 choke me
15198 #else
15199 char (*f) () = $ac_func;
15200 #endif
15201 #ifdef __cplusplus
15203 #endif
15206 main ()
15208 return f != $ac_func;
15210 return 0;
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -s conftest$ac_exeext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 eval "$as_ac_var=yes"
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 eval "$as_ac_var=no"
15232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15236 if test `eval echo '${'$as_ac_var'}'` = yes; then
15237 cat >>confdefs.h <<_ACEOF
15238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15239 _ACEOF
15242 done
15249 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
15250 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
15251 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15252 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15258 ac_ext=cc
15259 ac_cpp='$CXXCPP $CPPFLAGS'
15260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15264 cat >conftest.$ac_ext <<_ACEOF
15265 #line $LINENO "configure"
15266 /* confdefs.h. */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 #include <math.h>
15273 main ()
15275 sincosf(0, 0, 0);
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282 (eval $ac_compile) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try='test -s conftest.$ac_objext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 glibcxx_cv_func_sincosf_use=yes
15293 else
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 glibcxx_cv_func_sincosf_use=no
15299 rm -f conftest.$ac_objext conftest.$ac_ext
15300 ac_ext=c
15301 ac_cpp='$CPP $CPPFLAGS'
15302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15311 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15313 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15315 for ac_func in sincosf
15317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15318 echo "$as_me:$LINENO: checking for $ac_func" >&5
15319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15320 if eval "test \"\${$as_ac_var+set}\" = set"; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 else
15323 if test x$gcc_no_link = xyes; then
15324 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15326 { (exit 1); exit 1; }; }
15328 cat >conftest.$ac_ext <<_ACEOF
15329 #line $LINENO "configure"
15330 /* confdefs.h. */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15335 /* System header to define __stub macros and hopefully few prototypes,
15336 which can conflict with char $ac_func (); below.
15337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15338 <limits.h> exists even on freestanding compilers. */
15339 #ifdef __STDC__
15340 # include <limits.h>
15341 #else
15342 # include <assert.h>
15343 #endif
15344 /* Override any gcc2 internal prototype to avoid an error. */
15345 #ifdef __cplusplus
15346 extern "C"
15348 #endif
15349 /* We use char because int might match the return type of a gcc2
15350 builtin and then its argument prototype would still apply. */
15351 char $ac_func ();
15352 /* The GNU C library defines this for functions which it implements
15353 to always fail with ENOSYS. Some functions are actually named
15354 something starting with __ and the normal name is an alias. */
15355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15356 choke me
15357 #else
15358 char (*f) () = $ac_func;
15359 #endif
15360 #ifdef __cplusplus
15362 #endif
15365 main ()
15367 return f != $ac_func;
15369 return 0;
15371 _ACEOF
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 eval "$as_ac_var=yes"
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 eval "$as_ac_var=no"
15391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15395 if test `eval echo '${'$as_ac_var'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15398 _ACEOF
15401 done
15403 else
15405 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15406 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15407 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15408 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15414 ac_ext=cc
15415 ac_cpp='$CXXCPP $CPPFLAGS'
15416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15420 cat >conftest.$ac_ext <<_ACEOF
15421 #line $LINENO "configure"
15422 /* confdefs.h. */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 #include <math.h>
15429 main ()
15431 _sincosf(0, 0, 0);
15433 return 0;
15435 _ACEOF
15436 rm -f conftest.$ac_objext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
15442 { ac_try='test -s conftest.$ac_objext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 glibcxx_cv_func__sincosf_use=yes
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 glibcxx_cv_func__sincosf_use=no
15455 rm -f conftest.$ac_objext conftest.$ac_ext
15456 ac_ext=c
15457 ac_cpp='$CPP $CPPFLAGS'
15458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15466 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15467 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15469 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15471 for ac_func in _sincosf
15473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15474 echo "$as_me:$LINENO: checking for $ac_func" >&5
15475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15476 if eval "test \"\${$as_ac_var+set}\" = set"; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 else
15479 if test x$gcc_no_link = xyes; then
15480 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15481 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15482 { (exit 1); exit 1; }; }
15484 cat >conftest.$ac_ext <<_ACEOF
15485 #line $LINENO "configure"
15486 /* confdefs.h. */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 /* System header to define __stub macros and hopefully few prototypes,
15492 which can conflict with char $ac_func (); below.
15493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15494 <limits.h> exists even on freestanding compilers. */
15495 #ifdef __STDC__
15496 # include <limits.h>
15497 #else
15498 # include <assert.h>
15499 #endif
15500 /* Override any gcc2 internal prototype to avoid an error. */
15501 #ifdef __cplusplus
15502 extern "C"
15504 #endif
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15507 char $ac_func ();
15508 /* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512 choke me
15513 #else
15514 char (*f) () = $ac_func;
15515 #endif
15516 #ifdef __cplusplus
15518 #endif
15521 main ()
15523 return f != $ac_func;
15525 return 0;
15527 _ACEOF
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -s conftest$ac_exeext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 eval "$as_ac_var=yes"
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 eval "$as_ac_var=no"
15547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15551 if test `eval echo '${'$as_ac_var'}'` = yes; then
15552 cat >>confdefs.h <<_ACEOF
15553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15554 _ACEOF
15557 done
15564 echo "$as_me:$LINENO: checking for finitef declaration" >&5
15565 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15566 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15567 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15573 ac_ext=cc
15574 ac_cpp='$CXXCPP $CPPFLAGS'
15575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15579 cat >conftest.$ac_ext <<_ACEOF
15580 #line $LINENO "configure"
15581 /* confdefs.h. */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 #include <math.h>
15587 #ifdef HAVE_IEEEFP_H
15588 #include <ieeefp.h>
15589 #endif
15592 main ()
15594 finitef(0);
15596 return 0;
15598 _ACEOF
15599 rm -f conftest.$ac_objext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601 (eval $ac_compile) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 glibcxx_cv_func_finitef_use=yes
15612 else
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15616 glibcxx_cv_func_finitef_use=no
15618 rm -f conftest.$ac_objext conftest.$ac_ext
15619 ac_ext=c
15620 ac_cpp='$CPP $CPPFLAGS'
15621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15629 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15630 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15632 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15634 for ac_func in finitef
15636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15637 echo "$as_me:$LINENO: checking for $ac_func" >&5
15638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15639 if eval "test \"\${$as_ac_var+set}\" = set"; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642 if test x$gcc_no_link = xyes; then
15643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15645 { (exit 1); exit 1; }; }
15647 cat >conftest.$ac_ext <<_ACEOF
15648 #line $LINENO "configure"
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 /* System header to define __stub macros and hopefully few prototypes,
15655 which can conflict with char $ac_func (); below.
15656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15657 <limits.h> exists even on freestanding compilers. */
15658 #ifdef __STDC__
15659 # include <limits.h>
15660 #else
15661 # include <assert.h>
15662 #endif
15663 /* Override any gcc2 internal prototype to avoid an error. */
15664 #ifdef __cplusplus
15665 extern "C"
15667 #endif
15668 /* We use char because int might match the return type of a gcc2
15669 builtin and then its argument prototype would still apply. */
15670 char $ac_func ();
15671 /* The GNU C library defines this for functions which it implements
15672 to always fail with ENOSYS. Some functions are actually named
15673 something starting with __ and the normal name is an alias. */
15674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15675 choke me
15676 #else
15677 char (*f) () = $ac_func;
15678 #endif
15679 #ifdef __cplusplus
15681 #endif
15684 main ()
15686 return f != $ac_func;
15688 return 0;
15690 _ACEOF
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15693 (eval $ac_link) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15703 eval "$as_ac_var=yes"
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 eval "$as_ac_var=no"
15710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15717 _ACEOF
15720 done
15722 else
15724 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15725 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15726 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15727 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15733 ac_ext=cc
15734 ac_cpp='$CXXCPP $CPPFLAGS'
15735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15739 cat >conftest.$ac_ext <<_ACEOF
15740 #line $LINENO "configure"
15741 /* confdefs.h. */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 #include <math.h>
15747 #ifdef HAVE_IEEEFP_H
15748 #include <ieeefp.h>
15749 #endif
15752 main ()
15754 _finitef(0);
15756 return 0;
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15761 (eval $ac_compile) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 glibcxx_cv_func__finitef_use=yes
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 glibcxx_cv_func__finitef_use=no
15778 rm -f conftest.$ac_objext conftest.$ac_ext
15779 ac_ext=c
15780 ac_cpp='$CPP $CPPFLAGS'
15781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15789 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15790 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15792 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15794 for ac_func in _finitef
15796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15797 echo "$as_me:$LINENO: checking for $ac_func" >&5
15798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15799 if eval "test \"\${$as_ac_var+set}\" = set"; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802 if test x$gcc_no_link = xyes; then
15803 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15805 { (exit 1); exit 1; }; }
15807 cat >conftest.$ac_ext <<_ACEOF
15808 #line $LINENO "configure"
15809 /* confdefs.h. */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 /* System header to define __stub macros and hopefully few prototypes,
15815 which can conflict with char $ac_func (); below.
15816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817 <limits.h> exists even on freestanding compilers. */
15818 #ifdef __STDC__
15819 # include <limits.h>
15820 #else
15821 # include <assert.h>
15822 #endif
15823 /* Override any gcc2 internal prototype to avoid an error. */
15824 #ifdef __cplusplus
15825 extern "C"
15827 #endif
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830 char $ac_func ();
15831 /* The GNU C library defines this for functions which it implements
15832 to always fail with ENOSYS. Some functions are actually named
15833 something starting with __ and the normal name is an alias. */
15834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15835 choke me
15836 #else
15837 char (*f) () = $ac_func;
15838 #endif
15839 #ifdef __cplusplus
15841 #endif
15844 main ()
15846 return f != $ac_func;
15848 return 0;
15850 _ACEOF
15851 rm -f conftest.$ac_objext conftest$ac_exeext
15852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15853 (eval $ac_link) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -s conftest$ac_exeext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 eval "$as_ac_var=yes"
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 eval "$as_ac_var=no"
15870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15874 if test `eval echo '${'$as_ac_var'}'` = yes; then
15875 cat >>confdefs.h <<_ACEOF
15876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15877 _ACEOF
15880 done
15887 echo "$as_me:$LINENO: checking for long double trig functions" >&5
15888 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15889 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15895 ac_ext=cc
15896 ac_cpp='$CXXCPP $CPPFLAGS'
15897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15901 cat >conftest.$ac_ext <<_ACEOF
15902 #line $LINENO "configure"
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 #include <math.h>
15910 main ()
15912 `for x in acosl asinl atanl \
15913 cosl sinl tanl \
15914 coshl sinhl tanhl; do echo "$x (0);"; done`
15916 return 0;
15918 _ACEOF
15919 rm -f conftest.$ac_objext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15921 (eval $ac_compile) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -s conftest.$ac_objext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 glibcxx_cv_func_long_double_trig_use=yes
15932 else
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 glibcxx_cv_func_long_double_trig_use=no
15938 rm -f conftest.$ac_objext conftest.$ac_ext
15939 ac_ext=c
15940 ac_cpp='$CPP $CPPFLAGS'
15941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15947 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15948 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15949 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15959 for ac_func in acosl asinl atanl \
15960 cosl sinl tanl \
15961 coshl sinhl tanhl
15963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15964 echo "$as_me:$LINENO: checking for $ac_func" >&5
15965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15966 if eval "test \"\${$as_ac_var+set}\" = set"; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969 if test x$gcc_no_link = xyes; then
15970 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15971 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15972 { (exit 1); exit 1; }; }
15974 cat >conftest.$ac_ext <<_ACEOF
15975 #line $LINENO "configure"
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 /* System header to define __stub macros and hopefully few prototypes,
15982 which can conflict with char $ac_func (); below.
15983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15984 <limits.h> exists even on freestanding compilers. */
15985 #ifdef __STDC__
15986 # include <limits.h>
15987 #else
15988 # include <assert.h>
15989 #endif
15990 /* Override any gcc2 internal prototype to avoid an error. */
15991 #ifdef __cplusplus
15992 extern "C"
15994 #endif
15995 /* We use char because int might match the return type of a gcc2
15996 builtin and then its argument prototype would still apply. */
15997 char $ac_func ();
15998 /* The GNU C library defines this for functions which it implements
15999 to always fail with ENOSYS. Some functions are actually named
16000 something starting with __ and the normal name is an alias. */
16001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16002 choke me
16003 #else
16004 char (*f) () = $ac_func;
16005 #endif
16006 #ifdef __cplusplus
16008 #endif
16011 main ()
16013 return f != $ac_func;
16015 return 0;
16017 _ACEOF
16018 rm -f conftest.$ac_objext conftest$ac_exeext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16020 (eval $ac_link) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } &&
16024 { ac_try='test -s conftest$ac_exeext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16027 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 eval "$as_ac_var=yes"
16031 else
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 eval "$as_ac_var=no"
16037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16041 if test `eval echo '${'$as_ac_var'}'` = yes; then
16042 cat >>confdefs.h <<_ACEOF
16043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16044 _ACEOF
16047 done
16052 echo "$as_me:$LINENO: checking for long double round functions" >&5
16053 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
16054 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16060 ac_ext=cc
16061 ac_cpp='$CXXCPP $CPPFLAGS'
16062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16066 cat >conftest.$ac_ext <<_ACEOF
16067 #line $LINENO "configure"
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <math.h>
16075 main ()
16077 `for x in ceill floorl; do echo "$x (0);"; done`
16079 return 0;
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084 (eval $ac_compile) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
16094 glibcxx_cv_func_long_double_round_use=yes
16095 else
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16099 glibcxx_cv_func_long_double_round_use=no
16101 rm -f conftest.$ac_objext conftest.$ac_ext
16102 ac_ext=c
16103 ac_cpp='$CPP $CPPFLAGS'
16104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16110 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
16111 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
16112 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16115 for ac_func in ceill floorl
16117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16118 echo "$as_me:$LINENO: checking for $ac_func" >&5
16119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16120 if eval "test \"\${$as_ac_var+set}\" = set"; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123 if test x$gcc_no_link = xyes; then
16124 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16126 { (exit 1); exit 1; }; }
16128 cat >conftest.$ac_ext <<_ACEOF
16129 #line $LINENO "configure"
16130 /* confdefs.h. */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16135 /* System header to define __stub macros and hopefully few prototypes,
16136 which can conflict with char $ac_func (); below.
16137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16138 <limits.h> exists even on freestanding compilers. */
16139 #ifdef __STDC__
16140 # include <limits.h>
16141 #else
16142 # include <assert.h>
16143 #endif
16144 /* Override any gcc2 internal prototype to avoid an error. */
16145 #ifdef __cplusplus
16146 extern "C"
16148 #endif
16149 /* We use char because int might match the return type of a gcc2
16150 builtin and then its argument prototype would still apply. */
16151 char $ac_func ();
16152 /* The GNU C library defines this for functions which it implements
16153 to always fail with ENOSYS. Some functions are actually named
16154 something starting with __ and the normal name is an alias. */
16155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16156 choke me
16157 #else
16158 char (*f) () = $ac_func;
16159 #endif
16160 #ifdef __cplusplus
16162 #endif
16165 main ()
16167 return f != $ac_func;
16169 return 0;
16171 _ACEOF
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174 (eval $ac_link) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -s conftest$ac_exeext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 eval "$as_ac_var=yes"
16185 else
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16189 eval "$as_ac_var=no"
16191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16195 if test `eval echo '${'$as_ac_var'}'` = yes; then
16196 cat >>confdefs.h <<_ACEOF
16197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16198 _ACEOF
16201 done
16207 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
16208 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
16209 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16210 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16216 ac_ext=cc
16217 ac_cpp='$CXXCPP $CPPFLAGS'
16218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16222 cat >conftest.$ac_ext <<_ACEOF
16223 #line $LINENO "configure"
16224 /* confdefs.h. */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 #include <math.h>
16230 #ifdef HAVE_IEEEFP_H
16231 #include <ieeefp.h>
16232 #endif
16235 main ()
16237 isnanl(0);
16239 return 0;
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244 (eval $ac_compile) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -s conftest.$ac_objext'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 glibcxx_cv_func_isnanl_use=yes
16255 else
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 glibcxx_cv_func_isnanl_use=no
16261 rm -f conftest.$ac_objext conftest.$ac_ext
16262 ac_ext=c
16263 ac_cpp='$CPP $CPPFLAGS'
16264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16272 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
16273 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
16275 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16277 for ac_func in isnanl
16279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16280 echo "$as_me:$LINENO: checking for $ac_func" >&5
16281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16282 if eval "test \"\${$as_ac_var+set}\" = set"; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285 if test x$gcc_no_link = xyes; then
16286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16288 { (exit 1); exit 1; }; }
16290 cat >conftest.$ac_ext <<_ACEOF
16291 #line $LINENO "configure"
16292 /* confdefs.h. */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 /* System header to define __stub macros and hopefully few prototypes,
16298 which can conflict with char $ac_func (); below.
16299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16300 <limits.h> exists even on freestanding compilers. */
16301 #ifdef __STDC__
16302 # include <limits.h>
16303 #else
16304 # include <assert.h>
16305 #endif
16306 /* Override any gcc2 internal prototype to avoid an error. */
16307 #ifdef __cplusplus
16308 extern "C"
16310 #endif
16311 /* We use char because int might match the return type of a gcc2
16312 builtin and then its argument prototype would still apply. */
16313 char $ac_func ();
16314 /* The GNU C library defines this for functions which it implements
16315 to always fail with ENOSYS. Some functions are actually named
16316 something starting with __ and the normal name is an alias. */
16317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16318 choke me
16319 #else
16320 char (*f) () = $ac_func;
16321 #endif
16322 #ifdef __cplusplus
16324 #endif
16327 main ()
16329 return f != $ac_func;
16331 return 0;
16333 _ACEOF
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336 (eval $ac_link) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -s conftest$ac_exeext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 eval "$as_ac_var=yes"
16347 else
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 eval "$as_ac_var=no"
16353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16357 if test `eval echo '${'$as_ac_var'}'` = yes; then
16358 cat >>confdefs.h <<_ACEOF
16359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16360 _ACEOF
16363 done
16365 else
16367 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16368 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16369 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16370 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16376 ac_ext=cc
16377 ac_cpp='$CXXCPP $CPPFLAGS'
16378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16382 cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <math.h>
16390 #ifdef HAVE_IEEEFP_H
16391 #include <ieeefp.h>
16392 #endif
16395 main ()
16397 _isnanl(0);
16399 return 0;
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 glibcxx_cv_func__isnanl_use=yes
16415 else
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 glibcxx_cv_func__isnanl_use=no
16421 rm -f conftest.$ac_objext conftest.$ac_ext
16422 ac_ext=c
16423 ac_cpp='$CPP $CPPFLAGS'
16424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16432 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16433 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16435 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16437 for ac_func in _isnanl
16439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16440 echo "$as_me:$LINENO: checking for $ac_func" >&5
16441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16442 if eval "test \"\${$as_ac_var+set}\" = set"; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445 if test x$gcc_no_link = xyes; then
16446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16448 { (exit 1); exit 1; }; }
16450 cat >conftest.$ac_ext <<_ACEOF
16451 #line $LINENO "configure"
16452 /* confdefs.h. */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 /* System header to define __stub macros and hopefully few prototypes,
16458 which can conflict with char $ac_func (); below.
16459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460 <limits.h> exists even on freestanding compilers. */
16461 #ifdef __STDC__
16462 # include <limits.h>
16463 #else
16464 # include <assert.h>
16465 #endif
16466 /* Override any gcc2 internal prototype to avoid an error. */
16467 #ifdef __cplusplus
16468 extern "C"
16470 #endif
16471 /* We use char because int might match the return type of a gcc2
16472 builtin and then its argument prototype would still apply. */
16473 char $ac_func ();
16474 /* The GNU C library defines this for functions which it implements
16475 to always fail with ENOSYS. Some functions are actually named
16476 something starting with __ and the normal name is an alias. */
16477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16478 choke me
16479 #else
16480 char (*f) () = $ac_func;
16481 #endif
16482 #ifdef __cplusplus
16484 #endif
16487 main ()
16489 return f != $ac_func;
16491 return 0;
16493 _ACEOF
16494 rm -f conftest.$ac_objext conftest$ac_exeext
16495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16496 (eval $ac_link) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
16500 { ac_try='test -s conftest$ac_exeext'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 eval "$as_ac_var=yes"
16507 else
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 eval "$as_ac_var=no"
16513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16517 if test `eval echo '${'$as_ac_var'}'` = yes; then
16518 cat >>confdefs.h <<_ACEOF
16519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16520 _ACEOF
16523 done
16530 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16531 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16532 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16533 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16539 ac_ext=cc
16540 ac_cpp='$CXXCPP $CPPFLAGS'
16541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16545 cat >conftest.$ac_ext <<_ACEOF
16546 #line $LINENO "configure"
16547 /* confdefs.h. */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <math.h>
16553 #ifdef HAVE_IEEEFP_H
16554 #include <ieeefp.h>
16555 #endif
16558 main ()
16560 isinfl(0);
16562 return 0;
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567 (eval $ac_compile) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -s conftest.$ac_objext'
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
16577 glibcxx_cv_func_isinfl_use=yes
16578 else
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 glibcxx_cv_func_isinfl_use=no
16584 rm -f conftest.$ac_objext conftest.$ac_ext
16585 ac_ext=c
16586 ac_cpp='$CPP $CPPFLAGS'
16587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16595 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16596 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16598 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16600 for ac_func in isinfl
16602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16603 echo "$as_me:$LINENO: checking for $ac_func" >&5
16604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16605 if eval "test \"\${$as_ac_var+set}\" = set"; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608 if test x$gcc_no_link = xyes; then
16609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16611 { (exit 1); exit 1; }; }
16613 cat >conftest.$ac_ext <<_ACEOF
16614 #line $LINENO "configure"
16615 /* confdefs.h. */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 /* System header to define __stub macros and hopefully few prototypes,
16621 which can conflict with char $ac_func (); below.
16622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16623 <limits.h> exists even on freestanding compilers. */
16624 #ifdef __STDC__
16625 # include <limits.h>
16626 #else
16627 # include <assert.h>
16628 #endif
16629 /* Override any gcc2 internal prototype to avoid an error. */
16630 #ifdef __cplusplus
16631 extern "C"
16633 #endif
16634 /* We use char because int might match the return type of a gcc2
16635 builtin and then its argument prototype would still apply. */
16636 char $ac_func ();
16637 /* The GNU C library defines this for functions which it implements
16638 to always fail with ENOSYS. Some functions are actually named
16639 something starting with __ and the normal name is an alias. */
16640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16641 choke me
16642 #else
16643 char (*f) () = $ac_func;
16644 #endif
16645 #ifdef __cplusplus
16647 #endif
16650 main ()
16652 return f != $ac_func;
16654 return 0;
16656 _ACEOF
16657 rm -f conftest.$ac_objext conftest$ac_exeext
16658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16659 (eval $ac_link) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -s conftest$ac_exeext'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 eval "$as_ac_var=yes"
16670 else
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 eval "$as_ac_var=no"
16676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16680 if test `eval echo '${'$as_ac_var'}'` = yes; then
16681 cat >>confdefs.h <<_ACEOF
16682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16683 _ACEOF
16686 done
16688 else
16690 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16691 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16692 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16693 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 else
16699 ac_ext=cc
16700 ac_cpp='$CXXCPP $CPPFLAGS'
16701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16705 cat >conftest.$ac_ext <<_ACEOF
16706 #line $LINENO "configure"
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 #include <math.h>
16713 #ifdef HAVE_IEEEFP_H
16714 #include <ieeefp.h>
16715 #endif
16718 main ()
16720 _isinfl(0);
16722 return 0;
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727 (eval $ac_compile) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 glibcxx_cv_func__isinfl_use=yes
16738 else
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 glibcxx_cv_func__isinfl_use=no
16744 rm -f conftest.$ac_objext conftest.$ac_ext
16745 ac_ext=c
16746 ac_cpp='$CPP $CPPFLAGS'
16747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16755 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16756 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16758 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16760 for ac_func in _isinfl
16762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16763 echo "$as_me:$LINENO: checking for $ac_func" >&5
16764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16765 if eval "test \"\${$as_ac_var+set}\" = set"; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768 if test x$gcc_no_link = xyes; then
16769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16771 { (exit 1); exit 1; }; }
16773 cat >conftest.$ac_ext <<_ACEOF
16774 #line $LINENO "configure"
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 /* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func (); below.
16782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783 <limits.h> exists even on freestanding compilers. */
16784 #ifdef __STDC__
16785 # include <limits.h>
16786 #else
16787 # include <assert.h>
16788 #endif
16789 /* Override any gcc2 internal prototype to avoid an error. */
16790 #ifdef __cplusplus
16791 extern "C"
16793 #endif
16794 /* We use char because int might match the return type of a gcc2
16795 builtin and then its argument prototype would still apply. */
16796 char $ac_func ();
16797 /* The GNU C library defines this for functions which it implements
16798 to always fail with ENOSYS. Some functions are actually named
16799 something starting with __ and the normal name is an alias. */
16800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16801 choke me
16802 #else
16803 char (*f) () = $ac_func;
16804 #endif
16805 #ifdef __cplusplus
16807 #endif
16810 main ()
16812 return f != $ac_func;
16814 return 0;
16816 _ACEOF
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819 (eval $ac_link) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -s conftest$ac_exeext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 eval "$as_ac_var=yes"
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 eval "$as_ac_var=no"
16836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16840 if test `eval echo '${'$as_ac_var'}'` = yes; then
16841 cat >>confdefs.h <<_ACEOF
16842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16843 _ACEOF
16846 done
16853 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16854 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16855 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16856 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16862 ac_ext=cc
16863 ac_cpp='$CXXCPP $CPPFLAGS'
16864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16868 cat >conftest.$ac_ext <<_ACEOF
16869 #line $LINENO "configure"
16870 /* confdefs.h. */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 #include <math.h>
16877 main ()
16879 copysignl(0, 0);
16881 return 0;
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16896 glibcxx_cv_func_copysignl_use=yes
16897 else
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 glibcxx_cv_func_copysignl_use=no
16903 rm -f conftest.$ac_objext conftest.$ac_ext
16904 ac_ext=c
16905 ac_cpp='$CPP $CPPFLAGS'
16906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16914 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16915 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16917 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16919 for ac_func in copysignl
16921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16922 echo "$as_me:$LINENO: checking for $ac_func" >&5
16923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16924 if eval "test \"\${$as_ac_var+set}\" = set"; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927 if test x$gcc_no_link = xyes; then
16928 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16929 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16930 { (exit 1); exit 1; }; }
16932 cat >conftest.$ac_ext <<_ACEOF
16933 #line $LINENO "configure"
16934 /* confdefs.h. */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16939 /* System header to define __stub macros and hopefully few prototypes,
16940 which can conflict with char $ac_func (); below.
16941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16942 <limits.h> exists even on freestanding compilers. */
16943 #ifdef __STDC__
16944 # include <limits.h>
16945 #else
16946 # include <assert.h>
16947 #endif
16948 /* Override any gcc2 internal prototype to avoid an error. */
16949 #ifdef __cplusplus
16950 extern "C"
16952 #endif
16953 /* We use char because int might match the return type of a gcc2
16954 builtin and then its argument prototype would still apply. */
16955 char $ac_func ();
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16960 choke me
16961 #else
16962 char (*f) () = $ac_func;
16963 #endif
16964 #ifdef __cplusplus
16966 #endif
16969 main ()
16971 return f != $ac_func;
16973 return 0;
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978 (eval $ac_link) 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -s conftest$ac_exeext'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 eval "$as_ac_var=yes"
16989 else
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16993 eval "$as_ac_var=no"
16995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16999 if test `eval echo '${'$as_ac_var'}'` = yes; then
17000 cat >>confdefs.h <<_ACEOF
17001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17002 _ACEOF
17005 done
17007 else
17009 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
17010 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
17011 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
17012 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17018 ac_ext=cc
17019 ac_cpp='$CXXCPP $CPPFLAGS'
17020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17024 cat >conftest.$ac_ext <<_ACEOF
17025 #line $LINENO "configure"
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 #include <math.h>
17033 main ()
17035 _copysignl(0, 0);
17037 return 0;
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042 (eval $ac_compile) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -s conftest.$ac_objext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 glibcxx_cv_func__copysignl_use=yes
17053 else
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 glibcxx_cv_func__copysignl_use=no
17059 rm -f conftest.$ac_objext conftest.$ac_ext
17060 ac_ext=c
17061 ac_cpp='$CPP $CPPFLAGS'
17062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17070 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
17071 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
17073 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
17075 for ac_func in _copysignl
17077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17078 echo "$as_me:$LINENO: checking for $ac_func" >&5
17079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17080 if eval "test \"\${$as_ac_var+set}\" = set"; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083 if test x$gcc_no_link = xyes; then
17084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17086 { (exit 1); exit 1; }; }
17088 cat >conftest.$ac_ext <<_ACEOF
17089 #line $LINENO "configure"
17090 /* confdefs.h. */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 /* System header to define __stub macros and hopefully few prototypes,
17096 which can conflict with char $ac_func (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
17099 #ifdef __STDC__
17100 # include <limits.h>
17101 #else
17102 # include <assert.h>
17103 #endif
17104 /* Override any gcc2 internal prototype to avoid an error. */
17105 #ifdef __cplusplus
17106 extern "C"
17108 #endif
17109 /* We use char because int might match the return type of a gcc2
17110 builtin and then its argument prototype would still apply. */
17111 char $ac_func ();
17112 /* The GNU C library defines this for functions which it implements
17113 to always fail with ENOSYS. Some functions are actually named
17114 something starting with __ and the normal name is an alias. */
17115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17116 choke me
17117 #else
17118 char (*f) () = $ac_func;
17119 #endif
17120 #ifdef __cplusplus
17122 #endif
17125 main ()
17127 return f != $ac_func;
17129 return 0;
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 eval "$as_ac_var=yes"
17145 else
17146 echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17149 eval "$as_ac_var=no"
17151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17155 if test `eval echo '${'$as_ac_var'}'` = yes; then
17156 cat >>confdefs.h <<_ACEOF
17157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17158 _ACEOF
17161 done
17168 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
17169 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
17170 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
17171 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17177 ac_ext=cc
17178 ac_cpp='$CXXCPP $CPPFLAGS'
17179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17183 cat >conftest.$ac_ext <<_ACEOF
17184 #line $LINENO "configure"
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 #include <math.h>
17192 main ()
17194 atan2l(0, 0);
17196 return 0;
17198 _ACEOF
17199 rm -f conftest.$ac_objext
17200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17201 (eval $ac_compile) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -s conftest.$ac_objext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 glibcxx_cv_func_atan2l_use=yes
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 glibcxx_cv_func_atan2l_use=no
17218 rm -f conftest.$ac_objext conftest.$ac_ext
17219 ac_ext=c
17220 ac_cpp='$CPP $CPPFLAGS'
17221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17229 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
17230 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
17232 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17234 for ac_func in atan2l
17236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17237 echo "$as_me:$LINENO: checking for $ac_func" >&5
17238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17239 if eval "test \"\${$as_ac_var+set}\" = set"; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242 if test x$gcc_no_link = xyes; then
17243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17245 { (exit 1); exit 1; }; }
17247 cat >conftest.$ac_ext <<_ACEOF
17248 #line $LINENO "configure"
17249 /* confdefs.h. */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 /* System header to define __stub macros and hopefully few prototypes,
17255 which can conflict with char $ac_func (); below.
17256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17257 <limits.h> exists even on freestanding compilers. */
17258 #ifdef __STDC__
17259 # include <limits.h>
17260 #else
17261 # include <assert.h>
17262 #endif
17263 /* Override any gcc2 internal prototype to avoid an error. */
17264 #ifdef __cplusplus
17265 extern "C"
17267 #endif
17268 /* We use char because int might match the return type of a gcc2
17269 builtin and then its argument prototype would still apply. */
17270 char $ac_func ();
17271 /* The GNU C library defines this for functions which it implements
17272 to always fail with ENOSYS. Some functions are actually named
17273 something starting with __ and the normal name is an alias. */
17274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17275 choke me
17276 #else
17277 char (*f) () = $ac_func;
17278 #endif
17279 #ifdef __cplusplus
17281 #endif
17284 main ()
17286 return f != $ac_func;
17288 return 0;
17290 _ACEOF
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293 (eval $ac_link) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
17297 { ac_try='test -s conftest$ac_exeext'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 eval "$as_ac_var=yes"
17304 else
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 eval "$as_ac_var=no"
17310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17314 if test `eval echo '${'$as_ac_var'}'` = yes; then
17315 cat >>confdefs.h <<_ACEOF
17316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17317 _ACEOF
17320 done
17322 else
17324 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
17325 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
17326 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17327 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 else
17333 ac_ext=cc
17334 ac_cpp='$CXXCPP $CPPFLAGS'
17335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <math.h>
17348 main ()
17350 _atan2l(0, 0);
17352 return 0;
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 glibcxx_cv_func__atan2l_use=yes
17368 else
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 glibcxx_cv_func__atan2l_use=no
17374 rm -f conftest.$ac_objext conftest.$ac_ext
17375 ac_ext=c
17376 ac_cpp='$CPP $CPPFLAGS'
17377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17385 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17386 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17388 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17390 for ac_func in _atan2l
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17395 if eval "test \"\${$as_ac_var+set}\" = set"; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 if test x$gcc_no_link = xyes; then
17399 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17401 { (exit 1); exit 1; }; }
17403 cat >conftest.$ac_ext <<_ACEOF
17404 #line $LINENO "configure"
17405 /* confdefs.h. */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 /* System header to define __stub macros and hopefully few prototypes,
17411 which can conflict with char $ac_func (); below.
17412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17413 <limits.h> exists even on freestanding compilers. */
17414 #ifdef __STDC__
17415 # include <limits.h>
17416 #else
17417 # include <assert.h>
17418 #endif
17419 /* Override any gcc2 internal prototype to avoid an error. */
17420 #ifdef __cplusplus
17421 extern "C"
17423 #endif
17424 /* We use char because int might match the return type of a gcc2
17425 builtin and then its argument prototype would still apply. */
17426 char $ac_func ();
17427 /* The GNU C library defines this for functions which it implements
17428 to always fail with ENOSYS. Some functions are actually named
17429 something starting with __ and the normal name is an alias. */
17430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17431 choke me
17432 #else
17433 char (*f) () = $ac_func;
17434 #endif
17435 #ifdef __cplusplus
17437 #endif
17440 main ()
17442 return f != $ac_func;
17444 return 0;
17446 _ACEOF
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449 (eval $ac_link) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 eval "$as_ac_var=yes"
17460 else
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 eval "$as_ac_var=no"
17466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17470 if test `eval echo '${'$as_ac_var'}'` = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17473 _ACEOF
17476 done
17483 echo "$as_me:$LINENO: checking for expl declaration" >&5
17484 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17485 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17486 if test "${glibcxx_cv_func_expl_use+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17492 ac_ext=cc
17493 ac_cpp='$CXXCPP $CPPFLAGS'
17494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17498 cat >conftest.$ac_ext <<_ACEOF
17499 #line $LINENO "configure"
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 #include <math.h>
17506 #ifdef HAVE_IEEEFP_H
17507 #include <ieeefp.h>
17508 #endif
17511 main ()
17513 expl(0);
17515 return 0;
17517 _ACEOF
17518 rm -f conftest.$ac_objext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520 (eval $ac_compile) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 glibcxx_cv_func_expl_use=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 glibcxx_cv_func_expl_use=no
17537 rm -f conftest.$ac_objext conftest.$ac_ext
17538 ac_ext=c
17539 ac_cpp='$CPP $CPPFLAGS'
17540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17548 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17549 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17551 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17553 for ac_func in expl
17555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17556 echo "$as_me:$LINENO: checking for $ac_func" >&5
17557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17558 if eval "test \"\${$as_ac_var+set}\" = set"; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561 if test x$gcc_no_link = xyes; then
17562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17564 { (exit 1); exit 1; }; }
17566 cat >conftest.$ac_ext <<_ACEOF
17567 #line $LINENO "configure"
17568 /* confdefs.h. */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 /* System header to define __stub macros and hopefully few prototypes,
17574 which can conflict with char $ac_func (); below.
17575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17576 <limits.h> exists even on freestanding compilers. */
17577 #ifdef __STDC__
17578 # include <limits.h>
17579 #else
17580 # include <assert.h>
17581 #endif
17582 /* Override any gcc2 internal prototype to avoid an error. */
17583 #ifdef __cplusplus
17584 extern "C"
17586 #endif
17587 /* We use char because int might match the return type of a gcc2
17588 builtin and then its argument prototype would still apply. */
17589 char $ac_func ();
17590 /* The GNU C library defines this for functions which it implements
17591 to always fail with ENOSYS. Some functions are actually named
17592 something starting with __ and the normal name is an alias. */
17593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17594 choke me
17595 #else
17596 char (*f) () = $ac_func;
17597 #endif
17598 #ifdef __cplusplus
17600 #endif
17603 main ()
17605 return f != $ac_func;
17607 return 0;
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612 (eval $ac_link) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 eval "$as_ac_var=yes"
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 eval "$as_ac_var=no"
17629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17633 if test `eval echo '${'$as_ac_var'}'` = yes; then
17634 cat >>confdefs.h <<_ACEOF
17635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17636 _ACEOF
17639 done
17641 else
17643 echo "$as_me:$LINENO: checking for _expl declaration" >&5
17644 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17645 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17646 if test "${glibcxx_cv_func__expl_use+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17652 ac_ext=cc
17653 ac_cpp='$CXXCPP $CPPFLAGS'
17654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17658 cat >conftest.$ac_ext <<_ACEOF
17659 #line $LINENO "configure"
17660 /* confdefs.h. */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 #include <math.h>
17666 #ifdef HAVE_IEEEFP_H
17667 #include <ieeefp.h>
17668 #endif
17671 main ()
17673 _expl(0);
17675 return 0;
17677 _ACEOF
17678 rm -f conftest.$ac_objext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17680 (eval $ac_compile) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 glibcxx_cv_func__expl_use=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 glibcxx_cv_func__expl_use=no
17697 rm -f conftest.$ac_objext conftest.$ac_ext
17698 ac_ext=c
17699 ac_cpp='$CPP $CPPFLAGS'
17700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17708 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17709 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17711 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17713 for ac_func in _expl
17715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17716 echo "$as_me:$LINENO: checking for $ac_func" >&5
17717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17718 if eval "test \"\${$as_ac_var+set}\" = set"; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721 if test x$gcc_no_link = xyes; then
17722 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17723 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17724 { (exit 1); exit 1; }; }
17726 cat >conftest.$ac_ext <<_ACEOF
17727 #line $LINENO "configure"
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 /* System header to define __stub macros and hopefully few prototypes,
17734 which can conflict with char $ac_func (); below.
17735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17736 <limits.h> exists even on freestanding compilers. */
17737 #ifdef __STDC__
17738 # include <limits.h>
17739 #else
17740 # include <assert.h>
17741 #endif
17742 /* Override any gcc2 internal prototype to avoid an error. */
17743 #ifdef __cplusplus
17744 extern "C"
17746 #endif
17747 /* We use char because int might match the return type of a gcc2
17748 builtin and then its argument prototype would still apply. */
17749 char $ac_func ();
17750 /* The GNU C library defines this for functions which it implements
17751 to always fail with ENOSYS. Some functions are actually named
17752 something starting with __ and the normal name is an alias. */
17753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17754 choke me
17755 #else
17756 char (*f) () = $ac_func;
17757 #endif
17758 #ifdef __cplusplus
17760 #endif
17763 main ()
17765 return f != $ac_func;
17767 return 0;
17769 _ACEOF
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772 (eval $ac_link) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -s conftest$ac_exeext'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 eval "$as_ac_var=yes"
17783 else
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 eval "$as_ac_var=no"
17789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17793 if test `eval echo '${'$as_ac_var'}'` = yes; then
17794 cat >>confdefs.h <<_ACEOF
17795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17796 _ACEOF
17799 done
17806 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17807 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17808 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17809 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17815 ac_ext=cc
17816 ac_cpp='$CXXCPP $CPPFLAGS'
17817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17821 cat >conftest.$ac_ext <<_ACEOF
17822 #line $LINENO "configure"
17823 /* confdefs.h. */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 #include <math.h>
17829 #ifdef HAVE_IEEEFP_H
17830 #include <ieeefp.h>
17831 #endif
17834 main ()
17836 fabsl(0);
17838 return 0;
17840 _ACEOF
17841 rm -f conftest.$ac_objext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -s conftest.$ac_objext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 glibcxx_cv_func_fabsl_use=yes
17854 else
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17858 glibcxx_cv_func_fabsl_use=no
17860 rm -f conftest.$ac_objext conftest.$ac_ext
17861 ac_ext=c
17862 ac_cpp='$CPP $CPPFLAGS'
17863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17871 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17872 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17874 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17876 for ac_func in fabsl
17878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17879 echo "$as_me:$LINENO: checking for $ac_func" >&5
17880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17881 if eval "test \"\${$as_ac_var+set}\" = set"; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884 if test x$gcc_no_link = xyes; then
17885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17887 { (exit 1); exit 1; }; }
17889 cat >conftest.$ac_ext <<_ACEOF
17890 #line $LINENO "configure"
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 /* System header to define __stub macros and hopefully few prototypes,
17897 which can conflict with char $ac_func (); below.
17898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17899 <limits.h> exists even on freestanding compilers. */
17900 #ifdef __STDC__
17901 # include <limits.h>
17902 #else
17903 # include <assert.h>
17904 #endif
17905 /* Override any gcc2 internal prototype to avoid an error. */
17906 #ifdef __cplusplus
17907 extern "C"
17909 #endif
17910 /* We use char because int might match the return type of a gcc2
17911 builtin and then its argument prototype would still apply. */
17912 char $ac_func ();
17913 /* The GNU C library defines this for functions which it implements
17914 to always fail with ENOSYS. Some functions are actually named
17915 something starting with __ and the normal name is an alias. */
17916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17917 choke me
17918 #else
17919 char (*f) () = $ac_func;
17920 #endif
17921 #ifdef __cplusplus
17923 #endif
17926 main ()
17928 return f != $ac_func;
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935 (eval $ac_link) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17945 eval "$as_ac_var=yes"
17946 else
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 eval "$as_ac_var=no"
17952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17956 if test `eval echo '${'$as_ac_var'}'` = yes; then
17957 cat >>confdefs.h <<_ACEOF
17958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17959 _ACEOF
17962 done
17964 else
17966 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17967 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17968 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17969 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17975 ac_ext=cc
17976 ac_cpp='$CXXCPP $CPPFLAGS'
17977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17981 cat >conftest.$ac_ext <<_ACEOF
17982 #line $LINENO "configure"
17983 /* confdefs.h. */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 #include <math.h>
17989 #ifdef HAVE_IEEEFP_H
17990 #include <ieeefp.h>
17991 #endif
17994 main ()
17996 _fabsl(0);
17998 return 0;
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18003 (eval $ac_compile) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -s conftest.$ac_objext'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 glibcxx_cv_func__fabsl_use=yes
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 glibcxx_cv_func__fabsl_use=no
18020 rm -f conftest.$ac_objext conftest.$ac_ext
18021 ac_ext=c
18022 ac_cpp='$CPP $CPPFLAGS'
18023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
18032 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
18034 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
18036 for ac_func in _fabsl
18038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18039 echo "$as_me:$LINENO: checking for $ac_func" >&5
18040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18041 if eval "test \"\${$as_ac_var+set}\" = set"; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044 if test x$gcc_no_link = xyes; then
18045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18047 { (exit 1); exit 1; }; }
18049 cat >conftest.$ac_ext <<_ACEOF
18050 #line $LINENO "configure"
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 /* System header to define __stub macros and hopefully few prototypes,
18057 which can conflict with char $ac_func (); below.
18058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18059 <limits.h> exists even on freestanding compilers. */
18060 #ifdef __STDC__
18061 # include <limits.h>
18062 #else
18063 # include <assert.h>
18064 #endif
18065 /* Override any gcc2 internal prototype to avoid an error. */
18066 #ifdef __cplusplus
18067 extern "C"
18069 #endif
18070 /* We use char because int might match the return type of a gcc2
18071 builtin and then its argument prototype would still apply. */
18072 char $ac_func ();
18073 /* The GNU C library defines this for functions which it implements
18074 to always fail with ENOSYS. Some functions are actually named
18075 something starting with __ and the normal name is an alias. */
18076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18077 choke me
18078 #else
18079 char (*f) () = $ac_func;
18080 #endif
18081 #ifdef __cplusplus
18083 #endif
18086 main ()
18088 return f != $ac_func;
18090 return 0;
18092 _ACEOF
18093 rm -f conftest.$ac_objext conftest$ac_exeext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18095 (eval $ac_link) 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -s conftest$ac_exeext'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18102 ac_status=$?
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18105 eval "$as_ac_var=yes"
18106 else
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 eval "$as_ac_var=no"
18112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18116 if test `eval echo '${'$as_ac_var'}'` = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18119 _ACEOF
18122 done
18129 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
18130 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
18131 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
18132 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 else
18138 ac_ext=cc
18139 ac_cpp='$CXXCPP $CPPFLAGS'
18140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18144 cat >conftest.$ac_ext <<_ACEOF
18145 #line $LINENO "configure"
18146 /* confdefs.h. */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 #include <math.h>
18153 main ()
18155 fmodl(0, 0);
18157 return 0;
18159 _ACEOF
18160 rm -f conftest.$ac_objext
18161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18162 (eval $ac_compile) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -s conftest.$ac_objext'
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; }; then
18172 glibcxx_cv_func_fmodl_use=yes
18173 else
18174 echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18177 glibcxx_cv_func_fmodl_use=no
18179 rm -f conftest.$ac_objext conftest.$ac_ext
18180 ac_ext=c
18181 ac_cpp='$CPP $CPPFLAGS'
18182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
18191 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
18193 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
18195 for ac_func in fmodl
18197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18198 echo "$as_me:$LINENO: checking for $ac_func" >&5
18199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18200 if eval "test \"\${$as_ac_var+set}\" = set"; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 else
18203 if test x$gcc_no_link = xyes; then
18204 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18206 { (exit 1); exit 1; }; }
18208 cat >conftest.$ac_ext <<_ACEOF
18209 #line $LINENO "configure"
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* System header to define __stub macros and hopefully few prototypes,
18216 which can conflict with char $ac_func (); below.
18217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18218 <limits.h> exists even on freestanding compilers. */
18219 #ifdef __STDC__
18220 # include <limits.h>
18221 #else
18222 # include <assert.h>
18223 #endif
18224 /* Override any gcc2 internal prototype to avoid an error. */
18225 #ifdef __cplusplus
18226 extern "C"
18228 #endif
18229 /* We use char because int might match the return type of a gcc2
18230 builtin and then its argument prototype would still apply. */
18231 char $ac_func ();
18232 /* The GNU C library defines this for functions which it implements
18233 to always fail with ENOSYS. Some functions are actually named
18234 something starting with __ and the normal name is an alias. */
18235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18236 choke me
18237 #else
18238 char (*f) () = $ac_func;
18239 #endif
18240 #ifdef __cplusplus
18242 #endif
18245 main ()
18247 return f != $ac_func;
18249 return 0;
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254 (eval $ac_link) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
18258 { ac_try='test -s conftest$ac_exeext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 eval "$as_ac_var=yes"
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 eval "$as_ac_var=no"
18271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18275 if test `eval echo '${'$as_ac_var'}'` = yes; then
18276 cat >>confdefs.h <<_ACEOF
18277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18278 _ACEOF
18281 done
18283 else
18285 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
18286 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
18287 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
18288 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18294 ac_ext=cc
18295 ac_cpp='$CXXCPP $CPPFLAGS'
18296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18300 cat >conftest.$ac_ext <<_ACEOF
18301 #line $LINENO "configure"
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #include <math.h>
18309 main ()
18311 _fmodl(0, 0);
18313 return 0;
18315 _ACEOF
18316 rm -f conftest.$ac_objext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18318 (eval $ac_compile) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } &&
18322 { ac_try='test -s conftest.$ac_objext'
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 glibcxx_cv_func__fmodl_use=yes
18329 else
18330 echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 glibcxx_cv_func__fmodl_use=no
18335 rm -f conftest.$ac_objext conftest.$ac_ext
18336 ac_ext=c
18337 ac_cpp='$CPP $CPPFLAGS'
18338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18346 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
18347 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
18349 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
18351 for ac_func in _fmodl
18353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18354 echo "$as_me:$LINENO: checking for $ac_func" >&5
18355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18356 if eval "test \"\${$as_ac_var+set}\" = set"; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 else
18359 if test x$gcc_no_link = xyes; then
18360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18362 { (exit 1); exit 1; }; }
18364 cat >conftest.$ac_ext <<_ACEOF
18365 #line $LINENO "configure"
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 /* System header to define __stub macros and hopefully few prototypes,
18372 which can conflict with char $ac_func (); below.
18373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18374 <limits.h> exists even on freestanding compilers. */
18375 #ifdef __STDC__
18376 # include <limits.h>
18377 #else
18378 # include <assert.h>
18379 #endif
18380 /* Override any gcc2 internal prototype to avoid an error. */
18381 #ifdef __cplusplus
18382 extern "C"
18384 #endif
18385 /* We use char because int might match the return type of a gcc2
18386 builtin and then its argument prototype would still apply. */
18387 char $ac_func ();
18388 /* The GNU C library defines this for functions which it implements
18389 to always fail with ENOSYS. Some functions are actually named
18390 something starting with __ and the normal name is an alias. */
18391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18392 choke me
18393 #else
18394 char (*f) () = $ac_func;
18395 #endif
18396 #ifdef __cplusplus
18398 #endif
18401 main ()
18403 return f != $ac_func;
18405 return 0;
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410 (eval $ac_link) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
18414 { ac_try='test -s conftest$ac_exeext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 eval "$as_ac_var=yes"
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 eval "$as_ac_var=no"
18427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18431 if test `eval echo '${'$as_ac_var'}'` = yes; then
18432 cat >>confdefs.h <<_ACEOF
18433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18434 _ACEOF
18437 done
18444 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18445 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18446 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18447 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18453 ac_ext=cc
18454 ac_cpp='$CXXCPP $CPPFLAGS'
18455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18459 cat >conftest.$ac_ext <<_ACEOF
18460 #line $LINENO "configure"
18461 /* confdefs.h. */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466 #include <math.h>
18468 main ()
18470 frexpl(0, 0);
18472 return 0;
18474 _ACEOF
18475 rm -f conftest.$ac_objext
18476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18477 (eval $ac_compile) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
18481 { ac_try='test -s conftest.$ac_objext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 glibcxx_cv_func_frexpl_use=yes
18488 else
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 glibcxx_cv_func_frexpl_use=no
18494 rm -f conftest.$ac_objext conftest.$ac_ext
18495 ac_ext=c
18496 ac_cpp='$CPP $CPPFLAGS'
18497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18505 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18506 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18508 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18510 for ac_func in frexpl
18512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18513 echo "$as_me:$LINENO: checking for $ac_func" >&5
18514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18515 if eval "test \"\${$as_ac_var+set}\" = set"; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518 if test x$gcc_no_link = xyes; then
18519 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18520 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18521 { (exit 1); exit 1; }; }
18523 cat >conftest.$ac_ext <<_ACEOF
18524 #line $LINENO "configure"
18525 /* confdefs.h. */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 /* System header to define __stub macros and hopefully few prototypes,
18531 which can conflict with char $ac_func (); below.
18532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18533 <limits.h> exists even on freestanding compilers. */
18534 #ifdef __STDC__
18535 # include <limits.h>
18536 #else
18537 # include <assert.h>
18538 #endif
18539 /* Override any gcc2 internal prototype to avoid an error. */
18540 #ifdef __cplusplus
18541 extern "C"
18543 #endif
18544 /* We use char because int might match the return type of a gcc2
18545 builtin and then its argument prototype would still apply. */
18546 char $ac_func ();
18547 /* The GNU C library defines this for functions which it implements
18548 to always fail with ENOSYS. Some functions are actually named
18549 something starting with __ and the normal name is an alias. */
18550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18551 choke me
18552 #else
18553 char (*f) () = $ac_func;
18554 #endif
18555 #ifdef __cplusplus
18557 #endif
18560 main ()
18562 return f != $ac_func;
18564 return 0;
18566 _ACEOF
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18569 (eval $ac_link) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
18573 { ac_try='test -s conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 eval "$as_ac_var=yes"
18580 else
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18584 eval "$as_ac_var=no"
18586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18590 if test `eval echo '${'$as_ac_var'}'` = yes; then
18591 cat >>confdefs.h <<_ACEOF
18592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18593 _ACEOF
18596 done
18598 else
18600 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18601 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18602 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18603 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 else
18609 ac_ext=cc
18610 ac_cpp='$CXXCPP $CPPFLAGS'
18611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18615 cat >conftest.$ac_ext <<_ACEOF
18616 #line $LINENO "configure"
18617 /* confdefs.h. */
18618 _ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h. */
18622 #include <math.h>
18624 main ()
18626 _frexpl(0, 0);
18628 return 0;
18630 _ACEOF
18631 rm -f conftest.$ac_objext
18632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18633 (eval $ac_compile) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -s conftest.$ac_objext'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 glibcxx_cv_func__frexpl_use=yes
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 glibcxx_cv_func__frexpl_use=no
18650 rm -f conftest.$ac_objext conftest.$ac_ext
18651 ac_ext=c
18652 ac_cpp='$CPP $CPPFLAGS'
18653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18661 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18662 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18664 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18666 for ac_func in _frexpl
18668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18669 echo "$as_me:$LINENO: checking for $ac_func" >&5
18670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18671 if eval "test \"\${$as_ac_var+set}\" = set"; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 else
18674 if test x$gcc_no_link = xyes; then
18675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18677 { (exit 1); exit 1; }; }
18679 cat >conftest.$ac_ext <<_ACEOF
18680 #line $LINENO "configure"
18681 /* confdefs.h. */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 /* System header to define __stub macros and hopefully few prototypes,
18687 which can conflict with char $ac_func (); below.
18688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18689 <limits.h> exists even on freestanding compilers. */
18690 #ifdef __STDC__
18691 # include <limits.h>
18692 #else
18693 # include <assert.h>
18694 #endif
18695 /* Override any gcc2 internal prototype to avoid an error. */
18696 #ifdef __cplusplus
18697 extern "C"
18699 #endif
18700 /* We use char because int might match the return type of a gcc2
18701 builtin and then its argument prototype would still apply. */
18702 char $ac_func ();
18703 /* The GNU C library defines this for functions which it implements
18704 to always fail with ENOSYS. Some functions are actually named
18705 something starting with __ and the normal name is an alias. */
18706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18707 choke me
18708 #else
18709 char (*f) () = $ac_func;
18710 #endif
18711 #ifdef __cplusplus
18713 #endif
18716 main ()
18718 return f != $ac_func;
18720 return 0;
18722 _ACEOF
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -s conftest$ac_exeext'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 eval "$as_ac_var=yes"
18736 else
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 eval "$as_ac_var=no"
18742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18746 if test `eval echo '${'$as_ac_var'}'` = yes; then
18747 cat >>confdefs.h <<_ACEOF
18748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18749 _ACEOF
18752 done
18759 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18760 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18761 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18762 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18768 ac_ext=cc
18769 ac_cpp='$CXXCPP $CPPFLAGS'
18770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18774 cat >conftest.$ac_ext <<_ACEOF
18775 #line $LINENO "configure"
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <math.h>
18783 main ()
18785 hypotl(0, 0);
18787 return 0;
18789 _ACEOF
18790 rm -f conftest.$ac_objext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18792 (eval $ac_compile) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -s conftest.$ac_objext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 glibcxx_cv_func_hypotl_use=yes
18803 else
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 glibcxx_cv_func_hypotl_use=no
18809 rm -f conftest.$ac_objext conftest.$ac_ext
18810 ac_ext=c
18811 ac_cpp='$CPP $CPPFLAGS'
18812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18820 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18821 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18823 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18825 for ac_func in hypotl
18827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18828 echo "$as_me:$LINENO: checking for $ac_func" >&5
18829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18830 if eval "test \"\${$as_ac_var+set}\" = set"; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 else
18833 if test x$gcc_no_link = xyes; then
18834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18835 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18836 { (exit 1); exit 1; }; }
18838 cat >conftest.$ac_ext <<_ACEOF
18839 #line $LINENO "configure"
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 /* System header to define __stub macros and hopefully few prototypes,
18846 which can conflict with char $ac_func (); below.
18847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18848 <limits.h> exists even on freestanding compilers. */
18849 #ifdef __STDC__
18850 # include <limits.h>
18851 #else
18852 # include <assert.h>
18853 #endif
18854 /* Override any gcc2 internal prototype to avoid an error. */
18855 #ifdef __cplusplus
18856 extern "C"
18858 #endif
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18861 char $ac_func ();
18862 /* The GNU C library defines this for functions which it implements
18863 to always fail with ENOSYS. Some functions are actually named
18864 something starting with __ and the normal name is an alias. */
18865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18866 choke me
18867 #else
18868 char (*f) () = $ac_func;
18869 #endif
18870 #ifdef __cplusplus
18872 #endif
18875 main ()
18877 return f != $ac_func;
18879 return 0;
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884 (eval $ac_link) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 eval "$as_ac_var=yes"
18895 else
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 eval "$as_ac_var=no"
18901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18905 if test `eval echo '${'$as_ac_var'}'` = yes; then
18906 cat >>confdefs.h <<_ACEOF
18907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18908 _ACEOF
18911 done
18913 else
18915 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18916 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18917 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18918 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18924 ac_ext=cc
18925 ac_cpp='$CXXCPP $CPPFLAGS'
18926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18930 cat >conftest.$ac_ext <<_ACEOF
18931 #line $LINENO "configure"
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #include <math.h>
18939 main ()
18941 _hypotl(0, 0);
18943 return 0;
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -s conftest.$ac_objext'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958 glibcxx_cv_func__hypotl_use=yes
18959 else
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 glibcxx_cv_func__hypotl_use=no
18965 rm -f conftest.$ac_objext conftest.$ac_ext
18966 ac_ext=c
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18976 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18977 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18979 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18981 for ac_func in _hypotl
18983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18984 echo "$as_me:$LINENO: checking for $ac_func" >&5
18985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18986 if eval "test \"\${$as_ac_var+set}\" = set"; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 else
18989 if test x$gcc_no_link = xyes; then
18990 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18992 { (exit 1); exit 1; }; }
18994 cat >conftest.$ac_ext <<_ACEOF
18995 #line $LINENO "configure"
18996 /* confdefs.h. */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 /* System header to define __stub macros and hopefully few prototypes,
19002 which can conflict with char $ac_func (); below.
19003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004 <limits.h> exists even on freestanding compilers. */
19005 #ifdef __STDC__
19006 # include <limits.h>
19007 #else
19008 # include <assert.h>
19009 #endif
19010 /* Override any gcc2 internal prototype to avoid an error. */
19011 #ifdef __cplusplus
19012 extern "C"
19014 #endif
19015 /* We use char because int might match the return type of a gcc2
19016 builtin and then its argument prototype would still apply. */
19017 char $ac_func ();
19018 /* The GNU C library defines this for functions which it implements
19019 to always fail with ENOSYS. Some functions are actually named
19020 something starting with __ and the normal name is an alias. */
19021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19022 choke me
19023 #else
19024 char (*f) () = $ac_func;
19025 #endif
19026 #ifdef __cplusplus
19028 #endif
19031 main ()
19033 return f != $ac_func;
19035 return 0;
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040 (eval $ac_link) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -s conftest$ac_exeext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 eval "$as_ac_var=yes"
19051 else
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 eval "$as_ac_var=no"
19057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19061 if test `eval echo '${'$as_ac_var'}'` = yes; then
19062 cat >>confdefs.h <<_ACEOF
19063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19064 _ACEOF
19067 done
19074 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
19075 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
19076 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
19077 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19083 ac_ext=cc
19084 ac_cpp='$CXXCPP $CPPFLAGS'
19085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19089 cat >conftest.$ac_ext <<_ACEOF
19090 #line $LINENO "configure"
19091 /* confdefs.h. */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 #include <math.h>
19098 main ()
19100 ldexpl(0, 0);
19102 return 0;
19104 _ACEOF
19105 rm -f conftest.$ac_objext
19106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19107 (eval $ac_compile) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } &&
19111 { ac_try='test -s conftest.$ac_objext'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; }; then
19117 glibcxx_cv_func_ldexpl_use=yes
19118 else
19119 echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19122 glibcxx_cv_func_ldexpl_use=no
19124 rm -f conftest.$ac_objext conftest.$ac_ext
19125 ac_ext=c
19126 ac_cpp='$CPP $CPPFLAGS'
19127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19135 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
19136 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
19138 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
19140 for ac_func in ldexpl
19142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19143 echo "$as_me:$LINENO: checking for $ac_func" >&5
19144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19145 if eval "test \"\${$as_ac_var+set}\" = set"; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148 if test x$gcc_no_link = xyes; then
19149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19151 { (exit 1); exit 1; }; }
19153 cat >conftest.$ac_ext <<_ACEOF
19154 #line $LINENO "configure"
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 /* System header to define __stub macros and hopefully few prototypes,
19161 which can conflict with char $ac_func (); below.
19162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19163 <limits.h> exists even on freestanding compilers. */
19164 #ifdef __STDC__
19165 # include <limits.h>
19166 #else
19167 # include <assert.h>
19168 #endif
19169 /* Override any gcc2 internal prototype to avoid an error. */
19170 #ifdef __cplusplus
19171 extern "C"
19173 #endif
19174 /* We use char because int might match the return type of a gcc2
19175 builtin and then its argument prototype would still apply. */
19176 char $ac_func ();
19177 /* The GNU C library defines this for functions which it implements
19178 to always fail with ENOSYS. Some functions are actually named
19179 something starting with __ and the normal name is an alias. */
19180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19181 choke me
19182 #else
19183 char (*f) () = $ac_func;
19184 #endif
19185 #ifdef __cplusplus
19187 #endif
19190 main ()
19192 return f != $ac_func;
19194 return 0;
19196 _ACEOF
19197 rm -f conftest.$ac_objext conftest$ac_exeext
19198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19199 (eval $ac_link) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 eval "$as_ac_var=yes"
19210 else
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 eval "$as_ac_var=no"
19216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19220 if test `eval echo '${'$as_ac_var'}'` = yes; then
19221 cat >>confdefs.h <<_ACEOF
19222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19223 _ACEOF
19226 done
19228 else
19230 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
19231 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
19232 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
19233 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19239 ac_ext=cc
19240 ac_cpp='$CXXCPP $CPPFLAGS'
19241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19245 cat >conftest.$ac_ext <<_ACEOF
19246 #line $LINENO "configure"
19247 /* confdefs.h. */
19248 _ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 #include <math.h>
19254 main ()
19256 _ldexpl(0, 0);
19258 return 0;
19260 _ACEOF
19261 rm -f conftest.$ac_objext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19263 (eval $ac_compile) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -s conftest.$ac_objext'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
19273 glibcxx_cv_func__ldexpl_use=yes
19274 else
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 glibcxx_cv_func__ldexpl_use=no
19280 rm -f conftest.$ac_objext conftest.$ac_ext
19281 ac_ext=c
19282 ac_cpp='$CPP $CPPFLAGS'
19283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19291 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
19292 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
19294 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
19296 for ac_func in _ldexpl
19298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19299 echo "$as_me:$LINENO: checking for $ac_func" >&5
19300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19301 if eval "test \"\${$as_ac_var+set}\" = set"; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304 if test x$gcc_no_link = xyes; then
19305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19307 { (exit 1); exit 1; }; }
19309 cat >conftest.$ac_ext <<_ACEOF
19310 #line $LINENO "configure"
19311 /* confdefs.h. */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 /* System header to define __stub macros and hopefully few prototypes,
19317 which can conflict with char $ac_func (); below.
19318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19319 <limits.h> exists even on freestanding compilers. */
19320 #ifdef __STDC__
19321 # include <limits.h>
19322 #else
19323 # include <assert.h>
19324 #endif
19325 /* Override any gcc2 internal prototype to avoid an error. */
19326 #ifdef __cplusplus
19327 extern "C"
19329 #endif
19330 /* We use char because int might match the return type of a gcc2
19331 builtin and then its argument prototype would still apply. */
19332 char $ac_func ();
19333 /* The GNU C library defines this for functions which it implements
19334 to always fail with ENOSYS. Some functions are actually named
19335 something starting with __ and the normal name is an alias. */
19336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19337 choke me
19338 #else
19339 char (*f) () = $ac_func;
19340 #endif
19341 #ifdef __cplusplus
19343 #endif
19346 main ()
19348 return f != $ac_func;
19350 return 0;
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355 (eval $ac_link) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -s conftest$ac_exeext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 eval "$as_ac_var=yes"
19366 else
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 eval "$as_ac_var=no"
19372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19376 if test `eval echo '${'$as_ac_var'}'` = yes; then
19377 cat >>confdefs.h <<_ACEOF
19378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19379 _ACEOF
19382 done
19389 echo "$as_me:$LINENO: checking for logl declaration" >&5
19390 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
19391 if test x${glibcxx_cv_func_logl_use+set} != xset; then
19392 if test "${glibcxx_cv_func_logl_use+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19398 ac_ext=cc
19399 ac_cpp='$CXXCPP $CPPFLAGS'
19400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19404 cat >conftest.$ac_ext <<_ACEOF
19405 #line $LINENO "configure"
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 #include <math.h>
19412 #ifdef HAVE_IEEEFP_H
19413 #include <ieeefp.h>
19414 #endif
19417 main ()
19419 logl(0);
19421 return 0;
19423 _ACEOF
19424 rm -f conftest.$ac_objext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426 (eval $ac_compile) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -s conftest.$ac_objext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 glibcxx_cv_func_logl_use=yes
19437 else
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 glibcxx_cv_func_logl_use=no
19443 rm -f conftest.$ac_objext conftest.$ac_ext
19444 ac_ext=c
19445 ac_cpp='$CPP $CPPFLAGS'
19446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19455 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19457 if test x$glibcxx_cv_func_logl_use = x"yes"; then
19459 for ac_func in logl
19461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19462 echo "$as_me:$LINENO: checking for $ac_func" >&5
19463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19464 if eval "test \"\${$as_ac_var+set}\" = set"; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467 if test x$gcc_no_link = xyes; then
19468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19470 { (exit 1); exit 1; }; }
19472 cat >conftest.$ac_ext <<_ACEOF
19473 #line $LINENO "configure"
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479 /* System header to define __stub macros and hopefully few prototypes,
19480 which can conflict with char $ac_func (); below.
19481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19482 <limits.h> exists even on freestanding compilers. */
19483 #ifdef __STDC__
19484 # include <limits.h>
19485 #else
19486 # include <assert.h>
19487 #endif
19488 /* Override any gcc2 internal prototype to avoid an error. */
19489 #ifdef __cplusplus
19490 extern "C"
19492 #endif
19493 /* We use char because int might match the return type of a gcc2
19494 builtin and then its argument prototype would still apply. */
19495 char $ac_func ();
19496 /* The GNU C library defines this for functions which it implements
19497 to always fail with ENOSYS. Some functions are actually named
19498 something starting with __ and the normal name is an alias. */
19499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19500 choke me
19501 #else
19502 char (*f) () = $ac_func;
19503 #endif
19504 #ifdef __cplusplus
19506 #endif
19509 main ()
19511 return f != $ac_func;
19513 return 0;
19515 _ACEOF
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19518 (eval $ac_link) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -s conftest$ac_exeext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 eval "$as_ac_var=yes"
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 eval "$as_ac_var=no"
19535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19539 if test `eval echo '${'$as_ac_var'}'` = yes; then
19540 cat >>confdefs.h <<_ACEOF
19541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19542 _ACEOF
19545 done
19547 else
19549 echo "$as_me:$LINENO: checking for _logl declaration" >&5
19550 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19551 if test x${glibcxx_cv_func__logl_use+set} != xset; then
19552 if test "${glibcxx_cv_func__logl_use+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19558 ac_ext=cc
19559 ac_cpp='$CXXCPP $CPPFLAGS'
19560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19564 cat >conftest.$ac_ext <<_ACEOF
19565 #line $LINENO "configure"
19566 /* confdefs.h. */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19571 #include <math.h>
19572 #ifdef HAVE_IEEEFP_H
19573 #include <ieeefp.h>
19574 #endif
19577 main ()
19579 _logl(0);
19581 return 0;
19583 _ACEOF
19584 rm -f conftest.$ac_objext
19585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19586 (eval $ac_compile) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 glibcxx_cv_func__logl_use=yes
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 glibcxx_cv_func__logl_use=no
19603 rm -f conftest.$ac_objext conftest.$ac_ext
19604 ac_ext=c
19605 ac_cpp='$CPP $CPPFLAGS'
19606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19614 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19615 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19617 if test x$glibcxx_cv_func__logl_use = x"yes"; then
19619 for ac_func in _logl
19621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19622 echo "$as_me:$LINENO: checking for $ac_func" >&5
19623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19624 if eval "test \"\${$as_ac_var+set}\" = set"; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627 if test x$gcc_no_link = xyes; then
19628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19630 { (exit 1); exit 1; }; }
19632 cat >conftest.$ac_ext <<_ACEOF
19633 #line $LINENO "configure"
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 /* System header to define __stub macros and hopefully few prototypes,
19640 which can conflict with char $ac_func (); below.
19641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642 <limits.h> exists even on freestanding compilers. */
19643 #ifdef __STDC__
19644 # include <limits.h>
19645 #else
19646 # include <assert.h>
19647 #endif
19648 /* Override any gcc2 internal prototype to avoid an error. */
19649 #ifdef __cplusplus
19650 extern "C"
19652 #endif
19653 /* We use char because int might match the return type of a gcc2
19654 builtin and then its argument prototype would still apply. */
19655 char $ac_func ();
19656 /* The GNU C library defines this for functions which it implements
19657 to always fail with ENOSYS. Some functions are actually named
19658 something starting with __ and the normal name is an alias. */
19659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19660 choke me
19661 #else
19662 char (*f) () = $ac_func;
19663 #endif
19664 #ifdef __cplusplus
19666 #endif
19669 main ()
19671 return f != $ac_func;
19673 return 0;
19675 _ACEOF
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try='test -s conftest$ac_exeext'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
19688 eval "$as_ac_var=yes"
19689 else
19690 echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19693 eval "$as_ac_var=no"
19695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19699 if test `eval echo '${'$as_ac_var'}'` = yes; then
19700 cat >>confdefs.h <<_ACEOF
19701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19702 _ACEOF
19705 done
19712 echo "$as_me:$LINENO: checking for log10l declaration" >&5
19713 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19714 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19715 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19721 ac_ext=cc
19722 ac_cpp='$CXXCPP $CPPFLAGS'
19723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19727 cat >conftest.$ac_ext <<_ACEOF
19728 #line $LINENO "configure"
19729 /* confdefs.h. */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19734 #include <math.h>
19735 #ifdef HAVE_IEEEFP_H
19736 #include <ieeefp.h>
19737 #endif
19740 main ()
19742 log10l(0);
19744 return 0;
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19749 (eval $ac_compile) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 glibcxx_cv_func_log10l_use=yes
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 glibcxx_cv_func_log10l_use=no
19766 rm -f conftest.$ac_objext conftest.$ac_ext
19767 ac_ext=c
19768 ac_cpp='$CPP $CPPFLAGS'
19769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19777 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19778 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19780 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19782 for ac_func in log10l
19784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19785 echo "$as_me:$LINENO: checking for $ac_func" >&5
19786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19787 if eval "test \"\${$as_ac_var+set}\" = set"; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790 if test x$gcc_no_link = xyes; then
19791 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19792 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19793 { (exit 1); exit 1; }; }
19795 cat >conftest.$ac_ext <<_ACEOF
19796 #line $LINENO "configure"
19797 /* confdefs.h. */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 /* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char $ac_func (); below.
19804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19805 <limits.h> exists even on freestanding compilers. */
19806 #ifdef __STDC__
19807 # include <limits.h>
19808 #else
19809 # include <assert.h>
19810 #endif
19811 /* Override any gcc2 internal prototype to avoid an error. */
19812 #ifdef __cplusplus
19813 extern "C"
19815 #endif
19816 /* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19818 char $ac_func ();
19819 /* The GNU C library defines this for functions which it implements
19820 to always fail with ENOSYS. Some functions are actually named
19821 something starting with __ and the normal name is an alias. */
19822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19823 choke me
19824 #else
19825 char (*f) () = $ac_func;
19826 #endif
19827 #ifdef __cplusplus
19829 #endif
19832 main ()
19834 return f != $ac_func;
19836 return 0;
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19841 (eval $ac_link) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } &&
19845 { ac_try='test -s conftest$ac_exeext'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; }; then
19851 eval "$as_ac_var=yes"
19852 else
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 eval "$as_ac_var=no"
19858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19862 if test `eval echo '${'$as_ac_var'}'` = yes; then
19863 cat >>confdefs.h <<_ACEOF
19864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19865 _ACEOF
19868 done
19870 else
19872 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19873 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19874 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19875 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19881 ac_ext=cc
19882 ac_cpp='$CXXCPP $CPPFLAGS'
19883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19887 cat >conftest.$ac_ext <<_ACEOF
19888 #line $LINENO "configure"
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 #include <math.h>
19895 #ifdef HAVE_IEEEFP_H
19896 #include <ieeefp.h>
19897 #endif
19900 main ()
19902 _log10l(0);
19904 return 0;
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909 (eval $ac_compile) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 glibcxx_cv_func__log10l_use=yes
19920 else
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 glibcxx_cv_func__log10l_use=no
19926 rm -f conftest.$ac_objext conftest.$ac_ext
19927 ac_ext=c
19928 ac_cpp='$CPP $CPPFLAGS'
19929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19937 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19938 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19940 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19942 for ac_func in _log10l
19944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19945 echo "$as_me:$LINENO: checking for $ac_func" >&5
19946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19947 if eval "test \"\${$as_ac_var+set}\" = set"; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19950 if test x$gcc_no_link = xyes; then
19951 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19953 { (exit 1); exit 1; }; }
19955 cat >conftest.$ac_ext <<_ACEOF
19956 #line $LINENO "configure"
19957 /* confdefs.h. */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 /* System header to define __stub macros and hopefully few prototypes,
19963 which can conflict with char $ac_func (); below.
19964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19965 <limits.h> exists even on freestanding compilers. */
19966 #ifdef __STDC__
19967 # include <limits.h>
19968 #else
19969 # include <assert.h>
19970 #endif
19971 /* Override any gcc2 internal prototype to avoid an error. */
19972 #ifdef __cplusplus
19973 extern "C"
19975 #endif
19976 /* We use char because int might match the return type of a gcc2
19977 builtin and then its argument prototype would still apply. */
19978 char $ac_func ();
19979 /* The GNU C library defines this for functions which it implements
19980 to always fail with ENOSYS. Some functions are actually named
19981 something starting with __ and the normal name is an alias. */
19982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19983 choke me
19984 #else
19985 char (*f) () = $ac_func;
19986 #endif
19987 #ifdef __cplusplus
19989 #endif
19992 main ()
19994 return f != $ac_func;
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } &&
20005 { ac_try='test -s conftest$ac_exeext'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 eval "$as_ac_var=yes"
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 eval "$as_ac_var=no"
20018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20022 if test `eval echo '${'$as_ac_var'}'` = yes; then
20023 cat >>confdefs.h <<_ACEOF
20024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20025 _ACEOF
20028 done
20035 echo "$as_me:$LINENO: checking for modfl declaration" >&5
20036 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
20037 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
20038 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
20039 echo $ECHO_N "(cached) $ECHO_C" >&6
20040 else
20044 ac_ext=cc
20045 ac_cpp='$CXXCPP $CPPFLAGS'
20046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20050 cat >conftest.$ac_ext <<_ACEOF
20051 #line $LINENO "configure"
20052 /* confdefs.h. */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 #include <math.h>
20059 main ()
20061 modfl(0, 0);
20063 return 0;
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -s conftest.$ac_objext'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 glibcxx_cv_func_modfl_use=yes
20079 else
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 glibcxx_cv_func_modfl_use=no
20085 rm -f conftest.$ac_objext conftest.$ac_ext
20086 ac_ext=c
20087 ac_cpp='$CPP $CPPFLAGS'
20088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20096 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
20097 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
20099 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
20101 for ac_func in modfl
20103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20104 echo "$as_me:$LINENO: checking for $ac_func" >&5
20105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20106 if eval "test \"\${$as_ac_var+set}\" = set"; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109 if test x$gcc_no_link = xyes; then
20110 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20112 { (exit 1); exit 1; }; }
20114 cat >conftest.$ac_ext <<_ACEOF
20115 #line $LINENO "configure"
20116 /* confdefs.h. */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 /* System header to define __stub macros and hopefully few prototypes,
20122 which can conflict with char $ac_func (); below.
20123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20124 <limits.h> exists even on freestanding compilers. */
20125 #ifdef __STDC__
20126 # include <limits.h>
20127 #else
20128 # include <assert.h>
20129 #endif
20130 /* Override any gcc2 internal prototype to avoid an error. */
20131 #ifdef __cplusplus
20132 extern "C"
20134 #endif
20135 /* We use char because int might match the return type of a gcc2
20136 builtin and then its argument prototype would still apply. */
20137 char $ac_func ();
20138 /* The GNU C library defines this for functions which it implements
20139 to always fail with ENOSYS. Some functions are actually named
20140 something starting with __ and the normal name is an alias. */
20141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20142 choke me
20143 #else
20144 char (*f) () = $ac_func;
20145 #endif
20146 #ifdef __cplusplus
20148 #endif
20151 main ()
20153 return f != $ac_func;
20155 return 0;
20157 _ACEOF
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20160 (eval $ac_link) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
20164 { ac_try='test -s conftest$ac_exeext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 eval "$as_ac_var=yes"
20171 else
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 eval "$as_ac_var=no"
20177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20181 if test `eval echo '${'$as_ac_var'}'` = yes; then
20182 cat >>confdefs.h <<_ACEOF
20183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20184 _ACEOF
20187 done
20189 else
20191 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
20192 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
20193 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
20194 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20200 ac_ext=cc
20201 ac_cpp='$CXXCPP $CPPFLAGS'
20202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20206 cat >conftest.$ac_ext <<_ACEOF
20207 #line $LINENO "configure"
20208 /* confdefs.h. */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 #include <math.h>
20215 main ()
20217 _modfl(0, 0);
20219 return 0;
20221 _ACEOF
20222 rm -f conftest.$ac_objext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 glibcxx_cv_func__modfl_use=yes
20235 else
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 glibcxx_cv_func__modfl_use=no
20241 rm -f conftest.$ac_objext conftest.$ac_ext
20242 ac_ext=c
20243 ac_cpp='$CPP $CPPFLAGS'
20244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20252 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
20253 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
20255 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
20257 for ac_func in _modfl
20259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20260 echo "$as_me:$LINENO: checking for $ac_func" >&5
20261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20262 if eval "test \"\${$as_ac_var+set}\" = set"; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265 if test x$gcc_no_link = xyes; then
20266 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20267 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20268 { (exit 1); exit 1; }; }
20270 cat >conftest.$ac_ext <<_ACEOF
20271 #line $LINENO "configure"
20272 /* confdefs.h. */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 /* System header to define __stub macros and hopefully few prototypes,
20278 which can conflict with char $ac_func (); below.
20279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20280 <limits.h> exists even on freestanding compilers. */
20281 #ifdef __STDC__
20282 # include <limits.h>
20283 #else
20284 # include <assert.h>
20285 #endif
20286 /* Override any gcc2 internal prototype to avoid an error. */
20287 #ifdef __cplusplus
20288 extern "C"
20290 #endif
20291 /* We use char because int might match the return type of a gcc2
20292 builtin and then its argument prototype would still apply. */
20293 char $ac_func ();
20294 /* The GNU C library defines this for functions which it implements
20295 to always fail with ENOSYS. Some functions are actually named
20296 something starting with __ and the normal name is an alias. */
20297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20298 choke me
20299 #else
20300 char (*f) () = $ac_func;
20301 #endif
20302 #ifdef __cplusplus
20304 #endif
20307 main ()
20309 return f != $ac_func;
20311 return 0;
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316 (eval $ac_link) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -s conftest$ac_exeext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 eval "$as_ac_var=yes"
20327 else
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 eval "$as_ac_var=no"
20333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20337 if test `eval echo '${'$as_ac_var'}'` = yes; then
20338 cat >>confdefs.h <<_ACEOF
20339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20340 _ACEOF
20343 done
20350 echo "$as_me:$LINENO: checking for powl declaration" >&5
20351 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
20352 if test x${glibcxx_cv_func_powl_use+set} != xset; then
20353 if test "${glibcxx_cv_func_powl_use+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20359 ac_ext=cc
20360 ac_cpp='$CXXCPP $CPPFLAGS'
20361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20365 cat >conftest.$ac_ext <<_ACEOF
20366 #line $LINENO "configure"
20367 /* confdefs.h. */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 #include <math.h>
20374 main ()
20376 powl(0, 0);
20378 return 0;
20380 _ACEOF
20381 rm -f conftest.$ac_objext
20382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20383 (eval $ac_compile) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
20387 { ac_try='test -s conftest.$ac_objext'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 glibcxx_cv_func_powl_use=yes
20394 else
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 glibcxx_cv_func_powl_use=no
20400 rm -f conftest.$ac_objext conftest.$ac_ext
20401 ac_ext=c
20402 ac_cpp='$CPP $CPPFLAGS'
20403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
20412 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
20414 if test x$glibcxx_cv_func_powl_use = x"yes"; then
20416 for ac_func in powl
20418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20419 echo "$as_me:$LINENO: checking for $ac_func" >&5
20420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20421 if eval "test \"\${$as_ac_var+set}\" = set"; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424 if test x$gcc_no_link = xyes; then
20425 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20427 { (exit 1); exit 1; }; }
20429 cat >conftest.$ac_ext <<_ACEOF
20430 #line $LINENO "configure"
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 /* System header to define __stub macros and hopefully few prototypes,
20437 which can conflict with char $ac_func (); below.
20438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20439 <limits.h> exists even on freestanding compilers. */
20440 #ifdef __STDC__
20441 # include <limits.h>
20442 #else
20443 # include <assert.h>
20444 #endif
20445 /* Override any gcc2 internal prototype to avoid an error. */
20446 #ifdef __cplusplus
20447 extern "C"
20449 #endif
20450 /* We use char because int might match the return type of a gcc2
20451 builtin and then its argument prototype would still apply. */
20452 char $ac_func ();
20453 /* The GNU C library defines this for functions which it implements
20454 to always fail with ENOSYS. Some functions are actually named
20455 something starting with __ and the normal name is an alias. */
20456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20457 choke me
20458 #else
20459 char (*f) () = $ac_func;
20460 #endif
20461 #ifdef __cplusplus
20463 #endif
20466 main ()
20468 return f != $ac_func;
20470 return 0;
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20475 (eval $ac_link) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -s conftest$ac_exeext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 eval "$as_ac_var=yes"
20486 else
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 eval "$as_ac_var=no"
20492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20496 if test `eval echo '${'$as_ac_var'}'` = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20499 _ACEOF
20502 done
20504 else
20506 echo "$as_me:$LINENO: checking for _powl declaration" >&5
20507 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20508 if test x${glibcxx_cv_func__powl_use+set} != xset; then
20509 if test "${glibcxx_cv_func__powl_use+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20515 ac_ext=cc
20516 ac_cpp='$CXXCPP $CPPFLAGS'
20517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20521 cat >conftest.$ac_ext <<_ACEOF
20522 #line $LINENO "configure"
20523 /* confdefs.h. */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 #include <math.h>
20530 main ()
20532 _powl(0, 0);
20534 return 0;
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 glibcxx_cv_func__powl_use=yes
20550 else
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 glibcxx_cv_func__powl_use=no
20556 rm -f conftest.$ac_objext conftest.$ac_ext
20557 ac_ext=c
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20568 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20570 if test x$glibcxx_cv_func__powl_use = x"yes"; then
20572 for ac_func in _powl
20574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20575 echo "$as_me:$LINENO: checking for $ac_func" >&5
20576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20577 if eval "test \"\${$as_ac_var+set}\" = set"; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580 if test x$gcc_no_link = xyes; then
20581 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20583 { (exit 1); exit 1; }; }
20585 cat >conftest.$ac_ext <<_ACEOF
20586 #line $LINENO "configure"
20587 /* confdefs.h. */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20592 /* System header to define __stub macros and hopefully few prototypes,
20593 which can conflict with char $ac_func (); below.
20594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20595 <limits.h> exists even on freestanding compilers. */
20596 #ifdef __STDC__
20597 # include <limits.h>
20598 #else
20599 # include <assert.h>
20600 #endif
20601 /* Override any gcc2 internal prototype to avoid an error. */
20602 #ifdef __cplusplus
20603 extern "C"
20605 #endif
20606 /* We use char because int might match the return type of a gcc2
20607 builtin and then its argument prototype would still apply. */
20608 char $ac_func ();
20609 /* The GNU C library defines this for functions which it implements
20610 to always fail with ENOSYS. Some functions are actually named
20611 something starting with __ and the normal name is an alias. */
20612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20613 choke me
20614 #else
20615 char (*f) () = $ac_func;
20616 #endif
20617 #ifdef __cplusplus
20619 #endif
20622 main ()
20624 return f != $ac_func;
20626 return 0;
20628 _ACEOF
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20631 (eval $ac_link) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -s conftest$ac_exeext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 eval "$as_ac_var=yes"
20642 else
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 eval "$as_ac_var=no"
20648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20652 if test `eval echo '${'$as_ac_var'}'` = yes; then
20653 cat >>confdefs.h <<_ACEOF
20654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20655 _ACEOF
20658 done
20665 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20666 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20667 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20668 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20674 ac_ext=cc
20675 ac_cpp='$CXXCPP $CPPFLAGS'
20676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20680 cat >conftest.$ac_ext <<_ACEOF
20681 #line $LINENO "configure"
20682 /* confdefs.h. */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20687 #include <math.h>
20688 #ifdef HAVE_IEEEFP_H
20689 #include <ieeefp.h>
20690 #endif
20693 main ()
20695 sqrtl(0);
20697 return 0;
20699 _ACEOF
20700 rm -f conftest.$ac_objext
20701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20702 (eval $ac_compile) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
20706 { ac_try='test -s conftest.$ac_objext'
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 glibcxx_cv_func_sqrtl_use=yes
20713 else
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 glibcxx_cv_func_sqrtl_use=no
20719 rm -f conftest.$ac_objext conftest.$ac_ext
20720 ac_ext=c
20721 ac_cpp='$CPP $CPPFLAGS'
20722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20730 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20731 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20733 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20735 for ac_func in sqrtl
20737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20738 echo "$as_me:$LINENO: checking for $ac_func" >&5
20739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20740 if eval "test \"\${$as_ac_var+set}\" = set"; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743 if test x$gcc_no_link = xyes; then
20744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20746 { (exit 1); exit 1; }; }
20748 cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 /* confdefs.h. */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755 /* System header to define __stub macros and hopefully few prototypes,
20756 which can conflict with char $ac_func (); below.
20757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20758 <limits.h> exists even on freestanding compilers. */
20759 #ifdef __STDC__
20760 # include <limits.h>
20761 #else
20762 # include <assert.h>
20763 #endif
20764 /* Override any gcc2 internal prototype to avoid an error. */
20765 #ifdef __cplusplus
20766 extern "C"
20768 #endif
20769 /* We use char because int might match the return type of a gcc2
20770 builtin and then its argument prototype would still apply. */
20771 char $ac_func ();
20772 /* The GNU C library defines this for functions which it implements
20773 to always fail with ENOSYS. Some functions are actually named
20774 something starting with __ and the normal name is an alias. */
20775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20776 choke me
20777 #else
20778 char (*f) () = $ac_func;
20779 #endif
20780 #ifdef __cplusplus
20782 #endif
20785 main ()
20787 return f != $ac_func;
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20794 (eval $ac_link) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try='test -s conftest$ac_exeext'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 eval "$as_ac_var=yes"
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 eval "$as_ac_var=no"
20811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20815 if test `eval echo '${'$as_ac_var'}'` = yes; then
20816 cat >>confdefs.h <<_ACEOF
20817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20818 _ACEOF
20821 done
20823 else
20825 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20826 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20827 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20828 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 else
20834 ac_ext=cc
20835 ac_cpp='$CXXCPP $CPPFLAGS'
20836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20840 cat >conftest.$ac_ext <<_ACEOF
20841 #line $LINENO "configure"
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 #include <math.h>
20848 #ifdef HAVE_IEEEFP_H
20849 #include <ieeefp.h>
20850 #endif
20853 main ()
20855 _sqrtl(0);
20857 return 0;
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } &&
20866 { ac_try='test -s conftest.$ac_objext'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872 glibcxx_cv_func__sqrtl_use=yes
20873 else
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20877 glibcxx_cv_func__sqrtl_use=no
20879 rm -f conftest.$ac_objext conftest.$ac_ext
20880 ac_ext=c
20881 ac_cpp='$CPP $CPPFLAGS'
20882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20890 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20891 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20893 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20895 for ac_func in _sqrtl
20897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20898 echo "$as_me:$LINENO: checking for $ac_func" >&5
20899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20900 if eval "test \"\${$as_ac_var+set}\" = set"; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903 if test x$gcc_no_link = xyes; then
20904 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20905 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20906 { (exit 1); exit 1; }; }
20908 cat >conftest.$ac_ext <<_ACEOF
20909 #line $LINENO "configure"
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 /* System header to define __stub macros and hopefully few prototypes,
20916 which can conflict with char $ac_func (); below.
20917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20918 <limits.h> exists even on freestanding compilers. */
20919 #ifdef __STDC__
20920 # include <limits.h>
20921 #else
20922 # include <assert.h>
20923 #endif
20924 /* Override any gcc2 internal prototype to avoid an error. */
20925 #ifdef __cplusplus
20926 extern "C"
20928 #endif
20929 /* We use char because int might match the return type of a gcc2
20930 builtin and then its argument prototype would still apply. */
20931 char $ac_func ();
20932 /* The GNU C library defines this for functions which it implements
20933 to always fail with ENOSYS. Some functions are actually named
20934 something starting with __ and the normal name is an alias. */
20935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20936 choke me
20937 #else
20938 char (*f) () = $ac_func;
20939 #endif
20940 #ifdef __cplusplus
20942 #endif
20945 main ()
20947 return f != $ac_func;
20949 return 0;
20951 _ACEOF
20952 rm -f conftest.$ac_objext conftest$ac_exeext
20953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20954 (eval $ac_link) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -s conftest$ac_exeext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 eval "$as_ac_var=yes"
20965 else
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20969 eval "$as_ac_var=no"
20971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20975 if test `eval echo '${'$as_ac_var'}'` = yes; then
20976 cat >>confdefs.h <<_ACEOF
20977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20978 _ACEOF
20981 done
20988 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20989 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20990 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20991 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20997 ac_ext=cc
20998 ac_cpp='$CXXCPP $CPPFLAGS'
20999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21003 cat >conftest.$ac_ext <<_ACEOF
21004 #line $LINENO "configure"
21005 /* confdefs.h. */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 #include <math.h>
21012 main ()
21014 sincosl(0, 0, 0);
21016 return 0;
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21021 (eval $ac_compile) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -s conftest.$ac_objext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 glibcxx_cv_func_sincosl_use=yes
21032 else
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 glibcxx_cv_func_sincosl_use=no
21038 rm -f conftest.$ac_objext conftest.$ac_ext
21039 ac_ext=c
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21049 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
21050 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
21052 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
21054 for ac_func in sincosl
21056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21057 echo "$as_me:$LINENO: checking for $ac_func" >&5
21058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21059 if eval "test \"\${$as_ac_var+set}\" = set"; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062 if test x$gcc_no_link = xyes; then
21063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21065 { (exit 1); exit 1; }; }
21067 cat >conftest.$ac_ext <<_ACEOF
21068 #line $LINENO "configure"
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 /* System header to define __stub macros and hopefully few prototypes,
21075 which can conflict with char $ac_func (); below.
21076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21077 <limits.h> exists even on freestanding compilers. */
21078 #ifdef __STDC__
21079 # include <limits.h>
21080 #else
21081 # include <assert.h>
21082 #endif
21083 /* Override any gcc2 internal prototype to avoid an error. */
21084 #ifdef __cplusplus
21085 extern "C"
21087 #endif
21088 /* We use char because int might match the return type of a gcc2
21089 builtin and then its argument prototype would still apply. */
21090 char $ac_func ();
21091 /* The GNU C library defines this for functions which it implements
21092 to always fail with ENOSYS. Some functions are actually named
21093 something starting with __ and the normal name is an alias. */
21094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21095 choke me
21096 #else
21097 char (*f) () = $ac_func;
21098 #endif
21099 #ifdef __cplusplus
21101 #endif
21104 main ()
21106 return f != $ac_func;
21108 return 0;
21110 _ACEOF
21111 rm -f conftest.$ac_objext conftest$ac_exeext
21112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21113 (eval $ac_link) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
21117 { ac_try='test -s conftest$ac_exeext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 eval "$as_ac_var=yes"
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 eval "$as_ac_var=no"
21130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21134 if test `eval echo '${'$as_ac_var'}'` = yes; then
21135 cat >>confdefs.h <<_ACEOF
21136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21137 _ACEOF
21140 done
21142 else
21144 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
21145 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
21146 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
21147 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21153 ac_ext=cc
21154 ac_cpp='$CXXCPP $CPPFLAGS'
21155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21159 cat >conftest.$ac_ext <<_ACEOF
21160 #line $LINENO "configure"
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <math.h>
21168 main ()
21170 _sincosl(0, 0, 0);
21172 return 0;
21174 _ACEOF
21175 rm -f conftest.$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177 (eval $ac_compile) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
21181 { ac_try='test -s conftest.$ac_objext'
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; }; then
21187 glibcxx_cv_func__sincosl_use=yes
21188 else
21189 echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21192 glibcxx_cv_func__sincosl_use=no
21194 rm -f conftest.$ac_objext conftest.$ac_ext
21195 ac_ext=c
21196 ac_cpp='$CPP $CPPFLAGS'
21197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21205 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
21206 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
21208 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
21210 for ac_func in _sincosl
21212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21213 echo "$as_me:$LINENO: checking for $ac_func" >&5
21214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21215 if eval "test \"\${$as_ac_var+set}\" = set"; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218 if test x$gcc_no_link = xyes; then
21219 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21220 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21221 { (exit 1); exit 1; }; }
21223 cat >conftest.$ac_ext <<_ACEOF
21224 #line $LINENO "configure"
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 /* System header to define __stub macros and hopefully few prototypes,
21231 which can conflict with char $ac_func (); below.
21232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21233 <limits.h> exists even on freestanding compilers. */
21234 #ifdef __STDC__
21235 # include <limits.h>
21236 #else
21237 # include <assert.h>
21238 #endif
21239 /* Override any gcc2 internal prototype to avoid an error. */
21240 #ifdef __cplusplus
21241 extern "C"
21243 #endif
21244 /* We use char because int might match the return type of a gcc2
21245 builtin and then its argument prototype would still apply. */
21246 char $ac_func ();
21247 /* The GNU C library defines this for functions which it implements
21248 to always fail with ENOSYS. Some functions are actually named
21249 something starting with __ and the normal name is an alias. */
21250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21251 choke me
21252 #else
21253 char (*f) () = $ac_func;
21254 #endif
21255 #ifdef __cplusplus
21257 #endif
21260 main ()
21262 return f != $ac_func;
21264 return 0;
21266 _ACEOF
21267 rm -f conftest.$ac_objext conftest$ac_exeext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21269 (eval $ac_link) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
21273 { ac_try='test -s conftest$ac_exeext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 eval "$as_ac_var=yes"
21280 else
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 eval "$as_ac_var=no"
21286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21290 if test `eval echo '${'$as_ac_var'}'` = yes; then
21291 cat >>confdefs.h <<_ACEOF
21292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21293 _ACEOF
21296 done
21303 echo "$as_me:$LINENO: checking for finitel declaration" >&5
21304 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
21305 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
21306 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21312 ac_ext=cc
21313 ac_cpp='$CXXCPP $CPPFLAGS'
21314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21318 cat >conftest.$ac_ext <<_ACEOF
21319 #line $LINENO "configure"
21320 /* confdefs.h. */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 #include <math.h>
21326 #ifdef HAVE_IEEEFP_H
21327 #include <ieeefp.h>
21328 #endif
21331 main ()
21333 finitel(0);
21335 return 0;
21337 _ACEOF
21338 rm -f conftest.$ac_objext
21339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21340 (eval $ac_compile) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -s conftest.$ac_objext'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; }; then
21350 glibcxx_cv_func_finitel_use=yes
21351 else
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 glibcxx_cv_func_finitel_use=no
21357 rm -f conftest.$ac_objext conftest.$ac_ext
21358 ac_ext=c
21359 ac_cpp='$CPP $CPPFLAGS'
21360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21368 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
21369 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
21371 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
21373 for ac_func in finitel
21375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21376 echo "$as_me:$LINENO: checking for $ac_func" >&5
21377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21378 if eval "test \"\${$as_ac_var+set}\" = set"; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381 if test x$gcc_no_link = xyes; then
21382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21384 { (exit 1); exit 1; }; }
21386 cat >conftest.$ac_ext <<_ACEOF
21387 #line $LINENO "configure"
21388 /* confdefs.h. */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 /* System header to define __stub macros and hopefully few prototypes,
21394 which can conflict with char $ac_func (); below.
21395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21396 <limits.h> exists even on freestanding compilers. */
21397 #ifdef __STDC__
21398 # include <limits.h>
21399 #else
21400 # include <assert.h>
21401 #endif
21402 /* Override any gcc2 internal prototype to avoid an error. */
21403 #ifdef __cplusplus
21404 extern "C"
21406 #endif
21407 /* We use char because int might match the return type of a gcc2
21408 builtin and then its argument prototype would still apply. */
21409 char $ac_func ();
21410 /* The GNU C library defines this for functions which it implements
21411 to always fail with ENOSYS. Some functions are actually named
21412 something starting with __ and the normal name is an alias. */
21413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21414 choke me
21415 #else
21416 char (*f) () = $ac_func;
21417 #endif
21418 #ifdef __cplusplus
21420 #endif
21423 main ()
21425 return f != $ac_func;
21427 return 0;
21429 _ACEOF
21430 rm -f conftest.$ac_objext conftest$ac_exeext
21431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21432 (eval $ac_link) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -s conftest$ac_exeext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 eval "$as_ac_var=yes"
21443 else
21444 echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 eval "$as_ac_var=no"
21449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21453 if test `eval echo '${'$as_ac_var'}'` = yes; then
21454 cat >>confdefs.h <<_ACEOF
21455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21456 _ACEOF
21459 done
21461 else
21463 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
21464 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
21465 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
21466 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21472 ac_ext=cc
21473 ac_cpp='$CXXCPP $CPPFLAGS'
21474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21478 cat >conftest.$ac_ext <<_ACEOF
21479 #line $LINENO "configure"
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 #include <math.h>
21486 #ifdef HAVE_IEEEFP_H
21487 #include <ieeefp.h>
21488 #endif
21491 main ()
21493 _finitel(0);
21495 return 0;
21497 _ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21500 (eval $ac_compile) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
21504 { ac_try='test -s conftest.$ac_objext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 glibcxx_cv_func__finitel_use=yes
21511 else
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 glibcxx_cv_func__finitel_use=no
21517 rm -f conftest.$ac_objext conftest.$ac_ext
21518 ac_ext=c
21519 ac_cpp='$CPP $CPPFLAGS'
21520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21528 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21529 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21531 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21533 for ac_func in _finitel
21535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21536 echo "$as_me:$LINENO: checking for $ac_func" >&5
21537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21538 if eval "test \"\${$as_ac_var+set}\" = set"; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541 if test x$gcc_no_link = xyes; then
21542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21544 { (exit 1); exit 1; }; }
21546 cat >conftest.$ac_ext <<_ACEOF
21547 #line $LINENO "configure"
21548 /* confdefs.h. */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 /* System header to define __stub macros and hopefully few prototypes,
21554 which can conflict with char $ac_func (); below.
21555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21556 <limits.h> exists even on freestanding compilers. */
21557 #ifdef __STDC__
21558 # include <limits.h>
21559 #else
21560 # include <assert.h>
21561 #endif
21562 /* Override any gcc2 internal prototype to avoid an error. */
21563 #ifdef __cplusplus
21564 extern "C"
21566 #endif
21567 /* We use char because int might match the return type of a gcc2
21568 builtin and then its argument prototype would still apply. */
21569 char $ac_func ();
21570 /* The GNU C library defines this for functions which it implements
21571 to always fail with ENOSYS. Some functions are actually named
21572 something starting with __ and the normal name is an alias. */
21573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21574 choke me
21575 #else
21576 char (*f) () = $ac_func;
21577 #endif
21578 #ifdef __cplusplus
21580 #endif
21583 main ()
21585 return f != $ac_func;
21587 return 0;
21589 _ACEOF
21590 rm -f conftest.$ac_objext conftest$ac_exeext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21592 (eval $ac_link) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -s conftest$ac_exeext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 eval "$as_ac_var=yes"
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21607 eval "$as_ac_var=no"
21609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21613 if test `eval echo '${'$as_ac_var'}'` = yes; then
21614 cat >>confdefs.h <<_ACEOF
21615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21616 _ACEOF
21619 done
21627 echo "$as_me:$LINENO: checking for _float trig functions" >&5
21628 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21629 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21635 ac_ext=cc
21636 ac_cpp='$CXXCPP $CPPFLAGS'
21637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21641 cat >conftest.$ac_ext <<_ACEOF
21642 #line $LINENO "configure"
21643 /* confdefs.h. */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 #include <math.h>
21650 main ()
21652 `for x in _acosf _asinf _atanf \
21653 _cosf _sinf _tanf \
21654 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21656 return 0;
21658 _ACEOF
21659 rm -f conftest.$ac_objext
21660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21661 (eval $ac_compile) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } &&
21665 { ac_try='test -s conftest.$ac_objext'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; }; then
21671 glibcxx_cv_func__float_trig_use=yes
21672 else
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 glibcxx_cv_func__float_trig_use=no
21678 rm -f conftest.$ac_objext conftest.$ac_ext
21679 ac_ext=c
21680 ac_cpp='$CPP $CPPFLAGS'
21681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21687 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21688 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21689 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21699 for ac_func in _acosf _asinf _atanf \
21700 _cosf _sinf _tanf \
21701 _coshf _sinhf _tanhf
21703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21704 echo "$as_me:$LINENO: checking for $ac_func" >&5
21705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21706 if eval "test \"\${$as_ac_var+set}\" = set"; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709 if test x$gcc_no_link = xyes; then
21710 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21712 { (exit 1); exit 1; }; }
21714 cat >conftest.$ac_ext <<_ACEOF
21715 #line $LINENO "configure"
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 /* System header to define __stub macros and hopefully few prototypes,
21722 which can conflict with char $ac_func (); below.
21723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21724 <limits.h> exists even on freestanding compilers. */
21725 #ifdef __STDC__
21726 # include <limits.h>
21727 #else
21728 # include <assert.h>
21729 #endif
21730 /* Override any gcc2 internal prototype to avoid an error. */
21731 #ifdef __cplusplus
21732 extern "C"
21734 #endif
21735 /* We use char because int might match the return type of a gcc2
21736 builtin and then its argument prototype would still apply. */
21737 char $ac_func ();
21738 /* The GNU C library defines this for functions which it implements
21739 to always fail with ENOSYS. Some functions are actually named
21740 something starting with __ and the normal name is an alias. */
21741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21742 choke me
21743 #else
21744 char (*f) () = $ac_func;
21745 #endif
21746 #ifdef __cplusplus
21748 #endif
21751 main ()
21753 return f != $ac_func;
21755 return 0;
21757 _ACEOF
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21760 (eval $ac_link) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } &&
21764 { ac_try='test -s conftest$ac_exeext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 eval "$as_ac_var=yes"
21771 else
21772 echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21775 eval "$as_ac_var=no"
21777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21781 if test `eval echo '${'$as_ac_var'}'` = yes; then
21782 cat >>confdefs.h <<_ACEOF
21783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21784 _ACEOF
21787 done
21792 echo "$as_me:$LINENO: checking for _float round functions" >&5
21793 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21794 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21800 ac_ext=cc
21801 ac_cpp='$CXXCPP $CPPFLAGS'
21802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21806 cat >conftest.$ac_ext <<_ACEOF
21807 #line $LINENO "configure"
21808 /* confdefs.h. */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 #include <math.h>
21815 main ()
21817 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21819 return 0;
21821 _ACEOF
21822 rm -f conftest.$ac_objext
21823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21824 (eval $ac_compile) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } &&
21828 { ac_try='test -s conftest.$ac_objext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 glibcxx_cv_func__float_round_use=yes
21835 else
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 glibcxx_cv_func__float_round_use=no
21841 rm -f conftest.$ac_objext conftest.$ac_ext
21842 ac_ext=c
21843 ac_cpp='$CPP $CPPFLAGS'
21844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21850 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21851 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21852 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21855 for ac_func in _ceilf _floorf
21857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21858 echo "$as_me:$LINENO: checking for $ac_func" >&5
21859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21860 if eval "test \"\${$as_ac_var+set}\" = set"; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863 if test x$gcc_no_link = xyes; then
21864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21866 { (exit 1); exit 1; }; }
21868 cat >conftest.$ac_ext <<_ACEOF
21869 #line $LINENO "configure"
21870 /* confdefs.h. */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 /* System header to define __stub macros and hopefully few prototypes,
21876 which can conflict with char $ac_func (); below.
21877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21878 <limits.h> exists even on freestanding compilers. */
21879 #ifdef __STDC__
21880 # include <limits.h>
21881 #else
21882 # include <assert.h>
21883 #endif
21884 /* Override any gcc2 internal prototype to avoid an error. */
21885 #ifdef __cplusplus
21886 extern "C"
21888 #endif
21889 /* We use char because int might match the return type of a gcc2
21890 builtin and then its argument prototype would still apply. */
21891 char $ac_func ();
21892 /* The GNU C library defines this for functions which it implements
21893 to always fail with ENOSYS. Some functions are actually named
21894 something starting with __ and the normal name is an alias. */
21895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21896 choke me
21897 #else
21898 char (*f) () = $ac_func;
21899 #endif
21900 #ifdef __cplusplus
21902 #endif
21905 main ()
21907 return f != $ac_func;
21909 return 0;
21911 _ACEOF
21912 rm -f conftest.$ac_objext conftest$ac_exeext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21914 (eval $ac_link) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } &&
21918 { ac_try='test -s conftest$ac_exeext'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
21924 eval "$as_ac_var=yes"
21925 else
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 eval "$as_ac_var=no"
21931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21935 if test `eval echo '${'$as_ac_var'}'` = yes; then
21936 cat >>confdefs.h <<_ACEOF
21937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21938 _ACEOF
21941 done
21947 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21948 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21949 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21955 ac_ext=cc
21956 ac_cpp='$CXXCPP $CPPFLAGS'
21957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21961 cat >conftest.$ac_ext <<_ACEOF
21962 #line $LINENO "configure"
21963 /* confdefs.h. */
21964 _ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21968 #include <math.h>
21970 main ()
21972 `for x in _acosl _asinl _atanl \
21973 _cosl _sinl _tanl \
21974 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21976 return 0;
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21981 (eval $ac_compile) 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } &&
21985 { ac_try='test -s conftest.$ac_objext'
21986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21991 glibcxx_cv_func__long_double_trig_use=yes
21992 else
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21996 glibcxx_cv_func__long_double_trig_use=no
21998 rm -f conftest.$ac_objext conftest.$ac_ext
21999 ac_ext=c
22000 ac_cpp='$CPP $CPPFLAGS'
22001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22007 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
22008 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
22009 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
22019 for ac_func in _acosl _asinl _atanl \
22020 _cosl _sinl _tanl \
22021 _coshl _sinhl _tanhl
22023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22024 echo "$as_me:$LINENO: checking for $ac_func" >&5
22025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22026 if eval "test \"\${$as_ac_var+set}\" = set"; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029 if test x$gcc_no_link = xyes; then
22030 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22032 { (exit 1); exit 1; }; }
22034 cat >conftest.$ac_ext <<_ACEOF
22035 #line $LINENO "configure"
22036 /* confdefs.h. */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 /* System header to define __stub macros and hopefully few prototypes,
22042 which can conflict with char $ac_func (); below.
22043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22044 <limits.h> exists even on freestanding compilers. */
22045 #ifdef __STDC__
22046 # include <limits.h>
22047 #else
22048 # include <assert.h>
22049 #endif
22050 /* Override any gcc2 internal prototype to avoid an error. */
22051 #ifdef __cplusplus
22052 extern "C"
22054 #endif
22055 /* We use char because int might match the return type of a gcc2
22056 builtin and then its argument prototype would still apply. */
22057 char $ac_func ();
22058 /* The GNU C library defines this for functions which it implements
22059 to always fail with ENOSYS. Some functions are actually named
22060 something starting with __ and the normal name is an alias. */
22061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22062 choke me
22063 #else
22064 char (*f) () = $ac_func;
22065 #endif
22066 #ifdef __cplusplus
22068 #endif
22071 main ()
22073 return f != $ac_func;
22075 return 0;
22077 _ACEOF
22078 rm -f conftest.$ac_objext conftest$ac_exeext
22079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22080 (eval $ac_link) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
22084 { ac_try='test -s conftest$ac_exeext'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 eval "$as_ac_var=yes"
22091 else
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 eval "$as_ac_var=no"
22097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22101 if test `eval echo '${'$as_ac_var'}'` = yes; then
22102 cat >>confdefs.h <<_ACEOF
22103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22104 _ACEOF
22107 done
22112 echo "$as_me:$LINENO: checking for _long double round functions" >&5
22113 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
22114 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 else
22120 ac_ext=cc
22121 ac_cpp='$CXXCPP $CPPFLAGS'
22122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22126 cat >conftest.$ac_ext <<_ACEOF
22127 #line $LINENO "configure"
22128 /* confdefs.h. */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 #include <math.h>
22135 main ()
22137 `for x in _ceill _floorl; do echo "$x (0);"; done`
22139 return 0;
22141 _ACEOF
22142 rm -f conftest.$ac_objext
22143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22144 (eval $ac_compile) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } &&
22148 { ac_try='test -s conftest.$ac_objext'
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22151 ac_status=$?
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 glibcxx_cv_func__long_double_round_use=yes
22155 else
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 glibcxx_cv_func__long_double_round_use=no
22161 rm -f conftest.$ac_objext conftest.$ac_ext
22162 ac_ext=c
22163 ac_cpp='$CPP $CPPFLAGS'
22164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22170 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
22171 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
22172 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
22175 for ac_func in _ceill _floorl
22177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22178 echo "$as_me:$LINENO: checking for $ac_func" >&5
22179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22180 if eval "test \"\${$as_ac_var+set}\" = set"; then
22181 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 else
22183 if test x$gcc_no_link = xyes; then
22184 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22185 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22186 { (exit 1); exit 1; }; }
22188 cat >conftest.$ac_ext <<_ACEOF
22189 #line $LINENO "configure"
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 /* System header to define __stub macros and hopefully few prototypes,
22196 which can conflict with char $ac_func (); below.
22197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22198 <limits.h> exists even on freestanding compilers. */
22199 #ifdef __STDC__
22200 # include <limits.h>
22201 #else
22202 # include <assert.h>
22203 #endif
22204 /* Override any gcc2 internal prototype to avoid an error. */
22205 #ifdef __cplusplus
22206 extern "C"
22208 #endif
22209 /* We use char because int might match the return type of a gcc2
22210 builtin and then its argument prototype would still apply. */
22211 char $ac_func ();
22212 /* The GNU C library defines this for functions which it implements
22213 to always fail with ENOSYS. Some functions are actually named
22214 something starting with __ and the normal name is an alias. */
22215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22216 choke me
22217 #else
22218 char (*f) () = $ac_func;
22219 #endif
22220 #ifdef __cplusplus
22222 #endif
22225 main ()
22227 return f != $ac_func;
22229 return 0;
22231 _ACEOF
22232 rm -f conftest.$ac_objext conftest$ac_exeext
22233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22234 (eval $ac_link) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } &&
22238 { ac_try='test -s conftest$ac_exeext'
22239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 eval "$as_ac_var=yes"
22245 else
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22249 eval "$as_ac_var=no"
22251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22255 if test `eval echo '${'$as_ac_var'}'` = yes; then
22256 cat >>confdefs.h <<_ACEOF
22257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22258 _ACEOF
22261 done
22266 LIBS="$ac_save_LIBS"
22267 CXXFLAGS="$ac_save_CXXFLAGS"
22271 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
22272 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
22273 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
22274 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 else
22280 ac_ext=cc
22281 ac_cpp='$CXXCPP $CPPFLAGS'
22282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22286 cat >conftest.$ac_ext <<_ACEOF
22287 #line $LINENO "configure"
22288 /* confdefs.h. */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 #include <math.h>
22295 main ()
22297 __builtin_abs(0);
22299 return 0;
22301 _ACEOF
22302 rm -f conftest.$ac_objext
22303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22304 (eval $ac_compile) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } &&
22308 { ac_try='test -s conftest.$ac_objext'
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }; then
22314 glibcxx_cv_func___builtin_abs_use=yes
22315 else
22316 echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22319 glibcxx_cv_func___builtin_abs_use=no
22321 rm -f conftest.$ac_objext conftest.$ac_ext
22322 ac_ext=c
22323 ac_cpp='$CPP $CPPFLAGS'
22324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22332 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
22333 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
22334 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
22335 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
22336 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
22337 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
22338 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 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 #line $LINENO "configure"
22349 /* confdefs.h. */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 #include <math.h>
22356 main ()
22358 __builtin_abs(0);
22360 return 0;
22362 _ACEOF
22363 rm -f conftest.$ac_objext conftest$ac_exeext
22364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22365 (eval $ac_link) 2>&5
22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } &&
22369 { ac_try='test -s conftest$ac_exeext'
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22372 ac_status=$?
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 glibcxx_cv_func___builtin_abs_link=yes
22376 else
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 glibcxx_cv_func___builtin_abs_link=no
22382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22387 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
22388 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
22389 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
22390 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22391 cat >>confdefs.h <<_ACEOF
22392 #define ${ac_tr_func} 1
22393 _ACEOF
22399 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
22400 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
22401 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
22402 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22408 ac_ext=cc
22409 ac_cpp='$CXXCPP $CPPFLAGS'
22410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22414 cat >conftest.$ac_ext <<_ACEOF
22415 #line $LINENO "configure"
22416 /* confdefs.h. */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 #include <math.h>
22423 main ()
22425 __builtin_fabsf(0);
22427 return 0;
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22432 (eval $ac_compile) 2>&5
22433 ac_status=$?
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -s conftest.$ac_objext'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; }; then
22442 glibcxx_cv_func___builtin_fabsf_use=yes
22443 else
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 glibcxx_cv_func___builtin_fabsf_use=no
22449 rm -f conftest.$ac_objext conftest.$ac_ext
22450 ac_ext=c
22451 ac_cpp='$CPP $CPPFLAGS'
22452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22460 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
22461 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
22462 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
22463 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
22464 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
22465 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
22466 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22470 if test x$gcc_no_link = xyes; then
22471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22473 { (exit 1); exit 1; }; }
22475 cat >conftest.$ac_ext <<_ACEOF
22476 #line $LINENO "configure"
22477 /* confdefs.h. */
22478 _ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 #include <math.h>
22484 main ()
22486 __builtin_fabsf(0);
22488 return 0;
22490 _ACEOF
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22493 (eval $ac_link) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } &&
22497 { ac_try='test -s conftest$ac_exeext'
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 glibcxx_cv_func___builtin_fabsf_link=yes
22504 else
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 glibcxx_cv_func___builtin_fabsf_link=no
22510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22515 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
22516 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
22517 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
22518 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22519 cat >>confdefs.h <<_ACEOF
22520 #define ${ac_tr_func} 1
22521 _ACEOF
22527 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22528 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22529 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22530 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22536 ac_ext=cc
22537 ac_cpp='$CXXCPP $CPPFLAGS'
22538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22542 cat >conftest.$ac_ext <<_ACEOF
22543 #line $LINENO "configure"
22544 /* confdefs.h. */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 #include <math.h>
22551 main ()
22553 __builtin_fabs(0);
22555 return 0;
22557 _ACEOF
22558 rm -f conftest.$ac_objext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22560 (eval $ac_compile) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
22564 { ac_try='test -s conftest.$ac_objext'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 glibcxx_cv_func___builtin_fabs_use=yes
22571 else
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 glibcxx_cv_func___builtin_fabs_use=no
22577 rm -f conftest.$ac_objext conftest.$ac_ext
22578 ac_ext=c
22579 ac_cpp='$CPP $CPPFLAGS'
22580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22588 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22589 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22590 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22591 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22592 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22593 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22594 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22598 if test x$gcc_no_link = xyes; then
22599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22601 { (exit 1); exit 1; }; }
22603 cat >conftest.$ac_ext <<_ACEOF
22604 #line $LINENO "configure"
22605 /* confdefs.h. */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610 #include <math.h>
22612 main ()
22614 __builtin_fabs(0);
22616 return 0;
22618 _ACEOF
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22621 (eval $ac_link) 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try='test -s conftest$ac_exeext'
22626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; }; then
22631 glibcxx_cv_func___builtin_fabs_link=yes
22632 else
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 glibcxx_cv_func___builtin_fabs_link=no
22638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22643 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22644 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22645 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22646 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22647 cat >>confdefs.h <<_ACEOF
22648 #define ${ac_tr_func} 1
22649 _ACEOF
22655 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22656 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22657 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22658 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660 else
22664 ac_ext=cc
22665 ac_cpp='$CXXCPP $CPPFLAGS'
22666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22670 cat >conftest.$ac_ext <<_ACEOF
22671 #line $LINENO "configure"
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 #include <math.h>
22679 main ()
22681 __builtin_fabsl(0);
22683 return 0;
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22688 (eval $ac_compile) 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 glibcxx_cv_func___builtin_fabsl_use=yes
22699 else
22700 echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22703 glibcxx_cv_func___builtin_fabsl_use=no
22705 rm -f conftest.$ac_objext conftest.$ac_ext
22706 ac_ext=c
22707 ac_cpp='$CPP $CPPFLAGS'
22708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22716 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22717 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22718 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22719 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22720 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22721 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22722 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22726 if test x$gcc_no_link = xyes; then
22727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22729 { (exit 1); exit 1; }; }
22731 cat >conftest.$ac_ext <<_ACEOF
22732 #line $LINENO "configure"
22733 /* confdefs.h. */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 #include <math.h>
22740 main ()
22742 __builtin_fabsl(0);
22744 return 0;
22746 _ACEOF
22747 rm -f conftest.$ac_objext conftest$ac_exeext
22748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22749 (eval $ac_link) 2>&5
22750 ac_status=$?
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } &&
22753 { ac_try='test -s conftest$ac_exeext'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 glibcxx_cv_func___builtin_fabsl_link=yes
22760 else
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22764 glibcxx_cv_func___builtin_fabsl_link=no
22766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22771 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22772 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22773 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22774 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22775 cat >>confdefs.h <<_ACEOF
22776 #define ${ac_tr_func} 1
22777 _ACEOF
22783 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22784 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22785 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22786 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22792 ac_ext=cc
22793 ac_cpp='$CXXCPP $CPPFLAGS'
22794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22798 cat >conftest.$ac_ext <<_ACEOF
22799 #line $LINENO "configure"
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 #include <math.h>
22807 main ()
22809 __builtin_labs(0);
22811 return 0;
22813 _ACEOF
22814 rm -f conftest.$ac_objext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22816 (eval $ac_compile) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 glibcxx_cv_func___builtin_labs_use=yes
22827 else
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 glibcxx_cv_func___builtin_labs_use=no
22833 rm -f conftest.$ac_objext conftest.$ac_ext
22834 ac_ext=c
22835 ac_cpp='$CPP $CPPFLAGS'
22836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22844 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22845 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22846 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22847 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22848 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22849 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22850 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 else
22854 if test x$gcc_no_link = xyes; then
22855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22857 { (exit 1); exit 1; }; }
22859 cat >conftest.$ac_ext <<_ACEOF
22860 #line $LINENO "configure"
22861 /* confdefs.h. */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866 #include <math.h>
22868 main ()
22870 __builtin_labs(0);
22872 return 0;
22874 _ACEOF
22875 rm -f conftest.$ac_objext conftest$ac_exeext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22877 (eval $ac_link) 2>&5
22878 ac_status=$?
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } &&
22881 { ac_try='test -s conftest$ac_exeext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22884 ac_status=$?
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 glibcxx_cv_func___builtin_labs_link=yes
22888 else
22889 echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22892 glibcxx_cv_func___builtin_labs_link=no
22894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22899 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22900 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22901 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22902 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22903 cat >>confdefs.h <<_ACEOF
22904 #define ${ac_tr_func} 1
22905 _ACEOF
22912 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22913 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22914 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22915 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 else
22921 ac_ext=cc
22922 ac_cpp='$CXXCPP $CPPFLAGS'
22923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22927 cat >conftest.$ac_ext <<_ACEOF
22928 #line $LINENO "configure"
22929 /* confdefs.h. */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22934 #include <math.h>
22936 main ()
22938 __builtin_sqrtf(0);
22940 return 0;
22942 _ACEOF
22943 rm -f conftest.$ac_objext
22944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22945 (eval $ac_compile) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
22949 { ac_try='test -s conftest.$ac_objext'
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; }; then
22955 glibcxx_cv_func___builtin_sqrtf_use=yes
22956 else
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 glibcxx_cv_func___builtin_sqrtf_use=no
22962 rm -f conftest.$ac_objext conftest.$ac_ext
22963 ac_ext=c
22964 ac_cpp='$CPP $CPPFLAGS'
22965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22973 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22974 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22975 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22976 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22977 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22978 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22979 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22983 if test x$gcc_no_link = xyes; then
22984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22986 { (exit 1); exit 1; }; }
22988 cat >conftest.$ac_ext <<_ACEOF
22989 #line $LINENO "configure"
22990 /* confdefs.h. */
22991 _ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h. */
22995 #include <math.h>
22997 main ()
22999 __builtin_sqrtf(0);
23001 return 0;
23003 _ACEOF
23004 rm -f conftest.$ac_objext conftest$ac_exeext
23005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23006 (eval $ac_link) 2>&5
23007 ac_status=$?
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } &&
23010 { ac_try='test -s conftest$ac_exeext'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016 glibcxx_cv_func___builtin_sqrtf_link=yes
23017 else
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 glibcxx_cv_func___builtin_sqrtf_link=no
23023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23028 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
23029 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
23030 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
23031 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23032 cat >>confdefs.h <<_ACEOF
23033 #define ${ac_tr_func} 1
23034 _ACEOF
23040 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
23041 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
23042 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
23043 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 else
23049 ac_ext=cc
23050 ac_cpp='$CXXCPP $CPPFLAGS'
23051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23055 cat >conftest.$ac_ext <<_ACEOF
23056 #line $LINENO "configure"
23057 /* confdefs.h. */
23058 _ACEOF
23059 cat confdefs.h >>conftest.$ac_ext
23060 cat >>conftest.$ac_ext <<_ACEOF
23061 /* end confdefs.h. */
23062 #include <math.h>
23064 main ()
23066 __builtin_sqrt(0);
23068 return 0;
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073 (eval $ac_compile) 2>&5
23074 ac_status=$?
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } &&
23077 { ac_try='test -s conftest.$ac_objext'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23080 ac_status=$?
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; }; then
23083 glibcxx_cv_func___builtin_sqrt_use=yes
23084 else
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 glibcxx_cv_func___builtin_sqrt_use=no
23090 rm -f conftest.$ac_objext conftest.$ac_ext
23091 ac_ext=c
23092 ac_cpp='$CPP $CPPFLAGS'
23093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23101 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
23102 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
23103 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
23104 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
23105 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
23106 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
23107 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23111 if test x$gcc_no_link = xyes; then
23112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23114 { (exit 1); exit 1; }; }
23116 cat >conftest.$ac_ext <<_ACEOF
23117 #line $LINENO "configure"
23118 /* confdefs.h. */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23123 #include <math.h>
23125 main ()
23127 __builtin_sqrt(0);
23129 return 0;
23131 _ACEOF
23132 rm -f conftest.$ac_objext conftest$ac_exeext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23134 (eval $ac_link) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); } &&
23138 { ac_try='test -s conftest$ac_exeext'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 glibcxx_cv_func___builtin_sqrt_link=yes
23145 else
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 glibcxx_cv_func___builtin_sqrt_link=no
23151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23156 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
23157 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
23158 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
23159 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23160 cat >>confdefs.h <<_ACEOF
23161 #define ${ac_tr_func} 1
23162 _ACEOF
23168 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
23169 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
23170 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
23171 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23177 ac_ext=cc
23178 ac_cpp='$CXXCPP $CPPFLAGS'
23179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23183 cat >conftest.$ac_ext <<_ACEOF
23184 #line $LINENO "configure"
23185 /* confdefs.h. */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23190 #include <math.h>
23192 main ()
23194 __builtin_sqrtl(0);
23196 return 0;
23198 _ACEOF
23199 rm -f conftest.$ac_objext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201 (eval $ac_compile) 2>&5
23202 ac_status=$?
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } &&
23205 { ac_try='test -s conftest.$ac_objext'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23208 ac_status=$?
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; }; then
23211 glibcxx_cv_func___builtin_sqrtl_use=yes
23212 else
23213 echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23216 glibcxx_cv_func___builtin_sqrtl_use=no
23218 rm -f conftest.$ac_objext conftest.$ac_ext
23219 ac_ext=c
23220 ac_cpp='$CPP $CPPFLAGS'
23221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23229 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
23230 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
23231 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
23232 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
23233 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
23234 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
23235 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23239 if test x$gcc_no_link = xyes; then
23240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23242 { (exit 1); exit 1; }; }
23244 cat >conftest.$ac_ext <<_ACEOF
23245 #line $LINENO "configure"
23246 /* confdefs.h. */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23251 #include <math.h>
23253 main ()
23255 __builtin_sqrtl(0);
23257 return 0;
23259 _ACEOF
23260 rm -f conftest.$ac_objext conftest$ac_exeext
23261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23262 (eval $ac_link) 2>&5
23263 ac_status=$?
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } &&
23266 { ac_try='test -s conftest$ac_exeext'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 glibcxx_cv_func___builtin_sqrtl_link=yes
23273 else
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 glibcxx_cv_func___builtin_sqrtl_link=no
23279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23284 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
23285 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
23286 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
23287 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23288 cat >>confdefs.h <<_ACEOF
23289 #define ${ac_tr_func} 1
23290 _ACEOF
23297 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
23298 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
23299 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
23300 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 else
23306 ac_ext=cc
23307 ac_cpp='$CXXCPP $CPPFLAGS'
23308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23312 cat >conftest.$ac_ext <<_ACEOF
23313 #line $LINENO "configure"
23314 /* confdefs.h. */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 #include <math.h>
23321 main ()
23323 __builtin_sinf(0);
23325 return 0;
23327 _ACEOF
23328 rm -f conftest.$ac_objext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23330 (eval $ac_compile) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -s conftest.$ac_objext'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 glibcxx_cv_func___builtin_sinf_use=yes
23341 else
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 glibcxx_cv_func___builtin_sinf_use=no
23347 rm -f conftest.$ac_objext conftest.$ac_ext
23348 ac_ext=c
23349 ac_cpp='$CPP $CPPFLAGS'
23350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23358 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
23359 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
23360 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
23361 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
23362 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
23363 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
23364 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23368 if test x$gcc_no_link = xyes; then
23369 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23371 { (exit 1); exit 1; }; }
23373 cat >conftest.$ac_ext <<_ACEOF
23374 #line $LINENO "configure"
23375 /* confdefs.h. */
23376 _ACEOF
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23380 #include <math.h>
23382 main ()
23384 __builtin_sinf(0);
23386 return 0;
23388 _ACEOF
23389 rm -f conftest.$ac_objext conftest$ac_exeext
23390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23391 (eval $ac_link) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } &&
23395 { ac_try='test -s conftest$ac_exeext'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; }; then
23401 glibcxx_cv_func___builtin_sinf_link=yes
23402 else
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 glibcxx_cv_func___builtin_sinf_link=no
23408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23413 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
23414 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
23415 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
23416 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23417 cat >>confdefs.h <<_ACEOF
23418 #define ${ac_tr_func} 1
23419 _ACEOF
23425 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
23426 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
23427 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
23428 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
23429 echo $ECHO_N "(cached) $ECHO_C" >&6
23430 else
23434 ac_ext=cc
23435 ac_cpp='$CXXCPP $CPPFLAGS'
23436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23440 cat >conftest.$ac_ext <<_ACEOF
23441 #line $LINENO "configure"
23442 /* confdefs.h. */
23443 _ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23447 #include <math.h>
23449 main ()
23451 __builtin_sin(0);
23453 return 0;
23455 _ACEOF
23456 rm -f conftest.$ac_objext
23457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23458 (eval $ac_compile) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } &&
23462 { ac_try='test -s conftest.$ac_objext'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; }; then
23468 glibcxx_cv_func___builtin_sin_use=yes
23469 else
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23473 glibcxx_cv_func___builtin_sin_use=no
23475 rm -f conftest.$ac_objext conftest.$ac_ext
23476 ac_ext=c
23477 ac_cpp='$CPP $CPPFLAGS'
23478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23486 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
23487 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
23488 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
23489 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
23490 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
23491 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
23492 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23494 else
23496 if test x$gcc_no_link = xyes; then
23497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23499 { (exit 1); exit 1; }; }
23501 cat >conftest.$ac_ext <<_ACEOF
23502 #line $LINENO "configure"
23503 /* confdefs.h. */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 #include <math.h>
23510 main ()
23512 __builtin_sin(0);
23514 return 0;
23516 _ACEOF
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23519 (eval $ac_link) 2>&5
23520 ac_status=$?
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } &&
23523 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23529 glibcxx_cv_func___builtin_sin_link=yes
23530 else
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 glibcxx_cv_func___builtin_sin_link=no
23536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23541 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
23542 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
23543 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
23544 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23545 cat >>confdefs.h <<_ACEOF
23546 #define ${ac_tr_func} 1
23547 _ACEOF
23553 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
23554 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
23555 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
23556 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23562 ac_ext=cc
23563 ac_cpp='$CXXCPP $CPPFLAGS'
23564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23568 cat >conftest.$ac_ext <<_ACEOF
23569 #line $LINENO "configure"
23570 /* confdefs.h. */
23571 _ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h. */
23575 #include <math.h>
23577 main ()
23579 __builtin_sinl(0);
23581 return 0;
23583 _ACEOF
23584 rm -f conftest.$ac_objext
23585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23586 (eval $ac_compile) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } &&
23590 { ac_try='test -s conftest.$ac_objext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 glibcxx_cv_func___builtin_sinl_use=yes
23597 else
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 glibcxx_cv_func___builtin_sinl_use=no
23603 rm -f conftest.$ac_objext conftest.$ac_ext
23604 ac_ext=c
23605 ac_cpp='$CPP $CPPFLAGS'
23606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23614 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23615 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23616 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23617 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23618 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23619 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23620 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622 else
23624 if test x$gcc_no_link = xyes; then
23625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23627 { (exit 1); exit 1; }; }
23629 cat >conftest.$ac_ext <<_ACEOF
23630 #line $LINENO "configure"
23631 /* confdefs.h. */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h. */
23636 #include <math.h>
23638 main ()
23640 __builtin_sinl(0);
23642 return 0;
23644 _ACEOF
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
23651 { ac_try='test -s conftest$ac_exeext'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 glibcxx_cv_func___builtin_sinl_link=yes
23658 else
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 glibcxx_cv_func___builtin_sinl_link=no
23664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23669 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23670 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23671 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23672 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23673 cat >>confdefs.h <<_ACEOF
23674 #define ${ac_tr_func} 1
23675 _ACEOF
23682 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23683 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23684 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23685 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 else
23691 ac_ext=cc
23692 ac_cpp='$CXXCPP $CPPFLAGS'
23693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23697 cat >conftest.$ac_ext <<_ACEOF
23698 #line $LINENO "configure"
23699 /* confdefs.h. */
23700 _ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h. */
23704 #include <math.h>
23706 main ()
23708 __builtin_cosf(0);
23710 return 0;
23712 _ACEOF
23713 rm -f conftest.$ac_objext
23714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23715 (eval $ac_compile) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } &&
23719 { ac_try='test -s conftest.$ac_objext'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 glibcxx_cv_func___builtin_cosf_use=yes
23726 else
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23730 glibcxx_cv_func___builtin_cosf_use=no
23732 rm -f conftest.$ac_objext conftest.$ac_ext
23733 ac_ext=c
23734 ac_cpp='$CPP $CPPFLAGS'
23735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23743 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23744 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23745 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23746 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23747 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23748 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23749 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23750 echo $ECHO_N "(cached) $ECHO_C" >&6
23751 else
23753 if test x$gcc_no_link = xyes; then
23754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23756 { (exit 1); exit 1; }; }
23758 cat >conftest.$ac_ext <<_ACEOF
23759 #line $LINENO "configure"
23760 /* confdefs.h. */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 #include <math.h>
23767 main ()
23769 __builtin_cosf(0);
23771 return 0;
23773 _ACEOF
23774 rm -f conftest.$ac_objext conftest$ac_exeext
23775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23776 (eval $ac_link) 2>&5
23777 ac_status=$?
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } &&
23780 { ac_try='test -s conftest$ac_exeext'
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; }; then
23786 glibcxx_cv_func___builtin_cosf_link=yes
23787 else
23788 echo "$as_me: failed program was:" >&5
23789 sed 's/^/| /' conftest.$ac_ext >&5
23791 glibcxx_cv_func___builtin_cosf_link=no
23793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23798 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23799 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23800 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23801 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23802 cat >>confdefs.h <<_ACEOF
23803 #define ${ac_tr_func} 1
23804 _ACEOF
23810 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23811 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23812 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23813 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23814 echo $ECHO_N "(cached) $ECHO_C" >&6
23815 else
23819 ac_ext=cc
23820 ac_cpp='$CXXCPP $CPPFLAGS'
23821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23825 cat >conftest.$ac_ext <<_ACEOF
23826 #line $LINENO "configure"
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 #include <math.h>
23834 main ()
23836 __builtin_cos(0);
23838 return 0;
23840 _ACEOF
23841 rm -f conftest.$ac_objext
23842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23843 (eval $ac_compile) 2>&5
23844 ac_status=$?
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } &&
23847 { ac_try='test -s conftest.$ac_objext'
23848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23849 (eval $ac_try) 2>&5
23850 ac_status=$?
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); }; }; then
23853 glibcxx_cv_func___builtin_cos_use=yes
23854 else
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23858 glibcxx_cv_func___builtin_cos_use=no
23860 rm -f conftest.$ac_objext conftest.$ac_ext
23861 ac_ext=c
23862 ac_cpp='$CPP $CPPFLAGS'
23863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23871 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23872 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23873 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23874 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23875 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23876 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23877 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23878 echo $ECHO_N "(cached) $ECHO_C" >&6
23879 else
23881 if test x$gcc_no_link = xyes; then
23882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23884 { (exit 1); exit 1; }; }
23886 cat >conftest.$ac_ext <<_ACEOF
23887 #line $LINENO "configure"
23888 /* confdefs.h. */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 #include <math.h>
23895 main ()
23897 __builtin_cos(0);
23899 return 0;
23901 _ACEOF
23902 rm -f conftest.$ac_objext conftest$ac_exeext
23903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23904 (eval $ac_link) 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } &&
23908 { ac_try='test -s conftest$ac_exeext'
23909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910 (eval $ac_try) 2>&5
23911 ac_status=$?
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); }; }; then
23914 glibcxx_cv_func___builtin_cos_link=yes
23915 else
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 glibcxx_cv_func___builtin_cos_link=no
23921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23926 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23927 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23928 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23929 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23930 cat >>confdefs.h <<_ACEOF
23931 #define ${ac_tr_func} 1
23932 _ACEOF
23938 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23939 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23940 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23941 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23942 echo $ECHO_N "(cached) $ECHO_C" >&6
23943 else
23947 ac_ext=cc
23948 ac_cpp='$CXXCPP $CPPFLAGS'
23949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23953 cat >conftest.$ac_ext <<_ACEOF
23954 #line $LINENO "configure"
23955 /* confdefs.h. */
23956 _ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h. */
23960 #include <math.h>
23962 main ()
23964 __builtin_cosl(0);
23966 return 0;
23968 _ACEOF
23969 rm -f conftest.$ac_objext
23970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23971 (eval $ac_compile) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } &&
23975 { ac_try='test -s conftest.$ac_objext'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 glibcxx_cv_func___builtin_cosl_use=yes
23982 else
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 glibcxx_cv_func___builtin_cosl_use=no
23988 rm -f conftest.$ac_objext conftest.$ac_ext
23989 ac_ext=c
23990 ac_cpp='$CPP $CPPFLAGS'
23991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23999 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
24000 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
24001 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
24002 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
24003 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
24004 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
24005 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 else
24009 if test x$gcc_no_link = xyes; then
24010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24012 { (exit 1); exit 1; }; }
24014 cat >conftest.$ac_ext <<_ACEOF
24015 #line $LINENO "configure"
24016 /* confdefs.h. */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021 #include <math.h>
24023 main ()
24025 __builtin_cosl(0);
24027 return 0;
24029 _ACEOF
24030 rm -f conftest.$ac_objext conftest$ac_exeext
24031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24032 (eval $ac_link) 2>&5
24033 ac_status=$?
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } &&
24036 { ac_try='test -s conftest$ac_exeext'
24037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; }; then
24042 glibcxx_cv_func___builtin_cosl_link=yes
24043 else
24044 echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24047 glibcxx_cv_func___builtin_cosl_link=no
24049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24054 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
24055 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
24056 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
24057 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24058 cat >>confdefs.h <<_ACEOF
24059 #define ${ac_tr_func} 1
24060 _ACEOF
24066 dummyvar=no
24067 if test x$dummyvar = x"yes"; then
24068 cat >>confdefs.h <<\_ACEOF
24069 #define HAVE___BUILTIN_ABS 1
24070 _ACEOF
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE___BUILTIN_LABS 1
24074 _ACEOF
24076 cat >>confdefs.h <<\_ACEOF
24077 #define HAVE___BUILTIN_COS 1
24078 _ACEOF
24080 cat >>confdefs.h <<\_ACEOF
24081 #define HAVE___BUILTIN_COSF 1
24082 _ACEOF
24084 cat >>confdefs.h <<\_ACEOF
24085 #define HAVE___BUILTIN_COSL 1
24086 _ACEOF
24088 cat >>confdefs.h <<\_ACEOF
24089 #define HAVE___BUILTIN_FABS 1
24090 _ACEOF
24092 cat >>confdefs.h <<\_ACEOF
24093 #define HAVE___BUILTIN_FABSF 1
24094 _ACEOF
24096 cat >>confdefs.h <<\_ACEOF
24097 #define HAVE___BUILTIN_FABSL 1
24098 _ACEOF
24100 cat >>confdefs.h <<\_ACEOF
24101 #define HAVE___BUILTIN_SIN 1
24102 _ACEOF
24104 cat >>confdefs.h <<\_ACEOF
24105 #define HAVE___BUILTIN_SINF 1
24106 _ACEOF
24108 cat >>confdefs.h <<\_ACEOF
24109 #define HAVE___BUILTIN_SINL 1
24110 _ACEOF
24112 cat >>confdefs.h <<\_ACEOF
24113 #define HAVE___BUILTIN_SQRT 1
24114 _ACEOF
24116 cat >>confdefs.h <<\_ACEOF
24117 #define HAVE___BUILTIN_SQRTF 1
24118 _ACEOF
24120 cat >>confdefs.h <<\_ACEOF
24121 #define HAVE___BUILTIN_SQRTL 1
24122 _ACEOF
24128 echo "$as_me:$LINENO: checking for main in -lm" >&5
24129 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
24130 if test "${ac_cv_lib_m_main+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24132 else
24133 ac_check_lib_save_LIBS=$LIBS
24134 LIBS="-lm $LIBS"
24135 if test x$gcc_no_link = xyes; then
24136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24138 { (exit 1); exit 1; }; }
24140 cat >conftest.$ac_ext <<_ACEOF
24141 #line $LINENO "configure"
24142 /* confdefs.h. */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24150 main ()
24152 main ();
24154 return 0;
24156 _ACEOF
24157 rm -f conftest.$ac_objext conftest$ac_exeext
24158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24159 (eval $ac_link) 2>&5
24160 ac_status=$?
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } &&
24163 { ac_try='test -s conftest$ac_exeext'
24164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24166 ac_status=$?
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); }; }; then
24169 ac_cv_lib_m_main=yes
24170 else
24171 echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24174 ac_cv_lib_m_main=no
24176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24177 LIBS=$ac_check_lib_save_LIBS
24179 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
24180 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
24181 if test $ac_cv_lib_m_main = yes; then
24182 cat >>confdefs.h <<_ACEOF
24183 #define HAVE_LIBM 1
24184 _ACEOF
24186 LIBS="-lm $LIBS"
24192 for ac_func in nan copysignf
24194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24195 echo "$as_me:$LINENO: checking for $ac_func" >&5
24196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24197 if eval "test \"\${$as_ac_var+set}\" = set"; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24199 else
24200 if test x$gcc_no_link = xyes; then
24201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24203 { (exit 1); exit 1; }; }
24205 cat >conftest.$ac_ext <<_ACEOF
24206 #line $LINENO "configure"
24207 /* confdefs.h. */
24208 _ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h. */
24212 /* System header to define __stub macros and hopefully few prototypes,
24213 which can conflict with char $ac_func (); below.
24214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24215 <limits.h> exists even on freestanding compilers. */
24216 #ifdef __STDC__
24217 # include <limits.h>
24218 #else
24219 # include <assert.h>
24220 #endif
24221 /* Override any gcc2 internal prototype to avoid an error. */
24222 #ifdef __cplusplus
24223 extern "C"
24225 #endif
24226 /* We use char because int might match the return type of a gcc2
24227 builtin and then its argument prototype would still apply. */
24228 char $ac_func ();
24229 /* The GNU C library defines this for functions which it implements
24230 to always fail with ENOSYS. Some functions are actually named
24231 something starting with __ and the normal name is an alias. */
24232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24233 choke me
24234 #else
24235 char (*f) () = $ac_func;
24236 #endif
24237 #ifdef __cplusplus
24239 #endif
24242 main ()
24244 return f != $ac_func;
24246 return 0;
24248 _ACEOF
24249 rm -f conftest.$ac_objext conftest$ac_exeext
24250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24251 (eval $ac_link) 2>&5
24252 ac_status=$?
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } &&
24255 { ac_try='test -s conftest$ac_exeext'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; }; then
24261 eval "$as_ac_var=yes"
24262 else
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24266 eval "$as_ac_var=no"
24268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24272 if test `eval echo '${'$as_ac_var'}'` = yes; then
24273 cat >>confdefs.h <<_ACEOF
24274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24275 _ACEOF
24277 else
24278 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
24280 done
24284 for ac_func in __signbit
24286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24287 echo "$as_me:$LINENO: checking for $ac_func" >&5
24288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24289 if eval "test \"\${$as_ac_var+set}\" = set"; then
24290 echo $ECHO_N "(cached) $ECHO_C" >&6
24291 else
24292 if test x$gcc_no_link = xyes; then
24293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24295 { (exit 1); exit 1; }; }
24297 cat >conftest.$ac_ext <<_ACEOF
24298 #line $LINENO "configure"
24299 /* confdefs.h. */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h. */
24304 /* System header to define __stub macros and hopefully few prototypes,
24305 which can conflict with char $ac_func (); below.
24306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24307 <limits.h> exists even on freestanding compilers. */
24308 #ifdef __STDC__
24309 # include <limits.h>
24310 #else
24311 # include <assert.h>
24312 #endif
24313 /* Override any gcc2 internal prototype to avoid an error. */
24314 #ifdef __cplusplus
24315 extern "C"
24317 #endif
24318 /* We use char because int might match the return type of a gcc2
24319 builtin and then its argument prototype would still apply. */
24320 char $ac_func ();
24321 /* The GNU C library defines this for functions which it implements
24322 to always fail with ENOSYS. Some functions are actually named
24323 something starting with __ and the normal name is an alias. */
24324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24325 choke me
24326 #else
24327 char (*f) () = $ac_func;
24328 #endif
24329 #ifdef __cplusplus
24331 #endif
24334 main ()
24336 return f != $ac_func;
24338 return 0;
24340 _ACEOF
24341 rm -f conftest.$ac_objext conftest$ac_exeext
24342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24343 (eval $ac_link) 2>&5
24344 ac_status=$?
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } &&
24347 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24353 eval "$as_ac_var=yes"
24354 else
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358 eval "$as_ac_var=no"
24360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24364 if test `eval echo '${'$as_ac_var'}'` = yes; then
24365 cat >>confdefs.h <<_ACEOF
24366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24367 _ACEOF
24369 else
24370 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
24372 done
24375 for ac_func in __signbitf
24377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24378 echo "$as_me:$LINENO: checking for $ac_func" >&5
24379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24380 if eval "test \"\${$as_ac_var+set}\" = set"; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383 if test x$gcc_no_link = xyes; then
24384 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24386 { (exit 1); exit 1; }; }
24388 cat >conftest.$ac_ext <<_ACEOF
24389 #line $LINENO "configure"
24390 /* confdefs.h. */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h. */
24395 /* System header to define __stub macros and hopefully few prototypes,
24396 which can conflict with char $ac_func (); below.
24397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24398 <limits.h> exists even on freestanding compilers. */
24399 #ifdef __STDC__
24400 # include <limits.h>
24401 #else
24402 # include <assert.h>
24403 #endif
24404 /* Override any gcc2 internal prototype to avoid an error. */
24405 #ifdef __cplusplus
24406 extern "C"
24408 #endif
24409 /* We use char because int might match the return type of a gcc2
24410 builtin and then its argument prototype would still apply. */
24411 char $ac_func ();
24412 /* The GNU C library defines this for functions which it implements
24413 to always fail with ENOSYS. Some functions are actually named
24414 something starting with __ and the normal name is an alias. */
24415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24416 choke me
24417 #else
24418 char (*f) () = $ac_func;
24419 #endif
24420 #ifdef __cplusplus
24422 #endif
24425 main ()
24427 return f != $ac_func;
24429 return 0;
24431 _ACEOF
24432 rm -f conftest.$ac_objext conftest$ac_exeext
24433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24434 (eval $ac_link) 2>&5
24435 ac_status=$?
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
24438 { ac_try='test -s conftest$ac_exeext'
24439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440 (eval $ac_try) 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444 eval "$as_ac_var=yes"
24445 else
24446 echo "$as_me: failed program was:" >&5
24447 sed 's/^/| /' conftest.$ac_ext >&5
24449 eval "$as_ac_var=no"
24451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24455 if test `eval echo '${'$as_ac_var'}'` = yes; then
24456 cat >>confdefs.h <<_ACEOF
24457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24458 _ACEOF
24460 else
24461 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
24463 done
24466 if test x$ac_cv_func_copysignl = x"yes"; then
24468 for ac_func in __signbitl
24470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24471 echo "$as_me:$LINENO: checking for $ac_func" >&5
24472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24473 if eval "test \"\${$as_ac_var+set}\" = set"; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24475 else
24476 if test x$gcc_no_link = xyes; then
24477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24479 { (exit 1); exit 1; }; }
24481 cat >conftest.$ac_ext <<_ACEOF
24482 #line $LINENO "configure"
24483 /* confdefs.h. */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 /* System header to define __stub macros and hopefully few prototypes,
24489 which can conflict with char $ac_func (); below.
24490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24491 <limits.h> exists even on freestanding compilers. */
24492 #ifdef __STDC__
24493 # include <limits.h>
24494 #else
24495 # include <assert.h>
24496 #endif
24497 /* Override any gcc2 internal prototype to avoid an error. */
24498 #ifdef __cplusplus
24499 extern "C"
24501 #endif
24502 /* We use char because int might match the return type of a gcc2
24503 builtin and then its argument prototype would still apply. */
24504 char $ac_func ();
24505 /* The GNU C library defines this for functions which it implements
24506 to always fail with ENOSYS. Some functions are actually named
24507 something starting with __ and the normal name is an alias. */
24508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24509 choke me
24510 #else
24511 char (*f) () = $ac_func;
24512 #endif
24513 #ifdef __cplusplus
24515 #endif
24518 main ()
24520 return f != $ac_func;
24522 return 0;
24524 _ACEOF
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24527 (eval $ac_link) 2>&5
24528 ac_status=$?
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } &&
24531 { ac_try='test -s conftest$ac_exeext'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 eval "$as_ac_var=yes"
24538 else
24539 echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 eval "$as_ac_var=no"
24544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24548 if test `eval echo '${'$as_ac_var'}'` = yes; then
24549 cat >>confdefs.h <<_ACEOF
24550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24551 _ACEOF
24553 else
24554 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
24556 done
24560 # XXX Review this. Nothing uses it.
24561 if test -n "$LIBMATHOBJS"; then
24562 need_libmath=yes
24567 # Test wchar.h for mbstate_t, which is needed for char_traits and
24568 # others even if wchar_t support is not on.
24569 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24570 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24571 cat >conftest.$ac_ext <<_ACEOF
24572 #line $LINENO "configure"
24573 /* confdefs.h. */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 #include <wchar.h>
24580 main ()
24582 mbstate_t teststate;
24584 return 0;
24586 _ACEOF
24587 rm -f conftest.$ac_objext
24588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24589 (eval $ac_compile) 2>&5
24590 ac_status=$?
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); } &&
24593 { ac_try='test -s conftest.$ac_objext'
24594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5
24596 ac_status=$?
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; }; then
24599 have_mbstate_t=yes
24600 else
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24604 have_mbstate_t=no
24606 rm -f conftest.$ac_objext conftest.$ac_ext
24607 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24608 echo "${ECHO_T}$have_mbstate_t" >&6
24609 if test x"$have_mbstate_t" = xyes; then
24610 cat >>confdefs.h <<\_ACEOF
24611 #define HAVE_MBSTATE_T 1
24612 _ACEOF
24616 # Sanity check for existence of ISO C99 headers for extended encoding.
24618 for ac_header in wchar.h
24620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24622 echo "$as_me:$LINENO: checking for $ac_header" >&5
24623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24629 else
24630 # Is the header compilable?
24631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24633 cat >conftest.$ac_ext <<_ACEOF
24634 #line $LINENO "configure"
24635 /* confdefs.h. */
24636 _ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h. */
24640 $ac_includes_default
24641 #include <$ac_header>
24642 _ACEOF
24643 rm -f conftest.$ac_objext
24644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24645 (eval $ac_compile) 2>&5
24646 ac_status=$?
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } &&
24649 { ac_try='test -s conftest.$ac_objext'
24650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 ac_header_compiler=yes
24656 else
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 ac_header_compiler=no
24662 rm -f conftest.$ac_objext conftest.$ac_ext
24663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24664 echo "${ECHO_T}$ac_header_compiler" >&6
24666 # Is the header present?
24667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24669 cat >conftest.$ac_ext <<_ACEOF
24670 #line $LINENO "configure"
24671 /* confdefs.h. */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24676 #include <$ac_header>
24677 _ACEOF
24678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24680 ac_status=$?
24681 grep -v '^ *+' conftest.er1 >conftest.err
24682 rm -f conftest.er1
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } >/dev/null; then
24686 if test -s conftest.err; then
24687 ac_cpp_err=$ac_c_preproc_warn_flag
24688 else
24689 ac_cpp_err=
24691 else
24692 ac_cpp_err=yes
24694 if test -z "$ac_cpp_err"; then
24695 ac_header_preproc=yes
24696 else
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24700 ac_header_preproc=no
24702 rm -f conftest.err conftest.$ac_ext
24703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24704 echo "${ECHO_T}$ac_header_preproc" >&6
24706 # So? What about this header?
24707 case $ac_header_compiler:$ac_header_preproc in
24708 yes:no )
24709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24714 cat <<\_ASBOX
24715 ## ------------------------------------ ##
24716 ## Report this to bug-autoconf@gnu.org. ##
24717 ## ------------------------------------ ##
24718 _ASBOX
24720 sed "s/^/$as_me: WARNING: /" >&2
24722 no:yes )
24723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24730 cat <<\_ASBOX
24731 ## ------------------------------------ ##
24732 ## Report this to bug-autoconf@gnu.org. ##
24733 ## ------------------------------------ ##
24734 _ASBOX
24736 sed "s/^/$as_me: WARNING: /" >&2
24738 esac
24739 echo "$as_me:$LINENO: checking for $ac_header" >&5
24740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 else
24744 eval "$as_ac_Header=$ac_header_preproc"
24746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24751 cat >>confdefs.h <<_ACEOF
24752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24753 _ACEOF
24754 ac_has_wchar_h=yes
24755 else
24756 ac_has_wchar_h=no
24759 done
24762 for ac_header in wctype.h
24764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24766 echo "$as_me:$LINENO: checking for $ac_header" >&5
24767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24773 else
24774 # Is the header compilable?
24775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24777 cat >conftest.$ac_ext <<_ACEOF
24778 #line $LINENO "configure"
24779 /* confdefs.h. */
24780 _ACEOF
24781 cat confdefs.h >>conftest.$ac_ext
24782 cat >>conftest.$ac_ext <<_ACEOF
24783 /* end confdefs.h. */
24784 $ac_includes_default
24785 #include <$ac_header>
24786 _ACEOF
24787 rm -f conftest.$ac_objext
24788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24789 (eval $ac_compile) 2>&5
24790 ac_status=$?
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); } &&
24793 { ac_try='test -s conftest.$ac_objext'
24794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; }; then
24799 ac_header_compiler=yes
24800 else
24801 echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ac_header_compiler=no
24806 rm -f conftest.$ac_objext conftest.$ac_ext
24807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24808 echo "${ECHO_T}$ac_header_compiler" >&6
24810 # Is the header present?
24811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24813 cat >conftest.$ac_ext <<_ACEOF
24814 #line $LINENO "configure"
24815 /* confdefs.h. */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24820 #include <$ac_header>
24821 _ACEOF
24822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24824 ac_status=$?
24825 grep -v '^ *+' conftest.er1 >conftest.err
24826 rm -f conftest.er1
24827 cat conftest.err >&5
24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829 (exit $ac_status); } >/dev/null; then
24830 if test -s conftest.err; then
24831 ac_cpp_err=$ac_c_preproc_warn_flag
24832 else
24833 ac_cpp_err=
24835 else
24836 ac_cpp_err=yes
24838 if test -z "$ac_cpp_err"; then
24839 ac_header_preproc=yes
24840 else
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24844 ac_header_preproc=no
24846 rm -f conftest.err conftest.$ac_ext
24847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24848 echo "${ECHO_T}$ac_header_preproc" >&6
24850 # So? What about this header?
24851 case $ac_header_compiler:$ac_header_preproc in
24852 yes:no )
24853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24858 cat <<\_ASBOX
24859 ## ------------------------------------ ##
24860 ## Report this to bug-autoconf@gnu.org. ##
24861 ## ------------------------------------ ##
24862 _ASBOX
24864 sed "s/^/$as_me: WARNING: /" >&2
24866 no:yes )
24867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24874 cat <<\_ASBOX
24875 ## ------------------------------------ ##
24876 ## Report this to bug-autoconf@gnu.org. ##
24877 ## ------------------------------------ ##
24878 _ASBOX
24880 sed "s/^/$as_me: WARNING: /" >&2
24882 esac
24883 echo "$as_me:$LINENO: checking for $ac_header" >&5
24884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24886 echo $ECHO_N "(cached) $ECHO_C" >&6
24887 else
24888 eval "$as_ac_Header=$ac_header_preproc"
24890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24897 _ACEOF
24898 ac_has_wctype_h=yes
24899 else
24900 ac_has_wctype_h=no
24903 done
24906 # Only continue checking if the ISO C99 headers exist and support is on.
24907 if test x"$ac_has_wchar_h" = xyes &&
24908 test x"$ac_has_wctype_h" = xyes &&
24909 test x"$enable_c_mbchar" != xno; then
24911 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24912 # numeric_limits can instantiate type_traits<wchar_t>
24913 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24914 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24915 cat >conftest.$ac_ext <<_ACEOF
24916 #line $LINENO "configure"
24917 /* confdefs.h. */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 #include <wchar.h>
24924 main ()
24926 int i = WCHAR_MIN; int j = WCHAR_MAX;
24928 return 0;
24930 _ACEOF
24931 rm -f conftest.$ac_objext
24932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24933 (eval $ac_compile) 2>&5
24934 ac_status=$?
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } &&
24937 { ac_try='test -s conftest.$ac_objext'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24940 ac_status=$?
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 has_wchar_minmax=yes
24944 else
24945 echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24948 has_wchar_minmax=no
24950 rm -f conftest.$ac_objext conftest.$ac_ext
24951 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24952 echo "${ECHO_T}$has_wchar_minmax" >&6
24954 # Test wchar.h for WEOF, which is what we use to determine whether
24955 # to specialize for char_traits<wchar_t> or not.
24956 echo "$as_me:$LINENO: checking for WEOF" >&5
24957 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24958 cat >conftest.$ac_ext <<_ACEOF
24959 #line $LINENO "configure"
24960 /* confdefs.h. */
24961 _ACEOF
24962 cat confdefs.h >>conftest.$ac_ext
24963 cat >>conftest.$ac_ext <<_ACEOF
24964 /* end confdefs.h. */
24966 #include <wchar.h>
24967 #include <stddef.h>
24969 main ()
24971 wint_t i = WEOF;
24973 return 0;
24975 _ACEOF
24976 rm -f conftest.$ac_objext
24977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24978 (eval $ac_compile) 2>&5
24979 ac_status=$?
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -s conftest.$ac_objext'
24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; }; then
24988 has_weof=yes
24989 else
24990 echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24993 has_weof=no
24995 rm -f conftest.$ac_objext conftest.$ac_ext
24996 echo "$as_me:$LINENO: result: $has_weof" >&5
24997 echo "${ECHO_T}$has_weof" >&6
24999 # Tests for wide character functions used in char_traits<wchar_t>.
25000 ac_wfuncs=yes
25007 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
25009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25010 echo "$as_me:$LINENO: checking for $ac_func" >&5
25011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25012 if eval "test \"\${$as_ac_var+set}\" = set"; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015 if test x$gcc_no_link = xyes; then
25016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25018 { (exit 1); exit 1; }; }
25020 cat >conftest.$ac_ext <<_ACEOF
25021 #line $LINENO "configure"
25022 /* confdefs.h. */
25023 _ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25027 /* System header to define __stub macros and hopefully few prototypes,
25028 which can conflict with char $ac_func (); below.
25029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25030 <limits.h> exists even on freestanding compilers. */
25031 #ifdef __STDC__
25032 # include <limits.h>
25033 #else
25034 # include <assert.h>
25035 #endif
25036 /* Override any gcc2 internal prototype to avoid an error. */
25037 #ifdef __cplusplus
25038 extern "C"
25040 #endif
25041 /* We use char because int might match the return type of a gcc2
25042 builtin and then its argument prototype would still apply. */
25043 char $ac_func ();
25044 /* The GNU C library defines this for functions which it implements
25045 to always fail with ENOSYS. Some functions are actually named
25046 something starting with __ and the normal name is an alias. */
25047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25048 choke me
25049 #else
25050 char (*f) () = $ac_func;
25051 #endif
25052 #ifdef __cplusplus
25054 #endif
25057 main ()
25059 return f != $ac_func;
25061 return 0;
25063 _ACEOF
25064 rm -f conftest.$ac_objext conftest$ac_exeext
25065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25066 (eval $ac_link) 2>&5
25067 ac_status=$?
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } &&
25070 { ac_try='test -s conftest$ac_exeext'
25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25073 ac_status=$?
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; }; then
25076 eval "$as_ac_var=yes"
25077 else
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25081 eval "$as_ac_var=no"
25083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25087 if test `eval echo '${'$as_ac_var'}'` = yes; then
25088 cat >>confdefs.h <<_ACEOF
25089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25090 _ACEOF
25092 else
25093 ac_wfuncs=no
25095 done
25098 # Checks for names injected into std:: by the c_std headers.
25145 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
25146 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
25147 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
25148 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
25149 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
25150 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
25152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25153 echo "$as_me:$LINENO: checking for $ac_func" >&5
25154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25155 if eval "test \"\${$as_ac_var+set}\" = set"; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 else
25158 if test x$gcc_no_link = xyes; then
25159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25161 { (exit 1); exit 1; }; }
25163 cat >conftest.$ac_ext <<_ACEOF
25164 #line $LINENO "configure"
25165 /* confdefs.h. */
25166 _ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h. */
25170 /* System header to define __stub macros and hopefully few prototypes,
25171 which can conflict with char $ac_func (); below.
25172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25173 <limits.h> exists even on freestanding compilers. */
25174 #ifdef __STDC__
25175 # include <limits.h>
25176 #else
25177 # include <assert.h>
25178 #endif
25179 /* Override any gcc2 internal prototype to avoid an error. */
25180 #ifdef __cplusplus
25181 extern "C"
25183 #endif
25184 /* We use char because int might match the return type of a gcc2
25185 builtin and then its argument prototype would still apply. */
25186 char $ac_func ();
25187 /* The GNU C library defines this for functions which it implements
25188 to always fail with ENOSYS. Some functions are actually named
25189 something starting with __ and the normal name is an alias. */
25190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25191 choke me
25192 #else
25193 char (*f) () = $ac_func;
25194 #endif
25195 #ifdef __cplusplus
25197 #endif
25200 main ()
25202 return f != $ac_func;
25204 return 0;
25206 _ACEOF
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209 (eval $ac_link) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
25213 { ac_try='test -s conftest$ac_exeext'
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 eval "$as_ac_var=yes"
25220 else
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 eval "$as_ac_var=no"
25226 rm -f conftest.$ac_objext 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
25235 else
25236 ac_wfuncs=no
25238 done
25241 # Checks for wide character functions that are not required
25242 # for basic wchar_t support. Don't disable support if they are missing.
25243 # Injection of these is wrapped with guard macros.
25249 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
25251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25252 echo "$as_me:$LINENO: checking for $ac_func" >&5
25253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25254 if eval "test \"\${$as_ac_var+set}\" = set"; then
25255 echo $ECHO_N "(cached) $ECHO_C" >&6
25256 else
25257 if test x$gcc_no_link = xyes; then
25258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25260 { (exit 1); exit 1; }; }
25262 cat >conftest.$ac_ext <<_ACEOF
25263 #line $LINENO "configure"
25264 /* confdefs.h. */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25269 /* System header to define __stub macros and hopefully few prototypes,
25270 which can conflict with char $ac_func (); below.
25271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25272 <limits.h> exists even on freestanding compilers. */
25273 #ifdef __STDC__
25274 # include <limits.h>
25275 #else
25276 # include <assert.h>
25277 #endif
25278 /* Override any gcc2 internal prototype to avoid an error. */
25279 #ifdef __cplusplus
25280 extern "C"
25282 #endif
25283 /* We use char because int might match the return type of a gcc2
25284 builtin and then its argument prototype would still apply. */
25285 char $ac_func ();
25286 /* The GNU C library defines this for functions which it implements
25287 to always fail with ENOSYS. Some functions are actually named
25288 something starting with __ and the normal name is an alias. */
25289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25290 choke me
25291 #else
25292 char (*f) () = $ac_func;
25293 #endif
25294 #ifdef __cplusplus
25296 #endif
25299 main ()
25301 return f != $ac_func;
25303 return 0;
25305 _ACEOF
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25308 (eval $ac_link) 2>&5
25309 ac_status=$?
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); } &&
25312 { ac_try='test -s conftest$ac_exeext'
25313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25314 (eval $ac_try) 2>&5
25315 ac_status=$?
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); }; }; then
25318 eval "$as_ac_var=yes"
25319 else
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 eval "$as_ac_var=no"
25325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25329 if test `eval echo '${'$as_ac_var'}'` = yes; then
25330 cat >>confdefs.h <<_ACEOF
25331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25332 _ACEOF
25335 done
25338 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
25339 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
25340 if test x"$has_weof" = xyes &&
25341 test x"$has_wchar_minmax" = xyes &&
25342 test x"$ac_wfuncs" = xyes;
25343 then
25344 ac_isoC99_wchar_t=yes
25345 else
25346 ac_isoC99_wchar_t=no
25348 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
25349 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
25351 # Use iconv for wchar_t to char conversions. As such, check for
25352 # X/Open Portability Guide, version 2 features (XPG2).
25353 if test "${ac_cv_header_iconv_h+set}" = set; then
25354 echo "$as_me:$LINENO: checking for iconv.h" >&5
25355 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25356 if test "${ac_cv_header_iconv_h+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25359 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25360 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25361 else
25362 # Is the header compilable?
25363 echo "$as_me:$LINENO: checking iconv.h usability" >&5
25364 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
25365 cat >conftest.$ac_ext <<_ACEOF
25366 #line $LINENO "configure"
25367 /* confdefs.h. */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25372 $ac_includes_default
25373 #include <iconv.h>
25374 _ACEOF
25375 rm -f conftest.$ac_objext
25376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25377 (eval $ac_compile) 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } &&
25381 { ac_try='test -s conftest.$ac_objext'
25382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; }; then
25387 ac_header_compiler=yes
25388 else
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25392 ac_header_compiler=no
25394 rm -f conftest.$ac_objext conftest.$ac_ext
25395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25396 echo "${ECHO_T}$ac_header_compiler" >&6
25398 # Is the header present?
25399 echo "$as_me:$LINENO: checking iconv.h presence" >&5
25400 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
25401 cat >conftest.$ac_ext <<_ACEOF
25402 #line $LINENO "configure"
25403 /* confdefs.h. */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 #include <iconv.h>
25409 _ACEOF
25410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25412 ac_status=$?
25413 grep -v '^ *+' conftest.er1 >conftest.err
25414 rm -f conftest.er1
25415 cat conftest.err >&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } >/dev/null; then
25418 if test -s conftest.err; then
25419 ac_cpp_err=$ac_c_preproc_warn_flag
25420 else
25421 ac_cpp_err=
25423 else
25424 ac_cpp_err=yes
25426 if test -z "$ac_cpp_err"; then
25427 ac_header_preproc=yes
25428 else
25429 echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25432 ac_header_preproc=no
25434 rm -f conftest.err conftest.$ac_ext
25435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25436 echo "${ECHO_T}$ac_header_preproc" >&6
25438 # So? What about this header?
25439 case $ac_header_compiler:$ac_header_preproc in
25440 yes:no )
25441 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
25442 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25443 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25444 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25446 cat <<\_ASBOX
25447 ## ------------------------------------ ##
25448 ## Report this to bug-autoconf@gnu.org. ##
25449 ## ------------------------------------ ##
25450 _ASBOX
25452 sed "s/^/$as_me: WARNING: /" >&2
25454 no:yes )
25455 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
25456 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
25457 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
25458 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
25459 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25460 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25462 cat <<\_ASBOX
25463 ## ------------------------------------ ##
25464 ## Report this to bug-autoconf@gnu.org. ##
25465 ## ------------------------------------ ##
25466 _ASBOX
25468 sed "s/^/$as_me: WARNING: /" >&2
25470 esac
25471 echo "$as_me:$LINENO: checking for iconv.h" >&5
25472 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25473 if test "${ac_cv_header_iconv_h+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 else
25476 ac_cv_header_iconv_h=$ac_header_preproc
25478 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25479 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25482 if test $ac_cv_header_iconv_h = yes; then
25483 ac_has_iconv_h=yes
25484 else
25485 ac_has_iconv_h=no
25489 if test "${ac_cv_header_langinfo_h+set}" = set; then
25490 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25491 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25492 if test "${ac_cv_header_langinfo_h+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25495 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25496 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25497 else
25498 # Is the header compilable?
25499 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
25500 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
25501 cat >conftest.$ac_ext <<_ACEOF
25502 #line $LINENO "configure"
25503 /* confdefs.h. */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 $ac_includes_default
25509 #include <langinfo.h>
25510 _ACEOF
25511 rm -f conftest.$ac_objext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25513 (eval $ac_compile) 2>&5
25514 ac_status=$?
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); } &&
25517 { ac_try='test -s conftest.$ac_objext'
25518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519 (eval $ac_try) 2>&5
25520 ac_status=$?
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); }; }; then
25523 ac_header_compiler=yes
25524 else
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25528 ac_header_compiler=no
25530 rm -f conftest.$ac_objext conftest.$ac_ext
25531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25532 echo "${ECHO_T}$ac_header_compiler" >&6
25534 # Is the header present?
25535 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
25536 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
25537 cat >conftest.$ac_ext <<_ACEOF
25538 #line $LINENO "configure"
25539 /* confdefs.h. */
25540 _ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 #include <langinfo.h>
25545 _ACEOF
25546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25548 ac_status=$?
25549 grep -v '^ *+' conftest.er1 >conftest.err
25550 rm -f conftest.er1
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } >/dev/null; then
25554 if test -s conftest.err; then
25555 ac_cpp_err=$ac_c_preproc_warn_flag
25556 else
25557 ac_cpp_err=
25559 else
25560 ac_cpp_err=yes
25562 if test -z "$ac_cpp_err"; then
25563 ac_header_preproc=yes
25564 else
25565 echo "$as_me: failed program was:" >&5
25566 sed 's/^/| /' conftest.$ac_ext >&5
25568 ac_header_preproc=no
25570 rm -f conftest.err conftest.$ac_ext
25571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25572 echo "${ECHO_T}$ac_header_preproc" >&6
25574 # So? What about this header?
25575 case $ac_header_compiler:$ac_header_preproc in
25576 yes:no )
25577 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
25578 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25579 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25580 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25582 cat <<\_ASBOX
25583 ## ------------------------------------ ##
25584 ## Report this to bug-autoconf@gnu.org. ##
25585 ## ------------------------------------ ##
25586 _ASBOX
25588 sed "s/^/$as_me: WARNING: /" >&2
25590 no:yes )
25591 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
25592 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
25593 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
25594 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
25595 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25596 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25598 cat <<\_ASBOX
25599 ## ------------------------------------ ##
25600 ## Report this to bug-autoconf@gnu.org. ##
25601 ## ------------------------------------ ##
25602 _ASBOX
25604 sed "s/^/$as_me: WARNING: /" >&2
25606 esac
25607 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25608 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25609 if test "${ac_cv_header_langinfo_h+set}" = set; then
25610 echo $ECHO_N "(cached) $ECHO_C" >&6
25611 else
25612 ac_cv_header_langinfo_h=$ac_header_preproc
25614 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25615 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25618 if test $ac_cv_header_langinfo_h = yes; then
25619 ac_has_langinfo_h=yes
25620 else
25621 ac_has_langinfo_h=no
25626 # Check for existence of libiconv.a providing XPG2 wchar_t support.
25627 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
25628 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
25629 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632 ac_check_lib_save_LIBS=$LIBS
25633 LIBS="-liconv $LIBS"
25634 if test x$gcc_no_link = xyes; then
25635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25637 { (exit 1); exit 1; }; }
25639 cat >conftest.$ac_ext <<_ACEOF
25640 #line $LINENO "configure"
25641 /* confdefs.h. */
25642 _ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h. */
25647 /* Override any gcc2 internal prototype to avoid an error. */
25648 #ifdef __cplusplus
25649 extern "C"
25650 #endif
25651 /* We use char because int might match the return type of a gcc2
25652 builtin and then its argument prototype would still apply. */
25653 char iconv ();
25655 main ()
25657 iconv ();
25659 return 0;
25661 _ACEOF
25662 rm -f conftest.$ac_objext conftest$ac_exeext
25663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25664 (eval $ac_link) 2>&5
25665 ac_status=$?
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } &&
25668 { ac_try='test -s conftest$ac_exeext'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; }; then
25674 ac_cv_lib_iconv_iconv=yes
25675 else
25676 echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25679 ac_cv_lib_iconv_iconv=no
25681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25682 LIBS=$ac_check_lib_save_LIBS
25684 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
25685 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
25686 if test $ac_cv_lib_iconv_iconv = yes; then
25687 libiconv="-liconv"
25690 ac_save_LIBS="$LIBS"
25691 LIBS="$LIBS $libiconv"
25697 for ac_func in iconv_open iconv_close iconv nl_langinfo
25699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25700 echo "$as_me:$LINENO: checking for $ac_func" >&5
25701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25702 if eval "test \"\${$as_ac_var+set}\" = set"; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25704 else
25705 if test x$gcc_no_link = xyes; then
25706 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25708 { (exit 1); exit 1; }; }
25710 cat >conftest.$ac_ext <<_ACEOF
25711 #line $LINENO "configure"
25712 /* confdefs.h. */
25713 _ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h. */
25717 /* System header to define __stub macros and hopefully few prototypes,
25718 which can conflict with char $ac_func (); below.
25719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25720 <limits.h> exists even on freestanding compilers. */
25721 #ifdef __STDC__
25722 # include <limits.h>
25723 #else
25724 # include <assert.h>
25725 #endif
25726 /* Override any gcc2 internal prototype to avoid an error. */
25727 #ifdef __cplusplus
25728 extern "C"
25730 #endif
25731 /* We use char because int might match the return type of a gcc2
25732 builtin and then its argument prototype would still apply. */
25733 char $ac_func ();
25734 /* The GNU C library defines this for functions which it implements
25735 to always fail with ENOSYS. Some functions are actually named
25736 something starting with __ and the normal name is an alias. */
25737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25738 choke me
25739 #else
25740 char (*f) () = $ac_func;
25741 #endif
25742 #ifdef __cplusplus
25744 #endif
25747 main ()
25749 return f != $ac_func;
25751 return 0;
25753 _ACEOF
25754 rm -f conftest.$ac_objext conftest$ac_exeext
25755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25756 (eval $ac_link) 2>&5
25757 ac_status=$?
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } &&
25760 { ac_try='test -s conftest$ac_exeext'
25761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766 eval "$as_ac_var=yes"
25767 else
25768 echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25771 eval "$as_ac_var=no"
25773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25777 if test `eval echo '${'$as_ac_var'}'` = yes; then
25778 cat >>confdefs.h <<_ACEOF
25779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25780 _ACEOF
25781 ac_XPG2funcs=yes
25782 else
25783 ac_XPG2funcs=no
25785 done
25788 LIBS="$ac_save_LIBS"
25790 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25791 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25792 if test x"$ac_has_iconv_h" = xyes &&
25793 test x"$ac_has_langinfo_h" = xyes &&
25794 test x"$ac_XPG2funcs" = xyes;
25795 then
25796 ac_XPG2_wchar_t=yes
25797 else
25798 ac_XPG2_wchar_t=no
25800 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25801 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25803 # At the moment, only enable wchar_t specializations if all the
25804 # above support is present.
25805 if test x"$ac_isoC99_wchar_t" = xyes &&
25806 test x"$ac_XPG2_wchar_t" = xyes;
25807 then
25808 cat >>confdefs.h <<\_ACEOF
25809 #define _GLIBCXX_USE_WCHAR_T 1
25810 _ACEOF
25812 enable_wchar_t=yes
25815 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25816 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25817 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25818 echo "${ECHO_T}$enable_wchar_t" >&6
25821 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25822 ac_save_CXXFLAGS="$CXXFLAGS"
25823 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25826 echo "$as_me:$LINENO: checking for strtold declaration" >&5
25827 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25828 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25829 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25830 echo $ECHO_N "(cached) $ECHO_C" >&6
25831 else
25835 ac_ext=cc
25836 ac_cpp='$CXXCPP $CPPFLAGS'
25837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25841 cat >conftest.$ac_ext <<_ACEOF
25842 #line $LINENO "configure"
25843 /* confdefs.h. */
25844 _ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25848 #include <stdlib.h>
25850 main ()
25852 strtold(0, 0);
25854 return 0;
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25859 (eval $ac_compile) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } &&
25863 { ac_try='test -s conftest.$ac_objext'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 glibcxx_cv_func_strtold_use=yes
25870 else
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25874 glibcxx_cv_func_strtold_use=no
25876 rm -f conftest.$ac_objext conftest.$ac_ext
25877 ac_ext=c
25878 ac_cpp='$CPP $CPPFLAGS'
25879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25887 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25888 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25889 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25891 for ac_func in strtold
25893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25894 echo "$as_me:$LINENO: checking for $ac_func" >&5
25895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25896 if eval "test \"\${$as_ac_var+set}\" = set"; then
25897 echo $ECHO_N "(cached) $ECHO_C" >&6
25898 else
25899 if test x$gcc_no_link = xyes; then
25900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25902 { (exit 1); exit 1; }; }
25904 cat >conftest.$ac_ext <<_ACEOF
25905 #line $LINENO "configure"
25906 /* confdefs.h. */
25907 _ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25911 /* System header to define __stub macros and hopefully few prototypes,
25912 which can conflict with char $ac_func (); below.
25913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25914 <limits.h> exists even on freestanding compilers. */
25915 #ifdef __STDC__
25916 # include <limits.h>
25917 #else
25918 # include <assert.h>
25919 #endif
25920 /* Override any gcc2 internal prototype to avoid an error. */
25921 #ifdef __cplusplus
25922 extern "C"
25924 #endif
25925 /* We use char because int might match the return type of a gcc2
25926 builtin and then its argument prototype would still apply. */
25927 char $ac_func ();
25928 /* The GNU C library defines this for functions which it implements
25929 to always fail with ENOSYS. Some functions are actually named
25930 something starting with __ and the normal name is an alias. */
25931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25932 choke me
25933 #else
25934 char (*f) () = $ac_func;
25935 #endif
25936 #ifdef __cplusplus
25938 #endif
25941 main ()
25943 return f != $ac_func;
25945 return 0;
25947 _ACEOF
25948 rm -f conftest.$ac_objext conftest$ac_exeext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25950 (eval $ac_link) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } &&
25954 { ac_try='test -s conftest$ac_exeext'
25955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956 (eval $ac_try) 2>&5
25957 ac_status=$?
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; }; then
25960 eval "$as_ac_var=yes"
25961 else
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 eval "$as_ac_var=no"
25967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25971 if test `eval echo '${'$as_ac_var'}'` = yes; then
25972 cat >>confdefs.h <<_ACEOF
25973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25974 _ACEOF
25977 done
25982 echo "$as_me:$LINENO: checking for strtof declaration" >&5
25983 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25984 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25985 if test "${glibcxx_cv_func_strtof_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 #line $LINENO "configure"
25999 /* confdefs.h. */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h. */
26004 #include <stdlib.h>
26006 main ()
26008 strtof(0, 0);
26010 return 0;
26012 _ACEOF
26013 rm -f conftest.$ac_objext
26014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26015 (eval $ac_compile) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
26019 { ac_try='test -s conftest.$ac_objext'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; }; then
26025 glibcxx_cv_func_strtof_use=yes
26026 else
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 glibcxx_cv_func_strtof_use=no
26032 rm -f conftest.$ac_objext conftest.$ac_ext
26033 ac_ext=c
26034 ac_cpp='$CPP $CPPFLAGS'
26035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26043 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
26044 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
26045 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
26047 for ac_func in strtof
26049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26050 echo "$as_me:$LINENO: checking for $ac_func" >&5
26051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26052 if eval "test \"\${$as_ac_var+set}\" = set"; then
26053 echo $ECHO_N "(cached) $ECHO_C" >&6
26054 else
26055 if test x$gcc_no_link = xyes; then
26056 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26057 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26058 { (exit 1); exit 1; }; }
26060 cat >conftest.$ac_ext <<_ACEOF
26061 #line $LINENO "configure"
26062 /* confdefs.h. */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26067 /* System header to define __stub macros and hopefully few prototypes,
26068 which can conflict with char $ac_func (); below.
26069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26070 <limits.h> exists even on freestanding compilers. */
26071 #ifdef __STDC__
26072 # include <limits.h>
26073 #else
26074 # include <assert.h>
26075 #endif
26076 /* Override any gcc2 internal prototype to avoid an error. */
26077 #ifdef __cplusplus
26078 extern "C"
26080 #endif
26081 /* We use char because int might match the return type of a gcc2
26082 builtin and then its argument prototype would still apply. */
26083 char $ac_func ();
26084 /* The GNU C library defines this for functions which it implements
26085 to always fail with ENOSYS. Some functions are actually named
26086 something starting with __ and the normal name is an alias. */
26087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26088 choke me
26089 #else
26090 char (*f) () = $ac_func;
26091 #endif
26092 #ifdef __cplusplus
26094 #endif
26097 main ()
26099 return f != $ac_func;
26101 return 0;
26103 _ACEOF
26104 rm -f conftest.$ac_objext conftest$ac_exeext
26105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26106 (eval $ac_link) 2>&5
26107 ac_status=$?
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } &&
26110 { ac_try='test -s conftest$ac_exeext'
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116 eval "$as_ac_var=yes"
26117 else
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26121 eval "$as_ac_var=no"
26123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26127 if test `eval echo '${'$as_ac_var'}'` = yes; then
26128 cat >>confdefs.h <<_ACEOF
26129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26130 _ACEOF
26133 done
26138 echo "$as_me:$LINENO: checking for lrand48 declaration" >&5
26139 echo $ECHO_N "checking for lrand48 declaration... $ECHO_C" >&6
26140 if test x${glibcxx_cv_func_lrand48_use+set} != xset; then
26141 if test "${glibcxx_cv_func_lrand48_use+set}" = set; then
26142 echo $ECHO_N "(cached) $ECHO_C" >&6
26143 else
26147 ac_ext=cc
26148 ac_cpp='$CXXCPP $CPPFLAGS'
26149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26153 cat >conftest.$ac_ext <<_ACEOF
26154 #line $LINENO "configure"
26155 /* confdefs.h. */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 #include <stdlib.h>
26162 main ()
26164 lrand48();
26166 return 0;
26168 _ACEOF
26169 rm -f conftest.$ac_objext
26170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26171 (eval $ac_compile) 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_lrand48_use=yes
26182 else
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26186 glibcxx_cv_func_lrand48_use=no
26188 rm -f 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_lrand48_use" >&5
26200 echo "${ECHO_T}$glibcxx_cv_func_lrand48_use" >&6
26201 if test x$glibcxx_cv_func_lrand48_use = x"yes"; then
26203 for ac_func in lrand48
26205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26206 echo "$as_me:$LINENO: checking for $ac_func" >&5
26207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26208 if eval "test \"\${$as_ac_var+set}\" = set"; then
26209 echo $ECHO_N "(cached) $ECHO_C" >&6
26210 else
26211 if test x$gcc_no_link = xyes; then
26212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26214 { (exit 1); exit 1; }; }
26216 cat >conftest.$ac_ext <<_ACEOF
26217 #line $LINENO "configure"
26218 /* confdefs.h. */
26219 _ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h. */
26223 /* System header to define __stub macros and hopefully few prototypes,
26224 which can conflict with char $ac_func (); below.
26225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26226 <limits.h> exists even on freestanding compilers. */
26227 #ifdef __STDC__
26228 # include <limits.h>
26229 #else
26230 # include <assert.h>
26231 #endif
26232 /* Override any gcc2 internal prototype to avoid an error. */
26233 #ifdef __cplusplus
26234 extern "C"
26236 #endif
26237 /* We use char because int might match the return type of a gcc2
26238 builtin and then its argument prototype would still apply. */
26239 char $ac_func ();
26240 /* The GNU C library defines this for functions which it implements
26241 to always fail with ENOSYS. Some functions are actually named
26242 something starting with __ and the normal name is an alias. */
26243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26244 choke me
26245 #else
26246 char (*f) () = $ac_func;
26247 #endif
26248 #ifdef __cplusplus
26250 #endif
26253 main ()
26255 return f != $ac_func;
26257 return 0;
26259 _ACEOF
26260 rm -f conftest.$ac_objext conftest$ac_exeext
26261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26262 (eval $ac_link) 2>&5
26263 ac_status=$?
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } &&
26266 { ac_try='test -s conftest$ac_exeext'
26267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; }; then
26272 eval "$as_ac_var=yes"
26273 else
26274 echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26277 eval "$as_ac_var=no"
26279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26283 if test `eval echo '${'$as_ac_var'}'` = yes; then
26284 cat >>confdefs.h <<_ACEOF
26285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26286 _ACEOF
26289 done
26294 CXXFLAGS="$ac_save_CXXFLAGS"
26297 # For showmanyc_helper().
26300 for ac_header in sys/ioctl.h sys/filio.h
26302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26304 echo "$as_me:$LINENO: checking for $ac_header" >&5
26305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26311 else
26312 # Is the header compilable?
26313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26315 cat >conftest.$ac_ext <<_ACEOF
26316 #line $LINENO "configure"
26317 /* confdefs.h. */
26318 _ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h. */
26322 $ac_includes_default
26323 #include <$ac_header>
26324 _ACEOF
26325 rm -f conftest.$ac_objext
26326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26327 (eval $ac_compile) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } &&
26331 { ac_try='test -s conftest.$ac_objext'
26332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333 (eval $ac_try) 2>&5
26334 ac_status=$?
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; }; then
26337 ac_header_compiler=yes
26338 else
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ac_header_compiler=no
26344 rm -f conftest.$ac_objext conftest.$ac_ext
26345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26346 echo "${ECHO_T}$ac_header_compiler" >&6
26348 # Is the header present?
26349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26351 cat >conftest.$ac_ext <<_ACEOF
26352 #line $LINENO "configure"
26353 /* confdefs.h. */
26354 _ACEOF
26355 cat confdefs.h >>conftest.$ac_ext
26356 cat >>conftest.$ac_ext <<_ACEOF
26357 /* end confdefs.h. */
26358 #include <$ac_header>
26359 _ACEOF
26360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26362 ac_status=$?
26363 grep -v '^ *+' conftest.er1 >conftest.err
26364 rm -f conftest.er1
26365 cat conftest.err >&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); } >/dev/null; then
26368 if test -s conftest.err; then
26369 ac_cpp_err=$ac_c_preproc_warn_flag
26370 else
26371 ac_cpp_err=
26373 else
26374 ac_cpp_err=yes
26376 if test -z "$ac_cpp_err"; then
26377 ac_header_preproc=yes
26378 else
26379 echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26382 ac_header_preproc=no
26384 rm -f conftest.err conftest.$ac_ext
26385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26386 echo "${ECHO_T}$ac_header_preproc" >&6
26388 # So? What about this header?
26389 case $ac_header_compiler:$ac_header_preproc in
26390 yes:no )
26391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26396 cat <<\_ASBOX
26397 ## ------------------------------------ ##
26398 ## Report this to bug-autoconf@gnu.org. ##
26399 ## ------------------------------------ ##
26400 _ASBOX
26402 sed "s/^/$as_me: WARNING: /" >&2
26404 no:yes )
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26412 cat <<\_ASBOX
26413 ## ------------------------------------ ##
26414 ## Report this to bug-autoconf@gnu.org. ##
26415 ## ------------------------------------ ##
26416 _ASBOX
26418 sed "s/^/$as_me: WARNING: /" >&2
26420 esac
26421 echo "$as_me:$LINENO: checking for $ac_header" >&5
26422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426 eval "$as_ac_Header=$ac_header_preproc"
26428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26433 cat >>confdefs.h <<_ACEOF
26434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26435 _ACEOF
26439 done
26442 if test "${glibcxx_cv_POLL+set}" = set; then
26443 echo $ECHO_N "(cached) $ECHO_C" >&6
26444 else
26446 if test x$gcc_no_link = xyes; then
26447 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26449 { (exit 1); exit 1; }; }
26451 cat >conftest.$ac_ext <<_ACEOF
26452 #line $LINENO "configure"
26453 /* confdefs.h. */
26454 _ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h. */
26458 #include <poll.h>
26460 main ()
26462 struct pollfd pfd[1];
26463 pfd[0].events = POLLIN;
26464 poll(pfd, 1, 0);
26466 return 0;
26468 _ACEOF
26469 rm -f conftest.$ac_objext conftest$ac_exeext
26470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26471 (eval $ac_link) 2>&5
26472 ac_status=$?
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } &&
26475 { ac_try='test -s conftest$ac_exeext'
26476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477 (eval $ac_try) 2>&5
26478 ac_status=$?
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; }; then
26481 glibcxx_cv_POLL=yes
26482 else
26483 echo "$as_me: failed program was:" >&5
26484 sed 's/^/| /' conftest.$ac_ext >&5
26486 glibcxx_cv_POLL=no
26488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26492 if test $glibcxx_cv_POLL = yes; then
26493 cat >>confdefs.h <<\_ACEOF
26494 #define HAVE_POLL 1
26495 _ACEOF
26500 if test "${glibcxx_cv_S_ISREG+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 #line $LINENO "configure"
26511 /* confdefs.h. */
26512 _ACEOF
26513 cat confdefs.h >>conftest.$ac_ext
26514 cat >>conftest.$ac_ext <<_ACEOF
26515 /* end confdefs.h. */
26516 #include <sys/stat.h>
26518 main ()
26520 struct stat buffer;
26521 fstat(0, &buffer);
26522 S_ISREG(buffer.st_mode);
26524 return 0;
26526 _ACEOF
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26529 (eval $ac_link) 2>&5
26530 ac_status=$?
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } &&
26533 { ac_try='test -s conftest$ac_exeext'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26539 glibcxx_cv_S_ISREG=yes
26540 else
26541 echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26544 glibcxx_cv_S_ISREG=no
26546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26550 if test "${glibcxx_cv_S_IFREG+set}" = set; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26552 else
26554 if test x$gcc_no_link = xyes; then
26555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26557 { (exit 1); exit 1; }; }
26559 cat >conftest.$ac_ext <<_ACEOF
26560 #line $LINENO "configure"
26561 /* confdefs.h. */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 #include <sys/stat.h>
26568 main ()
26570 struct stat buffer;
26571 fstat(0, &buffer);
26572 S_IFREG & buffer.st_mode;
26574 return 0;
26576 _ACEOF
26577 rm -f conftest.$ac_objext conftest$ac_exeext
26578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26579 (eval $ac_link) 2>&5
26580 ac_status=$?
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } &&
26583 { ac_try='test -s conftest$ac_exeext'
26584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585 (eval $ac_try) 2>&5
26586 ac_status=$?
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); }; }; then
26589 glibcxx_cv_S_IFREG=yes
26590 else
26591 echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26594 glibcxx_cv_S_IFREG=no
26596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26600 if test $glibcxx_cv_S_ISREG = yes; then
26601 cat >>confdefs.h <<\_ACEOF
26602 #define HAVE_S_ISREG 1
26603 _ACEOF
26605 elif test $glibcxx_cv_S_IFREG = yes; then
26606 cat >>confdefs.h <<\_ACEOF
26607 #define HAVE_S_IFREG 1
26608 _ACEOF
26613 # For xsputn_2().
26615 for ac_header in sys/uio.h
26617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26619 echo "$as_me:$LINENO: checking for $ac_header" >&5
26620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26622 echo $ECHO_N "(cached) $ECHO_C" >&6
26624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26626 else
26627 # Is the header compilable?
26628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26630 cat >conftest.$ac_ext <<_ACEOF
26631 #line $LINENO "configure"
26632 /* confdefs.h. */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26637 $ac_includes_default
26638 #include <$ac_header>
26639 _ACEOF
26640 rm -f conftest.$ac_objext
26641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26642 (eval $ac_compile) 2>&5
26643 ac_status=$?
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); } &&
26646 { ac_try='test -s conftest.$ac_objext'
26647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648 (eval $ac_try) 2>&5
26649 ac_status=$?
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652 ac_header_compiler=yes
26653 else
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26657 ac_header_compiler=no
26659 rm -f conftest.$ac_objext conftest.$ac_ext
26660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26661 echo "${ECHO_T}$ac_header_compiler" >&6
26663 # Is the header present?
26664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26666 cat >conftest.$ac_ext <<_ACEOF
26667 #line $LINENO "configure"
26668 /* confdefs.h. */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h. */
26673 #include <$ac_header>
26674 _ACEOF
26675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26677 ac_status=$?
26678 grep -v '^ *+' conftest.er1 >conftest.err
26679 rm -f conftest.er1
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } >/dev/null; then
26683 if test -s conftest.err; then
26684 ac_cpp_err=$ac_c_preproc_warn_flag
26685 else
26686 ac_cpp_err=
26688 else
26689 ac_cpp_err=yes
26691 if test -z "$ac_cpp_err"; then
26692 ac_header_preproc=yes
26693 else
26694 echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26697 ac_header_preproc=no
26699 rm -f conftest.err conftest.$ac_ext
26700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26701 echo "${ECHO_T}$ac_header_preproc" >&6
26703 # So? What about this header?
26704 case $ac_header_compiler:$ac_header_preproc in
26705 yes:no )
26706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26711 cat <<\_ASBOX
26712 ## ------------------------------------ ##
26713 ## Report this to bug-autoconf@gnu.org. ##
26714 ## ------------------------------------ ##
26715 _ASBOX
26717 sed "s/^/$as_me: WARNING: /" >&2
26719 no:yes )
26720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26727 cat <<\_ASBOX
26728 ## ------------------------------------ ##
26729 ## Report this to bug-autoconf@gnu.org. ##
26730 ## ------------------------------------ ##
26731 _ASBOX
26733 sed "s/^/$as_me: WARNING: /" >&2
26735 esac
26736 echo "$as_me:$LINENO: checking for $ac_header" >&5
26737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26739 echo $ECHO_N "(cached) $ECHO_C" >&6
26740 else
26741 eval "$as_ac_Header=$ac_header_preproc"
26743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26748 cat >>confdefs.h <<_ACEOF
26749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26750 _ACEOF
26754 done
26757 if test "${glibcxx_cv_WRITEV+set}" = set; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26761 if test x$gcc_no_link = xyes; then
26762 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26764 { (exit 1); exit 1; }; }
26766 cat >conftest.$ac_ext <<_ACEOF
26767 #line $LINENO "configure"
26768 /* confdefs.h. */
26769 _ACEOF
26770 cat confdefs.h >>conftest.$ac_ext
26771 cat >>conftest.$ac_ext <<_ACEOF
26772 /* end confdefs.h. */
26773 #include <sys/uio.h>
26775 main ()
26777 struct iovec iov[2];
26778 writev(0, iov, 0);
26780 return 0;
26782 _ACEOF
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26785 (eval $ac_link) 2>&5
26786 ac_status=$?
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } &&
26789 { ac_try='test -s conftest$ac_exeext'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
26795 glibcxx_cv_WRITEV=yes
26796 else
26797 echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26800 glibcxx_cv_WRITEV=no
26802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26806 if test $glibcxx_cv_WRITEV = yes; then
26807 cat >>confdefs.h <<\_ACEOF
26808 #define HAVE_WRITEV 1
26809 _ACEOF
26814 # For the __streamoff_base_type typedef.
26816 if test "${glibcxx_cv_INT64_T+set}" = set; then
26817 echo $ECHO_N "(cached) $ECHO_C" >&6
26818 else
26820 cat >conftest.$ac_ext <<_ACEOF
26821 #line $LINENO "configure"
26822 /* confdefs.h. */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26827 #include <stdint.h>
26829 main ()
26831 int64_t var;
26833 return 0;
26835 _ACEOF
26836 rm -f conftest.$ac_objext
26837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26838 (eval $ac_compile) 2>&5
26839 ac_status=$?
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); } &&
26842 { ac_try='test -s conftest.$ac_objext'
26843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844 (eval $ac_try) 2>&5
26845 ac_status=$?
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); }; }; then
26848 glibcxx_cv_INT64_T=yes
26849 else
26850 echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26853 glibcxx_cv_INT64_T=no
26855 rm -f conftest.$ac_objext conftest.$ac_ext
26859 if test $glibcxx_cv_INT64_T = yes; then
26860 cat >>confdefs.h <<\_ACEOF
26861 #define HAVE_INT64_T 1
26862 _ACEOF
26867 # For LFS support.
26869 if test "${glibcxx_cv_LFS+set}" = set; then
26870 echo $ECHO_N "(cached) $ECHO_C" >&6
26871 else
26873 if test x$gcc_no_link = xyes; then
26874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26876 { (exit 1); exit 1; }; }
26878 cat >conftest.$ac_ext <<_ACEOF
26879 #line $LINENO "configure"
26880 /* confdefs.h. */
26881 _ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26885 #include <unistd.h>
26887 main ()
26889 fopen64("t", "w");
26890 lseek64(1, 0, SEEK_CUR);
26892 return 0;
26894 _ACEOF
26895 rm -f conftest.$ac_objext conftest$ac_exeext
26896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26897 (eval $ac_link) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } &&
26901 { ac_try='test -s conftest$ac_exeext'
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 glibcxx_cv_LFS=yes
26908 else
26909 echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26912 glibcxx_cv_LFS=no
26914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26918 if test $glibcxx_cv_LFS = yes; then
26919 cat >>confdefs.h <<\_ACEOF
26920 #define _GLIBCXX_USE_LFS 1
26921 _ACEOF
26927 if test "${ac_cv_header_locale_h+set}" = set; then
26928 echo "$as_me:$LINENO: checking for locale.h" >&5
26929 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26930 if test "${ac_cv_header_locale_h+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26934 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26935 else
26936 # Is the header compilable?
26937 echo "$as_me:$LINENO: checking locale.h usability" >&5
26938 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26939 cat >conftest.$ac_ext <<_ACEOF
26940 #line $LINENO "configure"
26941 /* confdefs.h. */
26942 _ACEOF
26943 cat confdefs.h >>conftest.$ac_ext
26944 cat >>conftest.$ac_ext <<_ACEOF
26945 /* end confdefs.h. */
26946 $ac_includes_default
26947 #include <locale.h>
26948 _ACEOF
26949 rm -f conftest.$ac_objext
26950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26951 (eval $ac_compile) 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } &&
26955 { ac_try='test -s conftest.$ac_objext'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 ac_header_compiler=yes
26962 else
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26966 ac_header_compiler=no
26968 rm -f conftest.$ac_objext conftest.$ac_ext
26969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26970 echo "${ECHO_T}$ac_header_compiler" >&6
26972 # Is the header present?
26973 echo "$as_me:$LINENO: checking locale.h presence" >&5
26974 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26975 cat >conftest.$ac_ext <<_ACEOF
26976 #line $LINENO "configure"
26977 /* confdefs.h. */
26978 _ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h. */
26982 #include <locale.h>
26983 _ACEOF
26984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26986 ac_status=$?
26987 grep -v '^ *+' conftest.er1 >conftest.err
26988 rm -f conftest.er1
26989 cat conftest.err >&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); } >/dev/null; then
26992 if test -s conftest.err; then
26993 ac_cpp_err=$ac_c_preproc_warn_flag
26994 else
26995 ac_cpp_err=
26997 else
26998 ac_cpp_err=yes
27000 if test -z "$ac_cpp_err"; then
27001 ac_header_preproc=yes
27002 else
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_header_preproc=no
27008 rm -f conftest.err conftest.$ac_ext
27009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27010 echo "${ECHO_T}$ac_header_preproc" >&6
27012 # So? What about this header?
27013 case $ac_header_compiler:$ac_header_preproc in
27014 yes:no )
27015 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
27016 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
27018 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
27020 cat <<\_ASBOX
27021 ## ------------------------------------ ##
27022 ## Report this to bug-autoconf@gnu.org. ##
27023 ## ------------------------------------ ##
27024 _ASBOX
27026 sed "s/^/$as_me: WARNING: /" >&2
27028 no:yes )
27029 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
27030 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
27031 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
27032 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
27033 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
27034 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
27036 cat <<\_ASBOX
27037 ## ------------------------------------ ##
27038 ## Report this to bug-autoconf@gnu.org. ##
27039 ## ------------------------------------ ##
27040 _ASBOX
27042 sed "s/^/$as_me: WARNING: /" >&2
27044 esac
27045 echo "$as_me:$LINENO: checking for locale.h" >&5
27046 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
27047 if test "${ac_cv_header_locale_h+set}" = set; then
27048 echo $ECHO_N "(cached) $ECHO_C" >&6
27049 else
27050 ac_cv_header_locale_h=$ac_header_preproc
27052 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
27053 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
27056 if test $ac_cv_header_locale_h = yes; then
27058 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
27059 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
27060 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27062 else
27063 if test x$gcc_no_link = xyes; then
27064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27066 { (exit 1); exit 1; }; }
27068 cat >conftest.$ac_ext <<_ACEOF
27069 #line $LINENO "configure"
27070 /* confdefs.h. */
27071 _ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27075 #include <locale.h>
27077 main ()
27079 return LC_MESSAGES
27081 return 0;
27083 _ACEOF
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27086 (eval $ac_link) 2>&5
27087 ac_status=$?
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); } &&
27090 { ac_try='test -s conftest$ac_exeext'
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27093 ac_status=$?
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; }; then
27096 ac_cv_val_LC_MESSAGES=yes
27097 else
27098 echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 ac_cv_val_LC_MESSAGES=no
27103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27105 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
27106 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
27107 if test $ac_cv_val_LC_MESSAGES = yes; then
27108 cat >>confdefs.h <<\_ACEOF
27109 #define HAVE_LC_MESSAGES 1
27110 _ACEOF
27119 cat >conftest.$ac_ext <<_ACEOF
27120 #line $LINENO "configure"
27121 /* confdefs.h. */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27126 #include <setjmp.h>
27128 main ()
27130 sigjmp_buf env;
27131 while (! sigsetjmp (env, 1))
27132 siglongjmp (env, 1);
27135 return 0;
27137 _ACEOF
27138 rm -f conftest.$ac_objext
27139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27140 (eval $ac_compile) 2>&5
27141 ac_status=$?
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } &&
27144 { ac_try='test -s conftest.$ac_objext'
27145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; }; then
27151 cat >>confdefs.h <<\_ACEOF
27152 #define HAVE_SIGSETJMP 1
27153 _ACEOF
27155 else
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27160 rm -f conftest.$ac_objext conftest.$ac_ext
27162 if test x$gcc_no_link = xyes; then
27163 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
27164 ac_cv_func_mmap_fixed_mapped=no
27167 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
27170 for ac_header in stdlib.h unistd.h
27172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27174 echo "$as_me:$LINENO: checking for $ac_header" >&5
27175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27181 else
27182 # Is the header compilable?
27183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27185 cat >conftest.$ac_ext <<_ACEOF
27186 #line $LINENO "configure"
27187 /* confdefs.h. */
27188 _ACEOF
27189 cat confdefs.h >>conftest.$ac_ext
27190 cat >>conftest.$ac_ext <<_ACEOF
27191 /* end confdefs.h. */
27192 $ac_includes_default
27193 #include <$ac_header>
27194 _ACEOF
27195 rm -f conftest.$ac_objext
27196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27197 (eval $ac_compile) 2>&5
27198 ac_status=$?
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } &&
27201 { ac_try='test -s conftest.$ac_objext'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; }; then
27207 ac_header_compiler=yes
27208 else
27209 echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27212 ac_header_compiler=no
27214 rm -f conftest.$ac_objext conftest.$ac_ext
27215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27216 echo "${ECHO_T}$ac_header_compiler" >&6
27218 # Is the header present?
27219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27221 cat >conftest.$ac_ext <<_ACEOF
27222 #line $LINENO "configure"
27223 /* confdefs.h. */
27224 _ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h. */
27228 #include <$ac_header>
27229 _ACEOF
27230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27232 ac_status=$?
27233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } >/dev/null; then
27238 if test -s conftest.err; then
27239 ac_cpp_err=$ac_c_preproc_warn_flag
27240 else
27241 ac_cpp_err=
27243 else
27244 ac_cpp_err=yes
27246 if test -z "$ac_cpp_err"; then
27247 ac_header_preproc=yes
27248 else
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_header_preproc=no
27254 rm -f conftest.err conftest.$ac_ext
27255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27256 echo "${ECHO_T}$ac_header_preproc" >&6
27258 # So? What about this header?
27259 case $ac_header_compiler:$ac_header_preproc in
27260 yes:no )
27261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27266 cat <<\_ASBOX
27267 ## ------------------------------------ ##
27268 ## Report this to bug-autoconf@gnu.org. ##
27269 ## ------------------------------------ ##
27270 _ASBOX
27272 sed "s/^/$as_me: WARNING: /" >&2
27274 no:yes )
27275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27282 cat <<\_ASBOX
27283 ## ------------------------------------ ##
27284 ## Report this to bug-autoconf@gnu.org. ##
27285 ## ------------------------------------ ##
27286 _ASBOX
27288 sed "s/^/$as_me: WARNING: /" >&2
27290 esac
27291 echo "$as_me:$LINENO: checking for $ac_header" >&5
27292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296 eval "$as_ac_Header=$ac_header_preproc"
27298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27303 cat >>confdefs.h <<_ACEOF
27304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27305 _ACEOF
27309 done
27312 for ac_func in getpagesize
27314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27315 echo "$as_me:$LINENO: checking for $ac_func" >&5
27316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27317 if eval "test \"\${$as_ac_var+set}\" = set"; then
27318 echo $ECHO_N "(cached) $ECHO_C" >&6
27319 else
27320 if test x$gcc_no_link = xyes; then
27321 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27323 { (exit 1); exit 1; }; }
27325 cat >conftest.$ac_ext <<_ACEOF
27326 #line $LINENO "configure"
27327 /* confdefs.h. */
27328 _ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27332 /* System header to define __stub macros and hopefully few prototypes,
27333 which can conflict with char $ac_func (); below.
27334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27335 <limits.h> exists even on freestanding compilers. */
27336 #ifdef __STDC__
27337 # include <limits.h>
27338 #else
27339 # include <assert.h>
27340 #endif
27341 /* Override any gcc2 internal prototype to avoid an error. */
27342 #ifdef __cplusplus
27343 extern "C"
27345 #endif
27346 /* We use char because int might match the return type of a gcc2
27347 builtin and then its argument prototype would still apply. */
27348 char $ac_func ();
27349 /* The GNU C library defines this for functions which it implements
27350 to always fail with ENOSYS. Some functions are actually named
27351 something starting with __ and the normal name is an alias. */
27352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27353 choke me
27354 #else
27355 char (*f) () = $ac_func;
27356 #endif
27357 #ifdef __cplusplus
27359 #endif
27362 main ()
27364 return f != $ac_func;
27366 return 0;
27368 _ACEOF
27369 rm -f conftest.$ac_objext conftest$ac_exeext
27370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27371 (eval $ac_link) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
27375 { ac_try='test -s conftest$ac_exeext'
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; }; then
27381 eval "$as_ac_var=yes"
27382 else
27383 echo "$as_me: failed program was:" >&5
27384 sed 's/^/| /' conftest.$ac_ext >&5
27386 eval "$as_ac_var=no"
27388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27392 if test `eval echo '${'$as_ac_var'}'` = yes; then
27393 cat >>confdefs.h <<_ACEOF
27394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27395 _ACEOF
27398 done
27400 echo "$as_me:$LINENO: checking for working mmap" >&5
27401 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27402 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27404 else
27405 if test "$cross_compiling" = yes; then
27406 ac_cv_func_mmap_fixed_mapped=no
27407 else
27408 cat >conftest.$ac_ext <<_ACEOF
27409 #line $LINENO "configure"
27410 /* confdefs.h. */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27415 $ac_includes_default
27416 /* malloc might have been renamed as rpl_malloc. */
27417 #undef malloc
27419 /* Thanks to Mike Haertel and Jim Avera for this test.
27420 Here is a matrix of mmap possibilities:
27421 mmap private not fixed
27422 mmap private fixed at somewhere currently unmapped
27423 mmap private fixed at somewhere already mapped
27424 mmap shared not fixed
27425 mmap shared fixed at somewhere currently unmapped
27426 mmap shared fixed at somewhere already mapped
27427 For private mappings, we should verify that changes cannot be read()
27428 back from the file, nor mmap's back from the file at a different
27429 address. (There have been systems where private was not correctly
27430 implemented like the infamous i386 svr4.0, and systems where the
27431 VM page cache was not coherent with the file system buffer cache
27432 like early versions of FreeBSD and possibly contemporary NetBSD.)
27433 For shared mappings, we should conversely verify that changes get
27434 propagated back to all the places they're supposed to be.
27436 Grep wants private fixed already mapped.
27437 The main things grep needs to know about mmap are:
27438 * does it exist and is it safe to write into the mmap'd area
27439 * how to use it (BSD variants) */
27441 #include <fcntl.h>
27442 #include <sys/mman.h>
27444 #if !STDC_HEADERS && !HAVE_STDLIB_H
27445 char *malloc ();
27446 #endif
27448 /* This mess was copied from the GNU getpagesize.h. */
27449 #if !HAVE_GETPAGESIZE
27450 /* Assume that all systems that can run configure have sys/param.h. */
27451 # if !HAVE_SYS_PARAM_H
27452 # define HAVE_SYS_PARAM_H 1
27453 # endif
27455 # ifdef _SC_PAGESIZE
27456 # define getpagesize() sysconf(_SC_PAGESIZE)
27457 # else /* no _SC_PAGESIZE */
27458 # if HAVE_SYS_PARAM_H
27459 # include <sys/param.h>
27460 # ifdef EXEC_PAGESIZE
27461 # define getpagesize() EXEC_PAGESIZE
27462 # else /* no EXEC_PAGESIZE */
27463 # ifdef NBPG
27464 # define getpagesize() NBPG * CLSIZE
27465 # ifndef CLSIZE
27466 # define CLSIZE 1
27467 # endif /* no CLSIZE */
27468 # else /* no NBPG */
27469 # ifdef NBPC
27470 # define getpagesize() NBPC
27471 # else /* no NBPC */
27472 # ifdef PAGESIZE
27473 # define getpagesize() PAGESIZE
27474 # endif /* PAGESIZE */
27475 # endif /* no NBPC */
27476 # endif /* no NBPG */
27477 # endif /* no EXEC_PAGESIZE */
27478 # else /* no HAVE_SYS_PARAM_H */
27479 # define getpagesize() 8192 /* punt totally */
27480 # endif /* no HAVE_SYS_PARAM_H */
27481 # endif /* no _SC_PAGESIZE */
27483 #endif /* no HAVE_GETPAGESIZE */
27486 main ()
27488 char *data, *data2, *data3;
27489 int i, pagesize;
27490 int fd;
27492 pagesize = getpagesize ();
27494 /* First, make a file with some known garbage in it. */
27495 data = (char *) malloc (pagesize);
27496 if (!data)
27497 exit (1);
27498 for (i = 0; i < pagesize; ++i)
27499 *(data + i) = rand ();
27500 umask (0);
27501 fd = creat ("conftest.mmap", 0600);
27502 if (fd < 0)
27503 exit (1);
27504 if (write (fd, data, pagesize) != pagesize)
27505 exit (1);
27506 close (fd);
27508 /* Next, try to mmap the file at a fixed address which already has
27509 something else allocated at it. If we can, also make sure that
27510 we see the same garbage. */
27511 fd = open ("conftest.mmap", O_RDWR);
27512 if (fd < 0)
27513 exit (1);
27514 data2 = (char *) malloc (2 * pagesize);
27515 if (!data2)
27516 exit (1);
27517 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
27518 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27519 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27520 exit (1);
27521 for (i = 0; i < pagesize; ++i)
27522 if (*(data + i) != *(data2 + i))
27523 exit (1);
27525 /* Finally, make sure that changes to the mapped area do not
27526 percolate back to the file as seen by read(). (This is a bug on
27527 some variants of i386 svr4.0.) */
27528 for (i = 0; i < pagesize; ++i)
27529 *(data2 + i) = *(data2 + i) + 1;
27530 data3 = (char *) malloc (pagesize);
27531 if (!data3)
27532 exit (1);
27533 if (read (fd, data3, pagesize) != pagesize)
27534 exit (1);
27535 for (i = 0; i < pagesize; ++i)
27536 if (*(data + i) != *(data3 + i))
27537 exit (1);
27538 close (fd);
27539 exit (0);
27541 _ACEOF
27542 rm -f conftest$ac_exeext
27543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27544 (eval $ac_link) 2>&5
27545 ac_status=$?
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; }; then
27553 ac_cv_func_mmap_fixed_mapped=yes
27554 else
27555 echo "$as_me: program exited with status $ac_status" >&5
27556 echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27559 ( exit $ac_status )
27560 ac_cv_func_mmap_fixed_mapped=no
27562 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27565 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27566 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
27567 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27569 cat >>confdefs.h <<\_ACEOF
27570 #define HAVE_MMAP 1
27571 _ACEOF
27574 rm -f conftest.mmap
27578 else
27580 # This lets us hard-code the functionality we know we'll have in the cross
27581 # target environment. "Let" is a sugar-coated word placed on an especially
27582 # dull and tedious hack, actually.
27584 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27585 # that involve linking, can't be used:
27586 # "cannot open sim-crt0.o"
27587 # "cannot open crt0.o"
27588 # etc. All this is because there currently exists no unified, consistent
27589 # way for top level CC information to be passed down to target directories:
27590 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27591 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27592 # crosses can be removed.
27594 # If Canadian cross, then don't pick up tools from the build directory.
27595 # Used only in GLIBCXX_EXPORT_INCLUDES.
27596 if test -n "$with_cross_host" &&
27597 test x"$build_alias" != x"$with_cross_host" &&
27598 test x"$build" != x"$target";
27599 then
27600 CANADIAN=yes
27601 else
27602 CANADIAN=no
27605 # Construct crosses by hand, eliminating bits that need ld...
27606 # GLIBCXX_CHECK_COMPILER_FEATURES
27607 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
27608 # GLIBCXX_CHECK_MATH_SUPPORT
27610 # First, test for "known" system libraries. We may be using newlib even
27611 # on a hosted environment.
27612 if test "x${with_newlib}" = "xyes"; then
27613 os_include_dir="os/newlib"
27614 cat >>confdefs.h <<\_ACEOF
27615 #define HAVE_HYPOT 1
27616 _ACEOF
27619 # GLIBCXX_CHECK_STDLIB_SUPPORT
27620 cat >>confdefs.h <<\_ACEOF
27621 #define HAVE_STRTOF 1
27622 _ACEOF
27624 cat >>confdefs.h <<\_ACEOF
27625 #define HAVE_STRTOLD 1
27626 _ACEOF
27628 # AC_FUNC_MMAP
27629 cat >>confdefs.h <<\_ACEOF
27630 #define HAVE_MMAP 1
27631 _ACEOF
27634 cat >>confdefs.h <<\_ACEOF
27635 #define HAVE_ACOSF 1
27636 _ACEOF
27638 cat >>confdefs.h <<\_ACEOF
27639 #define HAVE_ASINF 1
27640 _ACEOF
27642 cat >>confdefs.h <<\_ACEOF
27643 #define HAVE_ATAN2F 1
27644 _ACEOF
27646 cat >>confdefs.h <<\_ACEOF
27647 #define HAVE_ATANF 1
27648 _ACEOF
27650 cat >>confdefs.h <<\_ACEOF
27651 #define HAVE_CEILF 1
27652 _ACEOF
27654 cat >>confdefs.h <<\_ACEOF
27655 #define HAVE_COPYSIGN 1
27656 _ACEOF
27658 cat >>confdefs.h <<\_ACEOF
27659 #define HAVE_COPYSIGNF 1
27660 _ACEOF
27662 cat >>confdefs.h <<\_ACEOF
27663 #define HAVE_COSF 1
27664 _ACEOF
27666 cat >>confdefs.h <<\_ACEOF
27667 #define HAVE_COSHF 1
27668 _ACEOF
27670 cat >>confdefs.h <<\_ACEOF
27671 #define HAVE_EXPF 1
27672 _ACEOF
27674 cat >>confdefs.h <<\_ACEOF
27675 #define HAVE_FABSF 1
27676 _ACEOF
27678 cat >>confdefs.h <<\_ACEOF
27679 #define HAVE_FLOORF 1
27680 _ACEOF
27682 cat >>confdefs.h <<\_ACEOF
27683 #define HAVE_FMODF 1
27684 _ACEOF
27686 cat >>confdefs.h <<\_ACEOF
27687 #define HAVE_FREXPF 1
27688 _ACEOF
27690 cat >>confdefs.h <<\_ACEOF
27691 #define HAVE_LDEXPF 1
27692 _ACEOF
27694 cat >>confdefs.h <<\_ACEOF
27695 #define HAVE_LOG10F 1
27696 _ACEOF
27698 cat >>confdefs.h <<\_ACEOF
27699 #define HAVE_LOGF 1
27700 _ACEOF
27702 cat >>confdefs.h <<\_ACEOF
27703 #define HAVE_MODFF 1
27704 _ACEOF
27706 cat >>confdefs.h <<\_ACEOF
27707 #define HAVE_POWF 1
27708 _ACEOF
27710 cat >>confdefs.h <<\_ACEOF
27711 #define HAVE_SINF 1
27712 _ACEOF
27714 cat >>confdefs.h <<\_ACEOF
27715 #define HAVE_SINHF 1
27716 _ACEOF
27718 cat >>confdefs.h <<\_ACEOF
27719 #define HAVE_SQRTF 1
27720 _ACEOF
27722 cat >>confdefs.h <<\_ACEOF
27723 #define HAVE_TANF 1
27724 _ACEOF
27726 cat >>confdefs.h <<\_ACEOF
27727 #define HAVE_TANHF 1
27728 _ACEOF
27730 else
27732 # Base decisions on target environment.
27733 case "${host}" in
27734 *-darwin*)
27735 # Darwin versions vary, but the linker should work in a cross environment,
27736 # so we just check for all the features here.
27737 # Check for available headers.
27751 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
27752 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
27753 sys/types.h
27755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27757 echo "$as_me:$LINENO: checking for $ac_header" >&5
27758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27760 echo $ECHO_N "(cached) $ECHO_C" >&6
27762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27764 else
27765 # Is the header compilable?
27766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27768 cat >conftest.$ac_ext <<_ACEOF
27769 #line $LINENO "configure"
27770 /* confdefs.h. */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 $ac_includes_default
27776 #include <$ac_header>
27777 _ACEOF
27778 rm -f conftest.$ac_objext
27779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27780 (eval $ac_compile) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); } &&
27784 { ac_try='test -s conftest.$ac_objext'
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27787 ac_status=$?
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; }; then
27790 ac_header_compiler=yes
27791 else
27792 echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27795 ac_header_compiler=no
27797 rm -f conftest.$ac_objext conftest.$ac_ext
27798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27799 echo "${ECHO_T}$ac_header_compiler" >&6
27801 # Is the header present?
27802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27804 cat >conftest.$ac_ext <<_ACEOF
27805 #line $LINENO "configure"
27806 /* confdefs.h. */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 #include <$ac_header>
27812 _ACEOF
27813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27815 ac_status=$?
27816 grep -v '^ *+' conftest.er1 >conftest.err
27817 rm -f conftest.er1
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } >/dev/null; then
27821 if test -s conftest.err; then
27822 ac_cpp_err=$ac_c_preproc_warn_flag
27823 else
27824 ac_cpp_err=
27826 else
27827 ac_cpp_err=yes
27829 if test -z "$ac_cpp_err"; then
27830 ac_header_preproc=yes
27831 else
27832 echo "$as_me: failed program was:" >&5
27833 sed 's/^/| /' conftest.$ac_ext >&5
27835 ac_header_preproc=no
27837 rm -f conftest.err conftest.$ac_ext
27838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27839 echo "${ECHO_T}$ac_header_preproc" >&6
27841 # So? What about this header?
27842 case $ac_header_compiler:$ac_header_preproc in
27843 yes:no )
27844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27849 cat <<\_ASBOX
27850 ## ------------------------------------ ##
27851 ## Report this to bug-autoconf@gnu.org. ##
27852 ## ------------------------------------ ##
27853 _ASBOX
27855 sed "s/^/$as_me: WARNING: /" >&2
27857 no:yes )
27858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27865 cat <<\_ASBOX
27866 ## ------------------------------------ ##
27867 ## Report this to bug-autoconf@gnu.org. ##
27868 ## ------------------------------------ ##
27869 _ASBOX
27871 sed "s/^/$as_me: WARNING: /" >&2
27873 esac
27874 echo "$as_me:$LINENO: checking for $ac_header" >&5
27875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27877 echo $ECHO_N "(cached) $ECHO_C" >&6
27878 else
27879 eval "$as_ac_Header=$ac_header_preproc"
27881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27886 cat >>confdefs.h <<_ACEOF
27887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27888 _ACEOF
27892 done
27896 # All these tests are for C++; save the language and the compiler flags.
27897 # The CXXFLAGS thing is suspicious, but based on similar bits previously
27898 # found in GLIBCXX_CONFIGURE.
27901 ac_ext=cc
27902 ac_cpp='$CXXCPP $CPPFLAGS'
27903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27907 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27908 ac_save_CXXFLAGS="$CXXFLAGS"
27910 # Check for maintainer-mode bits.
27911 if test x"$USE_MAINTAINER_MODE" = xno; then
27912 WERROR=''
27913 else
27914 WERROR='-Werror'
27917 # Check for -ffunction-sections -fdata-sections
27918 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
27919 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
27920 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
27921 cat >conftest.$ac_ext <<_ACEOF
27922 #line $LINENO "configure"
27923 /* confdefs.h. */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27930 main ()
27932 int foo;
27934 return 0;
27936 _ACEOF
27937 rm -f conftest.$ac_objext
27938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27939 (eval $ac_compile) 2>&5
27940 ac_status=$?
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); } &&
27943 { ac_try='test -s conftest.$ac_objext'
27944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945 (eval $ac_try) 2>&5
27946 ac_status=$?
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; }; then
27949 ac_fdsections=yes
27950 else
27951 echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27954 ac_fdsections=no
27956 rm -f conftest.$ac_objext conftest.$ac_ext
27957 if test "$ac_test_CXXFLAGS" = set; then
27958 CXXFLAGS="$ac_save_CXXFLAGS"
27959 else
27960 # this is the suspicious part
27961 CXXFLAGS=''
27963 if test x"$ac_fdsections" = x"yes"; then
27964 SECTION_FLAGS='-ffunction-sections -fdata-sections'
27966 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
27967 echo "${ECHO_T}$ac_fdsections" >&6
27969 ac_ext=c
27970 ac_cpp='$CPP $CPPFLAGS'
27971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27978 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
27980 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27981 ac_save_CXXFLAGS="$CXXFLAGS"
27982 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
27984 echo "$as_me:$LINENO: checking for sin in -lm" >&5
27985 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
27986 if test "${ac_cv_lib_m_sin+set}" = set; then
27987 echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989 ac_check_lib_save_LIBS=$LIBS
27990 LIBS="-lm $LIBS"
27991 if test x$gcc_no_link = xyes; then
27992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27994 { (exit 1); exit 1; }; }
27996 cat >conftest.$ac_ext <<_ACEOF
27997 #line $LINENO "configure"
27998 /* confdefs.h. */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28004 /* Override any gcc2 internal prototype to avoid an error. */
28005 #ifdef __cplusplus
28006 extern "C"
28007 #endif
28008 /* We use char because int might match the return type of a gcc2
28009 builtin and then its argument prototype would still apply. */
28010 char sin ();
28012 main ()
28014 sin ();
28016 return 0;
28018 _ACEOF
28019 rm -f conftest.$ac_objext conftest$ac_exeext
28020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28021 (eval $ac_link) 2>&5
28022 ac_status=$?
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } &&
28025 { ac_try='test -s conftest$ac_exeext'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28028 ac_status=$?
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; }; then
28031 ac_cv_lib_m_sin=yes
28032 else
28033 echo "$as_me: failed program was:" >&5
28034 sed 's/^/| /' conftest.$ac_ext >&5
28036 ac_cv_lib_m_sin=no
28038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28039 LIBS=$ac_check_lib_save_LIBS
28041 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
28042 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
28043 if test $ac_cv_lib_m_sin = yes; then
28044 libm="-lm"
28047 ac_save_LIBS="$LIBS"
28048 LIBS="$LIBS $libm"
28052 echo "$as_me:$LINENO: checking for isinf declaration" >&5
28053 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
28054 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
28055 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
28056 echo $ECHO_N "(cached) $ECHO_C" >&6
28057 else
28061 ac_ext=cc
28062 ac_cpp='$CXXCPP $CPPFLAGS'
28063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28067 cat >conftest.$ac_ext <<_ACEOF
28068 #line $LINENO "configure"
28069 /* confdefs.h. */
28070 _ACEOF
28071 cat confdefs.h >>conftest.$ac_ext
28072 cat >>conftest.$ac_ext <<_ACEOF
28073 /* end confdefs.h. */
28074 #include <math.h>
28075 #ifdef HAVE_IEEEFP_H
28076 #include <ieeefp.h>
28077 #endif
28080 main ()
28082 isinf(0);
28084 return 0;
28086 _ACEOF
28087 rm -f conftest.$ac_objext
28088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28089 (eval $ac_compile) 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); } &&
28093 { ac_try='test -s conftest.$ac_objext'
28094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095 (eval $ac_try) 2>&5
28096 ac_status=$?
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; }; then
28099 glibcxx_cv_func_isinf_use=yes
28100 else
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28104 glibcxx_cv_func_isinf_use=no
28106 rm -f conftest.$ac_objext conftest.$ac_ext
28107 ac_ext=c
28108 ac_cpp='$CPP $CPPFLAGS'
28109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28117 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
28118 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
28120 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
28122 for ac_func in isinf
28124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28125 echo "$as_me:$LINENO: checking for $ac_func" >&5
28126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28127 if eval "test \"\${$as_ac_var+set}\" = set"; then
28128 echo $ECHO_N "(cached) $ECHO_C" >&6
28129 else
28130 if test x$gcc_no_link = xyes; then
28131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28133 { (exit 1); exit 1; }; }
28135 cat >conftest.$ac_ext <<_ACEOF
28136 #line $LINENO "configure"
28137 /* confdefs.h. */
28138 _ACEOF
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h. */
28142 /* System header to define __stub macros and hopefully few prototypes,
28143 which can conflict with char $ac_func (); below.
28144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28145 <limits.h> exists even on freestanding compilers. */
28146 #ifdef __STDC__
28147 # include <limits.h>
28148 #else
28149 # include <assert.h>
28150 #endif
28151 /* Override any gcc2 internal prototype to avoid an error. */
28152 #ifdef __cplusplus
28153 extern "C"
28155 #endif
28156 /* We use char because int might match the return type of a gcc2
28157 builtin and then its argument prototype would still apply. */
28158 char $ac_func ();
28159 /* The GNU C library defines this for functions which it implements
28160 to always fail with ENOSYS. Some functions are actually named
28161 something starting with __ and the normal name is an alias. */
28162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28163 choke me
28164 #else
28165 char (*f) () = $ac_func;
28166 #endif
28167 #ifdef __cplusplus
28169 #endif
28172 main ()
28174 return f != $ac_func;
28176 return 0;
28178 _ACEOF
28179 rm -f conftest.$ac_objext conftest$ac_exeext
28180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28181 (eval $ac_link) 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); } &&
28185 { ac_try='test -s conftest$ac_exeext'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; }; then
28191 eval "$as_ac_var=yes"
28192 else
28193 echo "$as_me: failed program was:" >&5
28194 sed 's/^/| /' conftest.$ac_ext >&5
28196 eval "$as_ac_var=no"
28198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28202 if test `eval echo '${'$as_ac_var'}'` = yes; then
28203 cat >>confdefs.h <<_ACEOF
28204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28205 _ACEOF
28208 done
28210 else
28212 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
28213 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
28214 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
28215 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
28216 echo $ECHO_N "(cached) $ECHO_C" >&6
28217 else
28221 ac_ext=cc
28222 ac_cpp='$CXXCPP $CPPFLAGS'
28223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28227 cat >conftest.$ac_ext <<_ACEOF
28228 #line $LINENO "configure"
28229 /* confdefs.h. */
28230 _ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h. */
28234 #include <math.h>
28235 #ifdef HAVE_IEEEFP_H
28236 #include <ieeefp.h>
28237 #endif
28240 main ()
28242 _isinf(0);
28244 return 0;
28246 _ACEOF
28247 rm -f conftest.$ac_objext
28248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28249 (eval $ac_compile) 2>&5
28250 ac_status=$?
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
28253 { ac_try='test -s conftest.$ac_objext'
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28256 ac_status=$?
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 glibcxx_cv_func__isinf_use=yes
28260 else
28261 echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28264 glibcxx_cv_func__isinf_use=no
28266 rm -f conftest.$ac_objext conftest.$ac_ext
28267 ac_ext=c
28268 ac_cpp='$CPP $CPPFLAGS'
28269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28277 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
28278 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
28280 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
28282 for ac_func in _isinf
28284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28285 echo "$as_me:$LINENO: checking for $ac_func" >&5
28286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28287 if eval "test \"\${$as_ac_var+set}\" = set"; then
28288 echo $ECHO_N "(cached) $ECHO_C" >&6
28289 else
28290 if test x$gcc_no_link = xyes; then
28291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28293 { (exit 1); exit 1; }; }
28295 cat >conftest.$ac_ext <<_ACEOF
28296 #line $LINENO "configure"
28297 /* confdefs.h. */
28298 _ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h. */
28302 /* System header to define __stub macros and hopefully few prototypes,
28303 which can conflict with char $ac_func (); below.
28304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28305 <limits.h> exists even on freestanding compilers. */
28306 #ifdef __STDC__
28307 # include <limits.h>
28308 #else
28309 # include <assert.h>
28310 #endif
28311 /* Override any gcc2 internal prototype to avoid an error. */
28312 #ifdef __cplusplus
28313 extern "C"
28315 #endif
28316 /* We use char because int might match the return type of a gcc2
28317 builtin and then its argument prototype would still apply. */
28318 char $ac_func ();
28319 /* The GNU C library defines this for functions which it implements
28320 to always fail with ENOSYS. Some functions are actually named
28321 something starting with __ and the normal name is an alias. */
28322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28323 choke me
28324 #else
28325 char (*f) () = $ac_func;
28326 #endif
28327 #ifdef __cplusplus
28329 #endif
28332 main ()
28334 return f != $ac_func;
28336 return 0;
28338 _ACEOF
28339 rm -f conftest.$ac_objext conftest$ac_exeext
28340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28341 (eval $ac_link) 2>&5
28342 ac_status=$?
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); } &&
28345 { ac_try='test -s conftest$ac_exeext'
28346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28347 (eval $ac_try) 2>&5
28348 ac_status=$?
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350 (exit $ac_status); }; }; then
28351 eval "$as_ac_var=yes"
28352 else
28353 echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.$ac_ext >&5
28356 eval "$as_ac_var=no"
28358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28362 if test `eval echo '${'$as_ac_var'}'` = yes; then
28363 cat >>confdefs.h <<_ACEOF
28364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28365 _ACEOF
28368 done
28375 echo "$as_me:$LINENO: checking for isnan declaration" >&5
28376 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
28377 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
28378 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
28379 echo $ECHO_N "(cached) $ECHO_C" >&6
28380 else
28384 ac_ext=cc
28385 ac_cpp='$CXXCPP $CPPFLAGS'
28386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28390 cat >conftest.$ac_ext <<_ACEOF
28391 #line $LINENO "configure"
28392 /* confdefs.h. */
28393 _ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h. */
28397 #include <math.h>
28398 #ifdef HAVE_IEEEFP_H
28399 #include <ieeefp.h>
28400 #endif
28403 main ()
28405 isnan(0);
28407 return 0;
28409 _ACEOF
28410 rm -f conftest.$ac_objext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28412 (eval $ac_compile) 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
28416 { ac_try='test -s conftest.$ac_objext'
28417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418 (eval $ac_try) 2>&5
28419 ac_status=$?
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; }; then
28422 glibcxx_cv_func_isnan_use=yes
28423 else
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28427 glibcxx_cv_func_isnan_use=no
28429 rm -f conftest.$ac_objext conftest.$ac_ext
28430 ac_ext=c
28431 ac_cpp='$CPP $CPPFLAGS'
28432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28440 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
28441 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
28443 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
28445 for ac_func in isnan
28447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28448 echo "$as_me:$LINENO: checking for $ac_func" >&5
28449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28450 if eval "test \"\${$as_ac_var+set}\" = set"; then
28451 echo $ECHO_N "(cached) $ECHO_C" >&6
28452 else
28453 if test x$gcc_no_link = xyes; then
28454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28456 { (exit 1); exit 1; }; }
28458 cat >conftest.$ac_ext <<_ACEOF
28459 #line $LINENO "configure"
28460 /* confdefs.h. */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28465 /* System header to define __stub macros and hopefully few prototypes,
28466 which can conflict with char $ac_func (); below.
28467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28468 <limits.h> exists even on freestanding compilers. */
28469 #ifdef __STDC__
28470 # include <limits.h>
28471 #else
28472 # include <assert.h>
28473 #endif
28474 /* Override any gcc2 internal prototype to avoid an error. */
28475 #ifdef __cplusplus
28476 extern "C"
28478 #endif
28479 /* We use char because int might match the return type of a gcc2
28480 builtin and then its argument prototype would still apply. */
28481 char $ac_func ();
28482 /* The GNU C library defines this for functions which it implements
28483 to always fail with ENOSYS. Some functions are actually named
28484 something starting with __ and the normal name is an alias. */
28485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28486 choke me
28487 #else
28488 char (*f) () = $ac_func;
28489 #endif
28490 #ifdef __cplusplus
28492 #endif
28495 main ()
28497 return f != $ac_func;
28499 return 0;
28501 _ACEOF
28502 rm -f conftest.$ac_objext conftest$ac_exeext
28503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28504 (eval $ac_link) 2>&5
28505 ac_status=$?
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); } &&
28508 { ac_try='test -s conftest$ac_exeext'
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; }; then
28514 eval "$as_ac_var=yes"
28515 else
28516 echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28519 eval "$as_ac_var=no"
28521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28525 if test `eval echo '${'$as_ac_var'}'` = yes; then
28526 cat >>confdefs.h <<_ACEOF
28527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28528 _ACEOF
28531 done
28533 else
28535 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
28536 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
28537 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
28538 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
28539 echo $ECHO_N "(cached) $ECHO_C" >&6
28540 else
28544 ac_ext=cc
28545 ac_cpp='$CXXCPP $CPPFLAGS'
28546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28550 cat >conftest.$ac_ext <<_ACEOF
28551 #line $LINENO "configure"
28552 /* confdefs.h. */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h. */
28557 #include <math.h>
28558 #ifdef HAVE_IEEEFP_H
28559 #include <ieeefp.h>
28560 #endif
28563 main ()
28565 _isnan(0);
28567 return 0;
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28572 (eval $ac_compile) 2>&5
28573 ac_status=$?
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -s conftest.$ac_objext'
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 glibcxx_cv_func__isnan_use=yes
28583 else
28584 echo "$as_me: failed program was:" >&5
28585 sed 's/^/| /' conftest.$ac_ext >&5
28587 glibcxx_cv_func__isnan_use=no
28589 rm -f conftest.$ac_objext conftest.$ac_ext
28590 ac_ext=c
28591 ac_cpp='$CPP $CPPFLAGS'
28592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28600 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
28601 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
28603 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
28605 for ac_func in _isnan
28607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28608 echo "$as_me:$LINENO: checking for $ac_func" >&5
28609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28610 if eval "test \"\${$as_ac_var+set}\" = set"; then
28611 echo $ECHO_N "(cached) $ECHO_C" >&6
28612 else
28613 if test x$gcc_no_link = xyes; then
28614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28616 { (exit 1); exit 1; }; }
28618 cat >conftest.$ac_ext <<_ACEOF
28619 #line $LINENO "configure"
28620 /* confdefs.h. */
28621 _ACEOF
28622 cat confdefs.h >>conftest.$ac_ext
28623 cat >>conftest.$ac_ext <<_ACEOF
28624 /* end confdefs.h. */
28625 /* System header to define __stub macros and hopefully few prototypes,
28626 which can conflict with char $ac_func (); below.
28627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28628 <limits.h> exists even on freestanding compilers. */
28629 #ifdef __STDC__
28630 # include <limits.h>
28631 #else
28632 # include <assert.h>
28633 #endif
28634 /* Override any gcc2 internal prototype to avoid an error. */
28635 #ifdef __cplusplus
28636 extern "C"
28638 #endif
28639 /* We use char because int might match the return type of a gcc2
28640 builtin and then its argument prototype would still apply. */
28641 char $ac_func ();
28642 /* The GNU C library defines this for functions which it implements
28643 to always fail with ENOSYS. Some functions are actually named
28644 something starting with __ and the normal name is an alias. */
28645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28646 choke me
28647 #else
28648 char (*f) () = $ac_func;
28649 #endif
28650 #ifdef __cplusplus
28652 #endif
28655 main ()
28657 return f != $ac_func;
28659 return 0;
28661 _ACEOF
28662 rm -f conftest.$ac_objext conftest$ac_exeext
28663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28664 (eval $ac_link) 2>&5
28665 ac_status=$?
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); } &&
28668 { ac_try='test -s conftest$ac_exeext'
28669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670 (eval $ac_try) 2>&5
28671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; }; then
28674 eval "$as_ac_var=yes"
28675 else
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28679 eval "$as_ac_var=no"
28681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28685 if test `eval echo '${'$as_ac_var'}'` = yes; then
28686 cat >>confdefs.h <<_ACEOF
28687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28688 _ACEOF
28691 done
28698 echo "$as_me:$LINENO: checking for finite declaration" >&5
28699 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
28700 if test x${glibcxx_cv_func_finite_use+set} != xset; then
28701 if test "${glibcxx_cv_func_finite_use+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28703 else
28707 ac_ext=cc
28708 ac_cpp='$CXXCPP $CPPFLAGS'
28709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28713 cat >conftest.$ac_ext <<_ACEOF
28714 #line $LINENO "configure"
28715 /* confdefs.h. */
28716 _ACEOF
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h. */
28720 #include <math.h>
28721 #ifdef HAVE_IEEEFP_H
28722 #include <ieeefp.h>
28723 #endif
28726 main ()
28728 finite(0);
28730 return 0;
28732 _ACEOF
28733 rm -f conftest.$ac_objext
28734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28735 (eval $ac_compile) 2>&5
28736 ac_status=$?
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } &&
28739 { ac_try='test -s conftest.$ac_objext'
28740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28741 (eval $ac_try) 2>&5
28742 ac_status=$?
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; }; then
28745 glibcxx_cv_func_finite_use=yes
28746 else
28747 echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28750 glibcxx_cv_func_finite_use=no
28752 rm -f conftest.$ac_objext conftest.$ac_ext
28753 ac_ext=c
28754 ac_cpp='$CPP $CPPFLAGS'
28755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28763 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
28764 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
28766 if test x$glibcxx_cv_func_finite_use = x"yes"; then
28768 for ac_func in finite
28770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28771 echo "$as_me:$LINENO: checking for $ac_func" >&5
28772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28773 if eval "test \"\${$as_ac_var+set}\" = set"; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28775 else
28776 if test x$gcc_no_link = xyes; then
28777 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28778 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28779 { (exit 1); exit 1; }; }
28781 cat >conftest.$ac_ext <<_ACEOF
28782 #line $LINENO "configure"
28783 /* confdefs.h. */
28784 _ACEOF
28785 cat confdefs.h >>conftest.$ac_ext
28786 cat >>conftest.$ac_ext <<_ACEOF
28787 /* end confdefs.h. */
28788 /* System header to define __stub macros and hopefully few prototypes,
28789 which can conflict with char $ac_func (); below.
28790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28791 <limits.h> exists even on freestanding compilers. */
28792 #ifdef __STDC__
28793 # include <limits.h>
28794 #else
28795 # include <assert.h>
28796 #endif
28797 /* Override any gcc2 internal prototype to avoid an error. */
28798 #ifdef __cplusplus
28799 extern "C"
28801 #endif
28802 /* We use char because int might match the return type of a gcc2
28803 builtin and then its argument prototype would still apply. */
28804 char $ac_func ();
28805 /* The GNU C library defines this for functions which it implements
28806 to always fail with ENOSYS. Some functions are actually named
28807 something starting with __ and the normal name is an alias. */
28808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28809 choke me
28810 #else
28811 char (*f) () = $ac_func;
28812 #endif
28813 #ifdef __cplusplus
28815 #endif
28818 main ()
28820 return f != $ac_func;
28822 return 0;
28824 _ACEOF
28825 rm -f conftest.$ac_objext conftest$ac_exeext
28826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28827 (eval $ac_link) 2>&5
28828 ac_status=$?
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } &&
28831 { ac_try='test -s conftest$ac_exeext'
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; }; then
28837 eval "$as_ac_var=yes"
28838 else
28839 echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28842 eval "$as_ac_var=no"
28844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28848 if test `eval echo '${'$as_ac_var'}'` = yes; then
28849 cat >>confdefs.h <<_ACEOF
28850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28851 _ACEOF
28854 done
28856 else
28858 echo "$as_me:$LINENO: checking for _finite declaration" >&5
28859 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
28860 if test x${glibcxx_cv_func__finite_use+set} != xset; then
28861 if test "${glibcxx_cv_func__finite_use+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28863 else
28867 ac_ext=cc
28868 ac_cpp='$CXXCPP $CPPFLAGS'
28869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28873 cat >conftest.$ac_ext <<_ACEOF
28874 #line $LINENO "configure"
28875 /* confdefs.h. */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h. */
28880 #include <math.h>
28881 #ifdef HAVE_IEEEFP_H
28882 #include <ieeefp.h>
28883 #endif
28886 main ()
28888 _finite(0);
28890 return 0;
28892 _ACEOF
28893 rm -f conftest.$ac_objext
28894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28895 (eval $ac_compile) 2>&5
28896 ac_status=$?
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } &&
28899 { ac_try='test -s conftest.$ac_objext'
28900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901 (eval $ac_try) 2>&5
28902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; }; then
28905 glibcxx_cv_func__finite_use=yes
28906 else
28907 echo "$as_me: failed program was:" >&5
28908 sed 's/^/| /' conftest.$ac_ext >&5
28910 glibcxx_cv_func__finite_use=no
28912 rm -f conftest.$ac_objext conftest.$ac_ext
28913 ac_ext=c
28914 ac_cpp='$CPP $CPPFLAGS'
28915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28923 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
28924 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
28926 if test x$glibcxx_cv_func__finite_use = x"yes"; then
28928 for ac_func in _finite
28930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28931 echo "$as_me:$LINENO: checking for $ac_func" >&5
28932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28933 if eval "test \"\${$as_ac_var+set}\" = set"; then
28934 echo $ECHO_N "(cached) $ECHO_C" >&6
28935 else
28936 if test x$gcc_no_link = xyes; then
28937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28939 { (exit 1); exit 1; }; }
28941 cat >conftest.$ac_ext <<_ACEOF
28942 #line $LINENO "configure"
28943 /* confdefs.h. */
28944 _ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h. */
28948 /* System header to define __stub macros and hopefully few prototypes,
28949 which can conflict with char $ac_func (); below.
28950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28951 <limits.h> exists even on freestanding compilers. */
28952 #ifdef __STDC__
28953 # include <limits.h>
28954 #else
28955 # include <assert.h>
28956 #endif
28957 /* Override any gcc2 internal prototype to avoid an error. */
28958 #ifdef __cplusplus
28959 extern "C"
28961 #endif
28962 /* We use char because int might match the return type of a gcc2
28963 builtin and then its argument prototype would still apply. */
28964 char $ac_func ();
28965 /* The GNU C library defines this for functions which it implements
28966 to always fail with ENOSYS. Some functions are actually named
28967 something starting with __ and the normal name is an alias. */
28968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28969 choke me
28970 #else
28971 char (*f) () = $ac_func;
28972 #endif
28973 #ifdef __cplusplus
28975 #endif
28978 main ()
28980 return f != $ac_func;
28982 return 0;
28984 _ACEOF
28985 rm -f conftest.$ac_objext conftest$ac_exeext
28986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28987 (eval $ac_link) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } &&
28991 { ac_try='test -s conftest$ac_exeext'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 eval "$as_ac_var=yes"
28998 else
28999 echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 eval "$as_ac_var=no"
29004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29008 if test `eval echo '${'$as_ac_var'}'` = yes; then
29009 cat >>confdefs.h <<_ACEOF
29010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29011 _ACEOF
29014 done
29021 echo "$as_me:$LINENO: checking for copysign declaration" >&5
29022 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
29023 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
29024 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29026 else
29030 ac_ext=cc
29031 ac_cpp='$CXXCPP $CPPFLAGS'
29032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29036 cat >conftest.$ac_ext <<_ACEOF
29037 #line $LINENO "configure"
29038 /* confdefs.h. */
29039 _ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29043 #include <math.h>
29045 main ()
29047 copysign(0, 0);
29049 return 0;
29051 _ACEOF
29052 rm -f conftest.$ac_objext
29053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29054 (eval $ac_compile) 2>&5
29055 ac_status=$?
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } &&
29058 { ac_try='test -s conftest.$ac_objext'
29059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; }; then
29064 glibcxx_cv_func_copysign_use=yes
29065 else
29066 echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29069 glibcxx_cv_func_copysign_use=no
29071 rm -f conftest.$ac_objext conftest.$ac_ext
29072 ac_ext=c
29073 ac_cpp='$CPP $CPPFLAGS'
29074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29082 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
29083 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
29085 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
29087 for ac_func in copysign
29089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29090 echo "$as_me:$LINENO: checking for $ac_func" >&5
29091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29092 if eval "test \"\${$as_ac_var+set}\" = set"; then
29093 echo $ECHO_N "(cached) $ECHO_C" >&6
29094 else
29095 if test x$gcc_no_link = xyes; then
29096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29098 { (exit 1); exit 1; }; }
29100 cat >conftest.$ac_ext <<_ACEOF
29101 #line $LINENO "configure"
29102 /* confdefs.h. */
29103 _ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h. */
29107 /* System header to define __stub macros and hopefully few prototypes,
29108 which can conflict with char $ac_func (); below.
29109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29110 <limits.h> exists even on freestanding compilers. */
29111 #ifdef __STDC__
29112 # include <limits.h>
29113 #else
29114 # include <assert.h>
29115 #endif
29116 /* Override any gcc2 internal prototype to avoid an error. */
29117 #ifdef __cplusplus
29118 extern "C"
29120 #endif
29121 /* We use char because int might match the return type of a gcc2
29122 builtin and then its argument prototype would still apply. */
29123 char $ac_func ();
29124 /* The GNU C library defines this for functions which it implements
29125 to always fail with ENOSYS. Some functions are actually named
29126 something starting with __ and the normal name is an alias. */
29127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29128 choke me
29129 #else
29130 char (*f) () = $ac_func;
29131 #endif
29132 #ifdef __cplusplus
29134 #endif
29137 main ()
29139 return f != $ac_func;
29141 return 0;
29143 _ACEOF
29144 rm -f conftest.$ac_objext conftest$ac_exeext
29145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29146 (eval $ac_link) 2>&5
29147 ac_status=$?
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); } &&
29150 { ac_try='test -s conftest$ac_exeext'
29151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29152 (eval $ac_try) 2>&5
29153 ac_status=$?
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); }; }; then
29156 eval "$as_ac_var=yes"
29157 else
29158 echo "$as_me: failed program was:" >&5
29159 sed 's/^/| /' conftest.$ac_ext >&5
29161 eval "$as_ac_var=no"
29163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29167 if test `eval echo '${'$as_ac_var'}'` = yes; then
29168 cat >>confdefs.h <<_ACEOF
29169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29170 _ACEOF
29173 done
29175 else
29177 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
29178 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
29179 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
29180 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
29181 echo $ECHO_N "(cached) $ECHO_C" >&6
29182 else
29186 ac_ext=cc
29187 ac_cpp='$CXXCPP $CPPFLAGS'
29188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29192 cat >conftest.$ac_ext <<_ACEOF
29193 #line $LINENO "configure"
29194 /* confdefs.h. */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 #include <math.h>
29201 main ()
29203 _copysign(0, 0);
29205 return 0;
29207 _ACEOF
29208 rm -f conftest.$ac_objext
29209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29210 (eval $ac_compile) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
29214 { ac_try='test -s conftest.$ac_objext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 glibcxx_cv_func__copysign_use=yes
29221 else
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 glibcxx_cv_func__copysign_use=no
29227 rm -f conftest.$ac_objext conftest.$ac_ext
29228 ac_ext=c
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29238 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
29239 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
29241 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
29243 for ac_func in _copysign
29245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29246 echo "$as_me:$LINENO: checking for $ac_func" >&5
29247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29248 if eval "test \"\${$as_ac_var+set}\" = set"; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250 else
29251 if test x$gcc_no_link = xyes; then
29252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29254 { (exit 1); exit 1; }; }
29256 cat >conftest.$ac_ext <<_ACEOF
29257 #line $LINENO "configure"
29258 /* confdefs.h. */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29263 /* System header to define __stub macros and hopefully few prototypes,
29264 which can conflict with char $ac_func (); below.
29265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29266 <limits.h> exists even on freestanding compilers. */
29267 #ifdef __STDC__
29268 # include <limits.h>
29269 #else
29270 # include <assert.h>
29271 #endif
29272 /* Override any gcc2 internal prototype to avoid an error. */
29273 #ifdef __cplusplus
29274 extern "C"
29276 #endif
29277 /* We use char because int might match the return type of a gcc2
29278 builtin and then its argument prototype would still apply. */
29279 char $ac_func ();
29280 /* The GNU C library defines this for functions which it implements
29281 to always fail with ENOSYS. Some functions are actually named
29282 something starting with __ and the normal name is an alias. */
29283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29284 choke me
29285 #else
29286 char (*f) () = $ac_func;
29287 #endif
29288 #ifdef __cplusplus
29290 #endif
29293 main ()
29295 return f != $ac_func;
29297 return 0;
29299 _ACEOF
29300 rm -f conftest.$ac_objext conftest$ac_exeext
29301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29302 (eval $ac_link) 2>&5
29303 ac_status=$?
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } &&
29306 { ac_try='test -s conftest$ac_exeext'
29307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29308 (eval $ac_try) 2>&5
29309 ac_status=$?
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; }; then
29312 eval "$as_ac_var=yes"
29313 else
29314 echo "$as_me: failed program was:" >&5
29315 sed 's/^/| /' conftest.$ac_ext >&5
29317 eval "$as_ac_var=no"
29319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29323 if test `eval echo '${'$as_ac_var'}'` = yes; then
29324 cat >>confdefs.h <<_ACEOF
29325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29326 _ACEOF
29329 done
29336 echo "$as_me:$LINENO: checking for sincos declaration" >&5
29337 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
29338 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29339 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29341 else
29345 ac_ext=cc
29346 ac_cpp='$CXXCPP $CPPFLAGS'
29347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29351 cat >conftest.$ac_ext <<_ACEOF
29352 #line $LINENO "configure"
29353 /* confdefs.h. */
29354 _ACEOF
29355 cat confdefs.h >>conftest.$ac_ext
29356 cat >>conftest.$ac_ext <<_ACEOF
29357 /* end confdefs.h. */
29358 #include <math.h>
29360 main ()
29362 sincos(0, 0, 0);
29364 return 0;
29366 _ACEOF
29367 rm -f conftest.$ac_objext
29368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29369 (eval $ac_compile) 2>&5
29370 ac_status=$?
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); } &&
29373 { ac_try='test -s conftest.$ac_objext'
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29376 ac_status=$?
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; }; then
29379 glibcxx_cv_func_sincos_use=yes
29380 else
29381 echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29384 glibcxx_cv_func_sincos_use=no
29386 rm -f conftest.$ac_objext conftest.$ac_ext
29387 ac_ext=c
29388 ac_cpp='$CPP $CPPFLAGS'
29389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29397 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
29398 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
29400 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29402 for ac_func in sincos
29404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29405 echo "$as_me:$LINENO: checking for $ac_func" >&5
29406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29407 if eval "test \"\${$as_ac_var+set}\" = set"; then
29408 echo $ECHO_N "(cached) $ECHO_C" >&6
29409 else
29410 if test x$gcc_no_link = xyes; then
29411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29413 { (exit 1); exit 1; }; }
29415 cat >conftest.$ac_ext <<_ACEOF
29416 #line $LINENO "configure"
29417 /* confdefs.h. */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29422 /* System header to define __stub macros and hopefully few prototypes,
29423 which can conflict with char $ac_func (); below.
29424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29425 <limits.h> exists even on freestanding compilers. */
29426 #ifdef __STDC__
29427 # include <limits.h>
29428 #else
29429 # include <assert.h>
29430 #endif
29431 /* Override any gcc2 internal prototype to avoid an error. */
29432 #ifdef __cplusplus
29433 extern "C"
29435 #endif
29436 /* We use char because int might match the return type of a gcc2
29437 builtin and then its argument prototype would still apply. */
29438 char $ac_func ();
29439 /* The GNU C library defines this for functions which it implements
29440 to always fail with ENOSYS. Some functions are actually named
29441 something starting with __ and the normal name is an alias. */
29442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29443 choke me
29444 #else
29445 char (*f) () = $ac_func;
29446 #endif
29447 #ifdef __cplusplus
29449 #endif
29452 main ()
29454 return f != $ac_func;
29456 return 0;
29458 _ACEOF
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29461 (eval $ac_link) 2>&5
29462 ac_status=$?
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
29465 { ac_try='test -s conftest$ac_exeext'
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29468 ac_status=$?
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; }; then
29471 eval "$as_ac_var=yes"
29472 else
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 eval "$as_ac_var=no"
29478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29482 if test `eval echo '${'$as_ac_var'}'` = yes; then
29483 cat >>confdefs.h <<_ACEOF
29484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29485 _ACEOF
29488 done
29490 else
29492 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
29493 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
29494 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
29495 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
29496 echo $ECHO_N "(cached) $ECHO_C" >&6
29497 else
29501 ac_ext=cc
29502 ac_cpp='$CXXCPP $CPPFLAGS'
29503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29507 cat >conftest.$ac_ext <<_ACEOF
29508 #line $LINENO "configure"
29509 /* confdefs.h. */
29510 _ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h. */
29514 #include <math.h>
29516 main ()
29518 _sincos(0, 0, 0);
29520 return 0;
29522 _ACEOF
29523 rm -f conftest.$ac_objext
29524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29525 (eval $ac_compile) 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } &&
29529 { ac_try='test -s conftest.$ac_objext'
29530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531 (eval $ac_try) 2>&5
29532 ac_status=$?
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; }; then
29535 glibcxx_cv_func__sincos_use=yes
29536 else
29537 echo "$as_me: failed program was:" >&5
29538 sed 's/^/| /' conftest.$ac_ext >&5
29540 glibcxx_cv_func__sincos_use=no
29542 rm -f conftest.$ac_objext conftest.$ac_ext
29543 ac_ext=c
29544 ac_cpp='$CPP $CPPFLAGS'
29545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29553 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
29554 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
29556 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
29558 for ac_func in _sincos
29560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29561 echo "$as_me:$LINENO: checking for $ac_func" >&5
29562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29563 if eval "test \"\${$as_ac_var+set}\" = set"; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565 else
29566 if test x$gcc_no_link = xyes; then
29567 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29568 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29569 { (exit 1); exit 1; }; }
29571 cat >conftest.$ac_ext <<_ACEOF
29572 #line $LINENO "configure"
29573 /* confdefs.h. */
29574 _ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29578 /* System header to define __stub macros and hopefully few prototypes,
29579 which can conflict with char $ac_func (); below.
29580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29581 <limits.h> exists even on freestanding compilers. */
29582 #ifdef __STDC__
29583 # include <limits.h>
29584 #else
29585 # include <assert.h>
29586 #endif
29587 /* Override any gcc2 internal prototype to avoid an error. */
29588 #ifdef __cplusplus
29589 extern "C"
29591 #endif
29592 /* We use char because int might match the return type of a gcc2
29593 builtin and then its argument prototype would still apply. */
29594 char $ac_func ();
29595 /* The GNU C library defines this for functions which it implements
29596 to always fail with ENOSYS. Some functions are actually named
29597 something starting with __ and the normal name is an alias. */
29598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29599 choke me
29600 #else
29601 char (*f) () = $ac_func;
29602 #endif
29603 #ifdef __cplusplus
29605 #endif
29608 main ()
29610 return f != $ac_func;
29612 return 0;
29614 _ACEOF
29615 rm -f conftest.$ac_objext conftest$ac_exeext
29616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29617 (eval $ac_link) 2>&5
29618 ac_status=$?
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); } &&
29621 { ac_try='test -s conftest$ac_exeext'
29622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623 (eval $ac_try) 2>&5
29624 ac_status=$?
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; }; then
29627 eval "$as_ac_var=yes"
29628 else
29629 echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29632 eval "$as_ac_var=no"
29634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29638 if test `eval echo '${'$as_ac_var'}'` = yes; then
29639 cat >>confdefs.h <<_ACEOF
29640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29641 _ACEOF
29644 done
29651 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
29652 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
29653 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29654 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29656 else
29660 ac_ext=cc
29661 ac_cpp='$CXXCPP $CPPFLAGS'
29662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29666 cat >conftest.$ac_ext <<_ACEOF
29667 #line $LINENO "configure"
29668 /* confdefs.h. */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 #include <math.h>
29674 #ifdef HAVE_IEEEFP_H
29675 #include <ieeefp.h>
29676 #endif
29679 main ()
29681 fpclass(0);
29683 return 0;
29685 _ACEOF
29686 rm -f conftest.$ac_objext
29687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29688 (eval $ac_compile) 2>&5
29689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } &&
29692 { ac_try='test -s conftest.$ac_objext'
29693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694 (eval $ac_try) 2>&5
29695 ac_status=$?
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); }; }; then
29698 glibcxx_cv_func_fpclass_use=yes
29699 else
29700 echo "$as_me: failed program was:" >&5
29701 sed 's/^/| /' conftest.$ac_ext >&5
29703 glibcxx_cv_func_fpclass_use=no
29705 rm -f conftest.$ac_objext conftest.$ac_ext
29706 ac_ext=c
29707 ac_cpp='$CPP $CPPFLAGS'
29708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29716 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
29717 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
29719 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29721 for ac_func in fpclass
29723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29724 echo "$as_me:$LINENO: checking for $ac_func" >&5
29725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29726 if eval "test \"\${$as_ac_var+set}\" = set"; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29728 else
29729 if test x$gcc_no_link = xyes; then
29730 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29732 { (exit 1); exit 1; }; }
29734 cat >conftest.$ac_ext <<_ACEOF
29735 #line $LINENO "configure"
29736 /* confdefs.h. */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 /* System header to define __stub macros and hopefully few prototypes,
29742 which can conflict with char $ac_func (); below.
29743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29744 <limits.h> exists even on freestanding compilers. */
29745 #ifdef __STDC__
29746 # include <limits.h>
29747 #else
29748 # include <assert.h>
29749 #endif
29750 /* Override any gcc2 internal prototype to avoid an error. */
29751 #ifdef __cplusplus
29752 extern "C"
29754 #endif
29755 /* We use char because int might match the return type of a gcc2
29756 builtin and then its argument prototype would still apply. */
29757 char $ac_func ();
29758 /* The GNU C library defines this for functions which it implements
29759 to always fail with ENOSYS. Some functions are actually named
29760 something starting with __ and the normal name is an alias. */
29761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29762 choke me
29763 #else
29764 char (*f) () = $ac_func;
29765 #endif
29766 #ifdef __cplusplus
29768 #endif
29771 main ()
29773 return f != $ac_func;
29775 return 0;
29777 _ACEOF
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29780 (eval $ac_link) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
29784 { ac_try='test -s conftest$ac_exeext'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 eval "$as_ac_var=yes"
29791 else
29792 echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29795 eval "$as_ac_var=no"
29797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29801 if test `eval echo '${'$as_ac_var'}'` = yes; then
29802 cat >>confdefs.h <<_ACEOF
29803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29804 _ACEOF
29807 done
29809 else
29811 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
29812 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
29813 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
29814 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
29815 echo $ECHO_N "(cached) $ECHO_C" >&6
29816 else
29820 ac_ext=cc
29821 ac_cpp='$CXXCPP $CPPFLAGS'
29822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29826 cat >conftest.$ac_ext <<_ACEOF
29827 #line $LINENO "configure"
29828 /* confdefs.h. */
29829 _ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h. */
29833 #include <math.h>
29834 #ifdef HAVE_IEEEFP_H
29835 #include <ieeefp.h>
29836 #endif
29839 main ()
29841 _fpclass(0);
29843 return 0;
29845 _ACEOF
29846 rm -f conftest.$ac_objext
29847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29848 (eval $ac_compile) 2>&5
29849 ac_status=$?
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); } &&
29852 { ac_try='test -s conftest.$ac_objext'
29853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854 (eval $ac_try) 2>&5
29855 ac_status=$?
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; }; then
29858 glibcxx_cv_func__fpclass_use=yes
29859 else
29860 echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29863 glibcxx_cv_func__fpclass_use=no
29865 rm -f conftest.$ac_objext conftest.$ac_ext
29866 ac_ext=c
29867 ac_cpp='$CPP $CPPFLAGS'
29868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29876 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
29877 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
29879 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
29881 for ac_func in _fpclass
29883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29884 echo "$as_me:$LINENO: checking for $ac_func" >&5
29885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29886 if eval "test \"\${$as_ac_var+set}\" = set"; then
29887 echo $ECHO_N "(cached) $ECHO_C" >&6
29888 else
29889 if test x$gcc_no_link = xyes; then
29890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29892 { (exit 1); exit 1; }; }
29894 cat >conftest.$ac_ext <<_ACEOF
29895 #line $LINENO "configure"
29896 /* confdefs.h. */
29897 _ACEOF
29898 cat confdefs.h >>conftest.$ac_ext
29899 cat >>conftest.$ac_ext <<_ACEOF
29900 /* end confdefs.h. */
29901 /* System header to define __stub macros and hopefully few prototypes,
29902 which can conflict with char $ac_func (); below.
29903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29904 <limits.h> exists even on freestanding compilers. */
29905 #ifdef __STDC__
29906 # include <limits.h>
29907 #else
29908 # include <assert.h>
29909 #endif
29910 /* Override any gcc2 internal prototype to avoid an error. */
29911 #ifdef __cplusplus
29912 extern "C"
29914 #endif
29915 /* We use char because int might match the return type of a gcc2
29916 builtin and then its argument prototype would still apply. */
29917 char $ac_func ();
29918 /* The GNU C library defines this for functions which it implements
29919 to always fail with ENOSYS. Some functions are actually named
29920 something starting with __ and the normal name is an alias. */
29921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29922 choke me
29923 #else
29924 char (*f) () = $ac_func;
29925 #endif
29926 #ifdef __cplusplus
29928 #endif
29931 main ()
29933 return f != $ac_func;
29935 return 0;
29937 _ACEOF
29938 rm -f conftest.$ac_objext conftest$ac_exeext
29939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29940 (eval $ac_link) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } &&
29944 { ac_try='test -s conftest$ac_exeext'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29947 ac_status=$?
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 eval "$as_ac_var=yes"
29951 else
29952 echo "$as_me: failed program was:" >&5
29953 sed 's/^/| /' conftest.$ac_ext >&5
29955 eval "$as_ac_var=no"
29957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29961 if test `eval echo '${'$as_ac_var'}'` = yes; then
29962 cat >>confdefs.h <<_ACEOF
29963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29964 _ACEOF
29967 done
29974 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
29975 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
29976 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29977 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29979 else
29983 ac_ext=cc
29984 ac_cpp='$CXXCPP $CPPFLAGS'
29985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29989 cat >conftest.$ac_ext <<_ACEOF
29990 #line $LINENO "configure"
29991 /* confdefs.h. */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h. */
29996 #include <math.h>
29997 #ifdef HAVE_IEEEFP_H
29998 #include <ieeefp.h>
29999 #endif
30002 main ()
30004 qfpclass(0);
30006 return 0;
30008 _ACEOF
30009 rm -f conftest.$ac_objext
30010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30011 (eval $ac_compile) 2>&5
30012 ac_status=$?
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } &&
30015 { ac_try='test -s conftest.$ac_objext'
30016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017 (eval $ac_try) 2>&5
30018 ac_status=$?
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); }; }; then
30021 glibcxx_cv_func_qfpclass_use=yes
30022 else
30023 echo "$as_me: failed program was:" >&5
30024 sed 's/^/| /' conftest.$ac_ext >&5
30026 glibcxx_cv_func_qfpclass_use=no
30028 rm -f conftest.$ac_objext conftest.$ac_ext
30029 ac_ext=c
30030 ac_cpp='$CPP $CPPFLAGS'
30031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30039 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
30040 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
30042 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
30044 for ac_func in qfpclass
30046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30047 echo "$as_me:$LINENO: checking for $ac_func" >&5
30048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30049 if eval "test \"\${$as_ac_var+set}\" = set"; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30051 else
30052 if test x$gcc_no_link = xyes; then
30053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30055 { (exit 1); exit 1; }; }
30057 cat >conftest.$ac_ext <<_ACEOF
30058 #line $LINENO "configure"
30059 /* confdefs.h. */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h. */
30064 /* System header to define __stub macros and hopefully few prototypes,
30065 which can conflict with char $ac_func (); below.
30066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30067 <limits.h> exists even on freestanding compilers. */
30068 #ifdef __STDC__
30069 # include <limits.h>
30070 #else
30071 # include <assert.h>
30072 #endif
30073 /* Override any gcc2 internal prototype to avoid an error. */
30074 #ifdef __cplusplus
30075 extern "C"
30077 #endif
30078 /* We use char because int might match the return type of a gcc2
30079 builtin and then its argument prototype would still apply. */
30080 char $ac_func ();
30081 /* The GNU C library defines this for functions which it implements
30082 to always fail with ENOSYS. Some functions are actually named
30083 something starting with __ and the normal name is an alias. */
30084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30085 choke me
30086 #else
30087 char (*f) () = $ac_func;
30088 #endif
30089 #ifdef __cplusplus
30091 #endif
30094 main ()
30096 return f != $ac_func;
30098 return 0;
30100 _ACEOF
30101 rm -f conftest.$ac_objext conftest$ac_exeext
30102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30103 (eval $ac_link) 2>&5
30104 ac_status=$?
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
30107 { ac_try='test -s conftest$ac_exeext'
30108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30109 (eval $ac_try) 2>&5
30110 ac_status=$?
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; }; then
30113 eval "$as_ac_var=yes"
30114 else
30115 echo "$as_me: failed program was:" >&5
30116 sed 's/^/| /' conftest.$ac_ext >&5
30118 eval "$as_ac_var=no"
30120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30124 if test `eval echo '${'$as_ac_var'}'` = yes; then
30125 cat >>confdefs.h <<_ACEOF
30126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30127 _ACEOF
30130 done
30132 else
30134 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
30135 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
30136 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
30137 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
30138 echo $ECHO_N "(cached) $ECHO_C" >&6
30139 else
30143 ac_ext=cc
30144 ac_cpp='$CXXCPP $CPPFLAGS'
30145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30149 cat >conftest.$ac_ext <<_ACEOF
30150 #line $LINENO "configure"
30151 /* confdefs.h. */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30156 #include <math.h>
30157 #ifdef HAVE_IEEEFP_H
30158 #include <ieeefp.h>
30159 #endif
30162 main ()
30164 _qfpclass(0);
30166 return 0;
30168 _ACEOF
30169 rm -f conftest.$ac_objext
30170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30171 (eval $ac_compile) 2>&5
30172 ac_status=$?
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); } &&
30175 { ac_try='test -s conftest.$ac_objext'
30176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177 (eval $ac_try) 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30181 glibcxx_cv_func__qfpclass_use=yes
30182 else
30183 echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30186 glibcxx_cv_func__qfpclass_use=no
30188 rm -f conftest.$ac_objext conftest.$ac_ext
30189 ac_ext=c
30190 ac_cpp='$CPP $CPPFLAGS'
30191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30199 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
30200 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
30202 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
30204 for ac_func in _qfpclass
30206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30207 echo "$as_me:$LINENO: checking for $ac_func" >&5
30208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30209 if eval "test \"\${$as_ac_var+set}\" = set"; then
30210 echo $ECHO_N "(cached) $ECHO_C" >&6
30211 else
30212 if test x$gcc_no_link = xyes; then
30213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30215 { (exit 1); exit 1; }; }
30217 cat >conftest.$ac_ext <<_ACEOF
30218 #line $LINENO "configure"
30219 /* confdefs.h. */
30220 _ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h. */
30224 /* System header to define __stub macros and hopefully few prototypes,
30225 which can conflict with char $ac_func (); below.
30226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30227 <limits.h> exists even on freestanding compilers. */
30228 #ifdef __STDC__
30229 # include <limits.h>
30230 #else
30231 # include <assert.h>
30232 #endif
30233 /* Override any gcc2 internal prototype to avoid an error. */
30234 #ifdef __cplusplus
30235 extern "C"
30237 #endif
30238 /* We use char because int might match the return type of a gcc2
30239 builtin and then its argument prototype would still apply. */
30240 char $ac_func ();
30241 /* The GNU C library defines this for functions which it implements
30242 to always fail with ENOSYS. Some functions are actually named
30243 something starting with __ and the normal name is an alias. */
30244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30245 choke me
30246 #else
30247 char (*f) () = $ac_func;
30248 #endif
30249 #ifdef __cplusplus
30251 #endif
30254 main ()
30256 return f != $ac_func;
30258 return 0;
30260 _ACEOF
30261 rm -f conftest.$ac_objext conftest$ac_exeext
30262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30263 (eval $ac_link) 2>&5
30264 ac_status=$?
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); } &&
30267 { ac_try='test -s conftest$ac_exeext'
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30270 ac_status=$?
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; }; then
30273 eval "$as_ac_var=yes"
30274 else
30275 echo "$as_me: failed program was:" >&5
30276 sed 's/^/| /' conftest.$ac_ext >&5
30278 eval "$as_ac_var=no"
30280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30284 if test `eval echo '${'$as_ac_var'}'` = yes; then
30285 cat >>confdefs.h <<_ACEOF
30286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30287 _ACEOF
30290 done
30297 echo "$as_me:$LINENO: checking for hypot declaration" >&5
30298 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
30299 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
30300 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30306 ac_ext=cc
30307 ac_cpp='$CXXCPP $CPPFLAGS'
30308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30312 cat >conftest.$ac_ext <<_ACEOF
30313 #line $LINENO "configure"
30314 /* confdefs.h. */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h. */
30319 #include <math.h>
30321 main ()
30323 hypot(0, 0);
30325 return 0;
30327 _ACEOF
30328 rm -f conftest.$ac_objext
30329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30330 (eval $ac_compile) 2>&5
30331 ac_status=$?
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333 (exit $ac_status); } &&
30334 { ac_try='test -s conftest.$ac_objext'
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30337 ac_status=$?
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; }; then
30340 glibcxx_cv_func_hypot_use=yes
30341 else
30342 echo "$as_me: failed program was:" >&5
30343 sed 's/^/| /' conftest.$ac_ext >&5
30345 glibcxx_cv_func_hypot_use=no
30347 rm -f conftest.$ac_objext conftest.$ac_ext
30348 ac_ext=c
30349 ac_cpp='$CPP $CPPFLAGS'
30350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30358 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
30359 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
30361 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
30363 for ac_func in hypot
30365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30366 echo "$as_me:$LINENO: checking for $ac_func" >&5
30367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30368 if eval "test \"\${$as_ac_var+set}\" = set"; then
30369 echo $ECHO_N "(cached) $ECHO_C" >&6
30370 else
30371 if test x$gcc_no_link = xyes; then
30372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30374 { (exit 1); exit 1; }; }
30376 cat >conftest.$ac_ext <<_ACEOF
30377 #line $LINENO "configure"
30378 /* confdefs.h. */
30379 _ACEOF
30380 cat confdefs.h >>conftest.$ac_ext
30381 cat >>conftest.$ac_ext <<_ACEOF
30382 /* end confdefs.h. */
30383 /* System header to define __stub macros and hopefully few prototypes,
30384 which can conflict with char $ac_func (); below.
30385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30386 <limits.h> exists even on freestanding compilers. */
30387 #ifdef __STDC__
30388 # include <limits.h>
30389 #else
30390 # include <assert.h>
30391 #endif
30392 /* Override any gcc2 internal prototype to avoid an error. */
30393 #ifdef __cplusplus
30394 extern "C"
30396 #endif
30397 /* We use char because int might match the return type of a gcc2
30398 builtin and then its argument prototype would still apply. */
30399 char $ac_func ();
30400 /* The GNU C library defines this for functions which it implements
30401 to always fail with ENOSYS. Some functions are actually named
30402 something starting with __ and the normal name is an alias. */
30403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30404 choke me
30405 #else
30406 char (*f) () = $ac_func;
30407 #endif
30408 #ifdef __cplusplus
30410 #endif
30413 main ()
30415 return f != $ac_func;
30417 return 0;
30419 _ACEOF
30420 rm -f conftest.$ac_objext conftest$ac_exeext
30421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30422 (eval $ac_link) 2>&5
30423 ac_status=$?
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } &&
30426 { ac_try='test -s conftest$ac_exeext'
30427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428 (eval $ac_try) 2>&5
30429 ac_status=$?
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; }; then
30432 eval "$as_ac_var=yes"
30433 else
30434 echo "$as_me: failed program was:" >&5
30435 sed 's/^/| /' conftest.$ac_ext >&5
30437 eval "$as_ac_var=no"
30439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30443 if test `eval echo '${'$as_ac_var'}'` = yes; then
30444 cat >>confdefs.h <<_ACEOF
30445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30446 _ACEOF
30449 done
30451 else
30453 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
30454 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
30455 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
30456 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
30457 echo $ECHO_N "(cached) $ECHO_C" >&6
30458 else
30462 ac_ext=cc
30463 ac_cpp='$CXXCPP $CPPFLAGS'
30464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30468 cat >conftest.$ac_ext <<_ACEOF
30469 #line $LINENO "configure"
30470 /* confdefs.h. */
30471 _ACEOF
30472 cat confdefs.h >>conftest.$ac_ext
30473 cat >>conftest.$ac_ext <<_ACEOF
30474 /* end confdefs.h. */
30475 #include <math.h>
30477 main ()
30479 _hypot(0, 0);
30481 return 0;
30483 _ACEOF
30484 rm -f conftest.$ac_objext
30485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30486 (eval $ac_compile) 2>&5
30487 ac_status=$?
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } &&
30490 { ac_try='test -s conftest.$ac_objext'
30491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30492 (eval $ac_try) 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; }; then
30496 glibcxx_cv_func__hypot_use=yes
30497 else
30498 echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30501 glibcxx_cv_func__hypot_use=no
30503 rm -f conftest.$ac_objext conftest.$ac_ext
30504 ac_ext=c
30505 ac_cpp='$CPP $CPPFLAGS'
30506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30514 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
30515 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
30517 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
30519 for ac_func in _hypot
30521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30522 echo "$as_me:$LINENO: checking for $ac_func" >&5
30523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30524 if eval "test \"\${$as_ac_var+set}\" = set"; then
30525 echo $ECHO_N "(cached) $ECHO_C" >&6
30526 else
30527 if test x$gcc_no_link = xyes; then
30528 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30530 { (exit 1); exit 1; }; }
30532 cat >conftest.$ac_ext <<_ACEOF
30533 #line $LINENO "configure"
30534 /* confdefs.h. */
30535 _ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h. */
30539 /* System header to define __stub macros and hopefully few prototypes,
30540 which can conflict with char $ac_func (); below.
30541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30542 <limits.h> exists even on freestanding compilers. */
30543 #ifdef __STDC__
30544 # include <limits.h>
30545 #else
30546 # include <assert.h>
30547 #endif
30548 /* Override any gcc2 internal prototype to avoid an error. */
30549 #ifdef __cplusplus
30550 extern "C"
30552 #endif
30553 /* We use char because int might match the return type of a gcc2
30554 builtin and then its argument prototype would still apply. */
30555 char $ac_func ();
30556 /* The GNU C library defines this for functions which it implements
30557 to always fail with ENOSYS. Some functions are actually named
30558 something starting with __ and the normal name is an alias. */
30559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30560 choke me
30561 #else
30562 char (*f) () = $ac_func;
30563 #endif
30564 #ifdef __cplusplus
30566 #endif
30569 main ()
30571 return f != $ac_func;
30573 return 0;
30575 _ACEOF
30576 rm -f conftest.$ac_objext conftest$ac_exeext
30577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30578 (eval $ac_link) 2>&5
30579 ac_status=$?
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } &&
30582 { ac_try='test -s conftest$ac_exeext'
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; }; then
30588 eval "$as_ac_var=yes"
30589 else
30590 echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30593 eval "$as_ac_var=no"
30595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30599 if test `eval echo '${'$as_ac_var'}'` = yes; then
30600 cat >>confdefs.h <<_ACEOF
30601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30602 _ACEOF
30605 done
30612 echo "$as_me:$LINENO: checking for float trig functions" >&5
30613 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
30614 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
30615 echo $ECHO_N "(cached) $ECHO_C" >&6
30616 else
30620 ac_ext=cc
30621 ac_cpp='$CXXCPP $CPPFLAGS'
30622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30626 cat >conftest.$ac_ext <<_ACEOF
30627 #line $LINENO "configure"
30628 /* confdefs.h. */
30629 _ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h. */
30633 #include <math.h>
30635 main ()
30637 `for x in acosf asinf atanf \
30638 cosf sinf tanf \
30639 coshf sinhf tanhf; do echo "$x (0);"; done`
30641 return 0;
30643 _ACEOF
30644 rm -f conftest.$ac_objext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30646 (eval $ac_compile) 2>&5
30647 ac_status=$?
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } &&
30650 { ac_try='test -s conftest.$ac_objext'
30651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652 (eval $ac_try) 2>&5
30653 ac_status=$?
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; }; then
30656 glibcxx_cv_func_float_trig_use=yes
30657 else
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 glibcxx_cv_func_float_trig_use=no
30663 rm -f conftest.$ac_objext conftest.$ac_ext
30664 ac_ext=c
30665 ac_cpp='$CPP $CPPFLAGS'
30666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30672 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
30673 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
30674 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
30684 for ac_func in acosf asinf atanf \
30685 cosf sinf tanf \
30686 coshf sinhf tanhf
30688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30689 echo "$as_me:$LINENO: checking for $ac_func" >&5
30690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30691 if eval "test \"\${$as_ac_var+set}\" = set"; then
30692 echo $ECHO_N "(cached) $ECHO_C" >&6
30693 else
30694 if test x$gcc_no_link = xyes; then
30695 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30697 { (exit 1); exit 1; }; }
30699 cat >conftest.$ac_ext <<_ACEOF
30700 #line $LINENO "configure"
30701 /* confdefs.h. */
30702 _ACEOF
30703 cat confdefs.h >>conftest.$ac_ext
30704 cat >>conftest.$ac_ext <<_ACEOF
30705 /* end confdefs.h. */
30706 /* System header to define __stub macros and hopefully few prototypes,
30707 which can conflict with char $ac_func (); below.
30708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30709 <limits.h> exists even on freestanding compilers. */
30710 #ifdef __STDC__
30711 # include <limits.h>
30712 #else
30713 # include <assert.h>
30714 #endif
30715 /* Override any gcc2 internal prototype to avoid an error. */
30716 #ifdef __cplusplus
30717 extern "C"
30719 #endif
30720 /* We use char because int might match the return type of a gcc2
30721 builtin and then its argument prototype would still apply. */
30722 char $ac_func ();
30723 /* The GNU C library defines this for functions which it implements
30724 to always fail with ENOSYS. Some functions are actually named
30725 something starting with __ and the normal name is an alias. */
30726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30727 choke me
30728 #else
30729 char (*f) () = $ac_func;
30730 #endif
30731 #ifdef __cplusplus
30733 #endif
30736 main ()
30738 return f != $ac_func;
30740 return 0;
30742 _ACEOF
30743 rm -f conftest.$ac_objext conftest$ac_exeext
30744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30745 (eval $ac_link) 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); } &&
30749 { ac_try='test -s conftest$ac_exeext'
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30752 ac_status=$?
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30755 eval "$as_ac_var=yes"
30756 else
30757 echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30760 eval "$as_ac_var=no"
30762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30766 if test `eval echo '${'$as_ac_var'}'` = yes; then
30767 cat >>confdefs.h <<_ACEOF
30768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30769 _ACEOF
30772 done
30777 echo "$as_me:$LINENO: checking for float round functions" >&5
30778 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
30779 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30781 else
30785 ac_ext=cc
30786 ac_cpp='$CXXCPP $CPPFLAGS'
30787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30791 cat >conftest.$ac_ext <<_ACEOF
30792 #line $LINENO "configure"
30793 /* confdefs.h. */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30798 #include <math.h>
30800 main ()
30802 `for x in ceilf floorf; do echo "$x (0);"; done`
30804 return 0;
30806 _ACEOF
30807 rm -f conftest.$ac_objext
30808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30809 (eval $ac_compile) 2>&5
30810 ac_status=$?
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); } &&
30813 { ac_try='test -s conftest.$ac_objext'
30814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30815 (eval $ac_try) 2>&5
30816 ac_status=$?
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); }; }; then
30819 glibcxx_cv_func_float_round_use=yes
30820 else
30821 echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30824 glibcxx_cv_func_float_round_use=no
30826 rm -f conftest.$ac_objext conftest.$ac_ext
30827 ac_ext=c
30828 ac_cpp='$CPP $CPPFLAGS'
30829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30835 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
30836 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
30837 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
30840 for ac_func in ceilf floorf
30842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30843 echo "$as_me:$LINENO: checking for $ac_func" >&5
30844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30845 if eval "test \"\${$as_ac_var+set}\" = set"; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30847 else
30848 if test x$gcc_no_link = xyes; then
30849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30851 { (exit 1); exit 1; }; }
30853 cat >conftest.$ac_ext <<_ACEOF
30854 #line $LINENO "configure"
30855 /* confdefs.h. */
30856 _ACEOF
30857 cat confdefs.h >>conftest.$ac_ext
30858 cat >>conftest.$ac_ext <<_ACEOF
30859 /* end confdefs.h. */
30860 /* System header to define __stub macros and hopefully few prototypes,
30861 which can conflict with char $ac_func (); below.
30862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30863 <limits.h> exists even on freestanding compilers. */
30864 #ifdef __STDC__
30865 # include <limits.h>
30866 #else
30867 # include <assert.h>
30868 #endif
30869 /* Override any gcc2 internal prototype to avoid an error. */
30870 #ifdef __cplusplus
30871 extern "C"
30873 #endif
30874 /* We use char because int might match the return type of a gcc2
30875 builtin and then its argument prototype would still apply. */
30876 char $ac_func ();
30877 /* The GNU C library defines this for functions which it implements
30878 to always fail with ENOSYS. Some functions are actually named
30879 something starting with __ and the normal name is an alias. */
30880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30881 choke me
30882 #else
30883 char (*f) () = $ac_func;
30884 #endif
30885 #ifdef __cplusplus
30887 #endif
30890 main ()
30892 return f != $ac_func;
30894 return 0;
30896 _ACEOF
30897 rm -f conftest.$ac_objext conftest$ac_exeext
30898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30899 (eval $ac_link) 2>&5
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); } &&
30903 { ac_try='test -s conftest$ac_exeext'
30904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30905 (eval $ac_try) 2>&5
30906 ac_status=$?
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); }; }; then
30909 eval "$as_ac_var=yes"
30910 else
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30914 eval "$as_ac_var=no"
30916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30920 if test `eval echo '${'$as_ac_var'}'` = yes; then
30921 cat >>confdefs.h <<_ACEOF
30922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30923 _ACEOF
30926 done
30932 echo "$as_me:$LINENO: checking for expf declaration" >&5
30933 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
30934 if test x${glibcxx_cv_func_expf_use+set} != xset; then
30935 if test "${glibcxx_cv_func_expf_use+set}" = set; then
30936 echo $ECHO_N "(cached) $ECHO_C" >&6
30937 else
30941 ac_ext=cc
30942 ac_cpp='$CXXCPP $CPPFLAGS'
30943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30947 cat >conftest.$ac_ext <<_ACEOF
30948 #line $LINENO "configure"
30949 /* confdefs.h. */
30950 _ACEOF
30951 cat confdefs.h >>conftest.$ac_ext
30952 cat >>conftest.$ac_ext <<_ACEOF
30953 /* end confdefs.h. */
30954 #include <math.h>
30955 #ifdef HAVE_IEEEFP_H
30956 #include <ieeefp.h>
30957 #endif
30960 main ()
30962 expf(0);
30964 return 0;
30966 _ACEOF
30967 rm -f conftest.$ac_objext
30968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30969 (eval $ac_compile) 2>&5
30970 ac_status=$?
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); } &&
30973 { ac_try='test -s conftest.$ac_objext'
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; }; then
30979 glibcxx_cv_func_expf_use=yes
30980 else
30981 echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30984 glibcxx_cv_func_expf_use=no
30986 rm -f conftest.$ac_objext conftest.$ac_ext
30987 ac_ext=c
30988 ac_cpp='$CPP $CPPFLAGS'
30989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30997 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
30998 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
31000 if test x$glibcxx_cv_func_expf_use = x"yes"; then
31002 for ac_func in expf
31004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31005 echo "$as_me:$LINENO: checking for $ac_func" >&5
31006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31007 if eval "test \"\${$as_ac_var+set}\" = set"; then
31008 echo $ECHO_N "(cached) $ECHO_C" >&6
31009 else
31010 if test x$gcc_no_link = xyes; then
31011 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31012 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31013 { (exit 1); exit 1; }; }
31015 cat >conftest.$ac_ext <<_ACEOF
31016 #line $LINENO "configure"
31017 /* confdefs.h. */
31018 _ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h. */
31022 /* System header to define __stub macros and hopefully few prototypes,
31023 which can conflict with char $ac_func (); below.
31024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31025 <limits.h> exists even on freestanding compilers. */
31026 #ifdef __STDC__
31027 # include <limits.h>
31028 #else
31029 # include <assert.h>
31030 #endif
31031 /* Override any gcc2 internal prototype to avoid an error. */
31032 #ifdef __cplusplus
31033 extern "C"
31035 #endif
31036 /* We use char because int might match the return type of a gcc2
31037 builtin and then its argument prototype would still apply. */
31038 char $ac_func ();
31039 /* The GNU C library defines this for functions which it implements
31040 to always fail with ENOSYS. Some functions are actually named
31041 something starting with __ and the normal name is an alias. */
31042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31043 choke me
31044 #else
31045 char (*f) () = $ac_func;
31046 #endif
31047 #ifdef __cplusplus
31049 #endif
31052 main ()
31054 return f != $ac_func;
31056 return 0;
31058 _ACEOF
31059 rm -f conftest.$ac_objext conftest$ac_exeext
31060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061 (eval $ac_link) 2>&5
31062 ac_status=$?
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } &&
31065 { ac_try='test -s conftest$ac_exeext'
31066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067 (eval $ac_try) 2>&5
31068 ac_status=$?
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; }; then
31071 eval "$as_ac_var=yes"
31072 else
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31076 eval "$as_ac_var=no"
31078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31082 if test `eval echo '${'$as_ac_var'}'` = yes; then
31083 cat >>confdefs.h <<_ACEOF
31084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31085 _ACEOF
31088 done
31090 else
31092 echo "$as_me:$LINENO: checking for _expf declaration" >&5
31093 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
31094 if test x${glibcxx_cv_func__expf_use+set} != xset; then
31095 if test "${glibcxx_cv_func__expf_use+set}" = set; then
31096 echo $ECHO_N "(cached) $ECHO_C" >&6
31097 else
31101 ac_ext=cc
31102 ac_cpp='$CXXCPP $CPPFLAGS'
31103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31107 cat >conftest.$ac_ext <<_ACEOF
31108 #line $LINENO "configure"
31109 /* confdefs.h. */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31114 #include <math.h>
31115 #ifdef HAVE_IEEEFP_H
31116 #include <ieeefp.h>
31117 #endif
31120 main ()
31122 _expf(0);
31124 return 0;
31126 _ACEOF
31127 rm -f conftest.$ac_objext
31128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31129 (eval $ac_compile) 2>&5
31130 ac_status=$?
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); } &&
31133 { ac_try='test -s conftest.$ac_objext'
31134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31135 (eval $ac_try) 2>&5
31136 ac_status=$?
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); }; }; then
31139 glibcxx_cv_func__expf_use=yes
31140 else
31141 echo "$as_me: failed program was:" >&5
31142 sed 's/^/| /' conftest.$ac_ext >&5
31144 glibcxx_cv_func__expf_use=no
31146 rm -f conftest.$ac_objext conftest.$ac_ext
31147 ac_ext=c
31148 ac_cpp='$CPP $CPPFLAGS'
31149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31157 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
31158 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
31160 if test x$glibcxx_cv_func__expf_use = x"yes"; then
31162 for ac_func in _expf
31164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31165 echo "$as_me:$LINENO: checking for $ac_func" >&5
31166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31167 if eval "test \"\${$as_ac_var+set}\" = set"; then
31168 echo $ECHO_N "(cached) $ECHO_C" >&6
31169 else
31170 if test x$gcc_no_link = xyes; then
31171 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31172 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31173 { (exit 1); exit 1; }; }
31175 cat >conftest.$ac_ext <<_ACEOF
31176 #line $LINENO "configure"
31177 /* confdefs.h. */
31178 _ACEOF
31179 cat confdefs.h >>conftest.$ac_ext
31180 cat >>conftest.$ac_ext <<_ACEOF
31181 /* end confdefs.h. */
31182 /* System header to define __stub macros and hopefully few prototypes,
31183 which can conflict with char $ac_func (); below.
31184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31185 <limits.h> exists even on freestanding compilers. */
31186 #ifdef __STDC__
31187 # include <limits.h>
31188 #else
31189 # include <assert.h>
31190 #endif
31191 /* Override any gcc2 internal prototype to avoid an error. */
31192 #ifdef __cplusplus
31193 extern "C"
31195 #endif
31196 /* We use char because int might match the return type of a gcc2
31197 builtin and then its argument prototype would still apply. */
31198 char $ac_func ();
31199 /* The GNU C library defines this for functions which it implements
31200 to always fail with ENOSYS. Some functions are actually named
31201 something starting with __ and the normal name is an alias. */
31202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31203 choke me
31204 #else
31205 char (*f) () = $ac_func;
31206 #endif
31207 #ifdef __cplusplus
31209 #endif
31212 main ()
31214 return f != $ac_func;
31216 return 0;
31218 _ACEOF
31219 rm -f conftest.$ac_objext conftest$ac_exeext
31220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31221 (eval $ac_link) 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); } &&
31225 { ac_try='test -s conftest$ac_exeext'
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; }; then
31231 eval "$as_ac_var=yes"
31232 else
31233 echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31236 eval "$as_ac_var=no"
31238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31242 if test `eval echo '${'$as_ac_var'}'` = yes; then
31243 cat >>confdefs.h <<_ACEOF
31244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31245 _ACEOF
31248 done
31255 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
31256 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
31257 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
31258 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260 else
31264 ac_ext=cc
31265 ac_cpp='$CXXCPP $CPPFLAGS'
31266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31270 cat >conftest.$ac_ext <<_ACEOF
31271 #line $LINENO "configure"
31272 /* confdefs.h. */
31273 _ACEOF
31274 cat confdefs.h >>conftest.$ac_ext
31275 cat >>conftest.$ac_ext <<_ACEOF
31276 /* end confdefs.h. */
31277 #include <math.h>
31278 #ifdef HAVE_IEEEFP_H
31279 #include <ieeefp.h>
31280 #endif
31283 main ()
31285 isnanf(0);
31287 return 0;
31289 _ACEOF
31290 rm -f conftest.$ac_objext
31291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31292 (eval $ac_compile) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } &&
31296 { ac_try='test -s conftest.$ac_objext'
31297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31298 (eval $ac_try) 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
31302 glibcxx_cv_func_isnanf_use=yes
31303 else
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31307 glibcxx_cv_func_isnanf_use=no
31309 rm -f conftest.$ac_objext conftest.$ac_ext
31310 ac_ext=c
31311 ac_cpp='$CPP $CPPFLAGS'
31312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31320 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
31321 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
31323 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
31325 for ac_func in isnanf
31327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31328 echo "$as_me:$LINENO: checking for $ac_func" >&5
31329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31330 if eval "test \"\${$as_ac_var+set}\" = set"; then
31331 echo $ECHO_N "(cached) $ECHO_C" >&6
31332 else
31333 if test x$gcc_no_link = xyes; then
31334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31336 { (exit 1); exit 1; }; }
31338 cat >conftest.$ac_ext <<_ACEOF
31339 #line $LINENO "configure"
31340 /* confdefs.h. */
31341 _ACEOF
31342 cat confdefs.h >>conftest.$ac_ext
31343 cat >>conftest.$ac_ext <<_ACEOF
31344 /* end confdefs.h. */
31345 /* System header to define __stub macros and hopefully few prototypes,
31346 which can conflict with char $ac_func (); below.
31347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31348 <limits.h> exists even on freestanding compilers. */
31349 #ifdef __STDC__
31350 # include <limits.h>
31351 #else
31352 # include <assert.h>
31353 #endif
31354 /* Override any gcc2 internal prototype to avoid an error. */
31355 #ifdef __cplusplus
31356 extern "C"
31358 #endif
31359 /* We use char because int might match the return type of a gcc2
31360 builtin and then its argument prototype would still apply. */
31361 char $ac_func ();
31362 /* The GNU C library defines this for functions which it implements
31363 to always fail with ENOSYS. Some functions are actually named
31364 something starting with __ and the normal name is an alias. */
31365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31366 choke me
31367 #else
31368 char (*f) () = $ac_func;
31369 #endif
31370 #ifdef __cplusplus
31372 #endif
31375 main ()
31377 return f != $ac_func;
31379 return 0;
31381 _ACEOF
31382 rm -f conftest.$ac_objext conftest$ac_exeext
31383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31384 (eval $ac_link) 2>&5
31385 ac_status=$?
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } &&
31388 { ac_try='test -s conftest$ac_exeext'
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; }; then
31394 eval "$as_ac_var=yes"
31395 else
31396 echo "$as_me: failed program was:" >&5
31397 sed 's/^/| /' conftest.$ac_ext >&5
31399 eval "$as_ac_var=no"
31401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31405 if test `eval echo '${'$as_ac_var'}'` = yes; then
31406 cat >>confdefs.h <<_ACEOF
31407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31408 _ACEOF
31411 done
31413 else
31415 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
31416 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
31417 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
31418 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
31419 echo $ECHO_N "(cached) $ECHO_C" >&6
31420 else
31424 ac_ext=cc
31425 ac_cpp='$CXXCPP $CPPFLAGS'
31426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31430 cat >conftest.$ac_ext <<_ACEOF
31431 #line $LINENO "configure"
31432 /* confdefs.h. */
31433 _ACEOF
31434 cat confdefs.h >>conftest.$ac_ext
31435 cat >>conftest.$ac_ext <<_ACEOF
31436 /* end confdefs.h. */
31437 #include <math.h>
31438 #ifdef HAVE_IEEEFP_H
31439 #include <ieeefp.h>
31440 #endif
31443 main ()
31445 _isnanf(0);
31447 return 0;
31449 _ACEOF
31450 rm -f conftest.$ac_objext
31451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31452 (eval $ac_compile) 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); } &&
31456 { ac_try='test -s conftest.$ac_objext'
31457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458 (eval $ac_try) 2>&5
31459 ac_status=$?
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; }; then
31462 glibcxx_cv_func__isnanf_use=yes
31463 else
31464 echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31467 glibcxx_cv_func__isnanf_use=no
31469 rm -f conftest.$ac_objext conftest.$ac_ext
31470 ac_ext=c
31471 ac_cpp='$CPP $CPPFLAGS'
31472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31480 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
31481 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
31483 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
31485 for ac_func in _isnanf
31487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31488 echo "$as_me:$LINENO: checking for $ac_func" >&5
31489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31490 if eval "test \"\${$as_ac_var+set}\" = set"; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31492 else
31493 if test x$gcc_no_link = xyes; then
31494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31496 { (exit 1); exit 1; }; }
31498 cat >conftest.$ac_ext <<_ACEOF
31499 #line $LINENO "configure"
31500 /* confdefs.h. */
31501 _ACEOF
31502 cat confdefs.h >>conftest.$ac_ext
31503 cat >>conftest.$ac_ext <<_ACEOF
31504 /* end confdefs.h. */
31505 /* System header to define __stub macros and hopefully few prototypes,
31506 which can conflict with char $ac_func (); below.
31507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31508 <limits.h> exists even on freestanding compilers. */
31509 #ifdef __STDC__
31510 # include <limits.h>
31511 #else
31512 # include <assert.h>
31513 #endif
31514 /* Override any gcc2 internal prototype to avoid an error. */
31515 #ifdef __cplusplus
31516 extern "C"
31518 #endif
31519 /* We use char because int might match the return type of a gcc2
31520 builtin and then its argument prototype would still apply. */
31521 char $ac_func ();
31522 /* The GNU C library defines this for functions which it implements
31523 to always fail with ENOSYS. Some functions are actually named
31524 something starting with __ and the normal name is an alias. */
31525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31526 choke me
31527 #else
31528 char (*f) () = $ac_func;
31529 #endif
31530 #ifdef __cplusplus
31532 #endif
31535 main ()
31537 return f != $ac_func;
31539 return 0;
31541 _ACEOF
31542 rm -f conftest.$ac_objext conftest$ac_exeext
31543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31544 (eval $ac_link) 2>&5
31545 ac_status=$?
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
31548 { ac_try='test -s conftest$ac_exeext'
31549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31550 (eval $ac_try) 2>&5
31551 ac_status=$?
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); }; }; then
31554 eval "$as_ac_var=yes"
31555 else
31556 echo "$as_me: failed program was:" >&5
31557 sed 's/^/| /' conftest.$ac_ext >&5
31559 eval "$as_ac_var=no"
31561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31565 if test `eval echo '${'$as_ac_var'}'` = yes; then
31566 cat >>confdefs.h <<_ACEOF
31567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31568 _ACEOF
31571 done
31578 echo "$as_me:$LINENO: checking for isinff declaration" >&5
31579 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
31580 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
31581 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
31582 echo $ECHO_N "(cached) $ECHO_C" >&6
31583 else
31587 ac_ext=cc
31588 ac_cpp='$CXXCPP $CPPFLAGS'
31589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31593 cat >conftest.$ac_ext <<_ACEOF
31594 #line $LINENO "configure"
31595 /* confdefs.h. */
31596 _ACEOF
31597 cat confdefs.h >>conftest.$ac_ext
31598 cat >>conftest.$ac_ext <<_ACEOF
31599 /* end confdefs.h. */
31600 #include <math.h>
31601 #ifdef HAVE_IEEEFP_H
31602 #include <ieeefp.h>
31603 #endif
31606 main ()
31608 isinff(0);
31610 return 0;
31612 _ACEOF
31613 rm -f conftest.$ac_objext
31614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31615 (eval $ac_compile) 2>&5
31616 ac_status=$?
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
31619 { ac_try='test -s conftest.$ac_objext'
31620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31621 (eval $ac_try) 2>&5
31622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; }; then
31625 glibcxx_cv_func_isinff_use=yes
31626 else
31627 echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.$ac_ext >&5
31630 glibcxx_cv_func_isinff_use=no
31632 rm -f conftest.$ac_objext conftest.$ac_ext
31633 ac_ext=c
31634 ac_cpp='$CPP $CPPFLAGS'
31635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31643 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
31644 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
31646 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
31648 for ac_func in isinff
31650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31651 echo "$as_me:$LINENO: checking for $ac_func" >&5
31652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31653 if eval "test \"\${$as_ac_var+set}\" = set"; then
31654 echo $ECHO_N "(cached) $ECHO_C" >&6
31655 else
31656 if test x$gcc_no_link = xyes; then
31657 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31659 { (exit 1); exit 1; }; }
31661 cat >conftest.$ac_ext <<_ACEOF
31662 #line $LINENO "configure"
31663 /* confdefs.h. */
31664 _ACEOF
31665 cat confdefs.h >>conftest.$ac_ext
31666 cat >>conftest.$ac_ext <<_ACEOF
31667 /* end confdefs.h. */
31668 /* System header to define __stub macros and hopefully few prototypes,
31669 which can conflict with char $ac_func (); below.
31670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31671 <limits.h> exists even on freestanding compilers. */
31672 #ifdef __STDC__
31673 # include <limits.h>
31674 #else
31675 # include <assert.h>
31676 #endif
31677 /* Override any gcc2 internal prototype to avoid an error. */
31678 #ifdef __cplusplus
31679 extern "C"
31681 #endif
31682 /* We use char because int might match the return type of a gcc2
31683 builtin and then its argument prototype would still apply. */
31684 char $ac_func ();
31685 /* The GNU C library defines this for functions which it implements
31686 to always fail with ENOSYS. Some functions are actually named
31687 something starting with __ and the normal name is an alias. */
31688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31689 choke me
31690 #else
31691 char (*f) () = $ac_func;
31692 #endif
31693 #ifdef __cplusplus
31695 #endif
31698 main ()
31700 return f != $ac_func;
31702 return 0;
31704 _ACEOF
31705 rm -f conftest.$ac_objext conftest$ac_exeext
31706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31707 (eval $ac_link) 2>&5
31708 ac_status=$?
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); } &&
31711 { ac_try='test -s conftest$ac_exeext'
31712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713 (eval $ac_try) 2>&5
31714 ac_status=$?
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); }; }; then
31717 eval "$as_ac_var=yes"
31718 else
31719 echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31722 eval "$as_ac_var=no"
31724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31728 if test `eval echo '${'$as_ac_var'}'` = yes; then
31729 cat >>confdefs.h <<_ACEOF
31730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31731 _ACEOF
31734 done
31736 else
31738 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
31739 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
31740 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
31741 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31743 else
31747 ac_ext=cc
31748 ac_cpp='$CXXCPP $CPPFLAGS'
31749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31753 cat >conftest.$ac_ext <<_ACEOF
31754 #line $LINENO "configure"
31755 /* confdefs.h. */
31756 _ACEOF
31757 cat confdefs.h >>conftest.$ac_ext
31758 cat >>conftest.$ac_ext <<_ACEOF
31759 /* end confdefs.h. */
31760 #include <math.h>
31761 #ifdef HAVE_IEEEFP_H
31762 #include <ieeefp.h>
31763 #endif
31766 main ()
31768 _isinff(0);
31770 return 0;
31772 _ACEOF
31773 rm -f conftest.$ac_objext
31774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31775 (eval $ac_compile) 2>&5
31776 ac_status=$?
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); } &&
31779 { ac_try='test -s conftest.$ac_objext'
31780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781 (eval $ac_try) 2>&5
31782 ac_status=$?
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; }; then
31785 glibcxx_cv_func__isinff_use=yes
31786 else
31787 echo "$as_me: failed program was:" >&5
31788 sed 's/^/| /' conftest.$ac_ext >&5
31790 glibcxx_cv_func__isinff_use=no
31792 rm -f conftest.$ac_objext conftest.$ac_ext
31793 ac_ext=c
31794 ac_cpp='$CPP $CPPFLAGS'
31795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31803 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
31804 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
31806 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
31808 for ac_func in _isinff
31810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31811 echo "$as_me:$LINENO: checking for $ac_func" >&5
31812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31813 if eval "test \"\${$as_ac_var+set}\" = set"; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31815 else
31816 if test x$gcc_no_link = xyes; then
31817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31819 { (exit 1); exit 1; }; }
31821 cat >conftest.$ac_ext <<_ACEOF
31822 #line $LINENO "configure"
31823 /* confdefs.h. */
31824 _ACEOF
31825 cat confdefs.h >>conftest.$ac_ext
31826 cat >>conftest.$ac_ext <<_ACEOF
31827 /* end confdefs.h. */
31828 /* System header to define __stub macros and hopefully few prototypes,
31829 which can conflict with char $ac_func (); below.
31830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31831 <limits.h> exists even on freestanding compilers. */
31832 #ifdef __STDC__
31833 # include <limits.h>
31834 #else
31835 # include <assert.h>
31836 #endif
31837 /* Override any gcc2 internal prototype to avoid an error. */
31838 #ifdef __cplusplus
31839 extern "C"
31841 #endif
31842 /* We use char because int might match the return type of a gcc2
31843 builtin and then its argument prototype would still apply. */
31844 char $ac_func ();
31845 /* The GNU C library defines this for functions which it implements
31846 to always fail with ENOSYS. Some functions are actually named
31847 something starting with __ and the normal name is an alias. */
31848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31849 choke me
31850 #else
31851 char (*f) () = $ac_func;
31852 #endif
31853 #ifdef __cplusplus
31855 #endif
31858 main ()
31860 return f != $ac_func;
31862 return 0;
31864 _ACEOF
31865 rm -f conftest.$ac_objext conftest$ac_exeext
31866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31867 (eval $ac_link) 2>&5
31868 ac_status=$?
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); } &&
31871 { ac_try='test -s conftest$ac_exeext'
31872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31873 (eval $ac_try) 2>&5
31874 ac_status=$?
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; }; then
31877 eval "$as_ac_var=yes"
31878 else
31879 echo "$as_me: failed program was:" >&5
31880 sed 's/^/| /' conftest.$ac_ext >&5
31882 eval "$as_ac_var=no"
31884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31888 if test `eval echo '${'$as_ac_var'}'` = yes; then
31889 cat >>confdefs.h <<_ACEOF
31890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31891 _ACEOF
31894 done
31901 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
31902 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
31903 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
31904 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31906 else
31910 ac_ext=cc
31911 ac_cpp='$CXXCPP $CPPFLAGS'
31912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31916 cat >conftest.$ac_ext <<_ACEOF
31917 #line $LINENO "configure"
31918 /* confdefs.h. */
31919 _ACEOF
31920 cat confdefs.h >>conftest.$ac_ext
31921 cat >>conftest.$ac_ext <<_ACEOF
31922 /* end confdefs.h. */
31923 #include <math.h>
31925 main ()
31927 atan2f(0, 0);
31929 return 0;
31931 _ACEOF
31932 rm -f conftest.$ac_objext
31933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31934 (eval $ac_compile) 2>&5
31935 ac_status=$?
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); } &&
31938 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31944 glibcxx_cv_func_atan2f_use=yes
31945 else
31946 echo "$as_me: failed program was:" >&5
31947 sed 's/^/| /' conftest.$ac_ext >&5
31949 glibcxx_cv_func_atan2f_use=no
31951 rm -f conftest.$ac_objext conftest.$ac_ext
31952 ac_ext=c
31953 ac_cpp='$CPP $CPPFLAGS'
31954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31962 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
31963 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
31965 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
31967 for ac_func in atan2f
31969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31970 echo "$as_me:$LINENO: checking for $ac_func" >&5
31971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31972 if eval "test \"\${$as_ac_var+set}\" = set"; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975 if test x$gcc_no_link = xyes; then
31976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31978 { (exit 1); exit 1; }; }
31980 cat >conftest.$ac_ext <<_ACEOF
31981 #line $LINENO "configure"
31982 /* confdefs.h. */
31983 _ACEOF
31984 cat confdefs.h >>conftest.$ac_ext
31985 cat >>conftest.$ac_ext <<_ACEOF
31986 /* end confdefs.h. */
31987 /* System header to define __stub macros and hopefully few prototypes,
31988 which can conflict with char $ac_func (); below.
31989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31990 <limits.h> exists even on freestanding compilers. */
31991 #ifdef __STDC__
31992 # include <limits.h>
31993 #else
31994 # include <assert.h>
31995 #endif
31996 /* Override any gcc2 internal prototype to avoid an error. */
31997 #ifdef __cplusplus
31998 extern "C"
32000 #endif
32001 /* We use char because int might match the return type of a gcc2
32002 builtin and then its argument prototype would still apply. */
32003 char $ac_func ();
32004 /* The GNU C library defines this for functions which it implements
32005 to always fail with ENOSYS. Some functions are actually named
32006 something starting with __ and the normal name is an alias. */
32007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32008 choke me
32009 #else
32010 char (*f) () = $ac_func;
32011 #endif
32012 #ifdef __cplusplus
32014 #endif
32017 main ()
32019 return f != $ac_func;
32021 return 0;
32023 _ACEOF
32024 rm -f conftest.$ac_objext conftest$ac_exeext
32025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32026 (eval $ac_link) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); } &&
32030 { ac_try='test -s conftest$ac_exeext'
32031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032 (eval $ac_try) 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 eval "$as_ac_var=yes"
32037 else
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32041 eval "$as_ac_var=no"
32043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32047 if test `eval echo '${'$as_ac_var'}'` = yes; then
32048 cat >>confdefs.h <<_ACEOF
32049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32050 _ACEOF
32053 done
32055 else
32057 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
32058 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
32059 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
32060 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
32061 echo $ECHO_N "(cached) $ECHO_C" >&6
32062 else
32066 ac_ext=cc
32067 ac_cpp='$CXXCPP $CPPFLAGS'
32068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32072 cat >conftest.$ac_ext <<_ACEOF
32073 #line $LINENO "configure"
32074 /* confdefs.h. */
32075 _ACEOF
32076 cat confdefs.h >>conftest.$ac_ext
32077 cat >>conftest.$ac_ext <<_ACEOF
32078 /* end confdefs.h. */
32079 #include <math.h>
32081 main ()
32083 _atan2f(0, 0);
32085 return 0;
32087 _ACEOF
32088 rm -f conftest.$ac_objext
32089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32090 (eval $ac_compile) 2>&5
32091 ac_status=$?
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); } &&
32094 { ac_try='test -s conftest.$ac_objext'
32095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096 (eval $ac_try) 2>&5
32097 ac_status=$?
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; }; then
32100 glibcxx_cv_func__atan2f_use=yes
32101 else
32102 echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32105 glibcxx_cv_func__atan2f_use=no
32107 rm -f conftest.$ac_objext conftest.$ac_ext
32108 ac_ext=c
32109 ac_cpp='$CPP $CPPFLAGS'
32110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32118 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
32119 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
32121 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
32123 for ac_func in _atan2f
32125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32126 echo "$as_me:$LINENO: checking for $ac_func" >&5
32127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32128 if eval "test \"\${$as_ac_var+set}\" = set"; then
32129 echo $ECHO_N "(cached) $ECHO_C" >&6
32130 else
32131 if test x$gcc_no_link = xyes; then
32132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32134 { (exit 1); exit 1; }; }
32136 cat >conftest.$ac_ext <<_ACEOF
32137 #line $LINENO "configure"
32138 /* confdefs.h. */
32139 _ACEOF
32140 cat confdefs.h >>conftest.$ac_ext
32141 cat >>conftest.$ac_ext <<_ACEOF
32142 /* end confdefs.h. */
32143 /* System header to define __stub macros and hopefully few prototypes,
32144 which can conflict with char $ac_func (); below.
32145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32146 <limits.h> exists even on freestanding compilers. */
32147 #ifdef __STDC__
32148 # include <limits.h>
32149 #else
32150 # include <assert.h>
32151 #endif
32152 /* Override any gcc2 internal prototype to avoid an error. */
32153 #ifdef __cplusplus
32154 extern "C"
32156 #endif
32157 /* We use char because int might match the return type of a gcc2
32158 builtin and then its argument prototype would still apply. */
32159 char $ac_func ();
32160 /* The GNU C library defines this for functions which it implements
32161 to always fail with ENOSYS. Some functions are actually named
32162 something starting with __ and the normal name is an alias. */
32163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32164 choke me
32165 #else
32166 char (*f) () = $ac_func;
32167 #endif
32168 #ifdef __cplusplus
32170 #endif
32173 main ()
32175 return f != $ac_func;
32177 return 0;
32179 _ACEOF
32180 rm -f conftest.$ac_objext conftest$ac_exeext
32181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32182 (eval $ac_link) 2>&5
32183 ac_status=$?
32184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185 (exit $ac_status); } &&
32186 { ac_try='test -s conftest$ac_exeext'
32187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32188 (eval $ac_try) 2>&5
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; }; then
32192 eval "$as_ac_var=yes"
32193 else
32194 echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.$ac_ext >&5
32197 eval "$as_ac_var=no"
32199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32203 if test `eval echo '${'$as_ac_var'}'` = yes; then
32204 cat >>confdefs.h <<_ACEOF
32205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32206 _ACEOF
32209 done
32216 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
32217 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
32218 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
32219 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
32220 echo $ECHO_N "(cached) $ECHO_C" >&6
32221 else
32225 ac_ext=cc
32226 ac_cpp='$CXXCPP $CPPFLAGS'
32227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32231 cat >conftest.$ac_ext <<_ACEOF
32232 #line $LINENO "configure"
32233 /* confdefs.h. */
32234 _ACEOF
32235 cat confdefs.h >>conftest.$ac_ext
32236 cat >>conftest.$ac_ext <<_ACEOF
32237 /* end confdefs.h. */
32238 #include <math.h>
32239 #ifdef HAVE_IEEEFP_H
32240 #include <ieeefp.h>
32241 #endif
32244 main ()
32246 fabsf(0);
32248 return 0;
32250 _ACEOF
32251 rm -f conftest.$ac_objext
32252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32253 (eval $ac_compile) 2>&5
32254 ac_status=$?
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); } &&
32257 { ac_try='test -s conftest.$ac_objext'
32258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32259 (eval $ac_try) 2>&5
32260 ac_status=$?
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); }; }; then
32263 glibcxx_cv_func_fabsf_use=yes
32264 else
32265 echo "$as_me: failed program was:" >&5
32266 sed 's/^/| /' conftest.$ac_ext >&5
32268 glibcxx_cv_func_fabsf_use=no
32270 rm -f conftest.$ac_objext conftest.$ac_ext
32271 ac_ext=c
32272 ac_cpp='$CPP $CPPFLAGS'
32273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32281 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
32282 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
32284 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32286 for ac_func in fabsf
32288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32289 echo "$as_me:$LINENO: checking for $ac_func" >&5
32290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32291 if eval "test \"\${$as_ac_var+set}\" = set"; then
32292 echo $ECHO_N "(cached) $ECHO_C" >&6
32293 else
32294 if test x$gcc_no_link = xyes; then
32295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32297 { (exit 1); exit 1; }; }
32299 cat >conftest.$ac_ext <<_ACEOF
32300 #line $LINENO "configure"
32301 /* confdefs.h. */
32302 _ACEOF
32303 cat confdefs.h >>conftest.$ac_ext
32304 cat >>conftest.$ac_ext <<_ACEOF
32305 /* end confdefs.h. */
32306 /* System header to define __stub macros and hopefully few prototypes,
32307 which can conflict with char $ac_func (); below.
32308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32309 <limits.h> exists even on freestanding compilers. */
32310 #ifdef __STDC__
32311 # include <limits.h>
32312 #else
32313 # include <assert.h>
32314 #endif
32315 /* Override any gcc2 internal prototype to avoid an error. */
32316 #ifdef __cplusplus
32317 extern "C"
32319 #endif
32320 /* We use char because int might match the return type of a gcc2
32321 builtin and then its argument prototype would still apply. */
32322 char $ac_func ();
32323 /* The GNU C library defines this for functions which it implements
32324 to always fail with ENOSYS. Some functions are actually named
32325 something starting with __ and the normal name is an alias. */
32326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32327 choke me
32328 #else
32329 char (*f) () = $ac_func;
32330 #endif
32331 #ifdef __cplusplus
32333 #endif
32336 main ()
32338 return f != $ac_func;
32340 return 0;
32342 _ACEOF
32343 rm -f conftest.$ac_objext conftest$ac_exeext
32344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32345 (eval $ac_link) 2>&5
32346 ac_status=$?
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); } &&
32349 { ac_try='test -s conftest$ac_exeext'
32350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32351 (eval $ac_try) 2>&5
32352 ac_status=$?
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); }; }; then
32355 eval "$as_ac_var=yes"
32356 else
32357 echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32360 eval "$as_ac_var=no"
32362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32366 if test `eval echo '${'$as_ac_var'}'` = yes; then
32367 cat >>confdefs.h <<_ACEOF
32368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32369 _ACEOF
32372 done
32374 else
32376 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
32377 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
32378 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
32379 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
32380 echo $ECHO_N "(cached) $ECHO_C" >&6
32381 else
32385 ac_ext=cc
32386 ac_cpp='$CXXCPP $CPPFLAGS'
32387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32391 cat >conftest.$ac_ext <<_ACEOF
32392 #line $LINENO "configure"
32393 /* confdefs.h. */
32394 _ACEOF
32395 cat confdefs.h >>conftest.$ac_ext
32396 cat >>conftest.$ac_ext <<_ACEOF
32397 /* end confdefs.h. */
32398 #include <math.h>
32399 #ifdef HAVE_IEEEFP_H
32400 #include <ieeefp.h>
32401 #endif
32404 main ()
32406 _fabsf(0);
32408 return 0;
32410 _ACEOF
32411 rm -f conftest.$ac_objext
32412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32413 (eval $ac_compile) 2>&5
32414 ac_status=$?
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); } &&
32417 { ac_try='test -s conftest.$ac_objext'
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 glibcxx_cv_func__fabsf_use=yes
32424 else
32425 echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32428 glibcxx_cv_func__fabsf_use=no
32430 rm -f conftest.$ac_objext conftest.$ac_ext
32431 ac_ext=c
32432 ac_cpp='$CPP $CPPFLAGS'
32433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32441 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
32442 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
32444 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
32446 for ac_func in _fabsf
32448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32449 echo "$as_me:$LINENO: checking for $ac_func" >&5
32450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32451 if eval "test \"\${$as_ac_var+set}\" = set"; then
32452 echo $ECHO_N "(cached) $ECHO_C" >&6
32453 else
32454 if test x$gcc_no_link = xyes; then
32455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32457 { (exit 1); exit 1; }; }
32459 cat >conftest.$ac_ext <<_ACEOF
32460 #line $LINENO "configure"
32461 /* confdefs.h. */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h. */
32466 /* System header to define __stub macros and hopefully few prototypes,
32467 which can conflict with char $ac_func (); below.
32468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32469 <limits.h> exists even on freestanding compilers. */
32470 #ifdef __STDC__
32471 # include <limits.h>
32472 #else
32473 # include <assert.h>
32474 #endif
32475 /* Override any gcc2 internal prototype to avoid an error. */
32476 #ifdef __cplusplus
32477 extern "C"
32479 #endif
32480 /* We use char because int might match the return type of a gcc2
32481 builtin and then its argument prototype would still apply. */
32482 char $ac_func ();
32483 /* The GNU C library defines this for functions which it implements
32484 to always fail with ENOSYS. Some functions are actually named
32485 something starting with __ and the normal name is an alias. */
32486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32487 choke me
32488 #else
32489 char (*f) () = $ac_func;
32490 #endif
32491 #ifdef __cplusplus
32493 #endif
32496 main ()
32498 return f != $ac_func;
32500 return 0;
32502 _ACEOF
32503 rm -f conftest.$ac_objext conftest$ac_exeext
32504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32505 (eval $ac_link) 2>&5
32506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } &&
32509 { ac_try='test -s conftest$ac_exeext'
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515 eval "$as_ac_var=yes"
32516 else
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32520 eval "$as_ac_var=no"
32522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32526 if test `eval echo '${'$as_ac_var'}'` = yes; then
32527 cat >>confdefs.h <<_ACEOF
32528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529 _ACEOF
32532 done
32539 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
32540 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
32541 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32542 if test "${glibcxx_cv_func_fmodf_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 #line $LINENO "configure"
32556 /* confdefs.h. */
32557 _ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h. */
32561 #include <math.h>
32563 main ()
32565 fmodf(0, 0);
32567 return 0;
32569 _ACEOF
32570 rm -f conftest.$ac_objext
32571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32572 (eval $ac_compile) 2>&5
32573 ac_status=$?
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); } &&
32576 { ac_try='test -s conftest.$ac_objext'
32577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32578 (eval $ac_try) 2>&5
32579 ac_status=$?
32580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581 (exit $ac_status); }; }; then
32582 glibcxx_cv_func_fmodf_use=yes
32583 else
32584 echo "$as_me: failed program was:" >&5
32585 sed 's/^/| /' conftest.$ac_ext >&5
32587 glibcxx_cv_func_fmodf_use=no
32589 rm -f conftest.$ac_objext conftest.$ac_ext
32590 ac_ext=c
32591 ac_cpp='$CPP $CPPFLAGS'
32592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32600 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
32601 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
32603 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
32605 for ac_func in fmodf
32607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32608 echo "$as_me:$LINENO: checking for $ac_func" >&5
32609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32610 if eval "test \"\${$as_ac_var+set}\" = set"; then
32611 echo $ECHO_N "(cached) $ECHO_C" >&6
32612 else
32613 if test x$gcc_no_link = xyes; then
32614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32616 { (exit 1); exit 1; }; }
32618 cat >conftest.$ac_ext <<_ACEOF
32619 #line $LINENO "configure"
32620 /* confdefs.h. */
32621 _ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h. */
32625 /* System header to define __stub macros and hopefully few prototypes,
32626 which can conflict with char $ac_func (); below.
32627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32628 <limits.h> exists even on freestanding compilers. */
32629 #ifdef __STDC__
32630 # include <limits.h>
32631 #else
32632 # include <assert.h>
32633 #endif
32634 /* Override any gcc2 internal prototype to avoid an error. */
32635 #ifdef __cplusplus
32636 extern "C"
32638 #endif
32639 /* We use char because int might match the return type of a gcc2
32640 builtin and then its argument prototype would still apply. */
32641 char $ac_func ();
32642 /* The GNU C library defines this for functions which it implements
32643 to always fail with ENOSYS. Some functions are actually named
32644 something starting with __ and the normal name is an alias. */
32645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32646 choke me
32647 #else
32648 char (*f) () = $ac_func;
32649 #endif
32650 #ifdef __cplusplus
32652 #endif
32655 main ()
32657 return f != $ac_func;
32659 return 0;
32661 _ACEOF
32662 rm -f conftest.$ac_objext conftest$ac_exeext
32663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32664 (eval $ac_link) 2>&5
32665 ac_status=$?
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); } &&
32668 { ac_try='test -s conftest$ac_exeext'
32669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32670 (eval $ac_try) 2>&5
32671 ac_status=$?
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); }; }; then
32674 eval "$as_ac_var=yes"
32675 else
32676 echo "$as_me: failed program was:" >&5
32677 sed 's/^/| /' conftest.$ac_ext >&5
32679 eval "$as_ac_var=no"
32681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32685 if test `eval echo '${'$as_ac_var'}'` = yes; then
32686 cat >>confdefs.h <<_ACEOF
32687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32688 _ACEOF
32691 done
32693 else
32695 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
32696 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
32697 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
32698 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
32699 echo $ECHO_N "(cached) $ECHO_C" >&6
32700 else
32704 ac_ext=cc
32705 ac_cpp='$CXXCPP $CPPFLAGS'
32706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32710 cat >conftest.$ac_ext <<_ACEOF
32711 #line $LINENO "configure"
32712 /* confdefs.h. */
32713 _ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h. */
32717 #include <math.h>
32719 main ()
32721 _fmodf(0, 0);
32723 return 0;
32725 _ACEOF
32726 rm -f conftest.$ac_objext
32727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32728 (eval $ac_compile) 2>&5
32729 ac_status=$?
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); } &&
32732 { ac_try='test -s conftest.$ac_objext'
32733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32734 (eval $ac_try) 2>&5
32735 ac_status=$?
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); }; }; then
32738 glibcxx_cv_func__fmodf_use=yes
32739 else
32740 echo "$as_me: failed program was:" >&5
32741 sed 's/^/| /' conftest.$ac_ext >&5
32743 glibcxx_cv_func__fmodf_use=no
32745 rm -f conftest.$ac_objext conftest.$ac_ext
32746 ac_ext=c
32747 ac_cpp='$CPP $CPPFLAGS'
32748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32756 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
32757 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
32759 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
32761 for ac_func in _fmodf
32763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32764 echo "$as_me:$LINENO: checking for $ac_func" >&5
32765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32766 if eval "test \"\${$as_ac_var+set}\" = set"; then
32767 echo $ECHO_N "(cached) $ECHO_C" >&6
32768 else
32769 if test x$gcc_no_link = xyes; then
32770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32772 { (exit 1); exit 1; }; }
32774 cat >conftest.$ac_ext <<_ACEOF
32775 #line $LINENO "configure"
32776 /* confdefs.h. */
32777 _ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h. */
32781 /* System header to define __stub macros and hopefully few prototypes,
32782 which can conflict with char $ac_func (); below.
32783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32784 <limits.h> exists even on freestanding compilers. */
32785 #ifdef __STDC__
32786 # include <limits.h>
32787 #else
32788 # include <assert.h>
32789 #endif
32790 /* Override any gcc2 internal prototype to avoid an error. */
32791 #ifdef __cplusplus
32792 extern "C"
32794 #endif
32795 /* We use char because int might match the return type of a gcc2
32796 builtin and then its argument prototype would still apply. */
32797 char $ac_func ();
32798 /* The GNU C library defines this for functions which it implements
32799 to always fail with ENOSYS. Some functions are actually named
32800 something starting with __ and the normal name is an alias. */
32801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32802 choke me
32803 #else
32804 char (*f) () = $ac_func;
32805 #endif
32806 #ifdef __cplusplus
32808 #endif
32811 main ()
32813 return f != $ac_func;
32815 return 0;
32817 _ACEOF
32818 rm -f conftest.$ac_objext conftest$ac_exeext
32819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32820 (eval $ac_link) 2>&5
32821 ac_status=$?
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } &&
32824 { ac_try='test -s conftest$ac_exeext'
32825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826 (eval $ac_try) 2>&5
32827 ac_status=$?
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); }; }; then
32830 eval "$as_ac_var=yes"
32831 else
32832 echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32835 eval "$as_ac_var=no"
32837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32841 if test `eval echo '${'$as_ac_var'}'` = yes; then
32842 cat >>confdefs.h <<_ACEOF
32843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32844 _ACEOF
32847 done
32854 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
32855 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
32856 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
32857 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
32858 echo $ECHO_N "(cached) $ECHO_C" >&6
32859 else
32863 ac_ext=cc
32864 ac_cpp='$CXXCPP $CPPFLAGS'
32865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32869 cat >conftest.$ac_ext <<_ACEOF
32870 #line $LINENO "configure"
32871 /* confdefs.h. */
32872 _ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h. */
32876 #include <math.h>
32878 main ()
32880 frexpf(0, 0);
32882 return 0;
32884 _ACEOF
32885 rm -f conftest.$ac_objext
32886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32887 (eval $ac_compile) 2>&5
32888 ac_status=$?
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); } &&
32891 { ac_try='test -s conftest.$ac_objext'
32892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893 (eval $ac_try) 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
32897 glibcxx_cv_func_frexpf_use=yes
32898 else
32899 echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32902 glibcxx_cv_func_frexpf_use=no
32904 rm -f conftest.$ac_objext conftest.$ac_ext
32905 ac_ext=c
32906 ac_cpp='$CPP $CPPFLAGS'
32907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32915 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
32916 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
32918 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
32920 for ac_func in frexpf
32922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32923 echo "$as_me:$LINENO: checking for $ac_func" >&5
32924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32925 if eval "test \"\${$as_ac_var+set}\" = set"; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32927 else
32928 if test x$gcc_no_link = xyes; then
32929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32931 { (exit 1); exit 1; }; }
32933 cat >conftest.$ac_ext <<_ACEOF
32934 #line $LINENO "configure"
32935 /* confdefs.h. */
32936 _ACEOF
32937 cat confdefs.h >>conftest.$ac_ext
32938 cat >>conftest.$ac_ext <<_ACEOF
32939 /* end confdefs.h. */
32940 /* System header to define __stub macros and hopefully few prototypes,
32941 which can conflict with char $ac_func (); below.
32942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32943 <limits.h> exists even on freestanding compilers. */
32944 #ifdef __STDC__
32945 # include <limits.h>
32946 #else
32947 # include <assert.h>
32948 #endif
32949 /* Override any gcc2 internal prototype to avoid an error. */
32950 #ifdef __cplusplus
32951 extern "C"
32953 #endif
32954 /* We use char because int might match the return type of a gcc2
32955 builtin and then its argument prototype would still apply. */
32956 char $ac_func ();
32957 /* The GNU C library defines this for functions which it implements
32958 to always fail with ENOSYS. Some functions are actually named
32959 something starting with __ and the normal name is an alias. */
32960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32961 choke me
32962 #else
32963 char (*f) () = $ac_func;
32964 #endif
32965 #ifdef __cplusplus
32967 #endif
32970 main ()
32972 return f != $ac_func;
32974 return 0;
32976 _ACEOF
32977 rm -f conftest.$ac_objext conftest$ac_exeext
32978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32979 (eval $ac_link) 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } &&
32983 { ac_try='test -s conftest$ac_exeext'
32984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32985 (eval $ac_try) 2>&5
32986 ac_status=$?
32987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988 (exit $ac_status); }; }; then
32989 eval "$as_ac_var=yes"
32990 else
32991 echo "$as_me: failed program was:" >&5
32992 sed 's/^/| /' conftest.$ac_ext >&5
32994 eval "$as_ac_var=no"
32996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33000 if test `eval echo '${'$as_ac_var'}'` = yes; then
33001 cat >>confdefs.h <<_ACEOF
33002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33003 _ACEOF
33006 done
33008 else
33010 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
33011 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
33012 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
33013 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
33014 echo $ECHO_N "(cached) $ECHO_C" >&6
33015 else
33019 ac_ext=cc
33020 ac_cpp='$CXXCPP $CPPFLAGS'
33021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33025 cat >conftest.$ac_ext <<_ACEOF
33026 #line $LINENO "configure"
33027 /* confdefs.h. */
33028 _ACEOF
33029 cat confdefs.h >>conftest.$ac_ext
33030 cat >>conftest.$ac_ext <<_ACEOF
33031 /* end confdefs.h. */
33032 #include <math.h>
33034 main ()
33036 _frexpf(0, 0);
33038 return 0;
33040 _ACEOF
33041 rm -f conftest.$ac_objext
33042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33043 (eval $ac_compile) 2>&5
33044 ac_status=$?
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); } &&
33047 { ac_try='test -s conftest.$ac_objext'
33048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33049 (eval $ac_try) 2>&5
33050 ac_status=$?
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); }; }; then
33053 glibcxx_cv_func__frexpf_use=yes
33054 else
33055 echo "$as_me: failed program was:" >&5
33056 sed 's/^/| /' conftest.$ac_ext >&5
33058 glibcxx_cv_func__frexpf_use=no
33060 rm -f conftest.$ac_objext conftest.$ac_ext
33061 ac_ext=c
33062 ac_cpp='$CPP $CPPFLAGS'
33063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33071 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
33072 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
33074 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
33076 for ac_func in _frexpf
33078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33079 echo "$as_me:$LINENO: checking for $ac_func" >&5
33080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33081 if eval "test \"\${$as_ac_var+set}\" = set"; then
33082 echo $ECHO_N "(cached) $ECHO_C" >&6
33083 else
33084 if test x$gcc_no_link = xyes; then
33085 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33087 { (exit 1); exit 1; }; }
33089 cat >conftest.$ac_ext <<_ACEOF
33090 #line $LINENO "configure"
33091 /* confdefs.h. */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33096 /* System header to define __stub macros and hopefully few prototypes,
33097 which can conflict with char $ac_func (); below.
33098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33099 <limits.h> exists even on freestanding compilers. */
33100 #ifdef __STDC__
33101 # include <limits.h>
33102 #else
33103 # include <assert.h>
33104 #endif
33105 /* Override any gcc2 internal prototype to avoid an error. */
33106 #ifdef __cplusplus
33107 extern "C"
33109 #endif
33110 /* We use char because int might match the return type of a gcc2
33111 builtin and then its argument prototype would still apply. */
33112 char $ac_func ();
33113 /* The GNU C library defines this for functions which it implements
33114 to always fail with ENOSYS. Some functions are actually named
33115 something starting with __ and the normal name is an alias. */
33116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33117 choke me
33118 #else
33119 char (*f) () = $ac_func;
33120 #endif
33121 #ifdef __cplusplus
33123 #endif
33126 main ()
33128 return f != $ac_func;
33130 return 0;
33132 _ACEOF
33133 rm -f conftest.$ac_objext conftest$ac_exeext
33134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33135 (eval $ac_link) 2>&5
33136 ac_status=$?
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); } &&
33139 { ac_try='test -s conftest$ac_exeext'
33140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33141 (eval $ac_try) 2>&5
33142 ac_status=$?
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); }; }; then
33145 eval "$as_ac_var=yes"
33146 else
33147 echo "$as_me: failed program was:" >&5
33148 sed 's/^/| /' conftest.$ac_ext >&5
33150 eval "$as_ac_var=no"
33152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33156 if test `eval echo '${'$as_ac_var'}'` = yes; then
33157 cat >>confdefs.h <<_ACEOF
33158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33159 _ACEOF
33162 done
33169 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
33170 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
33171 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
33172 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33174 else
33178 ac_ext=cc
33179 ac_cpp='$CXXCPP $CPPFLAGS'
33180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33184 cat >conftest.$ac_ext <<_ACEOF
33185 #line $LINENO "configure"
33186 /* confdefs.h. */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h. */
33191 #include <math.h>
33193 main ()
33195 hypotf(0, 0);
33197 return 0;
33199 _ACEOF
33200 rm -f conftest.$ac_objext
33201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33202 (eval $ac_compile) 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); } &&
33206 { ac_try='test -s conftest.$ac_objext'
33207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208 (eval $ac_try) 2>&5
33209 ac_status=$?
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; }; then
33212 glibcxx_cv_func_hypotf_use=yes
33213 else
33214 echo "$as_me: failed program was:" >&5
33215 sed 's/^/| /' conftest.$ac_ext >&5
33217 glibcxx_cv_func_hypotf_use=no
33219 rm -f conftest.$ac_objext conftest.$ac_ext
33220 ac_ext=c
33221 ac_cpp='$CPP $CPPFLAGS'
33222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33230 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
33231 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
33233 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
33235 for ac_func in hypotf
33237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33238 echo "$as_me:$LINENO: checking for $ac_func" >&5
33239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33240 if eval "test \"\${$as_ac_var+set}\" = set"; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242 else
33243 if test x$gcc_no_link = xyes; then
33244 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33246 { (exit 1); exit 1; }; }
33248 cat >conftest.$ac_ext <<_ACEOF
33249 #line $LINENO "configure"
33250 /* confdefs.h. */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h. */
33255 /* System header to define __stub macros and hopefully few prototypes,
33256 which can conflict with char $ac_func (); below.
33257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33258 <limits.h> exists even on freestanding compilers. */
33259 #ifdef __STDC__
33260 # include <limits.h>
33261 #else
33262 # include <assert.h>
33263 #endif
33264 /* Override any gcc2 internal prototype to avoid an error. */
33265 #ifdef __cplusplus
33266 extern "C"
33268 #endif
33269 /* We use char because int might match the return type of a gcc2
33270 builtin and then its argument prototype would still apply. */
33271 char $ac_func ();
33272 /* The GNU C library defines this for functions which it implements
33273 to always fail with ENOSYS. Some functions are actually named
33274 something starting with __ and the normal name is an alias. */
33275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33276 choke me
33277 #else
33278 char (*f) () = $ac_func;
33279 #endif
33280 #ifdef __cplusplus
33282 #endif
33285 main ()
33287 return f != $ac_func;
33289 return 0;
33291 _ACEOF
33292 rm -f conftest.$ac_objext conftest$ac_exeext
33293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33294 (eval $ac_link) 2>&5
33295 ac_status=$?
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); } &&
33298 { ac_try='test -s conftest$ac_exeext'
33299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33300 (eval $ac_try) 2>&5
33301 ac_status=$?
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); }; }; then
33304 eval "$as_ac_var=yes"
33305 else
33306 echo "$as_me: failed program was:" >&5
33307 sed 's/^/| /' conftest.$ac_ext >&5
33309 eval "$as_ac_var=no"
33311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33315 if test `eval echo '${'$as_ac_var'}'` = yes; then
33316 cat >>confdefs.h <<_ACEOF
33317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33318 _ACEOF
33321 done
33323 else
33325 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
33326 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
33327 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
33328 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
33329 echo $ECHO_N "(cached) $ECHO_C" >&6
33330 else
33334 ac_ext=cc
33335 ac_cpp='$CXXCPP $CPPFLAGS'
33336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33340 cat >conftest.$ac_ext <<_ACEOF
33341 #line $LINENO "configure"
33342 /* confdefs.h. */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h. */
33347 #include <math.h>
33349 main ()
33351 _hypotf(0, 0);
33353 return 0;
33355 _ACEOF
33356 rm -f conftest.$ac_objext
33357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33358 (eval $ac_compile) 2>&5
33359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
33362 { ac_try='test -s conftest.$ac_objext'
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 glibcxx_cv_func__hypotf_use=yes
33369 else
33370 echo "$as_me: failed program was:" >&5
33371 sed 's/^/| /' conftest.$ac_ext >&5
33373 glibcxx_cv_func__hypotf_use=no
33375 rm -f conftest.$ac_objext conftest.$ac_ext
33376 ac_ext=c
33377 ac_cpp='$CPP $CPPFLAGS'
33378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33386 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
33387 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
33389 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
33391 for ac_func in _hypotf
33393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33394 echo "$as_me:$LINENO: checking for $ac_func" >&5
33395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33396 if eval "test \"\${$as_ac_var+set}\" = set"; then
33397 echo $ECHO_N "(cached) $ECHO_C" >&6
33398 else
33399 if test x$gcc_no_link = xyes; then
33400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33402 { (exit 1); exit 1; }; }
33404 cat >conftest.$ac_ext <<_ACEOF
33405 #line $LINENO "configure"
33406 /* confdefs.h. */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33411 /* System header to define __stub macros and hopefully few prototypes,
33412 which can conflict with char $ac_func (); below.
33413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33414 <limits.h> exists even on freestanding compilers. */
33415 #ifdef __STDC__
33416 # include <limits.h>
33417 #else
33418 # include <assert.h>
33419 #endif
33420 /* Override any gcc2 internal prototype to avoid an error. */
33421 #ifdef __cplusplus
33422 extern "C"
33424 #endif
33425 /* We use char because int might match the return type of a gcc2
33426 builtin and then its argument prototype would still apply. */
33427 char $ac_func ();
33428 /* The GNU C library defines this for functions which it implements
33429 to always fail with ENOSYS. Some functions are actually named
33430 something starting with __ and the normal name is an alias. */
33431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33432 choke me
33433 #else
33434 char (*f) () = $ac_func;
33435 #endif
33436 #ifdef __cplusplus
33438 #endif
33441 main ()
33443 return f != $ac_func;
33445 return 0;
33447 _ACEOF
33448 rm -f conftest.$ac_objext conftest$ac_exeext
33449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33450 (eval $ac_link) 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); } &&
33454 { ac_try='test -s conftest$ac_exeext'
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33457 ac_status=$?
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; }; then
33460 eval "$as_ac_var=yes"
33461 else
33462 echo "$as_me: failed program was:" >&5
33463 sed 's/^/| /' conftest.$ac_ext >&5
33465 eval "$as_ac_var=no"
33467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33471 if test `eval echo '${'$as_ac_var'}'` = yes; then
33472 cat >>confdefs.h <<_ACEOF
33473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33474 _ACEOF
33477 done
33484 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
33485 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
33486 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33487 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33489 else
33493 ac_ext=cc
33494 ac_cpp='$CXXCPP $CPPFLAGS'
33495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33499 cat >conftest.$ac_ext <<_ACEOF
33500 #line $LINENO "configure"
33501 /* confdefs.h. */
33502 _ACEOF
33503 cat confdefs.h >>conftest.$ac_ext
33504 cat >>conftest.$ac_ext <<_ACEOF
33505 /* end confdefs.h. */
33506 #include <math.h>
33508 main ()
33510 ldexpf(0, 0);
33512 return 0;
33514 _ACEOF
33515 rm -f conftest.$ac_objext
33516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33517 (eval $ac_compile) 2>&5
33518 ac_status=$?
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); } &&
33521 { ac_try='test -s conftest.$ac_objext'
33522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33523 (eval $ac_try) 2>&5
33524 ac_status=$?
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); }; }; then
33527 glibcxx_cv_func_ldexpf_use=yes
33528 else
33529 echo "$as_me: failed program was:" >&5
33530 sed 's/^/| /' conftest.$ac_ext >&5
33532 glibcxx_cv_func_ldexpf_use=no
33534 rm -f conftest.$ac_objext conftest.$ac_ext
33535 ac_ext=c
33536 ac_cpp='$CPP $CPPFLAGS'
33537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33545 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
33546 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
33548 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33550 for ac_func in ldexpf
33552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33553 echo "$as_me:$LINENO: checking for $ac_func" >&5
33554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33555 if eval "test \"\${$as_ac_var+set}\" = set"; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33557 else
33558 if test x$gcc_no_link = xyes; then
33559 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33561 { (exit 1); exit 1; }; }
33563 cat >conftest.$ac_ext <<_ACEOF
33564 #line $LINENO "configure"
33565 /* confdefs.h. */
33566 _ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h. */
33570 /* System header to define __stub macros and hopefully few prototypes,
33571 which can conflict with char $ac_func (); below.
33572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33573 <limits.h> exists even on freestanding compilers. */
33574 #ifdef __STDC__
33575 # include <limits.h>
33576 #else
33577 # include <assert.h>
33578 #endif
33579 /* Override any gcc2 internal prototype to avoid an error. */
33580 #ifdef __cplusplus
33581 extern "C"
33583 #endif
33584 /* We use char because int might match the return type of a gcc2
33585 builtin and then its argument prototype would still apply. */
33586 char $ac_func ();
33587 /* The GNU C library defines this for functions which it implements
33588 to always fail with ENOSYS. Some functions are actually named
33589 something starting with __ and the normal name is an alias. */
33590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33591 choke me
33592 #else
33593 char (*f) () = $ac_func;
33594 #endif
33595 #ifdef __cplusplus
33597 #endif
33600 main ()
33602 return f != $ac_func;
33604 return 0;
33606 _ACEOF
33607 rm -f conftest.$ac_objext conftest$ac_exeext
33608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33609 (eval $ac_link) 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); } &&
33613 { ac_try='test -s conftest$ac_exeext'
33614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33615 (eval $ac_try) 2>&5
33616 ac_status=$?
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; }; then
33619 eval "$as_ac_var=yes"
33620 else
33621 echo "$as_me: failed program was:" >&5
33622 sed 's/^/| /' conftest.$ac_ext >&5
33624 eval "$as_ac_var=no"
33626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33630 if test `eval echo '${'$as_ac_var'}'` = yes; then
33631 cat >>confdefs.h <<_ACEOF
33632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33633 _ACEOF
33636 done
33638 else
33640 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
33641 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
33642 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
33643 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
33644 echo $ECHO_N "(cached) $ECHO_C" >&6
33645 else
33649 ac_ext=cc
33650 ac_cpp='$CXXCPP $CPPFLAGS'
33651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33655 cat >conftest.$ac_ext <<_ACEOF
33656 #line $LINENO "configure"
33657 /* confdefs.h. */
33658 _ACEOF
33659 cat confdefs.h >>conftest.$ac_ext
33660 cat >>conftest.$ac_ext <<_ACEOF
33661 /* end confdefs.h. */
33662 #include <math.h>
33664 main ()
33666 _ldexpf(0, 0);
33668 return 0;
33670 _ACEOF
33671 rm -f conftest.$ac_objext
33672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33673 (eval $ac_compile) 2>&5
33674 ac_status=$?
33675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); } &&
33677 { ac_try='test -s conftest.$ac_objext'
33678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33679 (eval $ac_try) 2>&5
33680 ac_status=$?
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); }; }; then
33683 glibcxx_cv_func__ldexpf_use=yes
33684 else
33685 echo "$as_me: failed program was:" >&5
33686 sed 's/^/| /' conftest.$ac_ext >&5
33688 glibcxx_cv_func__ldexpf_use=no
33690 rm -f conftest.$ac_objext conftest.$ac_ext
33691 ac_ext=c
33692 ac_cpp='$CPP $CPPFLAGS'
33693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33701 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
33702 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
33704 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
33706 for ac_func in _ldexpf
33708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33709 echo "$as_me:$LINENO: checking for $ac_func" >&5
33710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33711 if eval "test \"\${$as_ac_var+set}\" = set"; then
33712 echo $ECHO_N "(cached) $ECHO_C" >&6
33713 else
33714 if test x$gcc_no_link = xyes; then
33715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33717 { (exit 1); exit 1; }; }
33719 cat >conftest.$ac_ext <<_ACEOF
33720 #line $LINENO "configure"
33721 /* confdefs.h. */
33722 _ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33726 /* System header to define __stub macros and hopefully few prototypes,
33727 which can conflict with char $ac_func (); below.
33728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33729 <limits.h> exists even on freestanding compilers. */
33730 #ifdef __STDC__
33731 # include <limits.h>
33732 #else
33733 # include <assert.h>
33734 #endif
33735 /* Override any gcc2 internal prototype to avoid an error. */
33736 #ifdef __cplusplus
33737 extern "C"
33739 #endif
33740 /* We use char because int might match the return type of a gcc2
33741 builtin and then its argument prototype would still apply. */
33742 char $ac_func ();
33743 /* The GNU C library defines this for functions which it implements
33744 to always fail with ENOSYS. Some functions are actually named
33745 something starting with __ and the normal name is an alias. */
33746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33747 choke me
33748 #else
33749 char (*f) () = $ac_func;
33750 #endif
33751 #ifdef __cplusplus
33753 #endif
33756 main ()
33758 return f != $ac_func;
33760 return 0;
33762 _ACEOF
33763 rm -f conftest.$ac_objext conftest$ac_exeext
33764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33765 (eval $ac_link) 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); } &&
33769 { ac_try='test -s conftest$ac_exeext'
33770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33771 (eval $ac_try) 2>&5
33772 ac_status=$?
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); }; }; then
33775 eval "$as_ac_var=yes"
33776 else
33777 echo "$as_me: failed program was:" >&5
33778 sed 's/^/| /' conftest.$ac_ext >&5
33780 eval "$as_ac_var=no"
33782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33786 if test `eval echo '${'$as_ac_var'}'` = yes; then
33787 cat >>confdefs.h <<_ACEOF
33788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33789 _ACEOF
33792 done
33799 echo "$as_me:$LINENO: checking for logf declaration" >&5
33800 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
33801 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33802 if test "${glibcxx_cv_func_logf_use+set}" = set; then
33803 echo $ECHO_N "(cached) $ECHO_C" >&6
33804 else
33808 ac_ext=cc
33809 ac_cpp='$CXXCPP $CPPFLAGS'
33810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33814 cat >conftest.$ac_ext <<_ACEOF
33815 #line $LINENO "configure"
33816 /* confdefs.h. */
33817 _ACEOF
33818 cat confdefs.h >>conftest.$ac_ext
33819 cat >>conftest.$ac_ext <<_ACEOF
33820 /* end confdefs.h. */
33821 #include <math.h>
33822 #ifdef HAVE_IEEEFP_H
33823 #include <ieeefp.h>
33824 #endif
33827 main ()
33829 logf(0);
33831 return 0;
33833 _ACEOF
33834 rm -f conftest.$ac_objext
33835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33836 (eval $ac_compile) 2>&5
33837 ac_status=$?
33838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839 (exit $ac_status); } &&
33840 { ac_try='test -s conftest.$ac_objext'
33841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33842 (eval $ac_try) 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; }; then
33846 glibcxx_cv_func_logf_use=yes
33847 else
33848 echo "$as_me: failed program was:" >&5
33849 sed 's/^/| /' conftest.$ac_ext >&5
33851 glibcxx_cv_func_logf_use=no
33853 rm -f conftest.$ac_objext conftest.$ac_ext
33854 ac_ext=c
33855 ac_cpp='$CPP $CPPFLAGS'
33856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33864 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
33865 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
33867 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33869 for ac_func in logf
33871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33872 echo "$as_me:$LINENO: checking for $ac_func" >&5
33873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33874 if eval "test \"\${$as_ac_var+set}\" = set"; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877 if test x$gcc_no_link = xyes; then
33878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33880 { (exit 1); exit 1; }; }
33882 cat >conftest.$ac_ext <<_ACEOF
33883 #line $LINENO "configure"
33884 /* confdefs.h. */
33885 _ACEOF
33886 cat confdefs.h >>conftest.$ac_ext
33887 cat >>conftest.$ac_ext <<_ACEOF
33888 /* end confdefs.h. */
33889 /* System header to define __stub macros and hopefully few prototypes,
33890 which can conflict with char $ac_func (); below.
33891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33892 <limits.h> exists even on freestanding compilers. */
33893 #ifdef __STDC__
33894 # include <limits.h>
33895 #else
33896 # include <assert.h>
33897 #endif
33898 /* Override any gcc2 internal prototype to avoid an error. */
33899 #ifdef __cplusplus
33900 extern "C"
33902 #endif
33903 /* We use char because int might match the return type of a gcc2
33904 builtin and then its argument prototype would still apply. */
33905 char $ac_func ();
33906 /* The GNU C library defines this for functions which it implements
33907 to always fail with ENOSYS. Some functions are actually named
33908 something starting with __ and the normal name is an alias. */
33909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33910 choke me
33911 #else
33912 char (*f) () = $ac_func;
33913 #endif
33914 #ifdef __cplusplus
33916 #endif
33919 main ()
33921 return f != $ac_func;
33923 return 0;
33925 _ACEOF
33926 rm -f conftest.$ac_objext conftest$ac_exeext
33927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33928 (eval $ac_link) 2>&5
33929 ac_status=$?
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); } &&
33932 { ac_try='test -s conftest$ac_exeext'
33933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33934 (eval $ac_try) 2>&5
33935 ac_status=$?
33936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937 (exit $ac_status); }; }; then
33938 eval "$as_ac_var=yes"
33939 else
33940 echo "$as_me: failed program was:" >&5
33941 sed 's/^/| /' conftest.$ac_ext >&5
33943 eval "$as_ac_var=no"
33945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33949 if test `eval echo '${'$as_ac_var'}'` = yes; then
33950 cat >>confdefs.h <<_ACEOF
33951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33952 _ACEOF
33955 done
33957 else
33959 echo "$as_me:$LINENO: checking for _logf declaration" >&5
33960 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
33961 if test x${glibcxx_cv_func__logf_use+set} != xset; then
33962 if test "${glibcxx_cv_func__logf_use+set}" = set; then
33963 echo $ECHO_N "(cached) $ECHO_C" >&6
33964 else
33968 ac_ext=cc
33969 ac_cpp='$CXXCPP $CPPFLAGS'
33970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33974 cat >conftest.$ac_ext <<_ACEOF
33975 #line $LINENO "configure"
33976 /* confdefs.h. */
33977 _ACEOF
33978 cat confdefs.h >>conftest.$ac_ext
33979 cat >>conftest.$ac_ext <<_ACEOF
33980 /* end confdefs.h. */
33981 #include <math.h>
33982 #ifdef HAVE_IEEEFP_H
33983 #include <ieeefp.h>
33984 #endif
33987 main ()
33989 _logf(0);
33991 return 0;
33993 _ACEOF
33994 rm -f conftest.$ac_objext
33995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33996 (eval $ac_compile) 2>&5
33997 ac_status=$?
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); } &&
34000 { ac_try='test -s conftest.$ac_objext'
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34003 ac_status=$?
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; }; then
34006 glibcxx_cv_func__logf_use=yes
34007 else
34008 echo "$as_me: failed program was:" >&5
34009 sed 's/^/| /' conftest.$ac_ext >&5
34011 glibcxx_cv_func__logf_use=no
34013 rm -f conftest.$ac_objext conftest.$ac_ext
34014 ac_ext=c
34015 ac_cpp='$CPP $CPPFLAGS'
34016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34024 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
34025 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
34027 if test x$glibcxx_cv_func__logf_use = x"yes"; then
34029 for ac_func in _logf
34031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34032 echo "$as_me:$LINENO: checking for $ac_func" >&5
34033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34034 if eval "test \"\${$as_ac_var+set}\" = set"; then
34035 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 else
34037 if test x$gcc_no_link = xyes; then
34038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34040 { (exit 1); exit 1; }; }
34042 cat >conftest.$ac_ext <<_ACEOF
34043 #line $LINENO "configure"
34044 /* confdefs.h. */
34045 _ACEOF
34046 cat confdefs.h >>conftest.$ac_ext
34047 cat >>conftest.$ac_ext <<_ACEOF
34048 /* end confdefs.h. */
34049 /* System header to define __stub macros and hopefully few prototypes,
34050 which can conflict with char $ac_func (); below.
34051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34052 <limits.h> exists even on freestanding compilers. */
34053 #ifdef __STDC__
34054 # include <limits.h>
34055 #else
34056 # include <assert.h>
34057 #endif
34058 /* Override any gcc2 internal prototype to avoid an error. */
34059 #ifdef __cplusplus
34060 extern "C"
34062 #endif
34063 /* We use char because int might match the return type of a gcc2
34064 builtin and then its argument prototype would still apply. */
34065 char $ac_func ();
34066 /* The GNU C library defines this for functions which it implements
34067 to always fail with ENOSYS. Some functions are actually named
34068 something starting with __ and the normal name is an alias. */
34069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34070 choke me
34071 #else
34072 char (*f) () = $ac_func;
34073 #endif
34074 #ifdef __cplusplus
34076 #endif
34079 main ()
34081 return f != $ac_func;
34083 return 0;
34085 _ACEOF
34086 rm -f conftest.$ac_objext conftest$ac_exeext
34087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34088 (eval $ac_link) 2>&5
34089 ac_status=$?
34090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091 (exit $ac_status); } &&
34092 { ac_try='test -s conftest$ac_exeext'
34093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34094 (eval $ac_try) 2>&5
34095 ac_status=$?
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); }; }; then
34098 eval "$as_ac_var=yes"
34099 else
34100 echo "$as_me: failed program was:" >&5
34101 sed 's/^/| /' conftest.$ac_ext >&5
34103 eval "$as_ac_var=no"
34105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34109 if test `eval echo '${'$as_ac_var'}'` = yes; then
34110 cat >>confdefs.h <<_ACEOF
34111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34112 _ACEOF
34115 done
34122 echo "$as_me:$LINENO: checking for log10f declaration" >&5
34123 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
34124 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
34125 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
34126 echo $ECHO_N "(cached) $ECHO_C" >&6
34127 else
34131 ac_ext=cc
34132 ac_cpp='$CXXCPP $CPPFLAGS'
34133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34137 cat >conftest.$ac_ext <<_ACEOF
34138 #line $LINENO "configure"
34139 /* confdefs.h. */
34140 _ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h. */
34144 #include <math.h>
34145 #ifdef HAVE_IEEEFP_H
34146 #include <ieeefp.h>
34147 #endif
34150 main ()
34152 log10f(0);
34154 return 0;
34156 _ACEOF
34157 rm -f conftest.$ac_objext
34158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34159 (eval $ac_compile) 2>&5
34160 ac_status=$?
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); } &&
34163 { ac_try='test -s conftest.$ac_objext'
34164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34165 (eval $ac_try) 2>&5
34166 ac_status=$?
34167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168 (exit $ac_status); }; }; then
34169 glibcxx_cv_func_log10f_use=yes
34170 else
34171 echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34174 glibcxx_cv_func_log10f_use=no
34176 rm -f conftest.$ac_objext conftest.$ac_ext
34177 ac_ext=c
34178 ac_cpp='$CPP $CPPFLAGS'
34179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34187 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
34188 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
34190 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
34192 for ac_func in log10f
34194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34195 echo "$as_me:$LINENO: checking for $ac_func" >&5
34196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34197 if eval "test \"\${$as_ac_var+set}\" = set"; then
34198 echo $ECHO_N "(cached) $ECHO_C" >&6
34199 else
34200 if test x$gcc_no_link = xyes; then
34201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34203 { (exit 1); exit 1; }; }
34205 cat >conftest.$ac_ext <<_ACEOF
34206 #line $LINENO "configure"
34207 /* confdefs.h. */
34208 _ACEOF
34209 cat confdefs.h >>conftest.$ac_ext
34210 cat >>conftest.$ac_ext <<_ACEOF
34211 /* end confdefs.h. */
34212 /* System header to define __stub macros and hopefully few prototypes,
34213 which can conflict with char $ac_func (); below.
34214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34215 <limits.h> exists even on freestanding compilers. */
34216 #ifdef __STDC__
34217 # include <limits.h>
34218 #else
34219 # include <assert.h>
34220 #endif
34221 /* Override any gcc2 internal prototype to avoid an error. */
34222 #ifdef __cplusplus
34223 extern "C"
34225 #endif
34226 /* We use char because int might match the return type of a gcc2
34227 builtin and then its argument prototype would still apply. */
34228 char $ac_func ();
34229 /* The GNU C library defines this for functions which it implements
34230 to always fail with ENOSYS. Some functions are actually named
34231 something starting with __ and the normal name is an alias. */
34232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34233 choke me
34234 #else
34235 char (*f) () = $ac_func;
34236 #endif
34237 #ifdef __cplusplus
34239 #endif
34242 main ()
34244 return f != $ac_func;
34246 return 0;
34248 _ACEOF
34249 rm -f conftest.$ac_objext conftest$ac_exeext
34250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34251 (eval $ac_link) 2>&5
34252 ac_status=$?
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); } &&
34255 { ac_try='test -s conftest$ac_exeext'
34256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34257 (eval $ac_try) 2>&5
34258 ac_status=$?
34259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260 (exit $ac_status); }; }; then
34261 eval "$as_ac_var=yes"
34262 else
34263 echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34266 eval "$as_ac_var=no"
34268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34272 if test `eval echo '${'$as_ac_var'}'` = yes; then
34273 cat >>confdefs.h <<_ACEOF
34274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34275 _ACEOF
34278 done
34280 else
34282 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
34283 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
34284 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
34285 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
34286 echo $ECHO_N "(cached) $ECHO_C" >&6
34287 else
34291 ac_ext=cc
34292 ac_cpp='$CXXCPP $CPPFLAGS'
34293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34297 cat >conftest.$ac_ext <<_ACEOF
34298 #line $LINENO "configure"
34299 /* confdefs.h. */
34300 _ACEOF
34301 cat confdefs.h >>conftest.$ac_ext
34302 cat >>conftest.$ac_ext <<_ACEOF
34303 /* end confdefs.h. */
34304 #include <math.h>
34305 #ifdef HAVE_IEEEFP_H
34306 #include <ieeefp.h>
34307 #endif
34310 main ()
34312 _log10f(0);
34314 return 0;
34316 _ACEOF
34317 rm -f conftest.$ac_objext
34318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34319 (eval $ac_compile) 2>&5
34320 ac_status=$?
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); } &&
34323 { ac_try='test -s conftest.$ac_objext'
34324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325 (eval $ac_try) 2>&5
34326 ac_status=$?
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); }; }; then
34329 glibcxx_cv_func__log10f_use=yes
34330 else
34331 echo "$as_me: failed program was:" >&5
34332 sed 's/^/| /' conftest.$ac_ext >&5
34334 glibcxx_cv_func__log10f_use=no
34336 rm -f conftest.$ac_objext conftest.$ac_ext
34337 ac_ext=c
34338 ac_cpp='$CPP $CPPFLAGS'
34339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34347 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
34348 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
34350 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
34352 for ac_func in _log10f
34354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34355 echo "$as_me:$LINENO: checking for $ac_func" >&5
34356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34357 if eval "test \"\${$as_ac_var+set}\" = set"; then
34358 echo $ECHO_N "(cached) $ECHO_C" >&6
34359 else
34360 if test x$gcc_no_link = xyes; then
34361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34363 { (exit 1); exit 1; }; }
34365 cat >conftest.$ac_ext <<_ACEOF
34366 #line $LINENO "configure"
34367 /* confdefs.h. */
34368 _ACEOF
34369 cat confdefs.h >>conftest.$ac_ext
34370 cat >>conftest.$ac_ext <<_ACEOF
34371 /* end confdefs.h. */
34372 /* System header to define __stub macros and hopefully few prototypes,
34373 which can conflict with char $ac_func (); below.
34374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34375 <limits.h> exists even on freestanding compilers. */
34376 #ifdef __STDC__
34377 # include <limits.h>
34378 #else
34379 # include <assert.h>
34380 #endif
34381 /* Override any gcc2 internal prototype to avoid an error. */
34382 #ifdef __cplusplus
34383 extern "C"
34385 #endif
34386 /* We use char because int might match the return type of a gcc2
34387 builtin and then its argument prototype would still apply. */
34388 char $ac_func ();
34389 /* The GNU C library defines this for functions which it implements
34390 to always fail with ENOSYS. Some functions are actually named
34391 something starting with __ and the normal name is an alias. */
34392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34393 choke me
34394 #else
34395 char (*f) () = $ac_func;
34396 #endif
34397 #ifdef __cplusplus
34399 #endif
34402 main ()
34404 return f != $ac_func;
34406 return 0;
34408 _ACEOF
34409 rm -f conftest.$ac_objext conftest$ac_exeext
34410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34411 (eval $ac_link) 2>&5
34412 ac_status=$?
34413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414 (exit $ac_status); } &&
34415 { ac_try='test -s conftest$ac_exeext'
34416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34417 (eval $ac_try) 2>&5
34418 ac_status=$?
34419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420 (exit $ac_status); }; }; then
34421 eval "$as_ac_var=yes"
34422 else
34423 echo "$as_me: failed program was:" >&5
34424 sed 's/^/| /' conftest.$ac_ext >&5
34426 eval "$as_ac_var=no"
34428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34432 if test `eval echo '${'$as_ac_var'}'` = yes; then
34433 cat >>confdefs.h <<_ACEOF
34434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34435 _ACEOF
34438 done
34445 echo "$as_me:$LINENO: checking for modff declaration" >&5
34446 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
34447 if test x${glibcxx_cv_func_modff_use+set} != xset; then
34448 if test "${glibcxx_cv_func_modff_use+set}" = set; then
34449 echo $ECHO_N "(cached) $ECHO_C" >&6
34450 else
34454 ac_ext=cc
34455 ac_cpp='$CXXCPP $CPPFLAGS'
34456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34460 cat >conftest.$ac_ext <<_ACEOF
34461 #line $LINENO "configure"
34462 /* confdefs.h. */
34463 _ACEOF
34464 cat confdefs.h >>conftest.$ac_ext
34465 cat >>conftest.$ac_ext <<_ACEOF
34466 /* end confdefs.h. */
34467 #include <math.h>
34469 main ()
34471 modff(0, 0);
34473 return 0;
34475 _ACEOF
34476 rm -f conftest.$ac_objext
34477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34478 (eval $ac_compile) 2>&5
34479 ac_status=$?
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); } &&
34482 { ac_try='test -s conftest.$ac_objext'
34483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34484 (eval $ac_try) 2>&5
34485 ac_status=$?
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); }; }; then
34488 glibcxx_cv_func_modff_use=yes
34489 else
34490 echo "$as_me: failed program was:" >&5
34491 sed 's/^/| /' conftest.$ac_ext >&5
34493 glibcxx_cv_func_modff_use=no
34495 rm -f conftest.$ac_objext conftest.$ac_ext
34496 ac_ext=c
34497 ac_cpp='$CPP $CPPFLAGS'
34498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34506 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
34507 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
34509 if test x$glibcxx_cv_func_modff_use = x"yes"; then
34511 for ac_func in modff
34513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34514 echo "$as_me:$LINENO: checking for $ac_func" >&5
34515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34516 if eval "test \"\${$as_ac_var+set}\" = set"; then
34517 echo $ECHO_N "(cached) $ECHO_C" >&6
34518 else
34519 if test x$gcc_no_link = xyes; then
34520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34522 { (exit 1); exit 1; }; }
34524 cat >conftest.$ac_ext <<_ACEOF
34525 #line $LINENO "configure"
34526 /* confdefs.h. */
34527 _ACEOF
34528 cat confdefs.h >>conftest.$ac_ext
34529 cat >>conftest.$ac_ext <<_ACEOF
34530 /* end confdefs.h. */
34531 /* System header to define __stub macros and hopefully few prototypes,
34532 which can conflict with char $ac_func (); below.
34533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34534 <limits.h> exists even on freestanding compilers. */
34535 #ifdef __STDC__
34536 # include <limits.h>
34537 #else
34538 # include <assert.h>
34539 #endif
34540 /* Override any gcc2 internal prototype to avoid an error. */
34541 #ifdef __cplusplus
34542 extern "C"
34544 #endif
34545 /* We use char because int might match the return type of a gcc2
34546 builtin and then its argument prototype would still apply. */
34547 char $ac_func ();
34548 /* The GNU C library defines this for functions which it implements
34549 to always fail with ENOSYS. Some functions are actually named
34550 something starting with __ and the normal name is an alias. */
34551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34552 choke me
34553 #else
34554 char (*f) () = $ac_func;
34555 #endif
34556 #ifdef __cplusplus
34558 #endif
34561 main ()
34563 return f != $ac_func;
34565 return 0;
34567 _ACEOF
34568 rm -f conftest.$ac_objext conftest$ac_exeext
34569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34570 (eval $ac_link) 2>&5
34571 ac_status=$?
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); } &&
34574 { ac_try='test -s conftest$ac_exeext'
34575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34576 (eval $ac_try) 2>&5
34577 ac_status=$?
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); }; }; then
34580 eval "$as_ac_var=yes"
34581 else
34582 echo "$as_me: failed program was:" >&5
34583 sed 's/^/| /' conftest.$ac_ext >&5
34585 eval "$as_ac_var=no"
34587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34591 if test `eval echo '${'$as_ac_var'}'` = yes; then
34592 cat >>confdefs.h <<_ACEOF
34593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34594 _ACEOF
34597 done
34599 else
34601 echo "$as_me:$LINENO: checking for _modff declaration" >&5
34602 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
34603 if test x${glibcxx_cv_func__modff_use+set} != xset; then
34604 if test "${glibcxx_cv_func__modff_use+set}" = set; then
34605 echo $ECHO_N "(cached) $ECHO_C" >&6
34606 else
34610 ac_ext=cc
34611 ac_cpp='$CXXCPP $CPPFLAGS'
34612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34616 cat >conftest.$ac_ext <<_ACEOF
34617 #line $LINENO "configure"
34618 /* confdefs.h. */
34619 _ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h. */
34623 #include <math.h>
34625 main ()
34627 _modff(0, 0);
34629 return 0;
34631 _ACEOF
34632 rm -f conftest.$ac_objext
34633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34634 (eval $ac_compile) 2>&5
34635 ac_status=$?
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); } &&
34638 { ac_try='test -s conftest.$ac_objext'
34639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640 (eval $ac_try) 2>&5
34641 ac_status=$?
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); }; }; then
34644 glibcxx_cv_func__modff_use=yes
34645 else
34646 echo "$as_me: failed program was:" >&5
34647 sed 's/^/| /' conftest.$ac_ext >&5
34649 glibcxx_cv_func__modff_use=no
34651 rm -f conftest.$ac_objext conftest.$ac_ext
34652 ac_ext=c
34653 ac_cpp='$CPP $CPPFLAGS'
34654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34662 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
34663 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
34665 if test x$glibcxx_cv_func__modff_use = x"yes"; then
34667 for ac_func in _modff
34669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34670 echo "$as_me:$LINENO: checking for $ac_func" >&5
34671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34672 if eval "test \"\${$as_ac_var+set}\" = set"; then
34673 echo $ECHO_N "(cached) $ECHO_C" >&6
34674 else
34675 if test x$gcc_no_link = xyes; then
34676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34678 { (exit 1); exit 1; }; }
34680 cat >conftest.$ac_ext <<_ACEOF
34681 #line $LINENO "configure"
34682 /* confdefs.h. */
34683 _ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h. */
34687 /* System header to define __stub macros and hopefully few prototypes,
34688 which can conflict with char $ac_func (); below.
34689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34690 <limits.h> exists even on freestanding compilers. */
34691 #ifdef __STDC__
34692 # include <limits.h>
34693 #else
34694 # include <assert.h>
34695 #endif
34696 /* Override any gcc2 internal prototype to avoid an error. */
34697 #ifdef __cplusplus
34698 extern "C"
34700 #endif
34701 /* We use char because int might match the return type of a gcc2
34702 builtin and then its argument prototype would still apply. */
34703 char $ac_func ();
34704 /* The GNU C library defines this for functions which it implements
34705 to always fail with ENOSYS. Some functions are actually named
34706 something starting with __ and the normal name is an alias. */
34707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34708 choke me
34709 #else
34710 char (*f) () = $ac_func;
34711 #endif
34712 #ifdef __cplusplus
34714 #endif
34717 main ()
34719 return f != $ac_func;
34721 return 0;
34723 _ACEOF
34724 rm -f conftest.$ac_objext conftest$ac_exeext
34725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34726 (eval $ac_link) 2>&5
34727 ac_status=$?
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); } &&
34730 { ac_try='test -s conftest$ac_exeext'
34731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34732 (eval $ac_try) 2>&5
34733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736 eval "$as_ac_var=yes"
34737 else
34738 echo "$as_me: failed program was:" >&5
34739 sed 's/^/| /' conftest.$ac_ext >&5
34741 eval "$as_ac_var=no"
34743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34747 if test `eval echo '${'$as_ac_var'}'` = yes; then
34748 cat >>confdefs.h <<_ACEOF
34749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34750 _ACEOF
34753 done
34760 echo "$as_me:$LINENO: checking for powf declaration" >&5
34761 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
34762 if test x${glibcxx_cv_func_powf_use+set} != xset; then
34763 if test "${glibcxx_cv_func_powf_use+set}" = set; then
34764 echo $ECHO_N "(cached) $ECHO_C" >&6
34765 else
34769 ac_ext=cc
34770 ac_cpp='$CXXCPP $CPPFLAGS'
34771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34775 cat >conftest.$ac_ext <<_ACEOF
34776 #line $LINENO "configure"
34777 /* confdefs.h. */
34778 _ACEOF
34779 cat confdefs.h >>conftest.$ac_ext
34780 cat >>conftest.$ac_ext <<_ACEOF
34781 /* end confdefs.h. */
34782 #include <math.h>
34784 main ()
34786 powf(0, 0);
34788 return 0;
34790 _ACEOF
34791 rm -f conftest.$ac_objext
34792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34793 (eval $ac_compile) 2>&5
34794 ac_status=$?
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); } &&
34797 { ac_try='test -s conftest.$ac_objext'
34798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34799 (eval $ac_try) 2>&5
34800 ac_status=$?
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); }; }; then
34803 glibcxx_cv_func_powf_use=yes
34804 else
34805 echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34808 glibcxx_cv_func_powf_use=no
34810 rm -f conftest.$ac_objext conftest.$ac_ext
34811 ac_ext=c
34812 ac_cpp='$CPP $CPPFLAGS'
34813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34821 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
34822 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
34824 if test x$glibcxx_cv_func_powf_use = x"yes"; then
34826 for ac_func in powf
34828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34829 echo "$as_me:$LINENO: checking for $ac_func" >&5
34830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34831 if eval "test \"\${$as_ac_var+set}\" = set"; then
34832 echo $ECHO_N "(cached) $ECHO_C" >&6
34833 else
34834 if test x$gcc_no_link = xyes; then
34835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34837 { (exit 1); exit 1; }; }
34839 cat >conftest.$ac_ext <<_ACEOF
34840 #line $LINENO "configure"
34841 /* confdefs.h. */
34842 _ACEOF
34843 cat confdefs.h >>conftest.$ac_ext
34844 cat >>conftest.$ac_ext <<_ACEOF
34845 /* end confdefs.h. */
34846 /* System header to define __stub macros and hopefully few prototypes,
34847 which can conflict with char $ac_func (); below.
34848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34849 <limits.h> exists even on freestanding compilers. */
34850 #ifdef __STDC__
34851 # include <limits.h>
34852 #else
34853 # include <assert.h>
34854 #endif
34855 /* Override any gcc2 internal prototype to avoid an error. */
34856 #ifdef __cplusplus
34857 extern "C"
34859 #endif
34860 /* We use char because int might match the return type of a gcc2
34861 builtin and then its argument prototype would still apply. */
34862 char $ac_func ();
34863 /* The GNU C library defines this for functions which it implements
34864 to always fail with ENOSYS. Some functions are actually named
34865 something starting with __ and the normal name is an alias. */
34866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34867 choke me
34868 #else
34869 char (*f) () = $ac_func;
34870 #endif
34871 #ifdef __cplusplus
34873 #endif
34876 main ()
34878 return f != $ac_func;
34880 return 0;
34882 _ACEOF
34883 rm -f conftest.$ac_objext conftest$ac_exeext
34884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34885 (eval $ac_link) 2>&5
34886 ac_status=$?
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } &&
34889 { ac_try='test -s conftest$ac_exeext'
34890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34891 (eval $ac_try) 2>&5
34892 ac_status=$?
34893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); }; }; then
34895 eval "$as_ac_var=yes"
34896 else
34897 echo "$as_me: failed program was:" >&5
34898 sed 's/^/| /' conftest.$ac_ext >&5
34900 eval "$as_ac_var=no"
34902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34906 if test `eval echo '${'$as_ac_var'}'` = yes; then
34907 cat >>confdefs.h <<_ACEOF
34908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34909 _ACEOF
34912 done
34914 else
34916 echo "$as_me:$LINENO: checking for _powf declaration" >&5
34917 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
34918 if test x${glibcxx_cv_func__powf_use+set} != xset; then
34919 if test "${glibcxx_cv_func__powf_use+set}" = set; then
34920 echo $ECHO_N "(cached) $ECHO_C" >&6
34921 else
34925 ac_ext=cc
34926 ac_cpp='$CXXCPP $CPPFLAGS'
34927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34931 cat >conftest.$ac_ext <<_ACEOF
34932 #line $LINENO "configure"
34933 /* confdefs.h. */
34934 _ACEOF
34935 cat confdefs.h >>conftest.$ac_ext
34936 cat >>conftest.$ac_ext <<_ACEOF
34937 /* end confdefs.h. */
34938 #include <math.h>
34940 main ()
34942 _powf(0, 0);
34944 return 0;
34946 _ACEOF
34947 rm -f conftest.$ac_objext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34949 (eval $ac_compile) 2>&5
34950 ac_status=$?
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); } &&
34953 { ac_try='test -s conftest.$ac_objext'
34954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955 (eval $ac_try) 2>&5
34956 ac_status=$?
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; }; then
34959 glibcxx_cv_func__powf_use=yes
34960 else
34961 echo "$as_me: failed program was:" >&5
34962 sed 's/^/| /' conftest.$ac_ext >&5
34964 glibcxx_cv_func__powf_use=no
34966 rm -f conftest.$ac_objext conftest.$ac_ext
34967 ac_ext=c
34968 ac_cpp='$CPP $CPPFLAGS'
34969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34977 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
34978 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
34980 if test x$glibcxx_cv_func__powf_use = x"yes"; then
34982 for ac_func in _powf
34984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34985 echo "$as_me:$LINENO: checking for $ac_func" >&5
34986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34987 if eval "test \"\${$as_ac_var+set}\" = set"; then
34988 echo $ECHO_N "(cached) $ECHO_C" >&6
34989 else
34990 if test x$gcc_no_link = xyes; then
34991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34993 { (exit 1); exit 1; }; }
34995 cat >conftest.$ac_ext <<_ACEOF
34996 #line $LINENO "configure"
34997 /* confdefs.h. */
34998 _ACEOF
34999 cat confdefs.h >>conftest.$ac_ext
35000 cat >>conftest.$ac_ext <<_ACEOF
35001 /* end confdefs.h. */
35002 /* System header to define __stub macros and hopefully few prototypes,
35003 which can conflict with char $ac_func (); below.
35004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35005 <limits.h> exists even on freestanding compilers. */
35006 #ifdef __STDC__
35007 # include <limits.h>
35008 #else
35009 # include <assert.h>
35010 #endif
35011 /* Override any gcc2 internal prototype to avoid an error. */
35012 #ifdef __cplusplus
35013 extern "C"
35015 #endif
35016 /* We use char because int might match the return type of a gcc2
35017 builtin and then its argument prototype would still apply. */
35018 char $ac_func ();
35019 /* The GNU C library defines this for functions which it implements
35020 to always fail with ENOSYS. Some functions are actually named
35021 something starting with __ and the normal name is an alias. */
35022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35023 choke me
35024 #else
35025 char (*f) () = $ac_func;
35026 #endif
35027 #ifdef __cplusplus
35029 #endif
35032 main ()
35034 return f != $ac_func;
35036 return 0;
35038 _ACEOF
35039 rm -f conftest.$ac_objext conftest$ac_exeext
35040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35041 (eval $ac_link) 2>&5
35042 ac_status=$?
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); } &&
35045 { ac_try='test -s conftest$ac_exeext'
35046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047 (eval $ac_try) 2>&5
35048 ac_status=$?
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); }; }; then
35051 eval "$as_ac_var=yes"
35052 else
35053 echo "$as_me: failed program was:" >&5
35054 sed 's/^/| /' conftest.$ac_ext >&5
35056 eval "$as_ac_var=no"
35058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35062 if test `eval echo '${'$as_ac_var'}'` = yes; then
35063 cat >>confdefs.h <<_ACEOF
35064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35065 _ACEOF
35068 done
35075 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
35076 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
35077 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
35078 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
35079 echo $ECHO_N "(cached) $ECHO_C" >&6
35080 else
35084 ac_ext=cc
35085 ac_cpp='$CXXCPP $CPPFLAGS'
35086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35090 cat >conftest.$ac_ext <<_ACEOF
35091 #line $LINENO "configure"
35092 /* confdefs.h. */
35093 _ACEOF
35094 cat confdefs.h >>conftest.$ac_ext
35095 cat >>conftest.$ac_ext <<_ACEOF
35096 /* end confdefs.h. */
35097 #include <math.h>
35098 #ifdef HAVE_IEEEFP_H
35099 #include <ieeefp.h>
35100 #endif
35103 main ()
35105 sqrtf(0);
35107 return 0;
35109 _ACEOF
35110 rm -f conftest.$ac_objext
35111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35112 (eval $ac_compile) 2>&5
35113 ac_status=$?
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } &&
35116 { ac_try='test -s conftest.$ac_objext'
35117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118 (eval $ac_try) 2>&5
35119 ac_status=$?
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); }; }; then
35122 glibcxx_cv_func_sqrtf_use=yes
35123 else
35124 echo "$as_me: failed program was:" >&5
35125 sed 's/^/| /' conftest.$ac_ext >&5
35127 glibcxx_cv_func_sqrtf_use=no
35129 rm -f conftest.$ac_objext conftest.$ac_ext
35130 ac_ext=c
35131 ac_cpp='$CPP $CPPFLAGS'
35132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35140 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
35141 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
35143 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
35145 for ac_func in sqrtf
35147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35148 echo "$as_me:$LINENO: checking for $ac_func" >&5
35149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35150 if eval "test \"\${$as_ac_var+set}\" = set"; then
35151 echo $ECHO_N "(cached) $ECHO_C" >&6
35152 else
35153 if test x$gcc_no_link = xyes; then
35154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35156 { (exit 1); exit 1; }; }
35158 cat >conftest.$ac_ext <<_ACEOF
35159 #line $LINENO "configure"
35160 /* confdefs.h. */
35161 _ACEOF
35162 cat confdefs.h >>conftest.$ac_ext
35163 cat >>conftest.$ac_ext <<_ACEOF
35164 /* end confdefs.h. */
35165 /* System header to define __stub macros and hopefully few prototypes,
35166 which can conflict with char $ac_func (); below.
35167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35168 <limits.h> exists even on freestanding compilers. */
35169 #ifdef __STDC__
35170 # include <limits.h>
35171 #else
35172 # include <assert.h>
35173 #endif
35174 /* Override any gcc2 internal prototype to avoid an error. */
35175 #ifdef __cplusplus
35176 extern "C"
35178 #endif
35179 /* We use char because int might match the return type of a gcc2
35180 builtin and then its argument prototype would still apply. */
35181 char $ac_func ();
35182 /* The GNU C library defines this for functions which it implements
35183 to always fail with ENOSYS. Some functions are actually named
35184 something starting with __ and the normal name is an alias. */
35185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35186 choke me
35187 #else
35188 char (*f) () = $ac_func;
35189 #endif
35190 #ifdef __cplusplus
35192 #endif
35195 main ()
35197 return f != $ac_func;
35199 return 0;
35201 _ACEOF
35202 rm -f conftest.$ac_objext conftest$ac_exeext
35203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35204 (eval $ac_link) 2>&5
35205 ac_status=$?
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); } &&
35208 { ac_try='test -s conftest$ac_exeext'
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35211 ac_status=$?
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; }; then
35214 eval "$as_ac_var=yes"
35215 else
35216 echo "$as_me: failed program was:" >&5
35217 sed 's/^/| /' conftest.$ac_ext >&5
35219 eval "$as_ac_var=no"
35221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35225 if test `eval echo '${'$as_ac_var'}'` = yes; then
35226 cat >>confdefs.h <<_ACEOF
35227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35228 _ACEOF
35231 done
35233 else
35235 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
35236 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
35237 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
35238 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
35239 echo $ECHO_N "(cached) $ECHO_C" >&6
35240 else
35244 ac_ext=cc
35245 ac_cpp='$CXXCPP $CPPFLAGS'
35246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35250 cat >conftest.$ac_ext <<_ACEOF
35251 #line $LINENO "configure"
35252 /* confdefs.h. */
35253 _ACEOF
35254 cat confdefs.h >>conftest.$ac_ext
35255 cat >>conftest.$ac_ext <<_ACEOF
35256 /* end confdefs.h. */
35257 #include <math.h>
35258 #ifdef HAVE_IEEEFP_H
35259 #include <ieeefp.h>
35260 #endif
35263 main ()
35265 _sqrtf(0);
35267 return 0;
35269 _ACEOF
35270 rm -f conftest.$ac_objext
35271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35272 (eval $ac_compile) 2>&5
35273 ac_status=$?
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); } &&
35276 { ac_try='test -s conftest.$ac_objext'
35277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35278 (eval $ac_try) 2>&5
35279 ac_status=$?
35280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); }; }; then
35282 glibcxx_cv_func__sqrtf_use=yes
35283 else
35284 echo "$as_me: failed program was:" >&5
35285 sed 's/^/| /' conftest.$ac_ext >&5
35287 glibcxx_cv_func__sqrtf_use=no
35289 rm -f conftest.$ac_objext conftest.$ac_ext
35290 ac_ext=c
35291 ac_cpp='$CPP $CPPFLAGS'
35292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35300 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
35301 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
35303 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
35305 for ac_func in _sqrtf
35307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35308 echo "$as_me:$LINENO: checking for $ac_func" >&5
35309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35310 if eval "test \"\${$as_ac_var+set}\" = set"; then
35311 echo $ECHO_N "(cached) $ECHO_C" >&6
35312 else
35313 if test x$gcc_no_link = xyes; then
35314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35316 { (exit 1); exit 1; }; }
35318 cat >conftest.$ac_ext <<_ACEOF
35319 #line $LINENO "configure"
35320 /* confdefs.h. */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 /* System header to define __stub macros and hopefully few prototypes,
35326 which can conflict with char $ac_func (); below.
35327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35328 <limits.h> exists even on freestanding compilers. */
35329 #ifdef __STDC__
35330 # include <limits.h>
35331 #else
35332 # include <assert.h>
35333 #endif
35334 /* Override any gcc2 internal prototype to avoid an error. */
35335 #ifdef __cplusplus
35336 extern "C"
35338 #endif
35339 /* We use char because int might match the return type of a gcc2
35340 builtin and then its argument prototype would still apply. */
35341 char $ac_func ();
35342 /* The GNU C library defines this for functions which it implements
35343 to always fail with ENOSYS. Some functions are actually named
35344 something starting with __ and the normal name is an alias. */
35345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35346 choke me
35347 #else
35348 char (*f) () = $ac_func;
35349 #endif
35350 #ifdef __cplusplus
35352 #endif
35355 main ()
35357 return f != $ac_func;
35359 return 0;
35361 _ACEOF
35362 rm -f conftest.$ac_objext conftest$ac_exeext
35363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35364 (eval $ac_link) 2>&5
35365 ac_status=$?
35366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35367 (exit $ac_status); } &&
35368 { ac_try='test -s conftest$ac_exeext'
35369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35370 (eval $ac_try) 2>&5
35371 ac_status=$?
35372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 (exit $ac_status); }; }; then
35374 eval "$as_ac_var=yes"
35375 else
35376 echo "$as_me: failed program was:" >&5
35377 sed 's/^/| /' conftest.$ac_ext >&5
35379 eval "$as_ac_var=no"
35381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35385 if test `eval echo '${'$as_ac_var'}'` = yes; then
35386 cat >>confdefs.h <<_ACEOF
35387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35388 _ACEOF
35391 done
35398 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
35399 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
35400 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
35401 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
35402 echo $ECHO_N "(cached) $ECHO_C" >&6
35403 else
35407 ac_ext=cc
35408 ac_cpp='$CXXCPP $CPPFLAGS'
35409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35413 cat >conftest.$ac_ext <<_ACEOF
35414 #line $LINENO "configure"
35415 /* confdefs.h. */
35416 _ACEOF
35417 cat confdefs.h >>conftest.$ac_ext
35418 cat >>conftest.$ac_ext <<_ACEOF
35419 /* end confdefs.h. */
35420 #include <math.h>
35422 main ()
35424 sincosf(0, 0, 0);
35426 return 0;
35428 _ACEOF
35429 rm -f conftest.$ac_objext
35430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35431 (eval $ac_compile) 2>&5
35432 ac_status=$?
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } &&
35435 { ac_try='test -s conftest.$ac_objext'
35436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35437 (eval $ac_try) 2>&5
35438 ac_status=$?
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); }; }; then
35441 glibcxx_cv_func_sincosf_use=yes
35442 else
35443 echo "$as_me: failed program was:" >&5
35444 sed 's/^/| /' conftest.$ac_ext >&5
35446 glibcxx_cv_func_sincosf_use=no
35448 rm -f conftest.$ac_objext conftest.$ac_ext
35449 ac_ext=c
35450 ac_cpp='$CPP $CPPFLAGS'
35451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35459 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
35460 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
35462 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
35464 for ac_func in sincosf
35466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35467 echo "$as_me:$LINENO: checking for $ac_func" >&5
35468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35469 if eval "test \"\${$as_ac_var+set}\" = set"; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35471 else
35472 if test x$gcc_no_link = xyes; then
35473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35475 { (exit 1); exit 1; }; }
35477 cat >conftest.$ac_ext <<_ACEOF
35478 #line $LINENO "configure"
35479 /* confdefs.h. */
35480 _ACEOF
35481 cat confdefs.h >>conftest.$ac_ext
35482 cat >>conftest.$ac_ext <<_ACEOF
35483 /* end confdefs.h. */
35484 /* System header to define __stub macros and hopefully few prototypes,
35485 which can conflict with char $ac_func (); below.
35486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35487 <limits.h> exists even on freestanding compilers. */
35488 #ifdef __STDC__
35489 # include <limits.h>
35490 #else
35491 # include <assert.h>
35492 #endif
35493 /* Override any gcc2 internal prototype to avoid an error. */
35494 #ifdef __cplusplus
35495 extern "C"
35497 #endif
35498 /* We use char because int might match the return type of a gcc2
35499 builtin and then its argument prototype would still apply. */
35500 char $ac_func ();
35501 /* The GNU C library defines this for functions which it implements
35502 to always fail with ENOSYS. Some functions are actually named
35503 something starting with __ and the normal name is an alias. */
35504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35505 choke me
35506 #else
35507 char (*f) () = $ac_func;
35508 #endif
35509 #ifdef __cplusplus
35511 #endif
35514 main ()
35516 return f != $ac_func;
35518 return 0;
35520 _ACEOF
35521 rm -f conftest.$ac_objext conftest$ac_exeext
35522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35523 (eval $ac_link) 2>&5
35524 ac_status=$?
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); } &&
35527 { ac_try='test -s conftest$ac_exeext'
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35530 ac_status=$?
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35533 eval "$as_ac_var=yes"
35534 else
35535 echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35538 eval "$as_ac_var=no"
35540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35544 if test `eval echo '${'$as_ac_var'}'` = yes; then
35545 cat >>confdefs.h <<_ACEOF
35546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35547 _ACEOF
35550 done
35552 else
35554 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
35555 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
35556 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
35557 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
35558 echo $ECHO_N "(cached) $ECHO_C" >&6
35559 else
35563 ac_ext=cc
35564 ac_cpp='$CXXCPP $CPPFLAGS'
35565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35569 cat >conftest.$ac_ext <<_ACEOF
35570 #line $LINENO "configure"
35571 /* confdefs.h. */
35572 _ACEOF
35573 cat confdefs.h >>conftest.$ac_ext
35574 cat >>conftest.$ac_ext <<_ACEOF
35575 /* end confdefs.h. */
35576 #include <math.h>
35578 main ()
35580 _sincosf(0, 0, 0);
35582 return 0;
35584 _ACEOF
35585 rm -f conftest.$ac_objext
35586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35587 (eval $ac_compile) 2>&5
35588 ac_status=$?
35589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); } &&
35591 { ac_try='test -s conftest.$ac_objext'
35592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593 (eval $ac_try) 2>&5
35594 ac_status=$?
35595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); }; }; then
35597 glibcxx_cv_func__sincosf_use=yes
35598 else
35599 echo "$as_me: failed program was:" >&5
35600 sed 's/^/| /' conftest.$ac_ext >&5
35602 glibcxx_cv_func__sincosf_use=no
35604 rm -f conftest.$ac_objext conftest.$ac_ext
35605 ac_ext=c
35606 ac_cpp='$CPP $CPPFLAGS'
35607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35615 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
35616 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
35618 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
35620 for ac_func in _sincosf
35622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35623 echo "$as_me:$LINENO: checking for $ac_func" >&5
35624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35625 if eval "test \"\${$as_ac_var+set}\" = set"; then
35626 echo $ECHO_N "(cached) $ECHO_C" >&6
35627 else
35628 if test x$gcc_no_link = xyes; then
35629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35631 { (exit 1); exit 1; }; }
35633 cat >conftest.$ac_ext <<_ACEOF
35634 #line $LINENO "configure"
35635 /* confdefs.h. */
35636 _ACEOF
35637 cat confdefs.h >>conftest.$ac_ext
35638 cat >>conftest.$ac_ext <<_ACEOF
35639 /* end confdefs.h. */
35640 /* System header to define __stub macros and hopefully few prototypes,
35641 which can conflict with char $ac_func (); below.
35642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35643 <limits.h> exists even on freestanding compilers. */
35644 #ifdef __STDC__
35645 # include <limits.h>
35646 #else
35647 # include <assert.h>
35648 #endif
35649 /* Override any gcc2 internal prototype to avoid an error. */
35650 #ifdef __cplusplus
35651 extern "C"
35653 #endif
35654 /* We use char because int might match the return type of a gcc2
35655 builtin and then its argument prototype would still apply. */
35656 char $ac_func ();
35657 /* The GNU C library defines this for functions which it implements
35658 to always fail with ENOSYS. Some functions are actually named
35659 something starting with __ and the normal name is an alias. */
35660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35661 choke me
35662 #else
35663 char (*f) () = $ac_func;
35664 #endif
35665 #ifdef __cplusplus
35667 #endif
35670 main ()
35672 return f != $ac_func;
35674 return 0;
35676 _ACEOF
35677 rm -f conftest.$ac_objext conftest$ac_exeext
35678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35679 (eval $ac_link) 2>&5
35680 ac_status=$?
35681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682 (exit $ac_status); } &&
35683 { ac_try='test -s conftest$ac_exeext'
35684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685 (eval $ac_try) 2>&5
35686 ac_status=$?
35687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688 (exit $ac_status); }; }; then
35689 eval "$as_ac_var=yes"
35690 else
35691 echo "$as_me: failed program was:" >&5
35692 sed 's/^/| /' conftest.$ac_ext >&5
35694 eval "$as_ac_var=no"
35696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35700 if test `eval echo '${'$as_ac_var'}'` = yes; then
35701 cat >>confdefs.h <<_ACEOF
35702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35703 _ACEOF
35706 done
35713 echo "$as_me:$LINENO: checking for finitef declaration" >&5
35714 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
35715 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
35716 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
35717 echo $ECHO_N "(cached) $ECHO_C" >&6
35718 else
35722 ac_ext=cc
35723 ac_cpp='$CXXCPP $CPPFLAGS'
35724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35728 cat >conftest.$ac_ext <<_ACEOF
35729 #line $LINENO "configure"
35730 /* confdefs.h. */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h. */
35735 #include <math.h>
35736 #ifdef HAVE_IEEEFP_H
35737 #include <ieeefp.h>
35738 #endif
35741 main ()
35743 finitef(0);
35745 return 0;
35747 _ACEOF
35748 rm -f conftest.$ac_objext
35749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35750 (eval $ac_compile) 2>&5
35751 ac_status=$?
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } &&
35754 { ac_try='test -s conftest.$ac_objext'
35755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756 (eval $ac_try) 2>&5
35757 ac_status=$?
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); }; }; then
35760 glibcxx_cv_func_finitef_use=yes
35761 else
35762 echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35765 glibcxx_cv_func_finitef_use=no
35767 rm -f conftest.$ac_objext conftest.$ac_ext
35768 ac_ext=c
35769 ac_cpp='$CPP $CPPFLAGS'
35770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35778 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
35779 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
35781 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
35783 for ac_func in finitef
35785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35786 echo "$as_me:$LINENO: checking for $ac_func" >&5
35787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35788 if eval "test \"\${$as_ac_var+set}\" = set"; then
35789 echo $ECHO_N "(cached) $ECHO_C" >&6
35790 else
35791 if test x$gcc_no_link = xyes; then
35792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35794 { (exit 1); exit 1; }; }
35796 cat >conftest.$ac_ext <<_ACEOF
35797 #line $LINENO "configure"
35798 /* confdefs.h. */
35799 _ACEOF
35800 cat confdefs.h >>conftest.$ac_ext
35801 cat >>conftest.$ac_ext <<_ACEOF
35802 /* end confdefs.h. */
35803 /* System header to define __stub macros and hopefully few prototypes,
35804 which can conflict with char $ac_func (); below.
35805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35806 <limits.h> exists even on freestanding compilers. */
35807 #ifdef __STDC__
35808 # include <limits.h>
35809 #else
35810 # include <assert.h>
35811 #endif
35812 /* Override any gcc2 internal prototype to avoid an error. */
35813 #ifdef __cplusplus
35814 extern "C"
35816 #endif
35817 /* We use char because int might match the return type of a gcc2
35818 builtin and then its argument prototype would still apply. */
35819 char $ac_func ();
35820 /* The GNU C library defines this for functions which it implements
35821 to always fail with ENOSYS. Some functions are actually named
35822 something starting with __ and the normal name is an alias. */
35823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35824 choke me
35825 #else
35826 char (*f) () = $ac_func;
35827 #endif
35828 #ifdef __cplusplus
35830 #endif
35833 main ()
35835 return f != $ac_func;
35837 return 0;
35839 _ACEOF
35840 rm -f conftest.$ac_objext conftest$ac_exeext
35841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35842 (eval $ac_link) 2>&5
35843 ac_status=$?
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); } &&
35846 { ac_try='test -s conftest$ac_exeext'
35847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848 (eval $ac_try) 2>&5
35849 ac_status=$?
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); }; }; then
35852 eval "$as_ac_var=yes"
35853 else
35854 echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35857 eval "$as_ac_var=no"
35859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35863 if test `eval echo '${'$as_ac_var'}'` = yes; then
35864 cat >>confdefs.h <<_ACEOF
35865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35866 _ACEOF
35869 done
35871 else
35873 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
35874 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
35875 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
35876 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
35877 echo $ECHO_N "(cached) $ECHO_C" >&6
35878 else
35882 ac_ext=cc
35883 ac_cpp='$CXXCPP $CPPFLAGS'
35884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35888 cat >conftest.$ac_ext <<_ACEOF
35889 #line $LINENO "configure"
35890 /* confdefs.h. */
35891 _ACEOF
35892 cat confdefs.h >>conftest.$ac_ext
35893 cat >>conftest.$ac_ext <<_ACEOF
35894 /* end confdefs.h. */
35895 #include <math.h>
35896 #ifdef HAVE_IEEEFP_H
35897 #include <ieeefp.h>
35898 #endif
35901 main ()
35903 _finitef(0);
35905 return 0;
35907 _ACEOF
35908 rm -f conftest.$ac_objext
35909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35910 (eval $ac_compile) 2>&5
35911 ac_status=$?
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); } &&
35914 { ac_try='test -s conftest.$ac_objext'
35915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35916 (eval $ac_try) 2>&5
35917 ac_status=$?
35918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919 (exit $ac_status); }; }; then
35920 glibcxx_cv_func__finitef_use=yes
35921 else
35922 echo "$as_me: failed program was:" >&5
35923 sed 's/^/| /' conftest.$ac_ext >&5
35925 glibcxx_cv_func__finitef_use=no
35927 rm -f conftest.$ac_objext conftest.$ac_ext
35928 ac_ext=c
35929 ac_cpp='$CPP $CPPFLAGS'
35930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35938 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
35939 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
35941 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
35943 for ac_func in _finitef
35945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35946 echo "$as_me:$LINENO: checking for $ac_func" >&5
35947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35948 if eval "test \"\${$as_ac_var+set}\" = set"; then
35949 echo $ECHO_N "(cached) $ECHO_C" >&6
35950 else
35951 if test x$gcc_no_link = xyes; then
35952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35954 { (exit 1); exit 1; }; }
35956 cat >conftest.$ac_ext <<_ACEOF
35957 #line $LINENO "configure"
35958 /* confdefs.h. */
35959 _ACEOF
35960 cat confdefs.h >>conftest.$ac_ext
35961 cat >>conftest.$ac_ext <<_ACEOF
35962 /* end confdefs.h. */
35963 /* System header to define __stub macros and hopefully few prototypes,
35964 which can conflict with char $ac_func (); below.
35965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35966 <limits.h> exists even on freestanding compilers. */
35967 #ifdef __STDC__
35968 # include <limits.h>
35969 #else
35970 # include <assert.h>
35971 #endif
35972 /* Override any gcc2 internal prototype to avoid an error. */
35973 #ifdef __cplusplus
35974 extern "C"
35976 #endif
35977 /* We use char because int might match the return type of a gcc2
35978 builtin and then its argument prototype would still apply. */
35979 char $ac_func ();
35980 /* The GNU C library defines this for functions which it implements
35981 to always fail with ENOSYS. Some functions are actually named
35982 something starting with __ and the normal name is an alias. */
35983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35984 choke me
35985 #else
35986 char (*f) () = $ac_func;
35987 #endif
35988 #ifdef __cplusplus
35990 #endif
35993 main ()
35995 return f != $ac_func;
35997 return 0;
35999 _ACEOF
36000 rm -f conftest.$ac_objext conftest$ac_exeext
36001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36002 (eval $ac_link) 2>&5
36003 ac_status=$?
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); } &&
36006 { ac_try='test -s conftest$ac_exeext'
36007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36008 (eval $ac_try) 2>&5
36009 ac_status=$?
36010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); }; }; then
36012 eval "$as_ac_var=yes"
36013 else
36014 echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36017 eval "$as_ac_var=no"
36019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36023 if test `eval echo '${'$as_ac_var'}'` = yes; then
36024 cat >>confdefs.h <<_ACEOF
36025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36026 _ACEOF
36029 done
36036 echo "$as_me:$LINENO: checking for long double trig functions" >&5
36037 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
36038 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
36039 echo $ECHO_N "(cached) $ECHO_C" >&6
36040 else
36044 ac_ext=cc
36045 ac_cpp='$CXXCPP $CPPFLAGS'
36046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36050 cat >conftest.$ac_ext <<_ACEOF
36051 #line $LINENO "configure"
36052 /* confdefs.h. */
36053 _ACEOF
36054 cat confdefs.h >>conftest.$ac_ext
36055 cat >>conftest.$ac_ext <<_ACEOF
36056 /* end confdefs.h. */
36057 #include <math.h>
36059 main ()
36061 `for x in acosl asinl atanl \
36062 cosl sinl tanl \
36063 coshl sinhl tanhl; do echo "$x (0);"; done`
36065 return 0;
36067 _ACEOF
36068 rm -f conftest.$ac_objext
36069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36070 (eval $ac_compile) 2>&5
36071 ac_status=$?
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); } &&
36074 { ac_try='test -s conftest.$ac_objext'
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36077 ac_status=$?
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; }; then
36080 glibcxx_cv_func_long_double_trig_use=yes
36081 else
36082 echo "$as_me: failed program was:" >&5
36083 sed 's/^/| /' conftest.$ac_ext >&5
36085 glibcxx_cv_func_long_double_trig_use=no
36087 rm -f conftest.$ac_objext conftest.$ac_ext
36088 ac_ext=c
36089 ac_cpp='$CPP $CPPFLAGS'
36090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36096 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
36097 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
36098 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
36108 for ac_func in acosl asinl atanl \
36109 cosl sinl tanl \
36110 coshl sinhl tanhl
36112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36113 echo "$as_me:$LINENO: checking for $ac_func" >&5
36114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36115 if eval "test \"\${$as_ac_var+set}\" = set"; then
36116 echo $ECHO_N "(cached) $ECHO_C" >&6
36117 else
36118 if test x$gcc_no_link = xyes; then
36119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36121 { (exit 1); exit 1; }; }
36123 cat >conftest.$ac_ext <<_ACEOF
36124 #line $LINENO "configure"
36125 /* confdefs.h. */
36126 _ACEOF
36127 cat confdefs.h >>conftest.$ac_ext
36128 cat >>conftest.$ac_ext <<_ACEOF
36129 /* end confdefs.h. */
36130 /* System header to define __stub macros and hopefully few prototypes,
36131 which can conflict with char $ac_func (); below.
36132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36133 <limits.h> exists even on freestanding compilers. */
36134 #ifdef __STDC__
36135 # include <limits.h>
36136 #else
36137 # include <assert.h>
36138 #endif
36139 /* Override any gcc2 internal prototype to avoid an error. */
36140 #ifdef __cplusplus
36141 extern "C"
36143 #endif
36144 /* We use char because int might match the return type of a gcc2
36145 builtin and then its argument prototype would still apply. */
36146 char $ac_func ();
36147 /* The GNU C library defines this for functions which it implements
36148 to always fail with ENOSYS. Some functions are actually named
36149 something starting with __ and the normal name is an alias. */
36150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36151 choke me
36152 #else
36153 char (*f) () = $ac_func;
36154 #endif
36155 #ifdef __cplusplus
36157 #endif
36160 main ()
36162 return f != $ac_func;
36164 return 0;
36166 _ACEOF
36167 rm -f conftest.$ac_objext conftest$ac_exeext
36168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36169 (eval $ac_link) 2>&5
36170 ac_status=$?
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); } &&
36173 { ac_try='test -s conftest$ac_exeext'
36174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36175 (eval $ac_try) 2>&5
36176 ac_status=$?
36177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); }; }; then
36179 eval "$as_ac_var=yes"
36180 else
36181 echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36184 eval "$as_ac_var=no"
36186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36190 if test `eval echo '${'$as_ac_var'}'` = yes; then
36191 cat >>confdefs.h <<_ACEOF
36192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36193 _ACEOF
36196 done
36201 echo "$as_me:$LINENO: checking for long double round functions" >&5
36202 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
36203 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
36204 echo $ECHO_N "(cached) $ECHO_C" >&6
36205 else
36209 ac_ext=cc
36210 ac_cpp='$CXXCPP $CPPFLAGS'
36211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36215 cat >conftest.$ac_ext <<_ACEOF
36216 #line $LINENO "configure"
36217 /* confdefs.h. */
36218 _ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h. */
36222 #include <math.h>
36224 main ()
36226 `for x in ceill floorl; do echo "$x (0);"; done`
36228 return 0;
36230 _ACEOF
36231 rm -f conftest.$ac_objext
36232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36233 (eval $ac_compile) 2>&5
36234 ac_status=$?
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); } &&
36237 { ac_try='test -s conftest.$ac_objext'
36238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36239 (eval $ac_try) 2>&5
36240 ac_status=$?
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); }; }; then
36243 glibcxx_cv_func_long_double_round_use=yes
36244 else
36245 echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36248 glibcxx_cv_func_long_double_round_use=no
36250 rm -f conftest.$ac_objext conftest.$ac_ext
36251 ac_ext=c
36252 ac_cpp='$CPP $CPPFLAGS'
36253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36259 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
36260 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
36261 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
36264 for ac_func in ceill floorl
36266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36267 echo "$as_me:$LINENO: checking for $ac_func" >&5
36268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36269 if eval "test \"\${$as_ac_var+set}\" = set"; then
36270 echo $ECHO_N "(cached) $ECHO_C" >&6
36271 else
36272 if test x$gcc_no_link = xyes; then
36273 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36275 { (exit 1); exit 1; }; }
36277 cat >conftest.$ac_ext <<_ACEOF
36278 #line $LINENO "configure"
36279 /* confdefs.h. */
36280 _ACEOF
36281 cat confdefs.h >>conftest.$ac_ext
36282 cat >>conftest.$ac_ext <<_ACEOF
36283 /* end confdefs.h. */
36284 /* System header to define __stub macros and hopefully few prototypes,
36285 which can conflict with char $ac_func (); below.
36286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36287 <limits.h> exists even on freestanding compilers. */
36288 #ifdef __STDC__
36289 # include <limits.h>
36290 #else
36291 # include <assert.h>
36292 #endif
36293 /* Override any gcc2 internal prototype to avoid an error. */
36294 #ifdef __cplusplus
36295 extern "C"
36297 #endif
36298 /* We use char because int might match the return type of a gcc2
36299 builtin and then its argument prototype would still apply. */
36300 char $ac_func ();
36301 /* The GNU C library defines this for functions which it implements
36302 to always fail with ENOSYS. Some functions are actually named
36303 something starting with __ and the normal name is an alias. */
36304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36305 choke me
36306 #else
36307 char (*f) () = $ac_func;
36308 #endif
36309 #ifdef __cplusplus
36311 #endif
36314 main ()
36316 return f != $ac_func;
36318 return 0;
36320 _ACEOF
36321 rm -f conftest.$ac_objext conftest$ac_exeext
36322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36323 (eval $ac_link) 2>&5
36324 ac_status=$?
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); } &&
36327 { ac_try='test -s conftest$ac_exeext'
36328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36329 (eval $ac_try) 2>&5
36330 ac_status=$?
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); }; }; then
36333 eval "$as_ac_var=yes"
36334 else
36335 echo "$as_me: failed program was:" >&5
36336 sed 's/^/| /' conftest.$ac_ext >&5
36338 eval "$as_ac_var=no"
36340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36344 if test `eval echo '${'$as_ac_var'}'` = yes; then
36345 cat >>confdefs.h <<_ACEOF
36346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36347 _ACEOF
36350 done
36356 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
36357 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
36358 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36359 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
36360 echo $ECHO_N "(cached) $ECHO_C" >&6
36361 else
36365 ac_ext=cc
36366 ac_cpp='$CXXCPP $CPPFLAGS'
36367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36371 cat >conftest.$ac_ext <<_ACEOF
36372 #line $LINENO "configure"
36373 /* confdefs.h. */
36374 _ACEOF
36375 cat confdefs.h >>conftest.$ac_ext
36376 cat >>conftest.$ac_ext <<_ACEOF
36377 /* end confdefs.h. */
36378 #include <math.h>
36379 #ifdef HAVE_IEEEFP_H
36380 #include <ieeefp.h>
36381 #endif
36384 main ()
36386 isnanl(0);
36388 return 0;
36390 _ACEOF
36391 rm -f conftest.$ac_objext
36392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36393 (eval $ac_compile) 2>&5
36394 ac_status=$?
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); } &&
36397 { ac_try='test -s conftest.$ac_objext'
36398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36399 (eval $ac_try) 2>&5
36400 ac_status=$?
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 (exit $ac_status); }; }; then
36403 glibcxx_cv_func_isnanl_use=yes
36404 else
36405 echo "$as_me: failed program was:" >&5
36406 sed 's/^/| /' conftest.$ac_ext >&5
36408 glibcxx_cv_func_isnanl_use=no
36410 rm -f conftest.$ac_objext conftest.$ac_ext
36411 ac_ext=c
36412 ac_cpp='$CPP $CPPFLAGS'
36413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36421 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
36422 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
36424 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36426 for ac_func in isnanl
36428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36429 echo "$as_me:$LINENO: checking for $ac_func" >&5
36430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36431 if eval "test \"\${$as_ac_var+set}\" = set"; then
36432 echo $ECHO_N "(cached) $ECHO_C" >&6
36433 else
36434 if test x$gcc_no_link = xyes; then
36435 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36436 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36437 { (exit 1); exit 1; }; }
36439 cat >conftest.$ac_ext <<_ACEOF
36440 #line $LINENO "configure"
36441 /* confdefs.h. */
36442 _ACEOF
36443 cat confdefs.h >>conftest.$ac_ext
36444 cat >>conftest.$ac_ext <<_ACEOF
36445 /* end confdefs.h. */
36446 /* System header to define __stub macros and hopefully few prototypes,
36447 which can conflict with char $ac_func (); below.
36448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36449 <limits.h> exists even on freestanding compilers. */
36450 #ifdef __STDC__
36451 # include <limits.h>
36452 #else
36453 # include <assert.h>
36454 #endif
36455 /* Override any gcc2 internal prototype to avoid an error. */
36456 #ifdef __cplusplus
36457 extern "C"
36459 #endif
36460 /* We use char because int might match the return type of a gcc2
36461 builtin and then its argument prototype would still apply. */
36462 char $ac_func ();
36463 /* The GNU C library defines this for functions which it implements
36464 to always fail with ENOSYS. Some functions are actually named
36465 something starting with __ and the normal name is an alias. */
36466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36467 choke me
36468 #else
36469 char (*f) () = $ac_func;
36470 #endif
36471 #ifdef __cplusplus
36473 #endif
36476 main ()
36478 return f != $ac_func;
36480 return 0;
36482 _ACEOF
36483 rm -f conftest.$ac_objext conftest$ac_exeext
36484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36485 (eval $ac_link) 2>&5
36486 ac_status=$?
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); } &&
36489 { ac_try='test -s conftest$ac_exeext'
36490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491 (eval $ac_try) 2>&5
36492 ac_status=$?
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); }; }; then
36495 eval "$as_ac_var=yes"
36496 else
36497 echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36500 eval "$as_ac_var=no"
36502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36506 if test `eval echo '${'$as_ac_var'}'` = yes; then
36507 cat >>confdefs.h <<_ACEOF
36508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36509 _ACEOF
36512 done
36514 else
36516 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
36517 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
36518 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
36519 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
36520 echo $ECHO_N "(cached) $ECHO_C" >&6
36521 else
36525 ac_ext=cc
36526 ac_cpp='$CXXCPP $CPPFLAGS'
36527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36531 cat >conftest.$ac_ext <<_ACEOF
36532 #line $LINENO "configure"
36533 /* confdefs.h. */
36534 _ACEOF
36535 cat confdefs.h >>conftest.$ac_ext
36536 cat >>conftest.$ac_ext <<_ACEOF
36537 /* end confdefs.h. */
36538 #include <math.h>
36539 #ifdef HAVE_IEEEFP_H
36540 #include <ieeefp.h>
36541 #endif
36544 main ()
36546 _isnanl(0);
36548 return 0;
36550 _ACEOF
36551 rm -f conftest.$ac_objext
36552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36553 (eval $ac_compile) 2>&5
36554 ac_status=$?
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); } &&
36557 { ac_try='test -s conftest.$ac_objext'
36558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36559 (eval $ac_try) 2>&5
36560 ac_status=$?
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); }; }; then
36563 glibcxx_cv_func__isnanl_use=yes
36564 else
36565 echo "$as_me: failed program was:" >&5
36566 sed 's/^/| /' conftest.$ac_ext >&5
36568 glibcxx_cv_func__isnanl_use=no
36570 rm -f conftest.$ac_objext conftest.$ac_ext
36571 ac_ext=c
36572 ac_cpp='$CPP $CPPFLAGS'
36573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36581 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
36582 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
36584 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
36586 for ac_func in _isnanl
36588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36589 echo "$as_me:$LINENO: checking for $ac_func" >&5
36590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36591 if eval "test \"\${$as_ac_var+set}\" = set"; then
36592 echo $ECHO_N "(cached) $ECHO_C" >&6
36593 else
36594 if test x$gcc_no_link = xyes; then
36595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36597 { (exit 1); exit 1; }; }
36599 cat >conftest.$ac_ext <<_ACEOF
36600 #line $LINENO "configure"
36601 /* confdefs.h. */
36602 _ACEOF
36603 cat confdefs.h >>conftest.$ac_ext
36604 cat >>conftest.$ac_ext <<_ACEOF
36605 /* end confdefs.h. */
36606 /* System header to define __stub macros and hopefully few prototypes,
36607 which can conflict with char $ac_func (); below.
36608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36609 <limits.h> exists even on freestanding compilers. */
36610 #ifdef __STDC__
36611 # include <limits.h>
36612 #else
36613 # include <assert.h>
36614 #endif
36615 /* Override any gcc2 internal prototype to avoid an error. */
36616 #ifdef __cplusplus
36617 extern "C"
36619 #endif
36620 /* We use char because int might match the return type of a gcc2
36621 builtin and then its argument prototype would still apply. */
36622 char $ac_func ();
36623 /* The GNU C library defines this for functions which it implements
36624 to always fail with ENOSYS. Some functions are actually named
36625 something starting with __ and the normal name is an alias. */
36626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36627 choke me
36628 #else
36629 char (*f) () = $ac_func;
36630 #endif
36631 #ifdef __cplusplus
36633 #endif
36636 main ()
36638 return f != $ac_func;
36640 return 0;
36642 _ACEOF
36643 rm -f conftest.$ac_objext conftest$ac_exeext
36644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36645 (eval $ac_link) 2>&5
36646 ac_status=$?
36647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36648 (exit $ac_status); } &&
36649 { ac_try='test -s conftest$ac_exeext'
36650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36651 (eval $ac_try) 2>&5
36652 ac_status=$?
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); }; }; then
36655 eval "$as_ac_var=yes"
36656 else
36657 echo "$as_me: failed program was:" >&5
36658 sed 's/^/| /' conftest.$ac_ext >&5
36660 eval "$as_ac_var=no"
36662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36666 if test `eval echo '${'$as_ac_var'}'` = yes; then
36667 cat >>confdefs.h <<_ACEOF
36668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36669 _ACEOF
36672 done
36679 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
36680 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
36681 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36682 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
36683 echo $ECHO_N "(cached) $ECHO_C" >&6
36684 else
36688 ac_ext=cc
36689 ac_cpp='$CXXCPP $CPPFLAGS'
36690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36694 cat >conftest.$ac_ext <<_ACEOF
36695 #line $LINENO "configure"
36696 /* confdefs.h. */
36697 _ACEOF
36698 cat confdefs.h >>conftest.$ac_ext
36699 cat >>conftest.$ac_ext <<_ACEOF
36700 /* end confdefs.h. */
36701 #include <math.h>
36702 #ifdef HAVE_IEEEFP_H
36703 #include <ieeefp.h>
36704 #endif
36707 main ()
36709 isinfl(0);
36711 return 0;
36713 _ACEOF
36714 rm -f conftest.$ac_objext
36715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36716 (eval $ac_compile) 2>&5
36717 ac_status=$?
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); } &&
36720 { ac_try='test -s conftest.$ac_objext'
36721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36722 (eval $ac_try) 2>&5
36723 ac_status=$?
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); }; }; then
36726 glibcxx_cv_func_isinfl_use=yes
36727 else
36728 echo "$as_me: failed program was:" >&5
36729 sed 's/^/| /' conftest.$ac_ext >&5
36731 glibcxx_cv_func_isinfl_use=no
36733 rm -f conftest.$ac_objext conftest.$ac_ext
36734 ac_ext=c
36735 ac_cpp='$CPP $CPPFLAGS'
36736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36744 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
36745 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
36747 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36749 for ac_func in isinfl
36751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36752 echo "$as_me:$LINENO: checking for $ac_func" >&5
36753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36754 if eval "test \"\${$as_ac_var+set}\" = set"; then
36755 echo $ECHO_N "(cached) $ECHO_C" >&6
36756 else
36757 if test x$gcc_no_link = xyes; then
36758 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36759 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36760 { (exit 1); exit 1; }; }
36762 cat >conftest.$ac_ext <<_ACEOF
36763 #line $LINENO "configure"
36764 /* confdefs.h. */
36765 _ACEOF
36766 cat confdefs.h >>conftest.$ac_ext
36767 cat >>conftest.$ac_ext <<_ACEOF
36768 /* end confdefs.h. */
36769 /* System header to define __stub macros and hopefully few prototypes,
36770 which can conflict with char $ac_func (); below.
36771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36772 <limits.h> exists even on freestanding compilers. */
36773 #ifdef __STDC__
36774 # include <limits.h>
36775 #else
36776 # include <assert.h>
36777 #endif
36778 /* Override any gcc2 internal prototype to avoid an error. */
36779 #ifdef __cplusplus
36780 extern "C"
36782 #endif
36783 /* We use char because int might match the return type of a gcc2
36784 builtin and then its argument prototype would still apply. */
36785 char $ac_func ();
36786 /* The GNU C library defines this for functions which it implements
36787 to always fail with ENOSYS. Some functions are actually named
36788 something starting with __ and the normal name is an alias. */
36789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36790 choke me
36791 #else
36792 char (*f) () = $ac_func;
36793 #endif
36794 #ifdef __cplusplus
36796 #endif
36799 main ()
36801 return f != $ac_func;
36803 return 0;
36805 _ACEOF
36806 rm -f conftest.$ac_objext conftest$ac_exeext
36807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36808 (eval $ac_link) 2>&5
36809 ac_status=$?
36810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811 (exit $ac_status); } &&
36812 { ac_try='test -s conftest$ac_exeext'
36813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36814 (eval $ac_try) 2>&5
36815 ac_status=$?
36816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36817 (exit $ac_status); }; }; then
36818 eval "$as_ac_var=yes"
36819 else
36820 echo "$as_me: failed program was:" >&5
36821 sed 's/^/| /' conftest.$ac_ext >&5
36823 eval "$as_ac_var=no"
36825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36829 if test `eval echo '${'$as_ac_var'}'` = yes; then
36830 cat >>confdefs.h <<_ACEOF
36831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36832 _ACEOF
36835 done
36837 else
36839 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
36840 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
36841 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
36842 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
36843 echo $ECHO_N "(cached) $ECHO_C" >&6
36844 else
36848 ac_ext=cc
36849 ac_cpp='$CXXCPP $CPPFLAGS'
36850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36854 cat >conftest.$ac_ext <<_ACEOF
36855 #line $LINENO "configure"
36856 /* confdefs.h. */
36857 _ACEOF
36858 cat confdefs.h >>conftest.$ac_ext
36859 cat >>conftest.$ac_ext <<_ACEOF
36860 /* end confdefs.h. */
36861 #include <math.h>
36862 #ifdef HAVE_IEEEFP_H
36863 #include <ieeefp.h>
36864 #endif
36867 main ()
36869 _isinfl(0);
36871 return 0;
36873 _ACEOF
36874 rm -f conftest.$ac_objext
36875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36876 (eval $ac_compile) 2>&5
36877 ac_status=$?
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); } &&
36880 { ac_try='test -s conftest.$ac_objext'
36881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 (eval $ac_try) 2>&5
36883 ac_status=$?
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); }; }; then
36886 glibcxx_cv_func__isinfl_use=yes
36887 else
36888 echo "$as_me: failed program was:" >&5
36889 sed 's/^/| /' conftest.$ac_ext >&5
36891 glibcxx_cv_func__isinfl_use=no
36893 rm -f conftest.$ac_objext conftest.$ac_ext
36894 ac_ext=c
36895 ac_cpp='$CPP $CPPFLAGS'
36896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36904 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
36905 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
36907 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
36909 for ac_func in _isinfl
36911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36912 echo "$as_me:$LINENO: checking for $ac_func" >&5
36913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36914 if eval "test \"\${$as_ac_var+set}\" = set"; then
36915 echo $ECHO_N "(cached) $ECHO_C" >&6
36916 else
36917 if test x$gcc_no_link = xyes; then
36918 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36919 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36920 { (exit 1); exit 1; }; }
36922 cat >conftest.$ac_ext <<_ACEOF
36923 #line $LINENO "configure"
36924 /* confdefs.h. */
36925 _ACEOF
36926 cat confdefs.h >>conftest.$ac_ext
36927 cat >>conftest.$ac_ext <<_ACEOF
36928 /* end confdefs.h. */
36929 /* System header to define __stub macros and hopefully few prototypes,
36930 which can conflict with char $ac_func (); below.
36931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36932 <limits.h> exists even on freestanding compilers. */
36933 #ifdef __STDC__
36934 # include <limits.h>
36935 #else
36936 # include <assert.h>
36937 #endif
36938 /* Override any gcc2 internal prototype to avoid an error. */
36939 #ifdef __cplusplus
36940 extern "C"
36942 #endif
36943 /* We use char because int might match the return type of a gcc2
36944 builtin and then its argument prototype would still apply. */
36945 char $ac_func ();
36946 /* The GNU C library defines this for functions which it implements
36947 to always fail with ENOSYS. Some functions are actually named
36948 something starting with __ and the normal name is an alias. */
36949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36950 choke me
36951 #else
36952 char (*f) () = $ac_func;
36953 #endif
36954 #ifdef __cplusplus
36956 #endif
36959 main ()
36961 return f != $ac_func;
36963 return 0;
36965 _ACEOF
36966 rm -f conftest.$ac_objext conftest$ac_exeext
36967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36968 (eval $ac_link) 2>&5
36969 ac_status=$?
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); } &&
36972 { ac_try='test -s conftest$ac_exeext'
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; }; then
36978 eval "$as_ac_var=yes"
36979 else
36980 echo "$as_me: failed program was:" >&5
36981 sed 's/^/| /' conftest.$ac_ext >&5
36983 eval "$as_ac_var=no"
36985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36989 if test `eval echo '${'$as_ac_var'}'` = yes; then
36990 cat >>confdefs.h <<_ACEOF
36991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36992 _ACEOF
36995 done
37002 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
37003 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
37004 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
37005 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
37006 echo $ECHO_N "(cached) $ECHO_C" >&6
37007 else
37011 ac_ext=cc
37012 ac_cpp='$CXXCPP $CPPFLAGS'
37013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37017 cat >conftest.$ac_ext <<_ACEOF
37018 #line $LINENO "configure"
37019 /* confdefs.h. */
37020 _ACEOF
37021 cat confdefs.h >>conftest.$ac_ext
37022 cat >>conftest.$ac_ext <<_ACEOF
37023 /* end confdefs.h. */
37024 #include <math.h>
37026 main ()
37028 copysignl(0, 0);
37030 return 0;
37032 _ACEOF
37033 rm -f conftest.$ac_objext
37034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37035 (eval $ac_compile) 2>&5
37036 ac_status=$?
37037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); } &&
37039 { ac_try='test -s conftest.$ac_objext'
37040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37041 (eval $ac_try) 2>&5
37042 ac_status=$?
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); }; }; then
37045 glibcxx_cv_func_copysignl_use=yes
37046 else
37047 echo "$as_me: failed program was:" >&5
37048 sed 's/^/| /' conftest.$ac_ext >&5
37050 glibcxx_cv_func_copysignl_use=no
37052 rm -f conftest.$ac_objext conftest.$ac_ext
37053 ac_ext=c
37054 ac_cpp='$CPP $CPPFLAGS'
37055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37063 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
37064 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
37066 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
37068 for ac_func in copysignl
37070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37071 echo "$as_me:$LINENO: checking for $ac_func" >&5
37072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37073 if eval "test \"\${$as_ac_var+set}\" = set"; then
37074 echo $ECHO_N "(cached) $ECHO_C" >&6
37075 else
37076 if test x$gcc_no_link = xyes; then
37077 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37078 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37079 { (exit 1); exit 1; }; }
37081 cat >conftest.$ac_ext <<_ACEOF
37082 #line $LINENO "configure"
37083 /* confdefs.h. */
37084 _ACEOF
37085 cat confdefs.h >>conftest.$ac_ext
37086 cat >>conftest.$ac_ext <<_ACEOF
37087 /* end confdefs.h. */
37088 /* System header to define __stub macros and hopefully few prototypes,
37089 which can conflict with char $ac_func (); below.
37090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37091 <limits.h> exists even on freestanding compilers. */
37092 #ifdef __STDC__
37093 # include <limits.h>
37094 #else
37095 # include <assert.h>
37096 #endif
37097 /* Override any gcc2 internal prototype to avoid an error. */
37098 #ifdef __cplusplus
37099 extern "C"
37101 #endif
37102 /* We use char because int might match the return type of a gcc2
37103 builtin and then its argument prototype would still apply. */
37104 char $ac_func ();
37105 /* The GNU C library defines this for functions which it implements
37106 to always fail with ENOSYS. Some functions are actually named
37107 something starting with __ and the normal name is an alias. */
37108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37109 choke me
37110 #else
37111 char (*f) () = $ac_func;
37112 #endif
37113 #ifdef __cplusplus
37115 #endif
37118 main ()
37120 return f != $ac_func;
37122 return 0;
37124 _ACEOF
37125 rm -f conftest.$ac_objext conftest$ac_exeext
37126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37127 (eval $ac_link) 2>&5
37128 ac_status=$?
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } &&
37131 { ac_try='test -s conftest$ac_exeext'
37132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37133 (eval $ac_try) 2>&5
37134 ac_status=$?
37135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136 (exit $ac_status); }; }; then
37137 eval "$as_ac_var=yes"
37138 else
37139 echo "$as_me: failed program was:" >&5
37140 sed 's/^/| /' conftest.$ac_ext >&5
37142 eval "$as_ac_var=no"
37144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37148 if test `eval echo '${'$as_ac_var'}'` = yes; then
37149 cat >>confdefs.h <<_ACEOF
37150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37151 _ACEOF
37154 done
37156 else
37158 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
37159 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
37160 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
37161 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
37162 echo $ECHO_N "(cached) $ECHO_C" >&6
37163 else
37167 ac_ext=cc
37168 ac_cpp='$CXXCPP $CPPFLAGS'
37169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37173 cat >conftest.$ac_ext <<_ACEOF
37174 #line $LINENO "configure"
37175 /* confdefs.h. */
37176 _ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h. */
37180 #include <math.h>
37182 main ()
37184 _copysignl(0, 0);
37186 return 0;
37188 _ACEOF
37189 rm -f conftest.$ac_objext
37190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37191 (eval $ac_compile) 2>&5
37192 ac_status=$?
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); } &&
37195 { ac_try='test -s conftest.$ac_objext'
37196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37197 (eval $ac_try) 2>&5
37198 ac_status=$?
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); }; }; then
37201 glibcxx_cv_func__copysignl_use=yes
37202 else
37203 echo "$as_me: failed program was:" >&5
37204 sed 's/^/| /' conftest.$ac_ext >&5
37206 glibcxx_cv_func__copysignl_use=no
37208 rm -f conftest.$ac_objext conftest.$ac_ext
37209 ac_ext=c
37210 ac_cpp='$CPP $CPPFLAGS'
37211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37219 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
37220 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
37222 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
37224 for ac_func in _copysignl
37226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37227 echo "$as_me:$LINENO: checking for $ac_func" >&5
37228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37229 if eval "test \"\${$as_ac_var+set}\" = set"; then
37230 echo $ECHO_N "(cached) $ECHO_C" >&6
37231 else
37232 if test x$gcc_no_link = xyes; then
37233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37235 { (exit 1); exit 1; }; }
37237 cat >conftest.$ac_ext <<_ACEOF
37238 #line $LINENO "configure"
37239 /* confdefs.h. */
37240 _ACEOF
37241 cat confdefs.h >>conftest.$ac_ext
37242 cat >>conftest.$ac_ext <<_ACEOF
37243 /* end confdefs.h. */
37244 /* System header to define __stub macros and hopefully few prototypes,
37245 which can conflict with char $ac_func (); below.
37246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37247 <limits.h> exists even on freestanding compilers. */
37248 #ifdef __STDC__
37249 # include <limits.h>
37250 #else
37251 # include <assert.h>
37252 #endif
37253 /* Override any gcc2 internal prototype to avoid an error. */
37254 #ifdef __cplusplus
37255 extern "C"
37257 #endif
37258 /* We use char because int might match the return type of a gcc2
37259 builtin and then its argument prototype would still apply. */
37260 char $ac_func ();
37261 /* The GNU C library defines this for functions which it implements
37262 to always fail with ENOSYS. Some functions are actually named
37263 something starting with __ and the normal name is an alias. */
37264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37265 choke me
37266 #else
37267 char (*f) () = $ac_func;
37268 #endif
37269 #ifdef __cplusplus
37271 #endif
37274 main ()
37276 return f != $ac_func;
37278 return 0;
37280 _ACEOF
37281 rm -f conftest.$ac_objext conftest$ac_exeext
37282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37283 (eval $ac_link) 2>&5
37284 ac_status=$?
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); } &&
37287 { ac_try='test -s conftest$ac_exeext'
37288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37289 (eval $ac_try) 2>&5
37290 ac_status=$?
37291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292 (exit $ac_status); }; }; then
37293 eval "$as_ac_var=yes"
37294 else
37295 echo "$as_me: failed program was:" >&5
37296 sed 's/^/| /' conftest.$ac_ext >&5
37298 eval "$as_ac_var=no"
37300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37304 if test `eval echo '${'$as_ac_var'}'` = yes; then
37305 cat >>confdefs.h <<_ACEOF
37306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37307 _ACEOF
37310 done
37317 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
37318 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
37319 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
37320 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
37321 echo $ECHO_N "(cached) $ECHO_C" >&6
37322 else
37326 ac_ext=cc
37327 ac_cpp='$CXXCPP $CPPFLAGS'
37328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37332 cat >conftest.$ac_ext <<_ACEOF
37333 #line $LINENO "configure"
37334 /* confdefs.h. */
37335 _ACEOF
37336 cat confdefs.h >>conftest.$ac_ext
37337 cat >>conftest.$ac_ext <<_ACEOF
37338 /* end confdefs.h. */
37339 #include <math.h>
37341 main ()
37343 atan2l(0, 0);
37345 return 0;
37347 _ACEOF
37348 rm -f conftest.$ac_objext
37349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37350 (eval $ac_compile) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); } &&
37354 { ac_try='test -s conftest.$ac_objext'
37355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37356 (eval $ac_try) 2>&5
37357 ac_status=$?
37358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359 (exit $ac_status); }; }; then
37360 glibcxx_cv_func_atan2l_use=yes
37361 else
37362 echo "$as_me: failed program was:" >&5
37363 sed 's/^/| /' conftest.$ac_ext >&5
37365 glibcxx_cv_func_atan2l_use=no
37367 rm -f conftest.$ac_objext conftest.$ac_ext
37368 ac_ext=c
37369 ac_cpp='$CPP $CPPFLAGS'
37370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37378 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
37379 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
37381 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37383 for ac_func in atan2l
37385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37386 echo "$as_me:$LINENO: checking for $ac_func" >&5
37387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37388 if eval "test \"\${$as_ac_var+set}\" = set"; then
37389 echo $ECHO_N "(cached) $ECHO_C" >&6
37390 else
37391 if test x$gcc_no_link = xyes; then
37392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37394 { (exit 1); exit 1; }; }
37396 cat >conftest.$ac_ext <<_ACEOF
37397 #line $LINENO "configure"
37398 /* confdefs.h. */
37399 _ACEOF
37400 cat confdefs.h >>conftest.$ac_ext
37401 cat >>conftest.$ac_ext <<_ACEOF
37402 /* end confdefs.h. */
37403 /* System header to define __stub macros and hopefully few prototypes,
37404 which can conflict with char $ac_func (); below.
37405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37406 <limits.h> exists even on freestanding compilers. */
37407 #ifdef __STDC__
37408 # include <limits.h>
37409 #else
37410 # include <assert.h>
37411 #endif
37412 /* Override any gcc2 internal prototype to avoid an error. */
37413 #ifdef __cplusplus
37414 extern "C"
37416 #endif
37417 /* We use char because int might match the return type of a gcc2
37418 builtin and then its argument prototype would still apply. */
37419 char $ac_func ();
37420 /* The GNU C library defines this for functions which it implements
37421 to always fail with ENOSYS. Some functions are actually named
37422 something starting with __ and the normal name is an alias. */
37423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37424 choke me
37425 #else
37426 char (*f) () = $ac_func;
37427 #endif
37428 #ifdef __cplusplus
37430 #endif
37433 main ()
37435 return f != $ac_func;
37437 return 0;
37439 _ACEOF
37440 rm -f conftest.$ac_objext conftest$ac_exeext
37441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37442 (eval $ac_link) 2>&5
37443 ac_status=$?
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); } &&
37446 { ac_try='test -s conftest$ac_exeext'
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37449 ac_status=$?
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; }; then
37452 eval "$as_ac_var=yes"
37453 else
37454 echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37457 eval "$as_ac_var=no"
37459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37463 if test `eval echo '${'$as_ac_var'}'` = yes; then
37464 cat >>confdefs.h <<_ACEOF
37465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37466 _ACEOF
37469 done
37471 else
37473 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
37474 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
37475 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
37476 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
37477 echo $ECHO_N "(cached) $ECHO_C" >&6
37478 else
37482 ac_ext=cc
37483 ac_cpp='$CXXCPP $CPPFLAGS'
37484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37488 cat >conftest.$ac_ext <<_ACEOF
37489 #line $LINENO "configure"
37490 /* confdefs.h. */
37491 _ACEOF
37492 cat confdefs.h >>conftest.$ac_ext
37493 cat >>conftest.$ac_ext <<_ACEOF
37494 /* end confdefs.h. */
37495 #include <math.h>
37497 main ()
37499 _atan2l(0, 0);
37501 return 0;
37503 _ACEOF
37504 rm -f conftest.$ac_objext
37505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37506 (eval $ac_compile) 2>&5
37507 ac_status=$?
37508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509 (exit $ac_status); } &&
37510 { ac_try='test -s conftest.$ac_objext'
37511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37512 (eval $ac_try) 2>&5
37513 ac_status=$?
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); }; }; then
37516 glibcxx_cv_func__atan2l_use=yes
37517 else
37518 echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37521 glibcxx_cv_func__atan2l_use=no
37523 rm -f conftest.$ac_objext conftest.$ac_ext
37524 ac_ext=c
37525 ac_cpp='$CPP $CPPFLAGS'
37526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37534 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
37535 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
37537 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
37539 for ac_func in _atan2l
37541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37542 echo "$as_me:$LINENO: checking for $ac_func" >&5
37543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37544 if eval "test \"\${$as_ac_var+set}\" = set"; then
37545 echo $ECHO_N "(cached) $ECHO_C" >&6
37546 else
37547 if test x$gcc_no_link = xyes; then
37548 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37549 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37550 { (exit 1); exit 1; }; }
37552 cat >conftest.$ac_ext <<_ACEOF
37553 #line $LINENO "configure"
37554 /* confdefs.h. */
37555 _ACEOF
37556 cat confdefs.h >>conftest.$ac_ext
37557 cat >>conftest.$ac_ext <<_ACEOF
37558 /* end confdefs.h. */
37559 /* System header to define __stub macros and hopefully few prototypes,
37560 which can conflict with char $ac_func (); below.
37561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37562 <limits.h> exists even on freestanding compilers. */
37563 #ifdef __STDC__
37564 # include <limits.h>
37565 #else
37566 # include <assert.h>
37567 #endif
37568 /* Override any gcc2 internal prototype to avoid an error. */
37569 #ifdef __cplusplus
37570 extern "C"
37572 #endif
37573 /* We use char because int might match the return type of a gcc2
37574 builtin and then its argument prototype would still apply. */
37575 char $ac_func ();
37576 /* The GNU C library defines this for functions which it implements
37577 to always fail with ENOSYS. Some functions are actually named
37578 something starting with __ and the normal name is an alias. */
37579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37580 choke me
37581 #else
37582 char (*f) () = $ac_func;
37583 #endif
37584 #ifdef __cplusplus
37586 #endif
37589 main ()
37591 return f != $ac_func;
37593 return 0;
37595 _ACEOF
37596 rm -f conftest.$ac_objext conftest$ac_exeext
37597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37598 (eval $ac_link) 2>&5
37599 ac_status=$?
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); } &&
37602 { ac_try='test -s conftest$ac_exeext'
37603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37604 (eval $ac_try) 2>&5
37605 ac_status=$?
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); }; }; then
37608 eval "$as_ac_var=yes"
37609 else
37610 echo "$as_me: failed program was:" >&5
37611 sed 's/^/| /' conftest.$ac_ext >&5
37613 eval "$as_ac_var=no"
37615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37619 if test `eval echo '${'$as_ac_var'}'` = yes; then
37620 cat >>confdefs.h <<_ACEOF
37621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37622 _ACEOF
37625 done
37632 echo "$as_me:$LINENO: checking for expl declaration" >&5
37633 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
37634 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37635 if test "${glibcxx_cv_func_expl_use+set}" = set; then
37636 echo $ECHO_N "(cached) $ECHO_C" >&6
37637 else
37641 ac_ext=cc
37642 ac_cpp='$CXXCPP $CPPFLAGS'
37643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37647 cat >conftest.$ac_ext <<_ACEOF
37648 #line $LINENO "configure"
37649 /* confdefs.h. */
37650 _ACEOF
37651 cat confdefs.h >>conftest.$ac_ext
37652 cat >>conftest.$ac_ext <<_ACEOF
37653 /* end confdefs.h. */
37654 #include <math.h>
37655 #ifdef HAVE_IEEEFP_H
37656 #include <ieeefp.h>
37657 #endif
37660 main ()
37662 expl(0);
37664 return 0;
37666 _ACEOF
37667 rm -f conftest.$ac_objext
37668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37669 (eval $ac_compile) 2>&5
37670 ac_status=$?
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); } &&
37673 { ac_try='test -s conftest.$ac_objext'
37674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37675 (eval $ac_try) 2>&5
37676 ac_status=$?
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); }; }; then
37679 glibcxx_cv_func_expl_use=yes
37680 else
37681 echo "$as_me: failed program was:" >&5
37682 sed 's/^/| /' conftest.$ac_ext >&5
37684 glibcxx_cv_func_expl_use=no
37686 rm -f conftest.$ac_objext conftest.$ac_ext
37687 ac_ext=c
37688 ac_cpp='$CPP $CPPFLAGS'
37689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37697 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
37698 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
37700 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37702 for ac_func in expl
37704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37705 echo "$as_me:$LINENO: checking for $ac_func" >&5
37706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37707 if eval "test \"\${$as_ac_var+set}\" = set"; then
37708 echo $ECHO_N "(cached) $ECHO_C" >&6
37709 else
37710 if test x$gcc_no_link = xyes; then
37711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37713 { (exit 1); exit 1; }; }
37715 cat >conftest.$ac_ext <<_ACEOF
37716 #line $LINENO "configure"
37717 /* confdefs.h. */
37718 _ACEOF
37719 cat confdefs.h >>conftest.$ac_ext
37720 cat >>conftest.$ac_ext <<_ACEOF
37721 /* end confdefs.h. */
37722 /* System header to define __stub macros and hopefully few prototypes,
37723 which can conflict with char $ac_func (); below.
37724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37725 <limits.h> exists even on freestanding compilers. */
37726 #ifdef __STDC__
37727 # include <limits.h>
37728 #else
37729 # include <assert.h>
37730 #endif
37731 /* Override any gcc2 internal prototype to avoid an error. */
37732 #ifdef __cplusplus
37733 extern "C"
37735 #endif
37736 /* We use char because int might match the return type of a gcc2
37737 builtin and then its argument prototype would still apply. */
37738 char $ac_func ();
37739 /* The GNU C library defines this for functions which it implements
37740 to always fail with ENOSYS. Some functions are actually named
37741 something starting with __ and the normal name is an alias. */
37742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37743 choke me
37744 #else
37745 char (*f) () = $ac_func;
37746 #endif
37747 #ifdef __cplusplus
37749 #endif
37752 main ()
37754 return f != $ac_func;
37756 return 0;
37758 _ACEOF
37759 rm -f conftest.$ac_objext conftest$ac_exeext
37760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37761 (eval $ac_link) 2>&5
37762 ac_status=$?
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); } &&
37765 { ac_try='test -s conftest$ac_exeext'
37766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767 (eval $ac_try) 2>&5
37768 ac_status=$?
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); }; }; then
37771 eval "$as_ac_var=yes"
37772 else
37773 echo "$as_me: failed program was:" >&5
37774 sed 's/^/| /' conftest.$ac_ext >&5
37776 eval "$as_ac_var=no"
37778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37782 if test `eval echo '${'$as_ac_var'}'` = yes; then
37783 cat >>confdefs.h <<_ACEOF
37784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37785 _ACEOF
37788 done
37790 else
37792 echo "$as_me:$LINENO: checking for _expl declaration" >&5
37793 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
37794 if test x${glibcxx_cv_func__expl_use+set} != xset; then
37795 if test "${glibcxx_cv_func__expl_use+set}" = set; then
37796 echo $ECHO_N "(cached) $ECHO_C" >&6
37797 else
37801 ac_ext=cc
37802 ac_cpp='$CXXCPP $CPPFLAGS'
37803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37807 cat >conftest.$ac_ext <<_ACEOF
37808 #line $LINENO "configure"
37809 /* confdefs.h. */
37810 _ACEOF
37811 cat confdefs.h >>conftest.$ac_ext
37812 cat >>conftest.$ac_ext <<_ACEOF
37813 /* end confdefs.h. */
37814 #include <math.h>
37815 #ifdef HAVE_IEEEFP_H
37816 #include <ieeefp.h>
37817 #endif
37820 main ()
37822 _expl(0);
37824 return 0;
37826 _ACEOF
37827 rm -f conftest.$ac_objext
37828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37829 (eval $ac_compile) 2>&5
37830 ac_status=$?
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); } &&
37833 { ac_try='test -s conftest.$ac_objext'
37834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37835 (eval $ac_try) 2>&5
37836 ac_status=$?
37837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 (exit $ac_status); }; }; then
37839 glibcxx_cv_func__expl_use=yes
37840 else
37841 echo "$as_me: failed program was:" >&5
37842 sed 's/^/| /' conftest.$ac_ext >&5
37844 glibcxx_cv_func__expl_use=no
37846 rm -f conftest.$ac_objext conftest.$ac_ext
37847 ac_ext=c
37848 ac_cpp='$CPP $CPPFLAGS'
37849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37857 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
37858 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
37860 if test x$glibcxx_cv_func__expl_use = x"yes"; then
37862 for ac_func in _expl
37864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37865 echo "$as_me:$LINENO: checking for $ac_func" >&5
37866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37867 if eval "test \"\${$as_ac_var+set}\" = set"; then
37868 echo $ECHO_N "(cached) $ECHO_C" >&6
37869 else
37870 if test x$gcc_no_link = xyes; then
37871 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37872 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37873 { (exit 1); exit 1; }; }
37875 cat >conftest.$ac_ext <<_ACEOF
37876 #line $LINENO "configure"
37877 /* confdefs.h. */
37878 _ACEOF
37879 cat confdefs.h >>conftest.$ac_ext
37880 cat >>conftest.$ac_ext <<_ACEOF
37881 /* end confdefs.h. */
37882 /* System header to define __stub macros and hopefully few prototypes,
37883 which can conflict with char $ac_func (); below.
37884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37885 <limits.h> exists even on freestanding compilers. */
37886 #ifdef __STDC__
37887 # include <limits.h>
37888 #else
37889 # include <assert.h>
37890 #endif
37891 /* Override any gcc2 internal prototype to avoid an error. */
37892 #ifdef __cplusplus
37893 extern "C"
37895 #endif
37896 /* We use char because int might match the return type of a gcc2
37897 builtin and then its argument prototype would still apply. */
37898 char $ac_func ();
37899 /* The GNU C library defines this for functions which it implements
37900 to always fail with ENOSYS. Some functions are actually named
37901 something starting with __ and the normal name is an alias. */
37902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37903 choke me
37904 #else
37905 char (*f) () = $ac_func;
37906 #endif
37907 #ifdef __cplusplus
37909 #endif
37912 main ()
37914 return f != $ac_func;
37916 return 0;
37918 _ACEOF
37919 rm -f conftest.$ac_objext conftest$ac_exeext
37920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37921 (eval $ac_link) 2>&5
37922 ac_status=$?
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); } &&
37925 { ac_try='test -s conftest$ac_exeext'
37926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37927 (eval $ac_try) 2>&5
37928 ac_status=$?
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); }; }; then
37931 eval "$as_ac_var=yes"
37932 else
37933 echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37936 eval "$as_ac_var=no"
37938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37942 if test `eval echo '${'$as_ac_var'}'` = yes; then
37943 cat >>confdefs.h <<_ACEOF
37944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37945 _ACEOF
37948 done
37955 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
37956 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
37957 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37958 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
37959 echo $ECHO_N "(cached) $ECHO_C" >&6
37960 else
37964 ac_ext=cc
37965 ac_cpp='$CXXCPP $CPPFLAGS'
37966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37970 cat >conftest.$ac_ext <<_ACEOF
37971 #line $LINENO "configure"
37972 /* confdefs.h. */
37973 _ACEOF
37974 cat confdefs.h >>conftest.$ac_ext
37975 cat >>conftest.$ac_ext <<_ACEOF
37976 /* end confdefs.h. */
37977 #include <math.h>
37978 #ifdef HAVE_IEEEFP_H
37979 #include <ieeefp.h>
37980 #endif
37983 main ()
37985 fabsl(0);
37987 return 0;
37989 _ACEOF
37990 rm -f conftest.$ac_objext
37991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37992 (eval $ac_compile) 2>&5
37993 ac_status=$?
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); } &&
37996 { ac_try='test -s conftest.$ac_objext'
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; }; then
38002 glibcxx_cv_func_fabsl_use=yes
38003 else
38004 echo "$as_me: failed program was:" >&5
38005 sed 's/^/| /' conftest.$ac_ext >&5
38007 glibcxx_cv_func_fabsl_use=no
38009 rm -f conftest.$ac_objext conftest.$ac_ext
38010 ac_ext=c
38011 ac_cpp='$CPP $CPPFLAGS'
38012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38020 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
38021 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
38023 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
38025 for ac_func in fabsl
38027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38028 echo "$as_me:$LINENO: checking for $ac_func" >&5
38029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38030 if eval "test \"\${$as_ac_var+set}\" = set"; then
38031 echo $ECHO_N "(cached) $ECHO_C" >&6
38032 else
38033 if test x$gcc_no_link = xyes; then
38034 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38036 { (exit 1); exit 1; }; }
38038 cat >conftest.$ac_ext <<_ACEOF
38039 #line $LINENO "configure"
38040 /* confdefs.h. */
38041 _ACEOF
38042 cat confdefs.h >>conftest.$ac_ext
38043 cat >>conftest.$ac_ext <<_ACEOF
38044 /* end confdefs.h. */
38045 /* System header to define __stub macros and hopefully few prototypes,
38046 which can conflict with char $ac_func (); below.
38047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38048 <limits.h> exists even on freestanding compilers. */
38049 #ifdef __STDC__
38050 # include <limits.h>
38051 #else
38052 # include <assert.h>
38053 #endif
38054 /* Override any gcc2 internal prototype to avoid an error. */
38055 #ifdef __cplusplus
38056 extern "C"
38058 #endif
38059 /* We use char because int might match the return type of a gcc2
38060 builtin and then its argument prototype would still apply. */
38061 char $ac_func ();
38062 /* The GNU C library defines this for functions which it implements
38063 to always fail with ENOSYS. Some functions are actually named
38064 something starting with __ and the normal name is an alias. */
38065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38066 choke me
38067 #else
38068 char (*f) () = $ac_func;
38069 #endif
38070 #ifdef __cplusplus
38072 #endif
38075 main ()
38077 return f != $ac_func;
38079 return 0;
38081 _ACEOF
38082 rm -f conftest.$ac_objext conftest$ac_exeext
38083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38084 (eval $ac_link) 2>&5
38085 ac_status=$?
38086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38087 (exit $ac_status); } &&
38088 { ac_try='test -s conftest$ac_exeext'
38089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38090 (eval $ac_try) 2>&5
38091 ac_status=$?
38092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38093 (exit $ac_status); }; }; then
38094 eval "$as_ac_var=yes"
38095 else
38096 echo "$as_me: failed program was:" >&5
38097 sed 's/^/| /' conftest.$ac_ext >&5
38099 eval "$as_ac_var=no"
38101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38105 if test `eval echo '${'$as_ac_var'}'` = yes; then
38106 cat >>confdefs.h <<_ACEOF
38107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38108 _ACEOF
38111 done
38113 else
38115 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
38116 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
38117 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
38118 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38120 else
38124 ac_ext=cc
38125 ac_cpp='$CXXCPP $CPPFLAGS'
38126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38130 cat >conftest.$ac_ext <<_ACEOF
38131 #line $LINENO "configure"
38132 /* confdefs.h. */
38133 _ACEOF
38134 cat confdefs.h >>conftest.$ac_ext
38135 cat >>conftest.$ac_ext <<_ACEOF
38136 /* end confdefs.h. */
38137 #include <math.h>
38138 #ifdef HAVE_IEEEFP_H
38139 #include <ieeefp.h>
38140 #endif
38143 main ()
38145 _fabsl(0);
38147 return 0;
38149 _ACEOF
38150 rm -f conftest.$ac_objext
38151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38152 (eval $ac_compile) 2>&5
38153 ac_status=$?
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); } &&
38156 { ac_try='test -s conftest.$ac_objext'
38157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38158 (eval $ac_try) 2>&5
38159 ac_status=$?
38160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 (exit $ac_status); }; }; then
38162 glibcxx_cv_func__fabsl_use=yes
38163 else
38164 echo "$as_me: failed program was:" >&5
38165 sed 's/^/| /' conftest.$ac_ext >&5
38167 glibcxx_cv_func__fabsl_use=no
38169 rm -f conftest.$ac_objext conftest.$ac_ext
38170 ac_ext=c
38171 ac_cpp='$CPP $CPPFLAGS'
38172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38180 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
38181 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
38183 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
38185 for ac_func in _fabsl
38187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38188 echo "$as_me:$LINENO: checking for $ac_func" >&5
38189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38190 if eval "test \"\${$as_ac_var+set}\" = set"; then
38191 echo $ECHO_N "(cached) $ECHO_C" >&6
38192 else
38193 if test x$gcc_no_link = xyes; then
38194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38196 { (exit 1); exit 1; }; }
38198 cat >conftest.$ac_ext <<_ACEOF
38199 #line $LINENO "configure"
38200 /* confdefs.h. */
38201 _ACEOF
38202 cat confdefs.h >>conftest.$ac_ext
38203 cat >>conftest.$ac_ext <<_ACEOF
38204 /* end confdefs.h. */
38205 /* System header to define __stub macros and hopefully few prototypes,
38206 which can conflict with char $ac_func (); below.
38207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38208 <limits.h> exists even on freestanding compilers. */
38209 #ifdef __STDC__
38210 # include <limits.h>
38211 #else
38212 # include <assert.h>
38213 #endif
38214 /* Override any gcc2 internal prototype to avoid an error. */
38215 #ifdef __cplusplus
38216 extern "C"
38218 #endif
38219 /* We use char because int might match the return type of a gcc2
38220 builtin and then its argument prototype would still apply. */
38221 char $ac_func ();
38222 /* The GNU C library defines this for functions which it implements
38223 to always fail with ENOSYS. Some functions are actually named
38224 something starting with __ and the normal name is an alias. */
38225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38226 choke me
38227 #else
38228 char (*f) () = $ac_func;
38229 #endif
38230 #ifdef __cplusplus
38232 #endif
38235 main ()
38237 return f != $ac_func;
38239 return 0;
38241 _ACEOF
38242 rm -f conftest.$ac_objext conftest$ac_exeext
38243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38244 (eval $ac_link) 2>&5
38245 ac_status=$?
38246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247 (exit $ac_status); } &&
38248 { ac_try='test -s conftest$ac_exeext'
38249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250 (eval $ac_try) 2>&5
38251 ac_status=$?
38252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253 (exit $ac_status); }; }; then
38254 eval "$as_ac_var=yes"
38255 else
38256 echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38259 eval "$as_ac_var=no"
38261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38265 if test `eval echo '${'$as_ac_var'}'` = yes; then
38266 cat >>confdefs.h <<_ACEOF
38267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38268 _ACEOF
38271 done
38278 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
38279 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
38280 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
38281 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
38282 echo $ECHO_N "(cached) $ECHO_C" >&6
38283 else
38287 ac_ext=cc
38288 ac_cpp='$CXXCPP $CPPFLAGS'
38289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38293 cat >conftest.$ac_ext <<_ACEOF
38294 #line $LINENO "configure"
38295 /* confdefs.h. */
38296 _ACEOF
38297 cat confdefs.h >>conftest.$ac_ext
38298 cat >>conftest.$ac_ext <<_ACEOF
38299 /* end confdefs.h. */
38300 #include <math.h>
38302 main ()
38304 fmodl(0, 0);
38306 return 0;
38308 _ACEOF
38309 rm -f conftest.$ac_objext
38310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38311 (eval $ac_compile) 2>&5
38312 ac_status=$?
38313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314 (exit $ac_status); } &&
38315 { ac_try='test -s conftest.$ac_objext'
38316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317 (eval $ac_try) 2>&5
38318 ac_status=$?
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); }; }; then
38321 glibcxx_cv_func_fmodl_use=yes
38322 else
38323 echo "$as_me: failed program was:" >&5
38324 sed 's/^/| /' conftest.$ac_ext >&5
38326 glibcxx_cv_func_fmodl_use=no
38328 rm -f conftest.$ac_objext conftest.$ac_ext
38329 ac_ext=c
38330 ac_cpp='$CPP $CPPFLAGS'
38331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38339 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
38340 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
38342 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
38344 for ac_func in fmodl
38346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38347 echo "$as_me:$LINENO: checking for $ac_func" >&5
38348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38349 if eval "test \"\${$as_ac_var+set}\" = set"; then
38350 echo $ECHO_N "(cached) $ECHO_C" >&6
38351 else
38352 if test x$gcc_no_link = xyes; then
38353 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38354 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38355 { (exit 1); exit 1; }; }
38357 cat >conftest.$ac_ext <<_ACEOF
38358 #line $LINENO "configure"
38359 /* confdefs.h. */
38360 _ACEOF
38361 cat confdefs.h >>conftest.$ac_ext
38362 cat >>conftest.$ac_ext <<_ACEOF
38363 /* end confdefs.h. */
38364 /* System header to define __stub macros and hopefully few prototypes,
38365 which can conflict with char $ac_func (); below.
38366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38367 <limits.h> exists even on freestanding compilers. */
38368 #ifdef __STDC__
38369 # include <limits.h>
38370 #else
38371 # include <assert.h>
38372 #endif
38373 /* Override any gcc2 internal prototype to avoid an error. */
38374 #ifdef __cplusplus
38375 extern "C"
38377 #endif
38378 /* We use char because int might match the return type of a gcc2
38379 builtin and then its argument prototype would still apply. */
38380 char $ac_func ();
38381 /* The GNU C library defines this for functions which it implements
38382 to always fail with ENOSYS. Some functions are actually named
38383 something starting with __ and the normal name is an alias. */
38384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38385 choke me
38386 #else
38387 char (*f) () = $ac_func;
38388 #endif
38389 #ifdef __cplusplus
38391 #endif
38394 main ()
38396 return f != $ac_func;
38398 return 0;
38400 _ACEOF
38401 rm -f conftest.$ac_objext conftest$ac_exeext
38402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38403 (eval $ac_link) 2>&5
38404 ac_status=$?
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); } &&
38407 { ac_try='test -s conftest$ac_exeext'
38408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38409 (eval $ac_try) 2>&5
38410 ac_status=$?
38411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 (exit $ac_status); }; }; then
38413 eval "$as_ac_var=yes"
38414 else
38415 echo "$as_me: failed program was:" >&5
38416 sed 's/^/| /' conftest.$ac_ext >&5
38418 eval "$as_ac_var=no"
38420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38424 if test `eval echo '${'$as_ac_var'}'` = yes; then
38425 cat >>confdefs.h <<_ACEOF
38426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38427 _ACEOF
38430 done
38432 else
38434 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
38435 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
38436 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
38437 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
38438 echo $ECHO_N "(cached) $ECHO_C" >&6
38439 else
38443 ac_ext=cc
38444 ac_cpp='$CXXCPP $CPPFLAGS'
38445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38449 cat >conftest.$ac_ext <<_ACEOF
38450 #line $LINENO "configure"
38451 /* confdefs.h. */
38452 _ACEOF
38453 cat confdefs.h >>conftest.$ac_ext
38454 cat >>conftest.$ac_ext <<_ACEOF
38455 /* end confdefs.h. */
38456 #include <math.h>
38458 main ()
38460 _fmodl(0, 0);
38462 return 0;
38464 _ACEOF
38465 rm -f conftest.$ac_objext
38466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38467 (eval $ac_compile) 2>&5
38468 ac_status=$?
38469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470 (exit $ac_status); } &&
38471 { ac_try='test -s conftest.$ac_objext'
38472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473 (eval $ac_try) 2>&5
38474 ac_status=$?
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); }; }; then
38477 glibcxx_cv_func__fmodl_use=yes
38478 else
38479 echo "$as_me: failed program was:" >&5
38480 sed 's/^/| /' conftest.$ac_ext >&5
38482 glibcxx_cv_func__fmodl_use=no
38484 rm -f conftest.$ac_objext conftest.$ac_ext
38485 ac_ext=c
38486 ac_cpp='$CPP $CPPFLAGS'
38487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38495 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
38496 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
38498 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
38500 for ac_func in _fmodl
38502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38503 echo "$as_me:$LINENO: checking for $ac_func" >&5
38504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38505 if eval "test \"\${$as_ac_var+set}\" = set"; then
38506 echo $ECHO_N "(cached) $ECHO_C" >&6
38507 else
38508 if test x$gcc_no_link = xyes; then
38509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38511 { (exit 1); exit 1; }; }
38513 cat >conftest.$ac_ext <<_ACEOF
38514 #line $LINENO "configure"
38515 /* confdefs.h. */
38516 _ACEOF
38517 cat confdefs.h >>conftest.$ac_ext
38518 cat >>conftest.$ac_ext <<_ACEOF
38519 /* end confdefs.h. */
38520 /* System header to define __stub macros and hopefully few prototypes,
38521 which can conflict with char $ac_func (); below.
38522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38523 <limits.h> exists even on freestanding compilers. */
38524 #ifdef __STDC__
38525 # include <limits.h>
38526 #else
38527 # include <assert.h>
38528 #endif
38529 /* Override any gcc2 internal prototype to avoid an error. */
38530 #ifdef __cplusplus
38531 extern "C"
38533 #endif
38534 /* We use char because int might match the return type of a gcc2
38535 builtin and then its argument prototype would still apply. */
38536 char $ac_func ();
38537 /* The GNU C library defines this for functions which it implements
38538 to always fail with ENOSYS. Some functions are actually named
38539 something starting with __ and the normal name is an alias. */
38540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38541 choke me
38542 #else
38543 char (*f) () = $ac_func;
38544 #endif
38545 #ifdef __cplusplus
38547 #endif
38550 main ()
38552 return f != $ac_func;
38554 return 0;
38556 _ACEOF
38557 rm -f conftest.$ac_objext conftest$ac_exeext
38558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38559 (eval $ac_link) 2>&5
38560 ac_status=$?
38561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38562 (exit $ac_status); } &&
38563 { ac_try='test -s conftest$ac_exeext'
38564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38565 (eval $ac_try) 2>&5
38566 ac_status=$?
38567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38568 (exit $ac_status); }; }; then
38569 eval "$as_ac_var=yes"
38570 else
38571 echo "$as_me: failed program was:" >&5
38572 sed 's/^/| /' conftest.$ac_ext >&5
38574 eval "$as_ac_var=no"
38576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38580 if test `eval echo '${'$as_ac_var'}'` = yes; then
38581 cat >>confdefs.h <<_ACEOF
38582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38583 _ACEOF
38586 done
38593 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
38594 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
38595 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
38596 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
38597 echo $ECHO_N "(cached) $ECHO_C" >&6
38598 else
38602 ac_ext=cc
38603 ac_cpp='$CXXCPP $CPPFLAGS'
38604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38608 cat >conftest.$ac_ext <<_ACEOF
38609 #line $LINENO "configure"
38610 /* confdefs.h. */
38611 _ACEOF
38612 cat confdefs.h >>conftest.$ac_ext
38613 cat >>conftest.$ac_ext <<_ACEOF
38614 /* end confdefs.h. */
38615 #include <math.h>
38617 main ()
38619 frexpl(0, 0);
38621 return 0;
38623 _ACEOF
38624 rm -f conftest.$ac_objext
38625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38626 (eval $ac_compile) 2>&5
38627 ac_status=$?
38628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); } &&
38630 { ac_try='test -s conftest.$ac_objext'
38631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38632 (eval $ac_try) 2>&5
38633 ac_status=$?
38634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38635 (exit $ac_status); }; }; then
38636 glibcxx_cv_func_frexpl_use=yes
38637 else
38638 echo "$as_me: failed program was:" >&5
38639 sed 's/^/| /' conftest.$ac_ext >&5
38641 glibcxx_cv_func_frexpl_use=no
38643 rm -f conftest.$ac_objext conftest.$ac_ext
38644 ac_ext=c
38645 ac_cpp='$CPP $CPPFLAGS'
38646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38654 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
38655 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
38657 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
38659 for ac_func in frexpl
38661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38662 echo "$as_me:$LINENO: checking for $ac_func" >&5
38663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38664 if eval "test \"\${$as_ac_var+set}\" = set"; then
38665 echo $ECHO_N "(cached) $ECHO_C" >&6
38666 else
38667 if test x$gcc_no_link = xyes; then
38668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38670 { (exit 1); exit 1; }; }
38672 cat >conftest.$ac_ext <<_ACEOF
38673 #line $LINENO "configure"
38674 /* confdefs.h. */
38675 _ACEOF
38676 cat confdefs.h >>conftest.$ac_ext
38677 cat >>conftest.$ac_ext <<_ACEOF
38678 /* end confdefs.h. */
38679 /* System header to define __stub macros and hopefully few prototypes,
38680 which can conflict with char $ac_func (); below.
38681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38682 <limits.h> exists even on freestanding compilers. */
38683 #ifdef __STDC__
38684 # include <limits.h>
38685 #else
38686 # include <assert.h>
38687 #endif
38688 /* Override any gcc2 internal prototype to avoid an error. */
38689 #ifdef __cplusplus
38690 extern "C"
38692 #endif
38693 /* We use char because int might match the return type of a gcc2
38694 builtin and then its argument prototype would still apply. */
38695 char $ac_func ();
38696 /* The GNU C library defines this for functions which it implements
38697 to always fail with ENOSYS. Some functions are actually named
38698 something starting with __ and the normal name is an alias. */
38699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38700 choke me
38701 #else
38702 char (*f) () = $ac_func;
38703 #endif
38704 #ifdef __cplusplus
38706 #endif
38709 main ()
38711 return f != $ac_func;
38713 return 0;
38715 _ACEOF
38716 rm -f conftest.$ac_objext conftest$ac_exeext
38717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38718 (eval $ac_link) 2>&5
38719 ac_status=$?
38720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721 (exit $ac_status); } &&
38722 { ac_try='test -s conftest$ac_exeext'
38723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38724 (eval $ac_try) 2>&5
38725 ac_status=$?
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); }; }; then
38728 eval "$as_ac_var=yes"
38729 else
38730 echo "$as_me: failed program was:" >&5
38731 sed 's/^/| /' conftest.$ac_ext >&5
38733 eval "$as_ac_var=no"
38735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38739 if test `eval echo '${'$as_ac_var'}'` = yes; then
38740 cat >>confdefs.h <<_ACEOF
38741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38742 _ACEOF
38745 done
38747 else
38749 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
38750 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
38751 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
38752 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
38753 echo $ECHO_N "(cached) $ECHO_C" >&6
38754 else
38758 ac_ext=cc
38759 ac_cpp='$CXXCPP $CPPFLAGS'
38760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38764 cat >conftest.$ac_ext <<_ACEOF
38765 #line $LINENO "configure"
38766 /* confdefs.h. */
38767 _ACEOF
38768 cat confdefs.h >>conftest.$ac_ext
38769 cat >>conftest.$ac_ext <<_ACEOF
38770 /* end confdefs.h. */
38771 #include <math.h>
38773 main ()
38775 _frexpl(0, 0);
38777 return 0;
38779 _ACEOF
38780 rm -f conftest.$ac_objext
38781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38782 (eval $ac_compile) 2>&5
38783 ac_status=$?
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); } &&
38786 { ac_try='test -s conftest.$ac_objext'
38787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38788 (eval $ac_try) 2>&5
38789 ac_status=$?
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); }; }; then
38792 glibcxx_cv_func__frexpl_use=yes
38793 else
38794 echo "$as_me: failed program was:" >&5
38795 sed 's/^/| /' conftest.$ac_ext >&5
38797 glibcxx_cv_func__frexpl_use=no
38799 rm -f conftest.$ac_objext conftest.$ac_ext
38800 ac_ext=c
38801 ac_cpp='$CPP $CPPFLAGS'
38802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38810 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
38811 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
38813 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
38815 for ac_func in _frexpl
38817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38818 echo "$as_me:$LINENO: checking for $ac_func" >&5
38819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38820 if eval "test \"\${$as_ac_var+set}\" = set"; then
38821 echo $ECHO_N "(cached) $ECHO_C" >&6
38822 else
38823 if test x$gcc_no_link = xyes; then
38824 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38825 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38826 { (exit 1); exit 1; }; }
38828 cat >conftest.$ac_ext <<_ACEOF
38829 #line $LINENO "configure"
38830 /* confdefs.h. */
38831 _ACEOF
38832 cat confdefs.h >>conftest.$ac_ext
38833 cat >>conftest.$ac_ext <<_ACEOF
38834 /* end confdefs.h. */
38835 /* System header to define __stub macros and hopefully few prototypes,
38836 which can conflict with char $ac_func (); below.
38837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38838 <limits.h> exists even on freestanding compilers. */
38839 #ifdef __STDC__
38840 # include <limits.h>
38841 #else
38842 # include <assert.h>
38843 #endif
38844 /* Override any gcc2 internal prototype to avoid an error. */
38845 #ifdef __cplusplus
38846 extern "C"
38848 #endif
38849 /* We use char because int might match the return type of a gcc2
38850 builtin and then its argument prototype would still apply. */
38851 char $ac_func ();
38852 /* The GNU C library defines this for functions which it implements
38853 to always fail with ENOSYS. Some functions are actually named
38854 something starting with __ and the normal name is an alias. */
38855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38856 choke me
38857 #else
38858 char (*f) () = $ac_func;
38859 #endif
38860 #ifdef __cplusplus
38862 #endif
38865 main ()
38867 return f != $ac_func;
38869 return 0;
38871 _ACEOF
38872 rm -f conftest.$ac_objext conftest$ac_exeext
38873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38874 (eval $ac_link) 2>&5
38875 ac_status=$?
38876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38877 (exit $ac_status); } &&
38878 { ac_try='test -s conftest$ac_exeext'
38879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880 (eval $ac_try) 2>&5
38881 ac_status=$?
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); }; }; then
38884 eval "$as_ac_var=yes"
38885 else
38886 echo "$as_me: failed program was:" >&5
38887 sed 's/^/| /' conftest.$ac_ext >&5
38889 eval "$as_ac_var=no"
38891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38895 if test `eval echo '${'$as_ac_var'}'` = yes; then
38896 cat >>confdefs.h <<_ACEOF
38897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38898 _ACEOF
38901 done
38908 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
38909 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
38910 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
38911 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
38912 echo $ECHO_N "(cached) $ECHO_C" >&6
38913 else
38917 ac_ext=cc
38918 ac_cpp='$CXXCPP $CPPFLAGS'
38919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38923 cat >conftest.$ac_ext <<_ACEOF
38924 #line $LINENO "configure"
38925 /* confdefs.h. */
38926 _ACEOF
38927 cat confdefs.h >>conftest.$ac_ext
38928 cat >>conftest.$ac_ext <<_ACEOF
38929 /* end confdefs.h. */
38930 #include <math.h>
38932 main ()
38934 hypotl(0, 0);
38936 return 0;
38938 _ACEOF
38939 rm -f conftest.$ac_objext
38940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38941 (eval $ac_compile) 2>&5
38942 ac_status=$?
38943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944 (exit $ac_status); } &&
38945 { ac_try='test -s conftest.$ac_objext'
38946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38947 (eval $ac_try) 2>&5
38948 ac_status=$?
38949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950 (exit $ac_status); }; }; then
38951 glibcxx_cv_func_hypotl_use=yes
38952 else
38953 echo "$as_me: failed program was:" >&5
38954 sed 's/^/| /' conftest.$ac_ext >&5
38956 glibcxx_cv_func_hypotl_use=no
38958 rm -f conftest.$ac_objext conftest.$ac_ext
38959 ac_ext=c
38960 ac_cpp='$CPP $CPPFLAGS'
38961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38969 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
38970 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
38972 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
38974 for ac_func in hypotl
38976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38977 echo "$as_me:$LINENO: checking for $ac_func" >&5
38978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38979 if eval "test \"\${$as_ac_var+set}\" = set"; then
38980 echo $ECHO_N "(cached) $ECHO_C" >&6
38981 else
38982 if test x$gcc_no_link = xyes; then
38983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38984 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38985 { (exit 1); exit 1; }; }
38987 cat >conftest.$ac_ext <<_ACEOF
38988 #line $LINENO "configure"
38989 /* confdefs.h. */
38990 _ACEOF
38991 cat confdefs.h >>conftest.$ac_ext
38992 cat >>conftest.$ac_ext <<_ACEOF
38993 /* end confdefs.h. */
38994 /* System header to define __stub macros and hopefully few prototypes,
38995 which can conflict with char $ac_func (); below.
38996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38997 <limits.h> exists even on freestanding compilers. */
38998 #ifdef __STDC__
38999 # include <limits.h>
39000 #else
39001 # include <assert.h>
39002 #endif
39003 /* Override any gcc2 internal prototype to avoid an error. */
39004 #ifdef __cplusplus
39005 extern "C"
39007 #endif
39008 /* We use char because int might match the return type of a gcc2
39009 builtin and then its argument prototype would still apply. */
39010 char $ac_func ();
39011 /* The GNU C library defines this for functions which it implements
39012 to always fail with ENOSYS. Some functions are actually named
39013 something starting with __ and the normal name is an alias. */
39014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39015 choke me
39016 #else
39017 char (*f) () = $ac_func;
39018 #endif
39019 #ifdef __cplusplus
39021 #endif
39024 main ()
39026 return f != $ac_func;
39028 return 0;
39030 _ACEOF
39031 rm -f conftest.$ac_objext conftest$ac_exeext
39032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39033 (eval $ac_link) 2>&5
39034 ac_status=$?
39035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39036 (exit $ac_status); } &&
39037 { ac_try='test -s conftest$ac_exeext'
39038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39039 (eval $ac_try) 2>&5
39040 ac_status=$?
39041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042 (exit $ac_status); }; }; then
39043 eval "$as_ac_var=yes"
39044 else
39045 echo "$as_me: failed program was:" >&5
39046 sed 's/^/| /' conftest.$ac_ext >&5
39048 eval "$as_ac_var=no"
39050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39054 if test `eval echo '${'$as_ac_var'}'` = yes; then
39055 cat >>confdefs.h <<_ACEOF
39056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39057 _ACEOF
39060 done
39062 else
39064 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
39065 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
39066 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
39067 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
39068 echo $ECHO_N "(cached) $ECHO_C" >&6
39069 else
39073 ac_ext=cc
39074 ac_cpp='$CXXCPP $CPPFLAGS'
39075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39079 cat >conftest.$ac_ext <<_ACEOF
39080 #line $LINENO "configure"
39081 /* confdefs.h. */
39082 _ACEOF
39083 cat confdefs.h >>conftest.$ac_ext
39084 cat >>conftest.$ac_ext <<_ACEOF
39085 /* end confdefs.h. */
39086 #include <math.h>
39088 main ()
39090 _hypotl(0, 0);
39092 return 0;
39094 _ACEOF
39095 rm -f conftest.$ac_objext
39096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39097 (eval $ac_compile) 2>&5
39098 ac_status=$?
39099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39100 (exit $ac_status); } &&
39101 { ac_try='test -s conftest.$ac_objext'
39102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39103 (eval $ac_try) 2>&5
39104 ac_status=$?
39105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39106 (exit $ac_status); }; }; then
39107 glibcxx_cv_func__hypotl_use=yes
39108 else
39109 echo "$as_me: failed program was:" >&5
39110 sed 's/^/| /' conftest.$ac_ext >&5
39112 glibcxx_cv_func__hypotl_use=no
39114 rm -f conftest.$ac_objext conftest.$ac_ext
39115 ac_ext=c
39116 ac_cpp='$CPP $CPPFLAGS'
39117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39125 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
39126 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
39128 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
39130 for ac_func in _hypotl
39132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39133 echo "$as_me:$LINENO: checking for $ac_func" >&5
39134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39135 if eval "test \"\${$as_ac_var+set}\" = set"; then
39136 echo $ECHO_N "(cached) $ECHO_C" >&6
39137 else
39138 if test x$gcc_no_link = xyes; then
39139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39141 { (exit 1); exit 1; }; }
39143 cat >conftest.$ac_ext <<_ACEOF
39144 #line $LINENO "configure"
39145 /* confdefs.h. */
39146 _ACEOF
39147 cat confdefs.h >>conftest.$ac_ext
39148 cat >>conftest.$ac_ext <<_ACEOF
39149 /* end confdefs.h. */
39150 /* System header to define __stub macros and hopefully few prototypes,
39151 which can conflict with char $ac_func (); below.
39152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39153 <limits.h> exists even on freestanding compilers. */
39154 #ifdef __STDC__
39155 # include <limits.h>
39156 #else
39157 # include <assert.h>
39158 #endif
39159 /* Override any gcc2 internal prototype to avoid an error. */
39160 #ifdef __cplusplus
39161 extern "C"
39163 #endif
39164 /* We use char because int might match the return type of a gcc2
39165 builtin and then its argument prototype would still apply. */
39166 char $ac_func ();
39167 /* The GNU C library defines this for functions which it implements
39168 to always fail with ENOSYS. Some functions are actually named
39169 something starting with __ and the normal name is an alias. */
39170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39171 choke me
39172 #else
39173 char (*f) () = $ac_func;
39174 #endif
39175 #ifdef __cplusplus
39177 #endif
39180 main ()
39182 return f != $ac_func;
39184 return 0;
39186 _ACEOF
39187 rm -f conftest.$ac_objext conftest$ac_exeext
39188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39189 (eval $ac_link) 2>&5
39190 ac_status=$?
39191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192 (exit $ac_status); } &&
39193 { ac_try='test -s conftest$ac_exeext'
39194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39195 (eval $ac_try) 2>&5
39196 ac_status=$?
39197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198 (exit $ac_status); }; }; then
39199 eval "$as_ac_var=yes"
39200 else
39201 echo "$as_me: failed program was:" >&5
39202 sed 's/^/| /' conftest.$ac_ext >&5
39204 eval "$as_ac_var=no"
39206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39210 if test `eval echo '${'$as_ac_var'}'` = yes; then
39211 cat >>confdefs.h <<_ACEOF
39212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39213 _ACEOF
39216 done
39223 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
39224 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
39225 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
39226 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39228 else
39232 ac_ext=cc
39233 ac_cpp='$CXXCPP $CPPFLAGS'
39234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39238 cat >conftest.$ac_ext <<_ACEOF
39239 #line $LINENO "configure"
39240 /* confdefs.h. */
39241 _ACEOF
39242 cat confdefs.h >>conftest.$ac_ext
39243 cat >>conftest.$ac_ext <<_ACEOF
39244 /* end confdefs.h. */
39245 #include <math.h>
39247 main ()
39249 ldexpl(0, 0);
39251 return 0;
39253 _ACEOF
39254 rm -f conftest.$ac_objext
39255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39256 (eval $ac_compile) 2>&5
39257 ac_status=$?
39258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39259 (exit $ac_status); } &&
39260 { ac_try='test -s conftest.$ac_objext'
39261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39262 (eval $ac_try) 2>&5
39263 ac_status=$?
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); }; }; then
39266 glibcxx_cv_func_ldexpl_use=yes
39267 else
39268 echo "$as_me: failed program was:" >&5
39269 sed 's/^/| /' conftest.$ac_ext >&5
39271 glibcxx_cv_func_ldexpl_use=no
39273 rm -f conftest.$ac_objext conftest.$ac_ext
39274 ac_ext=c
39275 ac_cpp='$CPP $CPPFLAGS'
39276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39284 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
39285 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
39287 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
39289 for ac_func in ldexpl
39291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39292 echo "$as_me:$LINENO: checking for $ac_func" >&5
39293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39294 if eval "test \"\${$as_ac_var+set}\" = set"; then
39295 echo $ECHO_N "(cached) $ECHO_C" >&6
39296 else
39297 if test x$gcc_no_link = xyes; then
39298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39300 { (exit 1); exit 1; }; }
39302 cat >conftest.$ac_ext <<_ACEOF
39303 #line $LINENO "configure"
39304 /* confdefs.h. */
39305 _ACEOF
39306 cat confdefs.h >>conftest.$ac_ext
39307 cat >>conftest.$ac_ext <<_ACEOF
39308 /* end confdefs.h. */
39309 /* System header to define __stub macros and hopefully few prototypes,
39310 which can conflict with char $ac_func (); below.
39311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39312 <limits.h> exists even on freestanding compilers. */
39313 #ifdef __STDC__
39314 # include <limits.h>
39315 #else
39316 # include <assert.h>
39317 #endif
39318 /* Override any gcc2 internal prototype to avoid an error. */
39319 #ifdef __cplusplus
39320 extern "C"
39322 #endif
39323 /* We use char because int might match the return type of a gcc2
39324 builtin and then its argument prototype would still apply. */
39325 char $ac_func ();
39326 /* The GNU C library defines this for functions which it implements
39327 to always fail with ENOSYS. Some functions are actually named
39328 something starting with __ and the normal name is an alias. */
39329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39330 choke me
39331 #else
39332 char (*f) () = $ac_func;
39333 #endif
39334 #ifdef __cplusplus
39336 #endif
39339 main ()
39341 return f != $ac_func;
39343 return 0;
39345 _ACEOF
39346 rm -f conftest.$ac_objext conftest$ac_exeext
39347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39348 (eval $ac_link) 2>&5
39349 ac_status=$?
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); } &&
39352 { ac_try='test -s conftest$ac_exeext'
39353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39354 (eval $ac_try) 2>&5
39355 ac_status=$?
39356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357 (exit $ac_status); }; }; then
39358 eval "$as_ac_var=yes"
39359 else
39360 echo "$as_me: failed program was:" >&5
39361 sed 's/^/| /' conftest.$ac_ext >&5
39363 eval "$as_ac_var=no"
39365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39369 if test `eval echo '${'$as_ac_var'}'` = yes; then
39370 cat >>confdefs.h <<_ACEOF
39371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39372 _ACEOF
39375 done
39377 else
39379 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
39380 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
39381 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
39382 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
39383 echo $ECHO_N "(cached) $ECHO_C" >&6
39384 else
39388 ac_ext=cc
39389 ac_cpp='$CXXCPP $CPPFLAGS'
39390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39394 cat >conftest.$ac_ext <<_ACEOF
39395 #line $LINENO "configure"
39396 /* confdefs.h. */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h. */
39401 #include <math.h>
39403 main ()
39405 _ldexpl(0, 0);
39407 return 0;
39409 _ACEOF
39410 rm -f conftest.$ac_objext
39411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39412 (eval $ac_compile) 2>&5
39413 ac_status=$?
39414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415 (exit $ac_status); } &&
39416 { ac_try='test -s conftest.$ac_objext'
39417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39418 (eval $ac_try) 2>&5
39419 ac_status=$?
39420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39421 (exit $ac_status); }; }; then
39422 glibcxx_cv_func__ldexpl_use=yes
39423 else
39424 echo "$as_me: failed program was:" >&5
39425 sed 's/^/| /' conftest.$ac_ext >&5
39427 glibcxx_cv_func__ldexpl_use=no
39429 rm -f conftest.$ac_objext conftest.$ac_ext
39430 ac_ext=c
39431 ac_cpp='$CPP $CPPFLAGS'
39432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39440 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
39441 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
39443 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
39445 for ac_func in _ldexpl
39447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39448 echo "$as_me:$LINENO: checking for $ac_func" >&5
39449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39450 if eval "test \"\${$as_ac_var+set}\" = set"; then
39451 echo $ECHO_N "(cached) $ECHO_C" >&6
39452 else
39453 if test x$gcc_no_link = xyes; then
39454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39456 { (exit 1); exit 1; }; }
39458 cat >conftest.$ac_ext <<_ACEOF
39459 #line $LINENO "configure"
39460 /* confdefs.h. */
39461 _ACEOF
39462 cat confdefs.h >>conftest.$ac_ext
39463 cat >>conftest.$ac_ext <<_ACEOF
39464 /* end confdefs.h. */
39465 /* System header to define __stub macros and hopefully few prototypes,
39466 which can conflict with char $ac_func (); below.
39467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39468 <limits.h> exists even on freestanding compilers. */
39469 #ifdef __STDC__
39470 # include <limits.h>
39471 #else
39472 # include <assert.h>
39473 #endif
39474 /* Override any gcc2 internal prototype to avoid an error. */
39475 #ifdef __cplusplus
39476 extern "C"
39478 #endif
39479 /* We use char because int might match the return type of a gcc2
39480 builtin and then its argument prototype would still apply. */
39481 char $ac_func ();
39482 /* The GNU C library defines this for functions which it implements
39483 to always fail with ENOSYS. Some functions are actually named
39484 something starting with __ and the normal name is an alias. */
39485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39486 choke me
39487 #else
39488 char (*f) () = $ac_func;
39489 #endif
39490 #ifdef __cplusplus
39492 #endif
39495 main ()
39497 return f != $ac_func;
39499 return 0;
39501 _ACEOF
39502 rm -f conftest.$ac_objext conftest$ac_exeext
39503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39504 (eval $ac_link) 2>&5
39505 ac_status=$?
39506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39507 (exit $ac_status); } &&
39508 { ac_try='test -s conftest$ac_exeext'
39509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39510 (eval $ac_try) 2>&5
39511 ac_status=$?
39512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513 (exit $ac_status); }; }; then
39514 eval "$as_ac_var=yes"
39515 else
39516 echo "$as_me: failed program was:" >&5
39517 sed 's/^/| /' conftest.$ac_ext >&5
39519 eval "$as_ac_var=no"
39521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39525 if test `eval echo '${'$as_ac_var'}'` = yes; then
39526 cat >>confdefs.h <<_ACEOF
39527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39528 _ACEOF
39531 done
39538 echo "$as_me:$LINENO: checking for logl declaration" >&5
39539 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
39540 if test x${glibcxx_cv_func_logl_use+set} != xset; then
39541 if test "${glibcxx_cv_func_logl_use+set}" = set; then
39542 echo $ECHO_N "(cached) $ECHO_C" >&6
39543 else
39547 ac_ext=cc
39548 ac_cpp='$CXXCPP $CPPFLAGS'
39549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39553 cat >conftest.$ac_ext <<_ACEOF
39554 #line $LINENO "configure"
39555 /* confdefs.h. */
39556 _ACEOF
39557 cat confdefs.h >>conftest.$ac_ext
39558 cat >>conftest.$ac_ext <<_ACEOF
39559 /* end confdefs.h. */
39560 #include <math.h>
39561 #ifdef HAVE_IEEEFP_H
39562 #include <ieeefp.h>
39563 #endif
39566 main ()
39568 logl(0);
39570 return 0;
39572 _ACEOF
39573 rm -f conftest.$ac_objext
39574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39575 (eval $ac_compile) 2>&5
39576 ac_status=$?
39577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39578 (exit $ac_status); } &&
39579 { ac_try='test -s conftest.$ac_objext'
39580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39581 (eval $ac_try) 2>&5
39582 ac_status=$?
39583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584 (exit $ac_status); }; }; then
39585 glibcxx_cv_func_logl_use=yes
39586 else
39587 echo "$as_me: failed program was:" >&5
39588 sed 's/^/| /' conftest.$ac_ext >&5
39590 glibcxx_cv_func_logl_use=no
39592 rm -f conftest.$ac_objext conftest.$ac_ext
39593 ac_ext=c
39594 ac_cpp='$CPP $CPPFLAGS'
39595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39603 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
39604 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
39606 if test x$glibcxx_cv_func_logl_use = x"yes"; then
39608 for ac_func in logl
39610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39611 echo "$as_me:$LINENO: checking for $ac_func" >&5
39612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39613 if eval "test \"\${$as_ac_var+set}\" = set"; then
39614 echo $ECHO_N "(cached) $ECHO_C" >&6
39615 else
39616 if test x$gcc_no_link = xyes; then
39617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39619 { (exit 1); exit 1; }; }
39621 cat >conftest.$ac_ext <<_ACEOF
39622 #line $LINENO "configure"
39623 /* confdefs.h. */
39624 _ACEOF
39625 cat confdefs.h >>conftest.$ac_ext
39626 cat >>conftest.$ac_ext <<_ACEOF
39627 /* end confdefs.h. */
39628 /* System header to define __stub macros and hopefully few prototypes,
39629 which can conflict with char $ac_func (); below.
39630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39631 <limits.h> exists even on freestanding compilers. */
39632 #ifdef __STDC__
39633 # include <limits.h>
39634 #else
39635 # include <assert.h>
39636 #endif
39637 /* Override any gcc2 internal prototype to avoid an error. */
39638 #ifdef __cplusplus
39639 extern "C"
39641 #endif
39642 /* We use char because int might match the return type of a gcc2
39643 builtin and then its argument prototype would still apply. */
39644 char $ac_func ();
39645 /* The GNU C library defines this for functions which it implements
39646 to always fail with ENOSYS. Some functions are actually named
39647 something starting with __ and the normal name is an alias. */
39648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39649 choke me
39650 #else
39651 char (*f) () = $ac_func;
39652 #endif
39653 #ifdef __cplusplus
39655 #endif
39658 main ()
39660 return f != $ac_func;
39662 return 0;
39664 _ACEOF
39665 rm -f conftest.$ac_objext conftest$ac_exeext
39666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39667 (eval $ac_link) 2>&5
39668 ac_status=$?
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); } &&
39671 { ac_try='test -s conftest$ac_exeext'
39672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39673 (eval $ac_try) 2>&5
39674 ac_status=$?
39675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676 (exit $ac_status); }; }; then
39677 eval "$as_ac_var=yes"
39678 else
39679 echo "$as_me: failed program was:" >&5
39680 sed 's/^/| /' conftest.$ac_ext >&5
39682 eval "$as_ac_var=no"
39684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39688 if test `eval echo '${'$as_ac_var'}'` = yes; then
39689 cat >>confdefs.h <<_ACEOF
39690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39691 _ACEOF
39694 done
39696 else
39698 echo "$as_me:$LINENO: checking for _logl declaration" >&5
39699 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
39700 if test x${glibcxx_cv_func__logl_use+set} != xset; then
39701 if test "${glibcxx_cv_func__logl_use+set}" = set; then
39702 echo $ECHO_N "(cached) $ECHO_C" >&6
39703 else
39707 ac_ext=cc
39708 ac_cpp='$CXXCPP $CPPFLAGS'
39709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39713 cat >conftest.$ac_ext <<_ACEOF
39714 #line $LINENO "configure"
39715 /* confdefs.h. */
39716 _ACEOF
39717 cat confdefs.h >>conftest.$ac_ext
39718 cat >>conftest.$ac_ext <<_ACEOF
39719 /* end confdefs.h. */
39720 #include <math.h>
39721 #ifdef HAVE_IEEEFP_H
39722 #include <ieeefp.h>
39723 #endif
39726 main ()
39728 _logl(0);
39730 return 0;
39732 _ACEOF
39733 rm -f conftest.$ac_objext
39734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39735 (eval $ac_compile) 2>&5
39736 ac_status=$?
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); } &&
39739 { ac_try='test -s conftest.$ac_objext'
39740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741 (eval $ac_try) 2>&5
39742 ac_status=$?
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); }; }; then
39745 glibcxx_cv_func__logl_use=yes
39746 else
39747 echo "$as_me: failed program was:" >&5
39748 sed 's/^/| /' conftest.$ac_ext >&5
39750 glibcxx_cv_func__logl_use=no
39752 rm -f conftest.$ac_objext conftest.$ac_ext
39753 ac_ext=c
39754 ac_cpp='$CPP $CPPFLAGS'
39755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39763 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
39764 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
39766 if test x$glibcxx_cv_func__logl_use = x"yes"; then
39768 for ac_func in _logl
39770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39771 echo "$as_me:$LINENO: checking for $ac_func" >&5
39772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39773 if eval "test \"\${$as_ac_var+set}\" = set"; then
39774 echo $ECHO_N "(cached) $ECHO_C" >&6
39775 else
39776 if test x$gcc_no_link = xyes; then
39777 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39778 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39779 { (exit 1); exit 1; }; }
39781 cat >conftest.$ac_ext <<_ACEOF
39782 #line $LINENO "configure"
39783 /* confdefs.h. */
39784 _ACEOF
39785 cat confdefs.h >>conftest.$ac_ext
39786 cat >>conftest.$ac_ext <<_ACEOF
39787 /* end confdefs.h. */
39788 /* System header to define __stub macros and hopefully few prototypes,
39789 which can conflict with char $ac_func (); below.
39790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39791 <limits.h> exists even on freestanding compilers. */
39792 #ifdef __STDC__
39793 # include <limits.h>
39794 #else
39795 # include <assert.h>
39796 #endif
39797 /* Override any gcc2 internal prototype to avoid an error. */
39798 #ifdef __cplusplus
39799 extern "C"
39801 #endif
39802 /* We use char because int might match the return type of a gcc2
39803 builtin and then its argument prototype would still apply. */
39804 char $ac_func ();
39805 /* The GNU C library defines this for functions which it implements
39806 to always fail with ENOSYS. Some functions are actually named
39807 something starting with __ and the normal name is an alias. */
39808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39809 choke me
39810 #else
39811 char (*f) () = $ac_func;
39812 #endif
39813 #ifdef __cplusplus
39815 #endif
39818 main ()
39820 return f != $ac_func;
39822 return 0;
39824 _ACEOF
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39827 (eval $ac_link) 2>&5
39828 ac_status=$?
39829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830 (exit $ac_status); } &&
39831 { ac_try='test -s conftest$ac_exeext'
39832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39833 (eval $ac_try) 2>&5
39834 ac_status=$?
39835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836 (exit $ac_status); }; }; then
39837 eval "$as_ac_var=yes"
39838 else
39839 echo "$as_me: failed program was:" >&5
39840 sed 's/^/| /' conftest.$ac_ext >&5
39842 eval "$as_ac_var=no"
39844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39848 if test `eval echo '${'$as_ac_var'}'` = yes; then
39849 cat >>confdefs.h <<_ACEOF
39850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39851 _ACEOF
39854 done
39861 echo "$as_me:$LINENO: checking for log10l declaration" >&5
39862 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
39863 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
39864 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
39865 echo $ECHO_N "(cached) $ECHO_C" >&6
39866 else
39870 ac_ext=cc
39871 ac_cpp='$CXXCPP $CPPFLAGS'
39872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39876 cat >conftest.$ac_ext <<_ACEOF
39877 #line $LINENO "configure"
39878 /* confdefs.h. */
39879 _ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h. */
39883 #include <math.h>
39884 #ifdef HAVE_IEEEFP_H
39885 #include <ieeefp.h>
39886 #endif
39889 main ()
39891 log10l(0);
39893 return 0;
39895 _ACEOF
39896 rm -f conftest.$ac_objext
39897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39898 (eval $ac_compile) 2>&5
39899 ac_status=$?
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); } &&
39902 { ac_try='test -s conftest.$ac_objext'
39903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39904 (eval $ac_try) 2>&5
39905 ac_status=$?
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); }; }; then
39908 glibcxx_cv_func_log10l_use=yes
39909 else
39910 echo "$as_me: failed program was:" >&5
39911 sed 's/^/| /' conftest.$ac_ext >&5
39913 glibcxx_cv_func_log10l_use=no
39915 rm -f conftest.$ac_objext conftest.$ac_ext
39916 ac_ext=c
39917 ac_cpp='$CPP $CPPFLAGS'
39918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39926 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
39927 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
39929 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
39931 for ac_func in log10l
39933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39934 echo "$as_me:$LINENO: checking for $ac_func" >&5
39935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39936 if eval "test \"\${$as_ac_var+set}\" = set"; then
39937 echo $ECHO_N "(cached) $ECHO_C" >&6
39938 else
39939 if test x$gcc_no_link = xyes; then
39940 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39942 { (exit 1); exit 1; }; }
39944 cat >conftest.$ac_ext <<_ACEOF
39945 #line $LINENO "configure"
39946 /* confdefs.h. */
39947 _ACEOF
39948 cat confdefs.h >>conftest.$ac_ext
39949 cat >>conftest.$ac_ext <<_ACEOF
39950 /* end confdefs.h. */
39951 /* System header to define __stub macros and hopefully few prototypes,
39952 which can conflict with char $ac_func (); below.
39953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39954 <limits.h> exists even on freestanding compilers. */
39955 #ifdef __STDC__
39956 # include <limits.h>
39957 #else
39958 # include <assert.h>
39959 #endif
39960 /* Override any gcc2 internal prototype to avoid an error. */
39961 #ifdef __cplusplus
39962 extern "C"
39964 #endif
39965 /* We use char because int might match the return type of a gcc2
39966 builtin and then its argument prototype would still apply. */
39967 char $ac_func ();
39968 /* The GNU C library defines this for functions which it implements
39969 to always fail with ENOSYS. Some functions are actually named
39970 something starting with __ and the normal name is an alias. */
39971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39972 choke me
39973 #else
39974 char (*f) () = $ac_func;
39975 #endif
39976 #ifdef __cplusplus
39978 #endif
39981 main ()
39983 return f != $ac_func;
39985 return 0;
39987 _ACEOF
39988 rm -f conftest.$ac_objext conftest$ac_exeext
39989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39990 (eval $ac_link) 2>&5
39991 ac_status=$?
39992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993 (exit $ac_status); } &&
39994 { ac_try='test -s conftest$ac_exeext'
39995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39996 (eval $ac_try) 2>&5
39997 ac_status=$?
39998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); }; }; then
40000 eval "$as_ac_var=yes"
40001 else
40002 echo "$as_me: failed program was:" >&5
40003 sed 's/^/| /' conftest.$ac_ext >&5
40005 eval "$as_ac_var=no"
40007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40011 if test `eval echo '${'$as_ac_var'}'` = yes; then
40012 cat >>confdefs.h <<_ACEOF
40013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40014 _ACEOF
40017 done
40019 else
40021 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
40022 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
40023 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
40024 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
40025 echo $ECHO_N "(cached) $ECHO_C" >&6
40026 else
40030 ac_ext=cc
40031 ac_cpp='$CXXCPP $CPPFLAGS'
40032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40036 cat >conftest.$ac_ext <<_ACEOF
40037 #line $LINENO "configure"
40038 /* confdefs.h. */
40039 _ACEOF
40040 cat confdefs.h >>conftest.$ac_ext
40041 cat >>conftest.$ac_ext <<_ACEOF
40042 /* end confdefs.h. */
40043 #include <math.h>
40044 #ifdef HAVE_IEEEFP_H
40045 #include <ieeefp.h>
40046 #endif
40049 main ()
40051 _log10l(0);
40053 return 0;
40055 _ACEOF
40056 rm -f conftest.$ac_objext
40057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40058 (eval $ac_compile) 2>&5
40059 ac_status=$?
40060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061 (exit $ac_status); } &&
40062 { ac_try='test -s conftest.$ac_objext'
40063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40064 (eval $ac_try) 2>&5
40065 ac_status=$?
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); }; }; then
40068 glibcxx_cv_func__log10l_use=yes
40069 else
40070 echo "$as_me: failed program was:" >&5
40071 sed 's/^/| /' conftest.$ac_ext >&5
40073 glibcxx_cv_func__log10l_use=no
40075 rm -f conftest.$ac_objext conftest.$ac_ext
40076 ac_ext=c
40077 ac_cpp='$CPP $CPPFLAGS'
40078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40086 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
40087 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
40089 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
40091 for ac_func in _log10l
40093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40094 echo "$as_me:$LINENO: checking for $ac_func" >&5
40095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40096 if eval "test \"\${$as_ac_var+set}\" = set"; then
40097 echo $ECHO_N "(cached) $ECHO_C" >&6
40098 else
40099 if test x$gcc_no_link = xyes; then
40100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40102 { (exit 1); exit 1; }; }
40104 cat >conftest.$ac_ext <<_ACEOF
40105 #line $LINENO "configure"
40106 /* confdefs.h. */
40107 _ACEOF
40108 cat confdefs.h >>conftest.$ac_ext
40109 cat >>conftest.$ac_ext <<_ACEOF
40110 /* end confdefs.h. */
40111 /* System header to define __stub macros and hopefully few prototypes,
40112 which can conflict with char $ac_func (); below.
40113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40114 <limits.h> exists even on freestanding compilers. */
40115 #ifdef __STDC__
40116 # include <limits.h>
40117 #else
40118 # include <assert.h>
40119 #endif
40120 /* Override any gcc2 internal prototype to avoid an error. */
40121 #ifdef __cplusplus
40122 extern "C"
40124 #endif
40125 /* We use char because int might match the return type of a gcc2
40126 builtin and then its argument prototype would still apply. */
40127 char $ac_func ();
40128 /* The GNU C library defines this for functions which it implements
40129 to always fail with ENOSYS. Some functions are actually named
40130 something starting with __ and the normal name is an alias. */
40131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40132 choke me
40133 #else
40134 char (*f) () = $ac_func;
40135 #endif
40136 #ifdef __cplusplus
40138 #endif
40141 main ()
40143 return f != $ac_func;
40145 return 0;
40147 _ACEOF
40148 rm -f conftest.$ac_objext conftest$ac_exeext
40149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40150 (eval $ac_link) 2>&5
40151 ac_status=$?
40152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153 (exit $ac_status); } &&
40154 { ac_try='test -s conftest$ac_exeext'
40155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40156 (eval $ac_try) 2>&5
40157 ac_status=$?
40158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); }; }; then
40160 eval "$as_ac_var=yes"
40161 else
40162 echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40165 eval "$as_ac_var=no"
40167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40171 if test `eval echo '${'$as_ac_var'}'` = yes; then
40172 cat >>confdefs.h <<_ACEOF
40173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40174 _ACEOF
40177 done
40184 echo "$as_me:$LINENO: checking for modfl declaration" >&5
40185 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
40186 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
40187 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
40188 echo $ECHO_N "(cached) $ECHO_C" >&6
40189 else
40193 ac_ext=cc
40194 ac_cpp='$CXXCPP $CPPFLAGS'
40195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40199 cat >conftest.$ac_ext <<_ACEOF
40200 #line $LINENO "configure"
40201 /* confdefs.h. */
40202 _ACEOF
40203 cat confdefs.h >>conftest.$ac_ext
40204 cat >>conftest.$ac_ext <<_ACEOF
40205 /* end confdefs.h. */
40206 #include <math.h>
40208 main ()
40210 modfl(0, 0);
40212 return 0;
40214 _ACEOF
40215 rm -f conftest.$ac_objext
40216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40217 (eval $ac_compile) 2>&5
40218 ac_status=$?
40219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220 (exit $ac_status); } &&
40221 { ac_try='test -s conftest.$ac_objext'
40222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40223 (eval $ac_try) 2>&5
40224 ac_status=$?
40225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226 (exit $ac_status); }; }; then
40227 glibcxx_cv_func_modfl_use=yes
40228 else
40229 echo "$as_me: failed program was:" >&5
40230 sed 's/^/| /' conftest.$ac_ext >&5
40232 glibcxx_cv_func_modfl_use=no
40234 rm -f conftest.$ac_objext conftest.$ac_ext
40235 ac_ext=c
40236 ac_cpp='$CPP $CPPFLAGS'
40237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40245 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
40246 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
40248 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
40250 for ac_func in modfl
40252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40253 echo "$as_me:$LINENO: checking for $ac_func" >&5
40254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40255 if eval "test \"\${$as_ac_var+set}\" = set"; then
40256 echo $ECHO_N "(cached) $ECHO_C" >&6
40257 else
40258 if test x$gcc_no_link = xyes; then
40259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40261 { (exit 1); exit 1; }; }
40263 cat >conftest.$ac_ext <<_ACEOF
40264 #line $LINENO "configure"
40265 /* confdefs.h. */
40266 _ACEOF
40267 cat confdefs.h >>conftest.$ac_ext
40268 cat >>conftest.$ac_ext <<_ACEOF
40269 /* end confdefs.h. */
40270 /* System header to define __stub macros and hopefully few prototypes,
40271 which can conflict with char $ac_func (); below.
40272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40273 <limits.h> exists even on freestanding compilers. */
40274 #ifdef __STDC__
40275 # include <limits.h>
40276 #else
40277 # include <assert.h>
40278 #endif
40279 /* Override any gcc2 internal prototype to avoid an error. */
40280 #ifdef __cplusplus
40281 extern "C"
40283 #endif
40284 /* We use char because int might match the return type of a gcc2
40285 builtin and then its argument prototype would still apply. */
40286 char $ac_func ();
40287 /* The GNU C library defines this for functions which it implements
40288 to always fail with ENOSYS. Some functions are actually named
40289 something starting with __ and the normal name is an alias. */
40290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40291 choke me
40292 #else
40293 char (*f) () = $ac_func;
40294 #endif
40295 #ifdef __cplusplus
40297 #endif
40300 main ()
40302 return f != $ac_func;
40304 return 0;
40306 _ACEOF
40307 rm -f conftest.$ac_objext conftest$ac_exeext
40308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40309 (eval $ac_link) 2>&5
40310 ac_status=$?
40311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312 (exit $ac_status); } &&
40313 { ac_try='test -s conftest$ac_exeext'
40314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40315 (eval $ac_try) 2>&5
40316 ac_status=$?
40317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40318 (exit $ac_status); }; }; then
40319 eval "$as_ac_var=yes"
40320 else
40321 echo "$as_me: failed program was:" >&5
40322 sed 's/^/| /' conftest.$ac_ext >&5
40324 eval "$as_ac_var=no"
40326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40330 if test `eval echo '${'$as_ac_var'}'` = yes; then
40331 cat >>confdefs.h <<_ACEOF
40332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40333 _ACEOF
40336 done
40338 else
40340 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
40341 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
40342 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
40343 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
40344 echo $ECHO_N "(cached) $ECHO_C" >&6
40345 else
40349 ac_ext=cc
40350 ac_cpp='$CXXCPP $CPPFLAGS'
40351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40355 cat >conftest.$ac_ext <<_ACEOF
40356 #line $LINENO "configure"
40357 /* confdefs.h. */
40358 _ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h. */
40362 #include <math.h>
40364 main ()
40366 _modfl(0, 0);
40368 return 0;
40370 _ACEOF
40371 rm -f conftest.$ac_objext
40372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40373 (eval $ac_compile) 2>&5
40374 ac_status=$?
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); } &&
40377 { ac_try='test -s conftest.$ac_objext'
40378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40379 (eval $ac_try) 2>&5
40380 ac_status=$?
40381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40382 (exit $ac_status); }; }; then
40383 glibcxx_cv_func__modfl_use=yes
40384 else
40385 echo "$as_me: failed program was:" >&5
40386 sed 's/^/| /' conftest.$ac_ext >&5
40388 glibcxx_cv_func__modfl_use=no
40390 rm -f conftest.$ac_objext conftest.$ac_ext
40391 ac_ext=c
40392 ac_cpp='$CPP $CPPFLAGS'
40393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40401 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
40402 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
40404 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
40406 for ac_func in _modfl
40408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40409 echo "$as_me:$LINENO: checking for $ac_func" >&5
40410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40411 if eval "test \"\${$as_ac_var+set}\" = set"; then
40412 echo $ECHO_N "(cached) $ECHO_C" >&6
40413 else
40414 if test x$gcc_no_link = xyes; then
40415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40417 { (exit 1); exit 1; }; }
40419 cat >conftest.$ac_ext <<_ACEOF
40420 #line $LINENO "configure"
40421 /* confdefs.h. */
40422 _ACEOF
40423 cat confdefs.h >>conftest.$ac_ext
40424 cat >>conftest.$ac_ext <<_ACEOF
40425 /* end confdefs.h. */
40426 /* System header to define __stub macros and hopefully few prototypes,
40427 which can conflict with char $ac_func (); below.
40428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40429 <limits.h> exists even on freestanding compilers. */
40430 #ifdef __STDC__
40431 # include <limits.h>
40432 #else
40433 # include <assert.h>
40434 #endif
40435 /* Override any gcc2 internal prototype to avoid an error. */
40436 #ifdef __cplusplus
40437 extern "C"
40439 #endif
40440 /* We use char because int might match the return type of a gcc2
40441 builtin and then its argument prototype would still apply. */
40442 char $ac_func ();
40443 /* The GNU C library defines this for functions which it implements
40444 to always fail with ENOSYS. Some functions are actually named
40445 something starting with __ and the normal name is an alias. */
40446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40447 choke me
40448 #else
40449 char (*f) () = $ac_func;
40450 #endif
40451 #ifdef __cplusplus
40453 #endif
40456 main ()
40458 return f != $ac_func;
40460 return 0;
40462 _ACEOF
40463 rm -f conftest.$ac_objext conftest$ac_exeext
40464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40465 (eval $ac_link) 2>&5
40466 ac_status=$?
40467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468 (exit $ac_status); } &&
40469 { ac_try='test -s conftest$ac_exeext'
40470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40471 (eval $ac_try) 2>&5
40472 ac_status=$?
40473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40474 (exit $ac_status); }; }; then
40475 eval "$as_ac_var=yes"
40476 else
40477 echo "$as_me: failed program was:" >&5
40478 sed 's/^/| /' conftest.$ac_ext >&5
40480 eval "$as_ac_var=no"
40482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40486 if test `eval echo '${'$as_ac_var'}'` = yes; then
40487 cat >>confdefs.h <<_ACEOF
40488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40489 _ACEOF
40492 done
40499 echo "$as_me:$LINENO: checking for powl declaration" >&5
40500 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
40501 if test x${glibcxx_cv_func_powl_use+set} != xset; then
40502 if test "${glibcxx_cv_func_powl_use+set}" = set; then
40503 echo $ECHO_N "(cached) $ECHO_C" >&6
40504 else
40508 ac_ext=cc
40509 ac_cpp='$CXXCPP $CPPFLAGS'
40510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40514 cat >conftest.$ac_ext <<_ACEOF
40515 #line $LINENO "configure"
40516 /* confdefs.h. */
40517 _ACEOF
40518 cat confdefs.h >>conftest.$ac_ext
40519 cat >>conftest.$ac_ext <<_ACEOF
40520 /* end confdefs.h. */
40521 #include <math.h>
40523 main ()
40525 powl(0, 0);
40527 return 0;
40529 _ACEOF
40530 rm -f conftest.$ac_objext
40531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40532 (eval $ac_compile) 2>&5
40533 ac_status=$?
40534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535 (exit $ac_status); } &&
40536 { ac_try='test -s conftest.$ac_objext'
40537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40538 (eval $ac_try) 2>&5
40539 ac_status=$?
40540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40541 (exit $ac_status); }; }; then
40542 glibcxx_cv_func_powl_use=yes
40543 else
40544 echo "$as_me: failed program was:" >&5
40545 sed 's/^/| /' conftest.$ac_ext >&5
40547 glibcxx_cv_func_powl_use=no
40549 rm -f conftest.$ac_objext conftest.$ac_ext
40550 ac_ext=c
40551 ac_cpp='$CPP $CPPFLAGS'
40552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40560 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
40561 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
40563 if test x$glibcxx_cv_func_powl_use = x"yes"; then
40565 for ac_func in powl
40567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40568 echo "$as_me:$LINENO: checking for $ac_func" >&5
40569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40570 if eval "test \"\${$as_ac_var+set}\" = set"; then
40571 echo $ECHO_N "(cached) $ECHO_C" >&6
40572 else
40573 if test x$gcc_no_link = xyes; then
40574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40576 { (exit 1); exit 1; }; }
40578 cat >conftest.$ac_ext <<_ACEOF
40579 #line $LINENO "configure"
40580 /* confdefs.h. */
40581 _ACEOF
40582 cat confdefs.h >>conftest.$ac_ext
40583 cat >>conftest.$ac_ext <<_ACEOF
40584 /* end confdefs.h. */
40585 /* System header to define __stub macros and hopefully few prototypes,
40586 which can conflict with char $ac_func (); below.
40587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40588 <limits.h> exists even on freestanding compilers. */
40589 #ifdef __STDC__
40590 # include <limits.h>
40591 #else
40592 # include <assert.h>
40593 #endif
40594 /* Override any gcc2 internal prototype to avoid an error. */
40595 #ifdef __cplusplus
40596 extern "C"
40598 #endif
40599 /* We use char because int might match the return type of a gcc2
40600 builtin and then its argument prototype would still apply. */
40601 char $ac_func ();
40602 /* The GNU C library defines this for functions which it implements
40603 to always fail with ENOSYS. Some functions are actually named
40604 something starting with __ and the normal name is an alias. */
40605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40606 choke me
40607 #else
40608 char (*f) () = $ac_func;
40609 #endif
40610 #ifdef __cplusplus
40612 #endif
40615 main ()
40617 return f != $ac_func;
40619 return 0;
40621 _ACEOF
40622 rm -f conftest.$ac_objext conftest$ac_exeext
40623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40624 (eval $ac_link) 2>&5
40625 ac_status=$?
40626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627 (exit $ac_status); } &&
40628 { ac_try='test -s conftest$ac_exeext'
40629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40630 (eval $ac_try) 2>&5
40631 ac_status=$?
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); }; }; then
40634 eval "$as_ac_var=yes"
40635 else
40636 echo "$as_me: failed program was:" >&5
40637 sed 's/^/| /' conftest.$ac_ext >&5
40639 eval "$as_ac_var=no"
40641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40645 if test `eval echo '${'$as_ac_var'}'` = yes; then
40646 cat >>confdefs.h <<_ACEOF
40647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40648 _ACEOF
40651 done
40653 else
40655 echo "$as_me:$LINENO: checking for _powl declaration" >&5
40656 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
40657 if test x${glibcxx_cv_func__powl_use+set} != xset; then
40658 if test "${glibcxx_cv_func__powl_use+set}" = set; then
40659 echo $ECHO_N "(cached) $ECHO_C" >&6
40660 else
40664 ac_ext=cc
40665 ac_cpp='$CXXCPP $CPPFLAGS'
40666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40670 cat >conftest.$ac_ext <<_ACEOF
40671 #line $LINENO "configure"
40672 /* confdefs.h. */
40673 _ACEOF
40674 cat confdefs.h >>conftest.$ac_ext
40675 cat >>conftest.$ac_ext <<_ACEOF
40676 /* end confdefs.h. */
40677 #include <math.h>
40679 main ()
40681 _powl(0, 0);
40683 return 0;
40685 _ACEOF
40686 rm -f conftest.$ac_objext
40687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40688 (eval $ac_compile) 2>&5
40689 ac_status=$?
40690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691 (exit $ac_status); } &&
40692 { ac_try='test -s conftest.$ac_objext'
40693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40694 (eval $ac_try) 2>&5
40695 ac_status=$?
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); }; }; then
40698 glibcxx_cv_func__powl_use=yes
40699 else
40700 echo "$as_me: failed program was:" >&5
40701 sed 's/^/| /' conftest.$ac_ext >&5
40703 glibcxx_cv_func__powl_use=no
40705 rm -f conftest.$ac_objext conftest.$ac_ext
40706 ac_ext=c
40707 ac_cpp='$CPP $CPPFLAGS'
40708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40716 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
40717 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
40719 if test x$glibcxx_cv_func__powl_use = x"yes"; then
40721 for ac_func in _powl
40723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40724 echo "$as_me:$LINENO: checking for $ac_func" >&5
40725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40726 if eval "test \"\${$as_ac_var+set}\" = set"; then
40727 echo $ECHO_N "(cached) $ECHO_C" >&6
40728 else
40729 if test x$gcc_no_link = xyes; then
40730 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40732 { (exit 1); exit 1; }; }
40734 cat >conftest.$ac_ext <<_ACEOF
40735 #line $LINENO "configure"
40736 /* confdefs.h. */
40737 _ACEOF
40738 cat confdefs.h >>conftest.$ac_ext
40739 cat >>conftest.$ac_ext <<_ACEOF
40740 /* end confdefs.h. */
40741 /* System header to define __stub macros and hopefully few prototypes,
40742 which can conflict with char $ac_func (); below.
40743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40744 <limits.h> exists even on freestanding compilers. */
40745 #ifdef __STDC__
40746 # include <limits.h>
40747 #else
40748 # include <assert.h>
40749 #endif
40750 /* Override any gcc2 internal prototype to avoid an error. */
40751 #ifdef __cplusplus
40752 extern "C"
40754 #endif
40755 /* We use char because int might match the return type of a gcc2
40756 builtin and then its argument prototype would still apply. */
40757 char $ac_func ();
40758 /* The GNU C library defines this for functions which it implements
40759 to always fail with ENOSYS. Some functions are actually named
40760 something starting with __ and the normal name is an alias. */
40761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40762 choke me
40763 #else
40764 char (*f) () = $ac_func;
40765 #endif
40766 #ifdef __cplusplus
40768 #endif
40771 main ()
40773 return f != $ac_func;
40775 return 0;
40777 _ACEOF
40778 rm -f conftest.$ac_objext conftest$ac_exeext
40779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40780 (eval $ac_link) 2>&5
40781 ac_status=$?
40782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40783 (exit $ac_status); } &&
40784 { ac_try='test -s conftest$ac_exeext'
40785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40786 (eval $ac_try) 2>&5
40787 ac_status=$?
40788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789 (exit $ac_status); }; }; then
40790 eval "$as_ac_var=yes"
40791 else
40792 echo "$as_me: failed program was:" >&5
40793 sed 's/^/| /' conftest.$ac_ext >&5
40795 eval "$as_ac_var=no"
40797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40801 if test `eval echo '${'$as_ac_var'}'` = yes; then
40802 cat >>confdefs.h <<_ACEOF
40803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40804 _ACEOF
40807 done
40814 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
40815 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
40816 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
40817 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
40818 echo $ECHO_N "(cached) $ECHO_C" >&6
40819 else
40823 ac_ext=cc
40824 ac_cpp='$CXXCPP $CPPFLAGS'
40825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40829 cat >conftest.$ac_ext <<_ACEOF
40830 #line $LINENO "configure"
40831 /* confdefs.h. */
40832 _ACEOF
40833 cat confdefs.h >>conftest.$ac_ext
40834 cat >>conftest.$ac_ext <<_ACEOF
40835 /* end confdefs.h. */
40836 #include <math.h>
40837 #ifdef HAVE_IEEEFP_H
40838 #include <ieeefp.h>
40839 #endif
40842 main ()
40844 sqrtl(0);
40846 return 0;
40848 _ACEOF
40849 rm -f conftest.$ac_objext
40850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40851 (eval $ac_compile) 2>&5
40852 ac_status=$?
40853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40854 (exit $ac_status); } &&
40855 { ac_try='test -s conftest.$ac_objext'
40856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40857 (eval $ac_try) 2>&5
40858 ac_status=$?
40859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40860 (exit $ac_status); }; }; then
40861 glibcxx_cv_func_sqrtl_use=yes
40862 else
40863 echo "$as_me: failed program was:" >&5
40864 sed 's/^/| /' conftest.$ac_ext >&5
40866 glibcxx_cv_func_sqrtl_use=no
40868 rm -f conftest.$ac_objext conftest.$ac_ext
40869 ac_ext=c
40870 ac_cpp='$CPP $CPPFLAGS'
40871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40879 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
40880 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
40882 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
40884 for ac_func in sqrtl
40886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40887 echo "$as_me:$LINENO: checking for $ac_func" >&5
40888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40889 if eval "test \"\${$as_ac_var+set}\" = set"; then
40890 echo $ECHO_N "(cached) $ECHO_C" >&6
40891 else
40892 if test x$gcc_no_link = xyes; then
40893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40895 { (exit 1); exit 1; }; }
40897 cat >conftest.$ac_ext <<_ACEOF
40898 #line $LINENO "configure"
40899 /* confdefs.h. */
40900 _ACEOF
40901 cat confdefs.h >>conftest.$ac_ext
40902 cat >>conftest.$ac_ext <<_ACEOF
40903 /* end confdefs.h. */
40904 /* System header to define __stub macros and hopefully few prototypes,
40905 which can conflict with char $ac_func (); below.
40906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40907 <limits.h> exists even on freestanding compilers. */
40908 #ifdef __STDC__
40909 # include <limits.h>
40910 #else
40911 # include <assert.h>
40912 #endif
40913 /* Override any gcc2 internal prototype to avoid an error. */
40914 #ifdef __cplusplus
40915 extern "C"
40917 #endif
40918 /* We use char because int might match the return type of a gcc2
40919 builtin and then its argument prototype would still apply. */
40920 char $ac_func ();
40921 /* The GNU C library defines this for functions which it implements
40922 to always fail with ENOSYS. Some functions are actually named
40923 something starting with __ and the normal name is an alias. */
40924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40925 choke me
40926 #else
40927 char (*f) () = $ac_func;
40928 #endif
40929 #ifdef __cplusplus
40931 #endif
40934 main ()
40936 return f != $ac_func;
40938 return 0;
40940 _ACEOF
40941 rm -f conftest.$ac_objext conftest$ac_exeext
40942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40943 (eval $ac_link) 2>&5
40944 ac_status=$?
40945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40946 (exit $ac_status); } &&
40947 { ac_try='test -s conftest$ac_exeext'
40948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40949 (eval $ac_try) 2>&5
40950 ac_status=$?
40951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952 (exit $ac_status); }; }; then
40953 eval "$as_ac_var=yes"
40954 else
40955 echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40958 eval "$as_ac_var=no"
40960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40964 if test `eval echo '${'$as_ac_var'}'` = yes; then
40965 cat >>confdefs.h <<_ACEOF
40966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40967 _ACEOF
40970 done
40972 else
40974 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
40975 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
40976 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
40977 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
40978 echo $ECHO_N "(cached) $ECHO_C" >&6
40979 else
40983 ac_ext=cc
40984 ac_cpp='$CXXCPP $CPPFLAGS'
40985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40989 cat >conftest.$ac_ext <<_ACEOF
40990 #line $LINENO "configure"
40991 /* confdefs.h. */
40992 _ACEOF
40993 cat confdefs.h >>conftest.$ac_ext
40994 cat >>conftest.$ac_ext <<_ACEOF
40995 /* end confdefs.h. */
40996 #include <math.h>
40997 #ifdef HAVE_IEEEFP_H
40998 #include <ieeefp.h>
40999 #endif
41002 main ()
41004 _sqrtl(0);
41006 return 0;
41008 _ACEOF
41009 rm -f conftest.$ac_objext
41010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41011 (eval $ac_compile) 2>&5
41012 ac_status=$?
41013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014 (exit $ac_status); } &&
41015 { ac_try='test -s conftest.$ac_objext'
41016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41017 (eval $ac_try) 2>&5
41018 ac_status=$?
41019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41020 (exit $ac_status); }; }; then
41021 glibcxx_cv_func__sqrtl_use=yes
41022 else
41023 echo "$as_me: failed program was:" >&5
41024 sed 's/^/| /' conftest.$ac_ext >&5
41026 glibcxx_cv_func__sqrtl_use=no
41028 rm -f conftest.$ac_objext conftest.$ac_ext
41029 ac_ext=c
41030 ac_cpp='$CPP $CPPFLAGS'
41031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41039 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
41040 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
41042 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
41044 for ac_func in _sqrtl
41046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41047 echo "$as_me:$LINENO: checking for $ac_func" >&5
41048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41049 if eval "test \"\${$as_ac_var+set}\" = set"; then
41050 echo $ECHO_N "(cached) $ECHO_C" >&6
41051 else
41052 if test x$gcc_no_link = xyes; then
41053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41055 { (exit 1); exit 1; }; }
41057 cat >conftest.$ac_ext <<_ACEOF
41058 #line $LINENO "configure"
41059 /* confdefs.h. */
41060 _ACEOF
41061 cat confdefs.h >>conftest.$ac_ext
41062 cat >>conftest.$ac_ext <<_ACEOF
41063 /* end confdefs.h. */
41064 /* System header to define __stub macros and hopefully few prototypes,
41065 which can conflict with char $ac_func (); below.
41066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41067 <limits.h> exists even on freestanding compilers. */
41068 #ifdef __STDC__
41069 # include <limits.h>
41070 #else
41071 # include <assert.h>
41072 #endif
41073 /* Override any gcc2 internal prototype to avoid an error. */
41074 #ifdef __cplusplus
41075 extern "C"
41077 #endif
41078 /* We use char because int might match the return type of a gcc2
41079 builtin and then its argument prototype would still apply. */
41080 char $ac_func ();
41081 /* The GNU C library defines this for functions which it implements
41082 to always fail with ENOSYS. Some functions are actually named
41083 something starting with __ and the normal name is an alias. */
41084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41085 choke me
41086 #else
41087 char (*f) () = $ac_func;
41088 #endif
41089 #ifdef __cplusplus
41091 #endif
41094 main ()
41096 return f != $ac_func;
41098 return 0;
41100 _ACEOF
41101 rm -f conftest.$ac_objext conftest$ac_exeext
41102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41103 (eval $ac_link) 2>&5
41104 ac_status=$?
41105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41106 (exit $ac_status); } &&
41107 { ac_try='test -s conftest$ac_exeext'
41108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41109 (eval $ac_try) 2>&5
41110 ac_status=$?
41111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41112 (exit $ac_status); }; }; then
41113 eval "$as_ac_var=yes"
41114 else
41115 echo "$as_me: failed program was:" >&5
41116 sed 's/^/| /' conftest.$ac_ext >&5
41118 eval "$as_ac_var=no"
41120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41124 if test `eval echo '${'$as_ac_var'}'` = yes; then
41125 cat >>confdefs.h <<_ACEOF
41126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41127 _ACEOF
41130 done
41137 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
41138 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
41139 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
41140 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
41141 echo $ECHO_N "(cached) $ECHO_C" >&6
41142 else
41146 ac_ext=cc
41147 ac_cpp='$CXXCPP $CPPFLAGS'
41148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41152 cat >conftest.$ac_ext <<_ACEOF
41153 #line $LINENO "configure"
41154 /* confdefs.h. */
41155 _ACEOF
41156 cat confdefs.h >>conftest.$ac_ext
41157 cat >>conftest.$ac_ext <<_ACEOF
41158 /* end confdefs.h. */
41159 #include <math.h>
41161 main ()
41163 sincosl(0, 0, 0);
41165 return 0;
41167 _ACEOF
41168 rm -f conftest.$ac_objext
41169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41170 (eval $ac_compile) 2>&5
41171 ac_status=$?
41172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173 (exit $ac_status); } &&
41174 { ac_try='test -s conftest.$ac_objext'
41175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41176 (eval $ac_try) 2>&5
41177 ac_status=$?
41178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41179 (exit $ac_status); }; }; then
41180 glibcxx_cv_func_sincosl_use=yes
41181 else
41182 echo "$as_me: failed program was:" >&5
41183 sed 's/^/| /' conftest.$ac_ext >&5
41185 glibcxx_cv_func_sincosl_use=no
41187 rm -f conftest.$ac_objext conftest.$ac_ext
41188 ac_ext=c
41189 ac_cpp='$CPP $CPPFLAGS'
41190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41198 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
41199 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
41201 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
41203 for ac_func in sincosl
41205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41206 echo "$as_me:$LINENO: checking for $ac_func" >&5
41207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41208 if eval "test \"\${$as_ac_var+set}\" = set"; then
41209 echo $ECHO_N "(cached) $ECHO_C" >&6
41210 else
41211 if test x$gcc_no_link = xyes; then
41212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41214 { (exit 1); exit 1; }; }
41216 cat >conftest.$ac_ext <<_ACEOF
41217 #line $LINENO "configure"
41218 /* confdefs.h. */
41219 _ACEOF
41220 cat confdefs.h >>conftest.$ac_ext
41221 cat >>conftest.$ac_ext <<_ACEOF
41222 /* end confdefs.h. */
41223 /* System header to define __stub macros and hopefully few prototypes,
41224 which can conflict with char $ac_func (); below.
41225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41226 <limits.h> exists even on freestanding compilers. */
41227 #ifdef __STDC__
41228 # include <limits.h>
41229 #else
41230 # include <assert.h>
41231 #endif
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>&5
41263 ac_status=$?
41264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41265 (exit $ac_status); } &&
41266 { ac_try='test -s conftest$ac_exeext'
41267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41268 (eval $ac_try) 2>&5
41269 ac_status=$?
41270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41271 (exit $ac_status); }; }; then
41272 eval "$as_ac_var=yes"
41273 else
41274 echo "$as_me: failed program was:" >&5
41275 sed 's/^/| /' conftest.$ac_ext >&5
41277 eval "$as_ac_var=no"
41279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41283 if test `eval echo '${'$as_ac_var'}'` = yes; then
41284 cat >>confdefs.h <<_ACEOF
41285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41286 _ACEOF
41289 done
41291 else
41293 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
41294 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
41295 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
41296 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
41297 echo $ECHO_N "(cached) $ECHO_C" >&6
41298 else
41302 ac_ext=cc
41303 ac_cpp='$CXXCPP $CPPFLAGS'
41304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41308 cat >conftest.$ac_ext <<_ACEOF
41309 #line $LINENO "configure"
41310 /* confdefs.h. */
41311 _ACEOF
41312 cat confdefs.h >>conftest.$ac_ext
41313 cat >>conftest.$ac_ext <<_ACEOF
41314 /* end confdefs.h. */
41315 #include <math.h>
41317 main ()
41319 _sincosl(0, 0, 0);
41321 return 0;
41323 _ACEOF
41324 rm -f conftest.$ac_objext
41325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41326 (eval $ac_compile) 2>&5
41327 ac_status=$?
41328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); } &&
41330 { ac_try='test -s conftest.$ac_objext'
41331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41332 (eval $ac_try) 2>&5
41333 ac_status=$?
41334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41335 (exit $ac_status); }; }; then
41336 glibcxx_cv_func__sincosl_use=yes
41337 else
41338 echo "$as_me: failed program was:" >&5
41339 sed 's/^/| /' conftest.$ac_ext >&5
41341 glibcxx_cv_func__sincosl_use=no
41343 rm -f conftest.$ac_objext conftest.$ac_ext
41344 ac_ext=c
41345 ac_cpp='$CPP $CPPFLAGS'
41346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41354 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
41355 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
41357 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
41359 for ac_func in _sincosl
41361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41362 echo "$as_me:$LINENO: checking for $ac_func" >&5
41363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41364 if eval "test \"\${$as_ac_var+set}\" = set"; then
41365 echo $ECHO_N "(cached) $ECHO_C" >&6
41366 else
41367 if test x$gcc_no_link = xyes; then
41368 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41370 { (exit 1); exit 1; }; }
41372 cat >conftest.$ac_ext <<_ACEOF
41373 #line $LINENO "configure"
41374 /* confdefs.h. */
41375 _ACEOF
41376 cat confdefs.h >>conftest.$ac_ext
41377 cat >>conftest.$ac_ext <<_ACEOF
41378 /* end confdefs.h. */
41379 /* System header to define __stub macros and hopefully few prototypes,
41380 which can conflict with char $ac_func (); below.
41381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41382 <limits.h> exists even on freestanding compilers. */
41383 #ifdef __STDC__
41384 # include <limits.h>
41385 #else
41386 # include <assert.h>
41387 #endif
41388 /* Override any gcc2 internal prototype to avoid an error. */
41389 #ifdef __cplusplus
41390 extern "C"
41392 #endif
41393 /* We use char because int might match the return type of a gcc2
41394 builtin and then its argument prototype would still apply. */
41395 char $ac_func ();
41396 /* The GNU C library defines this for functions which it implements
41397 to always fail with ENOSYS. Some functions are actually named
41398 something starting with __ and the normal name is an alias. */
41399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41400 choke me
41401 #else
41402 char (*f) () = $ac_func;
41403 #endif
41404 #ifdef __cplusplus
41406 #endif
41409 main ()
41411 return f != $ac_func;
41413 return 0;
41415 _ACEOF
41416 rm -f conftest.$ac_objext conftest$ac_exeext
41417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41418 (eval $ac_link) 2>&5
41419 ac_status=$?
41420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41421 (exit $ac_status); } &&
41422 { ac_try='test -s conftest$ac_exeext'
41423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41424 (eval $ac_try) 2>&5
41425 ac_status=$?
41426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427 (exit $ac_status); }; }; then
41428 eval "$as_ac_var=yes"
41429 else
41430 echo "$as_me: failed program was:" >&5
41431 sed 's/^/| /' conftest.$ac_ext >&5
41433 eval "$as_ac_var=no"
41435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41439 if test `eval echo '${'$as_ac_var'}'` = yes; then
41440 cat >>confdefs.h <<_ACEOF
41441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41442 _ACEOF
41445 done
41452 echo "$as_me:$LINENO: checking for finitel declaration" >&5
41453 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
41454 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41455 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
41456 echo $ECHO_N "(cached) $ECHO_C" >&6
41457 else
41461 ac_ext=cc
41462 ac_cpp='$CXXCPP $CPPFLAGS'
41463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41467 cat >conftest.$ac_ext <<_ACEOF
41468 #line $LINENO "configure"
41469 /* confdefs.h. */
41470 _ACEOF
41471 cat confdefs.h >>conftest.$ac_ext
41472 cat >>conftest.$ac_ext <<_ACEOF
41473 /* end confdefs.h. */
41474 #include <math.h>
41475 #ifdef HAVE_IEEEFP_H
41476 #include <ieeefp.h>
41477 #endif
41480 main ()
41482 finitel(0);
41484 return 0;
41486 _ACEOF
41487 rm -f conftest.$ac_objext
41488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41489 (eval $ac_compile) 2>&5
41490 ac_status=$?
41491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); } &&
41493 { ac_try='test -s conftest.$ac_objext'
41494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41495 (eval $ac_try) 2>&5
41496 ac_status=$?
41497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); }; }; then
41499 glibcxx_cv_func_finitel_use=yes
41500 else
41501 echo "$as_me: failed program was:" >&5
41502 sed 's/^/| /' conftest.$ac_ext >&5
41504 glibcxx_cv_func_finitel_use=no
41506 rm -f conftest.$ac_objext conftest.$ac_ext
41507 ac_ext=c
41508 ac_cpp='$CPP $CPPFLAGS'
41509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41517 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
41518 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
41520 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41522 for ac_func in finitel
41524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41525 echo "$as_me:$LINENO: checking for $ac_func" >&5
41526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41527 if eval "test \"\${$as_ac_var+set}\" = set"; then
41528 echo $ECHO_N "(cached) $ECHO_C" >&6
41529 else
41530 if test x$gcc_no_link = xyes; then
41531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41533 { (exit 1); exit 1; }; }
41535 cat >conftest.$ac_ext <<_ACEOF
41536 #line $LINENO "configure"
41537 /* confdefs.h. */
41538 _ACEOF
41539 cat confdefs.h >>conftest.$ac_ext
41540 cat >>conftest.$ac_ext <<_ACEOF
41541 /* end confdefs.h. */
41542 /* System header to define __stub macros and hopefully few prototypes,
41543 which can conflict with char $ac_func (); below.
41544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41545 <limits.h> exists even on freestanding compilers. */
41546 #ifdef __STDC__
41547 # include <limits.h>
41548 #else
41549 # include <assert.h>
41550 #endif
41551 /* Override any gcc2 internal prototype to avoid an error. */
41552 #ifdef __cplusplus
41553 extern "C"
41555 #endif
41556 /* We use char because int might match the return type of a gcc2
41557 builtin and then its argument prototype would still apply. */
41558 char $ac_func ();
41559 /* The GNU C library defines this for functions which it implements
41560 to always fail with ENOSYS. Some functions are actually named
41561 something starting with __ and the normal name is an alias. */
41562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41563 choke me
41564 #else
41565 char (*f) () = $ac_func;
41566 #endif
41567 #ifdef __cplusplus
41569 #endif
41572 main ()
41574 return f != $ac_func;
41576 return 0;
41578 _ACEOF
41579 rm -f conftest.$ac_objext conftest$ac_exeext
41580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41581 (eval $ac_link) 2>&5
41582 ac_status=$?
41583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41584 (exit $ac_status); } &&
41585 { ac_try='test -s conftest$ac_exeext'
41586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41587 (eval $ac_try) 2>&5
41588 ac_status=$?
41589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41590 (exit $ac_status); }; }; then
41591 eval "$as_ac_var=yes"
41592 else
41593 echo "$as_me: failed program was:" >&5
41594 sed 's/^/| /' conftest.$ac_ext >&5
41596 eval "$as_ac_var=no"
41598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41602 if test `eval echo '${'$as_ac_var'}'` = yes; then
41603 cat >>confdefs.h <<_ACEOF
41604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41605 _ACEOF
41608 done
41610 else
41612 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
41613 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
41614 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
41615 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
41616 echo $ECHO_N "(cached) $ECHO_C" >&6
41617 else
41621 ac_ext=cc
41622 ac_cpp='$CXXCPP $CPPFLAGS'
41623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41627 cat >conftest.$ac_ext <<_ACEOF
41628 #line $LINENO "configure"
41629 /* confdefs.h. */
41630 _ACEOF
41631 cat confdefs.h >>conftest.$ac_ext
41632 cat >>conftest.$ac_ext <<_ACEOF
41633 /* end confdefs.h. */
41634 #include <math.h>
41635 #ifdef HAVE_IEEEFP_H
41636 #include <ieeefp.h>
41637 #endif
41640 main ()
41642 _finitel(0);
41644 return 0;
41646 _ACEOF
41647 rm -f conftest.$ac_objext
41648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41649 (eval $ac_compile) 2>&5
41650 ac_status=$?
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); } &&
41653 { ac_try='test -s conftest.$ac_objext'
41654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41655 (eval $ac_try) 2>&5
41656 ac_status=$?
41657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658 (exit $ac_status); }; }; then
41659 glibcxx_cv_func__finitel_use=yes
41660 else
41661 echo "$as_me: failed program was:" >&5
41662 sed 's/^/| /' conftest.$ac_ext >&5
41664 glibcxx_cv_func__finitel_use=no
41666 rm -f conftest.$ac_objext conftest.$ac_ext
41667 ac_ext=c
41668 ac_cpp='$CPP $CPPFLAGS'
41669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41677 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
41678 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
41680 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
41682 for ac_func in _finitel
41684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41685 echo "$as_me:$LINENO: checking for $ac_func" >&5
41686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41687 if eval "test \"\${$as_ac_var+set}\" = set"; then
41688 echo $ECHO_N "(cached) $ECHO_C" >&6
41689 else
41690 if test x$gcc_no_link = xyes; then
41691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41693 { (exit 1); exit 1; }; }
41695 cat >conftest.$ac_ext <<_ACEOF
41696 #line $LINENO "configure"
41697 /* confdefs.h. */
41698 _ACEOF
41699 cat confdefs.h >>conftest.$ac_ext
41700 cat >>conftest.$ac_ext <<_ACEOF
41701 /* end confdefs.h. */
41702 /* System header to define __stub macros and hopefully few prototypes,
41703 which can conflict with char $ac_func (); below.
41704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41705 <limits.h> exists even on freestanding compilers. */
41706 #ifdef __STDC__
41707 # include <limits.h>
41708 #else
41709 # include <assert.h>
41710 #endif
41711 /* Override any gcc2 internal prototype to avoid an error. */
41712 #ifdef __cplusplus
41713 extern "C"
41715 #endif
41716 /* We use char because int might match the return type of a gcc2
41717 builtin and then its argument prototype would still apply. */
41718 char $ac_func ();
41719 /* The GNU C library defines this for functions which it implements
41720 to always fail with ENOSYS. Some functions are actually named
41721 something starting with __ and the normal name is an alias. */
41722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41723 choke me
41724 #else
41725 char (*f) () = $ac_func;
41726 #endif
41727 #ifdef __cplusplus
41729 #endif
41732 main ()
41734 return f != $ac_func;
41736 return 0;
41738 _ACEOF
41739 rm -f conftest.$ac_objext conftest$ac_exeext
41740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41741 (eval $ac_link) 2>&5
41742 ac_status=$?
41743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744 (exit $ac_status); } &&
41745 { ac_try='test -s conftest$ac_exeext'
41746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41747 (eval $ac_try) 2>&5
41748 ac_status=$?
41749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); }; }; then
41751 eval "$as_ac_var=yes"
41752 else
41753 echo "$as_me: failed program was:" >&5
41754 sed 's/^/| /' conftest.$ac_ext >&5
41756 eval "$as_ac_var=no"
41758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41762 if test `eval echo '${'$as_ac_var'}'` = yes; then
41763 cat >>confdefs.h <<_ACEOF
41764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41765 _ACEOF
41768 done
41776 echo "$as_me:$LINENO: checking for _float trig functions" >&5
41777 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
41778 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
41779 echo $ECHO_N "(cached) $ECHO_C" >&6
41780 else
41784 ac_ext=cc
41785 ac_cpp='$CXXCPP $CPPFLAGS'
41786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41790 cat >conftest.$ac_ext <<_ACEOF
41791 #line $LINENO "configure"
41792 /* confdefs.h. */
41793 _ACEOF
41794 cat confdefs.h >>conftest.$ac_ext
41795 cat >>conftest.$ac_ext <<_ACEOF
41796 /* end confdefs.h. */
41797 #include <math.h>
41799 main ()
41801 `for x in _acosf _asinf _atanf \
41802 _cosf _sinf _tanf \
41803 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
41805 return 0;
41807 _ACEOF
41808 rm -f conftest.$ac_objext
41809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41810 (eval $ac_compile) 2>&5
41811 ac_status=$?
41812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813 (exit $ac_status); } &&
41814 { ac_try='test -s conftest.$ac_objext'
41815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41816 (eval $ac_try) 2>&5
41817 ac_status=$?
41818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41819 (exit $ac_status); }; }; then
41820 glibcxx_cv_func__float_trig_use=yes
41821 else
41822 echo "$as_me: failed program was:" >&5
41823 sed 's/^/| /' conftest.$ac_ext >&5
41825 glibcxx_cv_func__float_trig_use=no
41827 rm -f conftest.$ac_objext conftest.$ac_ext
41828 ac_ext=c
41829 ac_cpp='$CPP $CPPFLAGS'
41830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41836 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
41837 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
41838 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
41848 for ac_func in _acosf _asinf _atanf \
41849 _cosf _sinf _tanf \
41850 _coshf _sinhf _tanhf
41852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41853 echo "$as_me:$LINENO: checking for $ac_func" >&5
41854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41855 if eval "test \"\${$as_ac_var+set}\" = set"; then
41856 echo $ECHO_N "(cached) $ECHO_C" >&6
41857 else
41858 if test x$gcc_no_link = xyes; then
41859 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41860 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41861 { (exit 1); exit 1; }; }
41863 cat >conftest.$ac_ext <<_ACEOF
41864 #line $LINENO "configure"
41865 /* confdefs.h. */
41866 _ACEOF
41867 cat confdefs.h >>conftest.$ac_ext
41868 cat >>conftest.$ac_ext <<_ACEOF
41869 /* end confdefs.h. */
41870 /* System header to define __stub macros and hopefully few prototypes,
41871 which can conflict with char $ac_func (); below.
41872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41873 <limits.h> exists even on freestanding compilers. */
41874 #ifdef __STDC__
41875 # include <limits.h>
41876 #else
41877 # include <assert.h>
41878 #endif
41879 /* Override any gcc2 internal prototype to avoid an error. */
41880 #ifdef __cplusplus
41881 extern "C"
41883 #endif
41884 /* We use char because int might match the return type of a gcc2
41885 builtin and then its argument prototype would still apply. */
41886 char $ac_func ();
41887 /* The GNU C library defines this for functions which it implements
41888 to always fail with ENOSYS. Some functions are actually named
41889 something starting with __ and the normal name is an alias. */
41890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41891 choke me
41892 #else
41893 char (*f) () = $ac_func;
41894 #endif
41895 #ifdef __cplusplus
41897 #endif
41900 main ()
41902 return f != $ac_func;
41904 return 0;
41906 _ACEOF
41907 rm -f conftest.$ac_objext conftest$ac_exeext
41908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41909 (eval $ac_link) 2>&5
41910 ac_status=$?
41911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912 (exit $ac_status); } &&
41913 { ac_try='test -s conftest$ac_exeext'
41914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41915 (eval $ac_try) 2>&5
41916 ac_status=$?
41917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918 (exit $ac_status); }; }; then
41919 eval "$as_ac_var=yes"
41920 else
41921 echo "$as_me: failed program was:" >&5
41922 sed 's/^/| /' conftest.$ac_ext >&5
41924 eval "$as_ac_var=no"
41926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41930 if test `eval echo '${'$as_ac_var'}'` = yes; then
41931 cat >>confdefs.h <<_ACEOF
41932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41933 _ACEOF
41936 done
41941 echo "$as_me:$LINENO: checking for _float round functions" >&5
41942 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
41943 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
41944 echo $ECHO_N "(cached) $ECHO_C" >&6
41945 else
41949 ac_ext=cc
41950 ac_cpp='$CXXCPP $CPPFLAGS'
41951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41955 cat >conftest.$ac_ext <<_ACEOF
41956 #line $LINENO "configure"
41957 /* confdefs.h. */
41958 _ACEOF
41959 cat confdefs.h >>conftest.$ac_ext
41960 cat >>conftest.$ac_ext <<_ACEOF
41961 /* end confdefs.h. */
41962 #include <math.h>
41964 main ()
41966 `for x in _ceilf _floorf; do echo "$x (0);"; done`
41968 return 0;
41970 _ACEOF
41971 rm -f conftest.$ac_objext
41972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41973 (eval $ac_compile) 2>&5
41974 ac_status=$?
41975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41976 (exit $ac_status); } &&
41977 { ac_try='test -s conftest.$ac_objext'
41978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41979 (eval $ac_try) 2>&5
41980 ac_status=$?
41981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982 (exit $ac_status); }; }; then
41983 glibcxx_cv_func__float_round_use=yes
41984 else
41985 echo "$as_me: failed program was:" >&5
41986 sed 's/^/| /' conftest.$ac_ext >&5
41988 glibcxx_cv_func__float_round_use=no
41990 rm -f conftest.$ac_objext conftest.$ac_ext
41991 ac_ext=c
41992 ac_cpp='$CPP $CPPFLAGS'
41993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41999 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
42000 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
42001 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
42004 for ac_func in _ceilf _floorf
42006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42007 echo "$as_me:$LINENO: checking for $ac_func" >&5
42008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42009 if eval "test \"\${$as_ac_var+set}\" = set"; then
42010 echo $ECHO_N "(cached) $ECHO_C" >&6
42011 else
42012 if test x$gcc_no_link = xyes; then
42013 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42015 { (exit 1); exit 1; }; }
42017 cat >conftest.$ac_ext <<_ACEOF
42018 #line $LINENO "configure"
42019 /* confdefs.h. */
42020 _ACEOF
42021 cat confdefs.h >>conftest.$ac_ext
42022 cat >>conftest.$ac_ext <<_ACEOF
42023 /* end confdefs.h. */
42024 /* System header to define __stub macros and hopefully few prototypes,
42025 which can conflict with char $ac_func (); below.
42026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42027 <limits.h> exists even on freestanding compilers. */
42028 #ifdef __STDC__
42029 # include <limits.h>
42030 #else
42031 # include <assert.h>
42032 #endif
42033 /* Override any gcc2 internal prototype to avoid an error. */
42034 #ifdef __cplusplus
42035 extern "C"
42037 #endif
42038 /* We use char because int might match the return type of a gcc2
42039 builtin and then its argument prototype would still apply. */
42040 char $ac_func ();
42041 /* The GNU C library defines this for functions which it implements
42042 to always fail with ENOSYS. Some functions are actually named
42043 something starting with __ and the normal name is an alias. */
42044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42045 choke me
42046 #else
42047 char (*f) () = $ac_func;
42048 #endif
42049 #ifdef __cplusplus
42051 #endif
42054 main ()
42056 return f != $ac_func;
42058 return 0;
42060 _ACEOF
42061 rm -f conftest.$ac_objext conftest$ac_exeext
42062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42063 (eval $ac_link) 2>&5
42064 ac_status=$?
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); } &&
42067 { ac_try='test -s conftest$ac_exeext'
42068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42069 (eval $ac_try) 2>&5
42070 ac_status=$?
42071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42072 (exit $ac_status); }; }; then
42073 eval "$as_ac_var=yes"
42074 else
42075 echo "$as_me: failed program was:" >&5
42076 sed 's/^/| /' conftest.$ac_ext >&5
42078 eval "$as_ac_var=no"
42080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42084 if test `eval echo '${'$as_ac_var'}'` = yes; then
42085 cat >>confdefs.h <<_ACEOF
42086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42087 _ACEOF
42090 done
42096 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
42097 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
42098 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
42099 echo $ECHO_N "(cached) $ECHO_C" >&6
42100 else
42104 ac_ext=cc
42105 ac_cpp='$CXXCPP $CPPFLAGS'
42106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42110 cat >conftest.$ac_ext <<_ACEOF
42111 #line $LINENO "configure"
42112 /* confdefs.h. */
42113 _ACEOF
42114 cat confdefs.h >>conftest.$ac_ext
42115 cat >>conftest.$ac_ext <<_ACEOF
42116 /* end confdefs.h. */
42117 #include <math.h>
42119 main ()
42121 `for x in _acosl _asinl _atanl \
42122 _cosl _sinl _tanl \
42123 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
42125 return 0;
42127 _ACEOF
42128 rm -f conftest.$ac_objext
42129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42130 (eval $ac_compile) 2>&5
42131 ac_status=$?
42132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); } &&
42134 { ac_try='test -s conftest.$ac_objext'
42135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42136 (eval $ac_try) 2>&5
42137 ac_status=$?
42138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139 (exit $ac_status); }; }; then
42140 glibcxx_cv_func__long_double_trig_use=yes
42141 else
42142 echo "$as_me: failed program was:" >&5
42143 sed 's/^/| /' conftest.$ac_ext >&5
42145 glibcxx_cv_func__long_double_trig_use=no
42147 rm -f conftest.$ac_objext conftest.$ac_ext
42148 ac_ext=c
42149 ac_cpp='$CPP $CPPFLAGS'
42150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42156 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
42157 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
42158 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
42168 for ac_func in _acosl _asinl _atanl \
42169 _cosl _sinl _tanl \
42170 _coshl _sinhl _tanhl
42172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42173 echo "$as_me:$LINENO: checking for $ac_func" >&5
42174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42175 if eval "test \"\${$as_ac_var+set}\" = set"; then
42176 echo $ECHO_N "(cached) $ECHO_C" >&6
42177 else
42178 if test x$gcc_no_link = xyes; then
42179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42181 { (exit 1); exit 1; }; }
42183 cat >conftest.$ac_ext <<_ACEOF
42184 #line $LINENO "configure"
42185 /* confdefs.h. */
42186 _ACEOF
42187 cat confdefs.h >>conftest.$ac_ext
42188 cat >>conftest.$ac_ext <<_ACEOF
42189 /* end confdefs.h. */
42190 /* System header to define __stub macros and hopefully few prototypes,
42191 which can conflict with char $ac_func (); below.
42192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42193 <limits.h> exists even on freestanding compilers. */
42194 #ifdef __STDC__
42195 # include <limits.h>
42196 #else
42197 # include <assert.h>
42198 #endif
42199 /* Override any gcc2 internal prototype to avoid an error. */
42200 #ifdef __cplusplus
42201 extern "C"
42203 #endif
42204 /* We use char because int might match the return type of a gcc2
42205 builtin and then its argument prototype would still apply. */
42206 char $ac_func ();
42207 /* The GNU C library defines this for functions which it implements
42208 to always fail with ENOSYS. Some functions are actually named
42209 something starting with __ and the normal name is an alias. */
42210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42211 choke me
42212 #else
42213 char (*f) () = $ac_func;
42214 #endif
42215 #ifdef __cplusplus
42217 #endif
42220 main ()
42222 return f != $ac_func;
42224 return 0;
42226 _ACEOF
42227 rm -f conftest.$ac_objext conftest$ac_exeext
42228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42229 (eval $ac_link) 2>&5
42230 ac_status=$?
42231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42232 (exit $ac_status); } &&
42233 { ac_try='test -s conftest$ac_exeext'
42234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42235 (eval $ac_try) 2>&5
42236 ac_status=$?
42237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238 (exit $ac_status); }; }; then
42239 eval "$as_ac_var=yes"
42240 else
42241 echo "$as_me: failed program was:" >&5
42242 sed 's/^/| /' conftest.$ac_ext >&5
42244 eval "$as_ac_var=no"
42246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42250 if test `eval echo '${'$as_ac_var'}'` = yes; then
42251 cat >>confdefs.h <<_ACEOF
42252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42253 _ACEOF
42256 done
42261 echo "$as_me:$LINENO: checking for _long double round functions" >&5
42262 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
42263 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
42264 echo $ECHO_N "(cached) $ECHO_C" >&6
42265 else
42269 ac_ext=cc
42270 ac_cpp='$CXXCPP $CPPFLAGS'
42271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42275 cat >conftest.$ac_ext <<_ACEOF
42276 #line $LINENO "configure"
42277 /* confdefs.h. */
42278 _ACEOF
42279 cat confdefs.h >>conftest.$ac_ext
42280 cat >>conftest.$ac_ext <<_ACEOF
42281 /* end confdefs.h. */
42282 #include <math.h>
42284 main ()
42286 `for x in _ceill _floorl; do echo "$x (0);"; done`
42288 return 0;
42290 _ACEOF
42291 rm -f conftest.$ac_objext
42292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42293 (eval $ac_compile) 2>&5
42294 ac_status=$?
42295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42296 (exit $ac_status); } &&
42297 { ac_try='test -s conftest.$ac_objext'
42298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42299 (eval $ac_try) 2>&5
42300 ac_status=$?
42301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42302 (exit $ac_status); }; }; then
42303 glibcxx_cv_func__long_double_round_use=yes
42304 else
42305 echo "$as_me: failed program was:" >&5
42306 sed 's/^/| /' conftest.$ac_ext >&5
42308 glibcxx_cv_func__long_double_round_use=no
42310 rm -f conftest.$ac_objext conftest.$ac_ext
42311 ac_ext=c
42312 ac_cpp='$CPP $CPPFLAGS'
42313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42319 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
42320 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
42321 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
42324 for ac_func in _ceill _floorl
42326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42327 echo "$as_me:$LINENO: checking for $ac_func" >&5
42328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42329 if eval "test \"\${$as_ac_var+set}\" = set"; then
42330 echo $ECHO_N "(cached) $ECHO_C" >&6
42331 else
42332 if test x$gcc_no_link = xyes; then
42333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42335 { (exit 1); exit 1; }; }
42337 cat >conftest.$ac_ext <<_ACEOF
42338 #line $LINENO "configure"
42339 /* confdefs.h. */
42340 _ACEOF
42341 cat confdefs.h >>conftest.$ac_ext
42342 cat >>conftest.$ac_ext <<_ACEOF
42343 /* end confdefs.h. */
42344 /* System header to define __stub macros and hopefully few prototypes,
42345 which can conflict with char $ac_func (); below.
42346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42347 <limits.h> exists even on freestanding compilers. */
42348 #ifdef __STDC__
42349 # include <limits.h>
42350 #else
42351 # include <assert.h>
42352 #endif
42353 /* Override any gcc2 internal prototype to avoid an error. */
42354 #ifdef __cplusplus
42355 extern "C"
42357 #endif
42358 /* We use char because int might match the return type of a gcc2
42359 builtin and then its argument prototype would still apply. */
42360 char $ac_func ();
42361 /* The GNU C library defines this for functions which it implements
42362 to always fail with ENOSYS. Some functions are actually named
42363 something starting with __ and the normal name is an alias. */
42364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42365 choke me
42366 #else
42367 char (*f) () = $ac_func;
42368 #endif
42369 #ifdef __cplusplus
42371 #endif
42374 main ()
42376 return f != $ac_func;
42378 return 0;
42380 _ACEOF
42381 rm -f conftest.$ac_objext conftest$ac_exeext
42382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42383 (eval $ac_link) 2>&5
42384 ac_status=$?
42385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386 (exit $ac_status); } &&
42387 { ac_try='test -s conftest$ac_exeext'
42388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42389 (eval $ac_try) 2>&5
42390 ac_status=$?
42391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392 (exit $ac_status); }; }; then
42393 eval "$as_ac_var=yes"
42394 else
42395 echo "$as_me: failed program was:" >&5
42396 sed 's/^/| /' conftest.$ac_ext >&5
42398 eval "$as_ac_var=no"
42400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42404 if test `eval echo '${'$as_ac_var'}'` = yes; then
42405 cat >>confdefs.h <<_ACEOF
42406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42407 _ACEOF
42410 done
42415 LIBS="$ac_save_LIBS"
42416 CXXFLAGS="$ac_save_CXXFLAGS"
42420 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
42421 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
42422 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
42423 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
42424 echo $ECHO_N "(cached) $ECHO_C" >&6
42425 else
42429 ac_ext=cc
42430 ac_cpp='$CXXCPP $CPPFLAGS'
42431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42435 cat >conftest.$ac_ext <<_ACEOF
42436 #line $LINENO "configure"
42437 /* confdefs.h. */
42438 _ACEOF
42439 cat confdefs.h >>conftest.$ac_ext
42440 cat >>conftest.$ac_ext <<_ACEOF
42441 /* end confdefs.h. */
42442 #include <math.h>
42444 main ()
42446 __builtin_abs(0);
42448 return 0;
42450 _ACEOF
42451 rm -f conftest.$ac_objext
42452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42453 (eval $ac_compile) 2>&5
42454 ac_status=$?
42455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42456 (exit $ac_status); } &&
42457 { ac_try='test -s conftest.$ac_objext'
42458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42459 (eval $ac_try) 2>&5
42460 ac_status=$?
42461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462 (exit $ac_status); }; }; then
42463 glibcxx_cv_func___builtin_abs_use=yes
42464 else
42465 echo "$as_me: failed program was:" >&5
42466 sed 's/^/| /' conftest.$ac_ext >&5
42468 glibcxx_cv_func___builtin_abs_use=no
42470 rm -f conftest.$ac_objext conftest.$ac_ext
42471 ac_ext=c
42472 ac_cpp='$CPP $CPPFLAGS'
42473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42481 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
42482 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
42483 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
42484 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
42485 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
42486 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
42487 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
42488 echo $ECHO_N "(cached) $ECHO_C" >&6
42489 else
42491 if test x$gcc_no_link = xyes; then
42492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42494 { (exit 1); exit 1; }; }
42496 cat >conftest.$ac_ext <<_ACEOF
42497 #line $LINENO "configure"
42498 /* confdefs.h. */
42499 _ACEOF
42500 cat confdefs.h >>conftest.$ac_ext
42501 cat >>conftest.$ac_ext <<_ACEOF
42502 /* end confdefs.h. */
42503 #include <math.h>
42505 main ()
42507 __builtin_abs(0);
42509 return 0;
42511 _ACEOF
42512 rm -f conftest.$ac_objext conftest$ac_exeext
42513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42514 (eval $ac_link) 2>&5
42515 ac_status=$?
42516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42517 (exit $ac_status); } &&
42518 { ac_try='test -s conftest$ac_exeext'
42519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42520 (eval $ac_try) 2>&5
42521 ac_status=$?
42522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42523 (exit $ac_status); }; }; then
42524 glibcxx_cv_func___builtin_abs_link=yes
42525 else
42526 echo "$as_me: failed program was:" >&5
42527 sed 's/^/| /' conftest.$ac_ext >&5
42529 glibcxx_cv_func___builtin_abs_link=no
42531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42536 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
42537 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
42538 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
42539 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42540 cat >>confdefs.h <<_ACEOF
42541 #define ${ac_tr_func} 1
42542 _ACEOF
42548 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
42549 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
42550 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
42551 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
42552 echo $ECHO_N "(cached) $ECHO_C" >&6
42553 else
42557 ac_ext=cc
42558 ac_cpp='$CXXCPP $CPPFLAGS'
42559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42563 cat >conftest.$ac_ext <<_ACEOF
42564 #line $LINENO "configure"
42565 /* confdefs.h. */
42566 _ACEOF
42567 cat confdefs.h >>conftest.$ac_ext
42568 cat >>conftest.$ac_ext <<_ACEOF
42569 /* end confdefs.h. */
42570 #include <math.h>
42572 main ()
42574 __builtin_fabsf(0);
42576 return 0;
42578 _ACEOF
42579 rm -f conftest.$ac_objext
42580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42581 (eval $ac_compile) 2>&5
42582 ac_status=$?
42583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42584 (exit $ac_status); } &&
42585 { ac_try='test -s conftest.$ac_objext'
42586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42587 (eval $ac_try) 2>&5
42588 ac_status=$?
42589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42590 (exit $ac_status); }; }; then
42591 glibcxx_cv_func___builtin_fabsf_use=yes
42592 else
42593 echo "$as_me: failed program was:" >&5
42594 sed 's/^/| /' conftest.$ac_ext >&5
42596 glibcxx_cv_func___builtin_fabsf_use=no
42598 rm -f conftest.$ac_objext conftest.$ac_ext
42599 ac_ext=c
42600 ac_cpp='$CPP $CPPFLAGS'
42601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42609 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
42610 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
42611 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
42612 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
42613 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
42614 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
42615 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
42616 echo $ECHO_N "(cached) $ECHO_C" >&6
42617 else
42619 if test x$gcc_no_link = xyes; then
42620 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42621 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42622 { (exit 1); exit 1; }; }
42624 cat >conftest.$ac_ext <<_ACEOF
42625 #line $LINENO "configure"
42626 /* confdefs.h. */
42627 _ACEOF
42628 cat confdefs.h >>conftest.$ac_ext
42629 cat >>conftest.$ac_ext <<_ACEOF
42630 /* end confdefs.h. */
42631 #include <math.h>
42633 main ()
42635 __builtin_fabsf(0);
42637 return 0;
42639 _ACEOF
42640 rm -f conftest.$ac_objext conftest$ac_exeext
42641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42642 (eval $ac_link) 2>&5
42643 ac_status=$?
42644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645 (exit $ac_status); } &&
42646 { ac_try='test -s conftest$ac_exeext'
42647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42648 (eval $ac_try) 2>&5
42649 ac_status=$?
42650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651 (exit $ac_status); }; }; then
42652 glibcxx_cv_func___builtin_fabsf_link=yes
42653 else
42654 echo "$as_me: failed program was:" >&5
42655 sed 's/^/| /' conftest.$ac_ext >&5
42657 glibcxx_cv_func___builtin_fabsf_link=no
42659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42664 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
42665 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
42666 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
42667 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42668 cat >>confdefs.h <<_ACEOF
42669 #define ${ac_tr_func} 1
42670 _ACEOF
42676 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
42677 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
42678 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
42679 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
42680 echo $ECHO_N "(cached) $ECHO_C" >&6
42681 else
42685 ac_ext=cc
42686 ac_cpp='$CXXCPP $CPPFLAGS'
42687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42691 cat >conftest.$ac_ext <<_ACEOF
42692 #line $LINENO "configure"
42693 /* confdefs.h. */
42694 _ACEOF
42695 cat confdefs.h >>conftest.$ac_ext
42696 cat >>conftest.$ac_ext <<_ACEOF
42697 /* end confdefs.h. */
42698 #include <math.h>
42700 main ()
42702 __builtin_fabs(0);
42704 return 0;
42706 _ACEOF
42707 rm -f conftest.$ac_objext
42708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42709 (eval $ac_compile) 2>&5
42710 ac_status=$?
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); } &&
42713 { ac_try='test -s conftest.$ac_objext'
42714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42715 (eval $ac_try) 2>&5
42716 ac_status=$?
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); }; }; then
42719 glibcxx_cv_func___builtin_fabs_use=yes
42720 else
42721 echo "$as_me: failed program was:" >&5
42722 sed 's/^/| /' conftest.$ac_ext >&5
42724 glibcxx_cv_func___builtin_fabs_use=no
42726 rm -f conftest.$ac_objext conftest.$ac_ext
42727 ac_ext=c
42728 ac_cpp='$CPP $CPPFLAGS'
42729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42737 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
42738 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
42739 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
42740 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
42741 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
42742 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
42743 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
42744 echo $ECHO_N "(cached) $ECHO_C" >&6
42745 else
42747 if test x$gcc_no_link = xyes; then
42748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42750 { (exit 1); exit 1; }; }
42752 cat >conftest.$ac_ext <<_ACEOF
42753 #line $LINENO "configure"
42754 /* confdefs.h. */
42755 _ACEOF
42756 cat confdefs.h >>conftest.$ac_ext
42757 cat >>conftest.$ac_ext <<_ACEOF
42758 /* end confdefs.h. */
42759 #include <math.h>
42761 main ()
42763 __builtin_fabs(0);
42765 return 0;
42767 _ACEOF
42768 rm -f conftest.$ac_objext conftest$ac_exeext
42769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42770 (eval $ac_link) 2>&5
42771 ac_status=$?
42772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42773 (exit $ac_status); } &&
42774 { ac_try='test -s conftest$ac_exeext'
42775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42776 (eval $ac_try) 2>&5
42777 ac_status=$?
42778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42779 (exit $ac_status); }; }; then
42780 glibcxx_cv_func___builtin_fabs_link=yes
42781 else
42782 echo "$as_me: failed program was:" >&5
42783 sed 's/^/| /' conftest.$ac_ext >&5
42785 glibcxx_cv_func___builtin_fabs_link=no
42787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42792 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
42793 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
42794 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
42795 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42796 cat >>confdefs.h <<_ACEOF
42797 #define ${ac_tr_func} 1
42798 _ACEOF
42804 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
42805 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
42806 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
42807 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
42808 echo $ECHO_N "(cached) $ECHO_C" >&6
42809 else
42813 ac_ext=cc
42814 ac_cpp='$CXXCPP $CPPFLAGS'
42815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42819 cat >conftest.$ac_ext <<_ACEOF
42820 #line $LINENO "configure"
42821 /* confdefs.h. */
42822 _ACEOF
42823 cat confdefs.h >>conftest.$ac_ext
42824 cat >>conftest.$ac_ext <<_ACEOF
42825 /* end confdefs.h. */
42826 #include <math.h>
42828 main ()
42830 __builtin_fabsl(0);
42832 return 0;
42834 _ACEOF
42835 rm -f conftest.$ac_objext
42836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42837 (eval $ac_compile) 2>&5
42838 ac_status=$?
42839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42840 (exit $ac_status); } &&
42841 { ac_try='test -s conftest.$ac_objext'
42842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42843 (eval $ac_try) 2>&5
42844 ac_status=$?
42845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42846 (exit $ac_status); }; }; then
42847 glibcxx_cv_func___builtin_fabsl_use=yes
42848 else
42849 echo "$as_me: failed program was:" >&5
42850 sed 's/^/| /' conftest.$ac_ext >&5
42852 glibcxx_cv_func___builtin_fabsl_use=no
42854 rm -f conftest.$ac_objext conftest.$ac_ext
42855 ac_ext=c
42856 ac_cpp='$CPP $CPPFLAGS'
42857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42865 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
42866 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
42867 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
42868 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
42869 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
42870 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
42871 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
42872 echo $ECHO_N "(cached) $ECHO_C" >&6
42873 else
42875 if test x$gcc_no_link = xyes; then
42876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42878 { (exit 1); exit 1; }; }
42880 cat >conftest.$ac_ext <<_ACEOF
42881 #line $LINENO "configure"
42882 /* confdefs.h. */
42883 _ACEOF
42884 cat confdefs.h >>conftest.$ac_ext
42885 cat >>conftest.$ac_ext <<_ACEOF
42886 /* end confdefs.h. */
42887 #include <math.h>
42889 main ()
42891 __builtin_fabsl(0);
42893 return 0;
42895 _ACEOF
42896 rm -f conftest.$ac_objext conftest$ac_exeext
42897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42898 (eval $ac_link) 2>&5
42899 ac_status=$?
42900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901 (exit $ac_status); } &&
42902 { ac_try='test -s conftest$ac_exeext'
42903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42904 (eval $ac_try) 2>&5
42905 ac_status=$?
42906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907 (exit $ac_status); }; }; then
42908 glibcxx_cv_func___builtin_fabsl_link=yes
42909 else
42910 echo "$as_me: failed program was:" >&5
42911 sed 's/^/| /' conftest.$ac_ext >&5
42913 glibcxx_cv_func___builtin_fabsl_link=no
42915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42920 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
42921 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
42922 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
42923 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42924 cat >>confdefs.h <<_ACEOF
42925 #define ${ac_tr_func} 1
42926 _ACEOF
42932 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
42933 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
42934 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
42935 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
42936 echo $ECHO_N "(cached) $ECHO_C" >&6
42937 else
42941 ac_ext=cc
42942 ac_cpp='$CXXCPP $CPPFLAGS'
42943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42947 cat >conftest.$ac_ext <<_ACEOF
42948 #line $LINENO "configure"
42949 /* confdefs.h. */
42950 _ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h. */
42954 #include <math.h>
42956 main ()
42958 __builtin_labs(0);
42960 return 0;
42962 _ACEOF
42963 rm -f conftest.$ac_objext
42964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42965 (eval $ac_compile) 2>&5
42966 ac_status=$?
42967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42968 (exit $ac_status); } &&
42969 { ac_try='test -s conftest.$ac_objext'
42970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42971 (eval $ac_try) 2>&5
42972 ac_status=$?
42973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42974 (exit $ac_status); }; }; then
42975 glibcxx_cv_func___builtin_labs_use=yes
42976 else
42977 echo "$as_me: failed program was:" >&5
42978 sed 's/^/| /' conftest.$ac_ext >&5
42980 glibcxx_cv_func___builtin_labs_use=no
42982 rm -f conftest.$ac_objext conftest.$ac_ext
42983 ac_ext=c
42984 ac_cpp='$CPP $CPPFLAGS'
42985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42993 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
42994 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
42995 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
42996 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
42997 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
42998 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
42999 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
43000 echo $ECHO_N "(cached) $ECHO_C" >&6
43001 else
43003 if test x$gcc_no_link = xyes; then
43004 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43006 { (exit 1); exit 1; }; }
43008 cat >conftest.$ac_ext <<_ACEOF
43009 #line $LINENO "configure"
43010 /* confdefs.h. */
43011 _ACEOF
43012 cat confdefs.h >>conftest.$ac_ext
43013 cat >>conftest.$ac_ext <<_ACEOF
43014 /* end confdefs.h. */
43015 #include <math.h>
43017 main ()
43019 __builtin_labs(0);
43021 return 0;
43023 _ACEOF
43024 rm -f conftest.$ac_objext conftest$ac_exeext
43025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43026 (eval $ac_link) 2>&5
43027 ac_status=$?
43028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43029 (exit $ac_status); } &&
43030 { ac_try='test -s conftest$ac_exeext'
43031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43032 (eval $ac_try) 2>&5
43033 ac_status=$?
43034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43035 (exit $ac_status); }; }; then
43036 glibcxx_cv_func___builtin_labs_link=yes
43037 else
43038 echo "$as_me: failed program was:" >&5
43039 sed 's/^/| /' conftest.$ac_ext >&5
43041 glibcxx_cv_func___builtin_labs_link=no
43043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43048 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
43049 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
43050 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
43051 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43052 cat >>confdefs.h <<_ACEOF
43053 #define ${ac_tr_func} 1
43054 _ACEOF
43061 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
43062 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
43063 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
43064 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
43065 echo $ECHO_N "(cached) $ECHO_C" >&6
43066 else
43070 ac_ext=cc
43071 ac_cpp='$CXXCPP $CPPFLAGS'
43072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43076 cat >conftest.$ac_ext <<_ACEOF
43077 #line $LINENO "configure"
43078 /* confdefs.h. */
43079 _ACEOF
43080 cat confdefs.h >>conftest.$ac_ext
43081 cat >>conftest.$ac_ext <<_ACEOF
43082 /* end confdefs.h. */
43083 #include <math.h>
43085 main ()
43087 __builtin_sqrtf(0);
43089 return 0;
43091 _ACEOF
43092 rm -f conftest.$ac_objext
43093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43094 (eval $ac_compile) 2>&5
43095 ac_status=$?
43096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43097 (exit $ac_status); } &&
43098 { ac_try='test -s conftest.$ac_objext'
43099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43100 (eval $ac_try) 2>&5
43101 ac_status=$?
43102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43103 (exit $ac_status); }; }; then
43104 glibcxx_cv_func___builtin_sqrtf_use=yes
43105 else
43106 echo "$as_me: failed program was:" >&5
43107 sed 's/^/| /' conftest.$ac_ext >&5
43109 glibcxx_cv_func___builtin_sqrtf_use=no
43111 rm -f conftest.$ac_objext conftest.$ac_ext
43112 ac_ext=c
43113 ac_cpp='$CPP $CPPFLAGS'
43114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43122 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
43123 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
43124 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
43125 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
43126 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
43127 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
43128 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
43129 echo $ECHO_N "(cached) $ECHO_C" >&6
43130 else
43132 if test x$gcc_no_link = xyes; then
43133 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43134 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43135 { (exit 1); exit 1; }; }
43137 cat >conftest.$ac_ext <<_ACEOF
43138 #line $LINENO "configure"
43139 /* confdefs.h. */
43140 _ACEOF
43141 cat confdefs.h >>conftest.$ac_ext
43142 cat >>conftest.$ac_ext <<_ACEOF
43143 /* end confdefs.h. */
43144 #include <math.h>
43146 main ()
43148 __builtin_sqrtf(0);
43150 return 0;
43152 _ACEOF
43153 rm -f conftest.$ac_objext conftest$ac_exeext
43154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43155 (eval $ac_link) 2>&5
43156 ac_status=$?
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); } &&
43159 { ac_try='test -s conftest$ac_exeext'
43160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43161 (eval $ac_try) 2>&5
43162 ac_status=$?
43163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43164 (exit $ac_status); }; }; then
43165 glibcxx_cv_func___builtin_sqrtf_link=yes
43166 else
43167 echo "$as_me: failed program was:" >&5
43168 sed 's/^/| /' conftest.$ac_ext >&5
43170 glibcxx_cv_func___builtin_sqrtf_link=no
43172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43177 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
43178 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
43179 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
43180 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43181 cat >>confdefs.h <<_ACEOF
43182 #define ${ac_tr_func} 1
43183 _ACEOF
43189 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
43190 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
43191 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
43192 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
43193 echo $ECHO_N "(cached) $ECHO_C" >&6
43194 else
43198 ac_ext=cc
43199 ac_cpp='$CXXCPP $CPPFLAGS'
43200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43204 cat >conftest.$ac_ext <<_ACEOF
43205 #line $LINENO "configure"
43206 /* confdefs.h. */
43207 _ACEOF
43208 cat confdefs.h >>conftest.$ac_ext
43209 cat >>conftest.$ac_ext <<_ACEOF
43210 /* end confdefs.h. */
43211 #include <math.h>
43213 main ()
43215 __builtin_sqrt(0);
43217 return 0;
43219 _ACEOF
43220 rm -f conftest.$ac_objext
43221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43222 (eval $ac_compile) 2>&5
43223 ac_status=$?
43224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43225 (exit $ac_status); } &&
43226 { ac_try='test -s conftest.$ac_objext'
43227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43228 (eval $ac_try) 2>&5
43229 ac_status=$?
43230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43231 (exit $ac_status); }; }; then
43232 glibcxx_cv_func___builtin_sqrt_use=yes
43233 else
43234 echo "$as_me: failed program was:" >&5
43235 sed 's/^/| /' conftest.$ac_ext >&5
43237 glibcxx_cv_func___builtin_sqrt_use=no
43239 rm -f conftest.$ac_objext conftest.$ac_ext
43240 ac_ext=c
43241 ac_cpp='$CPP $CPPFLAGS'
43242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43250 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
43251 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
43252 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
43253 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
43254 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
43255 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
43256 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
43257 echo $ECHO_N "(cached) $ECHO_C" >&6
43258 else
43260 if test x$gcc_no_link = xyes; then
43261 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43262 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43263 { (exit 1); exit 1; }; }
43265 cat >conftest.$ac_ext <<_ACEOF
43266 #line $LINENO "configure"
43267 /* confdefs.h. */
43268 _ACEOF
43269 cat confdefs.h >>conftest.$ac_ext
43270 cat >>conftest.$ac_ext <<_ACEOF
43271 /* end confdefs.h. */
43272 #include <math.h>
43274 main ()
43276 __builtin_sqrt(0);
43278 return 0;
43280 _ACEOF
43281 rm -f conftest.$ac_objext conftest$ac_exeext
43282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43283 (eval $ac_link) 2>&5
43284 ac_status=$?
43285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43286 (exit $ac_status); } &&
43287 { ac_try='test -s conftest$ac_exeext'
43288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43289 (eval $ac_try) 2>&5
43290 ac_status=$?
43291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43292 (exit $ac_status); }; }; then
43293 glibcxx_cv_func___builtin_sqrt_link=yes
43294 else
43295 echo "$as_me: failed program was:" >&5
43296 sed 's/^/| /' conftest.$ac_ext >&5
43298 glibcxx_cv_func___builtin_sqrt_link=no
43300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43305 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
43306 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
43307 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
43308 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43309 cat >>confdefs.h <<_ACEOF
43310 #define ${ac_tr_func} 1
43311 _ACEOF
43317 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
43318 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
43319 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
43320 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
43321 echo $ECHO_N "(cached) $ECHO_C" >&6
43322 else
43326 ac_ext=cc
43327 ac_cpp='$CXXCPP $CPPFLAGS'
43328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43332 cat >conftest.$ac_ext <<_ACEOF
43333 #line $LINENO "configure"
43334 /* confdefs.h. */
43335 _ACEOF
43336 cat confdefs.h >>conftest.$ac_ext
43337 cat >>conftest.$ac_ext <<_ACEOF
43338 /* end confdefs.h. */
43339 #include <math.h>
43341 main ()
43343 __builtin_sqrtl(0);
43345 return 0;
43347 _ACEOF
43348 rm -f conftest.$ac_objext
43349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43350 (eval $ac_compile) 2>&5
43351 ac_status=$?
43352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43353 (exit $ac_status); } &&
43354 { ac_try='test -s conftest.$ac_objext'
43355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43356 (eval $ac_try) 2>&5
43357 ac_status=$?
43358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43359 (exit $ac_status); }; }; then
43360 glibcxx_cv_func___builtin_sqrtl_use=yes
43361 else
43362 echo "$as_me: failed program was:" >&5
43363 sed 's/^/| /' conftest.$ac_ext >&5
43365 glibcxx_cv_func___builtin_sqrtl_use=no
43367 rm -f conftest.$ac_objext conftest.$ac_ext
43368 ac_ext=c
43369 ac_cpp='$CPP $CPPFLAGS'
43370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43378 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
43379 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
43380 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
43381 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
43382 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
43383 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
43384 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
43385 echo $ECHO_N "(cached) $ECHO_C" >&6
43386 else
43388 if test x$gcc_no_link = xyes; then
43389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43391 { (exit 1); exit 1; }; }
43393 cat >conftest.$ac_ext <<_ACEOF
43394 #line $LINENO "configure"
43395 /* confdefs.h. */
43396 _ACEOF
43397 cat confdefs.h >>conftest.$ac_ext
43398 cat >>conftest.$ac_ext <<_ACEOF
43399 /* end confdefs.h. */
43400 #include <math.h>
43402 main ()
43404 __builtin_sqrtl(0);
43406 return 0;
43408 _ACEOF
43409 rm -f conftest.$ac_objext conftest$ac_exeext
43410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43411 (eval $ac_link) 2>&5
43412 ac_status=$?
43413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43414 (exit $ac_status); } &&
43415 { ac_try='test -s conftest$ac_exeext'
43416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43417 (eval $ac_try) 2>&5
43418 ac_status=$?
43419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420 (exit $ac_status); }; }; then
43421 glibcxx_cv_func___builtin_sqrtl_link=yes
43422 else
43423 echo "$as_me: failed program was:" >&5
43424 sed 's/^/| /' conftest.$ac_ext >&5
43426 glibcxx_cv_func___builtin_sqrtl_link=no
43428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43433 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
43434 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
43435 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
43436 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43437 cat >>confdefs.h <<_ACEOF
43438 #define ${ac_tr_func} 1
43439 _ACEOF
43446 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
43447 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
43448 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
43449 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
43450 echo $ECHO_N "(cached) $ECHO_C" >&6
43451 else
43455 ac_ext=cc
43456 ac_cpp='$CXXCPP $CPPFLAGS'
43457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43461 cat >conftest.$ac_ext <<_ACEOF
43462 #line $LINENO "configure"
43463 /* confdefs.h. */
43464 _ACEOF
43465 cat confdefs.h >>conftest.$ac_ext
43466 cat >>conftest.$ac_ext <<_ACEOF
43467 /* end confdefs.h. */
43468 #include <math.h>
43470 main ()
43472 __builtin_sinf(0);
43474 return 0;
43476 _ACEOF
43477 rm -f conftest.$ac_objext
43478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43479 (eval $ac_compile) 2>&5
43480 ac_status=$?
43481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43482 (exit $ac_status); } &&
43483 { ac_try='test -s conftest.$ac_objext'
43484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43485 (eval $ac_try) 2>&5
43486 ac_status=$?
43487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488 (exit $ac_status); }; }; then
43489 glibcxx_cv_func___builtin_sinf_use=yes
43490 else
43491 echo "$as_me: failed program was:" >&5
43492 sed 's/^/| /' conftest.$ac_ext >&5
43494 glibcxx_cv_func___builtin_sinf_use=no
43496 rm -f conftest.$ac_objext conftest.$ac_ext
43497 ac_ext=c
43498 ac_cpp='$CPP $CPPFLAGS'
43499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43507 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
43508 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
43509 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
43510 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
43511 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
43512 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
43513 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
43514 echo $ECHO_N "(cached) $ECHO_C" >&6
43515 else
43517 if test x$gcc_no_link = xyes; then
43518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43520 { (exit 1); exit 1; }; }
43522 cat >conftest.$ac_ext <<_ACEOF
43523 #line $LINENO "configure"
43524 /* confdefs.h. */
43525 _ACEOF
43526 cat confdefs.h >>conftest.$ac_ext
43527 cat >>conftest.$ac_ext <<_ACEOF
43528 /* end confdefs.h. */
43529 #include <math.h>
43531 main ()
43533 __builtin_sinf(0);
43535 return 0;
43537 _ACEOF
43538 rm -f conftest.$ac_objext conftest$ac_exeext
43539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43540 (eval $ac_link) 2>&5
43541 ac_status=$?
43542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43543 (exit $ac_status); } &&
43544 { ac_try='test -s conftest$ac_exeext'
43545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43546 (eval $ac_try) 2>&5
43547 ac_status=$?
43548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549 (exit $ac_status); }; }; then
43550 glibcxx_cv_func___builtin_sinf_link=yes
43551 else
43552 echo "$as_me: failed program was:" >&5
43553 sed 's/^/| /' conftest.$ac_ext >&5
43555 glibcxx_cv_func___builtin_sinf_link=no
43557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43562 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
43563 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
43564 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
43565 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43566 cat >>confdefs.h <<_ACEOF
43567 #define ${ac_tr_func} 1
43568 _ACEOF
43574 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
43575 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
43576 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
43577 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
43578 echo $ECHO_N "(cached) $ECHO_C" >&6
43579 else
43583 ac_ext=cc
43584 ac_cpp='$CXXCPP $CPPFLAGS'
43585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43589 cat >conftest.$ac_ext <<_ACEOF
43590 #line $LINENO "configure"
43591 /* confdefs.h. */
43592 _ACEOF
43593 cat confdefs.h >>conftest.$ac_ext
43594 cat >>conftest.$ac_ext <<_ACEOF
43595 /* end confdefs.h. */
43596 #include <math.h>
43598 main ()
43600 __builtin_sin(0);
43602 return 0;
43604 _ACEOF
43605 rm -f conftest.$ac_objext
43606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43607 (eval $ac_compile) 2>&5
43608 ac_status=$?
43609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43610 (exit $ac_status); } &&
43611 { ac_try='test -s conftest.$ac_objext'
43612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43613 (eval $ac_try) 2>&5
43614 ac_status=$?
43615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616 (exit $ac_status); }; }; then
43617 glibcxx_cv_func___builtin_sin_use=yes
43618 else
43619 echo "$as_me: failed program was:" >&5
43620 sed 's/^/| /' conftest.$ac_ext >&5
43622 glibcxx_cv_func___builtin_sin_use=no
43624 rm -f conftest.$ac_objext conftest.$ac_ext
43625 ac_ext=c
43626 ac_cpp='$CPP $CPPFLAGS'
43627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43635 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
43636 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
43637 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
43638 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
43639 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
43640 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
43641 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
43642 echo $ECHO_N "(cached) $ECHO_C" >&6
43643 else
43645 if test x$gcc_no_link = xyes; then
43646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43648 { (exit 1); exit 1; }; }
43650 cat >conftest.$ac_ext <<_ACEOF
43651 #line $LINENO "configure"
43652 /* confdefs.h. */
43653 _ACEOF
43654 cat confdefs.h >>conftest.$ac_ext
43655 cat >>conftest.$ac_ext <<_ACEOF
43656 /* end confdefs.h. */
43657 #include <math.h>
43659 main ()
43661 __builtin_sin(0);
43663 return 0;
43665 _ACEOF
43666 rm -f conftest.$ac_objext conftest$ac_exeext
43667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43668 (eval $ac_link) 2>&5
43669 ac_status=$?
43670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671 (exit $ac_status); } &&
43672 { ac_try='test -s conftest$ac_exeext'
43673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43674 (eval $ac_try) 2>&5
43675 ac_status=$?
43676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677 (exit $ac_status); }; }; then
43678 glibcxx_cv_func___builtin_sin_link=yes
43679 else
43680 echo "$as_me: failed program was:" >&5
43681 sed 's/^/| /' conftest.$ac_ext >&5
43683 glibcxx_cv_func___builtin_sin_link=no
43685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43690 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
43691 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
43692 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
43693 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43694 cat >>confdefs.h <<_ACEOF
43695 #define ${ac_tr_func} 1
43696 _ACEOF
43702 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
43703 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
43704 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
43705 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
43706 echo $ECHO_N "(cached) $ECHO_C" >&6
43707 else
43711 ac_ext=cc
43712 ac_cpp='$CXXCPP $CPPFLAGS'
43713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43717 cat >conftest.$ac_ext <<_ACEOF
43718 #line $LINENO "configure"
43719 /* confdefs.h. */
43720 _ACEOF
43721 cat confdefs.h >>conftest.$ac_ext
43722 cat >>conftest.$ac_ext <<_ACEOF
43723 /* end confdefs.h. */
43724 #include <math.h>
43726 main ()
43728 __builtin_sinl(0);
43730 return 0;
43732 _ACEOF
43733 rm -f conftest.$ac_objext
43734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43735 (eval $ac_compile) 2>&5
43736 ac_status=$?
43737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 (exit $ac_status); } &&
43739 { ac_try='test -s conftest.$ac_objext'
43740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43741 (eval $ac_try) 2>&5
43742 ac_status=$?
43743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43744 (exit $ac_status); }; }; then
43745 glibcxx_cv_func___builtin_sinl_use=yes
43746 else
43747 echo "$as_me: failed program was:" >&5
43748 sed 's/^/| /' conftest.$ac_ext >&5
43750 glibcxx_cv_func___builtin_sinl_use=no
43752 rm -f conftest.$ac_objext conftest.$ac_ext
43753 ac_ext=c
43754 ac_cpp='$CPP $CPPFLAGS'
43755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43763 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
43764 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
43765 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
43766 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
43767 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
43768 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
43769 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
43770 echo $ECHO_N "(cached) $ECHO_C" >&6
43771 else
43773 if test x$gcc_no_link = xyes; then
43774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43775 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43776 { (exit 1); exit 1; }; }
43778 cat >conftest.$ac_ext <<_ACEOF
43779 #line $LINENO "configure"
43780 /* confdefs.h. */
43781 _ACEOF
43782 cat confdefs.h >>conftest.$ac_ext
43783 cat >>conftest.$ac_ext <<_ACEOF
43784 /* end confdefs.h. */
43785 #include <math.h>
43787 main ()
43789 __builtin_sinl(0);
43791 return 0;
43793 _ACEOF
43794 rm -f conftest.$ac_objext conftest$ac_exeext
43795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43796 (eval $ac_link) 2>&5
43797 ac_status=$?
43798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799 (exit $ac_status); } &&
43800 { ac_try='test -s conftest$ac_exeext'
43801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43802 (eval $ac_try) 2>&5
43803 ac_status=$?
43804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43805 (exit $ac_status); }; }; then
43806 glibcxx_cv_func___builtin_sinl_link=yes
43807 else
43808 echo "$as_me: failed program was:" >&5
43809 sed 's/^/| /' conftest.$ac_ext >&5
43811 glibcxx_cv_func___builtin_sinl_link=no
43813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43818 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
43819 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
43820 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
43821 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43822 cat >>confdefs.h <<_ACEOF
43823 #define ${ac_tr_func} 1
43824 _ACEOF
43831 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
43832 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
43833 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
43834 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
43835 echo $ECHO_N "(cached) $ECHO_C" >&6
43836 else
43840 ac_ext=cc
43841 ac_cpp='$CXXCPP $CPPFLAGS'
43842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43846 cat >conftest.$ac_ext <<_ACEOF
43847 #line $LINENO "configure"
43848 /* confdefs.h. */
43849 _ACEOF
43850 cat confdefs.h >>conftest.$ac_ext
43851 cat >>conftest.$ac_ext <<_ACEOF
43852 /* end confdefs.h. */
43853 #include <math.h>
43855 main ()
43857 __builtin_cosf(0);
43859 return 0;
43861 _ACEOF
43862 rm -f conftest.$ac_objext
43863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43864 (eval $ac_compile) 2>&5
43865 ac_status=$?
43866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43867 (exit $ac_status); } &&
43868 { ac_try='test -s conftest.$ac_objext'
43869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43870 (eval $ac_try) 2>&5
43871 ac_status=$?
43872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43873 (exit $ac_status); }; }; then
43874 glibcxx_cv_func___builtin_cosf_use=yes
43875 else
43876 echo "$as_me: failed program was:" >&5
43877 sed 's/^/| /' conftest.$ac_ext >&5
43879 glibcxx_cv_func___builtin_cosf_use=no
43881 rm -f conftest.$ac_objext conftest.$ac_ext
43882 ac_ext=c
43883 ac_cpp='$CPP $CPPFLAGS'
43884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43892 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
43893 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
43894 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
43895 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
43896 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
43897 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
43898 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
43899 echo $ECHO_N "(cached) $ECHO_C" >&6
43900 else
43902 if test x$gcc_no_link = xyes; then
43903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43904 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43905 { (exit 1); exit 1; }; }
43907 cat >conftest.$ac_ext <<_ACEOF
43908 #line $LINENO "configure"
43909 /* confdefs.h. */
43910 _ACEOF
43911 cat confdefs.h >>conftest.$ac_ext
43912 cat >>conftest.$ac_ext <<_ACEOF
43913 /* end confdefs.h. */
43914 #include <math.h>
43916 main ()
43918 __builtin_cosf(0);
43920 return 0;
43922 _ACEOF
43923 rm -f conftest.$ac_objext conftest$ac_exeext
43924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43925 (eval $ac_link) 2>&5
43926 ac_status=$?
43927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928 (exit $ac_status); } &&
43929 { ac_try='test -s conftest$ac_exeext'
43930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43931 (eval $ac_try) 2>&5
43932 ac_status=$?
43933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43934 (exit $ac_status); }; }; then
43935 glibcxx_cv_func___builtin_cosf_link=yes
43936 else
43937 echo "$as_me: failed program was:" >&5
43938 sed 's/^/| /' conftest.$ac_ext >&5
43940 glibcxx_cv_func___builtin_cosf_link=no
43942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43947 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
43948 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
43949 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
43950 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43951 cat >>confdefs.h <<_ACEOF
43952 #define ${ac_tr_func} 1
43953 _ACEOF
43959 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
43960 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
43961 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
43962 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
43963 echo $ECHO_N "(cached) $ECHO_C" >&6
43964 else
43968 ac_ext=cc
43969 ac_cpp='$CXXCPP $CPPFLAGS'
43970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43974 cat >conftest.$ac_ext <<_ACEOF
43975 #line $LINENO "configure"
43976 /* confdefs.h. */
43977 _ACEOF
43978 cat confdefs.h >>conftest.$ac_ext
43979 cat >>conftest.$ac_ext <<_ACEOF
43980 /* end confdefs.h. */
43981 #include <math.h>
43983 main ()
43985 __builtin_cos(0);
43987 return 0;
43989 _ACEOF
43990 rm -f conftest.$ac_objext
43991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43992 (eval $ac_compile) 2>&5
43993 ac_status=$?
43994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995 (exit $ac_status); } &&
43996 { ac_try='test -s conftest.$ac_objext'
43997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43998 (eval $ac_try) 2>&5
43999 ac_status=$?
44000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44001 (exit $ac_status); }; }; then
44002 glibcxx_cv_func___builtin_cos_use=yes
44003 else
44004 echo "$as_me: failed program was:" >&5
44005 sed 's/^/| /' conftest.$ac_ext >&5
44007 glibcxx_cv_func___builtin_cos_use=no
44009 rm -f conftest.$ac_objext conftest.$ac_ext
44010 ac_ext=c
44011 ac_cpp='$CPP $CPPFLAGS'
44012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44020 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
44021 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
44022 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
44023 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
44024 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
44025 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
44026 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
44027 echo $ECHO_N "(cached) $ECHO_C" >&6
44028 else
44030 if test x$gcc_no_link = xyes; then
44031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44033 { (exit 1); exit 1; }; }
44035 cat >conftest.$ac_ext <<_ACEOF
44036 #line $LINENO "configure"
44037 /* confdefs.h. */
44038 _ACEOF
44039 cat confdefs.h >>conftest.$ac_ext
44040 cat >>conftest.$ac_ext <<_ACEOF
44041 /* end confdefs.h. */
44042 #include <math.h>
44044 main ()
44046 __builtin_cos(0);
44048 return 0;
44050 _ACEOF
44051 rm -f conftest.$ac_objext conftest$ac_exeext
44052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44053 (eval $ac_link) 2>&5
44054 ac_status=$?
44055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44056 (exit $ac_status); } &&
44057 { ac_try='test -s conftest$ac_exeext'
44058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44059 (eval $ac_try) 2>&5
44060 ac_status=$?
44061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44062 (exit $ac_status); }; }; then
44063 glibcxx_cv_func___builtin_cos_link=yes
44064 else
44065 echo "$as_me: failed program was:" >&5
44066 sed 's/^/| /' conftest.$ac_ext >&5
44068 glibcxx_cv_func___builtin_cos_link=no
44070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44075 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
44076 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
44077 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
44078 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
44079 cat >>confdefs.h <<_ACEOF
44080 #define ${ac_tr_func} 1
44081 _ACEOF
44087 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
44088 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
44089 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
44090 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
44091 echo $ECHO_N "(cached) $ECHO_C" >&6
44092 else
44096 ac_ext=cc
44097 ac_cpp='$CXXCPP $CPPFLAGS'
44098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44102 cat >conftest.$ac_ext <<_ACEOF
44103 #line $LINENO "configure"
44104 /* confdefs.h. */
44105 _ACEOF
44106 cat confdefs.h >>conftest.$ac_ext
44107 cat >>conftest.$ac_ext <<_ACEOF
44108 /* end confdefs.h. */
44109 #include <math.h>
44111 main ()
44113 __builtin_cosl(0);
44115 return 0;
44117 _ACEOF
44118 rm -f conftest.$ac_objext
44119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44120 (eval $ac_compile) 2>&5
44121 ac_status=$?
44122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44123 (exit $ac_status); } &&
44124 { ac_try='test -s conftest.$ac_objext'
44125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44126 (eval $ac_try) 2>&5
44127 ac_status=$?
44128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129 (exit $ac_status); }; }; then
44130 glibcxx_cv_func___builtin_cosl_use=yes
44131 else
44132 echo "$as_me: failed program was:" >&5
44133 sed 's/^/| /' conftest.$ac_ext >&5
44135 glibcxx_cv_func___builtin_cosl_use=no
44137 rm -f conftest.$ac_objext conftest.$ac_ext
44138 ac_ext=c
44139 ac_cpp='$CPP $CPPFLAGS'
44140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44148 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
44149 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
44150 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
44151 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
44152 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
44153 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
44154 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
44155 echo $ECHO_N "(cached) $ECHO_C" >&6
44156 else
44158 if test x$gcc_no_link = xyes; then
44159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44161 { (exit 1); exit 1; }; }
44163 cat >conftest.$ac_ext <<_ACEOF
44164 #line $LINENO "configure"
44165 /* confdefs.h. */
44166 _ACEOF
44167 cat confdefs.h >>conftest.$ac_ext
44168 cat >>conftest.$ac_ext <<_ACEOF
44169 /* end confdefs.h. */
44170 #include <math.h>
44172 main ()
44174 __builtin_cosl(0);
44176 return 0;
44178 _ACEOF
44179 rm -f conftest.$ac_objext conftest$ac_exeext
44180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44181 (eval $ac_link) 2>&5
44182 ac_status=$?
44183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44184 (exit $ac_status); } &&
44185 { ac_try='test -s conftest$ac_exeext'
44186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44187 (eval $ac_try) 2>&5
44188 ac_status=$?
44189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44190 (exit $ac_status); }; }; then
44191 glibcxx_cv_func___builtin_cosl_link=yes
44192 else
44193 echo "$as_me: failed program was:" >&5
44194 sed 's/^/| /' conftest.$ac_ext >&5
44196 glibcxx_cv_func___builtin_cosl_link=no
44198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44203 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
44204 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
44205 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
44206 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
44207 cat >>confdefs.h <<_ACEOF
44208 #define ${ac_tr_func} 1
44209 _ACEOF
44215 dummyvar=no
44216 if test x$dummyvar = x"yes"; then
44217 cat >>confdefs.h <<\_ACEOF
44218 #define HAVE___BUILTIN_ABS 1
44219 _ACEOF
44221 cat >>confdefs.h <<\_ACEOF
44222 #define HAVE___BUILTIN_LABS 1
44223 _ACEOF
44225 cat >>confdefs.h <<\_ACEOF
44226 #define HAVE___BUILTIN_COS 1
44227 _ACEOF
44229 cat >>confdefs.h <<\_ACEOF
44230 #define HAVE___BUILTIN_COSF 1
44231 _ACEOF
44233 cat >>confdefs.h <<\_ACEOF
44234 #define HAVE___BUILTIN_COSL 1
44235 _ACEOF
44237 cat >>confdefs.h <<\_ACEOF
44238 #define HAVE___BUILTIN_FABS 1
44239 _ACEOF
44241 cat >>confdefs.h <<\_ACEOF
44242 #define HAVE___BUILTIN_FABSF 1
44243 _ACEOF
44245 cat >>confdefs.h <<\_ACEOF
44246 #define HAVE___BUILTIN_FABSL 1
44247 _ACEOF
44249 cat >>confdefs.h <<\_ACEOF
44250 #define HAVE___BUILTIN_SIN 1
44251 _ACEOF
44253 cat >>confdefs.h <<\_ACEOF
44254 #define HAVE___BUILTIN_SINF 1
44255 _ACEOF
44257 cat >>confdefs.h <<\_ACEOF
44258 #define HAVE___BUILTIN_SINL 1
44259 _ACEOF
44261 cat >>confdefs.h <<\_ACEOF
44262 #define HAVE___BUILTIN_SQRT 1
44263 _ACEOF
44265 cat >>confdefs.h <<\_ACEOF
44266 #define HAVE___BUILTIN_SQRTF 1
44267 _ACEOF
44269 cat >>confdefs.h <<\_ACEOF
44270 #define HAVE___BUILTIN_SQRTL 1
44271 _ACEOF
44277 echo "$as_me:$LINENO: checking for main in -lm" >&5
44278 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
44279 if test "${ac_cv_lib_m_main+set}" = set; then
44280 echo $ECHO_N "(cached) $ECHO_C" >&6
44281 else
44282 ac_check_lib_save_LIBS=$LIBS
44283 LIBS="-lm $LIBS"
44284 if test x$gcc_no_link = xyes; then
44285 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44287 { (exit 1); exit 1; }; }
44289 cat >conftest.$ac_ext <<_ACEOF
44290 #line $LINENO "configure"
44291 /* confdefs.h. */
44292 _ACEOF
44293 cat confdefs.h >>conftest.$ac_ext
44294 cat >>conftest.$ac_ext <<_ACEOF
44295 /* end confdefs.h. */
44299 main ()
44301 main ();
44303 return 0;
44305 _ACEOF
44306 rm -f conftest.$ac_objext conftest$ac_exeext
44307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44308 (eval $ac_link) 2>&5
44309 ac_status=$?
44310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44311 (exit $ac_status); } &&
44312 { ac_try='test -s conftest$ac_exeext'
44313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44314 (eval $ac_try) 2>&5
44315 ac_status=$?
44316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44317 (exit $ac_status); }; }; then
44318 ac_cv_lib_m_main=yes
44319 else
44320 echo "$as_me: failed program was:" >&5
44321 sed 's/^/| /' conftest.$ac_ext >&5
44323 ac_cv_lib_m_main=no
44325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44326 LIBS=$ac_check_lib_save_LIBS
44328 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
44329 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
44330 if test $ac_cv_lib_m_main = yes; then
44331 cat >>confdefs.h <<_ACEOF
44332 #define HAVE_LIBM 1
44333 _ACEOF
44335 LIBS="-lm $LIBS"
44341 for ac_func in nan copysignf
44343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44344 echo "$as_me:$LINENO: checking for $ac_func" >&5
44345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44346 if eval "test \"\${$as_ac_var+set}\" = set"; then
44347 echo $ECHO_N "(cached) $ECHO_C" >&6
44348 else
44349 if test x$gcc_no_link = xyes; then
44350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44352 { (exit 1); exit 1; }; }
44354 cat >conftest.$ac_ext <<_ACEOF
44355 #line $LINENO "configure"
44356 /* confdefs.h. */
44357 _ACEOF
44358 cat confdefs.h >>conftest.$ac_ext
44359 cat >>conftest.$ac_ext <<_ACEOF
44360 /* end confdefs.h. */
44361 /* System header to define __stub macros and hopefully few prototypes,
44362 which can conflict with char $ac_func (); below.
44363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44364 <limits.h> exists even on freestanding compilers. */
44365 #ifdef __STDC__
44366 # include <limits.h>
44367 #else
44368 # include <assert.h>
44369 #endif
44370 /* Override any gcc2 internal prototype to avoid an error. */
44371 #ifdef __cplusplus
44372 extern "C"
44374 #endif
44375 /* We use char because int might match the return type of a gcc2
44376 builtin and then its argument prototype would still apply. */
44377 char $ac_func ();
44378 /* The GNU C library defines this for functions which it implements
44379 to always fail with ENOSYS. Some functions are actually named
44380 something starting with __ and the normal name is an alias. */
44381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44382 choke me
44383 #else
44384 char (*f) () = $ac_func;
44385 #endif
44386 #ifdef __cplusplus
44388 #endif
44391 main ()
44393 return f != $ac_func;
44395 return 0;
44397 _ACEOF
44398 rm -f conftest.$ac_objext conftest$ac_exeext
44399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44400 (eval $ac_link) 2>&5
44401 ac_status=$?
44402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44403 (exit $ac_status); } &&
44404 { ac_try='test -s conftest$ac_exeext'
44405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44406 (eval $ac_try) 2>&5
44407 ac_status=$?
44408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44409 (exit $ac_status); }; }; then
44410 eval "$as_ac_var=yes"
44411 else
44412 echo "$as_me: failed program was:" >&5
44413 sed 's/^/| /' conftest.$ac_ext >&5
44415 eval "$as_ac_var=no"
44417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44421 if test `eval echo '${'$as_ac_var'}'` = yes; then
44422 cat >>confdefs.h <<_ACEOF
44423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44424 _ACEOF
44426 else
44427 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
44429 done
44433 for ac_func in __signbit
44435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44436 echo "$as_me:$LINENO: checking for $ac_func" >&5
44437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44438 if eval "test \"\${$as_ac_var+set}\" = set"; then
44439 echo $ECHO_N "(cached) $ECHO_C" >&6
44440 else
44441 if test x$gcc_no_link = xyes; then
44442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44444 { (exit 1); exit 1; }; }
44446 cat >conftest.$ac_ext <<_ACEOF
44447 #line $LINENO "configure"
44448 /* confdefs.h. */
44449 _ACEOF
44450 cat confdefs.h >>conftest.$ac_ext
44451 cat >>conftest.$ac_ext <<_ACEOF
44452 /* end confdefs.h. */
44453 /* System header to define __stub macros and hopefully few prototypes,
44454 which can conflict with char $ac_func (); below.
44455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44456 <limits.h> exists even on freestanding compilers. */
44457 #ifdef __STDC__
44458 # include <limits.h>
44459 #else
44460 # include <assert.h>
44461 #endif
44462 /* Override any gcc2 internal prototype to avoid an error. */
44463 #ifdef __cplusplus
44464 extern "C"
44466 #endif
44467 /* We use char because int might match the return type of a gcc2
44468 builtin and then its argument prototype would still apply. */
44469 char $ac_func ();
44470 /* The GNU C library defines this for functions which it implements
44471 to always fail with ENOSYS. Some functions are actually named
44472 something starting with __ and the normal name is an alias. */
44473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44474 choke me
44475 #else
44476 char (*f) () = $ac_func;
44477 #endif
44478 #ifdef __cplusplus
44480 #endif
44483 main ()
44485 return f != $ac_func;
44487 return 0;
44489 _ACEOF
44490 rm -f conftest.$ac_objext conftest$ac_exeext
44491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44492 (eval $ac_link) 2>&5
44493 ac_status=$?
44494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44495 (exit $ac_status); } &&
44496 { ac_try='test -s conftest$ac_exeext'
44497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44498 (eval $ac_try) 2>&5
44499 ac_status=$?
44500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44501 (exit $ac_status); }; }; then
44502 eval "$as_ac_var=yes"
44503 else
44504 echo "$as_me: failed program was:" >&5
44505 sed 's/^/| /' conftest.$ac_ext >&5
44507 eval "$as_ac_var=no"
44509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44513 if test `eval echo '${'$as_ac_var'}'` = yes; then
44514 cat >>confdefs.h <<_ACEOF
44515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44516 _ACEOF
44518 else
44519 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
44521 done
44524 for ac_func in __signbitf
44526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44527 echo "$as_me:$LINENO: checking for $ac_func" >&5
44528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44529 if eval "test \"\${$as_ac_var+set}\" = set"; then
44530 echo $ECHO_N "(cached) $ECHO_C" >&6
44531 else
44532 if test x$gcc_no_link = xyes; then
44533 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44534 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44535 { (exit 1); exit 1; }; }
44537 cat >conftest.$ac_ext <<_ACEOF
44538 #line $LINENO "configure"
44539 /* confdefs.h. */
44540 _ACEOF
44541 cat confdefs.h >>conftest.$ac_ext
44542 cat >>conftest.$ac_ext <<_ACEOF
44543 /* end confdefs.h. */
44544 /* System header to define __stub macros and hopefully few prototypes,
44545 which can conflict with char $ac_func (); below.
44546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44547 <limits.h> exists even on freestanding compilers. */
44548 #ifdef __STDC__
44549 # include <limits.h>
44550 #else
44551 # include <assert.h>
44552 #endif
44553 /* Override any gcc2 internal prototype to avoid an error. */
44554 #ifdef __cplusplus
44555 extern "C"
44557 #endif
44558 /* We use char because int might match the return type of a gcc2
44559 builtin and then its argument prototype would still apply. */
44560 char $ac_func ();
44561 /* The GNU C library defines this for functions which it implements
44562 to always fail with ENOSYS. Some functions are actually named
44563 something starting with __ and the normal name is an alias. */
44564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44565 choke me
44566 #else
44567 char (*f) () = $ac_func;
44568 #endif
44569 #ifdef __cplusplus
44571 #endif
44574 main ()
44576 return f != $ac_func;
44578 return 0;
44580 _ACEOF
44581 rm -f conftest.$ac_objext conftest$ac_exeext
44582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44583 (eval $ac_link) 2>&5
44584 ac_status=$?
44585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44586 (exit $ac_status); } &&
44587 { ac_try='test -s conftest$ac_exeext'
44588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44589 (eval $ac_try) 2>&5
44590 ac_status=$?
44591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44592 (exit $ac_status); }; }; then
44593 eval "$as_ac_var=yes"
44594 else
44595 echo "$as_me: failed program was:" >&5
44596 sed 's/^/| /' conftest.$ac_ext >&5
44598 eval "$as_ac_var=no"
44600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44604 if test `eval echo '${'$as_ac_var'}'` = yes; then
44605 cat >>confdefs.h <<_ACEOF
44606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44607 _ACEOF
44609 else
44610 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
44612 done
44615 if test x$ac_cv_func_copysignl = x"yes"; then
44617 for ac_func in __signbitl
44619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44620 echo "$as_me:$LINENO: checking for $ac_func" >&5
44621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44622 if eval "test \"\${$as_ac_var+set}\" = set"; then
44623 echo $ECHO_N "(cached) $ECHO_C" >&6
44624 else
44625 if test x$gcc_no_link = xyes; then
44626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44628 { (exit 1); exit 1; }; }
44630 cat >conftest.$ac_ext <<_ACEOF
44631 #line $LINENO "configure"
44632 /* confdefs.h. */
44633 _ACEOF
44634 cat confdefs.h >>conftest.$ac_ext
44635 cat >>conftest.$ac_ext <<_ACEOF
44636 /* end confdefs.h. */
44637 /* System header to define __stub macros and hopefully few prototypes,
44638 which can conflict with char $ac_func (); below.
44639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44640 <limits.h> exists even on freestanding compilers. */
44641 #ifdef __STDC__
44642 # include <limits.h>
44643 #else
44644 # include <assert.h>
44645 #endif
44646 /* Override any gcc2 internal prototype to avoid an error. */
44647 #ifdef __cplusplus
44648 extern "C"
44650 #endif
44651 /* We use char because int might match the return type of a gcc2
44652 builtin and then its argument prototype would still apply. */
44653 char $ac_func ();
44654 /* The GNU C library defines this for functions which it implements
44655 to always fail with ENOSYS. Some functions are actually named
44656 something starting with __ and the normal name is an alias. */
44657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44658 choke me
44659 #else
44660 char (*f) () = $ac_func;
44661 #endif
44662 #ifdef __cplusplus
44664 #endif
44667 main ()
44669 return f != $ac_func;
44671 return 0;
44673 _ACEOF
44674 rm -f conftest.$ac_objext conftest$ac_exeext
44675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44676 (eval $ac_link) 2>&5
44677 ac_status=$?
44678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44679 (exit $ac_status); } &&
44680 { ac_try='test -s conftest$ac_exeext'
44681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44682 (eval $ac_try) 2>&5
44683 ac_status=$?
44684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44685 (exit $ac_status); }; }; then
44686 eval "$as_ac_var=yes"
44687 else
44688 echo "$as_me: failed program was:" >&5
44689 sed 's/^/| /' conftest.$ac_ext >&5
44691 eval "$as_ac_var=no"
44693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44697 if test `eval echo '${'$as_ac_var'}'` = yes; then
44698 cat >>confdefs.h <<_ACEOF
44699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44700 _ACEOF
44702 else
44703 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
44705 done
44709 # XXX Review this. Nothing uses it.
44710 if test -n "$LIBMATHOBJS"; then
44711 need_libmath=yes
44716 # Test wchar.h for mbstate_t, which is needed for char_traits and
44717 # others even if wchar_t support is not on.
44718 echo "$as_me:$LINENO: checking for mbstate_t" >&5
44719 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
44720 cat >conftest.$ac_ext <<_ACEOF
44721 #line $LINENO "configure"
44722 /* confdefs.h. */
44723 _ACEOF
44724 cat confdefs.h >>conftest.$ac_ext
44725 cat >>conftest.$ac_ext <<_ACEOF
44726 /* end confdefs.h. */
44727 #include <wchar.h>
44729 main ()
44731 mbstate_t teststate;
44733 return 0;
44735 _ACEOF
44736 rm -f conftest.$ac_objext
44737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44738 (eval $ac_compile) 2>&5
44739 ac_status=$?
44740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44741 (exit $ac_status); } &&
44742 { ac_try='test -s conftest.$ac_objext'
44743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44744 (eval $ac_try) 2>&5
44745 ac_status=$?
44746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44747 (exit $ac_status); }; }; then
44748 have_mbstate_t=yes
44749 else
44750 echo "$as_me: failed program was:" >&5
44751 sed 's/^/| /' conftest.$ac_ext >&5
44753 have_mbstate_t=no
44755 rm -f conftest.$ac_objext conftest.$ac_ext
44756 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
44757 echo "${ECHO_T}$have_mbstate_t" >&6
44758 if test x"$have_mbstate_t" = xyes; then
44759 cat >>confdefs.h <<\_ACEOF
44760 #define HAVE_MBSTATE_T 1
44761 _ACEOF
44765 # Sanity check for existence of ISO C99 headers for extended encoding.
44767 for ac_header in wchar.h
44769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44771 echo "$as_me:$LINENO: checking for $ac_header" >&5
44772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44774 echo $ECHO_N "(cached) $ECHO_C" >&6
44776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44778 else
44779 # Is the header compilable?
44780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44782 cat >conftest.$ac_ext <<_ACEOF
44783 #line $LINENO "configure"
44784 /* confdefs.h. */
44785 _ACEOF
44786 cat confdefs.h >>conftest.$ac_ext
44787 cat >>conftest.$ac_ext <<_ACEOF
44788 /* end confdefs.h. */
44789 $ac_includes_default
44790 #include <$ac_header>
44791 _ACEOF
44792 rm -f conftest.$ac_objext
44793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44794 (eval $ac_compile) 2>&5
44795 ac_status=$?
44796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44797 (exit $ac_status); } &&
44798 { ac_try='test -s conftest.$ac_objext'
44799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44800 (eval $ac_try) 2>&5
44801 ac_status=$?
44802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44803 (exit $ac_status); }; }; then
44804 ac_header_compiler=yes
44805 else
44806 echo "$as_me: failed program was:" >&5
44807 sed 's/^/| /' conftest.$ac_ext >&5
44809 ac_header_compiler=no
44811 rm -f conftest.$ac_objext conftest.$ac_ext
44812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44813 echo "${ECHO_T}$ac_header_compiler" >&6
44815 # Is the header present?
44816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44818 cat >conftest.$ac_ext <<_ACEOF
44819 #line $LINENO "configure"
44820 /* confdefs.h. */
44821 _ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h. */
44825 #include <$ac_header>
44826 _ACEOF
44827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44829 ac_status=$?
44830 grep -v '^ *+' conftest.er1 >conftest.err
44831 rm -f conftest.er1
44832 cat conftest.err >&5
44833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44834 (exit $ac_status); } >/dev/null; then
44835 if test -s conftest.err; then
44836 ac_cpp_err=$ac_c_preproc_warn_flag
44837 else
44838 ac_cpp_err=
44840 else
44841 ac_cpp_err=yes
44843 if test -z "$ac_cpp_err"; then
44844 ac_header_preproc=yes
44845 else
44846 echo "$as_me: failed program was:" >&5
44847 sed 's/^/| /' conftest.$ac_ext >&5
44849 ac_header_preproc=no
44851 rm -f conftest.err conftest.$ac_ext
44852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44853 echo "${ECHO_T}$ac_header_preproc" >&6
44855 # So? What about this header?
44856 case $ac_header_compiler:$ac_header_preproc in
44857 yes:no )
44858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44863 cat <<\_ASBOX
44864 ## ------------------------------------ ##
44865 ## Report this to bug-autoconf@gnu.org. ##
44866 ## ------------------------------------ ##
44867 _ASBOX
44869 sed "s/^/$as_me: WARNING: /" >&2
44871 no:yes )
44872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44879 cat <<\_ASBOX
44880 ## ------------------------------------ ##
44881 ## Report this to bug-autoconf@gnu.org. ##
44882 ## ------------------------------------ ##
44883 _ASBOX
44885 sed "s/^/$as_me: WARNING: /" >&2
44887 esac
44888 echo "$as_me:$LINENO: checking for $ac_header" >&5
44889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44891 echo $ECHO_N "(cached) $ECHO_C" >&6
44892 else
44893 eval "$as_ac_Header=$ac_header_preproc"
44895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44900 cat >>confdefs.h <<_ACEOF
44901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44902 _ACEOF
44903 ac_has_wchar_h=yes
44904 else
44905 ac_has_wchar_h=no
44908 done
44911 for ac_header in wctype.h
44913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44915 echo "$as_me:$LINENO: checking for $ac_header" >&5
44916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44918 echo $ECHO_N "(cached) $ECHO_C" >&6
44920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44922 else
44923 # Is the header compilable?
44924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44926 cat >conftest.$ac_ext <<_ACEOF
44927 #line $LINENO "configure"
44928 /* confdefs.h. */
44929 _ACEOF
44930 cat confdefs.h >>conftest.$ac_ext
44931 cat >>conftest.$ac_ext <<_ACEOF
44932 /* end confdefs.h. */
44933 $ac_includes_default
44934 #include <$ac_header>
44935 _ACEOF
44936 rm -f conftest.$ac_objext
44937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44938 (eval $ac_compile) 2>&5
44939 ac_status=$?
44940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44941 (exit $ac_status); } &&
44942 { ac_try='test -s conftest.$ac_objext'
44943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44944 (eval $ac_try) 2>&5
44945 ac_status=$?
44946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44947 (exit $ac_status); }; }; then
44948 ac_header_compiler=yes
44949 else
44950 echo "$as_me: failed program was:" >&5
44951 sed 's/^/| /' conftest.$ac_ext >&5
44953 ac_header_compiler=no
44955 rm -f conftest.$ac_objext conftest.$ac_ext
44956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44957 echo "${ECHO_T}$ac_header_compiler" >&6
44959 # Is the header present?
44960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44962 cat >conftest.$ac_ext <<_ACEOF
44963 #line $LINENO "configure"
44964 /* confdefs.h. */
44965 _ACEOF
44966 cat confdefs.h >>conftest.$ac_ext
44967 cat >>conftest.$ac_ext <<_ACEOF
44968 /* end confdefs.h. */
44969 #include <$ac_header>
44970 _ACEOF
44971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44973 ac_status=$?
44974 grep -v '^ *+' conftest.er1 >conftest.err
44975 rm -f conftest.er1
44976 cat conftest.err >&5
44977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44978 (exit $ac_status); } >/dev/null; then
44979 if test -s conftest.err; then
44980 ac_cpp_err=$ac_c_preproc_warn_flag
44981 else
44982 ac_cpp_err=
44984 else
44985 ac_cpp_err=yes
44987 if test -z "$ac_cpp_err"; then
44988 ac_header_preproc=yes
44989 else
44990 echo "$as_me: failed program was:" >&5
44991 sed 's/^/| /' conftest.$ac_ext >&5
44993 ac_header_preproc=no
44995 rm -f conftest.err conftest.$ac_ext
44996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44997 echo "${ECHO_T}$ac_header_preproc" >&6
44999 # So? What about this header?
45000 case $ac_header_compiler:$ac_header_preproc in
45001 yes:no )
45002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45007 cat <<\_ASBOX
45008 ## ------------------------------------ ##
45009 ## Report this to bug-autoconf@gnu.org. ##
45010 ## ------------------------------------ ##
45011 _ASBOX
45013 sed "s/^/$as_me: WARNING: /" >&2
45015 no:yes )
45016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45023 cat <<\_ASBOX
45024 ## ------------------------------------ ##
45025 ## Report this to bug-autoconf@gnu.org. ##
45026 ## ------------------------------------ ##
45027 _ASBOX
45029 sed "s/^/$as_me: WARNING: /" >&2
45031 esac
45032 echo "$as_me:$LINENO: checking for $ac_header" >&5
45033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45035 echo $ECHO_N "(cached) $ECHO_C" >&6
45036 else
45037 eval "$as_ac_Header=$ac_header_preproc"
45039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45044 cat >>confdefs.h <<_ACEOF
45045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45046 _ACEOF
45047 ac_has_wctype_h=yes
45048 else
45049 ac_has_wctype_h=no
45052 done
45055 # Only continue checking if the ISO C99 headers exist and support is on.
45056 if test x"$ac_has_wchar_h" = xyes &&
45057 test x"$ac_has_wctype_h" = xyes &&
45058 test x"$enable_c_mbchar" != xno; then
45060 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
45061 # numeric_limits can instantiate type_traits<wchar_t>
45062 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
45063 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
45064 cat >conftest.$ac_ext <<_ACEOF
45065 #line $LINENO "configure"
45066 /* confdefs.h. */
45067 _ACEOF
45068 cat confdefs.h >>conftest.$ac_ext
45069 cat >>conftest.$ac_ext <<_ACEOF
45070 /* end confdefs.h. */
45071 #include <wchar.h>
45073 main ()
45075 int i = WCHAR_MIN; int j = WCHAR_MAX;
45077 return 0;
45079 _ACEOF
45080 rm -f conftest.$ac_objext
45081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45082 (eval $ac_compile) 2>&5
45083 ac_status=$?
45084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45085 (exit $ac_status); } &&
45086 { ac_try='test -s conftest.$ac_objext'
45087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45088 (eval $ac_try) 2>&5
45089 ac_status=$?
45090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45091 (exit $ac_status); }; }; then
45092 has_wchar_minmax=yes
45093 else
45094 echo "$as_me: failed program was:" >&5
45095 sed 's/^/| /' conftest.$ac_ext >&5
45097 has_wchar_minmax=no
45099 rm -f conftest.$ac_objext conftest.$ac_ext
45100 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
45101 echo "${ECHO_T}$has_wchar_minmax" >&6
45103 # Test wchar.h for WEOF, which is what we use to determine whether
45104 # to specialize for char_traits<wchar_t> or not.
45105 echo "$as_me:$LINENO: checking for WEOF" >&5
45106 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
45107 cat >conftest.$ac_ext <<_ACEOF
45108 #line $LINENO "configure"
45109 /* confdefs.h. */
45110 _ACEOF
45111 cat confdefs.h >>conftest.$ac_ext
45112 cat >>conftest.$ac_ext <<_ACEOF
45113 /* end confdefs.h. */
45115 #include <wchar.h>
45116 #include <stddef.h>
45118 main ()
45120 wint_t i = WEOF;
45122 return 0;
45124 _ACEOF
45125 rm -f conftest.$ac_objext
45126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45127 (eval $ac_compile) 2>&5
45128 ac_status=$?
45129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130 (exit $ac_status); } &&
45131 { ac_try='test -s conftest.$ac_objext'
45132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45133 (eval $ac_try) 2>&5
45134 ac_status=$?
45135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45136 (exit $ac_status); }; }; then
45137 has_weof=yes
45138 else
45139 echo "$as_me: failed program was:" >&5
45140 sed 's/^/| /' conftest.$ac_ext >&5
45142 has_weof=no
45144 rm -f conftest.$ac_objext conftest.$ac_ext
45145 echo "$as_me:$LINENO: result: $has_weof" >&5
45146 echo "${ECHO_T}$has_weof" >&6
45148 # Tests for wide character functions used in char_traits<wchar_t>.
45149 ac_wfuncs=yes
45156 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
45158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45159 echo "$as_me:$LINENO: checking for $ac_func" >&5
45160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45161 if eval "test \"\${$as_ac_var+set}\" = set"; then
45162 echo $ECHO_N "(cached) $ECHO_C" >&6
45163 else
45164 if test x$gcc_no_link = xyes; then
45165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45167 { (exit 1); exit 1; }; }
45169 cat >conftest.$ac_ext <<_ACEOF
45170 #line $LINENO "configure"
45171 /* confdefs.h. */
45172 _ACEOF
45173 cat confdefs.h >>conftest.$ac_ext
45174 cat >>conftest.$ac_ext <<_ACEOF
45175 /* end confdefs.h. */
45176 /* System header to define __stub macros and hopefully few prototypes,
45177 which can conflict with char $ac_func (); below.
45178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45179 <limits.h> exists even on freestanding compilers. */
45180 #ifdef __STDC__
45181 # include <limits.h>
45182 #else
45183 # include <assert.h>
45184 #endif
45185 /* Override any gcc2 internal prototype to avoid an error. */
45186 #ifdef __cplusplus
45187 extern "C"
45189 #endif
45190 /* We use char because int might match the return type of a gcc2
45191 builtin and then its argument prototype would still apply. */
45192 char $ac_func ();
45193 /* The GNU C library defines this for functions which it implements
45194 to always fail with ENOSYS. Some functions are actually named
45195 something starting with __ and the normal name is an alias. */
45196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45197 choke me
45198 #else
45199 char (*f) () = $ac_func;
45200 #endif
45201 #ifdef __cplusplus
45203 #endif
45206 main ()
45208 return f != $ac_func;
45210 return 0;
45212 _ACEOF
45213 rm -f conftest.$ac_objext conftest$ac_exeext
45214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45215 (eval $ac_link) 2>&5
45216 ac_status=$?
45217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45218 (exit $ac_status); } &&
45219 { ac_try='test -s conftest$ac_exeext'
45220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45221 (eval $ac_try) 2>&5
45222 ac_status=$?
45223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45224 (exit $ac_status); }; }; then
45225 eval "$as_ac_var=yes"
45226 else
45227 echo "$as_me: failed program was:" >&5
45228 sed 's/^/| /' conftest.$ac_ext >&5
45230 eval "$as_ac_var=no"
45232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45236 if test `eval echo '${'$as_ac_var'}'` = yes; then
45237 cat >>confdefs.h <<_ACEOF
45238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45239 _ACEOF
45241 else
45242 ac_wfuncs=no
45244 done
45247 # Checks for names injected into std:: by the c_std headers.
45294 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
45295 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
45296 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
45297 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
45298 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
45299 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
45301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45302 echo "$as_me:$LINENO: checking for $ac_func" >&5
45303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45304 if eval "test \"\${$as_ac_var+set}\" = set"; then
45305 echo $ECHO_N "(cached) $ECHO_C" >&6
45306 else
45307 if test x$gcc_no_link = xyes; then
45308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45310 { (exit 1); exit 1; }; }
45312 cat >conftest.$ac_ext <<_ACEOF
45313 #line $LINENO "configure"
45314 /* confdefs.h. */
45315 _ACEOF
45316 cat confdefs.h >>conftest.$ac_ext
45317 cat >>conftest.$ac_ext <<_ACEOF
45318 /* end confdefs.h. */
45319 /* System header to define __stub macros and hopefully few prototypes,
45320 which can conflict with char $ac_func (); below.
45321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45322 <limits.h> exists even on freestanding compilers. */
45323 #ifdef __STDC__
45324 # include <limits.h>
45325 #else
45326 # include <assert.h>
45327 #endif
45328 /* Override any gcc2 internal prototype to avoid an error. */
45329 #ifdef __cplusplus
45330 extern "C"
45332 #endif
45333 /* We use char because int might match the return type of a gcc2
45334 builtin and then its argument prototype would still apply. */
45335 char $ac_func ();
45336 /* The GNU C library defines this for functions which it implements
45337 to always fail with ENOSYS. Some functions are actually named
45338 something starting with __ and the normal name is an alias. */
45339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45340 choke me
45341 #else
45342 char (*f) () = $ac_func;
45343 #endif
45344 #ifdef __cplusplus
45346 #endif
45349 main ()
45351 return f != $ac_func;
45353 return 0;
45355 _ACEOF
45356 rm -f conftest.$ac_objext conftest$ac_exeext
45357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45358 (eval $ac_link) 2>&5
45359 ac_status=$?
45360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45361 (exit $ac_status); } &&
45362 { ac_try='test -s conftest$ac_exeext'
45363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45364 (eval $ac_try) 2>&5
45365 ac_status=$?
45366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45367 (exit $ac_status); }; }; then
45368 eval "$as_ac_var=yes"
45369 else
45370 echo "$as_me: failed program was:" >&5
45371 sed 's/^/| /' conftest.$ac_ext >&5
45373 eval "$as_ac_var=no"
45375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45379 if test `eval echo '${'$as_ac_var'}'` = yes; then
45380 cat >>confdefs.h <<_ACEOF
45381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45382 _ACEOF
45384 else
45385 ac_wfuncs=no
45387 done
45390 # Checks for wide character functions that are not required
45391 # for basic wchar_t support. Don't disable support if they are missing.
45392 # Injection of these is wrapped with guard macros.
45398 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
45400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45401 echo "$as_me:$LINENO: checking for $ac_func" >&5
45402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45403 if eval "test \"\${$as_ac_var+set}\" = set"; then
45404 echo $ECHO_N "(cached) $ECHO_C" >&6
45405 else
45406 if test x$gcc_no_link = xyes; then
45407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45409 { (exit 1); exit 1; }; }
45411 cat >conftest.$ac_ext <<_ACEOF
45412 #line $LINENO "configure"
45413 /* confdefs.h. */
45414 _ACEOF
45415 cat confdefs.h >>conftest.$ac_ext
45416 cat >>conftest.$ac_ext <<_ACEOF
45417 /* end confdefs.h. */
45418 /* System header to define __stub macros and hopefully few prototypes,
45419 which can conflict with char $ac_func (); below.
45420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45421 <limits.h> exists even on freestanding compilers. */
45422 #ifdef __STDC__
45423 # include <limits.h>
45424 #else
45425 # include <assert.h>
45426 #endif
45427 /* Override any gcc2 internal prototype to avoid an error. */
45428 #ifdef __cplusplus
45429 extern "C"
45431 #endif
45432 /* We use char because int might match the return type of a gcc2
45433 builtin and then its argument prototype would still apply. */
45434 char $ac_func ();
45435 /* The GNU C library defines this for functions which it implements
45436 to always fail with ENOSYS. Some functions are actually named
45437 something starting with __ and the normal name is an alias. */
45438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45439 choke me
45440 #else
45441 char (*f) () = $ac_func;
45442 #endif
45443 #ifdef __cplusplus
45445 #endif
45448 main ()
45450 return f != $ac_func;
45452 return 0;
45454 _ACEOF
45455 rm -f conftest.$ac_objext conftest$ac_exeext
45456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45457 (eval $ac_link) 2>&5
45458 ac_status=$?
45459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45460 (exit $ac_status); } &&
45461 { ac_try='test -s conftest$ac_exeext'
45462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45463 (eval $ac_try) 2>&5
45464 ac_status=$?
45465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466 (exit $ac_status); }; }; then
45467 eval "$as_ac_var=yes"
45468 else
45469 echo "$as_me: failed program was:" >&5
45470 sed 's/^/| /' conftest.$ac_ext >&5
45472 eval "$as_ac_var=no"
45474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45478 if test `eval echo '${'$as_ac_var'}'` = yes; then
45479 cat >>confdefs.h <<_ACEOF
45480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45481 _ACEOF
45484 done
45487 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
45488 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
45489 if test x"$has_weof" = xyes &&
45490 test x"$has_wchar_minmax" = xyes &&
45491 test x"$ac_wfuncs" = xyes;
45492 then
45493 ac_isoC99_wchar_t=yes
45494 else
45495 ac_isoC99_wchar_t=no
45497 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
45498 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
45500 # Use iconv for wchar_t to char conversions. As such, check for
45501 # X/Open Portability Guide, version 2 features (XPG2).
45502 if test "${ac_cv_header_iconv_h+set}" = set; then
45503 echo "$as_me:$LINENO: checking for iconv.h" >&5
45504 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45505 if test "${ac_cv_header_iconv_h+set}" = set; then
45506 echo $ECHO_N "(cached) $ECHO_C" >&6
45508 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45509 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45510 else
45511 # Is the header compilable?
45512 echo "$as_me:$LINENO: checking iconv.h usability" >&5
45513 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
45514 cat >conftest.$ac_ext <<_ACEOF
45515 #line $LINENO "configure"
45516 /* confdefs.h. */
45517 _ACEOF
45518 cat confdefs.h >>conftest.$ac_ext
45519 cat >>conftest.$ac_ext <<_ACEOF
45520 /* end confdefs.h. */
45521 $ac_includes_default
45522 #include <iconv.h>
45523 _ACEOF
45524 rm -f conftest.$ac_objext
45525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45526 (eval $ac_compile) 2>&5
45527 ac_status=$?
45528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45529 (exit $ac_status); } &&
45530 { ac_try='test -s conftest.$ac_objext'
45531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45532 (eval $ac_try) 2>&5
45533 ac_status=$?
45534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); }; }; then
45536 ac_header_compiler=yes
45537 else
45538 echo "$as_me: failed program was:" >&5
45539 sed 's/^/| /' conftest.$ac_ext >&5
45541 ac_header_compiler=no
45543 rm -f conftest.$ac_objext conftest.$ac_ext
45544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45545 echo "${ECHO_T}$ac_header_compiler" >&6
45547 # Is the header present?
45548 echo "$as_me:$LINENO: checking iconv.h presence" >&5
45549 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
45550 cat >conftest.$ac_ext <<_ACEOF
45551 #line $LINENO "configure"
45552 /* confdefs.h. */
45553 _ACEOF
45554 cat confdefs.h >>conftest.$ac_ext
45555 cat >>conftest.$ac_ext <<_ACEOF
45556 /* end confdefs.h. */
45557 #include <iconv.h>
45558 _ACEOF
45559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45561 ac_status=$?
45562 grep -v '^ *+' conftest.er1 >conftest.err
45563 rm -f conftest.er1
45564 cat conftest.err >&5
45565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45566 (exit $ac_status); } >/dev/null; then
45567 if test -s conftest.err; then
45568 ac_cpp_err=$ac_c_preproc_warn_flag
45569 else
45570 ac_cpp_err=
45572 else
45573 ac_cpp_err=yes
45575 if test -z "$ac_cpp_err"; then
45576 ac_header_preproc=yes
45577 else
45578 echo "$as_me: failed program was:" >&5
45579 sed 's/^/| /' conftest.$ac_ext >&5
45581 ac_header_preproc=no
45583 rm -f conftest.err conftest.$ac_ext
45584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45585 echo "${ECHO_T}$ac_header_preproc" >&6
45587 # So? What about this header?
45588 case $ac_header_compiler:$ac_header_preproc in
45589 yes:no )
45590 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
45591 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45592 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45593 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45595 cat <<\_ASBOX
45596 ## ------------------------------------ ##
45597 ## Report this to bug-autoconf@gnu.org. ##
45598 ## ------------------------------------ ##
45599 _ASBOX
45601 sed "s/^/$as_me: WARNING: /" >&2
45603 no:yes )
45604 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
45605 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
45606 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
45607 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
45608 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45609 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45611 cat <<\_ASBOX
45612 ## ------------------------------------ ##
45613 ## Report this to bug-autoconf@gnu.org. ##
45614 ## ------------------------------------ ##
45615 _ASBOX
45617 sed "s/^/$as_me: WARNING: /" >&2
45619 esac
45620 echo "$as_me:$LINENO: checking for iconv.h" >&5
45621 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45622 if test "${ac_cv_header_iconv_h+set}" = set; then
45623 echo $ECHO_N "(cached) $ECHO_C" >&6
45624 else
45625 ac_cv_header_iconv_h=$ac_header_preproc
45627 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45628 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45631 if test $ac_cv_header_iconv_h = yes; then
45632 ac_has_iconv_h=yes
45633 else
45634 ac_has_iconv_h=no
45638 if test "${ac_cv_header_langinfo_h+set}" = set; then
45639 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45640 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45641 if test "${ac_cv_header_langinfo_h+set}" = set; then
45642 echo $ECHO_N "(cached) $ECHO_C" >&6
45644 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45645 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45646 else
45647 # Is the header compilable?
45648 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
45649 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
45650 cat >conftest.$ac_ext <<_ACEOF
45651 #line $LINENO "configure"
45652 /* confdefs.h. */
45653 _ACEOF
45654 cat confdefs.h >>conftest.$ac_ext
45655 cat >>conftest.$ac_ext <<_ACEOF
45656 /* end confdefs.h. */
45657 $ac_includes_default
45658 #include <langinfo.h>
45659 _ACEOF
45660 rm -f conftest.$ac_objext
45661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45662 (eval $ac_compile) 2>&5
45663 ac_status=$?
45664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45665 (exit $ac_status); } &&
45666 { ac_try='test -s conftest.$ac_objext'
45667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45668 (eval $ac_try) 2>&5
45669 ac_status=$?
45670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45671 (exit $ac_status); }; }; then
45672 ac_header_compiler=yes
45673 else
45674 echo "$as_me: failed program was:" >&5
45675 sed 's/^/| /' conftest.$ac_ext >&5
45677 ac_header_compiler=no
45679 rm -f conftest.$ac_objext conftest.$ac_ext
45680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45681 echo "${ECHO_T}$ac_header_compiler" >&6
45683 # Is the header present?
45684 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
45685 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
45686 cat >conftest.$ac_ext <<_ACEOF
45687 #line $LINENO "configure"
45688 /* confdefs.h. */
45689 _ACEOF
45690 cat confdefs.h >>conftest.$ac_ext
45691 cat >>conftest.$ac_ext <<_ACEOF
45692 /* end confdefs.h. */
45693 #include <langinfo.h>
45694 _ACEOF
45695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45697 ac_status=$?
45698 grep -v '^ *+' conftest.er1 >conftest.err
45699 rm -f conftest.er1
45700 cat conftest.err >&5
45701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45702 (exit $ac_status); } >/dev/null; then
45703 if test -s conftest.err; then
45704 ac_cpp_err=$ac_c_preproc_warn_flag
45705 else
45706 ac_cpp_err=
45708 else
45709 ac_cpp_err=yes
45711 if test -z "$ac_cpp_err"; then
45712 ac_header_preproc=yes
45713 else
45714 echo "$as_me: failed program was:" >&5
45715 sed 's/^/| /' conftest.$ac_ext >&5
45717 ac_header_preproc=no
45719 rm -f conftest.err conftest.$ac_ext
45720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45721 echo "${ECHO_T}$ac_header_preproc" >&6
45723 # So? What about this header?
45724 case $ac_header_compiler:$ac_header_preproc in
45725 yes:no )
45726 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
45727 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45728 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45729 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45731 cat <<\_ASBOX
45732 ## ------------------------------------ ##
45733 ## Report this to bug-autoconf@gnu.org. ##
45734 ## ------------------------------------ ##
45735 _ASBOX
45737 sed "s/^/$as_me: WARNING: /" >&2
45739 no:yes )
45740 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
45741 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
45742 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
45743 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
45744 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45745 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45747 cat <<\_ASBOX
45748 ## ------------------------------------ ##
45749 ## Report this to bug-autoconf@gnu.org. ##
45750 ## ------------------------------------ ##
45751 _ASBOX
45753 sed "s/^/$as_me: WARNING: /" >&2
45755 esac
45756 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45757 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45758 if test "${ac_cv_header_langinfo_h+set}" = set; then
45759 echo $ECHO_N "(cached) $ECHO_C" >&6
45760 else
45761 ac_cv_header_langinfo_h=$ac_header_preproc
45763 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45764 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45767 if test $ac_cv_header_langinfo_h = yes; then
45768 ac_has_langinfo_h=yes
45769 else
45770 ac_has_langinfo_h=no
45775 # Check for existence of libiconv.a providing XPG2 wchar_t support.
45776 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
45777 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
45778 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
45779 echo $ECHO_N "(cached) $ECHO_C" >&6
45780 else
45781 ac_check_lib_save_LIBS=$LIBS
45782 LIBS="-liconv $LIBS"
45783 if test x$gcc_no_link = xyes; then
45784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45786 { (exit 1); exit 1; }; }
45788 cat >conftest.$ac_ext <<_ACEOF
45789 #line $LINENO "configure"
45790 /* confdefs.h. */
45791 _ACEOF
45792 cat confdefs.h >>conftest.$ac_ext
45793 cat >>conftest.$ac_ext <<_ACEOF
45794 /* end confdefs.h. */
45796 /* Override any gcc2 internal prototype to avoid an error. */
45797 #ifdef __cplusplus
45798 extern "C"
45799 #endif
45800 /* We use char because int might match the return type of a gcc2
45801 builtin and then its argument prototype would still apply. */
45802 char iconv ();
45804 main ()
45806 iconv ();
45808 return 0;
45810 _ACEOF
45811 rm -f conftest.$ac_objext conftest$ac_exeext
45812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45813 (eval $ac_link) 2>&5
45814 ac_status=$?
45815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45816 (exit $ac_status); } &&
45817 { ac_try='test -s conftest$ac_exeext'
45818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45819 (eval $ac_try) 2>&5
45820 ac_status=$?
45821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45822 (exit $ac_status); }; }; then
45823 ac_cv_lib_iconv_iconv=yes
45824 else
45825 echo "$as_me: failed program was:" >&5
45826 sed 's/^/| /' conftest.$ac_ext >&5
45828 ac_cv_lib_iconv_iconv=no
45830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45831 LIBS=$ac_check_lib_save_LIBS
45833 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
45834 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
45835 if test $ac_cv_lib_iconv_iconv = yes; then
45836 libiconv="-liconv"
45839 ac_save_LIBS="$LIBS"
45840 LIBS="$LIBS $libiconv"
45846 for ac_func in iconv_open iconv_close iconv nl_langinfo
45848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45849 echo "$as_me:$LINENO: checking for $ac_func" >&5
45850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45851 if eval "test \"\${$as_ac_var+set}\" = set"; then
45852 echo $ECHO_N "(cached) $ECHO_C" >&6
45853 else
45854 if test x$gcc_no_link = xyes; then
45855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45857 { (exit 1); exit 1; }; }
45859 cat >conftest.$ac_ext <<_ACEOF
45860 #line $LINENO "configure"
45861 /* confdefs.h. */
45862 _ACEOF
45863 cat confdefs.h >>conftest.$ac_ext
45864 cat >>conftest.$ac_ext <<_ACEOF
45865 /* end confdefs.h. */
45866 /* System header to define __stub macros and hopefully few prototypes,
45867 which can conflict with char $ac_func (); below.
45868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45869 <limits.h> exists even on freestanding compilers. */
45870 #ifdef __STDC__
45871 # include <limits.h>
45872 #else
45873 # include <assert.h>
45874 #endif
45875 /* Override any gcc2 internal prototype to avoid an error. */
45876 #ifdef __cplusplus
45877 extern "C"
45879 #endif
45880 /* We use char because int might match the return type of a gcc2
45881 builtin and then its argument prototype would still apply. */
45882 char $ac_func ();
45883 /* The GNU C library defines this for functions which it implements
45884 to always fail with ENOSYS. Some functions are actually named
45885 something starting with __ and the normal name is an alias. */
45886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45887 choke me
45888 #else
45889 char (*f) () = $ac_func;
45890 #endif
45891 #ifdef __cplusplus
45893 #endif
45896 main ()
45898 return f != $ac_func;
45900 return 0;
45902 _ACEOF
45903 rm -f conftest.$ac_objext conftest$ac_exeext
45904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45905 (eval $ac_link) 2>&5
45906 ac_status=$?
45907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45908 (exit $ac_status); } &&
45909 { ac_try='test -s conftest$ac_exeext'
45910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45911 (eval $ac_try) 2>&5
45912 ac_status=$?
45913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45914 (exit $ac_status); }; }; then
45915 eval "$as_ac_var=yes"
45916 else
45917 echo "$as_me: failed program was:" >&5
45918 sed 's/^/| /' conftest.$ac_ext >&5
45920 eval "$as_ac_var=no"
45922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45926 if test `eval echo '${'$as_ac_var'}'` = yes; then
45927 cat >>confdefs.h <<_ACEOF
45928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45929 _ACEOF
45930 ac_XPG2funcs=yes
45931 else
45932 ac_XPG2funcs=no
45934 done
45937 LIBS="$ac_save_LIBS"
45939 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
45940 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
45941 if test x"$ac_has_iconv_h" = xyes &&
45942 test x"$ac_has_langinfo_h" = xyes &&
45943 test x"$ac_XPG2funcs" = xyes;
45944 then
45945 ac_XPG2_wchar_t=yes
45946 else
45947 ac_XPG2_wchar_t=no
45949 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
45950 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
45952 # At the moment, only enable wchar_t specializations if all the
45953 # above support is present.
45954 if test x"$ac_isoC99_wchar_t" = xyes &&
45955 test x"$ac_XPG2_wchar_t" = xyes;
45956 then
45957 cat >>confdefs.h <<\_ACEOF
45958 #define _GLIBCXX_USE_WCHAR_T 1
45959 _ACEOF
45961 enable_wchar_t=yes
45964 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
45965 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
45966 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
45967 echo "${ECHO_T}$enable_wchar_t" >&6
45970 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45971 ac_save_CXXFLAGS="$CXXFLAGS"
45972 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45975 echo "$as_me:$LINENO: checking for strtold declaration" >&5
45976 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
45977 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45978 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
45979 echo $ECHO_N "(cached) $ECHO_C" >&6
45980 else
45984 ac_ext=cc
45985 ac_cpp='$CXXCPP $CPPFLAGS'
45986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45990 cat >conftest.$ac_ext <<_ACEOF
45991 #line $LINENO "configure"
45992 /* confdefs.h. */
45993 _ACEOF
45994 cat confdefs.h >>conftest.$ac_ext
45995 cat >>conftest.$ac_ext <<_ACEOF
45996 /* end confdefs.h. */
45997 #include <stdlib.h>
45999 main ()
46001 strtold(0, 0);
46003 return 0;
46005 _ACEOF
46006 rm -f conftest.$ac_objext
46007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46008 (eval $ac_compile) 2>&5
46009 ac_status=$?
46010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46011 (exit $ac_status); } &&
46012 { ac_try='test -s conftest.$ac_objext'
46013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46014 (eval $ac_try) 2>&5
46015 ac_status=$?
46016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46017 (exit $ac_status); }; }; then
46018 glibcxx_cv_func_strtold_use=yes
46019 else
46020 echo "$as_me: failed program was:" >&5
46021 sed 's/^/| /' conftest.$ac_ext >&5
46023 glibcxx_cv_func_strtold_use=no
46025 rm -f conftest.$ac_objext conftest.$ac_ext
46026 ac_ext=c
46027 ac_cpp='$CPP $CPPFLAGS'
46028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46036 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
46037 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
46038 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
46040 for ac_func in strtold
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 #line $LINENO "configure"
46055 /* confdefs.h. */
46056 _ACEOF
46057 cat confdefs.h >>conftest.$ac_ext
46058 cat >>conftest.$ac_ext <<_ACEOF
46059 /* end confdefs.h. */
46060 /* System header to define __stub macros and hopefully few prototypes,
46061 which can conflict with char $ac_func (); below.
46062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46063 <limits.h> exists even on freestanding compilers. */
46064 #ifdef __STDC__
46065 # include <limits.h>
46066 #else
46067 # include <assert.h>
46068 #endif
46069 /* Override any gcc2 internal prototype to avoid an error. */
46070 #ifdef __cplusplus
46071 extern "C"
46073 #endif
46074 /* We use char because int might match the return type of a gcc2
46075 builtin and then its argument prototype would still apply. */
46076 char $ac_func ();
46077 /* The GNU C library defines this for functions which it implements
46078 to always fail with ENOSYS. Some functions are actually named
46079 something starting with __ and the normal name is an alias. */
46080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46081 choke me
46082 #else
46083 char (*f) () = $ac_func;
46084 #endif
46085 #ifdef __cplusplus
46087 #endif
46090 main ()
46092 return f != $ac_func;
46094 return 0;
46096 _ACEOF
46097 rm -f conftest.$ac_objext conftest$ac_exeext
46098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46099 (eval $ac_link) 2>&5
46100 ac_status=$?
46101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46102 (exit $ac_status); } &&
46103 { ac_try='test -s conftest$ac_exeext'
46104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46105 (eval $ac_try) 2>&5
46106 ac_status=$?
46107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46108 (exit $ac_status); }; }; then
46109 eval "$as_ac_var=yes"
46110 else
46111 echo "$as_me: failed program was:" >&5
46112 sed 's/^/| /' conftest.$ac_ext >&5
46114 eval "$as_ac_var=no"
46116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46120 if test `eval echo '${'$as_ac_var'}'` = yes; then
46121 cat >>confdefs.h <<_ACEOF
46122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46123 _ACEOF
46126 done
46131 echo "$as_me:$LINENO: checking for strtof declaration" >&5
46132 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
46133 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
46134 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
46135 echo $ECHO_N "(cached) $ECHO_C" >&6
46136 else
46140 ac_ext=cc
46141 ac_cpp='$CXXCPP $CPPFLAGS'
46142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46146 cat >conftest.$ac_ext <<_ACEOF
46147 #line $LINENO "configure"
46148 /* confdefs.h. */
46149 _ACEOF
46150 cat confdefs.h >>conftest.$ac_ext
46151 cat >>conftest.$ac_ext <<_ACEOF
46152 /* end confdefs.h. */
46153 #include <stdlib.h>
46155 main ()
46157 strtof(0, 0);
46159 return 0;
46161 _ACEOF
46162 rm -f conftest.$ac_objext
46163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46164 (eval $ac_compile) 2>&5
46165 ac_status=$?
46166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46167 (exit $ac_status); } &&
46168 { ac_try='test -s conftest.$ac_objext'
46169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46170 (eval $ac_try) 2>&5
46171 ac_status=$?
46172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46173 (exit $ac_status); }; }; then
46174 glibcxx_cv_func_strtof_use=yes
46175 else
46176 echo "$as_me: failed program was:" >&5
46177 sed 's/^/| /' conftest.$ac_ext >&5
46179 glibcxx_cv_func_strtof_use=no
46181 rm -f conftest.$ac_objext conftest.$ac_ext
46182 ac_ext=c
46183 ac_cpp='$CPP $CPPFLAGS'
46184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46192 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
46193 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
46194 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
46196 for ac_func in strtof
46198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46199 echo "$as_me:$LINENO: checking for $ac_func" >&5
46200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46201 if eval "test \"\${$as_ac_var+set}\" = set"; then
46202 echo $ECHO_N "(cached) $ECHO_C" >&6
46203 else
46204 if test x$gcc_no_link = xyes; then
46205 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46207 { (exit 1); exit 1; }; }
46209 cat >conftest.$ac_ext <<_ACEOF
46210 #line $LINENO "configure"
46211 /* confdefs.h. */
46212 _ACEOF
46213 cat confdefs.h >>conftest.$ac_ext
46214 cat >>conftest.$ac_ext <<_ACEOF
46215 /* end confdefs.h. */
46216 /* System header to define __stub macros and hopefully few prototypes,
46217 which can conflict with char $ac_func (); below.
46218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46219 <limits.h> exists even on freestanding compilers. */
46220 #ifdef __STDC__
46221 # include <limits.h>
46222 #else
46223 # include <assert.h>
46224 #endif
46225 /* Override any gcc2 internal prototype to avoid an error. */
46226 #ifdef __cplusplus
46227 extern "C"
46229 #endif
46230 /* We use char because int might match the return type of a gcc2
46231 builtin and then its argument prototype would still apply. */
46232 char $ac_func ();
46233 /* The GNU C library defines this for functions which it implements
46234 to always fail with ENOSYS. Some functions are actually named
46235 something starting with __ and the normal name is an alias. */
46236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46237 choke me
46238 #else
46239 char (*f) () = $ac_func;
46240 #endif
46241 #ifdef __cplusplus
46243 #endif
46246 main ()
46248 return f != $ac_func;
46250 return 0;
46252 _ACEOF
46253 rm -f conftest.$ac_objext conftest$ac_exeext
46254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46255 (eval $ac_link) 2>&5
46256 ac_status=$?
46257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46258 (exit $ac_status); } &&
46259 { ac_try='test -s conftest$ac_exeext'
46260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46261 (eval $ac_try) 2>&5
46262 ac_status=$?
46263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46264 (exit $ac_status); }; }; then
46265 eval "$as_ac_var=yes"
46266 else
46267 echo "$as_me: failed program was:" >&5
46268 sed 's/^/| /' conftest.$ac_ext >&5
46270 eval "$as_ac_var=no"
46272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46276 if test `eval echo '${'$as_ac_var'}'` = yes; then
46277 cat >>confdefs.h <<_ACEOF
46278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46279 _ACEOF
46282 done
46287 echo "$as_me:$LINENO: checking for lrand48 declaration" >&5
46288 echo $ECHO_N "checking for lrand48 declaration... $ECHO_C" >&6
46289 if test x${glibcxx_cv_func_lrand48_use+set} != xset; then
46290 if test "${glibcxx_cv_func_lrand48_use+set}" = set; then
46291 echo $ECHO_N "(cached) $ECHO_C" >&6
46292 else
46296 ac_ext=cc
46297 ac_cpp='$CXXCPP $CPPFLAGS'
46298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46302 cat >conftest.$ac_ext <<_ACEOF
46303 #line $LINENO "configure"
46304 /* confdefs.h. */
46305 _ACEOF
46306 cat confdefs.h >>conftest.$ac_ext
46307 cat >>conftest.$ac_ext <<_ACEOF
46308 /* end confdefs.h. */
46309 #include <stdlib.h>
46311 main ()
46313 lrand48();
46315 return 0;
46317 _ACEOF
46318 rm -f conftest.$ac_objext
46319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46320 (eval $ac_compile) 2>&5
46321 ac_status=$?
46322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46323 (exit $ac_status); } &&
46324 { ac_try='test -s conftest.$ac_objext'
46325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46326 (eval $ac_try) 2>&5
46327 ac_status=$?
46328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46329 (exit $ac_status); }; }; then
46330 glibcxx_cv_func_lrand48_use=yes
46331 else
46332 echo "$as_me: failed program was:" >&5
46333 sed 's/^/| /' conftest.$ac_ext >&5
46335 glibcxx_cv_func_lrand48_use=no
46337 rm -f conftest.$ac_objext conftest.$ac_ext
46338 ac_ext=c
46339 ac_cpp='$CPP $CPPFLAGS'
46340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46348 echo "$as_me:$LINENO: result: $glibcxx_cv_func_lrand48_use" >&5
46349 echo "${ECHO_T}$glibcxx_cv_func_lrand48_use" >&6
46350 if test x$glibcxx_cv_func_lrand48_use = x"yes"; then
46352 for ac_func in lrand48
46354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46355 echo "$as_me:$LINENO: checking for $ac_func" >&5
46356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46357 if eval "test \"\${$as_ac_var+set}\" = set"; then
46358 echo $ECHO_N "(cached) $ECHO_C" >&6
46359 else
46360 if test x$gcc_no_link = xyes; then
46361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46363 { (exit 1); exit 1; }; }
46365 cat >conftest.$ac_ext <<_ACEOF
46366 #line $LINENO "configure"
46367 /* confdefs.h. */
46368 _ACEOF
46369 cat confdefs.h >>conftest.$ac_ext
46370 cat >>conftest.$ac_ext <<_ACEOF
46371 /* end confdefs.h. */
46372 /* System header to define __stub macros and hopefully few prototypes,
46373 which can conflict with char $ac_func (); below.
46374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46375 <limits.h> exists even on freestanding compilers. */
46376 #ifdef __STDC__
46377 # include <limits.h>
46378 #else
46379 # include <assert.h>
46380 #endif
46381 /* Override any gcc2 internal prototype to avoid an error. */
46382 #ifdef __cplusplus
46383 extern "C"
46385 #endif
46386 /* We use char because int might match the return type of a gcc2
46387 builtin and then its argument prototype would still apply. */
46388 char $ac_func ();
46389 /* The GNU C library defines this for functions which it implements
46390 to always fail with ENOSYS. Some functions are actually named
46391 something starting with __ and the normal name is an alias. */
46392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46393 choke me
46394 #else
46395 char (*f) () = $ac_func;
46396 #endif
46397 #ifdef __cplusplus
46399 #endif
46402 main ()
46404 return f != $ac_func;
46406 return 0;
46408 _ACEOF
46409 rm -f conftest.$ac_objext conftest$ac_exeext
46410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46411 (eval $ac_link) 2>&5
46412 ac_status=$?
46413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46414 (exit $ac_status); } &&
46415 { ac_try='test -s conftest$ac_exeext'
46416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46417 (eval $ac_try) 2>&5
46418 ac_status=$?
46419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46420 (exit $ac_status); }; }; then
46421 eval "$as_ac_var=yes"
46422 else
46423 echo "$as_me: failed program was:" >&5
46424 sed 's/^/| /' conftest.$ac_ext >&5
46426 eval "$as_ac_var=no"
46428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46432 if test `eval echo '${'$as_ac_var'}'` = yes; then
46433 cat >>confdefs.h <<_ACEOF
46434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46435 _ACEOF
46438 done
46443 CXXFLAGS="$ac_save_CXXFLAGS"
46446 # For showmanyc_helper().
46449 for ac_header in sys/ioctl.h sys/filio.h
46451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46453 echo "$as_me:$LINENO: checking for $ac_header" >&5
46454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46456 echo $ECHO_N "(cached) $ECHO_C" >&6
46458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46460 else
46461 # Is the header compilable?
46462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46464 cat >conftest.$ac_ext <<_ACEOF
46465 #line $LINENO "configure"
46466 /* confdefs.h. */
46467 _ACEOF
46468 cat confdefs.h >>conftest.$ac_ext
46469 cat >>conftest.$ac_ext <<_ACEOF
46470 /* end confdefs.h. */
46471 $ac_includes_default
46472 #include <$ac_header>
46473 _ACEOF
46474 rm -f conftest.$ac_objext
46475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46476 (eval $ac_compile) 2>&5
46477 ac_status=$?
46478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46479 (exit $ac_status); } &&
46480 { ac_try='test -s conftest.$ac_objext'
46481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46482 (eval $ac_try) 2>&5
46483 ac_status=$?
46484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46485 (exit $ac_status); }; }; then
46486 ac_header_compiler=yes
46487 else
46488 echo "$as_me: failed program was:" >&5
46489 sed 's/^/| /' conftest.$ac_ext >&5
46491 ac_header_compiler=no
46493 rm -f conftest.$ac_objext conftest.$ac_ext
46494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46495 echo "${ECHO_T}$ac_header_compiler" >&6
46497 # Is the header present?
46498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46500 cat >conftest.$ac_ext <<_ACEOF
46501 #line $LINENO "configure"
46502 /* confdefs.h. */
46503 _ACEOF
46504 cat confdefs.h >>conftest.$ac_ext
46505 cat >>conftest.$ac_ext <<_ACEOF
46506 /* end confdefs.h. */
46507 #include <$ac_header>
46508 _ACEOF
46509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46511 ac_status=$?
46512 grep -v '^ *+' conftest.er1 >conftest.err
46513 rm -f conftest.er1
46514 cat conftest.err >&5
46515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46516 (exit $ac_status); } >/dev/null; then
46517 if test -s conftest.err; then
46518 ac_cpp_err=$ac_c_preproc_warn_flag
46519 else
46520 ac_cpp_err=
46522 else
46523 ac_cpp_err=yes
46525 if test -z "$ac_cpp_err"; then
46526 ac_header_preproc=yes
46527 else
46528 echo "$as_me: failed program was:" >&5
46529 sed 's/^/| /' conftest.$ac_ext >&5
46531 ac_header_preproc=no
46533 rm -f conftest.err conftest.$ac_ext
46534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46535 echo "${ECHO_T}$ac_header_preproc" >&6
46537 # So? What about this header?
46538 case $ac_header_compiler:$ac_header_preproc in
46539 yes:no )
46540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46545 cat <<\_ASBOX
46546 ## ------------------------------------ ##
46547 ## Report this to bug-autoconf@gnu.org. ##
46548 ## ------------------------------------ ##
46549 _ASBOX
46551 sed "s/^/$as_me: WARNING: /" >&2
46553 no:yes )
46554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46561 cat <<\_ASBOX
46562 ## ------------------------------------ ##
46563 ## Report this to bug-autoconf@gnu.org. ##
46564 ## ------------------------------------ ##
46565 _ASBOX
46567 sed "s/^/$as_me: WARNING: /" >&2
46569 esac
46570 echo "$as_me:$LINENO: checking for $ac_header" >&5
46571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46573 echo $ECHO_N "(cached) $ECHO_C" >&6
46574 else
46575 eval "$as_ac_Header=$ac_header_preproc"
46577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46582 cat >>confdefs.h <<_ACEOF
46583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46584 _ACEOF
46588 done
46591 if test "${glibcxx_cv_POLL+set}" = set; then
46592 echo $ECHO_N "(cached) $ECHO_C" >&6
46593 else
46595 if test x$gcc_no_link = xyes; then
46596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46598 { (exit 1); exit 1; }; }
46600 cat >conftest.$ac_ext <<_ACEOF
46601 #line $LINENO "configure"
46602 /* confdefs.h. */
46603 _ACEOF
46604 cat confdefs.h >>conftest.$ac_ext
46605 cat >>conftest.$ac_ext <<_ACEOF
46606 /* end confdefs.h. */
46607 #include <poll.h>
46609 main ()
46611 struct pollfd pfd[1];
46612 pfd[0].events = POLLIN;
46613 poll(pfd, 1, 0);
46615 return 0;
46617 _ACEOF
46618 rm -f conftest.$ac_objext conftest$ac_exeext
46619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46620 (eval $ac_link) 2>&5
46621 ac_status=$?
46622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46623 (exit $ac_status); } &&
46624 { ac_try='test -s conftest$ac_exeext'
46625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46626 (eval $ac_try) 2>&5
46627 ac_status=$?
46628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46629 (exit $ac_status); }; }; then
46630 glibcxx_cv_POLL=yes
46631 else
46632 echo "$as_me: failed program was:" >&5
46633 sed 's/^/| /' conftest.$ac_ext >&5
46635 glibcxx_cv_POLL=no
46637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46641 if test $glibcxx_cv_POLL = yes; then
46642 cat >>confdefs.h <<\_ACEOF
46643 #define HAVE_POLL 1
46644 _ACEOF
46649 if test "${glibcxx_cv_S_ISREG+set}" = set; then
46650 echo $ECHO_N "(cached) $ECHO_C" >&6
46651 else
46653 if test x$gcc_no_link = xyes; then
46654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46656 { (exit 1); exit 1; }; }
46658 cat >conftest.$ac_ext <<_ACEOF
46659 #line $LINENO "configure"
46660 /* confdefs.h. */
46661 _ACEOF
46662 cat confdefs.h >>conftest.$ac_ext
46663 cat >>conftest.$ac_ext <<_ACEOF
46664 /* end confdefs.h. */
46665 #include <sys/stat.h>
46667 main ()
46669 struct stat buffer;
46670 fstat(0, &buffer);
46671 S_ISREG(buffer.st_mode);
46673 return 0;
46675 _ACEOF
46676 rm -f conftest.$ac_objext conftest$ac_exeext
46677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46678 (eval $ac_link) 2>&5
46679 ac_status=$?
46680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46681 (exit $ac_status); } &&
46682 { ac_try='test -s conftest$ac_exeext'
46683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46684 (eval $ac_try) 2>&5
46685 ac_status=$?
46686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46687 (exit $ac_status); }; }; then
46688 glibcxx_cv_S_ISREG=yes
46689 else
46690 echo "$as_me: failed program was:" >&5
46691 sed 's/^/| /' conftest.$ac_ext >&5
46693 glibcxx_cv_S_ISREG=no
46695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46699 if test "${glibcxx_cv_S_IFREG+set}" = set; then
46700 echo $ECHO_N "(cached) $ECHO_C" >&6
46701 else
46703 if test x$gcc_no_link = xyes; then
46704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46706 { (exit 1); exit 1; }; }
46708 cat >conftest.$ac_ext <<_ACEOF
46709 #line $LINENO "configure"
46710 /* confdefs.h. */
46711 _ACEOF
46712 cat confdefs.h >>conftest.$ac_ext
46713 cat >>conftest.$ac_ext <<_ACEOF
46714 /* end confdefs.h. */
46715 #include <sys/stat.h>
46717 main ()
46719 struct stat buffer;
46720 fstat(0, &buffer);
46721 S_IFREG & buffer.st_mode;
46723 return 0;
46725 _ACEOF
46726 rm -f conftest.$ac_objext conftest$ac_exeext
46727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46728 (eval $ac_link) 2>&5
46729 ac_status=$?
46730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46731 (exit $ac_status); } &&
46732 { ac_try='test -s conftest$ac_exeext'
46733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46734 (eval $ac_try) 2>&5
46735 ac_status=$?
46736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46737 (exit $ac_status); }; }; then
46738 glibcxx_cv_S_IFREG=yes
46739 else
46740 echo "$as_me: failed program was:" >&5
46741 sed 's/^/| /' conftest.$ac_ext >&5
46743 glibcxx_cv_S_IFREG=no
46745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46749 if test $glibcxx_cv_S_ISREG = yes; then
46750 cat >>confdefs.h <<\_ACEOF
46751 #define HAVE_S_ISREG 1
46752 _ACEOF
46754 elif test $glibcxx_cv_S_IFREG = yes; then
46755 cat >>confdefs.h <<\_ACEOF
46756 #define HAVE_S_IFREG 1
46757 _ACEOF
46762 # For xsputn_2().
46764 for ac_header in sys/uio.h
46766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46768 echo "$as_me:$LINENO: checking for $ac_header" >&5
46769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46771 echo $ECHO_N "(cached) $ECHO_C" >&6
46773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46775 else
46776 # Is the header compilable?
46777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46779 cat >conftest.$ac_ext <<_ACEOF
46780 #line $LINENO "configure"
46781 /* confdefs.h. */
46782 _ACEOF
46783 cat confdefs.h >>conftest.$ac_ext
46784 cat >>conftest.$ac_ext <<_ACEOF
46785 /* end confdefs.h. */
46786 $ac_includes_default
46787 #include <$ac_header>
46788 _ACEOF
46789 rm -f conftest.$ac_objext
46790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46791 (eval $ac_compile) 2>&5
46792 ac_status=$?
46793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46794 (exit $ac_status); } &&
46795 { ac_try='test -s conftest.$ac_objext'
46796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46797 (eval $ac_try) 2>&5
46798 ac_status=$?
46799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46800 (exit $ac_status); }; }; then
46801 ac_header_compiler=yes
46802 else
46803 echo "$as_me: failed program was:" >&5
46804 sed 's/^/| /' conftest.$ac_ext >&5
46806 ac_header_compiler=no
46808 rm -f conftest.$ac_objext conftest.$ac_ext
46809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46810 echo "${ECHO_T}$ac_header_compiler" >&6
46812 # Is the header present?
46813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46815 cat >conftest.$ac_ext <<_ACEOF
46816 #line $LINENO "configure"
46817 /* confdefs.h. */
46818 _ACEOF
46819 cat confdefs.h >>conftest.$ac_ext
46820 cat >>conftest.$ac_ext <<_ACEOF
46821 /* end confdefs.h. */
46822 #include <$ac_header>
46823 _ACEOF
46824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46826 ac_status=$?
46827 grep -v '^ *+' conftest.er1 >conftest.err
46828 rm -f conftest.er1
46829 cat conftest.err >&5
46830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46831 (exit $ac_status); } >/dev/null; then
46832 if test -s conftest.err; then
46833 ac_cpp_err=$ac_c_preproc_warn_flag
46834 else
46835 ac_cpp_err=
46837 else
46838 ac_cpp_err=yes
46840 if test -z "$ac_cpp_err"; then
46841 ac_header_preproc=yes
46842 else
46843 echo "$as_me: failed program was:" >&5
46844 sed 's/^/| /' conftest.$ac_ext >&5
46846 ac_header_preproc=no
46848 rm -f conftest.err conftest.$ac_ext
46849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46850 echo "${ECHO_T}$ac_header_preproc" >&6
46852 # So? What about this header?
46853 case $ac_header_compiler:$ac_header_preproc in
46854 yes:no )
46855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46860 cat <<\_ASBOX
46861 ## ------------------------------------ ##
46862 ## Report this to bug-autoconf@gnu.org. ##
46863 ## ------------------------------------ ##
46864 _ASBOX
46866 sed "s/^/$as_me: WARNING: /" >&2
46868 no:yes )
46869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46876 cat <<\_ASBOX
46877 ## ------------------------------------ ##
46878 ## Report this to bug-autoconf@gnu.org. ##
46879 ## ------------------------------------ ##
46880 _ASBOX
46882 sed "s/^/$as_me: WARNING: /" >&2
46884 esac
46885 echo "$as_me:$LINENO: checking for $ac_header" >&5
46886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46888 echo $ECHO_N "(cached) $ECHO_C" >&6
46889 else
46890 eval "$as_ac_Header=$ac_header_preproc"
46892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46897 cat >>confdefs.h <<_ACEOF
46898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46899 _ACEOF
46903 done
46906 if test "${glibcxx_cv_WRITEV+set}" = set; then
46907 echo $ECHO_N "(cached) $ECHO_C" >&6
46908 else
46910 if test x$gcc_no_link = xyes; then
46911 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46913 { (exit 1); exit 1; }; }
46915 cat >conftest.$ac_ext <<_ACEOF
46916 #line $LINENO "configure"
46917 /* confdefs.h. */
46918 _ACEOF
46919 cat confdefs.h >>conftest.$ac_ext
46920 cat >>conftest.$ac_ext <<_ACEOF
46921 /* end confdefs.h. */
46922 #include <sys/uio.h>
46924 main ()
46926 struct iovec iov[2];
46927 writev(0, iov, 0);
46929 return 0;
46931 _ACEOF
46932 rm -f conftest.$ac_objext conftest$ac_exeext
46933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46934 (eval $ac_link) 2>&5
46935 ac_status=$?
46936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46937 (exit $ac_status); } &&
46938 { ac_try='test -s conftest$ac_exeext'
46939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46940 (eval $ac_try) 2>&5
46941 ac_status=$?
46942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46943 (exit $ac_status); }; }; then
46944 glibcxx_cv_WRITEV=yes
46945 else
46946 echo "$as_me: failed program was:" >&5
46947 sed 's/^/| /' conftest.$ac_ext >&5
46949 glibcxx_cv_WRITEV=no
46951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46955 if test $glibcxx_cv_WRITEV = yes; then
46956 cat >>confdefs.h <<\_ACEOF
46957 #define HAVE_WRITEV 1
46958 _ACEOF
46963 cat >>confdefs.h <<\_ACEOF
46964 #define HAVE_LC_MESSAGES 1
46965 _ACEOF
46968 cat >conftest.$ac_ext <<_ACEOF
46969 #line $LINENO "configure"
46970 /* confdefs.h. */
46971 _ACEOF
46972 cat confdefs.h >>conftest.$ac_ext
46973 cat >>conftest.$ac_ext <<_ACEOF
46974 /* end confdefs.h. */
46975 #include <setjmp.h>
46977 main ()
46979 sigjmp_buf env;
46980 while (! sigsetjmp (env, 1))
46981 siglongjmp (env, 1);
46984 return 0;
46986 _ACEOF
46987 rm -f conftest.$ac_objext
46988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46989 (eval $ac_compile) 2>&5
46990 ac_status=$?
46991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46992 (exit $ac_status); } &&
46993 { ac_try='test -s conftest.$ac_objext'
46994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46995 (eval $ac_try) 2>&5
46996 ac_status=$?
46997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46998 (exit $ac_status); }; }; then
47000 cat >>confdefs.h <<\_ACEOF
47001 #define HAVE_SIGSETJMP 1
47002 _ACEOF
47004 else
47005 echo "$as_me: failed program was:" >&5
47006 sed 's/^/| /' conftest.$ac_ext >&5
47009 rm -f conftest.$ac_objext conftest.$ac_ext
47011 cat >>confdefs.h <<\_ACEOF
47012 #define HAVE_MMAP 1
47013 _ACEOF
47017 *-freebsd*)
47034 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
47035 machine/endian.h machine/param.h sys/machine.h sys/types.h \
47036 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
47037 sys/time.h unistd.h
47039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47041 echo "$as_me:$LINENO: checking for $ac_header" >&5
47042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47044 echo $ECHO_N "(cached) $ECHO_C" >&6
47046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47048 else
47049 # Is the header compilable?
47050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47052 cat >conftest.$ac_ext <<_ACEOF
47053 #line $LINENO "configure"
47054 /* confdefs.h. */
47055 _ACEOF
47056 cat confdefs.h >>conftest.$ac_ext
47057 cat >>conftest.$ac_ext <<_ACEOF
47058 /* end confdefs.h. */
47059 $ac_includes_default
47060 #include <$ac_header>
47061 _ACEOF
47062 rm -f conftest.$ac_objext
47063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47064 (eval $ac_compile) 2>&5
47065 ac_status=$?
47066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47067 (exit $ac_status); } &&
47068 { ac_try='test -s conftest.$ac_objext'
47069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47070 (eval $ac_try) 2>&5
47071 ac_status=$?
47072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073 (exit $ac_status); }; }; then
47074 ac_header_compiler=yes
47075 else
47076 echo "$as_me: failed program was:" >&5
47077 sed 's/^/| /' conftest.$ac_ext >&5
47079 ac_header_compiler=no
47081 rm -f conftest.$ac_objext conftest.$ac_ext
47082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47083 echo "${ECHO_T}$ac_header_compiler" >&6
47085 # Is the header present?
47086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47088 cat >conftest.$ac_ext <<_ACEOF
47089 #line $LINENO "configure"
47090 /* confdefs.h. */
47091 _ACEOF
47092 cat confdefs.h >>conftest.$ac_ext
47093 cat >>conftest.$ac_ext <<_ACEOF
47094 /* end confdefs.h. */
47095 #include <$ac_header>
47096 _ACEOF
47097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47099 ac_status=$?
47100 grep -v '^ *+' conftest.er1 >conftest.err
47101 rm -f conftest.er1
47102 cat conftest.err >&5
47103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47104 (exit $ac_status); } >/dev/null; then
47105 if test -s conftest.err; then
47106 ac_cpp_err=$ac_c_preproc_warn_flag
47107 else
47108 ac_cpp_err=
47110 else
47111 ac_cpp_err=yes
47113 if test -z "$ac_cpp_err"; then
47114 ac_header_preproc=yes
47115 else
47116 echo "$as_me: failed program was:" >&5
47117 sed 's/^/| /' conftest.$ac_ext >&5
47119 ac_header_preproc=no
47121 rm -f conftest.err conftest.$ac_ext
47122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47123 echo "${ECHO_T}$ac_header_preproc" >&6
47125 # So? What about this header?
47126 case $ac_header_compiler:$ac_header_preproc in
47127 yes:no )
47128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47133 cat <<\_ASBOX
47134 ## ------------------------------------ ##
47135 ## Report this to bug-autoconf@gnu.org. ##
47136 ## ------------------------------------ ##
47137 _ASBOX
47139 sed "s/^/$as_me: WARNING: /" >&2
47141 no:yes )
47142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47149 cat <<\_ASBOX
47150 ## ------------------------------------ ##
47151 ## Report this to bug-autoconf@gnu.org. ##
47152 ## ------------------------------------ ##
47153 _ASBOX
47155 sed "s/^/$as_me: WARNING: /" >&2
47157 esac
47158 echo "$as_me:$LINENO: checking for $ac_header" >&5
47159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47161 echo $ECHO_N "(cached) $ECHO_C" >&6
47162 else
47163 eval "$as_ac_Header=$ac_header_preproc"
47165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47170 cat >>confdefs.h <<_ACEOF
47171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47172 _ACEOF
47176 done
47178 SECTION_FLAGS='-ffunction-sections -fdata-sections'
47181 # If we're not using GNU ld, then there's no point in even trying these
47182 # tests. Check for that first. We should have already tested for gld
47183 # by now (in libtool), but require it now just to be safe...
47184 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
47185 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
47189 # The name set by libtool depends on the version of libtool. Shame on us
47190 # for depending on an impl detail, but c'est la vie. Older versions used
47191 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
47192 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
47193 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
47194 # set (hence we're using an older libtool), then set it.
47195 if test x${with_gnu_ld+set} != xset; then
47196 if test x${ac_cv_prog_gnu_ld+set} != xset; then
47197 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
47198 with_gnu_ld=no
47199 else
47200 with_gnu_ld=$ac_cv_prog_gnu_ld
47204 # Start by getting the version number. I think the libtool test already
47205 # does some of this, but throws away the result.
47207 ldver=`$LD --version 2>/dev/null | head -1 | \
47208 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
47210 glibcxx_gnu_ld_version=`echo $ldver | \
47211 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
47213 # Set --gc-sections.
47214 if test "$with_gnu_ld" = "notbroken"; then
47215 # GNU ld it is! Joy and bunny rabbits!
47217 # All these tests are for C++; save the language and the compiler flags.
47218 # Need to do this so that g++ won't try to link in libstdc++
47219 ac_test_CFLAGS="${CFLAGS+set}"
47220 ac_save_CFLAGS="$CFLAGS"
47221 CFLAGS='-x c++ -Wl,--gc-sections'
47223 # Check for -Wl,--gc-sections
47224 # XXX This test is broken at the moment, as symbols required for linking
47225 # are now in libsupc++ (not built yet). In addition, this test has
47226 # cored on solaris in the past. In addition, --gc-sections doesn't
47227 # really work at the moment (keeps on discarding used sections, first
47228 # .eh_frame and now some of the glibc sections for iconv).
47229 # Bzzzzt. Thanks for playing, maybe next time.
47230 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
47231 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
47232 if test "$cross_compiling" = yes; then
47233 ac_sectionLDflags=yes
47234 else
47235 cat >conftest.$ac_ext <<_ACEOF
47236 #line $LINENO "configure"
47237 /* confdefs.h. */
47238 _ACEOF
47239 cat confdefs.h >>conftest.$ac_ext
47240 cat >>conftest.$ac_ext <<_ACEOF
47241 /* end confdefs.h. */
47243 int main(void)
47245 try { throw 1; }
47246 catch (...) { };
47247 return 0;
47250 _ACEOF
47251 rm -f conftest$ac_exeext
47252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47253 (eval $ac_link) 2>&5
47254 ac_status=$?
47255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47258 (eval $ac_try) 2>&5
47259 ac_status=$?
47260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47261 (exit $ac_status); }; }; then
47262 ac_sectionLDflags=yes
47263 else
47264 echo "$as_me: program exited with status $ac_status" >&5
47265 echo "$as_me: failed program was:" >&5
47266 sed 's/^/| /' conftest.$ac_ext >&5
47268 ( exit $ac_status )
47269 ac_sectionLDflags=no
47271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47273 if test "$ac_test_CFLAGS" = set; then
47274 CFLAGS="$ac_save_CFLAGS"
47275 else
47276 # this is the suspicious part
47277 CFLAGS=''
47279 if test "$ac_sectionLDflags" = "yes"; then
47280 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
47282 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
47283 echo "${ECHO_T}$ac_sectionLDflags" >&6
47286 # Set linker optimization flags.
47287 if test x"$with_gnu_ld" = x"yes"; then
47288 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
47296 echo "$as_me:$LINENO: checking for main in -lm" >&5
47297 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
47298 if test "${ac_cv_lib_m_main+set}" = set; then
47299 echo $ECHO_N "(cached) $ECHO_C" >&6
47300 else
47301 ac_check_lib_save_LIBS=$LIBS
47302 LIBS="-lm $LIBS"
47303 if test x$gcc_no_link = xyes; then
47304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47306 { (exit 1); exit 1; }; }
47308 cat >conftest.$ac_ext <<_ACEOF
47309 #line $LINENO "configure"
47310 /* confdefs.h. */
47311 _ACEOF
47312 cat confdefs.h >>conftest.$ac_ext
47313 cat >>conftest.$ac_ext <<_ACEOF
47314 /* end confdefs.h. */
47318 main ()
47320 main ();
47322 return 0;
47324 _ACEOF
47325 rm -f conftest.$ac_objext conftest$ac_exeext
47326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47327 (eval $ac_link) 2>&5
47328 ac_status=$?
47329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47330 (exit $ac_status); } &&
47331 { ac_try='test -s conftest$ac_exeext'
47332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47333 (eval $ac_try) 2>&5
47334 ac_status=$?
47335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47336 (exit $ac_status); }; }; then
47337 ac_cv_lib_m_main=yes
47338 else
47339 echo "$as_me: failed program was:" >&5
47340 sed 's/^/| /' conftest.$ac_ext >&5
47342 ac_cv_lib_m_main=no
47344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47345 LIBS=$ac_check_lib_save_LIBS
47347 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
47348 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
47349 if test $ac_cv_lib_m_main = yes; then
47350 cat >>confdefs.h <<_ACEOF
47351 #define HAVE_LIBM 1
47352 _ACEOF
47354 LIBS="-lm $LIBS"
47360 for ac_func in nan copysignf
47362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47363 echo "$as_me:$LINENO: checking for $ac_func" >&5
47364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47365 if eval "test \"\${$as_ac_var+set}\" = set"; then
47366 echo $ECHO_N "(cached) $ECHO_C" >&6
47367 else
47368 if test x$gcc_no_link = xyes; then
47369 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47371 { (exit 1); exit 1; }; }
47373 cat >conftest.$ac_ext <<_ACEOF
47374 #line $LINENO "configure"
47375 /* confdefs.h. */
47376 _ACEOF
47377 cat confdefs.h >>conftest.$ac_ext
47378 cat >>conftest.$ac_ext <<_ACEOF
47379 /* end confdefs.h. */
47380 /* System header to define __stub macros and hopefully few prototypes,
47381 which can conflict with char $ac_func (); below.
47382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47383 <limits.h> exists even on freestanding compilers. */
47384 #ifdef __STDC__
47385 # include <limits.h>
47386 #else
47387 # include <assert.h>
47388 #endif
47389 /* Override any gcc2 internal prototype to avoid an error. */
47390 #ifdef __cplusplus
47391 extern "C"
47393 #endif
47394 /* We use char because int might match the return type of a gcc2
47395 builtin and then its argument prototype would still apply. */
47396 char $ac_func ();
47397 /* The GNU C library defines this for functions which it implements
47398 to always fail with ENOSYS. Some functions are actually named
47399 something starting with __ and the normal name is an alias. */
47400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47401 choke me
47402 #else
47403 char (*f) () = $ac_func;
47404 #endif
47405 #ifdef __cplusplus
47407 #endif
47410 main ()
47412 return f != $ac_func;
47414 return 0;
47416 _ACEOF
47417 rm -f conftest.$ac_objext conftest$ac_exeext
47418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47419 (eval $ac_link) 2>&5
47420 ac_status=$?
47421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422 (exit $ac_status); } &&
47423 { ac_try='test -s conftest$ac_exeext'
47424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47425 (eval $ac_try) 2>&5
47426 ac_status=$?
47427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47428 (exit $ac_status); }; }; then
47429 eval "$as_ac_var=yes"
47430 else
47431 echo "$as_me: failed program was:" >&5
47432 sed 's/^/| /' conftest.$ac_ext >&5
47434 eval "$as_ac_var=no"
47436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47440 if test `eval echo '${'$as_ac_var'}'` = yes; then
47441 cat >>confdefs.h <<_ACEOF
47442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47443 _ACEOF
47445 else
47446 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
47448 done
47452 for ac_func in __signbit
47454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47455 echo "$as_me:$LINENO: checking for $ac_func" >&5
47456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47457 if eval "test \"\${$as_ac_var+set}\" = set"; then
47458 echo $ECHO_N "(cached) $ECHO_C" >&6
47459 else
47460 if test x$gcc_no_link = xyes; then
47461 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47463 { (exit 1); exit 1; }; }
47465 cat >conftest.$ac_ext <<_ACEOF
47466 #line $LINENO "configure"
47467 /* confdefs.h. */
47468 _ACEOF
47469 cat confdefs.h >>conftest.$ac_ext
47470 cat >>conftest.$ac_ext <<_ACEOF
47471 /* end confdefs.h. */
47472 /* System header to define __stub macros and hopefully few prototypes,
47473 which can conflict with char $ac_func (); below.
47474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47475 <limits.h> exists even on freestanding compilers. */
47476 #ifdef __STDC__
47477 # include <limits.h>
47478 #else
47479 # include <assert.h>
47480 #endif
47481 /* Override any gcc2 internal prototype to avoid an error. */
47482 #ifdef __cplusplus
47483 extern "C"
47485 #endif
47486 /* We use char because int might match the return type of a gcc2
47487 builtin and then its argument prototype would still apply. */
47488 char $ac_func ();
47489 /* The GNU C library defines this for functions which it implements
47490 to always fail with ENOSYS. Some functions are actually named
47491 something starting with __ and the normal name is an alias. */
47492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47493 choke me
47494 #else
47495 char (*f) () = $ac_func;
47496 #endif
47497 #ifdef __cplusplus
47499 #endif
47502 main ()
47504 return f != $ac_func;
47506 return 0;
47508 _ACEOF
47509 rm -f conftest.$ac_objext conftest$ac_exeext
47510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47511 (eval $ac_link) 2>&5
47512 ac_status=$?
47513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514 (exit $ac_status); } &&
47515 { ac_try='test -s conftest$ac_exeext'
47516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47517 (eval $ac_try) 2>&5
47518 ac_status=$?
47519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520 (exit $ac_status); }; }; then
47521 eval "$as_ac_var=yes"
47522 else
47523 echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47526 eval "$as_ac_var=no"
47528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47532 if test `eval echo '${'$as_ac_var'}'` = yes; then
47533 cat >>confdefs.h <<_ACEOF
47534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47535 _ACEOF
47537 else
47538 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
47540 done
47543 for ac_func in __signbitf
47545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47546 echo "$as_me:$LINENO: checking for $ac_func" >&5
47547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47548 if eval "test \"\${$as_ac_var+set}\" = set"; then
47549 echo $ECHO_N "(cached) $ECHO_C" >&6
47550 else
47551 if test x$gcc_no_link = xyes; then
47552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47554 { (exit 1); exit 1; }; }
47556 cat >conftest.$ac_ext <<_ACEOF
47557 #line $LINENO "configure"
47558 /* confdefs.h. */
47559 _ACEOF
47560 cat confdefs.h >>conftest.$ac_ext
47561 cat >>conftest.$ac_ext <<_ACEOF
47562 /* end confdefs.h. */
47563 /* System header to define __stub macros and hopefully few prototypes,
47564 which can conflict with char $ac_func (); below.
47565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47566 <limits.h> exists even on freestanding compilers. */
47567 #ifdef __STDC__
47568 # include <limits.h>
47569 #else
47570 # include <assert.h>
47571 #endif
47572 /* Override any gcc2 internal prototype to avoid an error. */
47573 #ifdef __cplusplus
47574 extern "C"
47576 #endif
47577 /* We use char because int might match the return type of a gcc2
47578 builtin and then its argument prototype would still apply. */
47579 char $ac_func ();
47580 /* The GNU C library defines this for functions which it implements
47581 to always fail with ENOSYS. Some functions are actually named
47582 something starting with __ and the normal name is an alias. */
47583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47584 choke me
47585 #else
47586 char (*f) () = $ac_func;
47587 #endif
47588 #ifdef __cplusplus
47590 #endif
47593 main ()
47595 return f != $ac_func;
47597 return 0;
47599 _ACEOF
47600 rm -f conftest.$ac_objext conftest$ac_exeext
47601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47602 (eval $ac_link) 2>&5
47603 ac_status=$?
47604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605 (exit $ac_status); } &&
47606 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
47612 eval "$as_ac_var=yes"
47613 else
47614 echo "$as_me: failed program was:" >&5
47615 sed 's/^/| /' conftest.$ac_ext >&5
47617 eval "$as_ac_var=no"
47619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47623 if test `eval echo '${'$as_ac_var'}'` = yes; then
47624 cat >>confdefs.h <<_ACEOF
47625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47626 _ACEOF
47628 else
47629 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
47631 done
47634 if test x$ac_cv_func_copysignl = x"yes"; then
47636 for ac_func in __signbitl
47638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47639 echo "$as_me:$LINENO: checking for $ac_func" >&5
47640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47641 if eval "test \"\${$as_ac_var+set}\" = set"; then
47642 echo $ECHO_N "(cached) $ECHO_C" >&6
47643 else
47644 if test x$gcc_no_link = xyes; then
47645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47647 { (exit 1); exit 1; }; }
47649 cat >conftest.$ac_ext <<_ACEOF
47650 #line $LINENO "configure"
47651 /* confdefs.h. */
47652 _ACEOF
47653 cat confdefs.h >>conftest.$ac_ext
47654 cat >>conftest.$ac_ext <<_ACEOF
47655 /* end confdefs.h. */
47656 /* System header to define __stub macros and hopefully few prototypes,
47657 which can conflict with char $ac_func (); below.
47658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47659 <limits.h> exists even on freestanding compilers. */
47660 #ifdef __STDC__
47661 # include <limits.h>
47662 #else
47663 # include <assert.h>
47664 #endif
47665 /* Override any gcc2 internal prototype to avoid an error. */
47666 #ifdef __cplusplus
47667 extern "C"
47669 #endif
47670 /* We use char because int might match the return type of a gcc2
47671 builtin and then its argument prototype would still apply. */
47672 char $ac_func ();
47673 /* The GNU C library defines this for functions which it implements
47674 to always fail with ENOSYS. Some functions are actually named
47675 something starting with __ and the normal name is an alias. */
47676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47677 choke me
47678 #else
47679 char (*f) () = $ac_func;
47680 #endif
47681 #ifdef __cplusplus
47683 #endif
47686 main ()
47688 return f != $ac_func;
47690 return 0;
47692 _ACEOF
47693 rm -f conftest.$ac_objext conftest$ac_exeext
47694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47695 (eval $ac_link) 2>&5
47696 ac_status=$?
47697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698 (exit $ac_status); } &&
47699 { ac_try='test -s conftest$ac_exeext'
47700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47701 (eval $ac_try) 2>&5
47702 ac_status=$?
47703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47704 (exit $ac_status); }; }; then
47705 eval "$as_ac_var=yes"
47706 else
47707 echo "$as_me: failed program was:" >&5
47708 sed 's/^/| /' conftest.$ac_ext >&5
47710 eval "$as_ac_var=no"
47712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47716 if test `eval echo '${'$as_ac_var'}'` = yes; then
47717 cat >>confdefs.h <<_ACEOF
47718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47719 _ACEOF
47721 else
47722 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
47724 done
47728 # XXX Review this. Nothing uses it.
47729 if test -n "$LIBMATHOBJS"; then
47730 need_libmath=yes
47735 # Test wchar.h for mbstate_t, which is needed for char_traits and
47736 # others even if wchar_t support is not on.
47737 echo "$as_me:$LINENO: checking for mbstate_t" >&5
47738 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
47739 cat >conftest.$ac_ext <<_ACEOF
47740 #line $LINENO "configure"
47741 /* confdefs.h. */
47742 _ACEOF
47743 cat confdefs.h >>conftest.$ac_ext
47744 cat >>conftest.$ac_ext <<_ACEOF
47745 /* end confdefs.h. */
47746 #include <wchar.h>
47748 main ()
47750 mbstate_t teststate;
47752 return 0;
47754 _ACEOF
47755 rm -f conftest.$ac_objext
47756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47757 (eval $ac_compile) 2>&5
47758 ac_status=$?
47759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47760 (exit $ac_status); } &&
47761 { ac_try='test -s conftest.$ac_objext'
47762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47763 (eval $ac_try) 2>&5
47764 ac_status=$?
47765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47766 (exit $ac_status); }; }; then
47767 have_mbstate_t=yes
47768 else
47769 echo "$as_me: failed program was:" >&5
47770 sed 's/^/| /' conftest.$ac_ext >&5
47772 have_mbstate_t=no
47774 rm -f conftest.$ac_objext conftest.$ac_ext
47775 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
47776 echo "${ECHO_T}$have_mbstate_t" >&6
47777 if test x"$have_mbstate_t" = xyes; then
47778 cat >>confdefs.h <<\_ACEOF
47779 #define HAVE_MBSTATE_T 1
47780 _ACEOF
47784 # Sanity check for existence of ISO C99 headers for extended encoding.
47786 for ac_header in wchar.h
47788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47790 echo "$as_me:$LINENO: checking for $ac_header" >&5
47791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47793 echo $ECHO_N "(cached) $ECHO_C" >&6
47795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47797 else
47798 # Is the header compilable?
47799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47801 cat >conftest.$ac_ext <<_ACEOF
47802 #line $LINENO "configure"
47803 /* confdefs.h. */
47804 _ACEOF
47805 cat confdefs.h >>conftest.$ac_ext
47806 cat >>conftest.$ac_ext <<_ACEOF
47807 /* end confdefs.h. */
47808 $ac_includes_default
47809 #include <$ac_header>
47810 _ACEOF
47811 rm -f conftest.$ac_objext
47812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47813 (eval $ac_compile) 2>&5
47814 ac_status=$?
47815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47816 (exit $ac_status); } &&
47817 { ac_try='test -s conftest.$ac_objext'
47818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47819 (eval $ac_try) 2>&5
47820 ac_status=$?
47821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47822 (exit $ac_status); }; }; then
47823 ac_header_compiler=yes
47824 else
47825 echo "$as_me: failed program was:" >&5
47826 sed 's/^/| /' conftest.$ac_ext >&5
47828 ac_header_compiler=no
47830 rm -f conftest.$ac_objext conftest.$ac_ext
47831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47832 echo "${ECHO_T}$ac_header_compiler" >&6
47834 # Is the header present?
47835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47837 cat >conftest.$ac_ext <<_ACEOF
47838 #line $LINENO "configure"
47839 /* confdefs.h. */
47840 _ACEOF
47841 cat confdefs.h >>conftest.$ac_ext
47842 cat >>conftest.$ac_ext <<_ACEOF
47843 /* end confdefs.h. */
47844 #include <$ac_header>
47845 _ACEOF
47846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47848 ac_status=$?
47849 grep -v '^ *+' conftest.er1 >conftest.err
47850 rm -f conftest.er1
47851 cat conftest.err >&5
47852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47853 (exit $ac_status); } >/dev/null; then
47854 if test -s conftest.err; then
47855 ac_cpp_err=$ac_c_preproc_warn_flag
47856 else
47857 ac_cpp_err=
47859 else
47860 ac_cpp_err=yes
47862 if test -z "$ac_cpp_err"; then
47863 ac_header_preproc=yes
47864 else
47865 echo "$as_me: failed program was:" >&5
47866 sed 's/^/| /' conftest.$ac_ext >&5
47868 ac_header_preproc=no
47870 rm -f conftest.err conftest.$ac_ext
47871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47872 echo "${ECHO_T}$ac_header_preproc" >&6
47874 # So? What about this header?
47875 case $ac_header_compiler:$ac_header_preproc in
47876 yes:no )
47877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47882 cat <<\_ASBOX
47883 ## ------------------------------------ ##
47884 ## Report this to bug-autoconf@gnu.org. ##
47885 ## ------------------------------------ ##
47886 _ASBOX
47888 sed "s/^/$as_me: WARNING: /" >&2
47890 no:yes )
47891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47898 cat <<\_ASBOX
47899 ## ------------------------------------ ##
47900 ## Report this to bug-autoconf@gnu.org. ##
47901 ## ------------------------------------ ##
47902 _ASBOX
47904 sed "s/^/$as_me: WARNING: /" >&2
47906 esac
47907 echo "$as_me:$LINENO: checking for $ac_header" >&5
47908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47910 echo $ECHO_N "(cached) $ECHO_C" >&6
47911 else
47912 eval "$as_ac_Header=$ac_header_preproc"
47914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47919 cat >>confdefs.h <<_ACEOF
47920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47921 _ACEOF
47922 ac_has_wchar_h=yes
47923 else
47924 ac_has_wchar_h=no
47927 done
47930 for ac_header in wctype.h
47932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47934 echo "$as_me:$LINENO: checking for $ac_header" >&5
47935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47937 echo $ECHO_N "(cached) $ECHO_C" >&6
47939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47941 else
47942 # Is the header compilable?
47943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47945 cat >conftest.$ac_ext <<_ACEOF
47946 #line $LINENO "configure"
47947 /* confdefs.h. */
47948 _ACEOF
47949 cat confdefs.h >>conftest.$ac_ext
47950 cat >>conftest.$ac_ext <<_ACEOF
47951 /* end confdefs.h. */
47952 $ac_includes_default
47953 #include <$ac_header>
47954 _ACEOF
47955 rm -f conftest.$ac_objext
47956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47957 (eval $ac_compile) 2>&5
47958 ac_status=$?
47959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47960 (exit $ac_status); } &&
47961 { ac_try='test -s conftest.$ac_objext'
47962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47963 (eval $ac_try) 2>&5
47964 ac_status=$?
47965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966 (exit $ac_status); }; }; then
47967 ac_header_compiler=yes
47968 else
47969 echo "$as_me: failed program was:" >&5
47970 sed 's/^/| /' conftest.$ac_ext >&5
47972 ac_header_compiler=no
47974 rm -f conftest.$ac_objext conftest.$ac_ext
47975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47976 echo "${ECHO_T}$ac_header_compiler" >&6
47978 # Is the header present?
47979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47981 cat >conftest.$ac_ext <<_ACEOF
47982 #line $LINENO "configure"
47983 /* confdefs.h. */
47984 _ACEOF
47985 cat confdefs.h >>conftest.$ac_ext
47986 cat >>conftest.$ac_ext <<_ACEOF
47987 /* end confdefs.h. */
47988 #include <$ac_header>
47989 _ACEOF
47990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47992 ac_status=$?
47993 grep -v '^ *+' conftest.er1 >conftest.err
47994 rm -f conftest.er1
47995 cat conftest.err >&5
47996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47997 (exit $ac_status); } >/dev/null; then
47998 if test -s conftest.err; then
47999 ac_cpp_err=$ac_c_preproc_warn_flag
48000 else
48001 ac_cpp_err=
48003 else
48004 ac_cpp_err=yes
48006 if test -z "$ac_cpp_err"; then
48007 ac_header_preproc=yes
48008 else
48009 echo "$as_me: failed program was:" >&5
48010 sed 's/^/| /' conftest.$ac_ext >&5
48012 ac_header_preproc=no
48014 rm -f conftest.err conftest.$ac_ext
48015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48016 echo "${ECHO_T}$ac_header_preproc" >&6
48018 # So? What about this header?
48019 case $ac_header_compiler:$ac_header_preproc in
48020 yes:no )
48021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48026 cat <<\_ASBOX
48027 ## ------------------------------------ ##
48028 ## Report this to bug-autoconf@gnu.org. ##
48029 ## ------------------------------------ ##
48030 _ASBOX
48032 sed "s/^/$as_me: WARNING: /" >&2
48034 no:yes )
48035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48042 cat <<\_ASBOX
48043 ## ------------------------------------ ##
48044 ## Report this to bug-autoconf@gnu.org. ##
48045 ## ------------------------------------ ##
48046 _ASBOX
48048 sed "s/^/$as_me: WARNING: /" >&2
48050 esac
48051 echo "$as_me:$LINENO: checking for $ac_header" >&5
48052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48054 echo $ECHO_N "(cached) $ECHO_C" >&6
48055 else
48056 eval "$as_ac_Header=$ac_header_preproc"
48058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48063 cat >>confdefs.h <<_ACEOF
48064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48065 _ACEOF
48066 ac_has_wctype_h=yes
48067 else
48068 ac_has_wctype_h=no
48071 done
48074 # Only continue checking if the ISO C99 headers exist and support is on.
48075 if test x"$ac_has_wchar_h" = xyes &&
48076 test x"$ac_has_wctype_h" = xyes &&
48077 test x"$enable_c_mbchar" != xno; then
48079 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
48080 # numeric_limits can instantiate type_traits<wchar_t>
48081 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
48082 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
48083 cat >conftest.$ac_ext <<_ACEOF
48084 #line $LINENO "configure"
48085 /* confdefs.h. */
48086 _ACEOF
48087 cat confdefs.h >>conftest.$ac_ext
48088 cat >>conftest.$ac_ext <<_ACEOF
48089 /* end confdefs.h. */
48090 #include <wchar.h>
48092 main ()
48094 int i = WCHAR_MIN; int j = WCHAR_MAX;
48096 return 0;
48098 _ACEOF
48099 rm -f conftest.$ac_objext
48100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48101 (eval $ac_compile) 2>&5
48102 ac_status=$?
48103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48104 (exit $ac_status); } &&
48105 { ac_try='test -s conftest.$ac_objext'
48106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48107 (eval $ac_try) 2>&5
48108 ac_status=$?
48109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48110 (exit $ac_status); }; }; then
48111 has_wchar_minmax=yes
48112 else
48113 echo "$as_me: failed program was:" >&5
48114 sed 's/^/| /' conftest.$ac_ext >&5
48116 has_wchar_minmax=no
48118 rm -f conftest.$ac_objext conftest.$ac_ext
48119 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
48120 echo "${ECHO_T}$has_wchar_minmax" >&6
48122 # Test wchar.h for WEOF, which is what we use to determine whether
48123 # to specialize for char_traits<wchar_t> or not.
48124 echo "$as_me:$LINENO: checking for WEOF" >&5
48125 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
48126 cat >conftest.$ac_ext <<_ACEOF
48127 #line $LINENO "configure"
48128 /* confdefs.h. */
48129 _ACEOF
48130 cat confdefs.h >>conftest.$ac_ext
48131 cat >>conftest.$ac_ext <<_ACEOF
48132 /* end confdefs.h. */
48134 #include <wchar.h>
48135 #include <stddef.h>
48137 main ()
48139 wint_t i = WEOF;
48141 return 0;
48143 _ACEOF
48144 rm -f conftest.$ac_objext
48145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48146 (eval $ac_compile) 2>&5
48147 ac_status=$?
48148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48149 (exit $ac_status); } &&
48150 { ac_try='test -s conftest.$ac_objext'
48151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48152 (eval $ac_try) 2>&5
48153 ac_status=$?
48154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48155 (exit $ac_status); }; }; then
48156 has_weof=yes
48157 else
48158 echo "$as_me: failed program was:" >&5
48159 sed 's/^/| /' conftest.$ac_ext >&5
48161 has_weof=no
48163 rm -f conftest.$ac_objext conftest.$ac_ext
48164 echo "$as_me:$LINENO: result: $has_weof" >&5
48165 echo "${ECHO_T}$has_weof" >&6
48167 # Tests for wide character functions used in char_traits<wchar_t>.
48168 ac_wfuncs=yes
48175 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
48177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48178 echo "$as_me:$LINENO: checking for $ac_func" >&5
48179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48180 if eval "test \"\${$as_ac_var+set}\" = set"; then
48181 echo $ECHO_N "(cached) $ECHO_C" >&6
48182 else
48183 if test x$gcc_no_link = xyes; then
48184 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48185 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48186 { (exit 1); exit 1; }; }
48188 cat >conftest.$ac_ext <<_ACEOF
48189 #line $LINENO "configure"
48190 /* confdefs.h. */
48191 _ACEOF
48192 cat confdefs.h >>conftest.$ac_ext
48193 cat >>conftest.$ac_ext <<_ACEOF
48194 /* end confdefs.h. */
48195 /* System header to define __stub macros and hopefully few prototypes,
48196 which can conflict with char $ac_func (); below.
48197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48198 <limits.h> exists even on freestanding compilers. */
48199 #ifdef __STDC__
48200 # include <limits.h>
48201 #else
48202 # include <assert.h>
48203 #endif
48204 /* Override any gcc2 internal prototype to avoid an error. */
48205 #ifdef __cplusplus
48206 extern "C"
48208 #endif
48209 /* We use char because int might match the return type of a gcc2
48210 builtin and then its argument prototype would still apply. */
48211 char $ac_func ();
48212 /* The GNU C library defines this for functions which it implements
48213 to always fail with ENOSYS. Some functions are actually named
48214 something starting with __ and the normal name is an alias. */
48215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48216 choke me
48217 #else
48218 char (*f) () = $ac_func;
48219 #endif
48220 #ifdef __cplusplus
48222 #endif
48225 main ()
48227 return f != $ac_func;
48229 return 0;
48231 _ACEOF
48232 rm -f conftest.$ac_objext conftest$ac_exeext
48233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48234 (eval $ac_link) 2>&5
48235 ac_status=$?
48236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48237 (exit $ac_status); } &&
48238 { ac_try='test -s conftest$ac_exeext'
48239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48240 (eval $ac_try) 2>&5
48241 ac_status=$?
48242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48243 (exit $ac_status); }; }; then
48244 eval "$as_ac_var=yes"
48245 else
48246 echo "$as_me: failed program was:" >&5
48247 sed 's/^/| /' conftest.$ac_ext >&5
48249 eval "$as_ac_var=no"
48251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48255 if test `eval echo '${'$as_ac_var'}'` = yes; then
48256 cat >>confdefs.h <<_ACEOF
48257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48258 _ACEOF
48260 else
48261 ac_wfuncs=no
48263 done
48266 # Checks for names injected into std:: by the c_std headers.
48313 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
48314 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
48315 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
48316 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
48317 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
48318 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
48320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48321 echo "$as_me:$LINENO: checking for $ac_func" >&5
48322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48323 if eval "test \"\${$as_ac_var+set}\" = set"; then
48324 echo $ECHO_N "(cached) $ECHO_C" >&6
48325 else
48326 if test x$gcc_no_link = xyes; then
48327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48329 { (exit 1); exit 1; }; }
48331 cat >conftest.$ac_ext <<_ACEOF
48332 #line $LINENO "configure"
48333 /* confdefs.h. */
48334 _ACEOF
48335 cat confdefs.h >>conftest.$ac_ext
48336 cat >>conftest.$ac_ext <<_ACEOF
48337 /* end confdefs.h. */
48338 /* System header to define __stub macros and hopefully few prototypes,
48339 which can conflict with char $ac_func (); below.
48340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48341 <limits.h> exists even on freestanding compilers. */
48342 #ifdef __STDC__
48343 # include <limits.h>
48344 #else
48345 # include <assert.h>
48346 #endif
48347 /* Override any gcc2 internal prototype to avoid an error. */
48348 #ifdef __cplusplus
48349 extern "C"
48351 #endif
48352 /* We use char because int might match the return type of a gcc2
48353 builtin and then its argument prototype would still apply. */
48354 char $ac_func ();
48355 /* The GNU C library defines this for functions which it implements
48356 to always fail with ENOSYS. Some functions are actually named
48357 something starting with __ and the normal name is an alias. */
48358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48359 choke me
48360 #else
48361 char (*f) () = $ac_func;
48362 #endif
48363 #ifdef __cplusplus
48365 #endif
48368 main ()
48370 return f != $ac_func;
48372 return 0;
48374 _ACEOF
48375 rm -f conftest.$ac_objext conftest$ac_exeext
48376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48377 (eval $ac_link) 2>&5
48378 ac_status=$?
48379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380 (exit $ac_status); } &&
48381 { ac_try='test -s conftest$ac_exeext'
48382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48383 (eval $ac_try) 2>&5
48384 ac_status=$?
48385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48386 (exit $ac_status); }; }; then
48387 eval "$as_ac_var=yes"
48388 else
48389 echo "$as_me: failed program was:" >&5
48390 sed 's/^/| /' conftest.$ac_ext >&5
48392 eval "$as_ac_var=no"
48394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48398 if test `eval echo '${'$as_ac_var'}'` = yes; then
48399 cat >>confdefs.h <<_ACEOF
48400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48401 _ACEOF
48403 else
48404 ac_wfuncs=no
48406 done
48409 # Checks for wide character functions that are not required
48410 # for basic wchar_t support. Don't disable support if they are missing.
48411 # Injection of these is wrapped with guard macros.
48417 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
48419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48420 echo "$as_me:$LINENO: checking for $ac_func" >&5
48421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48422 if eval "test \"\${$as_ac_var+set}\" = set"; then
48423 echo $ECHO_N "(cached) $ECHO_C" >&6
48424 else
48425 if test x$gcc_no_link = xyes; then
48426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48428 { (exit 1); exit 1; }; }
48430 cat >conftest.$ac_ext <<_ACEOF
48431 #line $LINENO "configure"
48432 /* confdefs.h. */
48433 _ACEOF
48434 cat confdefs.h >>conftest.$ac_ext
48435 cat >>conftest.$ac_ext <<_ACEOF
48436 /* end confdefs.h. */
48437 /* System header to define __stub macros and hopefully few prototypes,
48438 which can conflict with char $ac_func (); below.
48439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48440 <limits.h> exists even on freestanding compilers. */
48441 #ifdef __STDC__
48442 # include <limits.h>
48443 #else
48444 # include <assert.h>
48445 #endif
48446 /* Override any gcc2 internal prototype to avoid an error. */
48447 #ifdef __cplusplus
48448 extern "C"
48450 #endif
48451 /* We use char because int might match the return type of a gcc2
48452 builtin and then its argument prototype would still apply. */
48453 char $ac_func ();
48454 /* The GNU C library defines this for functions which it implements
48455 to always fail with ENOSYS. Some functions are actually named
48456 something starting with __ and the normal name is an alias. */
48457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48458 choke me
48459 #else
48460 char (*f) () = $ac_func;
48461 #endif
48462 #ifdef __cplusplus
48464 #endif
48467 main ()
48469 return f != $ac_func;
48471 return 0;
48473 _ACEOF
48474 rm -f conftest.$ac_objext conftest$ac_exeext
48475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48476 (eval $ac_link) 2>&5
48477 ac_status=$?
48478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48479 (exit $ac_status); } &&
48480 { ac_try='test -s conftest$ac_exeext'
48481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48482 (eval $ac_try) 2>&5
48483 ac_status=$?
48484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48485 (exit $ac_status); }; }; then
48486 eval "$as_ac_var=yes"
48487 else
48488 echo "$as_me: failed program was:" >&5
48489 sed 's/^/| /' conftest.$ac_ext >&5
48491 eval "$as_ac_var=no"
48493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48497 if test `eval echo '${'$as_ac_var'}'` = yes; then
48498 cat >>confdefs.h <<_ACEOF
48499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48500 _ACEOF
48503 done
48506 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
48507 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
48508 if test x"$has_weof" = xyes &&
48509 test x"$has_wchar_minmax" = xyes &&
48510 test x"$ac_wfuncs" = xyes;
48511 then
48512 ac_isoC99_wchar_t=yes
48513 else
48514 ac_isoC99_wchar_t=no
48516 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
48517 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
48519 # Use iconv for wchar_t to char conversions. As such, check for
48520 # X/Open Portability Guide, version 2 features (XPG2).
48521 if test "${ac_cv_header_iconv_h+set}" = set; then
48522 echo "$as_me:$LINENO: checking for iconv.h" >&5
48523 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48524 if test "${ac_cv_header_iconv_h+set}" = set; then
48525 echo $ECHO_N "(cached) $ECHO_C" >&6
48527 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48528 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48529 else
48530 # Is the header compilable?
48531 echo "$as_me:$LINENO: checking iconv.h usability" >&5
48532 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
48533 cat >conftest.$ac_ext <<_ACEOF
48534 #line $LINENO "configure"
48535 /* confdefs.h. */
48536 _ACEOF
48537 cat confdefs.h >>conftest.$ac_ext
48538 cat >>conftest.$ac_ext <<_ACEOF
48539 /* end confdefs.h. */
48540 $ac_includes_default
48541 #include <iconv.h>
48542 _ACEOF
48543 rm -f conftest.$ac_objext
48544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48545 (eval $ac_compile) 2>&5
48546 ac_status=$?
48547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548 (exit $ac_status); } &&
48549 { ac_try='test -s conftest.$ac_objext'
48550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48551 (eval $ac_try) 2>&5
48552 ac_status=$?
48553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48554 (exit $ac_status); }; }; then
48555 ac_header_compiler=yes
48556 else
48557 echo "$as_me: failed program was:" >&5
48558 sed 's/^/| /' conftest.$ac_ext >&5
48560 ac_header_compiler=no
48562 rm -f conftest.$ac_objext conftest.$ac_ext
48563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48564 echo "${ECHO_T}$ac_header_compiler" >&6
48566 # Is the header present?
48567 echo "$as_me:$LINENO: checking iconv.h presence" >&5
48568 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
48569 cat >conftest.$ac_ext <<_ACEOF
48570 #line $LINENO "configure"
48571 /* confdefs.h. */
48572 _ACEOF
48573 cat confdefs.h >>conftest.$ac_ext
48574 cat >>conftest.$ac_ext <<_ACEOF
48575 /* end confdefs.h. */
48576 #include <iconv.h>
48577 _ACEOF
48578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48580 ac_status=$?
48581 grep -v '^ *+' conftest.er1 >conftest.err
48582 rm -f conftest.er1
48583 cat conftest.err >&5
48584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48585 (exit $ac_status); } >/dev/null; then
48586 if test -s conftest.err; then
48587 ac_cpp_err=$ac_c_preproc_warn_flag
48588 else
48589 ac_cpp_err=
48591 else
48592 ac_cpp_err=yes
48594 if test -z "$ac_cpp_err"; then
48595 ac_header_preproc=yes
48596 else
48597 echo "$as_me: failed program was:" >&5
48598 sed 's/^/| /' conftest.$ac_ext >&5
48600 ac_header_preproc=no
48602 rm -f conftest.err conftest.$ac_ext
48603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48604 echo "${ECHO_T}$ac_header_preproc" >&6
48606 # So? What about this header?
48607 case $ac_header_compiler:$ac_header_preproc in
48608 yes:no )
48609 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
48610 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48611 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48612 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48614 cat <<\_ASBOX
48615 ## ------------------------------------ ##
48616 ## Report this to bug-autoconf@gnu.org. ##
48617 ## ------------------------------------ ##
48618 _ASBOX
48620 sed "s/^/$as_me: WARNING: /" >&2
48622 no:yes )
48623 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
48624 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
48625 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
48626 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
48627 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48628 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48630 cat <<\_ASBOX
48631 ## ------------------------------------ ##
48632 ## Report this to bug-autoconf@gnu.org. ##
48633 ## ------------------------------------ ##
48634 _ASBOX
48636 sed "s/^/$as_me: WARNING: /" >&2
48638 esac
48639 echo "$as_me:$LINENO: checking for iconv.h" >&5
48640 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48641 if test "${ac_cv_header_iconv_h+set}" = set; then
48642 echo $ECHO_N "(cached) $ECHO_C" >&6
48643 else
48644 ac_cv_header_iconv_h=$ac_header_preproc
48646 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48647 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48650 if test $ac_cv_header_iconv_h = yes; then
48651 ac_has_iconv_h=yes
48652 else
48653 ac_has_iconv_h=no
48657 if test "${ac_cv_header_langinfo_h+set}" = set; then
48658 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48659 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48660 if test "${ac_cv_header_langinfo_h+set}" = set; then
48661 echo $ECHO_N "(cached) $ECHO_C" >&6
48663 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48664 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48665 else
48666 # Is the header compilable?
48667 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
48668 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
48669 cat >conftest.$ac_ext <<_ACEOF
48670 #line $LINENO "configure"
48671 /* confdefs.h. */
48672 _ACEOF
48673 cat confdefs.h >>conftest.$ac_ext
48674 cat >>conftest.$ac_ext <<_ACEOF
48675 /* end confdefs.h. */
48676 $ac_includes_default
48677 #include <langinfo.h>
48678 _ACEOF
48679 rm -f conftest.$ac_objext
48680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48681 (eval $ac_compile) 2>&5
48682 ac_status=$?
48683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48684 (exit $ac_status); } &&
48685 { ac_try='test -s conftest.$ac_objext'
48686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48687 (eval $ac_try) 2>&5
48688 ac_status=$?
48689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48690 (exit $ac_status); }; }; then
48691 ac_header_compiler=yes
48692 else
48693 echo "$as_me: failed program was:" >&5
48694 sed 's/^/| /' conftest.$ac_ext >&5
48696 ac_header_compiler=no
48698 rm -f conftest.$ac_objext conftest.$ac_ext
48699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48700 echo "${ECHO_T}$ac_header_compiler" >&6
48702 # Is the header present?
48703 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
48704 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
48705 cat >conftest.$ac_ext <<_ACEOF
48706 #line $LINENO "configure"
48707 /* confdefs.h. */
48708 _ACEOF
48709 cat confdefs.h >>conftest.$ac_ext
48710 cat >>conftest.$ac_ext <<_ACEOF
48711 /* end confdefs.h. */
48712 #include <langinfo.h>
48713 _ACEOF
48714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48716 ac_status=$?
48717 grep -v '^ *+' conftest.er1 >conftest.err
48718 rm -f conftest.er1
48719 cat conftest.err >&5
48720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48721 (exit $ac_status); } >/dev/null; then
48722 if test -s conftest.err; then
48723 ac_cpp_err=$ac_c_preproc_warn_flag
48724 else
48725 ac_cpp_err=
48727 else
48728 ac_cpp_err=yes
48730 if test -z "$ac_cpp_err"; then
48731 ac_header_preproc=yes
48732 else
48733 echo "$as_me: failed program was:" >&5
48734 sed 's/^/| /' conftest.$ac_ext >&5
48736 ac_header_preproc=no
48738 rm -f conftest.err conftest.$ac_ext
48739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48740 echo "${ECHO_T}$ac_header_preproc" >&6
48742 # So? What about this header?
48743 case $ac_header_compiler:$ac_header_preproc in
48744 yes:no )
48745 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
48746 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48747 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48748 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48750 cat <<\_ASBOX
48751 ## ------------------------------------ ##
48752 ## Report this to bug-autoconf@gnu.org. ##
48753 ## ------------------------------------ ##
48754 _ASBOX
48756 sed "s/^/$as_me: WARNING: /" >&2
48758 no:yes )
48759 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
48760 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
48761 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
48762 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
48763 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48764 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48766 cat <<\_ASBOX
48767 ## ------------------------------------ ##
48768 ## Report this to bug-autoconf@gnu.org. ##
48769 ## ------------------------------------ ##
48770 _ASBOX
48772 sed "s/^/$as_me: WARNING: /" >&2
48774 esac
48775 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48776 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48777 if test "${ac_cv_header_langinfo_h+set}" = set; then
48778 echo $ECHO_N "(cached) $ECHO_C" >&6
48779 else
48780 ac_cv_header_langinfo_h=$ac_header_preproc
48782 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48783 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48786 if test $ac_cv_header_langinfo_h = yes; then
48787 ac_has_langinfo_h=yes
48788 else
48789 ac_has_langinfo_h=no
48794 # Check for existence of libiconv.a providing XPG2 wchar_t support.
48795 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
48796 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
48797 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
48798 echo $ECHO_N "(cached) $ECHO_C" >&6
48799 else
48800 ac_check_lib_save_LIBS=$LIBS
48801 LIBS="-liconv $LIBS"
48802 if test x$gcc_no_link = xyes; then
48803 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48805 { (exit 1); exit 1; }; }
48807 cat >conftest.$ac_ext <<_ACEOF
48808 #line $LINENO "configure"
48809 /* confdefs.h. */
48810 _ACEOF
48811 cat confdefs.h >>conftest.$ac_ext
48812 cat >>conftest.$ac_ext <<_ACEOF
48813 /* end confdefs.h. */
48815 /* Override any gcc2 internal prototype to avoid an error. */
48816 #ifdef __cplusplus
48817 extern "C"
48818 #endif
48819 /* We use char because int might match the return type of a gcc2
48820 builtin and then its argument prototype would still apply. */
48821 char iconv ();
48823 main ()
48825 iconv ();
48827 return 0;
48829 _ACEOF
48830 rm -f conftest.$ac_objext conftest$ac_exeext
48831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48832 (eval $ac_link) 2>&5
48833 ac_status=$?
48834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48835 (exit $ac_status); } &&
48836 { ac_try='test -s conftest$ac_exeext'
48837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48838 (eval $ac_try) 2>&5
48839 ac_status=$?
48840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48841 (exit $ac_status); }; }; then
48842 ac_cv_lib_iconv_iconv=yes
48843 else
48844 echo "$as_me: failed program was:" >&5
48845 sed 's/^/| /' conftest.$ac_ext >&5
48847 ac_cv_lib_iconv_iconv=no
48849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48850 LIBS=$ac_check_lib_save_LIBS
48852 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
48853 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
48854 if test $ac_cv_lib_iconv_iconv = yes; then
48855 libiconv="-liconv"
48858 ac_save_LIBS="$LIBS"
48859 LIBS="$LIBS $libiconv"
48865 for ac_func in iconv_open iconv_close iconv nl_langinfo
48867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48868 echo "$as_me:$LINENO: checking for $ac_func" >&5
48869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48870 if eval "test \"\${$as_ac_var+set}\" = set"; then
48871 echo $ECHO_N "(cached) $ECHO_C" >&6
48872 else
48873 if test x$gcc_no_link = xyes; then
48874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48876 { (exit 1); exit 1; }; }
48878 cat >conftest.$ac_ext <<_ACEOF
48879 #line $LINENO "configure"
48880 /* confdefs.h. */
48881 _ACEOF
48882 cat confdefs.h >>conftest.$ac_ext
48883 cat >>conftest.$ac_ext <<_ACEOF
48884 /* end confdefs.h. */
48885 /* System header to define __stub macros and hopefully few prototypes,
48886 which can conflict with char $ac_func (); below.
48887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48888 <limits.h> exists even on freestanding compilers. */
48889 #ifdef __STDC__
48890 # include <limits.h>
48891 #else
48892 # include <assert.h>
48893 #endif
48894 /* Override any gcc2 internal prototype to avoid an error. */
48895 #ifdef __cplusplus
48896 extern "C"
48898 #endif
48899 /* We use char because int might match the return type of a gcc2
48900 builtin and then its argument prototype would still apply. */
48901 char $ac_func ();
48902 /* The GNU C library defines this for functions which it implements
48903 to always fail with ENOSYS. Some functions are actually named
48904 something starting with __ and the normal name is an alias. */
48905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48906 choke me
48907 #else
48908 char (*f) () = $ac_func;
48909 #endif
48910 #ifdef __cplusplus
48912 #endif
48915 main ()
48917 return f != $ac_func;
48919 return 0;
48921 _ACEOF
48922 rm -f conftest.$ac_objext conftest$ac_exeext
48923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48924 (eval $ac_link) 2>&5
48925 ac_status=$?
48926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48927 (exit $ac_status); } &&
48928 { ac_try='test -s conftest$ac_exeext'
48929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48930 (eval $ac_try) 2>&5
48931 ac_status=$?
48932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48933 (exit $ac_status); }; }; then
48934 eval "$as_ac_var=yes"
48935 else
48936 echo "$as_me: failed program was:" >&5
48937 sed 's/^/| /' conftest.$ac_ext >&5
48939 eval "$as_ac_var=no"
48941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48945 if test `eval echo '${'$as_ac_var'}'` = yes; then
48946 cat >>confdefs.h <<_ACEOF
48947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48948 _ACEOF
48949 ac_XPG2funcs=yes
48950 else
48951 ac_XPG2funcs=no
48953 done
48956 LIBS="$ac_save_LIBS"
48958 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
48959 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
48960 if test x"$ac_has_iconv_h" = xyes &&
48961 test x"$ac_has_langinfo_h" = xyes &&
48962 test x"$ac_XPG2funcs" = xyes;
48963 then
48964 ac_XPG2_wchar_t=yes
48965 else
48966 ac_XPG2_wchar_t=no
48968 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
48969 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
48971 # At the moment, only enable wchar_t specializations if all the
48972 # above support is present.
48973 if test x"$ac_isoC99_wchar_t" = xyes &&
48974 test x"$ac_XPG2_wchar_t" = xyes;
48975 then
48976 cat >>confdefs.h <<\_ACEOF
48977 #define _GLIBCXX_USE_WCHAR_T 1
48978 _ACEOF
48980 enable_wchar_t=yes
48983 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
48984 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
48985 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
48986 echo "${ECHO_T}$enable_wchar_t" >&6
48988 cat >>confdefs.h <<\_ACEOF
48989 #define HAVE_LC_MESSAGES 1
48990 _ACEOF
48992 cat >>confdefs.h <<\_ACEOF
48993 #define HAVE_LRAND48 1
48994 _ACEOF
48996 cat >>confdefs.h <<\_ACEOF
48997 #define HAVE_GETPAGESIZE 1
48998 _ACEOF
49000 cat >>confdefs.h <<\_ACEOF
49001 #define HAVE_SETENV 1
49002 _ACEOF
49004 cat >>confdefs.h <<\_ACEOF
49005 #define HAVE_SIGSETJMP 1
49006 _ACEOF
49008 cat >>confdefs.h <<\_ACEOF
49009 #define HAVE_COPYSIGN 1
49010 _ACEOF
49012 cat >>confdefs.h <<\_ACEOF
49013 #define HAVE_COPYSIGNF 1
49014 _ACEOF
49016 cat >>confdefs.h <<\_ACEOF
49017 #define HAVE_FINITEF 1
49018 _ACEOF
49020 cat >>confdefs.h <<\_ACEOF
49021 #define HAVE_FINITE 1
49022 _ACEOF
49024 cat >>confdefs.h <<\_ACEOF
49025 #define HAVE_FREXPF 1
49026 _ACEOF
49028 cat >>confdefs.h <<\_ACEOF
49029 #define HAVE_HYPOT 1
49030 _ACEOF
49032 cat >>confdefs.h <<\_ACEOF
49033 #define HAVE_HYPOTF 1
49034 _ACEOF
49036 cat >>confdefs.h <<\_ACEOF
49037 #define HAVE_ISINF 1
49038 _ACEOF
49040 cat >>confdefs.h <<\_ACEOF
49041 #define HAVE_ISNAN 1
49042 _ACEOF
49044 cat >>confdefs.h <<\_ACEOF
49045 #define HAVE_ISNANF 1
49046 _ACEOF
49049 cat >>confdefs.h <<\_ACEOF
49050 #define HAVE_MMAP 1
49051 _ACEOF
49053 cat >>confdefs.h <<\_ACEOF
49054 #define HAVE_ACOSF 1
49055 _ACEOF
49057 cat >>confdefs.h <<\_ACEOF
49058 #define HAVE_ASINF 1
49059 _ACEOF
49061 cat >>confdefs.h <<\_ACEOF
49062 #define HAVE_ATAN2F 1
49063 _ACEOF
49065 cat >>confdefs.h <<\_ACEOF
49066 #define HAVE_ATANF 1
49067 _ACEOF
49069 cat >>confdefs.h <<\_ACEOF
49070 #define HAVE_CEILF 1
49071 _ACEOF
49073 cat >>confdefs.h <<\_ACEOF
49074 #define HAVE_COPYSIGN 1
49075 _ACEOF
49077 cat >>confdefs.h <<\_ACEOF
49078 #define HAVE_COPYSIGNF 1
49079 _ACEOF
49081 cat >>confdefs.h <<\_ACEOF
49082 #define HAVE_COSF 1
49083 _ACEOF
49085 cat >>confdefs.h <<\_ACEOF
49086 #define HAVE_COSHF 1
49087 _ACEOF
49089 cat >>confdefs.h <<\_ACEOF
49090 #define HAVE_EXPF 1
49091 _ACEOF
49093 cat >>confdefs.h <<\_ACEOF
49094 #define HAVE_FABSF 1
49095 _ACEOF
49097 cat >>confdefs.h <<\_ACEOF
49098 #define HAVE_FLOORF 1
49099 _ACEOF
49101 cat >>confdefs.h <<\_ACEOF
49102 #define HAVE_FMODF 1
49103 _ACEOF
49105 cat >>confdefs.h <<\_ACEOF
49106 #define HAVE_FREXPF 1
49107 _ACEOF
49109 cat >>confdefs.h <<\_ACEOF
49110 #define HAVE_LDEXPF 1
49111 _ACEOF
49113 cat >>confdefs.h <<\_ACEOF
49114 #define HAVE_LOG10F 1
49115 _ACEOF
49117 cat >>confdefs.h <<\_ACEOF
49118 #define HAVE_LOGF 1
49119 _ACEOF
49121 cat >>confdefs.h <<\_ACEOF
49122 #define HAVE_MODFF 1
49123 _ACEOF
49125 cat >>confdefs.h <<\_ACEOF
49126 #define HAVE_POWF 1
49127 _ACEOF
49129 cat >>confdefs.h <<\_ACEOF
49130 #define HAVE_SINF 1
49131 _ACEOF
49133 cat >>confdefs.h <<\_ACEOF
49134 #define HAVE_SINHF 1
49135 _ACEOF
49137 cat >>confdefs.h <<\_ACEOF
49138 #define HAVE_SQRTF 1
49139 _ACEOF
49141 cat >>confdefs.h <<\_ACEOF
49142 #define HAVE_TANF 1
49143 _ACEOF
49145 cat >>confdefs.h <<\_ACEOF
49146 #define HAVE_TANHF 1
49147 _ACEOF
49149 if test x"long_double_math_on_this_cpu" = x"yes"; then
49150 cat >>confdefs.h <<\_ACEOF
49151 #define HAVE_FINITEL 1
49152 _ACEOF
49154 cat >>confdefs.h <<\_ACEOF
49155 #define HAVE_ISINFL 1
49156 _ACEOF
49158 cat >>confdefs.h <<\_ACEOF
49159 #define HAVE_ISNANL 1
49160 _ACEOF
49164 *-hpux*)
49177 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
49178 machine/endian.h machine/param.h sys/machine.h sys/types.h \
49179 fp.h locale.h float.h inttypes.h
49181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49183 echo "$as_me:$LINENO: checking for $ac_header" >&5
49184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49186 echo $ECHO_N "(cached) $ECHO_C" >&6
49188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49190 else
49191 # Is the header compilable?
49192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49194 cat >conftest.$ac_ext <<_ACEOF
49195 #line $LINENO "configure"
49196 /* confdefs.h. */
49197 _ACEOF
49198 cat confdefs.h >>conftest.$ac_ext
49199 cat >>conftest.$ac_ext <<_ACEOF
49200 /* end confdefs.h. */
49201 $ac_includes_default
49202 #include <$ac_header>
49203 _ACEOF
49204 rm -f conftest.$ac_objext
49205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49206 (eval $ac_compile) 2>&5
49207 ac_status=$?
49208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49209 (exit $ac_status); } &&
49210 { ac_try='test -s conftest.$ac_objext'
49211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49212 (eval $ac_try) 2>&5
49213 ac_status=$?
49214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49215 (exit $ac_status); }; }; then
49216 ac_header_compiler=yes
49217 else
49218 echo "$as_me: failed program was:" >&5
49219 sed 's/^/| /' conftest.$ac_ext >&5
49221 ac_header_compiler=no
49223 rm -f conftest.$ac_objext conftest.$ac_ext
49224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49225 echo "${ECHO_T}$ac_header_compiler" >&6
49227 # Is the header present?
49228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49230 cat >conftest.$ac_ext <<_ACEOF
49231 #line $LINENO "configure"
49232 /* confdefs.h. */
49233 _ACEOF
49234 cat confdefs.h >>conftest.$ac_ext
49235 cat >>conftest.$ac_ext <<_ACEOF
49236 /* end confdefs.h. */
49237 #include <$ac_header>
49238 _ACEOF
49239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49241 ac_status=$?
49242 grep -v '^ *+' conftest.er1 >conftest.err
49243 rm -f conftest.er1
49244 cat conftest.err >&5
49245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49246 (exit $ac_status); } >/dev/null; then
49247 if test -s conftest.err; then
49248 ac_cpp_err=$ac_c_preproc_warn_flag
49249 else
49250 ac_cpp_err=
49252 else
49253 ac_cpp_err=yes
49255 if test -z "$ac_cpp_err"; then
49256 ac_header_preproc=yes
49257 else
49258 echo "$as_me: failed program was:" >&5
49259 sed 's/^/| /' conftest.$ac_ext >&5
49261 ac_header_preproc=no
49263 rm -f conftest.err conftest.$ac_ext
49264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49265 echo "${ECHO_T}$ac_header_preproc" >&6
49267 # So? What about this header?
49268 case $ac_header_compiler:$ac_header_preproc in
49269 yes:no )
49270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49275 cat <<\_ASBOX
49276 ## ------------------------------------ ##
49277 ## Report this to bug-autoconf@gnu.org. ##
49278 ## ------------------------------------ ##
49279 _ASBOX
49281 sed "s/^/$as_me: WARNING: /" >&2
49283 no:yes )
49284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49291 cat <<\_ASBOX
49292 ## ------------------------------------ ##
49293 ## Report this to bug-autoconf@gnu.org. ##
49294 ## ------------------------------------ ##
49295 _ASBOX
49297 sed "s/^/$as_me: WARNING: /" >&2
49299 esac
49300 echo "$as_me:$LINENO: checking for $ac_header" >&5
49301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49303 echo $ECHO_N "(cached) $ECHO_C" >&6
49304 else
49305 eval "$as_ac_Header=$ac_header_preproc"
49307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49312 cat >>confdefs.h <<_ACEOF
49313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49314 _ACEOF
49318 done
49320 SECTION_FLAGS='-ffunction-sections -fdata-sections'
49323 # If we're not using GNU ld, then there's no point in even trying these
49324 # tests. Check for that first. We should have already tested for gld
49325 # by now (in libtool), but require it now just to be safe...
49326 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
49327 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
49331 # The name set by libtool depends on the version of libtool. Shame on us
49332 # for depending on an impl detail, but c'est la vie. Older versions used
49333 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
49334 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
49335 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
49336 # set (hence we're using an older libtool), then set it.
49337 if test x${with_gnu_ld+set} != xset; then
49338 if test x${ac_cv_prog_gnu_ld+set} != xset; then
49339 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
49340 with_gnu_ld=no
49341 else
49342 with_gnu_ld=$ac_cv_prog_gnu_ld
49346 # Start by getting the version number. I think the libtool test already
49347 # does some of this, but throws away the result.
49349 ldver=`$LD --version 2>/dev/null | head -1 | \
49350 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
49352 glibcxx_gnu_ld_version=`echo $ldver | \
49353 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
49355 # Set --gc-sections.
49356 if test "$with_gnu_ld" = "notbroken"; then
49357 # GNU ld it is! Joy and bunny rabbits!
49359 # All these tests are for C++; save the language and the compiler flags.
49360 # Need to do this so that g++ won't try to link in libstdc++
49361 ac_test_CFLAGS="${CFLAGS+set}"
49362 ac_save_CFLAGS="$CFLAGS"
49363 CFLAGS='-x c++ -Wl,--gc-sections'
49365 # Check for -Wl,--gc-sections
49366 # XXX This test is broken at the moment, as symbols required for linking
49367 # are now in libsupc++ (not built yet). In addition, this test has
49368 # cored on solaris in the past. In addition, --gc-sections doesn't
49369 # really work at the moment (keeps on discarding used sections, first
49370 # .eh_frame and now some of the glibc sections for iconv).
49371 # Bzzzzt. Thanks for playing, maybe next time.
49372 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
49373 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
49374 if test "$cross_compiling" = yes; then
49375 ac_sectionLDflags=yes
49376 else
49377 cat >conftest.$ac_ext <<_ACEOF
49378 #line $LINENO "configure"
49379 /* confdefs.h. */
49380 _ACEOF
49381 cat confdefs.h >>conftest.$ac_ext
49382 cat >>conftest.$ac_ext <<_ACEOF
49383 /* end confdefs.h. */
49385 int main(void)
49387 try { throw 1; }
49388 catch (...) { };
49389 return 0;
49392 _ACEOF
49393 rm -f conftest$ac_exeext
49394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49395 (eval $ac_link) 2>&5
49396 ac_status=$?
49397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49400 (eval $ac_try) 2>&5
49401 ac_status=$?
49402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49403 (exit $ac_status); }; }; then
49404 ac_sectionLDflags=yes
49405 else
49406 echo "$as_me: program exited with status $ac_status" >&5
49407 echo "$as_me: failed program was:" >&5
49408 sed 's/^/| /' conftest.$ac_ext >&5
49410 ( exit $ac_status )
49411 ac_sectionLDflags=no
49413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49415 if test "$ac_test_CFLAGS" = set; then
49416 CFLAGS="$ac_save_CFLAGS"
49417 else
49418 # this is the suspicious part
49419 CFLAGS=''
49421 if test "$ac_sectionLDflags" = "yes"; then
49422 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
49424 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
49425 echo "${ECHO_T}$ac_sectionLDflags" >&6
49428 # Set linker optimization flags.
49429 if test x"$with_gnu_ld" = x"yes"; then
49430 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
49438 echo "$as_me:$LINENO: checking for main in -lm" >&5
49439 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
49440 if test "${ac_cv_lib_m_main+set}" = set; then
49441 echo $ECHO_N "(cached) $ECHO_C" >&6
49442 else
49443 ac_check_lib_save_LIBS=$LIBS
49444 LIBS="-lm $LIBS"
49445 if test x$gcc_no_link = xyes; then
49446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49448 { (exit 1); exit 1; }; }
49450 cat >conftest.$ac_ext <<_ACEOF
49451 #line $LINENO "configure"
49452 /* confdefs.h. */
49453 _ACEOF
49454 cat confdefs.h >>conftest.$ac_ext
49455 cat >>conftest.$ac_ext <<_ACEOF
49456 /* end confdefs.h. */
49460 main ()
49462 main ();
49464 return 0;
49466 _ACEOF
49467 rm -f conftest.$ac_objext conftest$ac_exeext
49468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49469 (eval $ac_link) 2>&5
49470 ac_status=$?
49471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49472 (exit $ac_status); } &&
49473 { ac_try='test -s conftest$ac_exeext'
49474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49475 (eval $ac_try) 2>&5
49476 ac_status=$?
49477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49478 (exit $ac_status); }; }; then
49479 ac_cv_lib_m_main=yes
49480 else
49481 echo "$as_me: failed program was:" >&5
49482 sed 's/^/| /' conftest.$ac_ext >&5
49484 ac_cv_lib_m_main=no
49486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49487 LIBS=$ac_check_lib_save_LIBS
49489 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
49490 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
49491 if test $ac_cv_lib_m_main = yes; then
49492 cat >>confdefs.h <<_ACEOF
49493 #define HAVE_LIBM 1
49494 _ACEOF
49496 LIBS="-lm $LIBS"
49502 for ac_func in nan copysignf
49504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49505 echo "$as_me:$LINENO: checking for $ac_func" >&5
49506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49507 if eval "test \"\${$as_ac_var+set}\" = set"; then
49508 echo $ECHO_N "(cached) $ECHO_C" >&6
49509 else
49510 if test x$gcc_no_link = xyes; then
49511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49513 { (exit 1); exit 1; }; }
49515 cat >conftest.$ac_ext <<_ACEOF
49516 #line $LINENO "configure"
49517 /* confdefs.h. */
49518 _ACEOF
49519 cat confdefs.h >>conftest.$ac_ext
49520 cat >>conftest.$ac_ext <<_ACEOF
49521 /* end confdefs.h. */
49522 /* System header to define __stub macros and hopefully few prototypes,
49523 which can conflict with char $ac_func (); below.
49524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49525 <limits.h> exists even on freestanding compilers. */
49526 #ifdef __STDC__
49527 # include <limits.h>
49528 #else
49529 # include <assert.h>
49530 #endif
49531 /* Override any gcc2 internal prototype to avoid an error. */
49532 #ifdef __cplusplus
49533 extern "C"
49535 #endif
49536 /* We use char because int might match the return type of a gcc2
49537 builtin and then its argument prototype would still apply. */
49538 char $ac_func ();
49539 /* The GNU C library defines this for functions which it implements
49540 to always fail with ENOSYS. Some functions are actually named
49541 something starting with __ and the normal name is an alias. */
49542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49543 choke me
49544 #else
49545 char (*f) () = $ac_func;
49546 #endif
49547 #ifdef __cplusplus
49549 #endif
49552 main ()
49554 return f != $ac_func;
49556 return 0;
49558 _ACEOF
49559 rm -f conftest.$ac_objext conftest$ac_exeext
49560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49561 (eval $ac_link) 2>&5
49562 ac_status=$?
49563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564 (exit $ac_status); } &&
49565 { ac_try='test -s conftest$ac_exeext'
49566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49567 (eval $ac_try) 2>&5
49568 ac_status=$?
49569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49570 (exit $ac_status); }; }; then
49571 eval "$as_ac_var=yes"
49572 else
49573 echo "$as_me: failed program was:" >&5
49574 sed 's/^/| /' conftest.$ac_ext >&5
49576 eval "$as_ac_var=no"
49578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49582 if test `eval echo '${'$as_ac_var'}'` = yes; then
49583 cat >>confdefs.h <<_ACEOF
49584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49585 _ACEOF
49587 else
49588 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
49590 done
49594 for ac_func in __signbit
49596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49597 echo "$as_me:$LINENO: checking for $ac_func" >&5
49598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49599 if eval "test \"\${$as_ac_var+set}\" = set"; then
49600 echo $ECHO_N "(cached) $ECHO_C" >&6
49601 else
49602 if test x$gcc_no_link = xyes; then
49603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49605 { (exit 1); exit 1; }; }
49607 cat >conftest.$ac_ext <<_ACEOF
49608 #line $LINENO "configure"
49609 /* confdefs.h. */
49610 _ACEOF
49611 cat confdefs.h >>conftest.$ac_ext
49612 cat >>conftest.$ac_ext <<_ACEOF
49613 /* end confdefs.h. */
49614 /* System header to define __stub macros and hopefully few prototypes,
49615 which can conflict with char $ac_func (); below.
49616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49617 <limits.h> exists even on freestanding compilers. */
49618 #ifdef __STDC__
49619 # include <limits.h>
49620 #else
49621 # include <assert.h>
49622 #endif
49623 /* Override any gcc2 internal prototype to avoid an error. */
49624 #ifdef __cplusplus
49625 extern "C"
49627 #endif
49628 /* We use char because int might match the return type of a gcc2
49629 builtin and then its argument prototype would still apply. */
49630 char $ac_func ();
49631 /* The GNU C library defines this for functions which it implements
49632 to always fail with ENOSYS. Some functions are actually named
49633 something starting with __ and the normal name is an alias. */
49634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49635 choke me
49636 #else
49637 char (*f) () = $ac_func;
49638 #endif
49639 #ifdef __cplusplus
49641 #endif
49644 main ()
49646 return f != $ac_func;
49648 return 0;
49650 _ACEOF
49651 rm -f conftest.$ac_objext conftest$ac_exeext
49652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49653 (eval $ac_link) 2>&5
49654 ac_status=$?
49655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656 (exit $ac_status); } &&
49657 { ac_try='test -s conftest$ac_exeext'
49658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49659 (eval $ac_try) 2>&5
49660 ac_status=$?
49661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49662 (exit $ac_status); }; }; then
49663 eval "$as_ac_var=yes"
49664 else
49665 echo "$as_me: failed program was:" >&5
49666 sed 's/^/| /' conftest.$ac_ext >&5
49668 eval "$as_ac_var=no"
49670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49674 if test `eval echo '${'$as_ac_var'}'` = yes; then
49675 cat >>confdefs.h <<_ACEOF
49676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49677 _ACEOF
49679 else
49680 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
49682 done
49685 for ac_func in __signbitf
49687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49688 echo "$as_me:$LINENO: checking for $ac_func" >&5
49689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49690 if eval "test \"\${$as_ac_var+set}\" = set"; then
49691 echo $ECHO_N "(cached) $ECHO_C" >&6
49692 else
49693 if test x$gcc_no_link = xyes; then
49694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49696 { (exit 1); exit 1; }; }
49698 cat >conftest.$ac_ext <<_ACEOF
49699 #line $LINENO "configure"
49700 /* confdefs.h. */
49701 _ACEOF
49702 cat confdefs.h >>conftest.$ac_ext
49703 cat >>conftest.$ac_ext <<_ACEOF
49704 /* end confdefs.h. */
49705 /* System header to define __stub macros and hopefully few prototypes,
49706 which can conflict with char $ac_func (); below.
49707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49708 <limits.h> exists even on freestanding compilers. */
49709 #ifdef __STDC__
49710 # include <limits.h>
49711 #else
49712 # include <assert.h>
49713 #endif
49714 /* Override any gcc2 internal prototype to avoid an error. */
49715 #ifdef __cplusplus
49716 extern "C"
49718 #endif
49719 /* We use char because int might match the return type of a gcc2
49720 builtin and then its argument prototype would still apply. */
49721 char $ac_func ();
49722 /* The GNU C library defines this for functions which it implements
49723 to always fail with ENOSYS. Some functions are actually named
49724 something starting with __ and the normal name is an alias. */
49725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49726 choke me
49727 #else
49728 char (*f) () = $ac_func;
49729 #endif
49730 #ifdef __cplusplus
49732 #endif
49735 main ()
49737 return f != $ac_func;
49739 return 0;
49741 _ACEOF
49742 rm -f conftest.$ac_objext conftest$ac_exeext
49743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49744 (eval $ac_link) 2>&5
49745 ac_status=$?
49746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49747 (exit $ac_status); } &&
49748 { ac_try='test -s conftest$ac_exeext'
49749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49750 (eval $ac_try) 2>&5
49751 ac_status=$?
49752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49753 (exit $ac_status); }; }; then
49754 eval "$as_ac_var=yes"
49755 else
49756 echo "$as_me: failed program was:" >&5
49757 sed 's/^/| /' conftest.$ac_ext >&5
49759 eval "$as_ac_var=no"
49761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49765 if test `eval echo '${'$as_ac_var'}'` = yes; then
49766 cat >>confdefs.h <<_ACEOF
49767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49768 _ACEOF
49770 else
49771 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
49773 done
49776 if test x$ac_cv_func_copysignl = x"yes"; then
49778 for ac_func in __signbitl
49780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49781 echo "$as_me:$LINENO: checking for $ac_func" >&5
49782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49783 if eval "test \"\${$as_ac_var+set}\" = set"; then
49784 echo $ECHO_N "(cached) $ECHO_C" >&6
49785 else
49786 if test x$gcc_no_link = xyes; then
49787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49789 { (exit 1); exit 1; }; }
49791 cat >conftest.$ac_ext <<_ACEOF
49792 #line $LINENO "configure"
49793 /* confdefs.h. */
49794 _ACEOF
49795 cat confdefs.h >>conftest.$ac_ext
49796 cat >>conftest.$ac_ext <<_ACEOF
49797 /* end confdefs.h. */
49798 /* System header to define __stub macros and hopefully few prototypes,
49799 which can conflict with char $ac_func (); below.
49800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49801 <limits.h> exists even on freestanding compilers. */
49802 #ifdef __STDC__
49803 # include <limits.h>
49804 #else
49805 # include <assert.h>
49806 #endif
49807 /* Override any gcc2 internal prototype to avoid an error. */
49808 #ifdef __cplusplus
49809 extern "C"
49811 #endif
49812 /* We use char because int might match the return type of a gcc2
49813 builtin and then its argument prototype would still apply. */
49814 char $ac_func ();
49815 /* The GNU C library defines this for functions which it implements
49816 to always fail with ENOSYS. Some functions are actually named
49817 something starting with __ and the normal name is an alias. */
49818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49819 choke me
49820 #else
49821 char (*f) () = $ac_func;
49822 #endif
49823 #ifdef __cplusplus
49825 #endif
49828 main ()
49830 return f != $ac_func;
49832 return 0;
49834 _ACEOF
49835 rm -f conftest.$ac_objext conftest$ac_exeext
49836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49837 (eval $ac_link) 2>&5
49838 ac_status=$?
49839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49840 (exit $ac_status); } &&
49841 { ac_try='test -s conftest$ac_exeext'
49842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49843 (eval $ac_try) 2>&5
49844 ac_status=$?
49845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49846 (exit $ac_status); }; }; then
49847 eval "$as_ac_var=yes"
49848 else
49849 echo "$as_me: failed program was:" >&5
49850 sed 's/^/| /' conftest.$ac_ext >&5
49852 eval "$as_ac_var=no"
49854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49858 if test `eval echo '${'$as_ac_var'}'` = yes; then
49859 cat >>confdefs.h <<_ACEOF
49860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49861 _ACEOF
49863 else
49864 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
49866 done
49870 # XXX Review this. Nothing uses it.
49871 if test -n "$LIBMATHOBJS"; then
49872 need_libmath=yes
49877 # Test wchar.h for mbstate_t, which is needed for char_traits and
49878 # others even if wchar_t support is not on.
49879 echo "$as_me:$LINENO: checking for mbstate_t" >&5
49880 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
49881 cat >conftest.$ac_ext <<_ACEOF
49882 #line $LINENO "configure"
49883 /* confdefs.h. */
49884 _ACEOF
49885 cat confdefs.h >>conftest.$ac_ext
49886 cat >>conftest.$ac_ext <<_ACEOF
49887 /* end confdefs.h. */
49888 #include <wchar.h>
49890 main ()
49892 mbstate_t teststate;
49894 return 0;
49896 _ACEOF
49897 rm -f conftest.$ac_objext
49898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49899 (eval $ac_compile) 2>&5
49900 ac_status=$?
49901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49902 (exit $ac_status); } &&
49903 { ac_try='test -s conftest.$ac_objext'
49904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49905 (eval $ac_try) 2>&5
49906 ac_status=$?
49907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49908 (exit $ac_status); }; }; then
49909 have_mbstate_t=yes
49910 else
49911 echo "$as_me: failed program was:" >&5
49912 sed 's/^/| /' conftest.$ac_ext >&5
49914 have_mbstate_t=no
49916 rm -f conftest.$ac_objext conftest.$ac_ext
49917 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
49918 echo "${ECHO_T}$have_mbstate_t" >&6
49919 if test x"$have_mbstate_t" = xyes; then
49920 cat >>confdefs.h <<\_ACEOF
49921 #define HAVE_MBSTATE_T 1
49922 _ACEOF
49926 # Sanity check for existence of ISO C99 headers for extended encoding.
49928 for ac_header in wchar.h
49930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49932 echo "$as_me:$LINENO: checking for $ac_header" >&5
49933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49935 echo $ECHO_N "(cached) $ECHO_C" >&6
49937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49939 else
49940 # Is the header compilable?
49941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49943 cat >conftest.$ac_ext <<_ACEOF
49944 #line $LINENO "configure"
49945 /* confdefs.h. */
49946 _ACEOF
49947 cat confdefs.h >>conftest.$ac_ext
49948 cat >>conftest.$ac_ext <<_ACEOF
49949 /* end confdefs.h. */
49950 $ac_includes_default
49951 #include <$ac_header>
49952 _ACEOF
49953 rm -f conftest.$ac_objext
49954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49955 (eval $ac_compile) 2>&5
49956 ac_status=$?
49957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49958 (exit $ac_status); } &&
49959 { ac_try='test -s conftest.$ac_objext'
49960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49961 (eval $ac_try) 2>&5
49962 ac_status=$?
49963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49964 (exit $ac_status); }; }; then
49965 ac_header_compiler=yes
49966 else
49967 echo "$as_me: failed program was:" >&5
49968 sed 's/^/| /' conftest.$ac_ext >&5
49970 ac_header_compiler=no
49972 rm -f conftest.$ac_objext conftest.$ac_ext
49973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49974 echo "${ECHO_T}$ac_header_compiler" >&6
49976 # Is the header present?
49977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49979 cat >conftest.$ac_ext <<_ACEOF
49980 #line $LINENO "configure"
49981 /* confdefs.h. */
49982 _ACEOF
49983 cat confdefs.h >>conftest.$ac_ext
49984 cat >>conftest.$ac_ext <<_ACEOF
49985 /* end confdefs.h. */
49986 #include <$ac_header>
49987 _ACEOF
49988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49990 ac_status=$?
49991 grep -v '^ *+' conftest.er1 >conftest.err
49992 rm -f conftest.er1
49993 cat conftest.err >&5
49994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49995 (exit $ac_status); } >/dev/null; then
49996 if test -s conftest.err; then
49997 ac_cpp_err=$ac_c_preproc_warn_flag
49998 else
49999 ac_cpp_err=
50001 else
50002 ac_cpp_err=yes
50004 if test -z "$ac_cpp_err"; then
50005 ac_header_preproc=yes
50006 else
50007 echo "$as_me: failed program was:" >&5
50008 sed 's/^/| /' conftest.$ac_ext >&5
50010 ac_header_preproc=no
50012 rm -f conftest.err conftest.$ac_ext
50013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50014 echo "${ECHO_T}$ac_header_preproc" >&6
50016 # So? What about this header?
50017 case $ac_header_compiler:$ac_header_preproc in
50018 yes:no )
50019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50024 cat <<\_ASBOX
50025 ## ------------------------------------ ##
50026 ## Report this to bug-autoconf@gnu.org. ##
50027 ## ------------------------------------ ##
50028 _ASBOX
50030 sed "s/^/$as_me: WARNING: /" >&2
50032 no:yes )
50033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50040 cat <<\_ASBOX
50041 ## ------------------------------------ ##
50042 ## Report this to bug-autoconf@gnu.org. ##
50043 ## ------------------------------------ ##
50044 _ASBOX
50046 sed "s/^/$as_me: WARNING: /" >&2
50048 esac
50049 echo "$as_me:$LINENO: checking for $ac_header" >&5
50050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50052 echo $ECHO_N "(cached) $ECHO_C" >&6
50053 else
50054 eval "$as_ac_Header=$ac_header_preproc"
50056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50061 cat >>confdefs.h <<_ACEOF
50062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50063 _ACEOF
50064 ac_has_wchar_h=yes
50065 else
50066 ac_has_wchar_h=no
50069 done
50072 for ac_header in wctype.h
50074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50076 echo "$as_me:$LINENO: checking for $ac_header" >&5
50077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50079 echo $ECHO_N "(cached) $ECHO_C" >&6
50081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50083 else
50084 # Is the header compilable?
50085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50087 cat >conftest.$ac_ext <<_ACEOF
50088 #line $LINENO "configure"
50089 /* confdefs.h. */
50090 _ACEOF
50091 cat confdefs.h >>conftest.$ac_ext
50092 cat >>conftest.$ac_ext <<_ACEOF
50093 /* end confdefs.h. */
50094 $ac_includes_default
50095 #include <$ac_header>
50096 _ACEOF
50097 rm -f conftest.$ac_objext
50098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50099 (eval $ac_compile) 2>&5
50100 ac_status=$?
50101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50102 (exit $ac_status); } &&
50103 { ac_try='test -s conftest.$ac_objext'
50104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50105 (eval $ac_try) 2>&5
50106 ac_status=$?
50107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50108 (exit $ac_status); }; }; then
50109 ac_header_compiler=yes
50110 else
50111 echo "$as_me: failed program was:" >&5
50112 sed 's/^/| /' conftest.$ac_ext >&5
50114 ac_header_compiler=no
50116 rm -f conftest.$ac_objext conftest.$ac_ext
50117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50118 echo "${ECHO_T}$ac_header_compiler" >&6
50120 # Is the header present?
50121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50123 cat >conftest.$ac_ext <<_ACEOF
50124 #line $LINENO "configure"
50125 /* confdefs.h. */
50126 _ACEOF
50127 cat confdefs.h >>conftest.$ac_ext
50128 cat >>conftest.$ac_ext <<_ACEOF
50129 /* end confdefs.h. */
50130 #include <$ac_header>
50131 _ACEOF
50132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50134 ac_status=$?
50135 grep -v '^ *+' conftest.er1 >conftest.err
50136 rm -f conftest.er1
50137 cat conftest.err >&5
50138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50139 (exit $ac_status); } >/dev/null; then
50140 if test -s conftest.err; then
50141 ac_cpp_err=$ac_c_preproc_warn_flag
50142 else
50143 ac_cpp_err=
50145 else
50146 ac_cpp_err=yes
50148 if test -z "$ac_cpp_err"; then
50149 ac_header_preproc=yes
50150 else
50151 echo "$as_me: failed program was:" >&5
50152 sed 's/^/| /' conftest.$ac_ext >&5
50154 ac_header_preproc=no
50156 rm -f conftest.err conftest.$ac_ext
50157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50158 echo "${ECHO_T}$ac_header_preproc" >&6
50160 # So? What about this header?
50161 case $ac_header_compiler:$ac_header_preproc in
50162 yes:no )
50163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50168 cat <<\_ASBOX
50169 ## ------------------------------------ ##
50170 ## Report this to bug-autoconf@gnu.org. ##
50171 ## ------------------------------------ ##
50172 _ASBOX
50174 sed "s/^/$as_me: WARNING: /" >&2
50176 no:yes )
50177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50184 cat <<\_ASBOX
50185 ## ------------------------------------ ##
50186 ## Report this to bug-autoconf@gnu.org. ##
50187 ## ------------------------------------ ##
50188 _ASBOX
50190 sed "s/^/$as_me: WARNING: /" >&2
50192 esac
50193 echo "$as_me:$LINENO: checking for $ac_header" >&5
50194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50196 echo $ECHO_N "(cached) $ECHO_C" >&6
50197 else
50198 eval "$as_ac_Header=$ac_header_preproc"
50200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50205 cat >>confdefs.h <<_ACEOF
50206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50207 _ACEOF
50208 ac_has_wctype_h=yes
50209 else
50210 ac_has_wctype_h=no
50213 done
50216 # Only continue checking if the ISO C99 headers exist and support is on.
50217 if test x"$ac_has_wchar_h" = xyes &&
50218 test x"$ac_has_wctype_h" = xyes &&
50219 test x"$enable_c_mbchar" != xno; then
50221 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
50222 # numeric_limits can instantiate type_traits<wchar_t>
50223 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
50224 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
50225 cat >conftest.$ac_ext <<_ACEOF
50226 #line $LINENO "configure"
50227 /* confdefs.h. */
50228 _ACEOF
50229 cat confdefs.h >>conftest.$ac_ext
50230 cat >>conftest.$ac_ext <<_ACEOF
50231 /* end confdefs.h. */
50232 #include <wchar.h>
50234 main ()
50236 int i = WCHAR_MIN; int j = WCHAR_MAX;
50238 return 0;
50240 _ACEOF
50241 rm -f conftest.$ac_objext
50242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50243 (eval $ac_compile) 2>&5
50244 ac_status=$?
50245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50246 (exit $ac_status); } &&
50247 { ac_try='test -s conftest.$ac_objext'
50248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50249 (eval $ac_try) 2>&5
50250 ac_status=$?
50251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50252 (exit $ac_status); }; }; then
50253 has_wchar_minmax=yes
50254 else
50255 echo "$as_me: failed program was:" >&5
50256 sed 's/^/| /' conftest.$ac_ext >&5
50258 has_wchar_minmax=no
50260 rm -f conftest.$ac_objext conftest.$ac_ext
50261 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
50262 echo "${ECHO_T}$has_wchar_minmax" >&6
50264 # Test wchar.h for WEOF, which is what we use to determine whether
50265 # to specialize for char_traits<wchar_t> or not.
50266 echo "$as_me:$LINENO: checking for WEOF" >&5
50267 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
50268 cat >conftest.$ac_ext <<_ACEOF
50269 #line $LINENO "configure"
50270 /* confdefs.h. */
50271 _ACEOF
50272 cat confdefs.h >>conftest.$ac_ext
50273 cat >>conftest.$ac_ext <<_ACEOF
50274 /* end confdefs.h. */
50276 #include <wchar.h>
50277 #include <stddef.h>
50279 main ()
50281 wint_t i = WEOF;
50283 return 0;
50285 _ACEOF
50286 rm -f conftest.$ac_objext
50287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50288 (eval $ac_compile) 2>&5
50289 ac_status=$?
50290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50291 (exit $ac_status); } &&
50292 { ac_try='test -s conftest.$ac_objext'
50293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50294 (eval $ac_try) 2>&5
50295 ac_status=$?
50296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50297 (exit $ac_status); }; }; then
50298 has_weof=yes
50299 else
50300 echo "$as_me: failed program was:" >&5
50301 sed 's/^/| /' conftest.$ac_ext >&5
50303 has_weof=no
50305 rm -f conftest.$ac_objext conftest.$ac_ext
50306 echo "$as_me:$LINENO: result: $has_weof" >&5
50307 echo "${ECHO_T}$has_weof" >&6
50309 # Tests for wide character functions used in char_traits<wchar_t>.
50310 ac_wfuncs=yes
50317 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
50319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50320 echo "$as_me:$LINENO: checking for $ac_func" >&5
50321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50322 if eval "test \"\${$as_ac_var+set}\" = set"; then
50323 echo $ECHO_N "(cached) $ECHO_C" >&6
50324 else
50325 if test x$gcc_no_link = xyes; then
50326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50328 { (exit 1); exit 1; }; }
50330 cat >conftest.$ac_ext <<_ACEOF
50331 #line $LINENO "configure"
50332 /* confdefs.h. */
50333 _ACEOF
50334 cat confdefs.h >>conftest.$ac_ext
50335 cat >>conftest.$ac_ext <<_ACEOF
50336 /* end confdefs.h. */
50337 /* System header to define __stub macros and hopefully few prototypes,
50338 which can conflict with char $ac_func (); below.
50339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50340 <limits.h> exists even on freestanding compilers. */
50341 #ifdef __STDC__
50342 # include <limits.h>
50343 #else
50344 # include <assert.h>
50345 #endif
50346 /* Override any gcc2 internal prototype to avoid an error. */
50347 #ifdef __cplusplus
50348 extern "C"
50350 #endif
50351 /* We use char because int might match the return type of a gcc2
50352 builtin and then its argument prototype would still apply. */
50353 char $ac_func ();
50354 /* The GNU C library defines this for functions which it implements
50355 to always fail with ENOSYS. Some functions are actually named
50356 something starting with __ and the normal name is an alias. */
50357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50358 choke me
50359 #else
50360 char (*f) () = $ac_func;
50361 #endif
50362 #ifdef __cplusplus
50364 #endif
50367 main ()
50369 return f != $ac_func;
50371 return 0;
50373 _ACEOF
50374 rm -f conftest.$ac_objext conftest$ac_exeext
50375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50376 (eval $ac_link) 2>&5
50377 ac_status=$?
50378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50379 (exit $ac_status); } &&
50380 { ac_try='test -s conftest$ac_exeext'
50381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50382 (eval $ac_try) 2>&5
50383 ac_status=$?
50384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50385 (exit $ac_status); }; }; then
50386 eval "$as_ac_var=yes"
50387 else
50388 echo "$as_me: failed program was:" >&5
50389 sed 's/^/| /' conftest.$ac_ext >&5
50391 eval "$as_ac_var=no"
50393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50397 if test `eval echo '${'$as_ac_var'}'` = yes; then
50398 cat >>confdefs.h <<_ACEOF
50399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50400 _ACEOF
50402 else
50403 ac_wfuncs=no
50405 done
50408 # Checks for names injected into std:: by the c_std headers.
50455 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
50456 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
50457 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
50458 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
50459 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
50460 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
50462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50463 echo "$as_me:$LINENO: checking for $ac_func" >&5
50464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50465 if eval "test \"\${$as_ac_var+set}\" = set"; then
50466 echo $ECHO_N "(cached) $ECHO_C" >&6
50467 else
50468 if test x$gcc_no_link = xyes; then
50469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50471 { (exit 1); exit 1; }; }
50473 cat >conftest.$ac_ext <<_ACEOF
50474 #line $LINENO "configure"
50475 /* confdefs.h. */
50476 _ACEOF
50477 cat confdefs.h >>conftest.$ac_ext
50478 cat >>conftest.$ac_ext <<_ACEOF
50479 /* end confdefs.h. */
50480 /* System header to define __stub macros and hopefully few prototypes,
50481 which can conflict with char $ac_func (); below.
50482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50483 <limits.h> exists even on freestanding compilers. */
50484 #ifdef __STDC__
50485 # include <limits.h>
50486 #else
50487 # include <assert.h>
50488 #endif
50489 /* Override any gcc2 internal prototype to avoid an error. */
50490 #ifdef __cplusplus
50491 extern "C"
50493 #endif
50494 /* We use char because int might match the return type of a gcc2
50495 builtin and then its argument prototype would still apply. */
50496 char $ac_func ();
50497 /* The GNU C library defines this for functions which it implements
50498 to always fail with ENOSYS. Some functions are actually named
50499 something starting with __ and the normal name is an alias. */
50500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50501 choke me
50502 #else
50503 char (*f) () = $ac_func;
50504 #endif
50505 #ifdef __cplusplus
50507 #endif
50510 main ()
50512 return f != $ac_func;
50514 return 0;
50516 _ACEOF
50517 rm -f conftest.$ac_objext conftest$ac_exeext
50518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50519 (eval $ac_link) 2>&5
50520 ac_status=$?
50521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50522 (exit $ac_status); } &&
50523 { ac_try='test -s conftest$ac_exeext'
50524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50525 (eval $ac_try) 2>&5
50526 ac_status=$?
50527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50528 (exit $ac_status); }; }; then
50529 eval "$as_ac_var=yes"
50530 else
50531 echo "$as_me: failed program was:" >&5
50532 sed 's/^/| /' conftest.$ac_ext >&5
50534 eval "$as_ac_var=no"
50536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50540 if test `eval echo '${'$as_ac_var'}'` = yes; then
50541 cat >>confdefs.h <<_ACEOF
50542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50543 _ACEOF
50545 else
50546 ac_wfuncs=no
50548 done
50551 # Checks for wide character functions that are not required
50552 # for basic wchar_t support. Don't disable support if they are missing.
50553 # Injection of these is wrapped with guard macros.
50559 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
50561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50562 echo "$as_me:$LINENO: checking for $ac_func" >&5
50563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50564 if eval "test \"\${$as_ac_var+set}\" = set"; then
50565 echo $ECHO_N "(cached) $ECHO_C" >&6
50566 else
50567 if test x$gcc_no_link = xyes; then
50568 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50569 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50570 { (exit 1); exit 1; }; }
50572 cat >conftest.$ac_ext <<_ACEOF
50573 #line $LINENO "configure"
50574 /* confdefs.h. */
50575 _ACEOF
50576 cat confdefs.h >>conftest.$ac_ext
50577 cat >>conftest.$ac_ext <<_ACEOF
50578 /* end confdefs.h. */
50579 /* System header to define __stub macros and hopefully few prototypes,
50580 which can conflict with char $ac_func (); below.
50581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50582 <limits.h> exists even on freestanding compilers. */
50583 #ifdef __STDC__
50584 # include <limits.h>
50585 #else
50586 # include <assert.h>
50587 #endif
50588 /* Override any gcc2 internal prototype to avoid an error. */
50589 #ifdef __cplusplus
50590 extern "C"
50592 #endif
50593 /* We use char because int might match the return type of a gcc2
50594 builtin and then its argument prototype would still apply. */
50595 char $ac_func ();
50596 /* The GNU C library defines this for functions which it implements
50597 to always fail with ENOSYS. Some functions are actually named
50598 something starting with __ and the normal name is an alias. */
50599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50600 choke me
50601 #else
50602 char (*f) () = $ac_func;
50603 #endif
50604 #ifdef __cplusplus
50606 #endif
50609 main ()
50611 return f != $ac_func;
50613 return 0;
50615 _ACEOF
50616 rm -f conftest.$ac_objext conftest$ac_exeext
50617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50618 (eval $ac_link) 2>&5
50619 ac_status=$?
50620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50621 (exit $ac_status); } &&
50622 { ac_try='test -s conftest$ac_exeext'
50623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50624 (eval $ac_try) 2>&5
50625 ac_status=$?
50626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50627 (exit $ac_status); }; }; then
50628 eval "$as_ac_var=yes"
50629 else
50630 echo "$as_me: failed program was:" >&5
50631 sed 's/^/| /' conftest.$ac_ext >&5
50633 eval "$as_ac_var=no"
50635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50639 if test `eval echo '${'$as_ac_var'}'` = yes; then
50640 cat >>confdefs.h <<_ACEOF
50641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50642 _ACEOF
50645 done
50648 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
50649 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
50650 if test x"$has_weof" = xyes &&
50651 test x"$has_wchar_minmax" = xyes &&
50652 test x"$ac_wfuncs" = xyes;
50653 then
50654 ac_isoC99_wchar_t=yes
50655 else
50656 ac_isoC99_wchar_t=no
50658 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
50659 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
50661 # Use iconv for wchar_t to char conversions. As such, check for
50662 # X/Open Portability Guide, version 2 features (XPG2).
50663 if test "${ac_cv_header_iconv_h+set}" = set; then
50664 echo "$as_me:$LINENO: checking for iconv.h" >&5
50665 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50666 if test "${ac_cv_header_iconv_h+set}" = set; then
50667 echo $ECHO_N "(cached) $ECHO_C" >&6
50669 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50670 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50671 else
50672 # Is the header compilable?
50673 echo "$as_me:$LINENO: checking iconv.h usability" >&5
50674 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
50675 cat >conftest.$ac_ext <<_ACEOF
50676 #line $LINENO "configure"
50677 /* confdefs.h. */
50678 _ACEOF
50679 cat confdefs.h >>conftest.$ac_ext
50680 cat >>conftest.$ac_ext <<_ACEOF
50681 /* end confdefs.h. */
50682 $ac_includes_default
50683 #include <iconv.h>
50684 _ACEOF
50685 rm -f conftest.$ac_objext
50686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50687 (eval $ac_compile) 2>&5
50688 ac_status=$?
50689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50690 (exit $ac_status); } &&
50691 { ac_try='test -s conftest.$ac_objext'
50692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50693 (eval $ac_try) 2>&5
50694 ac_status=$?
50695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50696 (exit $ac_status); }; }; then
50697 ac_header_compiler=yes
50698 else
50699 echo "$as_me: failed program was:" >&5
50700 sed 's/^/| /' conftest.$ac_ext >&5
50702 ac_header_compiler=no
50704 rm -f conftest.$ac_objext conftest.$ac_ext
50705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50706 echo "${ECHO_T}$ac_header_compiler" >&6
50708 # Is the header present?
50709 echo "$as_me:$LINENO: checking iconv.h presence" >&5
50710 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
50711 cat >conftest.$ac_ext <<_ACEOF
50712 #line $LINENO "configure"
50713 /* confdefs.h. */
50714 _ACEOF
50715 cat confdefs.h >>conftest.$ac_ext
50716 cat >>conftest.$ac_ext <<_ACEOF
50717 /* end confdefs.h. */
50718 #include <iconv.h>
50719 _ACEOF
50720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50722 ac_status=$?
50723 grep -v '^ *+' conftest.er1 >conftest.err
50724 rm -f conftest.er1
50725 cat conftest.err >&5
50726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50727 (exit $ac_status); } >/dev/null; then
50728 if test -s conftest.err; then
50729 ac_cpp_err=$ac_c_preproc_warn_flag
50730 else
50731 ac_cpp_err=
50733 else
50734 ac_cpp_err=yes
50736 if test -z "$ac_cpp_err"; then
50737 ac_header_preproc=yes
50738 else
50739 echo "$as_me: failed program was:" >&5
50740 sed 's/^/| /' conftest.$ac_ext >&5
50742 ac_header_preproc=no
50744 rm -f conftest.err conftest.$ac_ext
50745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50746 echo "${ECHO_T}$ac_header_preproc" >&6
50748 # So? What about this header?
50749 case $ac_header_compiler:$ac_header_preproc in
50750 yes:no )
50751 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
50752 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50753 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50754 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50756 cat <<\_ASBOX
50757 ## ------------------------------------ ##
50758 ## Report this to bug-autoconf@gnu.org. ##
50759 ## ------------------------------------ ##
50760 _ASBOX
50762 sed "s/^/$as_me: WARNING: /" >&2
50764 no:yes )
50765 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
50766 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
50767 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
50768 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
50769 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50770 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50772 cat <<\_ASBOX
50773 ## ------------------------------------ ##
50774 ## Report this to bug-autoconf@gnu.org. ##
50775 ## ------------------------------------ ##
50776 _ASBOX
50778 sed "s/^/$as_me: WARNING: /" >&2
50780 esac
50781 echo "$as_me:$LINENO: checking for iconv.h" >&5
50782 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50783 if test "${ac_cv_header_iconv_h+set}" = set; then
50784 echo $ECHO_N "(cached) $ECHO_C" >&6
50785 else
50786 ac_cv_header_iconv_h=$ac_header_preproc
50788 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50789 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50792 if test $ac_cv_header_iconv_h = yes; then
50793 ac_has_iconv_h=yes
50794 else
50795 ac_has_iconv_h=no
50799 if test "${ac_cv_header_langinfo_h+set}" = set; then
50800 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50801 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50802 if test "${ac_cv_header_langinfo_h+set}" = set; then
50803 echo $ECHO_N "(cached) $ECHO_C" >&6
50805 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50806 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50807 else
50808 # Is the header compilable?
50809 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
50810 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
50811 cat >conftest.$ac_ext <<_ACEOF
50812 #line $LINENO "configure"
50813 /* confdefs.h. */
50814 _ACEOF
50815 cat confdefs.h >>conftest.$ac_ext
50816 cat >>conftest.$ac_ext <<_ACEOF
50817 /* end confdefs.h. */
50818 $ac_includes_default
50819 #include <langinfo.h>
50820 _ACEOF
50821 rm -f conftest.$ac_objext
50822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50823 (eval $ac_compile) 2>&5
50824 ac_status=$?
50825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50826 (exit $ac_status); } &&
50827 { ac_try='test -s conftest.$ac_objext'
50828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50829 (eval $ac_try) 2>&5
50830 ac_status=$?
50831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50832 (exit $ac_status); }; }; then
50833 ac_header_compiler=yes
50834 else
50835 echo "$as_me: failed program was:" >&5
50836 sed 's/^/| /' conftest.$ac_ext >&5
50838 ac_header_compiler=no
50840 rm -f conftest.$ac_objext conftest.$ac_ext
50841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50842 echo "${ECHO_T}$ac_header_compiler" >&6
50844 # Is the header present?
50845 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
50846 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
50847 cat >conftest.$ac_ext <<_ACEOF
50848 #line $LINENO "configure"
50849 /* confdefs.h. */
50850 _ACEOF
50851 cat confdefs.h >>conftest.$ac_ext
50852 cat >>conftest.$ac_ext <<_ACEOF
50853 /* end confdefs.h. */
50854 #include <langinfo.h>
50855 _ACEOF
50856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50858 ac_status=$?
50859 grep -v '^ *+' conftest.er1 >conftest.err
50860 rm -f conftest.er1
50861 cat conftest.err >&5
50862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50863 (exit $ac_status); } >/dev/null; then
50864 if test -s conftest.err; then
50865 ac_cpp_err=$ac_c_preproc_warn_flag
50866 else
50867 ac_cpp_err=
50869 else
50870 ac_cpp_err=yes
50872 if test -z "$ac_cpp_err"; then
50873 ac_header_preproc=yes
50874 else
50875 echo "$as_me: failed program was:" >&5
50876 sed 's/^/| /' conftest.$ac_ext >&5
50878 ac_header_preproc=no
50880 rm -f conftest.err conftest.$ac_ext
50881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50882 echo "${ECHO_T}$ac_header_preproc" >&6
50884 # So? What about this header?
50885 case $ac_header_compiler:$ac_header_preproc in
50886 yes:no )
50887 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
50888 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50889 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50890 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50892 cat <<\_ASBOX
50893 ## ------------------------------------ ##
50894 ## Report this to bug-autoconf@gnu.org. ##
50895 ## ------------------------------------ ##
50896 _ASBOX
50898 sed "s/^/$as_me: WARNING: /" >&2
50900 no:yes )
50901 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
50902 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
50903 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
50904 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
50905 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50906 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50908 cat <<\_ASBOX
50909 ## ------------------------------------ ##
50910 ## Report this to bug-autoconf@gnu.org. ##
50911 ## ------------------------------------ ##
50912 _ASBOX
50914 sed "s/^/$as_me: WARNING: /" >&2
50916 esac
50917 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50918 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50919 if test "${ac_cv_header_langinfo_h+set}" = set; then
50920 echo $ECHO_N "(cached) $ECHO_C" >&6
50921 else
50922 ac_cv_header_langinfo_h=$ac_header_preproc
50924 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50925 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50928 if test $ac_cv_header_langinfo_h = yes; then
50929 ac_has_langinfo_h=yes
50930 else
50931 ac_has_langinfo_h=no
50936 # Check for existence of libiconv.a providing XPG2 wchar_t support.
50937 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
50938 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
50939 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
50940 echo $ECHO_N "(cached) $ECHO_C" >&6
50941 else
50942 ac_check_lib_save_LIBS=$LIBS
50943 LIBS="-liconv $LIBS"
50944 if test x$gcc_no_link = xyes; then
50945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50947 { (exit 1); exit 1; }; }
50949 cat >conftest.$ac_ext <<_ACEOF
50950 #line $LINENO "configure"
50951 /* confdefs.h. */
50952 _ACEOF
50953 cat confdefs.h >>conftest.$ac_ext
50954 cat >>conftest.$ac_ext <<_ACEOF
50955 /* end confdefs.h. */
50957 /* Override any gcc2 internal prototype to avoid an error. */
50958 #ifdef __cplusplus
50959 extern "C"
50960 #endif
50961 /* We use char because int might match the return type of a gcc2
50962 builtin and then its argument prototype would still apply. */
50963 char iconv ();
50965 main ()
50967 iconv ();
50969 return 0;
50971 _ACEOF
50972 rm -f conftest.$ac_objext conftest$ac_exeext
50973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50974 (eval $ac_link) 2>&5
50975 ac_status=$?
50976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50977 (exit $ac_status); } &&
50978 { ac_try='test -s conftest$ac_exeext'
50979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50980 (eval $ac_try) 2>&5
50981 ac_status=$?
50982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50983 (exit $ac_status); }; }; then
50984 ac_cv_lib_iconv_iconv=yes
50985 else
50986 echo "$as_me: failed program was:" >&5
50987 sed 's/^/| /' conftest.$ac_ext >&5
50989 ac_cv_lib_iconv_iconv=no
50991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50992 LIBS=$ac_check_lib_save_LIBS
50994 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
50995 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
50996 if test $ac_cv_lib_iconv_iconv = yes; then
50997 libiconv="-liconv"
51000 ac_save_LIBS="$LIBS"
51001 LIBS="$LIBS $libiconv"
51007 for ac_func in iconv_open iconv_close iconv nl_langinfo
51009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51010 echo "$as_me:$LINENO: checking for $ac_func" >&5
51011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51012 if eval "test \"\${$as_ac_var+set}\" = set"; then
51013 echo $ECHO_N "(cached) $ECHO_C" >&6
51014 else
51015 if test x$gcc_no_link = xyes; then
51016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51018 { (exit 1); exit 1; }; }
51020 cat >conftest.$ac_ext <<_ACEOF
51021 #line $LINENO "configure"
51022 /* confdefs.h. */
51023 _ACEOF
51024 cat confdefs.h >>conftest.$ac_ext
51025 cat >>conftest.$ac_ext <<_ACEOF
51026 /* end confdefs.h. */
51027 /* System header to define __stub macros and hopefully few prototypes,
51028 which can conflict with char $ac_func (); below.
51029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51030 <limits.h> exists even on freestanding compilers. */
51031 #ifdef __STDC__
51032 # include <limits.h>
51033 #else
51034 # include <assert.h>
51035 #endif
51036 /* Override any gcc2 internal prototype to avoid an error. */
51037 #ifdef __cplusplus
51038 extern "C"
51040 #endif
51041 /* We use char because int might match the return type of a gcc2
51042 builtin and then its argument prototype would still apply. */
51043 char $ac_func ();
51044 /* The GNU C library defines this for functions which it implements
51045 to always fail with ENOSYS. Some functions are actually named
51046 something starting with __ and the normal name is an alias. */
51047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51048 choke me
51049 #else
51050 char (*f) () = $ac_func;
51051 #endif
51052 #ifdef __cplusplus
51054 #endif
51057 main ()
51059 return f != $ac_func;
51061 return 0;
51063 _ACEOF
51064 rm -f conftest.$ac_objext conftest$ac_exeext
51065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51066 (eval $ac_link) 2>&5
51067 ac_status=$?
51068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51069 (exit $ac_status); } &&
51070 { ac_try='test -s conftest$ac_exeext'
51071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51072 (eval $ac_try) 2>&5
51073 ac_status=$?
51074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51075 (exit $ac_status); }; }; then
51076 eval "$as_ac_var=yes"
51077 else
51078 echo "$as_me: failed program was:" >&5
51079 sed 's/^/| /' conftest.$ac_ext >&5
51081 eval "$as_ac_var=no"
51083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51087 if test `eval echo '${'$as_ac_var'}'` = yes; then
51088 cat >>confdefs.h <<_ACEOF
51089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51090 _ACEOF
51091 ac_XPG2funcs=yes
51092 else
51093 ac_XPG2funcs=no
51095 done
51098 LIBS="$ac_save_LIBS"
51100 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
51101 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
51102 if test x"$ac_has_iconv_h" = xyes &&
51103 test x"$ac_has_langinfo_h" = xyes &&
51104 test x"$ac_XPG2funcs" = xyes;
51105 then
51106 ac_XPG2_wchar_t=yes
51107 else
51108 ac_XPG2_wchar_t=no
51110 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
51111 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
51113 # At the moment, only enable wchar_t specializations if all the
51114 # above support is present.
51115 if test x"$ac_isoC99_wchar_t" = xyes &&
51116 test x"$ac_XPG2_wchar_t" = xyes;
51117 then
51118 cat >>confdefs.h <<\_ACEOF
51119 #define _GLIBCXX_USE_WCHAR_T 1
51120 _ACEOF
51122 enable_wchar_t=yes
51125 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
51126 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
51127 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
51128 echo "${ECHO_T}$enable_wchar_t" >&6
51130 cat >>confdefs.h <<\_ACEOF
51131 #define HAVE_COPYSIGN 1
51132 _ACEOF
51134 cat >>confdefs.h <<\_ACEOF
51135 #define HAVE_COPYSIGNF 1
51136 _ACEOF
51138 cat >>confdefs.h <<\_ACEOF
51139 #define HAVE_FREXPF 1
51140 _ACEOF
51142 cat >>confdefs.h <<\_ACEOF
51143 #define HAVE_HYPOT 1
51144 _ACEOF
51146 case "$target" in
51147 *-hpux10*)
51148 cat >>confdefs.h <<\_ACEOF
51149 #define HAVE_FINITE 1
51150 _ACEOF
51152 cat >>confdefs.h <<\_ACEOF
51153 #define HAVE_FINITEF 1
51154 _ACEOF
51156 cat >>confdefs.h <<\_ACEOF
51157 #define HAVE_ISINF 1
51158 _ACEOF
51160 cat >>confdefs.h <<\_ACEOF
51161 #define HAVE_ISINFF 1
51162 _ACEOF
51164 cat >>confdefs.h <<\_ACEOF
51165 #define HAVE_ISNAN 1
51166 _ACEOF
51168 cat >>confdefs.h <<\_ACEOF
51169 #define HAVE_ISNANF 1
51170 _ACEOF
51173 esac
51175 *-linux* | *-uclinux* | *-gnu*)
51188 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
51189 machine/endian.h machine/param.h sys/machine.h sys/types.h \
51190 fp.h locale.h float.h inttypes.h
51192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51194 echo "$as_me:$LINENO: checking for $ac_header" >&5
51195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51197 echo $ECHO_N "(cached) $ECHO_C" >&6
51199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51201 else
51202 # Is the header compilable?
51203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51205 cat >conftest.$ac_ext <<_ACEOF
51206 #line $LINENO "configure"
51207 /* confdefs.h. */
51208 _ACEOF
51209 cat confdefs.h >>conftest.$ac_ext
51210 cat >>conftest.$ac_ext <<_ACEOF
51211 /* end confdefs.h. */
51212 $ac_includes_default
51213 #include <$ac_header>
51214 _ACEOF
51215 rm -f conftest.$ac_objext
51216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51217 (eval $ac_compile) 2>&5
51218 ac_status=$?
51219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51220 (exit $ac_status); } &&
51221 { ac_try='test -s conftest.$ac_objext'
51222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51223 (eval $ac_try) 2>&5
51224 ac_status=$?
51225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51226 (exit $ac_status); }; }; then
51227 ac_header_compiler=yes
51228 else
51229 echo "$as_me: failed program was:" >&5
51230 sed 's/^/| /' conftest.$ac_ext >&5
51232 ac_header_compiler=no
51234 rm -f conftest.$ac_objext conftest.$ac_ext
51235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51236 echo "${ECHO_T}$ac_header_compiler" >&6
51238 # Is the header present?
51239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51241 cat >conftest.$ac_ext <<_ACEOF
51242 #line $LINENO "configure"
51243 /* confdefs.h. */
51244 _ACEOF
51245 cat confdefs.h >>conftest.$ac_ext
51246 cat >>conftest.$ac_ext <<_ACEOF
51247 /* end confdefs.h. */
51248 #include <$ac_header>
51249 _ACEOF
51250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51252 ac_status=$?
51253 grep -v '^ *+' conftest.er1 >conftest.err
51254 rm -f conftest.er1
51255 cat conftest.err >&5
51256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51257 (exit $ac_status); } >/dev/null; then
51258 if test -s conftest.err; then
51259 ac_cpp_err=$ac_c_preproc_warn_flag
51260 else
51261 ac_cpp_err=
51263 else
51264 ac_cpp_err=yes
51266 if test -z "$ac_cpp_err"; then
51267 ac_header_preproc=yes
51268 else
51269 echo "$as_me: failed program was:" >&5
51270 sed 's/^/| /' conftest.$ac_ext >&5
51272 ac_header_preproc=no
51274 rm -f conftest.err conftest.$ac_ext
51275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51276 echo "${ECHO_T}$ac_header_preproc" >&6
51278 # So? What about this header?
51279 case $ac_header_compiler:$ac_header_preproc in
51280 yes:no )
51281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51286 cat <<\_ASBOX
51287 ## ------------------------------------ ##
51288 ## Report this to bug-autoconf@gnu.org. ##
51289 ## ------------------------------------ ##
51290 _ASBOX
51292 sed "s/^/$as_me: WARNING: /" >&2
51294 no:yes )
51295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51302 cat <<\_ASBOX
51303 ## ------------------------------------ ##
51304 ## Report this to bug-autoconf@gnu.org. ##
51305 ## ------------------------------------ ##
51306 _ASBOX
51308 sed "s/^/$as_me: WARNING: /" >&2
51310 esac
51311 echo "$as_me:$LINENO: checking for $ac_header" >&5
51312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51314 echo $ECHO_N "(cached) $ECHO_C" >&6
51315 else
51316 eval "$as_ac_Header=$ac_header_preproc"
51318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51323 cat >>confdefs.h <<_ACEOF
51324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51325 _ACEOF
51329 done
51331 SECTION_FLAGS='-ffunction-sections -fdata-sections'
51334 # If we're not using GNU ld, then there's no point in even trying these
51335 # tests. Check for that first. We should have already tested for gld
51336 # by now (in libtool), but require it now just to be safe...
51337 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
51338 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
51342 # The name set by libtool depends on the version of libtool. Shame on us
51343 # for depending on an impl detail, but c'est la vie. Older versions used
51344 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
51345 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
51346 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
51347 # set (hence we're using an older libtool), then set it.
51348 if test x${with_gnu_ld+set} != xset; then
51349 if test x${ac_cv_prog_gnu_ld+set} != xset; then
51350 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
51351 with_gnu_ld=no
51352 else
51353 with_gnu_ld=$ac_cv_prog_gnu_ld
51357 # Start by getting the version number. I think the libtool test already
51358 # does some of this, but throws away the result.
51360 ldver=`$LD --version 2>/dev/null | head -1 | \
51361 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
51363 glibcxx_gnu_ld_version=`echo $ldver | \
51364 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
51366 # Set --gc-sections.
51367 if test "$with_gnu_ld" = "notbroken"; then
51368 # GNU ld it is! Joy and bunny rabbits!
51370 # All these tests are for C++; save the language and the compiler flags.
51371 # Need to do this so that g++ won't try to link in libstdc++
51372 ac_test_CFLAGS="${CFLAGS+set}"
51373 ac_save_CFLAGS="$CFLAGS"
51374 CFLAGS='-x c++ -Wl,--gc-sections'
51376 # Check for -Wl,--gc-sections
51377 # XXX This test is broken at the moment, as symbols required for linking
51378 # are now in libsupc++ (not built yet). In addition, this test has
51379 # cored on solaris in the past. In addition, --gc-sections doesn't
51380 # really work at the moment (keeps on discarding used sections, first
51381 # .eh_frame and now some of the glibc sections for iconv).
51382 # Bzzzzt. Thanks for playing, maybe next time.
51383 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
51384 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
51385 if test "$cross_compiling" = yes; then
51386 ac_sectionLDflags=yes
51387 else
51388 cat >conftest.$ac_ext <<_ACEOF
51389 #line $LINENO "configure"
51390 /* confdefs.h. */
51391 _ACEOF
51392 cat confdefs.h >>conftest.$ac_ext
51393 cat >>conftest.$ac_ext <<_ACEOF
51394 /* end confdefs.h. */
51396 int main(void)
51398 try { throw 1; }
51399 catch (...) { };
51400 return 0;
51403 _ACEOF
51404 rm -f conftest$ac_exeext
51405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51406 (eval $ac_link) 2>&5
51407 ac_status=$?
51408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51411 (eval $ac_try) 2>&5
51412 ac_status=$?
51413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51414 (exit $ac_status); }; }; then
51415 ac_sectionLDflags=yes
51416 else
51417 echo "$as_me: program exited with status $ac_status" >&5
51418 echo "$as_me: failed program was:" >&5
51419 sed 's/^/| /' conftest.$ac_ext >&5
51421 ( exit $ac_status )
51422 ac_sectionLDflags=no
51424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51426 if test "$ac_test_CFLAGS" = set; then
51427 CFLAGS="$ac_save_CFLAGS"
51428 else
51429 # this is the suspicious part
51430 CFLAGS=''
51432 if test "$ac_sectionLDflags" = "yes"; then
51433 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
51435 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
51436 echo "${ECHO_T}$ac_sectionLDflags" >&6
51439 # Set linker optimization flags.
51440 if test x"$with_gnu_ld" = x"yes"; then
51441 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
51449 echo "$as_me:$LINENO: checking for main in -lm" >&5
51450 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
51451 if test "${ac_cv_lib_m_main+set}" = set; then
51452 echo $ECHO_N "(cached) $ECHO_C" >&6
51453 else
51454 ac_check_lib_save_LIBS=$LIBS
51455 LIBS="-lm $LIBS"
51456 if test x$gcc_no_link = xyes; then
51457 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51459 { (exit 1); exit 1; }; }
51461 cat >conftest.$ac_ext <<_ACEOF
51462 #line $LINENO "configure"
51463 /* confdefs.h. */
51464 _ACEOF
51465 cat confdefs.h >>conftest.$ac_ext
51466 cat >>conftest.$ac_ext <<_ACEOF
51467 /* end confdefs.h. */
51471 main ()
51473 main ();
51475 return 0;
51477 _ACEOF
51478 rm -f conftest.$ac_objext conftest$ac_exeext
51479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51480 (eval $ac_link) 2>&5
51481 ac_status=$?
51482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51483 (exit $ac_status); } &&
51484 { ac_try='test -s conftest$ac_exeext'
51485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51486 (eval $ac_try) 2>&5
51487 ac_status=$?
51488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51489 (exit $ac_status); }; }; then
51490 ac_cv_lib_m_main=yes
51491 else
51492 echo "$as_me: failed program was:" >&5
51493 sed 's/^/| /' conftest.$ac_ext >&5
51495 ac_cv_lib_m_main=no
51497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51498 LIBS=$ac_check_lib_save_LIBS
51500 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
51501 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
51502 if test $ac_cv_lib_m_main = yes; then
51503 cat >>confdefs.h <<_ACEOF
51504 #define HAVE_LIBM 1
51505 _ACEOF
51507 LIBS="-lm $LIBS"
51513 for ac_func in nan copysignf
51515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51516 echo "$as_me:$LINENO: checking for $ac_func" >&5
51517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51518 if eval "test \"\${$as_ac_var+set}\" = set"; then
51519 echo $ECHO_N "(cached) $ECHO_C" >&6
51520 else
51521 if test x$gcc_no_link = xyes; then
51522 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51524 { (exit 1); exit 1; }; }
51526 cat >conftest.$ac_ext <<_ACEOF
51527 #line $LINENO "configure"
51528 /* confdefs.h. */
51529 _ACEOF
51530 cat confdefs.h >>conftest.$ac_ext
51531 cat >>conftest.$ac_ext <<_ACEOF
51532 /* end confdefs.h. */
51533 /* System header to define __stub macros and hopefully few prototypes,
51534 which can conflict with char $ac_func (); below.
51535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51536 <limits.h> exists even on freestanding compilers. */
51537 #ifdef __STDC__
51538 # include <limits.h>
51539 #else
51540 # include <assert.h>
51541 #endif
51542 /* Override any gcc2 internal prototype to avoid an error. */
51543 #ifdef __cplusplus
51544 extern "C"
51546 #endif
51547 /* We use char because int might match the return type of a gcc2
51548 builtin and then its argument prototype would still apply. */
51549 char $ac_func ();
51550 /* The GNU C library defines this for functions which it implements
51551 to always fail with ENOSYS. Some functions are actually named
51552 something starting with __ and the normal name is an alias. */
51553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51554 choke me
51555 #else
51556 char (*f) () = $ac_func;
51557 #endif
51558 #ifdef __cplusplus
51560 #endif
51563 main ()
51565 return f != $ac_func;
51567 return 0;
51569 _ACEOF
51570 rm -f conftest.$ac_objext conftest$ac_exeext
51571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51572 (eval $ac_link) 2>&5
51573 ac_status=$?
51574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51575 (exit $ac_status); } &&
51576 { ac_try='test -s conftest$ac_exeext'
51577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51578 (eval $ac_try) 2>&5
51579 ac_status=$?
51580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51581 (exit $ac_status); }; }; then
51582 eval "$as_ac_var=yes"
51583 else
51584 echo "$as_me: failed program was:" >&5
51585 sed 's/^/| /' conftest.$ac_ext >&5
51587 eval "$as_ac_var=no"
51589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51593 if test `eval echo '${'$as_ac_var'}'` = yes; then
51594 cat >>confdefs.h <<_ACEOF
51595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51596 _ACEOF
51598 else
51599 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
51601 done
51605 for ac_func in __signbit
51607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51608 echo "$as_me:$LINENO: checking for $ac_func" >&5
51609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51610 if eval "test \"\${$as_ac_var+set}\" = set"; then
51611 echo $ECHO_N "(cached) $ECHO_C" >&6
51612 else
51613 if test x$gcc_no_link = xyes; then
51614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51616 { (exit 1); exit 1; }; }
51618 cat >conftest.$ac_ext <<_ACEOF
51619 #line $LINENO "configure"
51620 /* confdefs.h. */
51621 _ACEOF
51622 cat confdefs.h >>conftest.$ac_ext
51623 cat >>conftest.$ac_ext <<_ACEOF
51624 /* end confdefs.h. */
51625 /* System header to define __stub macros and hopefully few prototypes,
51626 which can conflict with char $ac_func (); below.
51627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51628 <limits.h> exists even on freestanding compilers. */
51629 #ifdef __STDC__
51630 # include <limits.h>
51631 #else
51632 # include <assert.h>
51633 #endif
51634 /* Override any gcc2 internal prototype to avoid an error. */
51635 #ifdef __cplusplus
51636 extern "C"
51638 #endif
51639 /* We use char because int might match the return type of a gcc2
51640 builtin and then its argument prototype would still apply. */
51641 char $ac_func ();
51642 /* The GNU C library defines this for functions which it implements
51643 to always fail with ENOSYS. Some functions are actually named
51644 something starting with __ and the normal name is an alias. */
51645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51646 choke me
51647 #else
51648 char (*f) () = $ac_func;
51649 #endif
51650 #ifdef __cplusplus
51652 #endif
51655 main ()
51657 return f != $ac_func;
51659 return 0;
51661 _ACEOF
51662 rm -f conftest.$ac_objext conftest$ac_exeext
51663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51664 (eval $ac_link) 2>&5
51665 ac_status=$?
51666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51667 (exit $ac_status); } &&
51668 { ac_try='test -s conftest$ac_exeext'
51669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51670 (eval $ac_try) 2>&5
51671 ac_status=$?
51672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51673 (exit $ac_status); }; }; then
51674 eval "$as_ac_var=yes"
51675 else
51676 echo "$as_me: failed program was:" >&5
51677 sed 's/^/| /' conftest.$ac_ext >&5
51679 eval "$as_ac_var=no"
51681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51685 if test `eval echo '${'$as_ac_var'}'` = yes; then
51686 cat >>confdefs.h <<_ACEOF
51687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51688 _ACEOF
51690 else
51691 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
51693 done
51696 for ac_func in __signbitf
51698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51699 echo "$as_me:$LINENO: checking for $ac_func" >&5
51700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51701 if eval "test \"\${$as_ac_var+set}\" = set"; then
51702 echo $ECHO_N "(cached) $ECHO_C" >&6
51703 else
51704 if test x$gcc_no_link = xyes; then
51705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51707 { (exit 1); exit 1; }; }
51709 cat >conftest.$ac_ext <<_ACEOF
51710 #line $LINENO "configure"
51711 /* confdefs.h. */
51712 _ACEOF
51713 cat confdefs.h >>conftest.$ac_ext
51714 cat >>conftest.$ac_ext <<_ACEOF
51715 /* end confdefs.h. */
51716 /* System header to define __stub macros and hopefully few prototypes,
51717 which can conflict with char $ac_func (); below.
51718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51719 <limits.h> exists even on freestanding compilers. */
51720 #ifdef __STDC__
51721 # include <limits.h>
51722 #else
51723 # include <assert.h>
51724 #endif
51725 /* Override any gcc2 internal prototype to avoid an error. */
51726 #ifdef __cplusplus
51727 extern "C"
51729 #endif
51730 /* We use char because int might match the return type of a gcc2
51731 builtin and then its argument prototype would still apply. */
51732 char $ac_func ();
51733 /* The GNU C library defines this for functions which it implements
51734 to always fail with ENOSYS. Some functions are actually named
51735 something starting with __ and the normal name is an alias. */
51736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51737 choke me
51738 #else
51739 char (*f) () = $ac_func;
51740 #endif
51741 #ifdef __cplusplus
51743 #endif
51746 main ()
51748 return f != $ac_func;
51750 return 0;
51752 _ACEOF
51753 rm -f conftest.$ac_objext conftest$ac_exeext
51754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51755 (eval $ac_link) 2>&5
51756 ac_status=$?
51757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51758 (exit $ac_status); } &&
51759 { ac_try='test -s conftest$ac_exeext'
51760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51761 (eval $ac_try) 2>&5
51762 ac_status=$?
51763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51764 (exit $ac_status); }; }; then
51765 eval "$as_ac_var=yes"
51766 else
51767 echo "$as_me: failed program was:" >&5
51768 sed 's/^/| /' conftest.$ac_ext >&5
51770 eval "$as_ac_var=no"
51772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51776 if test `eval echo '${'$as_ac_var'}'` = yes; then
51777 cat >>confdefs.h <<_ACEOF
51778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51779 _ACEOF
51781 else
51782 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51784 done
51787 if test x$ac_cv_func_copysignl = x"yes"; then
51789 for ac_func in __signbitl
51791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51792 echo "$as_me:$LINENO: checking for $ac_func" >&5
51793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51794 if eval "test \"\${$as_ac_var+set}\" = set"; then
51795 echo $ECHO_N "(cached) $ECHO_C" >&6
51796 else
51797 if test x$gcc_no_link = xyes; then
51798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51800 { (exit 1); exit 1; }; }
51802 cat >conftest.$ac_ext <<_ACEOF
51803 #line $LINENO "configure"
51804 /* confdefs.h. */
51805 _ACEOF
51806 cat confdefs.h >>conftest.$ac_ext
51807 cat >>conftest.$ac_ext <<_ACEOF
51808 /* end confdefs.h. */
51809 /* System header to define __stub macros and hopefully few prototypes,
51810 which can conflict with char $ac_func (); below.
51811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51812 <limits.h> exists even on freestanding compilers. */
51813 #ifdef __STDC__
51814 # include <limits.h>
51815 #else
51816 # include <assert.h>
51817 #endif
51818 /* Override any gcc2 internal prototype to avoid an error. */
51819 #ifdef __cplusplus
51820 extern "C"
51822 #endif
51823 /* We use char because int might match the return type of a gcc2
51824 builtin and then its argument prototype would still apply. */
51825 char $ac_func ();
51826 /* The GNU C library defines this for functions which it implements
51827 to always fail with ENOSYS. Some functions are actually named
51828 something starting with __ and the normal name is an alias. */
51829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51830 choke me
51831 #else
51832 char (*f) () = $ac_func;
51833 #endif
51834 #ifdef __cplusplus
51836 #endif
51839 main ()
51841 return f != $ac_func;
51843 return 0;
51845 _ACEOF
51846 rm -f conftest.$ac_objext conftest$ac_exeext
51847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51848 (eval $ac_link) 2>&5
51849 ac_status=$?
51850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51851 (exit $ac_status); } &&
51852 { ac_try='test -s conftest$ac_exeext'
51853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51854 (eval $ac_try) 2>&5
51855 ac_status=$?
51856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51857 (exit $ac_status); }; }; then
51858 eval "$as_ac_var=yes"
51859 else
51860 echo "$as_me: failed program was:" >&5
51861 sed 's/^/| /' conftest.$ac_ext >&5
51863 eval "$as_ac_var=no"
51865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51869 if test `eval echo '${'$as_ac_var'}'` = yes; then
51870 cat >>confdefs.h <<_ACEOF
51871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51872 _ACEOF
51874 else
51875 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51877 done
51881 # XXX Review this. Nothing uses it.
51882 if test -n "$LIBMATHOBJS"; then
51883 need_libmath=yes
51888 # Test wchar.h for mbstate_t, which is needed for char_traits and
51889 # others even if wchar_t support is not on.
51890 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51891 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51892 cat >conftest.$ac_ext <<_ACEOF
51893 #line $LINENO "configure"
51894 /* confdefs.h. */
51895 _ACEOF
51896 cat confdefs.h >>conftest.$ac_ext
51897 cat >>conftest.$ac_ext <<_ACEOF
51898 /* end confdefs.h. */
51899 #include <wchar.h>
51901 main ()
51903 mbstate_t teststate;
51905 return 0;
51907 _ACEOF
51908 rm -f conftest.$ac_objext
51909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51910 (eval $ac_compile) 2>&5
51911 ac_status=$?
51912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51913 (exit $ac_status); } &&
51914 { ac_try='test -s conftest.$ac_objext'
51915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51916 (eval $ac_try) 2>&5
51917 ac_status=$?
51918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51919 (exit $ac_status); }; }; then
51920 have_mbstate_t=yes
51921 else
51922 echo "$as_me: failed program was:" >&5
51923 sed 's/^/| /' conftest.$ac_ext >&5
51925 have_mbstate_t=no
51927 rm -f conftest.$ac_objext conftest.$ac_ext
51928 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51929 echo "${ECHO_T}$have_mbstate_t" >&6
51930 if test x"$have_mbstate_t" = xyes; then
51931 cat >>confdefs.h <<\_ACEOF
51932 #define HAVE_MBSTATE_T 1
51933 _ACEOF
51937 # Sanity check for existence of ISO C99 headers for extended encoding.
51939 for ac_header in wchar.h
51941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51943 echo "$as_me:$LINENO: checking for $ac_header" >&5
51944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51946 echo $ECHO_N "(cached) $ECHO_C" >&6
51948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51950 else
51951 # Is the header compilable?
51952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51954 cat >conftest.$ac_ext <<_ACEOF
51955 #line $LINENO "configure"
51956 /* confdefs.h. */
51957 _ACEOF
51958 cat confdefs.h >>conftest.$ac_ext
51959 cat >>conftest.$ac_ext <<_ACEOF
51960 /* end confdefs.h. */
51961 $ac_includes_default
51962 #include <$ac_header>
51963 _ACEOF
51964 rm -f conftest.$ac_objext
51965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51966 (eval $ac_compile) 2>&5
51967 ac_status=$?
51968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51969 (exit $ac_status); } &&
51970 { ac_try='test -s conftest.$ac_objext'
51971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51972 (eval $ac_try) 2>&5
51973 ac_status=$?
51974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51975 (exit $ac_status); }; }; then
51976 ac_header_compiler=yes
51977 else
51978 echo "$as_me: failed program was:" >&5
51979 sed 's/^/| /' conftest.$ac_ext >&5
51981 ac_header_compiler=no
51983 rm -f conftest.$ac_objext conftest.$ac_ext
51984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51985 echo "${ECHO_T}$ac_header_compiler" >&6
51987 # Is the header present?
51988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51990 cat >conftest.$ac_ext <<_ACEOF
51991 #line $LINENO "configure"
51992 /* confdefs.h. */
51993 _ACEOF
51994 cat confdefs.h >>conftest.$ac_ext
51995 cat >>conftest.$ac_ext <<_ACEOF
51996 /* end confdefs.h. */
51997 #include <$ac_header>
51998 _ACEOF
51999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52001 ac_status=$?
52002 grep -v '^ *+' conftest.er1 >conftest.err
52003 rm -f conftest.er1
52004 cat conftest.err >&5
52005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52006 (exit $ac_status); } >/dev/null; then
52007 if test -s conftest.err; then
52008 ac_cpp_err=$ac_c_preproc_warn_flag
52009 else
52010 ac_cpp_err=
52012 else
52013 ac_cpp_err=yes
52015 if test -z "$ac_cpp_err"; then
52016 ac_header_preproc=yes
52017 else
52018 echo "$as_me: failed program was:" >&5
52019 sed 's/^/| /' conftest.$ac_ext >&5
52021 ac_header_preproc=no
52023 rm -f conftest.err conftest.$ac_ext
52024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52025 echo "${ECHO_T}$ac_header_preproc" >&6
52027 # So? What about this header?
52028 case $ac_header_compiler:$ac_header_preproc in
52029 yes:no )
52030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52035 cat <<\_ASBOX
52036 ## ------------------------------------ ##
52037 ## Report this to bug-autoconf@gnu.org. ##
52038 ## ------------------------------------ ##
52039 _ASBOX
52041 sed "s/^/$as_me: WARNING: /" >&2
52043 no:yes )
52044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52051 cat <<\_ASBOX
52052 ## ------------------------------------ ##
52053 ## Report this to bug-autoconf@gnu.org. ##
52054 ## ------------------------------------ ##
52055 _ASBOX
52057 sed "s/^/$as_me: WARNING: /" >&2
52059 esac
52060 echo "$as_me:$LINENO: checking for $ac_header" >&5
52061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52063 echo $ECHO_N "(cached) $ECHO_C" >&6
52064 else
52065 eval "$as_ac_Header=$ac_header_preproc"
52067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52072 cat >>confdefs.h <<_ACEOF
52073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52074 _ACEOF
52075 ac_has_wchar_h=yes
52076 else
52077 ac_has_wchar_h=no
52080 done
52083 for ac_header in wctype.h
52085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52087 echo "$as_me:$LINENO: checking for $ac_header" >&5
52088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52090 echo $ECHO_N "(cached) $ECHO_C" >&6
52092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52094 else
52095 # Is the header compilable?
52096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52098 cat >conftest.$ac_ext <<_ACEOF
52099 #line $LINENO "configure"
52100 /* confdefs.h. */
52101 _ACEOF
52102 cat confdefs.h >>conftest.$ac_ext
52103 cat >>conftest.$ac_ext <<_ACEOF
52104 /* end confdefs.h. */
52105 $ac_includes_default
52106 #include <$ac_header>
52107 _ACEOF
52108 rm -f conftest.$ac_objext
52109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52110 (eval $ac_compile) 2>&5
52111 ac_status=$?
52112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52113 (exit $ac_status); } &&
52114 { ac_try='test -s conftest.$ac_objext'
52115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52116 (eval $ac_try) 2>&5
52117 ac_status=$?
52118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52119 (exit $ac_status); }; }; then
52120 ac_header_compiler=yes
52121 else
52122 echo "$as_me: failed program was:" >&5
52123 sed 's/^/| /' conftest.$ac_ext >&5
52125 ac_header_compiler=no
52127 rm -f conftest.$ac_objext conftest.$ac_ext
52128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52129 echo "${ECHO_T}$ac_header_compiler" >&6
52131 # Is the header present?
52132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52134 cat >conftest.$ac_ext <<_ACEOF
52135 #line $LINENO "configure"
52136 /* confdefs.h. */
52137 _ACEOF
52138 cat confdefs.h >>conftest.$ac_ext
52139 cat >>conftest.$ac_ext <<_ACEOF
52140 /* end confdefs.h. */
52141 #include <$ac_header>
52142 _ACEOF
52143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52145 ac_status=$?
52146 grep -v '^ *+' conftest.er1 >conftest.err
52147 rm -f conftest.er1
52148 cat conftest.err >&5
52149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52150 (exit $ac_status); } >/dev/null; then
52151 if test -s conftest.err; then
52152 ac_cpp_err=$ac_c_preproc_warn_flag
52153 else
52154 ac_cpp_err=
52156 else
52157 ac_cpp_err=yes
52159 if test -z "$ac_cpp_err"; then
52160 ac_header_preproc=yes
52161 else
52162 echo "$as_me: failed program was:" >&5
52163 sed 's/^/| /' conftest.$ac_ext >&5
52165 ac_header_preproc=no
52167 rm -f conftest.err conftest.$ac_ext
52168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52169 echo "${ECHO_T}$ac_header_preproc" >&6
52171 # So? What about this header?
52172 case $ac_header_compiler:$ac_header_preproc in
52173 yes:no )
52174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52179 cat <<\_ASBOX
52180 ## ------------------------------------ ##
52181 ## Report this to bug-autoconf@gnu.org. ##
52182 ## ------------------------------------ ##
52183 _ASBOX
52185 sed "s/^/$as_me: WARNING: /" >&2
52187 no:yes )
52188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52195 cat <<\_ASBOX
52196 ## ------------------------------------ ##
52197 ## Report this to bug-autoconf@gnu.org. ##
52198 ## ------------------------------------ ##
52199 _ASBOX
52201 sed "s/^/$as_me: WARNING: /" >&2
52203 esac
52204 echo "$as_me:$LINENO: checking for $ac_header" >&5
52205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52207 echo $ECHO_N "(cached) $ECHO_C" >&6
52208 else
52209 eval "$as_ac_Header=$ac_header_preproc"
52211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52216 cat >>confdefs.h <<_ACEOF
52217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52218 _ACEOF
52219 ac_has_wctype_h=yes
52220 else
52221 ac_has_wctype_h=no
52224 done
52227 # Only continue checking if the ISO C99 headers exist and support is on.
52228 if test x"$ac_has_wchar_h" = xyes &&
52229 test x"$ac_has_wctype_h" = xyes &&
52230 test x"$enable_c_mbchar" != xno; then
52232 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
52233 # numeric_limits can instantiate type_traits<wchar_t>
52234 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
52235 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
52236 cat >conftest.$ac_ext <<_ACEOF
52237 #line $LINENO "configure"
52238 /* confdefs.h. */
52239 _ACEOF
52240 cat confdefs.h >>conftest.$ac_ext
52241 cat >>conftest.$ac_ext <<_ACEOF
52242 /* end confdefs.h. */
52243 #include <wchar.h>
52245 main ()
52247 int i = WCHAR_MIN; int j = WCHAR_MAX;
52249 return 0;
52251 _ACEOF
52252 rm -f conftest.$ac_objext
52253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52254 (eval $ac_compile) 2>&5
52255 ac_status=$?
52256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52257 (exit $ac_status); } &&
52258 { ac_try='test -s conftest.$ac_objext'
52259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52260 (eval $ac_try) 2>&5
52261 ac_status=$?
52262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52263 (exit $ac_status); }; }; then
52264 has_wchar_minmax=yes
52265 else
52266 echo "$as_me: failed program was:" >&5
52267 sed 's/^/| /' conftest.$ac_ext >&5
52269 has_wchar_minmax=no
52271 rm -f conftest.$ac_objext conftest.$ac_ext
52272 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
52273 echo "${ECHO_T}$has_wchar_minmax" >&6
52275 # Test wchar.h for WEOF, which is what we use to determine whether
52276 # to specialize for char_traits<wchar_t> or not.
52277 echo "$as_me:$LINENO: checking for WEOF" >&5
52278 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
52279 cat >conftest.$ac_ext <<_ACEOF
52280 #line $LINENO "configure"
52281 /* confdefs.h. */
52282 _ACEOF
52283 cat confdefs.h >>conftest.$ac_ext
52284 cat >>conftest.$ac_ext <<_ACEOF
52285 /* end confdefs.h. */
52287 #include <wchar.h>
52288 #include <stddef.h>
52290 main ()
52292 wint_t i = WEOF;
52294 return 0;
52296 _ACEOF
52297 rm -f conftest.$ac_objext
52298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52299 (eval $ac_compile) 2>&5
52300 ac_status=$?
52301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52302 (exit $ac_status); } &&
52303 { ac_try='test -s conftest.$ac_objext'
52304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52305 (eval $ac_try) 2>&5
52306 ac_status=$?
52307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52308 (exit $ac_status); }; }; then
52309 has_weof=yes
52310 else
52311 echo "$as_me: failed program was:" >&5
52312 sed 's/^/| /' conftest.$ac_ext >&5
52314 has_weof=no
52316 rm -f conftest.$ac_objext conftest.$ac_ext
52317 echo "$as_me:$LINENO: result: $has_weof" >&5
52318 echo "${ECHO_T}$has_weof" >&6
52320 # Tests for wide character functions used in char_traits<wchar_t>.
52321 ac_wfuncs=yes
52328 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
52330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52331 echo "$as_me:$LINENO: checking for $ac_func" >&5
52332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52333 if eval "test \"\${$as_ac_var+set}\" = set"; then
52334 echo $ECHO_N "(cached) $ECHO_C" >&6
52335 else
52336 if test x$gcc_no_link = xyes; then
52337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52339 { (exit 1); exit 1; }; }
52341 cat >conftest.$ac_ext <<_ACEOF
52342 #line $LINENO "configure"
52343 /* confdefs.h. */
52344 _ACEOF
52345 cat confdefs.h >>conftest.$ac_ext
52346 cat >>conftest.$ac_ext <<_ACEOF
52347 /* end confdefs.h. */
52348 /* System header to define __stub macros and hopefully few prototypes,
52349 which can conflict with char $ac_func (); below.
52350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52351 <limits.h> exists even on freestanding compilers. */
52352 #ifdef __STDC__
52353 # include <limits.h>
52354 #else
52355 # include <assert.h>
52356 #endif
52357 /* Override any gcc2 internal prototype to avoid an error. */
52358 #ifdef __cplusplus
52359 extern "C"
52361 #endif
52362 /* We use char because int might match the return type of a gcc2
52363 builtin and then its argument prototype would still apply. */
52364 char $ac_func ();
52365 /* The GNU C library defines this for functions which it implements
52366 to always fail with ENOSYS. Some functions are actually named
52367 something starting with __ and the normal name is an alias. */
52368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52369 choke me
52370 #else
52371 char (*f) () = $ac_func;
52372 #endif
52373 #ifdef __cplusplus
52375 #endif
52378 main ()
52380 return f != $ac_func;
52382 return 0;
52384 _ACEOF
52385 rm -f conftest.$ac_objext conftest$ac_exeext
52386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52387 (eval $ac_link) 2>&5
52388 ac_status=$?
52389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52390 (exit $ac_status); } &&
52391 { ac_try='test -s conftest$ac_exeext'
52392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52393 (eval $ac_try) 2>&5
52394 ac_status=$?
52395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52396 (exit $ac_status); }; }; then
52397 eval "$as_ac_var=yes"
52398 else
52399 echo "$as_me: failed program was:" >&5
52400 sed 's/^/| /' conftest.$ac_ext >&5
52402 eval "$as_ac_var=no"
52404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52408 if test `eval echo '${'$as_ac_var'}'` = yes; then
52409 cat >>confdefs.h <<_ACEOF
52410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52411 _ACEOF
52413 else
52414 ac_wfuncs=no
52416 done
52419 # Checks for names injected into std:: by the c_std headers.
52466 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
52467 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
52468 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
52469 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
52470 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
52471 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
52473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52474 echo "$as_me:$LINENO: checking for $ac_func" >&5
52475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52476 if eval "test \"\${$as_ac_var+set}\" = set"; then
52477 echo $ECHO_N "(cached) $ECHO_C" >&6
52478 else
52479 if test x$gcc_no_link = xyes; then
52480 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52481 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52482 { (exit 1); exit 1; }; }
52484 cat >conftest.$ac_ext <<_ACEOF
52485 #line $LINENO "configure"
52486 /* confdefs.h. */
52487 _ACEOF
52488 cat confdefs.h >>conftest.$ac_ext
52489 cat >>conftest.$ac_ext <<_ACEOF
52490 /* end confdefs.h. */
52491 /* System header to define __stub macros and hopefully few prototypes,
52492 which can conflict with char $ac_func (); below.
52493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52494 <limits.h> exists even on freestanding compilers. */
52495 #ifdef __STDC__
52496 # include <limits.h>
52497 #else
52498 # include <assert.h>
52499 #endif
52500 /* Override any gcc2 internal prototype to avoid an error. */
52501 #ifdef __cplusplus
52502 extern "C"
52504 #endif
52505 /* We use char because int might match the return type of a gcc2
52506 builtin and then its argument prototype would still apply. */
52507 char $ac_func ();
52508 /* The GNU C library defines this for functions which it implements
52509 to always fail with ENOSYS. Some functions are actually named
52510 something starting with __ and the normal name is an alias. */
52511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52512 choke me
52513 #else
52514 char (*f) () = $ac_func;
52515 #endif
52516 #ifdef __cplusplus
52518 #endif
52521 main ()
52523 return f != $ac_func;
52525 return 0;
52527 _ACEOF
52528 rm -f conftest.$ac_objext conftest$ac_exeext
52529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52530 (eval $ac_link) 2>&5
52531 ac_status=$?
52532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52533 (exit $ac_status); } &&
52534 { ac_try='test -s conftest$ac_exeext'
52535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52536 (eval $ac_try) 2>&5
52537 ac_status=$?
52538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52539 (exit $ac_status); }; }; then
52540 eval "$as_ac_var=yes"
52541 else
52542 echo "$as_me: failed program was:" >&5
52543 sed 's/^/| /' conftest.$ac_ext >&5
52545 eval "$as_ac_var=no"
52547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52551 if test `eval echo '${'$as_ac_var'}'` = yes; then
52552 cat >>confdefs.h <<_ACEOF
52553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52554 _ACEOF
52556 else
52557 ac_wfuncs=no
52559 done
52562 # Checks for wide character functions that are not required
52563 # for basic wchar_t support. Don't disable support if they are missing.
52564 # Injection of these is wrapped with guard macros.
52570 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
52572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52573 echo "$as_me:$LINENO: checking for $ac_func" >&5
52574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52575 if eval "test \"\${$as_ac_var+set}\" = set"; then
52576 echo $ECHO_N "(cached) $ECHO_C" >&6
52577 else
52578 if test x$gcc_no_link = xyes; then
52579 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52580 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52581 { (exit 1); exit 1; }; }
52583 cat >conftest.$ac_ext <<_ACEOF
52584 #line $LINENO "configure"
52585 /* confdefs.h. */
52586 _ACEOF
52587 cat confdefs.h >>conftest.$ac_ext
52588 cat >>conftest.$ac_ext <<_ACEOF
52589 /* end confdefs.h. */
52590 /* System header to define __stub macros and hopefully few prototypes,
52591 which can conflict with char $ac_func (); below.
52592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52593 <limits.h> exists even on freestanding compilers. */
52594 #ifdef __STDC__
52595 # include <limits.h>
52596 #else
52597 # include <assert.h>
52598 #endif
52599 /* Override any gcc2 internal prototype to avoid an error. */
52600 #ifdef __cplusplus
52601 extern "C"
52603 #endif
52604 /* We use char because int might match the return type of a gcc2
52605 builtin and then its argument prototype would still apply. */
52606 char $ac_func ();
52607 /* The GNU C library defines this for functions which it implements
52608 to always fail with ENOSYS. Some functions are actually named
52609 something starting with __ and the normal name is an alias. */
52610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52611 choke me
52612 #else
52613 char (*f) () = $ac_func;
52614 #endif
52615 #ifdef __cplusplus
52617 #endif
52620 main ()
52622 return f != $ac_func;
52624 return 0;
52626 _ACEOF
52627 rm -f conftest.$ac_objext conftest$ac_exeext
52628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52629 (eval $ac_link) 2>&5
52630 ac_status=$?
52631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52632 (exit $ac_status); } &&
52633 { ac_try='test -s conftest$ac_exeext'
52634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52635 (eval $ac_try) 2>&5
52636 ac_status=$?
52637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52638 (exit $ac_status); }; }; then
52639 eval "$as_ac_var=yes"
52640 else
52641 echo "$as_me: failed program was:" >&5
52642 sed 's/^/| /' conftest.$ac_ext >&5
52644 eval "$as_ac_var=no"
52646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52650 if test `eval echo '${'$as_ac_var'}'` = yes; then
52651 cat >>confdefs.h <<_ACEOF
52652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52653 _ACEOF
52656 done
52659 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
52660 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
52661 if test x"$has_weof" = xyes &&
52662 test x"$has_wchar_minmax" = xyes &&
52663 test x"$ac_wfuncs" = xyes;
52664 then
52665 ac_isoC99_wchar_t=yes
52666 else
52667 ac_isoC99_wchar_t=no
52669 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
52670 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
52672 # Use iconv for wchar_t to char conversions. As such, check for
52673 # X/Open Portability Guide, version 2 features (XPG2).
52674 if test "${ac_cv_header_iconv_h+set}" = set; then
52675 echo "$as_me:$LINENO: checking for iconv.h" >&5
52676 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52677 if test "${ac_cv_header_iconv_h+set}" = set; then
52678 echo $ECHO_N "(cached) $ECHO_C" >&6
52680 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52681 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52682 else
52683 # Is the header compilable?
52684 echo "$as_me:$LINENO: checking iconv.h usability" >&5
52685 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
52686 cat >conftest.$ac_ext <<_ACEOF
52687 #line $LINENO "configure"
52688 /* confdefs.h. */
52689 _ACEOF
52690 cat confdefs.h >>conftest.$ac_ext
52691 cat >>conftest.$ac_ext <<_ACEOF
52692 /* end confdefs.h. */
52693 $ac_includes_default
52694 #include <iconv.h>
52695 _ACEOF
52696 rm -f conftest.$ac_objext
52697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52698 (eval $ac_compile) 2>&5
52699 ac_status=$?
52700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52701 (exit $ac_status); } &&
52702 { ac_try='test -s conftest.$ac_objext'
52703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52704 (eval $ac_try) 2>&5
52705 ac_status=$?
52706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52707 (exit $ac_status); }; }; then
52708 ac_header_compiler=yes
52709 else
52710 echo "$as_me: failed program was:" >&5
52711 sed 's/^/| /' conftest.$ac_ext >&5
52713 ac_header_compiler=no
52715 rm -f conftest.$ac_objext conftest.$ac_ext
52716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52717 echo "${ECHO_T}$ac_header_compiler" >&6
52719 # Is the header present?
52720 echo "$as_me:$LINENO: checking iconv.h presence" >&5
52721 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
52722 cat >conftest.$ac_ext <<_ACEOF
52723 #line $LINENO "configure"
52724 /* confdefs.h. */
52725 _ACEOF
52726 cat confdefs.h >>conftest.$ac_ext
52727 cat >>conftest.$ac_ext <<_ACEOF
52728 /* end confdefs.h. */
52729 #include <iconv.h>
52730 _ACEOF
52731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52733 ac_status=$?
52734 grep -v '^ *+' conftest.er1 >conftest.err
52735 rm -f conftest.er1
52736 cat conftest.err >&5
52737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52738 (exit $ac_status); } >/dev/null; then
52739 if test -s conftest.err; then
52740 ac_cpp_err=$ac_c_preproc_warn_flag
52741 else
52742 ac_cpp_err=
52744 else
52745 ac_cpp_err=yes
52747 if test -z "$ac_cpp_err"; then
52748 ac_header_preproc=yes
52749 else
52750 echo "$as_me: failed program was:" >&5
52751 sed 's/^/| /' conftest.$ac_ext >&5
52753 ac_header_preproc=no
52755 rm -f conftest.err conftest.$ac_ext
52756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52757 echo "${ECHO_T}$ac_header_preproc" >&6
52759 # So? What about this header?
52760 case $ac_header_compiler:$ac_header_preproc in
52761 yes:no )
52762 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52763 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52764 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52765 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52767 cat <<\_ASBOX
52768 ## ------------------------------------ ##
52769 ## Report this to bug-autoconf@gnu.org. ##
52770 ## ------------------------------------ ##
52771 _ASBOX
52773 sed "s/^/$as_me: WARNING: /" >&2
52775 no:yes )
52776 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52777 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52778 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52779 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52780 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52781 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52783 cat <<\_ASBOX
52784 ## ------------------------------------ ##
52785 ## Report this to bug-autoconf@gnu.org. ##
52786 ## ------------------------------------ ##
52787 _ASBOX
52789 sed "s/^/$as_me: WARNING: /" >&2
52791 esac
52792 echo "$as_me:$LINENO: checking for iconv.h" >&5
52793 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52794 if test "${ac_cv_header_iconv_h+set}" = set; then
52795 echo $ECHO_N "(cached) $ECHO_C" >&6
52796 else
52797 ac_cv_header_iconv_h=$ac_header_preproc
52799 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52800 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52803 if test $ac_cv_header_iconv_h = yes; then
52804 ac_has_iconv_h=yes
52805 else
52806 ac_has_iconv_h=no
52810 if test "${ac_cv_header_langinfo_h+set}" = set; then
52811 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52812 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52813 if test "${ac_cv_header_langinfo_h+set}" = set; then
52814 echo $ECHO_N "(cached) $ECHO_C" >&6
52816 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52817 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52818 else
52819 # Is the header compilable?
52820 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52821 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52822 cat >conftest.$ac_ext <<_ACEOF
52823 #line $LINENO "configure"
52824 /* confdefs.h. */
52825 _ACEOF
52826 cat confdefs.h >>conftest.$ac_ext
52827 cat >>conftest.$ac_ext <<_ACEOF
52828 /* end confdefs.h. */
52829 $ac_includes_default
52830 #include <langinfo.h>
52831 _ACEOF
52832 rm -f conftest.$ac_objext
52833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52834 (eval $ac_compile) 2>&5
52835 ac_status=$?
52836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52837 (exit $ac_status); } &&
52838 { ac_try='test -s conftest.$ac_objext'
52839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52840 (eval $ac_try) 2>&5
52841 ac_status=$?
52842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52843 (exit $ac_status); }; }; then
52844 ac_header_compiler=yes
52845 else
52846 echo "$as_me: failed program was:" >&5
52847 sed 's/^/| /' conftest.$ac_ext >&5
52849 ac_header_compiler=no
52851 rm -f conftest.$ac_objext conftest.$ac_ext
52852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52853 echo "${ECHO_T}$ac_header_compiler" >&6
52855 # Is the header present?
52856 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52857 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52858 cat >conftest.$ac_ext <<_ACEOF
52859 #line $LINENO "configure"
52860 /* confdefs.h. */
52861 _ACEOF
52862 cat confdefs.h >>conftest.$ac_ext
52863 cat >>conftest.$ac_ext <<_ACEOF
52864 /* end confdefs.h. */
52865 #include <langinfo.h>
52866 _ACEOF
52867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52869 ac_status=$?
52870 grep -v '^ *+' conftest.er1 >conftest.err
52871 rm -f conftest.er1
52872 cat conftest.err >&5
52873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52874 (exit $ac_status); } >/dev/null; then
52875 if test -s conftest.err; then
52876 ac_cpp_err=$ac_c_preproc_warn_flag
52877 else
52878 ac_cpp_err=
52880 else
52881 ac_cpp_err=yes
52883 if test -z "$ac_cpp_err"; then
52884 ac_header_preproc=yes
52885 else
52886 echo "$as_me: failed program was:" >&5
52887 sed 's/^/| /' conftest.$ac_ext >&5
52889 ac_header_preproc=no
52891 rm -f conftest.err conftest.$ac_ext
52892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52893 echo "${ECHO_T}$ac_header_preproc" >&6
52895 # So? What about this header?
52896 case $ac_header_compiler:$ac_header_preproc in
52897 yes:no )
52898 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52899 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52900 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52901 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52903 cat <<\_ASBOX
52904 ## ------------------------------------ ##
52905 ## Report this to bug-autoconf@gnu.org. ##
52906 ## ------------------------------------ ##
52907 _ASBOX
52909 sed "s/^/$as_me: WARNING: /" >&2
52911 no:yes )
52912 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52913 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52914 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52915 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52916 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52917 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52919 cat <<\_ASBOX
52920 ## ------------------------------------ ##
52921 ## Report this to bug-autoconf@gnu.org. ##
52922 ## ------------------------------------ ##
52923 _ASBOX
52925 sed "s/^/$as_me: WARNING: /" >&2
52927 esac
52928 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52929 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52930 if test "${ac_cv_header_langinfo_h+set}" = set; then
52931 echo $ECHO_N "(cached) $ECHO_C" >&6
52932 else
52933 ac_cv_header_langinfo_h=$ac_header_preproc
52935 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52936 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52939 if test $ac_cv_header_langinfo_h = yes; then
52940 ac_has_langinfo_h=yes
52941 else
52942 ac_has_langinfo_h=no
52947 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52948 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52949 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52950 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52951 echo $ECHO_N "(cached) $ECHO_C" >&6
52952 else
52953 ac_check_lib_save_LIBS=$LIBS
52954 LIBS="-liconv $LIBS"
52955 if test x$gcc_no_link = xyes; then
52956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52958 { (exit 1); exit 1; }; }
52960 cat >conftest.$ac_ext <<_ACEOF
52961 #line $LINENO "configure"
52962 /* confdefs.h. */
52963 _ACEOF
52964 cat confdefs.h >>conftest.$ac_ext
52965 cat >>conftest.$ac_ext <<_ACEOF
52966 /* end confdefs.h. */
52968 /* Override any gcc2 internal prototype to avoid an error. */
52969 #ifdef __cplusplus
52970 extern "C"
52971 #endif
52972 /* We use char because int might match the return type of a gcc2
52973 builtin and then its argument prototype would still apply. */
52974 char iconv ();
52976 main ()
52978 iconv ();
52980 return 0;
52982 _ACEOF
52983 rm -f conftest.$ac_objext conftest$ac_exeext
52984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52985 (eval $ac_link) 2>&5
52986 ac_status=$?
52987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52988 (exit $ac_status); } &&
52989 { ac_try='test -s conftest$ac_exeext'
52990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52991 (eval $ac_try) 2>&5
52992 ac_status=$?
52993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52994 (exit $ac_status); }; }; then
52995 ac_cv_lib_iconv_iconv=yes
52996 else
52997 echo "$as_me: failed program was:" >&5
52998 sed 's/^/| /' conftest.$ac_ext >&5
53000 ac_cv_lib_iconv_iconv=no
53002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53003 LIBS=$ac_check_lib_save_LIBS
53005 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
53006 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
53007 if test $ac_cv_lib_iconv_iconv = yes; then
53008 libiconv="-liconv"
53011 ac_save_LIBS="$LIBS"
53012 LIBS="$LIBS $libiconv"
53018 for ac_func in iconv_open iconv_close iconv nl_langinfo
53020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53021 echo "$as_me:$LINENO: checking for $ac_func" >&5
53022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53023 if eval "test \"\${$as_ac_var+set}\" = set"; then
53024 echo $ECHO_N "(cached) $ECHO_C" >&6
53025 else
53026 if test x$gcc_no_link = xyes; then
53027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53029 { (exit 1); exit 1; }; }
53031 cat >conftest.$ac_ext <<_ACEOF
53032 #line $LINENO "configure"
53033 /* confdefs.h. */
53034 _ACEOF
53035 cat confdefs.h >>conftest.$ac_ext
53036 cat >>conftest.$ac_ext <<_ACEOF
53037 /* end confdefs.h. */
53038 /* System header to define __stub macros and hopefully few prototypes,
53039 which can conflict with char $ac_func (); below.
53040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53041 <limits.h> exists even on freestanding compilers. */
53042 #ifdef __STDC__
53043 # include <limits.h>
53044 #else
53045 # include <assert.h>
53046 #endif
53047 /* Override any gcc2 internal prototype to avoid an error. */
53048 #ifdef __cplusplus
53049 extern "C"
53051 #endif
53052 /* We use char because int might match the return type of a gcc2
53053 builtin and then its argument prototype would still apply. */
53054 char $ac_func ();
53055 /* The GNU C library defines this for functions which it implements
53056 to always fail with ENOSYS. Some functions are actually named
53057 something starting with __ and the normal name is an alias. */
53058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53059 choke me
53060 #else
53061 char (*f) () = $ac_func;
53062 #endif
53063 #ifdef __cplusplus
53065 #endif
53068 main ()
53070 return f != $ac_func;
53072 return 0;
53074 _ACEOF
53075 rm -f conftest.$ac_objext conftest$ac_exeext
53076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53077 (eval $ac_link) 2>&5
53078 ac_status=$?
53079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53080 (exit $ac_status); } &&
53081 { ac_try='test -s conftest$ac_exeext'
53082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53083 (eval $ac_try) 2>&5
53084 ac_status=$?
53085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53086 (exit $ac_status); }; }; then
53087 eval "$as_ac_var=yes"
53088 else
53089 echo "$as_me: failed program was:" >&5
53090 sed 's/^/| /' conftest.$ac_ext >&5
53092 eval "$as_ac_var=no"
53094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53098 if test `eval echo '${'$as_ac_var'}'` = yes; then
53099 cat >>confdefs.h <<_ACEOF
53100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53101 _ACEOF
53102 ac_XPG2funcs=yes
53103 else
53104 ac_XPG2funcs=no
53106 done
53109 LIBS="$ac_save_LIBS"
53111 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
53112 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
53113 if test x"$ac_has_iconv_h" = xyes &&
53114 test x"$ac_has_langinfo_h" = xyes &&
53115 test x"$ac_XPG2funcs" = xyes;
53116 then
53117 ac_XPG2_wchar_t=yes
53118 else
53119 ac_XPG2_wchar_t=no
53121 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
53122 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
53124 # At the moment, only enable wchar_t specializations if all the
53125 # above support is present.
53126 if test x"$ac_isoC99_wchar_t" = xyes &&
53127 test x"$ac_XPG2_wchar_t" = xyes;
53128 then
53129 cat >>confdefs.h <<\_ACEOF
53130 #define _GLIBCXX_USE_WCHAR_T 1
53131 _ACEOF
53133 enable_wchar_t=yes
53136 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
53137 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
53138 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
53139 echo "${ECHO_T}$enable_wchar_t" >&6
53141 cat >>confdefs.h <<\_ACEOF
53142 #define HAVE_COPYSIGN 1
53143 _ACEOF
53145 cat >>confdefs.h <<\_ACEOF
53146 #define HAVE_COPYSIGNF 1
53147 _ACEOF
53149 cat >>confdefs.h <<\_ACEOF
53150 #define HAVE_FINITE 1
53151 _ACEOF
53153 cat >>confdefs.h <<\_ACEOF
53154 #define HAVE_FINITEF 1
53155 _ACEOF
53157 cat >>confdefs.h <<\_ACEOF
53158 #define HAVE_FREXPF 1
53159 _ACEOF
53161 cat >>confdefs.h <<\_ACEOF
53162 #define HAVE_HYPOTF 1
53163 _ACEOF
53165 cat >>confdefs.h <<\_ACEOF
53166 #define HAVE_ISINF 1
53167 _ACEOF
53169 cat >>confdefs.h <<\_ACEOF
53170 #define HAVE_ISINFF 1
53171 _ACEOF
53173 cat >>confdefs.h <<\_ACEOF
53174 #define HAVE_ISNAN 1
53175 _ACEOF
53177 cat >>confdefs.h <<\_ACEOF
53178 #define HAVE_ISNANF 1
53179 _ACEOF
53181 cat >>confdefs.h <<\_ACEOF
53182 #define HAVE_SINCOS 1
53183 _ACEOF
53185 cat >>confdefs.h <<\_ACEOF
53186 #define HAVE_SINCOSF 1
53187 _ACEOF
53189 if test x"long_double_math_on_this_cpu" = x"yes"; then
53190 cat >>confdefs.h <<\_ACEOF
53191 #define HAVE_FINITEL 1
53192 _ACEOF
53194 cat >>confdefs.h <<\_ACEOF
53195 #define HAVE_HYPOTL 1
53196 _ACEOF
53198 cat >>confdefs.h <<\_ACEOF
53199 #define HAVE_ISINFL 1
53200 _ACEOF
53202 cat >>confdefs.h <<\_ACEOF
53203 #define HAVE_ISNANL 1
53204 _ACEOF
53208 *-mingw32*)
53212 for ac_header in sys/types.h locale.h float.h
53214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53216 echo "$as_me:$LINENO: checking for $ac_header" >&5
53217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53219 echo $ECHO_N "(cached) $ECHO_C" >&6
53221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53223 else
53224 # Is the header compilable?
53225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53227 cat >conftest.$ac_ext <<_ACEOF
53228 #line $LINENO "configure"
53229 /* confdefs.h. */
53230 _ACEOF
53231 cat confdefs.h >>conftest.$ac_ext
53232 cat >>conftest.$ac_ext <<_ACEOF
53233 /* end confdefs.h. */
53234 $ac_includes_default
53235 #include <$ac_header>
53236 _ACEOF
53237 rm -f conftest.$ac_objext
53238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53239 (eval $ac_compile) 2>&5
53240 ac_status=$?
53241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53242 (exit $ac_status); } &&
53243 { ac_try='test -s conftest.$ac_objext'
53244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53245 (eval $ac_try) 2>&5
53246 ac_status=$?
53247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53248 (exit $ac_status); }; }; then
53249 ac_header_compiler=yes
53250 else
53251 echo "$as_me: failed program was:" >&5
53252 sed 's/^/| /' conftest.$ac_ext >&5
53254 ac_header_compiler=no
53256 rm -f conftest.$ac_objext conftest.$ac_ext
53257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53258 echo "${ECHO_T}$ac_header_compiler" >&6
53260 # Is the header present?
53261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53263 cat >conftest.$ac_ext <<_ACEOF
53264 #line $LINENO "configure"
53265 /* confdefs.h. */
53266 _ACEOF
53267 cat confdefs.h >>conftest.$ac_ext
53268 cat >>conftest.$ac_ext <<_ACEOF
53269 /* end confdefs.h. */
53270 #include <$ac_header>
53271 _ACEOF
53272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53274 ac_status=$?
53275 grep -v '^ *+' conftest.er1 >conftest.err
53276 rm -f conftest.er1
53277 cat conftest.err >&5
53278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53279 (exit $ac_status); } >/dev/null; then
53280 if test -s conftest.err; then
53281 ac_cpp_err=$ac_c_preproc_warn_flag
53282 else
53283 ac_cpp_err=
53285 else
53286 ac_cpp_err=yes
53288 if test -z "$ac_cpp_err"; then
53289 ac_header_preproc=yes
53290 else
53291 echo "$as_me: failed program was:" >&5
53292 sed 's/^/| /' conftest.$ac_ext >&5
53294 ac_header_preproc=no
53296 rm -f conftest.err conftest.$ac_ext
53297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53298 echo "${ECHO_T}$ac_header_preproc" >&6
53300 # So? What about this header?
53301 case $ac_header_compiler:$ac_header_preproc in
53302 yes:no )
53303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53308 cat <<\_ASBOX
53309 ## ------------------------------------ ##
53310 ## Report this to bug-autoconf@gnu.org. ##
53311 ## ------------------------------------ ##
53312 _ASBOX
53314 sed "s/^/$as_me: WARNING: /" >&2
53316 no:yes )
53317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53324 cat <<\_ASBOX
53325 ## ------------------------------------ ##
53326 ## Report this to bug-autoconf@gnu.org. ##
53327 ## ------------------------------------ ##
53328 _ASBOX
53330 sed "s/^/$as_me: WARNING: /" >&2
53332 esac
53333 echo "$as_me:$LINENO: checking for $ac_header" >&5
53334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53336 echo $ECHO_N "(cached) $ECHO_C" >&6
53337 else
53338 eval "$as_ac_Header=$ac_header_preproc"
53340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53345 cat >>confdefs.h <<_ACEOF
53346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53347 _ACEOF
53351 done
53354 # If we're not using GNU ld, then there's no point in even trying these
53355 # tests. Check for that first. We should have already tested for gld
53356 # by now (in libtool), but require it now just to be safe...
53357 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53358 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53362 # The name set by libtool depends on the version of libtool. Shame on us
53363 # for depending on an impl detail, but c'est la vie. Older versions used
53364 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53365 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53366 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
53367 # set (hence we're using an older libtool), then set it.
53368 if test x${with_gnu_ld+set} != xset; then
53369 if test x${ac_cv_prog_gnu_ld+set} != xset; then
53370 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
53371 with_gnu_ld=no
53372 else
53373 with_gnu_ld=$ac_cv_prog_gnu_ld
53377 # Start by getting the version number. I think the libtool test already
53378 # does some of this, but throws away the result.
53380 ldver=`$LD --version 2>/dev/null | head -1 | \
53381 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53383 glibcxx_gnu_ld_version=`echo $ldver | \
53384 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53386 # Set --gc-sections.
53387 if test "$with_gnu_ld" = "notbroken"; then
53388 # GNU ld it is! Joy and bunny rabbits!
53390 # All these tests are for C++; save the language and the compiler flags.
53391 # Need to do this so that g++ won't try to link in libstdc++
53392 ac_test_CFLAGS="${CFLAGS+set}"
53393 ac_save_CFLAGS="$CFLAGS"
53394 CFLAGS='-x c++ -Wl,--gc-sections'
53396 # Check for -Wl,--gc-sections
53397 # XXX This test is broken at the moment, as symbols required for linking
53398 # are now in libsupc++ (not built yet). In addition, this test has
53399 # cored on solaris in the past. In addition, --gc-sections doesn't
53400 # really work at the moment (keeps on discarding used sections, first
53401 # .eh_frame and now some of the glibc sections for iconv).
53402 # Bzzzzt. Thanks for playing, maybe next time.
53403 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53404 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53405 if test "$cross_compiling" = yes; then
53406 ac_sectionLDflags=yes
53407 else
53408 cat >conftest.$ac_ext <<_ACEOF
53409 #line $LINENO "configure"
53410 /* confdefs.h. */
53411 _ACEOF
53412 cat confdefs.h >>conftest.$ac_ext
53413 cat >>conftest.$ac_ext <<_ACEOF
53414 /* end confdefs.h. */
53416 int main(void)
53418 try { throw 1; }
53419 catch (...) { };
53420 return 0;
53423 _ACEOF
53424 rm -f conftest$ac_exeext
53425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53426 (eval $ac_link) 2>&5
53427 ac_status=$?
53428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53431 (eval $ac_try) 2>&5
53432 ac_status=$?
53433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53434 (exit $ac_status); }; }; then
53435 ac_sectionLDflags=yes
53436 else
53437 echo "$as_me: program exited with status $ac_status" >&5
53438 echo "$as_me: failed program was:" >&5
53439 sed 's/^/| /' conftest.$ac_ext >&5
53441 ( exit $ac_status )
53442 ac_sectionLDflags=no
53444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53446 if test "$ac_test_CFLAGS" = set; then
53447 CFLAGS="$ac_save_CFLAGS"
53448 else
53449 # this is the suspicious part
53450 CFLAGS=''
53452 if test "$ac_sectionLDflags" = "yes"; then
53453 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53455 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53456 echo "${ECHO_T}$ac_sectionLDflags" >&6
53459 # Set linker optimization flags.
53460 if test x"$with_gnu_ld" = x"yes"; then
53461 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53469 echo "$as_me:$LINENO: checking for main in -lm" >&5
53470 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53471 if test "${ac_cv_lib_m_main+set}" = set; then
53472 echo $ECHO_N "(cached) $ECHO_C" >&6
53473 else
53474 ac_check_lib_save_LIBS=$LIBS
53475 LIBS="-lm $LIBS"
53476 if test x$gcc_no_link = xyes; then
53477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53479 { (exit 1); exit 1; }; }
53481 cat >conftest.$ac_ext <<_ACEOF
53482 #line $LINENO "configure"
53483 /* confdefs.h. */
53484 _ACEOF
53485 cat confdefs.h >>conftest.$ac_ext
53486 cat >>conftest.$ac_ext <<_ACEOF
53487 /* end confdefs.h. */
53491 main ()
53493 main ();
53495 return 0;
53497 _ACEOF
53498 rm -f conftest.$ac_objext conftest$ac_exeext
53499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53500 (eval $ac_link) 2>&5
53501 ac_status=$?
53502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53503 (exit $ac_status); } &&
53504 { ac_try='test -s conftest$ac_exeext'
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_cv_lib_m_main=yes
53511 else
53512 echo "$as_me: failed program was:" >&5
53513 sed 's/^/| /' conftest.$ac_ext >&5
53515 ac_cv_lib_m_main=no
53517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53518 LIBS=$ac_check_lib_save_LIBS
53520 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53521 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53522 if test $ac_cv_lib_m_main = yes; then
53523 cat >>confdefs.h <<_ACEOF
53524 #define HAVE_LIBM 1
53525 _ACEOF
53527 LIBS="-lm $LIBS"
53533 for ac_func in nan copysignf
53535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53536 echo "$as_me:$LINENO: checking for $ac_func" >&5
53537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53538 if eval "test \"\${$as_ac_var+set}\" = set"; then
53539 echo $ECHO_N "(cached) $ECHO_C" >&6
53540 else
53541 if test x$gcc_no_link = xyes; then
53542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53544 { (exit 1); exit 1; }; }
53546 cat >conftest.$ac_ext <<_ACEOF
53547 #line $LINENO "configure"
53548 /* confdefs.h. */
53549 _ACEOF
53550 cat confdefs.h >>conftest.$ac_ext
53551 cat >>conftest.$ac_ext <<_ACEOF
53552 /* end confdefs.h. */
53553 /* System header to define __stub macros and hopefully few prototypes,
53554 which can conflict with char $ac_func (); below.
53555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53556 <limits.h> exists even on freestanding compilers. */
53557 #ifdef __STDC__
53558 # include <limits.h>
53559 #else
53560 # include <assert.h>
53561 #endif
53562 /* Override any gcc2 internal prototype to avoid an error. */
53563 #ifdef __cplusplus
53564 extern "C"
53566 #endif
53567 /* We use char because int might match the return type of a gcc2
53568 builtin and then its argument prototype would still apply. */
53569 char $ac_func ();
53570 /* The GNU C library defines this for functions which it implements
53571 to always fail with ENOSYS. Some functions are actually named
53572 something starting with __ and the normal name is an alias. */
53573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53574 choke me
53575 #else
53576 char (*f) () = $ac_func;
53577 #endif
53578 #ifdef __cplusplus
53580 #endif
53583 main ()
53585 return f != $ac_func;
53587 return 0;
53589 _ACEOF
53590 rm -f conftest.$ac_objext conftest$ac_exeext
53591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53592 (eval $ac_link) 2>&5
53593 ac_status=$?
53594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53595 (exit $ac_status); } &&
53596 { ac_try='test -s conftest$ac_exeext'
53597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53598 (eval $ac_try) 2>&5
53599 ac_status=$?
53600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53601 (exit $ac_status); }; }; then
53602 eval "$as_ac_var=yes"
53603 else
53604 echo "$as_me: failed program was:" >&5
53605 sed 's/^/| /' conftest.$ac_ext >&5
53607 eval "$as_ac_var=no"
53609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53613 if test `eval echo '${'$as_ac_var'}'` = yes; then
53614 cat >>confdefs.h <<_ACEOF
53615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53616 _ACEOF
53618 else
53619 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53621 done
53625 for ac_func in __signbit
53627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53628 echo "$as_me:$LINENO: checking for $ac_func" >&5
53629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53630 if eval "test \"\${$as_ac_var+set}\" = set"; then
53631 echo $ECHO_N "(cached) $ECHO_C" >&6
53632 else
53633 if test x$gcc_no_link = xyes; then
53634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53636 { (exit 1); exit 1; }; }
53638 cat >conftest.$ac_ext <<_ACEOF
53639 #line $LINENO "configure"
53640 /* confdefs.h. */
53641 _ACEOF
53642 cat confdefs.h >>conftest.$ac_ext
53643 cat >>conftest.$ac_ext <<_ACEOF
53644 /* end confdefs.h. */
53645 /* System header to define __stub macros and hopefully few prototypes,
53646 which can conflict with char $ac_func (); below.
53647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53648 <limits.h> exists even on freestanding compilers. */
53649 #ifdef __STDC__
53650 # include <limits.h>
53651 #else
53652 # include <assert.h>
53653 #endif
53654 /* Override any gcc2 internal prototype to avoid an error. */
53655 #ifdef __cplusplus
53656 extern "C"
53658 #endif
53659 /* We use char because int might match the return type of a gcc2
53660 builtin and then its argument prototype would still apply. */
53661 char $ac_func ();
53662 /* The GNU C library defines this for functions which it implements
53663 to always fail with ENOSYS. Some functions are actually named
53664 something starting with __ and the normal name is an alias. */
53665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53666 choke me
53667 #else
53668 char (*f) () = $ac_func;
53669 #endif
53670 #ifdef __cplusplus
53672 #endif
53675 main ()
53677 return f != $ac_func;
53679 return 0;
53681 _ACEOF
53682 rm -f conftest.$ac_objext conftest$ac_exeext
53683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53684 (eval $ac_link) 2>&5
53685 ac_status=$?
53686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53687 (exit $ac_status); } &&
53688 { ac_try='test -s conftest$ac_exeext'
53689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53690 (eval $ac_try) 2>&5
53691 ac_status=$?
53692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53693 (exit $ac_status); }; }; then
53694 eval "$as_ac_var=yes"
53695 else
53696 echo "$as_me: failed program was:" >&5
53697 sed 's/^/| /' conftest.$ac_ext >&5
53699 eval "$as_ac_var=no"
53701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53705 if test `eval echo '${'$as_ac_var'}'` = yes; then
53706 cat >>confdefs.h <<_ACEOF
53707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53708 _ACEOF
53710 else
53711 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
53713 done
53716 for ac_func in __signbitf
53718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53719 echo "$as_me:$LINENO: checking for $ac_func" >&5
53720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53721 if eval "test \"\${$as_ac_var+set}\" = set"; then
53722 echo $ECHO_N "(cached) $ECHO_C" >&6
53723 else
53724 if test x$gcc_no_link = xyes; then
53725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53727 { (exit 1); exit 1; }; }
53729 cat >conftest.$ac_ext <<_ACEOF
53730 #line $LINENO "configure"
53731 /* confdefs.h. */
53732 _ACEOF
53733 cat confdefs.h >>conftest.$ac_ext
53734 cat >>conftest.$ac_ext <<_ACEOF
53735 /* end confdefs.h. */
53736 /* System header to define __stub macros and hopefully few prototypes,
53737 which can conflict with char $ac_func (); below.
53738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53739 <limits.h> exists even on freestanding compilers. */
53740 #ifdef __STDC__
53741 # include <limits.h>
53742 #else
53743 # include <assert.h>
53744 #endif
53745 /* Override any gcc2 internal prototype to avoid an error. */
53746 #ifdef __cplusplus
53747 extern "C"
53749 #endif
53750 /* We use char because int might match the return type of a gcc2
53751 builtin and then its argument prototype would still apply. */
53752 char $ac_func ();
53753 /* The GNU C library defines this for functions which it implements
53754 to always fail with ENOSYS. Some functions are actually named
53755 something starting with __ and the normal name is an alias. */
53756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53757 choke me
53758 #else
53759 char (*f) () = $ac_func;
53760 #endif
53761 #ifdef __cplusplus
53763 #endif
53766 main ()
53768 return f != $ac_func;
53770 return 0;
53772 _ACEOF
53773 rm -f conftest.$ac_objext conftest$ac_exeext
53774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53775 (eval $ac_link) 2>&5
53776 ac_status=$?
53777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53778 (exit $ac_status); } &&
53779 { ac_try='test -s conftest$ac_exeext'
53780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53781 (eval $ac_try) 2>&5
53782 ac_status=$?
53783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53784 (exit $ac_status); }; }; then
53785 eval "$as_ac_var=yes"
53786 else
53787 echo "$as_me: failed program was:" >&5
53788 sed 's/^/| /' conftest.$ac_ext >&5
53790 eval "$as_ac_var=no"
53792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53796 if test `eval echo '${'$as_ac_var'}'` = yes; then
53797 cat >>confdefs.h <<_ACEOF
53798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53799 _ACEOF
53801 else
53802 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53804 done
53807 if test x$ac_cv_func_copysignl = x"yes"; then
53809 for ac_func in __signbitl
53811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53812 echo "$as_me:$LINENO: checking for $ac_func" >&5
53813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53814 if eval "test \"\${$as_ac_var+set}\" = set"; then
53815 echo $ECHO_N "(cached) $ECHO_C" >&6
53816 else
53817 if test x$gcc_no_link = xyes; then
53818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53820 { (exit 1); exit 1; }; }
53822 cat >conftest.$ac_ext <<_ACEOF
53823 #line $LINENO "configure"
53824 /* confdefs.h. */
53825 _ACEOF
53826 cat confdefs.h >>conftest.$ac_ext
53827 cat >>conftest.$ac_ext <<_ACEOF
53828 /* end confdefs.h. */
53829 /* System header to define __stub macros and hopefully few prototypes,
53830 which can conflict with char $ac_func (); below.
53831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53832 <limits.h> exists even on freestanding compilers. */
53833 #ifdef __STDC__
53834 # include <limits.h>
53835 #else
53836 # include <assert.h>
53837 #endif
53838 /* Override any gcc2 internal prototype to avoid an error. */
53839 #ifdef __cplusplus
53840 extern "C"
53842 #endif
53843 /* We use char because int might match the return type of a gcc2
53844 builtin and then its argument prototype would still apply. */
53845 char $ac_func ();
53846 /* The GNU C library defines this for functions which it implements
53847 to always fail with ENOSYS. Some functions are actually named
53848 something starting with __ and the normal name is an alias. */
53849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53850 choke me
53851 #else
53852 char (*f) () = $ac_func;
53853 #endif
53854 #ifdef __cplusplus
53856 #endif
53859 main ()
53861 return f != $ac_func;
53863 return 0;
53865 _ACEOF
53866 rm -f conftest.$ac_objext conftest$ac_exeext
53867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53868 (eval $ac_link) 2>&5
53869 ac_status=$?
53870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53871 (exit $ac_status); } &&
53872 { ac_try='test -s conftest$ac_exeext'
53873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53874 (eval $ac_try) 2>&5
53875 ac_status=$?
53876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53877 (exit $ac_status); }; }; then
53878 eval "$as_ac_var=yes"
53879 else
53880 echo "$as_me: failed program was:" >&5
53881 sed 's/^/| /' conftest.$ac_ext >&5
53883 eval "$as_ac_var=no"
53885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53889 if test `eval echo '${'$as_ac_var'}'` = yes; then
53890 cat >>confdefs.h <<_ACEOF
53891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53892 _ACEOF
53894 else
53895 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53897 done
53901 # XXX Review this. Nothing uses it.
53902 if test -n "$LIBMATHOBJS"; then
53903 need_libmath=yes
53908 # Test wchar.h for mbstate_t, which is needed for char_traits and
53909 # others even if wchar_t support is not on.
53910 echo "$as_me:$LINENO: checking for mbstate_t" >&5
53911 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
53912 cat >conftest.$ac_ext <<_ACEOF
53913 #line $LINENO "configure"
53914 /* confdefs.h. */
53915 _ACEOF
53916 cat confdefs.h >>conftest.$ac_ext
53917 cat >>conftest.$ac_ext <<_ACEOF
53918 /* end confdefs.h. */
53919 #include <wchar.h>
53921 main ()
53923 mbstate_t teststate;
53925 return 0;
53927 _ACEOF
53928 rm -f conftest.$ac_objext
53929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53930 (eval $ac_compile) 2>&5
53931 ac_status=$?
53932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53933 (exit $ac_status); } &&
53934 { ac_try='test -s conftest.$ac_objext'
53935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53936 (eval $ac_try) 2>&5
53937 ac_status=$?
53938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53939 (exit $ac_status); }; }; then
53940 have_mbstate_t=yes
53941 else
53942 echo "$as_me: failed program was:" >&5
53943 sed 's/^/| /' conftest.$ac_ext >&5
53945 have_mbstate_t=no
53947 rm -f conftest.$ac_objext conftest.$ac_ext
53948 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
53949 echo "${ECHO_T}$have_mbstate_t" >&6
53950 if test x"$have_mbstate_t" = xyes; then
53951 cat >>confdefs.h <<\_ACEOF
53952 #define HAVE_MBSTATE_T 1
53953 _ACEOF
53957 # Sanity check for existence of ISO C99 headers for extended encoding.
53959 for ac_header in wchar.h
53961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53963 echo "$as_me:$LINENO: checking for $ac_header" >&5
53964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53966 echo $ECHO_N "(cached) $ECHO_C" >&6
53968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53970 else
53971 # Is the header compilable?
53972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53974 cat >conftest.$ac_ext <<_ACEOF
53975 #line $LINENO "configure"
53976 /* confdefs.h. */
53977 _ACEOF
53978 cat confdefs.h >>conftest.$ac_ext
53979 cat >>conftest.$ac_ext <<_ACEOF
53980 /* end confdefs.h. */
53981 $ac_includes_default
53982 #include <$ac_header>
53983 _ACEOF
53984 rm -f conftest.$ac_objext
53985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53986 (eval $ac_compile) 2>&5
53987 ac_status=$?
53988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53989 (exit $ac_status); } &&
53990 { ac_try='test -s conftest.$ac_objext'
53991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53992 (eval $ac_try) 2>&5
53993 ac_status=$?
53994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53995 (exit $ac_status); }; }; then
53996 ac_header_compiler=yes
53997 else
53998 echo "$as_me: failed program was:" >&5
53999 sed 's/^/| /' conftest.$ac_ext >&5
54001 ac_header_compiler=no
54003 rm -f conftest.$ac_objext conftest.$ac_ext
54004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54005 echo "${ECHO_T}$ac_header_compiler" >&6
54007 # Is the header present?
54008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54010 cat >conftest.$ac_ext <<_ACEOF
54011 #line $LINENO "configure"
54012 /* confdefs.h. */
54013 _ACEOF
54014 cat confdefs.h >>conftest.$ac_ext
54015 cat >>conftest.$ac_ext <<_ACEOF
54016 /* end confdefs.h. */
54017 #include <$ac_header>
54018 _ACEOF
54019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54021 ac_status=$?
54022 grep -v '^ *+' conftest.er1 >conftest.err
54023 rm -f conftest.er1
54024 cat conftest.err >&5
54025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54026 (exit $ac_status); } >/dev/null; then
54027 if test -s conftest.err; then
54028 ac_cpp_err=$ac_c_preproc_warn_flag
54029 else
54030 ac_cpp_err=
54032 else
54033 ac_cpp_err=yes
54035 if test -z "$ac_cpp_err"; then
54036 ac_header_preproc=yes
54037 else
54038 echo "$as_me: failed program was:" >&5
54039 sed 's/^/| /' conftest.$ac_ext >&5
54041 ac_header_preproc=no
54043 rm -f conftest.err conftest.$ac_ext
54044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54045 echo "${ECHO_T}$ac_header_preproc" >&6
54047 # So? What about this header?
54048 case $ac_header_compiler:$ac_header_preproc in
54049 yes:no )
54050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54055 cat <<\_ASBOX
54056 ## ------------------------------------ ##
54057 ## Report this to bug-autoconf@gnu.org. ##
54058 ## ------------------------------------ ##
54059 _ASBOX
54061 sed "s/^/$as_me: WARNING: /" >&2
54063 no:yes )
54064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54071 cat <<\_ASBOX
54072 ## ------------------------------------ ##
54073 ## Report this to bug-autoconf@gnu.org. ##
54074 ## ------------------------------------ ##
54075 _ASBOX
54077 sed "s/^/$as_me: WARNING: /" >&2
54079 esac
54080 echo "$as_me:$LINENO: checking for $ac_header" >&5
54081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54083 echo $ECHO_N "(cached) $ECHO_C" >&6
54084 else
54085 eval "$as_ac_Header=$ac_header_preproc"
54087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54092 cat >>confdefs.h <<_ACEOF
54093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54094 _ACEOF
54095 ac_has_wchar_h=yes
54096 else
54097 ac_has_wchar_h=no
54100 done
54103 for ac_header in wctype.h
54105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54107 echo "$as_me:$LINENO: checking for $ac_header" >&5
54108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54110 echo $ECHO_N "(cached) $ECHO_C" >&6
54112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54114 else
54115 # Is the header compilable?
54116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54118 cat >conftest.$ac_ext <<_ACEOF
54119 #line $LINENO "configure"
54120 /* confdefs.h. */
54121 _ACEOF
54122 cat confdefs.h >>conftest.$ac_ext
54123 cat >>conftest.$ac_ext <<_ACEOF
54124 /* end confdefs.h. */
54125 $ac_includes_default
54126 #include <$ac_header>
54127 _ACEOF
54128 rm -f conftest.$ac_objext
54129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54130 (eval $ac_compile) 2>&5
54131 ac_status=$?
54132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54133 (exit $ac_status); } &&
54134 { ac_try='test -s conftest.$ac_objext'
54135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54136 (eval $ac_try) 2>&5
54137 ac_status=$?
54138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54139 (exit $ac_status); }; }; then
54140 ac_header_compiler=yes
54141 else
54142 echo "$as_me: failed program was:" >&5
54143 sed 's/^/| /' conftest.$ac_ext >&5
54145 ac_header_compiler=no
54147 rm -f conftest.$ac_objext conftest.$ac_ext
54148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54149 echo "${ECHO_T}$ac_header_compiler" >&6
54151 # Is the header present?
54152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54154 cat >conftest.$ac_ext <<_ACEOF
54155 #line $LINENO "configure"
54156 /* confdefs.h. */
54157 _ACEOF
54158 cat confdefs.h >>conftest.$ac_ext
54159 cat >>conftest.$ac_ext <<_ACEOF
54160 /* end confdefs.h. */
54161 #include <$ac_header>
54162 _ACEOF
54163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54165 ac_status=$?
54166 grep -v '^ *+' conftest.er1 >conftest.err
54167 rm -f conftest.er1
54168 cat conftest.err >&5
54169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54170 (exit $ac_status); } >/dev/null; then
54171 if test -s conftest.err; then
54172 ac_cpp_err=$ac_c_preproc_warn_flag
54173 else
54174 ac_cpp_err=
54176 else
54177 ac_cpp_err=yes
54179 if test -z "$ac_cpp_err"; then
54180 ac_header_preproc=yes
54181 else
54182 echo "$as_me: failed program was:" >&5
54183 sed 's/^/| /' conftest.$ac_ext >&5
54185 ac_header_preproc=no
54187 rm -f conftest.err conftest.$ac_ext
54188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54189 echo "${ECHO_T}$ac_header_preproc" >&6
54191 # So? What about this header?
54192 case $ac_header_compiler:$ac_header_preproc in
54193 yes:no )
54194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54199 cat <<\_ASBOX
54200 ## ------------------------------------ ##
54201 ## Report this to bug-autoconf@gnu.org. ##
54202 ## ------------------------------------ ##
54203 _ASBOX
54205 sed "s/^/$as_me: WARNING: /" >&2
54207 no:yes )
54208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54215 cat <<\_ASBOX
54216 ## ------------------------------------ ##
54217 ## Report this to bug-autoconf@gnu.org. ##
54218 ## ------------------------------------ ##
54219 _ASBOX
54221 sed "s/^/$as_me: WARNING: /" >&2
54223 esac
54224 echo "$as_me:$LINENO: checking for $ac_header" >&5
54225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54227 echo $ECHO_N "(cached) $ECHO_C" >&6
54228 else
54229 eval "$as_ac_Header=$ac_header_preproc"
54231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54236 cat >>confdefs.h <<_ACEOF
54237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54238 _ACEOF
54239 ac_has_wctype_h=yes
54240 else
54241 ac_has_wctype_h=no
54244 done
54247 # Only continue checking if the ISO C99 headers exist and support is on.
54248 if test x"$ac_has_wchar_h" = xyes &&
54249 test x"$ac_has_wctype_h" = xyes &&
54250 test x"$enable_c_mbchar" != xno; then
54252 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54253 # numeric_limits can instantiate type_traits<wchar_t>
54254 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54255 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54256 cat >conftest.$ac_ext <<_ACEOF
54257 #line $LINENO "configure"
54258 /* confdefs.h. */
54259 _ACEOF
54260 cat confdefs.h >>conftest.$ac_ext
54261 cat >>conftest.$ac_ext <<_ACEOF
54262 /* end confdefs.h. */
54263 #include <wchar.h>
54265 main ()
54267 int i = WCHAR_MIN; int j = WCHAR_MAX;
54269 return 0;
54271 _ACEOF
54272 rm -f conftest.$ac_objext
54273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54274 (eval $ac_compile) 2>&5
54275 ac_status=$?
54276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54277 (exit $ac_status); } &&
54278 { ac_try='test -s conftest.$ac_objext'
54279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54280 (eval $ac_try) 2>&5
54281 ac_status=$?
54282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54283 (exit $ac_status); }; }; then
54284 has_wchar_minmax=yes
54285 else
54286 echo "$as_me: failed program was:" >&5
54287 sed 's/^/| /' conftest.$ac_ext >&5
54289 has_wchar_minmax=no
54291 rm -f conftest.$ac_objext conftest.$ac_ext
54292 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54293 echo "${ECHO_T}$has_wchar_minmax" >&6
54295 # Test wchar.h for WEOF, which is what we use to determine whether
54296 # to specialize for char_traits<wchar_t> or not.
54297 echo "$as_me:$LINENO: checking for WEOF" >&5
54298 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54299 cat >conftest.$ac_ext <<_ACEOF
54300 #line $LINENO "configure"
54301 /* confdefs.h. */
54302 _ACEOF
54303 cat confdefs.h >>conftest.$ac_ext
54304 cat >>conftest.$ac_ext <<_ACEOF
54305 /* end confdefs.h. */
54307 #include <wchar.h>
54308 #include <stddef.h>
54310 main ()
54312 wint_t i = WEOF;
54314 return 0;
54316 _ACEOF
54317 rm -f conftest.$ac_objext
54318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54319 (eval $ac_compile) 2>&5
54320 ac_status=$?
54321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54322 (exit $ac_status); } &&
54323 { ac_try='test -s conftest.$ac_objext'
54324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54325 (eval $ac_try) 2>&5
54326 ac_status=$?
54327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54328 (exit $ac_status); }; }; then
54329 has_weof=yes
54330 else
54331 echo "$as_me: failed program was:" >&5
54332 sed 's/^/| /' conftest.$ac_ext >&5
54334 has_weof=no
54336 rm -f conftest.$ac_objext conftest.$ac_ext
54337 echo "$as_me:$LINENO: result: $has_weof" >&5
54338 echo "${ECHO_T}$has_weof" >&6
54340 # Tests for wide character functions used in char_traits<wchar_t>.
54341 ac_wfuncs=yes
54348 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54351 echo "$as_me:$LINENO: checking for $ac_func" >&5
54352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54353 if eval "test \"\${$as_ac_var+set}\" = set"; then
54354 echo $ECHO_N "(cached) $ECHO_C" >&6
54355 else
54356 if test x$gcc_no_link = xyes; then
54357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54359 { (exit 1); exit 1; }; }
54361 cat >conftest.$ac_ext <<_ACEOF
54362 #line $LINENO "configure"
54363 /* confdefs.h. */
54364 _ACEOF
54365 cat confdefs.h >>conftest.$ac_ext
54366 cat >>conftest.$ac_ext <<_ACEOF
54367 /* end confdefs.h. */
54368 /* System header to define __stub macros and hopefully few prototypes,
54369 which can conflict with char $ac_func (); below.
54370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54371 <limits.h> exists even on freestanding compilers. */
54372 #ifdef __STDC__
54373 # include <limits.h>
54374 #else
54375 # include <assert.h>
54376 #endif
54377 /* Override any gcc2 internal prototype to avoid an error. */
54378 #ifdef __cplusplus
54379 extern "C"
54381 #endif
54382 /* We use char because int might match the return type of a gcc2
54383 builtin and then its argument prototype would still apply. */
54384 char $ac_func ();
54385 /* The GNU C library defines this for functions which it implements
54386 to always fail with ENOSYS. Some functions are actually named
54387 something starting with __ and the normal name is an alias. */
54388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54389 choke me
54390 #else
54391 char (*f) () = $ac_func;
54392 #endif
54393 #ifdef __cplusplus
54395 #endif
54398 main ()
54400 return f != $ac_func;
54402 return 0;
54404 _ACEOF
54405 rm -f conftest.$ac_objext conftest$ac_exeext
54406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54407 (eval $ac_link) 2>&5
54408 ac_status=$?
54409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54410 (exit $ac_status); } &&
54411 { ac_try='test -s conftest$ac_exeext'
54412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54413 (eval $ac_try) 2>&5
54414 ac_status=$?
54415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54416 (exit $ac_status); }; }; then
54417 eval "$as_ac_var=yes"
54418 else
54419 echo "$as_me: failed program was:" >&5
54420 sed 's/^/| /' conftest.$ac_ext >&5
54422 eval "$as_ac_var=no"
54424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54428 if test `eval echo '${'$as_ac_var'}'` = yes; then
54429 cat >>confdefs.h <<_ACEOF
54430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54431 _ACEOF
54433 else
54434 ac_wfuncs=no
54436 done
54439 # Checks for names injected into std:: by the c_std headers.
54486 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54487 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54488 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54489 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54490 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54491 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54494 echo "$as_me:$LINENO: checking for $ac_func" >&5
54495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54496 if eval "test \"\${$as_ac_var+set}\" = set"; then
54497 echo $ECHO_N "(cached) $ECHO_C" >&6
54498 else
54499 if test x$gcc_no_link = xyes; then
54500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54502 { (exit 1); exit 1; }; }
54504 cat >conftest.$ac_ext <<_ACEOF
54505 #line $LINENO "configure"
54506 /* confdefs.h. */
54507 _ACEOF
54508 cat confdefs.h >>conftest.$ac_ext
54509 cat >>conftest.$ac_ext <<_ACEOF
54510 /* end confdefs.h. */
54511 /* System header to define __stub macros and hopefully few prototypes,
54512 which can conflict with char $ac_func (); below.
54513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54514 <limits.h> exists even on freestanding compilers. */
54515 #ifdef __STDC__
54516 # include <limits.h>
54517 #else
54518 # include <assert.h>
54519 #endif
54520 /* Override any gcc2 internal prototype to avoid an error. */
54521 #ifdef __cplusplus
54522 extern "C"
54524 #endif
54525 /* We use char because int might match the return type of a gcc2
54526 builtin and then its argument prototype would still apply. */
54527 char $ac_func ();
54528 /* The GNU C library defines this for functions which it implements
54529 to always fail with ENOSYS. Some functions are actually named
54530 something starting with __ and the normal name is an alias. */
54531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54532 choke me
54533 #else
54534 char (*f) () = $ac_func;
54535 #endif
54536 #ifdef __cplusplus
54538 #endif
54541 main ()
54543 return f != $ac_func;
54545 return 0;
54547 _ACEOF
54548 rm -f conftest.$ac_objext conftest$ac_exeext
54549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54550 (eval $ac_link) 2>&5
54551 ac_status=$?
54552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54553 (exit $ac_status); } &&
54554 { ac_try='test -s conftest$ac_exeext'
54555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54556 (eval $ac_try) 2>&5
54557 ac_status=$?
54558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54559 (exit $ac_status); }; }; then
54560 eval "$as_ac_var=yes"
54561 else
54562 echo "$as_me: failed program was:" >&5
54563 sed 's/^/| /' conftest.$ac_ext >&5
54565 eval "$as_ac_var=no"
54567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54571 if test `eval echo '${'$as_ac_var'}'` = yes; then
54572 cat >>confdefs.h <<_ACEOF
54573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54574 _ACEOF
54576 else
54577 ac_wfuncs=no
54579 done
54582 # Checks for wide character functions that are not required
54583 # for basic wchar_t support. Don't disable support if they are missing.
54584 # Injection of these is wrapped with guard macros.
54590 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
54592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54593 echo "$as_me:$LINENO: checking for $ac_func" >&5
54594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54595 if eval "test \"\${$as_ac_var+set}\" = set"; then
54596 echo $ECHO_N "(cached) $ECHO_C" >&6
54597 else
54598 if test x$gcc_no_link = xyes; then
54599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54601 { (exit 1); exit 1; }; }
54603 cat >conftest.$ac_ext <<_ACEOF
54604 #line $LINENO "configure"
54605 /* confdefs.h. */
54606 _ACEOF
54607 cat confdefs.h >>conftest.$ac_ext
54608 cat >>conftest.$ac_ext <<_ACEOF
54609 /* end confdefs.h. */
54610 /* System header to define __stub macros and hopefully few prototypes,
54611 which can conflict with char $ac_func (); below.
54612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54613 <limits.h> exists even on freestanding compilers. */
54614 #ifdef __STDC__
54615 # include <limits.h>
54616 #else
54617 # include <assert.h>
54618 #endif
54619 /* Override any gcc2 internal prototype to avoid an error. */
54620 #ifdef __cplusplus
54621 extern "C"
54623 #endif
54624 /* We use char because int might match the return type of a gcc2
54625 builtin and then its argument prototype would still apply. */
54626 char $ac_func ();
54627 /* The GNU C library defines this for functions which it implements
54628 to always fail with ENOSYS. Some functions are actually named
54629 something starting with __ and the normal name is an alias. */
54630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54631 choke me
54632 #else
54633 char (*f) () = $ac_func;
54634 #endif
54635 #ifdef __cplusplus
54637 #endif
54640 main ()
54642 return f != $ac_func;
54644 return 0;
54646 _ACEOF
54647 rm -f conftest.$ac_objext conftest$ac_exeext
54648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54649 (eval $ac_link) 2>&5
54650 ac_status=$?
54651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54652 (exit $ac_status); } &&
54653 { ac_try='test -s conftest$ac_exeext'
54654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54655 (eval $ac_try) 2>&5
54656 ac_status=$?
54657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54658 (exit $ac_status); }; }; then
54659 eval "$as_ac_var=yes"
54660 else
54661 echo "$as_me: failed program was:" >&5
54662 sed 's/^/| /' conftest.$ac_ext >&5
54664 eval "$as_ac_var=no"
54666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54670 if test `eval echo '${'$as_ac_var'}'` = yes; then
54671 cat >>confdefs.h <<_ACEOF
54672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54673 _ACEOF
54676 done
54679 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
54680 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
54681 if test x"$has_weof" = xyes &&
54682 test x"$has_wchar_minmax" = xyes &&
54683 test x"$ac_wfuncs" = xyes;
54684 then
54685 ac_isoC99_wchar_t=yes
54686 else
54687 ac_isoC99_wchar_t=no
54689 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
54690 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
54692 # Use iconv for wchar_t to char conversions. As such, check for
54693 # X/Open Portability Guide, version 2 features (XPG2).
54694 if test "${ac_cv_header_iconv_h+set}" = set; then
54695 echo "$as_me:$LINENO: checking for iconv.h" >&5
54696 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54697 if test "${ac_cv_header_iconv_h+set}" = set; then
54698 echo $ECHO_N "(cached) $ECHO_C" >&6
54700 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54701 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54702 else
54703 # Is the header compilable?
54704 echo "$as_me:$LINENO: checking iconv.h usability" >&5
54705 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
54706 cat >conftest.$ac_ext <<_ACEOF
54707 #line $LINENO "configure"
54708 /* confdefs.h. */
54709 _ACEOF
54710 cat confdefs.h >>conftest.$ac_ext
54711 cat >>conftest.$ac_ext <<_ACEOF
54712 /* end confdefs.h. */
54713 $ac_includes_default
54714 #include <iconv.h>
54715 _ACEOF
54716 rm -f conftest.$ac_objext
54717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54718 (eval $ac_compile) 2>&5
54719 ac_status=$?
54720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54721 (exit $ac_status); } &&
54722 { ac_try='test -s conftest.$ac_objext'
54723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54724 (eval $ac_try) 2>&5
54725 ac_status=$?
54726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54727 (exit $ac_status); }; }; then
54728 ac_header_compiler=yes
54729 else
54730 echo "$as_me: failed program was:" >&5
54731 sed 's/^/| /' conftest.$ac_ext >&5
54733 ac_header_compiler=no
54735 rm -f conftest.$ac_objext conftest.$ac_ext
54736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54737 echo "${ECHO_T}$ac_header_compiler" >&6
54739 # Is the header present?
54740 echo "$as_me:$LINENO: checking iconv.h presence" >&5
54741 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
54742 cat >conftest.$ac_ext <<_ACEOF
54743 #line $LINENO "configure"
54744 /* confdefs.h. */
54745 _ACEOF
54746 cat confdefs.h >>conftest.$ac_ext
54747 cat >>conftest.$ac_ext <<_ACEOF
54748 /* end confdefs.h. */
54749 #include <iconv.h>
54750 _ACEOF
54751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54753 ac_status=$?
54754 grep -v '^ *+' conftest.er1 >conftest.err
54755 rm -f conftest.er1
54756 cat conftest.err >&5
54757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54758 (exit $ac_status); } >/dev/null; then
54759 if test -s conftest.err; then
54760 ac_cpp_err=$ac_c_preproc_warn_flag
54761 else
54762 ac_cpp_err=
54764 else
54765 ac_cpp_err=yes
54767 if test -z "$ac_cpp_err"; then
54768 ac_header_preproc=yes
54769 else
54770 echo "$as_me: failed program was:" >&5
54771 sed 's/^/| /' conftest.$ac_ext >&5
54773 ac_header_preproc=no
54775 rm -f conftest.err conftest.$ac_ext
54776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54777 echo "${ECHO_T}$ac_header_preproc" >&6
54779 # So? What about this header?
54780 case $ac_header_compiler:$ac_header_preproc in
54781 yes:no )
54782 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
54783 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54784 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
54785 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
54787 cat <<\_ASBOX
54788 ## ------------------------------------ ##
54789 ## Report this to bug-autoconf@gnu.org. ##
54790 ## ------------------------------------ ##
54791 _ASBOX
54793 sed "s/^/$as_me: WARNING: /" >&2
54795 no:yes )
54796 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
54797 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
54798 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
54799 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
54800 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
54801 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
54803 cat <<\_ASBOX
54804 ## ------------------------------------ ##
54805 ## Report this to bug-autoconf@gnu.org. ##
54806 ## ------------------------------------ ##
54807 _ASBOX
54809 sed "s/^/$as_me: WARNING: /" >&2
54811 esac
54812 echo "$as_me:$LINENO: checking for iconv.h" >&5
54813 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54814 if test "${ac_cv_header_iconv_h+set}" = set; then
54815 echo $ECHO_N "(cached) $ECHO_C" >&6
54816 else
54817 ac_cv_header_iconv_h=$ac_header_preproc
54819 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54820 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54823 if test $ac_cv_header_iconv_h = yes; then
54824 ac_has_iconv_h=yes
54825 else
54826 ac_has_iconv_h=no
54830 if test "${ac_cv_header_langinfo_h+set}" = set; then
54831 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54832 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54833 if test "${ac_cv_header_langinfo_h+set}" = set; then
54834 echo $ECHO_N "(cached) $ECHO_C" >&6
54836 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54837 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54838 else
54839 # Is the header compilable?
54840 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
54841 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
54842 cat >conftest.$ac_ext <<_ACEOF
54843 #line $LINENO "configure"
54844 /* confdefs.h. */
54845 _ACEOF
54846 cat confdefs.h >>conftest.$ac_ext
54847 cat >>conftest.$ac_ext <<_ACEOF
54848 /* end confdefs.h. */
54849 $ac_includes_default
54850 #include <langinfo.h>
54851 _ACEOF
54852 rm -f conftest.$ac_objext
54853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54854 (eval $ac_compile) 2>&5
54855 ac_status=$?
54856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54857 (exit $ac_status); } &&
54858 { ac_try='test -s conftest.$ac_objext'
54859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54860 (eval $ac_try) 2>&5
54861 ac_status=$?
54862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54863 (exit $ac_status); }; }; then
54864 ac_header_compiler=yes
54865 else
54866 echo "$as_me: failed program was:" >&5
54867 sed 's/^/| /' conftest.$ac_ext >&5
54869 ac_header_compiler=no
54871 rm -f conftest.$ac_objext conftest.$ac_ext
54872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54873 echo "${ECHO_T}$ac_header_compiler" >&6
54875 # Is the header present?
54876 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
54877 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
54878 cat >conftest.$ac_ext <<_ACEOF
54879 #line $LINENO "configure"
54880 /* confdefs.h. */
54881 _ACEOF
54882 cat confdefs.h >>conftest.$ac_ext
54883 cat >>conftest.$ac_ext <<_ACEOF
54884 /* end confdefs.h. */
54885 #include <langinfo.h>
54886 _ACEOF
54887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54889 ac_status=$?
54890 grep -v '^ *+' conftest.er1 >conftest.err
54891 rm -f conftest.er1
54892 cat conftest.err >&5
54893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54894 (exit $ac_status); } >/dev/null; then
54895 if test -s conftest.err; then
54896 ac_cpp_err=$ac_c_preproc_warn_flag
54897 else
54898 ac_cpp_err=
54900 else
54901 ac_cpp_err=yes
54903 if test -z "$ac_cpp_err"; then
54904 ac_header_preproc=yes
54905 else
54906 echo "$as_me: failed program was:" >&5
54907 sed 's/^/| /' conftest.$ac_ext >&5
54909 ac_header_preproc=no
54911 rm -f conftest.err conftest.$ac_ext
54912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54913 echo "${ECHO_T}$ac_header_preproc" >&6
54915 # So? What about this header?
54916 case $ac_header_compiler:$ac_header_preproc in
54917 yes:no )
54918 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54919 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54920 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54921 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54923 cat <<\_ASBOX
54924 ## ------------------------------------ ##
54925 ## Report this to bug-autoconf@gnu.org. ##
54926 ## ------------------------------------ ##
54927 _ASBOX
54929 sed "s/^/$as_me: WARNING: /" >&2
54931 no:yes )
54932 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
54933 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
54934 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
54935 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
54936 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54937 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54939 cat <<\_ASBOX
54940 ## ------------------------------------ ##
54941 ## Report this to bug-autoconf@gnu.org. ##
54942 ## ------------------------------------ ##
54943 _ASBOX
54945 sed "s/^/$as_me: WARNING: /" >&2
54947 esac
54948 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54949 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54950 if test "${ac_cv_header_langinfo_h+set}" = set; then
54951 echo $ECHO_N "(cached) $ECHO_C" >&6
54952 else
54953 ac_cv_header_langinfo_h=$ac_header_preproc
54955 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54956 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54959 if test $ac_cv_header_langinfo_h = yes; then
54960 ac_has_langinfo_h=yes
54961 else
54962 ac_has_langinfo_h=no
54967 # Check for existence of libiconv.a providing XPG2 wchar_t support.
54968 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
54969 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
54970 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
54971 echo $ECHO_N "(cached) $ECHO_C" >&6
54972 else
54973 ac_check_lib_save_LIBS=$LIBS
54974 LIBS="-liconv $LIBS"
54975 if test x$gcc_no_link = xyes; then
54976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54978 { (exit 1); exit 1; }; }
54980 cat >conftest.$ac_ext <<_ACEOF
54981 #line $LINENO "configure"
54982 /* confdefs.h. */
54983 _ACEOF
54984 cat confdefs.h >>conftest.$ac_ext
54985 cat >>conftest.$ac_ext <<_ACEOF
54986 /* end confdefs.h. */
54988 /* Override any gcc2 internal prototype to avoid an error. */
54989 #ifdef __cplusplus
54990 extern "C"
54991 #endif
54992 /* We use char because int might match the return type of a gcc2
54993 builtin and then its argument prototype would still apply. */
54994 char iconv ();
54996 main ()
54998 iconv ();
55000 return 0;
55002 _ACEOF
55003 rm -f conftest.$ac_objext conftest$ac_exeext
55004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55005 (eval $ac_link) 2>&5
55006 ac_status=$?
55007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55008 (exit $ac_status); } &&
55009 { ac_try='test -s conftest$ac_exeext'
55010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55011 (eval $ac_try) 2>&5
55012 ac_status=$?
55013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55014 (exit $ac_status); }; }; then
55015 ac_cv_lib_iconv_iconv=yes
55016 else
55017 echo "$as_me: failed program was:" >&5
55018 sed 's/^/| /' conftest.$ac_ext >&5
55020 ac_cv_lib_iconv_iconv=no
55022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55023 LIBS=$ac_check_lib_save_LIBS
55025 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55026 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55027 if test $ac_cv_lib_iconv_iconv = yes; then
55028 libiconv="-liconv"
55031 ac_save_LIBS="$LIBS"
55032 LIBS="$LIBS $libiconv"
55038 for ac_func in iconv_open iconv_close iconv nl_langinfo
55040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55041 echo "$as_me:$LINENO: checking for $ac_func" >&5
55042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55043 if eval "test \"\${$as_ac_var+set}\" = set"; then
55044 echo $ECHO_N "(cached) $ECHO_C" >&6
55045 else
55046 if test x$gcc_no_link = xyes; then
55047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55049 { (exit 1); exit 1; }; }
55051 cat >conftest.$ac_ext <<_ACEOF
55052 #line $LINENO "configure"
55053 /* confdefs.h. */
55054 _ACEOF
55055 cat confdefs.h >>conftest.$ac_ext
55056 cat >>conftest.$ac_ext <<_ACEOF
55057 /* end confdefs.h. */
55058 /* System header to define __stub macros and hopefully few prototypes,
55059 which can conflict with char $ac_func (); below.
55060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55061 <limits.h> exists even on freestanding compilers. */
55062 #ifdef __STDC__
55063 # include <limits.h>
55064 #else
55065 # include <assert.h>
55066 #endif
55067 /* Override any gcc2 internal prototype to avoid an error. */
55068 #ifdef __cplusplus
55069 extern "C"
55071 #endif
55072 /* We use char because int might match the return type of a gcc2
55073 builtin and then its argument prototype would still apply. */
55074 char $ac_func ();
55075 /* The GNU C library defines this for functions which it implements
55076 to always fail with ENOSYS. Some functions are actually named
55077 something starting with __ and the normal name is an alias. */
55078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55079 choke me
55080 #else
55081 char (*f) () = $ac_func;
55082 #endif
55083 #ifdef __cplusplus
55085 #endif
55088 main ()
55090 return f != $ac_func;
55092 return 0;
55094 _ACEOF
55095 rm -f conftest.$ac_objext conftest$ac_exeext
55096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55097 (eval $ac_link) 2>&5
55098 ac_status=$?
55099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55100 (exit $ac_status); } &&
55101 { ac_try='test -s conftest$ac_exeext'
55102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55103 (eval $ac_try) 2>&5
55104 ac_status=$?
55105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55106 (exit $ac_status); }; }; then
55107 eval "$as_ac_var=yes"
55108 else
55109 echo "$as_me: failed program was:" >&5
55110 sed 's/^/| /' conftest.$ac_ext >&5
55112 eval "$as_ac_var=no"
55114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55118 if test `eval echo '${'$as_ac_var'}'` = yes; then
55119 cat >>confdefs.h <<_ACEOF
55120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55121 _ACEOF
55122 ac_XPG2funcs=yes
55123 else
55124 ac_XPG2funcs=no
55126 done
55129 LIBS="$ac_save_LIBS"
55131 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55132 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55133 if test x"$ac_has_iconv_h" = xyes &&
55134 test x"$ac_has_langinfo_h" = xyes &&
55135 test x"$ac_XPG2funcs" = xyes;
55136 then
55137 ac_XPG2_wchar_t=yes
55138 else
55139 ac_XPG2_wchar_t=no
55141 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55142 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55144 # At the moment, only enable wchar_t specializations if all the
55145 # above support is present.
55146 if test x"$ac_isoC99_wchar_t" = xyes &&
55147 test x"$ac_XPG2_wchar_t" = xyes;
55148 then
55149 cat >>confdefs.h <<\_ACEOF
55150 #define _GLIBCXX_USE_WCHAR_T 1
55151 _ACEOF
55153 enable_wchar_t=yes
55156 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55157 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55158 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55159 echo "${ECHO_T}$enable_wchar_t" >&6
55162 *-netbsd*)
55175 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55176 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55177 fp.h locale.h float.h inttypes.h
55179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55181 echo "$as_me:$LINENO: checking for $ac_header" >&5
55182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55184 echo $ECHO_N "(cached) $ECHO_C" >&6
55186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55188 else
55189 # Is the header compilable?
55190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55192 cat >conftest.$ac_ext <<_ACEOF
55193 #line $LINENO "configure"
55194 /* confdefs.h. */
55195 _ACEOF
55196 cat confdefs.h >>conftest.$ac_ext
55197 cat >>conftest.$ac_ext <<_ACEOF
55198 /* end confdefs.h. */
55199 $ac_includes_default
55200 #include <$ac_header>
55201 _ACEOF
55202 rm -f conftest.$ac_objext
55203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55204 (eval $ac_compile) 2>&5
55205 ac_status=$?
55206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55207 (exit $ac_status); } &&
55208 { ac_try='test -s conftest.$ac_objext'
55209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55210 (eval $ac_try) 2>&5
55211 ac_status=$?
55212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55213 (exit $ac_status); }; }; then
55214 ac_header_compiler=yes
55215 else
55216 echo "$as_me: failed program was:" >&5
55217 sed 's/^/| /' conftest.$ac_ext >&5
55219 ac_header_compiler=no
55221 rm -f conftest.$ac_objext conftest.$ac_ext
55222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55223 echo "${ECHO_T}$ac_header_compiler" >&6
55225 # Is the header present?
55226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55228 cat >conftest.$ac_ext <<_ACEOF
55229 #line $LINENO "configure"
55230 /* confdefs.h. */
55231 _ACEOF
55232 cat confdefs.h >>conftest.$ac_ext
55233 cat >>conftest.$ac_ext <<_ACEOF
55234 /* end confdefs.h. */
55235 #include <$ac_header>
55236 _ACEOF
55237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55239 ac_status=$?
55240 grep -v '^ *+' conftest.er1 >conftest.err
55241 rm -f conftest.er1
55242 cat conftest.err >&5
55243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55244 (exit $ac_status); } >/dev/null; then
55245 if test -s conftest.err; then
55246 ac_cpp_err=$ac_c_preproc_warn_flag
55247 else
55248 ac_cpp_err=
55250 else
55251 ac_cpp_err=yes
55253 if test -z "$ac_cpp_err"; then
55254 ac_header_preproc=yes
55255 else
55256 echo "$as_me: failed program was:" >&5
55257 sed 's/^/| /' conftest.$ac_ext >&5
55259 ac_header_preproc=no
55261 rm -f conftest.err conftest.$ac_ext
55262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55263 echo "${ECHO_T}$ac_header_preproc" >&6
55265 # So? What about this header?
55266 case $ac_header_compiler:$ac_header_preproc in
55267 yes:no )
55268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55273 cat <<\_ASBOX
55274 ## ------------------------------------ ##
55275 ## Report this to bug-autoconf@gnu.org. ##
55276 ## ------------------------------------ ##
55277 _ASBOX
55279 sed "s/^/$as_me: WARNING: /" >&2
55281 no:yes )
55282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55289 cat <<\_ASBOX
55290 ## ------------------------------------ ##
55291 ## Report this to bug-autoconf@gnu.org. ##
55292 ## ------------------------------------ ##
55293 _ASBOX
55295 sed "s/^/$as_me: WARNING: /" >&2
55297 esac
55298 echo "$as_me:$LINENO: checking for $ac_header" >&5
55299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55301 echo $ECHO_N "(cached) $ECHO_C" >&6
55302 else
55303 eval "$as_ac_Header=$ac_header_preproc"
55305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55310 cat >>confdefs.h <<_ACEOF
55311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55312 _ACEOF
55316 done
55318 SECTION_FLAGS='-ffunction-sections -fdata-sections'
55321 # If we're not using GNU ld, then there's no point in even trying these
55322 # tests. Check for that first. We should have already tested for gld
55323 # by now (in libtool), but require it now just to be safe...
55324 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55325 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55329 # The name set by libtool depends on the version of libtool. Shame on us
55330 # for depending on an impl detail, but c'est la vie. Older versions used
55331 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55332 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55333 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
55334 # set (hence we're using an older libtool), then set it.
55335 if test x${with_gnu_ld+set} != xset; then
55336 if test x${ac_cv_prog_gnu_ld+set} != xset; then
55337 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
55338 with_gnu_ld=no
55339 else
55340 with_gnu_ld=$ac_cv_prog_gnu_ld
55344 # Start by getting the version number. I think the libtool test already
55345 # does some of this, but throws away the result.
55347 ldver=`$LD --version 2>/dev/null | head -1 | \
55348 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
55350 glibcxx_gnu_ld_version=`echo $ldver | \
55351 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
55353 # Set --gc-sections.
55354 if test "$with_gnu_ld" = "notbroken"; then
55355 # GNU ld it is! Joy and bunny rabbits!
55357 # All these tests are for C++; save the language and the compiler flags.
55358 # Need to do this so that g++ won't try to link in libstdc++
55359 ac_test_CFLAGS="${CFLAGS+set}"
55360 ac_save_CFLAGS="$CFLAGS"
55361 CFLAGS='-x c++ -Wl,--gc-sections'
55363 # Check for -Wl,--gc-sections
55364 # XXX This test is broken at the moment, as symbols required for linking
55365 # are now in libsupc++ (not built yet). In addition, this test has
55366 # cored on solaris in the past. In addition, --gc-sections doesn't
55367 # really work at the moment (keeps on discarding used sections, first
55368 # .eh_frame and now some of the glibc sections for iconv).
55369 # Bzzzzt. Thanks for playing, maybe next time.
55370 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
55371 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
55372 if test "$cross_compiling" = yes; then
55373 ac_sectionLDflags=yes
55374 else
55375 cat >conftest.$ac_ext <<_ACEOF
55376 #line $LINENO "configure"
55377 /* confdefs.h. */
55378 _ACEOF
55379 cat confdefs.h >>conftest.$ac_ext
55380 cat >>conftest.$ac_ext <<_ACEOF
55381 /* end confdefs.h. */
55383 int main(void)
55385 try { throw 1; }
55386 catch (...) { };
55387 return 0;
55390 _ACEOF
55391 rm -f conftest$ac_exeext
55392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55393 (eval $ac_link) 2>&5
55394 ac_status=$?
55395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55398 (eval $ac_try) 2>&5
55399 ac_status=$?
55400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55401 (exit $ac_status); }; }; then
55402 ac_sectionLDflags=yes
55403 else
55404 echo "$as_me: program exited with status $ac_status" >&5
55405 echo "$as_me: failed program was:" >&5
55406 sed 's/^/| /' conftest.$ac_ext >&5
55408 ( exit $ac_status )
55409 ac_sectionLDflags=no
55411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55413 if test "$ac_test_CFLAGS" = set; then
55414 CFLAGS="$ac_save_CFLAGS"
55415 else
55416 # this is the suspicious part
55417 CFLAGS=''
55419 if test "$ac_sectionLDflags" = "yes"; then
55420 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
55422 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
55423 echo "${ECHO_T}$ac_sectionLDflags" >&6
55426 # Set linker optimization flags.
55427 if test x"$with_gnu_ld" = x"yes"; then
55428 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
55436 echo "$as_me:$LINENO: checking for main in -lm" >&5
55437 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
55438 if test "${ac_cv_lib_m_main+set}" = set; then
55439 echo $ECHO_N "(cached) $ECHO_C" >&6
55440 else
55441 ac_check_lib_save_LIBS=$LIBS
55442 LIBS="-lm $LIBS"
55443 if test x$gcc_no_link = xyes; then
55444 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55445 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55446 { (exit 1); exit 1; }; }
55448 cat >conftest.$ac_ext <<_ACEOF
55449 #line $LINENO "configure"
55450 /* confdefs.h. */
55451 _ACEOF
55452 cat confdefs.h >>conftest.$ac_ext
55453 cat >>conftest.$ac_ext <<_ACEOF
55454 /* end confdefs.h. */
55458 main ()
55460 main ();
55462 return 0;
55464 _ACEOF
55465 rm -f conftest.$ac_objext conftest$ac_exeext
55466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55467 (eval $ac_link) 2>&5
55468 ac_status=$?
55469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55470 (exit $ac_status); } &&
55471 { ac_try='test -s conftest$ac_exeext'
55472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55473 (eval $ac_try) 2>&5
55474 ac_status=$?
55475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55476 (exit $ac_status); }; }; then
55477 ac_cv_lib_m_main=yes
55478 else
55479 echo "$as_me: failed program was:" >&5
55480 sed 's/^/| /' conftest.$ac_ext >&5
55482 ac_cv_lib_m_main=no
55484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55485 LIBS=$ac_check_lib_save_LIBS
55487 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
55488 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
55489 if test $ac_cv_lib_m_main = yes; then
55490 cat >>confdefs.h <<_ACEOF
55491 #define HAVE_LIBM 1
55492 _ACEOF
55494 LIBS="-lm $LIBS"
55500 for ac_func in nan copysignf
55502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55503 echo "$as_me:$LINENO: checking for $ac_func" >&5
55504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55505 if eval "test \"\${$as_ac_var+set}\" = set"; then
55506 echo $ECHO_N "(cached) $ECHO_C" >&6
55507 else
55508 if test x$gcc_no_link = xyes; then
55509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55511 { (exit 1); exit 1; }; }
55513 cat >conftest.$ac_ext <<_ACEOF
55514 #line $LINENO "configure"
55515 /* confdefs.h. */
55516 _ACEOF
55517 cat confdefs.h >>conftest.$ac_ext
55518 cat >>conftest.$ac_ext <<_ACEOF
55519 /* end confdefs.h. */
55520 /* System header to define __stub macros and hopefully few prototypes,
55521 which can conflict with char $ac_func (); below.
55522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55523 <limits.h> exists even on freestanding compilers. */
55524 #ifdef __STDC__
55525 # include <limits.h>
55526 #else
55527 # include <assert.h>
55528 #endif
55529 /* Override any gcc2 internal prototype to avoid an error. */
55530 #ifdef __cplusplus
55531 extern "C"
55533 #endif
55534 /* We use char because int might match the return type of a gcc2
55535 builtin and then its argument prototype would still apply. */
55536 char $ac_func ();
55537 /* The GNU C library defines this for functions which it implements
55538 to always fail with ENOSYS. Some functions are actually named
55539 something starting with __ and the normal name is an alias. */
55540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55541 choke me
55542 #else
55543 char (*f) () = $ac_func;
55544 #endif
55545 #ifdef __cplusplus
55547 #endif
55550 main ()
55552 return f != $ac_func;
55554 return 0;
55556 _ACEOF
55557 rm -f conftest.$ac_objext conftest$ac_exeext
55558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55559 (eval $ac_link) 2>&5
55560 ac_status=$?
55561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55562 (exit $ac_status); } &&
55563 { ac_try='test -s conftest$ac_exeext'
55564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55565 (eval $ac_try) 2>&5
55566 ac_status=$?
55567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55568 (exit $ac_status); }; }; then
55569 eval "$as_ac_var=yes"
55570 else
55571 echo "$as_me: failed program was:" >&5
55572 sed 's/^/| /' conftest.$ac_ext >&5
55574 eval "$as_ac_var=no"
55576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55580 if test `eval echo '${'$as_ac_var'}'` = yes; then
55581 cat >>confdefs.h <<_ACEOF
55582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55583 _ACEOF
55585 else
55586 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
55588 done
55592 for ac_func in __signbit
55594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55595 echo "$as_me:$LINENO: checking for $ac_func" >&5
55596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55597 if eval "test \"\${$as_ac_var+set}\" = set"; then
55598 echo $ECHO_N "(cached) $ECHO_C" >&6
55599 else
55600 if test x$gcc_no_link = xyes; then
55601 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55602 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55603 { (exit 1); exit 1; }; }
55605 cat >conftest.$ac_ext <<_ACEOF
55606 #line $LINENO "configure"
55607 /* confdefs.h. */
55608 _ACEOF
55609 cat confdefs.h >>conftest.$ac_ext
55610 cat >>conftest.$ac_ext <<_ACEOF
55611 /* end confdefs.h. */
55612 /* System header to define __stub macros and hopefully few prototypes,
55613 which can conflict with char $ac_func (); below.
55614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55615 <limits.h> exists even on freestanding compilers. */
55616 #ifdef __STDC__
55617 # include <limits.h>
55618 #else
55619 # include <assert.h>
55620 #endif
55621 /* Override any gcc2 internal prototype to avoid an error. */
55622 #ifdef __cplusplus
55623 extern "C"
55625 #endif
55626 /* We use char because int might match the return type of a gcc2
55627 builtin and then its argument prototype would still apply. */
55628 char $ac_func ();
55629 /* The GNU C library defines this for functions which it implements
55630 to always fail with ENOSYS. Some functions are actually named
55631 something starting with __ and the normal name is an alias. */
55632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55633 choke me
55634 #else
55635 char (*f) () = $ac_func;
55636 #endif
55637 #ifdef __cplusplus
55639 #endif
55642 main ()
55644 return f != $ac_func;
55646 return 0;
55648 _ACEOF
55649 rm -f conftest.$ac_objext conftest$ac_exeext
55650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55651 (eval $ac_link) 2>&5
55652 ac_status=$?
55653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55654 (exit $ac_status); } &&
55655 { ac_try='test -s conftest$ac_exeext'
55656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55657 (eval $ac_try) 2>&5
55658 ac_status=$?
55659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55660 (exit $ac_status); }; }; then
55661 eval "$as_ac_var=yes"
55662 else
55663 echo "$as_me: failed program was:" >&5
55664 sed 's/^/| /' conftest.$ac_ext >&5
55666 eval "$as_ac_var=no"
55668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55672 if test `eval echo '${'$as_ac_var'}'` = yes; then
55673 cat >>confdefs.h <<_ACEOF
55674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55675 _ACEOF
55677 else
55678 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
55680 done
55683 for ac_func in __signbitf
55685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55686 echo "$as_me:$LINENO: checking for $ac_func" >&5
55687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55688 if eval "test \"\${$as_ac_var+set}\" = set"; then
55689 echo $ECHO_N "(cached) $ECHO_C" >&6
55690 else
55691 if test x$gcc_no_link = xyes; then
55692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55694 { (exit 1); exit 1; }; }
55696 cat >conftest.$ac_ext <<_ACEOF
55697 #line $LINENO "configure"
55698 /* confdefs.h. */
55699 _ACEOF
55700 cat confdefs.h >>conftest.$ac_ext
55701 cat >>conftest.$ac_ext <<_ACEOF
55702 /* end confdefs.h. */
55703 /* System header to define __stub macros and hopefully few prototypes,
55704 which can conflict with char $ac_func (); below.
55705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55706 <limits.h> exists even on freestanding compilers. */
55707 #ifdef __STDC__
55708 # include <limits.h>
55709 #else
55710 # include <assert.h>
55711 #endif
55712 /* Override any gcc2 internal prototype to avoid an error. */
55713 #ifdef __cplusplus
55714 extern "C"
55716 #endif
55717 /* We use char because int might match the return type of a gcc2
55718 builtin and then its argument prototype would still apply. */
55719 char $ac_func ();
55720 /* The GNU C library defines this for functions which it implements
55721 to always fail with ENOSYS. Some functions are actually named
55722 something starting with __ and the normal name is an alias. */
55723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55724 choke me
55725 #else
55726 char (*f) () = $ac_func;
55727 #endif
55728 #ifdef __cplusplus
55730 #endif
55733 main ()
55735 return f != $ac_func;
55737 return 0;
55739 _ACEOF
55740 rm -f conftest.$ac_objext conftest$ac_exeext
55741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55742 (eval $ac_link) 2>&5
55743 ac_status=$?
55744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55745 (exit $ac_status); } &&
55746 { ac_try='test -s conftest$ac_exeext'
55747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55748 (eval $ac_try) 2>&5
55749 ac_status=$?
55750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55751 (exit $ac_status); }; }; then
55752 eval "$as_ac_var=yes"
55753 else
55754 echo "$as_me: failed program was:" >&5
55755 sed 's/^/| /' conftest.$ac_ext >&5
55757 eval "$as_ac_var=no"
55759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55763 if test `eval echo '${'$as_ac_var'}'` = yes; then
55764 cat >>confdefs.h <<_ACEOF
55765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55766 _ACEOF
55768 else
55769 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
55771 done
55774 if test x$ac_cv_func_copysignl = x"yes"; then
55776 for ac_func in __signbitl
55778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55779 echo "$as_me:$LINENO: checking for $ac_func" >&5
55780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55781 if eval "test \"\${$as_ac_var+set}\" = set"; then
55782 echo $ECHO_N "(cached) $ECHO_C" >&6
55783 else
55784 if test x$gcc_no_link = xyes; then
55785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55787 { (exit 1); exit 1; }; }
55789 cat >conftest.$ac_ext <<_ACEOF
55790 #line $LINENO "configure"
55791 /* confdefs.h. */
55792 _ACEOF
55793 cat confdefs.h >>conftest.$ac_ext
55794 cat >>conftest.$ac_ext <<_ACEOF
55795 /* end confdefs.h. */
55796 /* System header to define __stub macros and hopefully few prototypes,
55797 which can conflict with char $ac_func (); below.
55798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55799 <limits.h> exists even on freestanding compilers. */
55800 #ifdef __STDC__
55801 # include <limits.h>
55802 #else
55803 # include <assert.h>
55804 #endif
55805 /* Override any gcc2 internal prototype to avoid an error. */
55806 #ifdef __cplusplus
55807 extern "C"
55809 #endif
55810 /* We use char because int might match the return type of a gcc2
55811 builtin and then its argument prototype would still apply. */
55812 char $ac_func ();
55813 /* The GNU C library defines this for functions which it implements
55814 to always fail with ENOSYS. Some functions are actually named
55815 something starting with __ and the normal name is an alias. */
55816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55817 choke me
55818 #else
55819 char (*f) () = $ac_func;
55820 #endif
55821 #ifdef __cplusplus
55823 #endif
55826 main ()
55828 return f != $ac_func;
55830 return 0;
55832 _ACEOF
55833 rm -f conftest.$ac_objext conftest$ac_exeext
55834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55835 (eval $ac_link) 2>&5
55836 ac_status=$?
55837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55838 (exit $ac_status); } &&
55839 { ac_try='test -s conftest$ac_exeext'
55840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55841 (eval $ac_try) 2>&5
55842 ac_status=$?
55843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55844 (exit $ac_status); }; }; then
55845 eval "$as_ac_var=yes"
55846 else
55847 echo "$as_me: failed program was:" >&5
55848 sed 's/^/| /' conftest.$ac_ext >&5
55850 eval "$as_ac_var=no"
55852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55856 if test `eval echo '${'$as_ac_var'}'` = yes; then
55857 cat >>confdefs.h <<_ACEOF
55858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55859 _ACEOF
55861 else
55862 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
55864 done
55868 # XXX Review this. Nothing uses it.
55869 if test -n "$LIBMATHOBJS"; then
55870 need_libmath=yes
55875 # Test wchar.h for mbstate_t, which is needed for char_traits and
55876 # others even if wchar_t support is not on.
55877 echo "$as_me:$LINENO: checking for mbstate_t" >&5
55878 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
55879 cat >conftest.$ac_ext <<_ACEOF
55880 #line $LINENO "configure"
55881 /* confdefs.h. */
55882 _ACEOF
55883 cat confdefs.h >>conftest.$ac_ext
55884 cat >>conftest.$ac_ext <<_ACEOF
55885 /* end confdefs.h. */
55886 #include <wchar.h>
55888 main ()
55890 mbstate_t teststate;
55892 return 0;
55894 _ACEOF
55895 rm -f conftest.$ac_objext
55896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55897 (eval $ac_compile) 2>&5
55898 ac_status=$?
55899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55900 (exit $ac_status); } &&
55901 { ac_try='test -s conftest.$ac_objext'
55902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55903 (eval $ac_try) 2>&5
55904 ac_status=$?
55905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55906 (exit $ac_status); }; }; then
55907 have_mbstate_t=yes
55908 else
55909 echo "$as_me: failed program was:" >&5
55910 sed 's/^/| /' conftest.$ac_ext >&5
55912 have_mbstate_t=no
55914 rm -f conftest.$ac_objext conftest.$ac_ext
55915 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
55916 echo "${ECHO_T}$have_mbstate_t" >&6
55917 if test x"$have_mbstate_t" = xyes; then
55918 cat >>confdefs.h <<\_ACEOF
55919 #define HAVE_MBSTATE_T 1
55920 _ACEOF
55924 # Sanity check for existence of ISO C99 headers for extended encoding.
55926 for ac_header in wchar.h
55928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55930 echo "$as_me:$LINENO: checking for $ac_header" >&5
55931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55933 echo $ECHO_N "(cached) $ECHO_C" >&6
55935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55937 else
55938 # Is the header compilable?
55939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55941 cat >conftest.$ac_ext <<_ACEOF
55942 #line $LINENO "configure"
55943 /* confdefs.h. */
55944 _ACEOF
55945 cat confdefs.h >>conftest.$ac_ext
55946 cat >>conftest.$ac_ext <<_ACEOF
55947 /* end confdefs.h. */
55948 $ac_includes_default
55949 #include <$ac_header>
55950 _ACEOF
55951 rm -f conftest.$ac_objext
55952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55953 (eval $ac_compile) 2>&5
55954 ac_status=$?
55955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55956 (exit $ac_status); } &&
55957 { ac_try='test -s conftest.$ac_objext'
55958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55959 (eval $ac_try) 2>&5
55960 ac_status=$?
55961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55962 (exit $ac_status); }; }; then
55963 ac_header_compiler=yes
55964 else
55965 echo "$as_me: failed program was:" >&5
55966 sed 's/^/| /' conftest.$ac_ext >&5
55968 ac_header_compiler=no
55970 rm -f conftest.$ac_objext conftest.$ac_ext
55971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55972 echo "${ECHO_T}$ac_header_compiler" >&6
55974 # Is the header present?
55975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55977 cat >conftest.$ac_ext <<_ACEOF
55978 #line $LINENO "configure"
55979 /* confdefs.h. */
55980 _ACEOF
55981 cat confdefs.h >>conftest.$ac_ext
55982 cat >>conftest.$ac_ext <<_ACEOF
55983 /* end confdefs.h. */
55984 #include <$ac_header>
55985 _ACEOF
55986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55988 ac_status=$?
55989 grep -v '^ *+' conftest.er1 >conftest.err
55990 rm -f conftest.er1
55991 cat conftest.err >&5
55992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55993 (exit $ac_status); } >/dev/null; then
55994 if test -s conftest.err; then
55995 ac_cpp_err=$ac_c_preproc_warn_flag
55996 else
55997 ac_cpp_err=
55999 else
56000 ac_cpp_err=yes
56002 if test -z "$ac_cpp_err"; then
56003 ac_header_preproc=yes
56004 else
56005 echo "$as_me: failed program was:" >&5
56006 sed 's/^/| /' conftest.$ac_ext >&5
56008 ac_header_preproc=no
56010 rm -f conftest.err conftest.$ac_ext
56011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56012 echo "${ECHO_T}$ac_header_preproc" >&6
56014 # So? What about this header?
56015 case $ac_header_compiler:$ac_header_preproc in
56016 yes:no )
56017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56022 cat <<\_ASBOX
56023 ## ------------------------------------ ##
56024 ## Report this to bug-autoconf@gnu.org. ##
56025 ## ------------------------------------ ##
56026 _ASBOX
56028 sed "s/^/$as_me: WARNING: /" >&2
56030 no:yes )
56031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56038 cat <<\_ASBOX
56039 ## ------------------------------------ ##
56040 ## Report this to bug-autoconf@gnu.org. ##
56041 ## ------------------------------------ ##
56042 _ASBOX
56044 sed "s/^/$as_me: WARNING: /" >&2
56046 esac
56047 echo "$as_me:$LINENO: checking for $ac_header" >&5
56048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56050 echo $ECHO_N "(cached) $ECHO_C" >&6
56051 else
56052 eval "$as_ac_Header=$ac_header_preproc"
56054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56059 cat >>confdefs.h <<_ACEOF
56060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56061 _ACEOF
56062 ac_has_wchar_h=yes
56063 else
56064 ac_has_wchar_h=no
56067 done
56070 for ac_header in wctype.h
56072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56074 echo "$as_me:$LINENO: checking for $ac_header" >&5
56075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56077 echo $ECHO_N "(cached) $ECHO_C" >&6
56079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56081 else
56082 # Is the header compilable?
56083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56085 cat >conftest.$ac_ext <<_ACEOF
56086 #line $LINENO "configure"
56087 /* confdefs.h. */
56088 _ACEOF
56089 cat confdefs.h >>conftest.$ac_ext
56090 cat >>conftest.$ac_ext <<_ACEOF
56091 /* end confdefs.h. */
56092 $ac_includes_default
56093 #include <$ac_header>
56094 _ACEOF
56095 rm -f conftest.$ac_objext
56096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56097 (eval $ac_compile) 2>&5
56098 ac_status=$?
56099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56100 (exit $ac_status); } &&
56101 { ac_try='test -s conftest.$ac_objext'
56102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56103 (eval $ac_try) 2>&5
56104 ac_status=$?
56105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56106 (exit $ac_status); }; }; then
56107 ac_header_compiler=yes
56108 else
56109 echo "$as_me: failed program was:" >&5
56110 sed 's/^/| /' conftest.$ac_ext >&5
56112 ac_header_compiler=no
56114 rm -f conftest.$ac_objext conftest.$ac_ext
56115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56116 echo "${ECHO_T}$ac_header_compiler" >&6
56118 # Is the header present?
56119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56121 cat >conftest.$ac_ext <<_ACEOF
56122 #line $LINENO "configure"
56123 /* confdefs.h. */
56124 _ACEOF
56125 cat confdefs.h >>conftest.$ac_ext
56126 cat >>conftest.$ac_ext <<_ACEOF
56127 /* end confdefs.h. */
56128 #include <$ac_header>
56129 _ACEOF
56130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56132 ac_status=$?
56133 grep -v '^ *+' conftest.er1 >conftest.err
56134 rm -f conftest.er1
56135 cat conftest.err >&5
56136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56137 (exit $ac_status); } >/dev/null; then
56138 if test -s conftest.err; then
56139 ac_cpp_err=$ac_c_preproc_warn_flag
56140 else
56141 ac_cpp_err=
56143 else
56144 ac_cpp_err=yes
56146 if test -z "$ac_cpp_err"; then
56147 ac_header_preproc=yes
56148 else
56149 echo "$as_me: failed program was:" >&5
56150 sed 's/^/| /' conftest.$ac_ext >&5
56152 ac_header_preproc=no
56154 rm -f conftest.err conftest.$ac_ext
56155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56156 echo "${ECHO_T}$ac_header_preproc" >&6
56158 # So? What about this header?
56159 case $ac_header_compiler:$ac_header_preproc in
56160 yes:no )
56161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56166 cat <<\_ASBOX
56167 ## ------------------------------------ ##
56168 ## Report this to bug-autoconf@gnu.org. ##
56169 ## ------------------------------------ ##
56170 _ASBOX
56172 sed "s/^/$as_me: WARNING: /" >&2
56174 no:yes )
56175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56182 cat <<\_ASBOX
56183 ## ------------------------------------ ##
56184 ## Report this to bug-autoconf@gnu.org. ##
56185 ## ------------------------------------ ##
56186 _ASBOX
56188 sed "s/^/$as_me: WARNING: /" >&2
56190 esac
56191 echo "$as_me:$LINENO: checking for $ac_header" >&5
56192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56194 echo $ECHO_N "(cached) $ECHO_C" >&6
56195 else
56196 eval "$as_ac_Header=$ac_header_preproc"
56198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56203 cat >>confdefs.h <<_ACEOF
56204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56205 _ACEOF
56206 ac_has_wctype_h=yes
56207 else
56208 ac_has_wctype_h=no
56211 done
56214 # Only continue checking if the ISO C99 headers exist and support is on.
56215 if test x"$ac_has_wchar_h" = xyes &&
56216 test x"$ac_has_wctype_h" = xyes &&
56217 test x"$enable_c_mbchar" != xno; then
56219 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56220 # numeric_limits can instantiate type_traits<wchar_t>
56221 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56222 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56223 cat >conftest.$ac_ext <<_ACEOF
56224 #line $LINENO "configure"
56225 /* confdefs.h. */
56226 _ACEOF
56227 cat confdefs.h >>conftest.$ac_ext
56228 cat >>conftest.$ac_ext <<_ACEOF
56229 /* end confdefs.h. */
56230 #include <wchar.h>
56232 main ()
56234 int i = WCHAR_MIN; int j = WCHAR_MAX;
56236 return 0;
56238 _ACEOF
56239 rm -f conftest.$ac_objext
56240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56241 (eval $ac_compile) 2>&5
56242 ac_status=$?
56243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56244 (exit $ac_status); } &&
56245 { ac_try='test -s conftest.$ac_objext'
56246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56247 (eval $ac_try) 2>&5
56248 ac_status=$?
56249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56250 (exit $ac_status); }; }; then
56251 has_wchar_minmax=yes
56252 else
56253 echo "$as_me: failed program was:" >&5
56254 sed 's/^/| /' conftest.$ac_ext >&5
56256 has_wchar_minmax=no
56258 rm -f conftest.$ac_objext conftest.$ac_ext
56259 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
56260 echo "${ECHO_T}$has_wchar_minmax" >&6
56262 # Test wchar.h for WEOF, which is what we use to determine whether
56263 # to specialize for char_traits<wchar_t> or not.
56264 echo "$as_me:$LINENO: checking for WEOF" >&5
56265 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
56266 cat >conftest.$ac_ext <<_ACEOF
56267 #line $LINENO "configure"
56268 /* confdefs.h. */
56269 _ACEOF
56270 cat confdefs.h >>conftest.$ac_ext
56271 cat >>conftest.$ac_ext <<_ACEOF
56272 /* end confdefs.h. */
56274 #include <wchar.h>
56275 #include <stddef.h>
56277 main ()
56279 wint_t i = WEOF;
56281 return 0;
56283 _ACEOF
56284 rm -f conftest.$ac_objext
56285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56286 (eval $ac_compile) 2>&5
56287 ac_status=$?
56288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56289 (exit $ac_status); } &&
56290 { ac_try='test -s conftest.$ac_objext'
56291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56292 (eval $ac_try) 2>&5
56293 ac_status=$?
56294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56295 (exit $ac_status); }; }; then
56296 has_weof=yes
56297 else
56298 echo "$as_me: failed program was:" >&5
56299 sed 's/^/| /' conftest.$ac_ext >&5
56301 has_weof=no
56303 rm -f conftest.$ac_objext conftest.$ac_ext
56304 echo "$as_me:$LINENO: result: $has_weof" >&5
56305 echo "${ECHO_T}$has_weof" >&6
56307 # Tests for wide character functions used in char_traits<wchar_t>.
56308 ac_wfuncs=yes
56315 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
56317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56318 echo "$as_me:$LINENO: checking for $ac_func" >&5
56319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56320 if eval "test \"\${$as_ac_var+set}\" = set"; then
56321 echo $ECHO_N "(cached) $ECHO_C" >&6
56322 else
56323 if test x$gcc_no_link = xyes; then
56324 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56326 { (exit 1); exit 1; }; }
56328 cat >conftest.$ac_ext <<_ACEOF
56329 #line $LINENO "configure"
56330 /* confdefs.h. */
56331 _ACEOF
56332 cat confdefs.h >>conftest.$ac_ext
56333 cat >>conftest.$ac_ext <<_ACEOF
56334 /* end confdefs.h. */
56335 /* System header to define __stub macros and hopefully few prototypes,
56336 which can conflict with char $ac_func (); below.
56337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56338 <limits.h> exists even on freestanding compilers. */
56339 #ifdef __STDC__
56340 # include <limits.h>
56341 #else
56342 # include <assert.h>
56343 #endif
56344 /* Override any gcc2 internal prototype to avoid an error. */
56345 #ifdef __cplusplus
56346 extern "C"
56348 #endif
56349 /* We use char because int might match the return type of a gcc2
56350 builtin and then its argument prototype would still apply. */
56351 char $ac_func ();
56352 /* The GNU C library defines this for functions which it implements
56353 to always fail with ENOSYS. Some functions are actually named
56354 something starting with __ and the normal name is an alias. */
56355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56356 choke me
56357 #else
56358 char (*f) () = $ac_func;
56359 #endif
56360 #ifdef __cplusplus
56362 #endif
56365 main ()
56367 return f != $ac_func;
56369 return 0;
56371 _ACEOF
56372 rm -f conftest.$ac_objext conftest$ac_exeext
56373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56374 (eval $ac_link) 2>&5
56375 ac_status=$?
56376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56377 (exit $ac_status); } &&
56378 { ac_try='test -s conftest$ac_exeext'
56379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56380 (eval $ac_try) 2>&5
56381 ac_status=$?
56382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56383 (exit $ac_status); }; }; then
56384 eval "$as_ac_var=yes"
56385 else
56386 echo "$as_me: failed program was:" >&5
56387 sed 's/^/| /' conftest.$ac_ext >&5
56389 eval "$as_ac_var=no"
56391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56395 if test `eval echo '${'$as_ac_var'}'` = yes; then
56396 cat >>confdefs.h <<_ACEOF
56397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56398 _ACEOF
56400 else
56401 ac_wfuncs=no
56403 done
56406 # Checks for names injected into std:: by the c_std headers.
56453 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
56454 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
56455 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
56456 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
56457 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
56458 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
56460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56461 echo "$as_me:$LINENO: checking for $ac_func" >&5
56462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56463 if eval "test \"\${$as_ac_var+set}\" = set"; then
56464 echo $ECHO_N "(cached) $ECHO_C" >&6
56465 else
56466 if test x$gcc_no_link = xyes; then
56467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56469 { (exit 1); exit 1; }; }
56471 cat >conftest.$ac_ext <<_ACEOF
56472 #line $LINENO "configure"
56473 /* confdefs.h. */
56474 _ACEOF
56475 cat confdefs.h >>conftest.$ac_ext
56476 cat >>conftest.$ac_ext <<_ACEOF
56477 /* end confdefs.h. */
56478 /* System header to define __stub macros and hopefully few prototypes,
56479 which can conflict with char $ac_func (); below.
56480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56481 <limits.h> exists even on freestanding compilers. */
56482 #ifdef __STDC__
56483 # include <limits.h>
56484 #else
56485 # include <assert.h>
56486 #endif
56487 /* Override any gcc2 internal prototype to avoid an error. */
56488 #ifdef __cplusplus
56489 extern "C"
56491 #endif
56492 /* We use char because int might match the return type of a gcc2
56493 builtin and then its argument prototype would still apply. */
56494 char $ac_func ();
56495 /* The GNU C library defines this for functions which it implements
56496 to always fail with ENOSYS. Some functions are actually named
56497 something starting with __ and the normal name is an alias. */
56498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56499 choke me
56500 #else
56501 char (*f) () = $ac_func;
56502 #endif
56503 #ifdef __cplusplus
56505 #endif
56508 main ()
56510 return f != $ac_func;
56512 return 0;
56514 _ACEOF
56515 rm -f conftest.$ac_objext conftest$ac_exeext
56516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56517 (eval $ac_link) 2>&5
56518 ac_status=$?
56519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56520 (exit $ac_status); } &&
56521 { ac_try='test -s conftest$ac_exeext'
56522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56523 (eval $ac_try) 2>&5
56524 ac_status=$?
56525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56526 (exit $ac_status); }; }; then
56527 eval "$as_ac_var=yes"
56528 else
56529 echo "$as_me: failed program was:" >&5
56530 sed 's/^/| /' conftest.$ac_ext >&5
56532 eval "$as_ac_var=no"
56534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56538 if test `eval echo '${'$as_ac_var'}'` = yes; then
56539 cat >>confdefs.h <<_ACEOF
56540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56541 _ACEOF
56543 else
56544 ac_wfuncs=no
56546 done
56549 # Checks for wide character functions that are not required
56550 # for basic wchar_t support. Don't disable support if they are missing.
56551 # Injection of these is wrapped with guard macros.
56557 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
56559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56560 echo "$as_me:$LINENO: checking for $ac_func" >&5
56561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56562 if eval "test \"\${$as_ac_var+set}\" = set"; then
56563 echo $ECHO_N "(cached) $ECHO_C" >&6
56564 else
56565 if test x$gcc_no_link = xyes; then
56566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56568 { (exit 1); exit 1; }; }
56570 cat >conftest.$ac_ext <<_ACEOF
56571 #line $LINENO "configure"
56572 /* confdefs.h. */
56573 _ACEOF
56574 cat confdefs.h >>conftest.$ac_ext
56575 cat >>conftest.$ac_ext <<_ACEOF
56576 /* end confdefs.h. */
56577 /* System header to define __stub macros and hopefully few prototypes,
56578 which can conflict with char $ac_func (); below.
56579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56580 <limits.h> exists even on freestanding compilers. */
56581 #ifdef __STDC__
56582 # include <limits.h>
56583 #else
56584 # include <assert.h>
56585 #endif
56586 /* Override any gcc2 internal prototype to avoid an error. */
56587 #ifdef __cplusplus
56588 extern "C"
56590 #endif
56591 /* We use char because int might match the return type of a gcc2
56592 builtin and then its argument prototype would still apply. */
56593 char $ac_func ();
56594 /* The GNU C library defines this for functions which it implements
56595 to always fail with ENOSYS. Some functions are actually named
56596 something starting with __ and the normal name is an alias. */
56597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56598 choke me
56599 #else
56600 char (*f) () = $ac_func;
56601 #endif
56602 #ifdef __cplusplus
56604 #endif
56607 main ()
56609 return f != $ac_func;
56611 return 0;
56613 _ACEOF
56614 rm -f conftest.$ac_objext conftest$ac_exeext
56615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56616 (eval $ac_link) 2>&5
56617 ac_status=$?
56618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56619 (exit $ac_status); } &&
56620 { ac_try='test -s conftest$ac_exeext'
56621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56622 (eval $ac_try) 2>&5
56623 ac_status=$?
56624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56625 (exit $ac_status); }; }; then
56626 eval "$as_ac_var=yes"
56627 else
56628 echo "$as_me: failed program was:" >&5
56629 sed 's/^/| /' conftest.$ac_ext >&5
56631 eval "$as_ac_var=no"
56633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56637 if test `eval echo '${'$as_ac_var'}'` = yes; then
56638 cat >>confdefs.h <<_ACEOF
56639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56640 _ACEOF
56643 done
56646 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
56647 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
56648 if test x"$has_weof" = xyes &&
56649 test x"$has_wchar_minmax" = xyes &&
56650 test x"$ac_wfuncs" = xyes;
56651 then
56652 ac_isoC99_wchar_t=yes
56653 else
56654 ac_isoC99_wchar_t=no
56656 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
56657 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
56659 # Use iconv for wchar_t to char conversions. As such, check for
56660 # X/Open Portability Guide, version 2 features (XPG2).
56661 if test "${ac_cv_header_iconv_h+set}" = set; then
56662 echo "$as_me:$LINENO: checking for iconv.h" >&5
56663 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56664 if test "${ac_cv_header_iconv_h+set}" = set; then
56665 echo $ECHO_N "(cached) $ECHO_C" >&6
56667 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56668 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56669 else
56670 # Is the header compilable?
56671 echo "$as_me:$LINENO: checking iconv.h usability" >&5
56672 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
56673 cat >conftest.$ac_ext <<_ACEOF
56674 #line $LINENO "configure"
56675 /* confdefs.h. */
56676 _ACEOF
56677 cat confdefs.h >>conftest.$ac_ext
56678 cat >>conftest.$ac_ext <<_ACEOF
56679 /* end confdefs.h. */
56680 $ac_includes_default
56681 #include <iconv.h>
56682 _ACEOF
56683 rm -f conftest.$ac_objext
56684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56685 (eval $ac_compile) 2>&5
56686 ac_status=$?
56687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56688 (exit $ac_status); } &&
56689 { ac_try='test -s conftest.$ac_objext'
56690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56691 (eval $ac_try) 2>&5
56692 ac_status=$?
56693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56694 (exit $ac_status); }; }; then
56695 ac_header_compiler=yes
56696 else
56697 echo "$as_me: failed program was:" >&5
56698 sed 's/^/| /' conftest.$ac_ext >&5
56700 ac_header_compiler=no
56702 rm -f conftest.$ac_objext conftest.$ac_ext
56703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56704 echo "${ECHO_T}$ac_header_compiler" >&6
56706 # Is the header present?
56707 echo "$as_me:$LINENO: checking iconv.h presence" >&5
56708 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
56709 cat >conftest.$ac_ext <<_ACEOF
56710 #line $LINENO "configure"
56711 /* confdefs.h. */
56712 _ACEOF
56713 cat confdefs.h >>conftest.$ac_ext
56714 cat >>conftest.$ac_ext <<_ACEOF
56715 /* end confdefs.h. */
56716 #include <iconv.h>
56717 _ACEOF
56718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56720 ac_status=$?
56721 grep -v '^ *+' conftest.er1 >conftest.err
56722 rm -f conftest.er1
56723 cat conftest.err >&5
56724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56725 (exit $ac_status); } >/dev/null; then
56726 if test -s conftest.err; then
56727 ac_cpp_err=$ac_c_preproc_warn_flag
56728 else
56729 ac_cpp_err=
56731 else
56732 ac_cpp_err=yes
56734 if test -z "$ac_cpp_err"; then
56735 ac_header_preproc=yes
56736 else
56737 echo "$as_me: failed program was:" >&5
56738 sed 's/^/| /' conftest.$ac_ext >&5
56740 ac_header_preproc=no
56742 rm -f conftest.err conftest.$ac_ext
56743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56744 echo "${ECHO_T}$ac_header_preproc" >&6
56746 # So? What about this header?
56747 case $ac_header_compiler:$ac_header_preproc in
56748 yes:no )
56749 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
56750 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56751 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56752 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56754 cat <<\_ASBOX
56755 ## ------------------------------------ ##
56756 ## Report this to bug-autoconf@gnu.org. ##
56757 ## ------------------------------------ ##
56758 _ASBOX
56760 sed "s/^/$as_me: WARNING: /" >&2
56762 no:yes )
56763 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
56764 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
56765 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
56766 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
56767 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56768 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56770 cat <<\_ASBOX
56771 ## ------------------------------------ ##
56772 ## Report this to bug-autoconf@gnu.org. ##
56773 ## ------------------------------------ ##
56774 _ASBOX
56776 sed "s/^/$as_me: WARNING: /" >&2
56778 esac
56779 echo "$as_me:$LINENO: checking for iconv.h" >&5
56780 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56781 if test "${ac_cv_header_iconv_h+set}" = set; then
56782 echo $ECHO_N "(cached) $ECHO_C" >&6
56783 else
56784 ac_cv_header_iconv_h=$ac_header_preproc
56786 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56787 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56790 if test $ac_cv_header_iconv_h = yes; then
56791 ac_has_iconv_h=yes
56792 else
56793 ac_has_iconv_h=no
56797 if test "${ac_cv_header_langinfo_h+set}" = set; then
56798 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56799 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56800 if test "${ac_cv_header_langinfo_h+set}" = set; then
56801 echo $ECHO_N "(cached) $ECHO_C" >&6
56803 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56804 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56805 else
56806 # Is the header compilable?
56807 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
56808 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
56809 cat >conftest.$ac_ext <<_ACEOF
56810 #line $LINENO "configure"
56811 /* confdefs.h. */
56812 _ACEOF
56813 cat confdefs.h >>conftest.$ac_ext
56814 cat >>conftest.$ac_ext <<_ACEOF
56815 /* end confdefs.h. */
56816 $ac_includes_default
56817 #include <langinfo.h>
56818 _ACEOF
56819 rm -f conftest.$ac_objext
56820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56821 (eval $ac_compile) 2>&5
56822 ac_status=$?
56823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56824 (exit $ac_status); } &&
56825 { ac_try='test -s conftest.$ac_objext'
56826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56827 (eval $ac_try) 2>&5
56828 ac_status=$?
56829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56830 (exit $ac_status); }; }; then
56831 ac_header_compiler=yes
56832 else
56833 echo "$as_me: failed program was:" >&5
56834 sed 's/^/| /' conftest.$ac_ext >&5
56836 ac_header_compiler=no
56838 rm -f conftest.$ac_objext conftest.$ac_ext
56839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56840 echo "${ECHO_T}$ac_header_compiler" >&6
56842 # Is the header present?
56843 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
56844 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
56845 cat >conftest.$ac_ext <<_ACEOF
56846 #line $LINENO "configure"
56847 /* confdefs.h. */
56848 _ACEOF
56849 cat confdefs.h >>conftest.$ac_ext
56850 cat >>conftest.$ac_ext <<_ACEOF
56851 /* end confdefs.h. */
56852 #include <langinfo.h>
56853 _ACEOF
56854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56855 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
56862 if test -s conftest.err; then
56863 ac_cpp_err=$ac_c_preproc_warn_flag
56864 else
56865 ac_cpp_err=
56867 else
56868 ac_cpp_err=yes
56870 if test -z "$ac_cpp_err"; then
56871 ac_header_preproc=yes
56872 else
56873 echo "$as_me: failed program was:" >&5
56874 sed 's/^/| /' conftest.$ac_ext >&5
56876 ac_header_preproc=no
56878 rm -f conftest.err conftest.$ac_ext
56879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56880 echo "${ECHO_T}$ac_header_preproc" >&6
56882 # So? What about this header?
56883 case $ac_header_compiler:$ac_header_preproc in
56884 yes:no )
56885 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
56886 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56887 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
56888 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
56890 cat <<\_ASBOX
56891 ## ------------------------------------ ##
56892 ## Report this to bug-autoconf@gnu.org. ##
56893 ## ------------------------------------ ##
56894 _ASBOX
56896 sed "s/^/$as_me: WARNING: /" >&2
56898 no:yes )
56899 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
56900 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
56901 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
56902 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
56903 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
56904 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
56906 cat <<\_ASBOX
56907 ## ------------------------------------ ##
56908 ## Report this to bug-autoconf@gnu.org. ##
56909 ## ------------------------------------ ##
56910 _ASBOX
56912 sed "s/^/$as_me: WARNING: /" >&2
56914 esac
56915 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56916 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56917 if test "${ac_cv_header_langinfo_h+set}" = set; then
56918 echo $ECHO_N "(cached) $ECHO_C" >&6
56919 else
56920 ac_cv_header_langinfo_h=$ac_header_preproc
56922 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56923 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56926 if test $ac_cv_header_langinfo_h = yes; then
56927 ac_has_langinfo_h=yes
56928 else
56929 ac_has_langinfo_h=no
56934 # Check for existence of libiconv.a providing XPG2 wchar_t support.
56935 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
56936 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
56937 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
56938 echo $ECHO_N "(cached) $ECHO_C" >&6
56939 else
56940 ac_check_lib_save_LIBS=$LIBS
56941 LIBS="-liconv $LIBS"
56942 if test x$gcc_no_link = xyes; then
56943 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56945 { (exit 1); exit 1; }; }
56947 cat >conftest.$ac_ext <<_ACEOF
56948 #line $LINENO "configure"
56949 /* confdefs.h. */
56950 _ACEOF
56951 cat confdefs.h >>conftest.$ac_ext
56952 cat >>conftest.$ac_ext <<_ACEOF
56953 /* end confdefs.h. */
56955 /* Override any gcc2 internal prototype to avoid an error. */
56956 #ifdef __cplusplus
56957 extern "C"
56958 #endif
56959 /* We use char because int might match the return type of a gcc2
56960 builtin and then its argument prototype would still apply. */
56961 char iconv ();
56963 main ()
56965 iconv ();
56967 return 0;
56969 _ACEOF
56970 rm -f conftest.$ac_objext conftest$ac_exeext
56971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56972 (eval $ac_link) 2>&5
56973 ac_status=$?
56974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56975 (exit $ac_status); } &&
56976 { ac_try='test -s conftest$ac_exeext'
56977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56978 (eval $ac_try) 2>&5
56979 ac_status=$?
56980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56981 (exit $ac_status); }; }; then
56982 ac_cv_lib_iconv_iconv=yes
56983 else
56984 echo "$as_me: failed program was:" >&5
56985 sed 's/^/| /' conftest.$ac_ext >&5
56987 ac_cv_lib_iconv_iconv=no
56989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56990 LIBS=$ac_check_lib_save_LIBS
56992 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
56993 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
56994 if test $ac_cv_lib_iconv_iconv = yes; then
56995 libiconv="-liconv"
56998 ac_save_LIBS="$LIBS"
56999 LIBS="$LIBS $libiconv"
57005 for ac_func in iconv_open iconv_close iconv nl_langinfo
57007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57008 echo "$as_me:$LINENO: checking for $ac_func" >&5
57009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57010 if eval "test \"\${$as_ac_var+set}\" = set"; then
57011 echo $ECHO_N "(cached) $ECHO_C" >&6
57012 else
57013 if test x$gcc_no_link = xyes; then
57014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57016 { (exit 1); exit 1; }; }
57018 cat >conftest.$ac_ext <<_ACEOF
57019 #line $LINENO "configure"
57020 /* confdefs.h. */
57021 _ACEOF
57022 cat confdefs.h >>conftest.$ac_ext
57023 cat >>conftest.$ac_ext <<_ACEOF
57024 /* end confdefs.h. */
57025 /* System header to define __stub macros and hopefully few prototypes,
57026 which can conflict with char $ac_func (); below.
57027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57028 <limits.h> exists even on freestanding compilers. */
57029 #ifdef __STDC__
57030 # include <limits.h>
57031 #else
57032 # include <assert.h>
57033 #endif
57034 /* Override any gcc2 internal prototype to avoid an error. */
57035 #ifdef __cplusplus
57036 extern "C"
57038 #endif
57039 /* We use char because int might match the return type of a gcc2
57040 builtin and then its argument prototype would still apply. */
57041 char $ac_func ();
57042 /* The GNU C library defines this for functions which it implements
57043 to always fail with ENOSYS. Some functions are actually named
57044 something starting with __ and the normal name is an alias. */
57045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57046 choke me
57047 #else
57048 char (*f) () = $ac_func;
57049 #endif
57050 #ifdef __cplusplus
57052 #endif
57055 main ()
57057 return f != $ac_func;
57059 return 0;
57061 _ACEOF
57062 rm -f conftest.$ac_objext conftest$ac_exeext
57063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57064 (eval $ac_link) 2>&5
57065 ac_status=$?
57066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57067 (exit $ac_status); } &&
57068 { ac_try='test -s conftest$ac_exeext'
57069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57070 (eval $ac_try) 2>&5
57071 ac_status=$?
57072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57073 (exit $ac_status); }; }; then
57074 eval "$as_ac_var=yes"
57075 else
57076 echo "$as_me: failed program was:" >&5
57077 sed 's/^/| /' conftest.$ac_ext >&5
57079 eval "$as_ac_var=no"
57081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57085 if test `eval echo '${'$as_ac_var'}'` = yes; then
57086 cat >>confdefs.h <<_ACEOF
57087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57088 _ACEOF
57089 ac_XPG2funcs=yes
57090 else
57091 ac_XPG2funcs=no
57093 done
57096 LIBS="$ac_save_LIBS"
57098 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57099 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57100 if test x"$ac_has_iconv_h" = xyes &&
57101 test x"$ac_has_langinfo_h" = xyes &&
57102 test x"$ac_XPG2funcs" = xyes;
57103 then
57104 ac_XPG2_wchar_t=yes
57105 else
57106 ac_XPG2_wchar_t=no
57108 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57109 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57111 # At the moment, only enable wchar_t specializations if all the
57112 # above support is present.
57113 if test x"$ac_isoC99_wchar_t" = xyes &&
57114 test x"$ac_XPG2_wchar_t" = xyes;
57115 then
57116 cat >>confdefs.h <<\_ACEOF
57117 #define _GLIBCXX_USE_WCHAR_T 1
57118 _ACEOF
57120 enable_wchar_t=yes
57123 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57124 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57125 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57126 echo "${ECHO_T}$enable_wchar_t" >&6
57128 cat >>confdefs.h <<\_ACEOF
57129 #define HAVE_COPYSIGN 1
57130 _ACEOF
57132 cat >>confdefs.h <<\_ACEOF
57133 #define HAVE_COPYSIGNF 1
57134 _ACEOF
57136 cat >>confdefs.h <<\_ACEOF
57137 #define HAVE_FINITEF 1
57138 _ACEOF
57140 cat >>confdefs.h <<\_ACEOF
57141 #define HAVE_FINITE 1
57142 _ACEOF
57144 cat >>confdefs.h <<\_ACEOF
57145 #define HAVE_FREXPF 1
57146 _ACEOF
57148 cat >>confdefs.h <<\_ACEOF
57149 #define HAVE_HYPOTF 1
57150 _ACEOF
57152 cat >>confdefs.h <<\_ACEOF
57153 #define HAVE_ISINF 1
57154 _ACEOF
57156 cat >>confdefs.h <<\_ACEOF
57157 #define HAVE_ISINFF 1
57158 _ACEOF
57160 cat >>confdefs.h <<\_ACEOF
57161 #define HAVE_ISNAN 1
57162 _ACEOF
57164 cat >>confdefs.h <<\_ACEOF
57165 #define HAVE_ISNANF 1
57166 _ACEOF
57168 if test x"long_double_math_on_this_cpu" = x"yes"; then
57169 cat >>confdefs.h <<\_ACEOF
57170 #define HAVE_FINITEL 1
57171 _ACEOF
57173 cat >>confdefs.h <<\_ACEOF
57174 #define HAVE_ISINFL 1
57175 _ACEOF
57177 cat >>confdefs.h <<\_ACEOF
57178 #define HAVE_ISNANL 1
57179 _ACEOF
57183 *-qnx6.1* | *-qnx6.2*)
57184 SECTION_FLAGS='-ffunction-sections -fdata-sections'
57187 # If we're not using GNU ld, then there's no point in even trying these
57188 # tests. Check for that first. We should have already tested for gld
57189 # by now (in libtool), but require it now just to be safe...
57190 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
57191 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
57195 # The name set by libtool depends on the version of libtool. Shame on us
57196 # for depending on an impl detail, but c'est la vie. Older versions used
57197 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
57198 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
57199 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
57200 # set (hence we're using an older libtool), then set it.
57201 if test x${with_gnu_ld+set} != xset; then
57202 if test x${ac_cv_prog_gnu_ld+set} != xset; then
57203 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
57204 with_gnu_ld=no
57205 else
57206 with_gnu_ld=$ac_cv_prog_gnu_ld
57210 # Start by getting the version number. I think the libtool test already
57211 # does some of this, but throws away the result.
57213 ldver=`$LD --version 2>/dev/null | head -1 | \
57214 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
57216 glibcxx_gnu_ld_version=`echo $ldver | \
57217 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
57219 # Set --gc-sections.
57220 if test "$with_gnu_ld" = "notbroken"; then
57221 # GNU ld it is! Joy and bunny rabbits!
57223 # All these tests are for C++; save the language and the compiler flags.
57224 # Need to do this so that g++ won't try to link in libstdc++
57225 ac_test_CFLAGS="${CFLAGS+set}"
57226 ac_save_CFLAGS="$CFLAGS"
57227 CFLAGS='-x c++ -Wl,--gc-sections'
57229 # Check for -Wl,--gc-sections
57230 # XXX This test is broken at the moment, as symbols required for linking
57231 # are now in libsupc++ (not built yet). In addition, this test has
57232 # cored on solaris in the past. In addition, --gc-sections doesn't
57233 # really work at the moment (keeps on discarding used sections, first
57234 # .eh_frame and now some of the glibc sections for iconv).
57235 # Bzzzzt. Thanks for playing, maybe next time.
57236 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
57237 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
57238 if test "$cross_compiling" = yes; then
57239 ac_sectionLDflags=yes
57240 else
57241 cat >conftest.$ac_ext <<_ACEOF
57242 #line $LINENO "configure"
57243 /* confdefs.h. */
57244 _ACEOF
57245 cat confdefs.h >>conftest.$ac_ext
57246 cat >>conftest.$ac_ext <<_ACEOF
57247 /* end confdefs.h. */
57249 int main(void)
57251 try { throw 1; }
57252 catch (...) { };
57253 return 0;
57256 _ACEOF
57257 rm -f conftest$ac_exeext
57258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57259 (eval $ac_link) 2>&5
57260 ac_status=$?
57261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57264 (eval $ac_try) 2>&5
57265 ac_status=$?
57266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57267 (exit $ac_status); }; }; then
57268 ac_sectionLDflags=yes
57269 else
57270 echo "$as_me: program exited with status $ac_status" >&5
57271 echo "$as_me: failed program was:" >&5
57272 sed 's/^/| /' conftest.$ac_ext >&5
57274 ( exit $ac_status )
57275 ac_sectionLDflags=no
57277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57279 if test "$ac_test_CFLAGS" = set; then
57280 CFLAGS="$ac_save_CFLAGS"
57281 else
57282 # this is the suspicious part
57283 CFLAGS=''
57285 if test "$ac_sectionLDflags" = "yes"; then
57286 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
57288 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
57289 echo "${ECHO_T}$ac_sectionLDflags" >&6
57292 # Set linker optimization flags.
57293 if test x"$with_gnu_ld" = x"yes"; then
57294 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
57302 echo "$as_me:$LINENO: checking for main in -lm" >&5
57303 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
57304 if test "${ac_cv_lib_m_main+set}" = set; then
57305 echo $ECHO_N "(cached) $ECHO_C" >&6
57306 else
57307 ac_check_lib_save_LIBS=$LIBS
57308 LIBS="-lm $LIBS"
57309 if test x$gcc_no_link = xyes; then
57310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57312 { (exit 1); exit 1; }; }
57314 cat >conftest.$ac_ext <<_ACEOF
57315 #line $LINENO "configure"
57316 /* confdefs.h. */
57317 _ACEOF
57318 cat confdefs.h >>conftest.$ac_ext
57319 cat >>conftest.$ac_ext <<_ACEOF
57320 /* end confdefs.h. */
57324 main ()
57326 main ();
57328 return 0;
57330 _ACEOF
57331 rm -f conftest.$ac_objext conftest$ac_exeext
57332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57333 (eval $ac_link) 2>&5
57334 ac_status=$?
57335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57336 (exit $ac_status); } &&
57337 { ac_try='test -s conftest$ac_exeext'
57338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57339 (eval $ac_try) 2>&5
57340 ac_status=$?
57341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57342 (exit $ac_status); }; }; then
57343 ac_cv_lib_m_main=yes
57344 else
57345 echo "$as_me: failed program was:" >&5
57346 sed 's/^/| /' conftest.$ac_ext >&5
57348 ac_cv_lib_m_main=no
57350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57351 LIBS=$ac_check_lib_save_LIBS
57353 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
57354 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
57355 if test $ac_cv_lib_m_main = yes; then
57356 cat >>confdefs.h <<_ACEOF
57357 #define HAVE_LIBM 1
57358 _ACEOF
57360 LIBS="-lm $LIBS"
57366 for ac_func in nan copysignf
57368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57369 echo "$as_me:$LINENO: checking for $ac_func" >&5
57370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57371 if eval "test \"\${$as_ac_var+set}\" = set"; then
57372 echo $ECHO_N "(cached) $ECHO_C" >&6
57373 else
57374 if test x$gcc_no_link = xyes; then
57375 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57377 { (exit 1); exit 1; }; }
57379 cat >conftest.$ac_ext <<_ACEOF
57380 #line $LINENO "configure"
57381 /* confdefs.h. */
57382 _ACEOF
57383 cat confdefs.h >>conftest.$ac_ext
57384 cat >>conftest.$ac_ext <<_ACEOF
57385 /* end confdefs.h. */
57386 /* System header to define __stub macros and hopefully few prototypes,
57387 which can conflict with char $ac_func (); below.
57388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57389 <limits.h> exists even on freestanding compilers. */
57390 #ifdef __STDC__
57391 # include <limits.h>
57392 #else
57393 # include <assert.h>
57394 #endif
57395 /* Override any gcc2 internal prototype to avoid an error. */
57396 #ifdef __cplusplus
57397 extern "C"
57399 #endif
57400 /* We use char because int might match the return type of a gcc2
57401 builtin and then its argument prototype would still apply. */
57402 char $ac_func ();
57403 /* The GNU C library defines this for functions which it implements
57404 to always fail with ENOSYS. Some functions are actually named
57405 something starting with __ and the normal name is an alias. */
57406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57407 choke me
57408 #else
57409 char (*f) () = $ac_func;
57410 #endif
57411 #ifdef __cplusplus
57413 #endif
57416 main ()
57418 return f != $ac_func;
57420 return 0;
57422 _ACEOF
57423 rm -f conftest.$ac_objext conftest$ac_exeext
57424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57425 (eval $ac_link) 2>&5
57426 ac_status=$?
57427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57428 (exit $ac_status); } &&
57429 { ac_try='test -s conftest$ac_exeext'
57430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57431 (eval $ac_try) 2>&5
57432 ac_status=$?
57433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57434 (exit $ac_status); }; }; then
57435 eval "$as_ac_var=yes"
57436 else
57437 echo "$as_me: failed program was:" >&5
57438 sed 's/^/| /' conftest.$ac_ext >&5
57440 eval "$as_ac_var=no"
57442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57446 if test `eval echo '${'$as_ac_var'}'` = yes; then
57447 cat >>confdefs.h <<_ACEOF
57448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57449 _ACEOF
57451 else
57452 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
57454 done
57458 for ac_func in __signbit
57460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57461 echo "$as_me:$LINENO: checking for $ac_func" >&5
57462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57463 if eval "test \"\${$as_ac_var+set}\" = set"; then
57464 echo $ECHO_N "(cached) $ECHO_C" >&6
57465 else
57466 if test x$gcc_no_link = xyes; then
57467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57469 { (exit 1); exit 1; }; }
57471 cat >conftest.$ac_ext <<_ACEOF
57472 #line $LINENO "configure"
57473 /* confdefs.h. */
57474 _ACEOF
57475 cat confdefs.h >>conftest.$ac_ext
57476 cat >>conftest.$ac_ext <<_ACEOF
57477 /* end confdefs.h. */
57478 /* System header to define __stub macros and hopefully few prototypes,
57479 which can conflict with char $ac_func (); below.
57480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57481 <limits.h> exists even on freestanding compilers. */
57482 #ifdef __STDC__
57483 # include <limits.h>
57484 #else
57485 # include <assert.h>
57486 #endif
57487 /* Override any gcc2 internal prototype to avoid an error. */
57488 #ifdef __cplusplus
57489 extern "C"
57491 #endif
57492 /* We use char because int might match the return type of a gcc2
57493 builtin and then its argument prototype would still apply. */
57494 char $ac_func ();
57495 /* The GNU C library defines this for functions which it implements
57496 to always fail with ENOSYS. Some functions are actually named
57497 something starting with __ and the normal name is an alias. */
57498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57499 choke me
57500 #else
57501 char (*f) () = $ac_func;
57502 #endif
57503 #ifdef __cplusplus
57505 #endif
57508 main ()
57510 return f != $ac_func;
57512 return 0;
57514 _ACEOF
57515 rm -f conftest.$ac_objext conftest$ac_exeext
57516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57517 (eval $ac_link) 2>&5
57518 ac_status=$?
57519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57520 (exit $ac_status); } &&
57521 { ac_try='test -s conftest$ac_exeext'
57522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57523 (eval $ac_try) 2>&5
57524 ac_status=$?
57525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57526 (exit $ac_status); }; }; then
57527 eval "$as_ac_var=yes"
57528 else
57529 echo "$as_me: failed program was:" >&5
57530 sed 's/^/| /' conftest.$ac_ext >&5
57532 eval "$as_ac_var=no"
57534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57538 if test `eval echo '${'$as_ac_var'}'` = yes; then
57539 cat >>confdefs.h <<_ACEOF
57540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57541 _ACEOF
57543 else
57544 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
57546 done
57549 for ac_func in __signbitf
57551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57552 echo "$as_me:$LINENO: checking for $ac_func" >&5
57553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57554 if eval "test \"\${$as_ac_var+set}\" = set"; then
57555 echo $ECHO_N "(cached) $ECHO_C" >&6
57556 else
57557 if test x$gcc_no_link = xyes; then
57558 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57559 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57560 { (exit 1); exit 1; }; }
57562 cat >conftest.$ac_ext <<_ACEOF
57563 #line $LINENO "configure"
57564 /* confdefs.h. */
57565 _ACEOF
57566 cat confdefs.h >>conftest.$ac_ext
57567 cat >>conftest.$ac_ext <<_ACEOF
57568 /* end confdefs.h. */
57569 /* System header to define __stub macros and hopefully few prototypes,
57570 which can conflict with char $ac_func (); below.
57571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57572 <limits.h> exists even on freestanding compilers. */
57573 #ifdef __STDC__
57574 # include <limits.h>
57575 #else
57576 # include <assert.h>
57577 #endif
57578 /* Override any gcc2 internal prototype to avoid an error. */
57579 #ifdef __cplusplus
57580 extern "C"
57582 #endif
57583 /* We use char because int might match the return type of a gcc2
57584 builtin and then its argument prototype would still apply. */
57585 char $ac_func ();
57586 /* The GNU C library defines this for functions which it implements
57587 to always fail with ENOSYS. Some functions are actually named
57588 something starting with __ and the normal name is an alias. */
57589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57590 choke me
57591 #else
57592 char (*f) () = $ac_func;
57593 #endif
57594 #ifdef __cplusplus
57596 #endif
57599 main ()
57601 return f != $ac_func;
57603 return 0;
57605 _ACEOF
57606 rm -f conftest.$ac_objext conftest$ac_exeext
57607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57608 (eval $ac_link) 2>&5
57609 ac_status=$?
57610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57611 (exit $ac_status); } &&
57612 { ac_try='test -s conftest$ac_exeext'
57613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57614 (eval $ac_try) 2>&5
57615 ac_status=$?
57616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57617 (exit $ac_status); }; }; then
57618 eval "$as_ac_var=yes"
57619 else
57620 echo "$as_me: failed program was:" >&5
57621 sed 's/^/| /' conftest.$ac_ext >&5
57623 eval "$as_ac_var=no"
57625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57629 if test `eval echo '${'$as_ac_var'}'` = yes; then
57630 cat >>confdefs.h <<_ACEOF
57631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57632 _ACEOF
57634 else
57635 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
57637 done
57640 if test x$ac_cv_func_copysignl = x"yes"; then
57642 for ac_func in __signbitl
57644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57645 echo "$as_me:$LINENO: checking for $ac_func" >&5
57646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57647 if eval "test \"\${$as_ac_var+set}\" = set"; then
57648 echo $ECHO_N "(cached) $ECHO_C" >&6
57649 else
57650 if test x$gcc_no_link = xyes; then
57651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57653 { (exit 1); exit 1; }; }
57655 cat >conftest.$ac_ext <<_ACEOF
57656 #line $LINENO "configure"
57657 /* confdefs.h. */
57658 _ACEOF
57659 cat confdefs.h >>conftest.$ac_ext
57660 cat >>conftest.$ac_ext <<_ACEOF
57661 /* end confdefs.h. */
57662 /* System header to define __stub macros and hopefully few prototypes,
57663 which can conflict with char $ac_func (); below.
57664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57665 <limits.h> exists even on freestanding compilers. */
57666 #ifdef __STDC__
57667 # include <limits.h>
57668 #else
57669 # include <assert.h>
57670 #endif
57671 /* Override any gcc2 internal prototype to avoid an error. */
57672 #ifdef __cplusplus
57673 extern "C"
57675 #endif
57676 /* We use char because int might match the return type of a gcc2
57677 builtin and then its argument prototype would still apply. */
57678 char $ac_func ();
57679 /* The GNU C library defines this for functions which it implements
57680 to always fail with ENOSYS. Some functions are actually named
57681 something starting with __ and the normal name is an alias. */
57682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57683 choke me
57684 #else
57685 char (*f) () = $ac_func;
57686 #endif
57687 #ifdef __cplusplus
57689 #endif
57692 main ()
57694 return f != $ac_func;
57696 return 0;
57698 _ACEOF
57699 rm -f conftest.$ac_objext conftest$ac_exeext
57700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57701 (eval $ac_link) 2>&5
57702 ac_status=$?
57703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57704 (exit $ac_status); } &&
57705 { ac_try='test -s conftest$ac_exeext'
57706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57707 (eval $ac_try) 2>&5
57708 ac_status=$?
57709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57710 (exit $ac_status); }; }; then
57711 eval "$as_ac_var=yes"
57712 else
57713 echo "$as_me: failed program was:" >&5
57714 sed 's/^/| /' conftest.$ac_ext >&5
57716 eval "$as_ac_var=no"
57718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57722 if test `eval echo '${'$as_ac_var'}'` = yes; then
57723 cat >>confdefs.h <<_ACEOF
57724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57725 _ACEOF
57727 else
57728 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
57730 done
57734 # XXX Review this. Nothing uses it.
57735 if test -n "$LIBMATHOBJS"; then
57736 need_libmath=yes
57741 # Test wchar.h for mbstate_t, which is needed for char_traits and
57742 # others even if wchar_t support is not on.
57743 echo "$as_me:$LINENO: checking for mbstate_t" >&5
57744 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
57745 cat >conftest.$ac_ext <<_ACEOF
57746 #line $LINENO "configure"
57747 /* confdefs.h. */
57748 _ACEOF
57749 cat confdefs.h >>conftest.$ac_ext
57750 cat >>conftest.$ac_ext <<_ACEOF
57751 /* end confdefs.h. */
57752 #include <wchar.h>
57754 main ()
57756 mbstate_t teststate;
57758 return 0;
57760 _ACEOF
57761 rm -f conftest.$ac_objext
57762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57763 (eval $ac_compile) 2>&5
57764 ac_status=$?
57765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57766 (exit $ac_status); } &&
57767 { ac_try='test -s conftest.$ac_objext'
57768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57769 (eval $ac_try) 2>&5
57770 ac_status=$?
57771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57772 (exit $ac_status); }; }; then
57773 have_mbstate_t=yes
57774 else
57775 echo "$as_me: failed program was:" >&5
57776 sed 's/^/| /' conftest.$ac_ext >&5
57778 have_mbstate_t=no
57780 rm -f conftest.$ac_objext conftest.$ac_ext
57781 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
57782 echo "${ECHO_T}$have_mbstate_t" >&6
57783 if test x"$have_mbstate_t" = xyes; then
57784 cat >>confdefs.h <<\_ACEOF
57785 #define HAVE_MBSTATE_T 1
57786 _ACEOF
57790 # Sanity check for existence of ISO C99 headers for extended encoding.
57792 for ac_header in wchar.h
57794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57796 echo "$as_me:$LINENO: checking for $ac_header" >&5
57797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57799 echo $ECHO_N "(cached) $ECHO_C" >&6
57801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57803 else
57804 # Is the header compilable?
57805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57807 cat >conftest.$ac_ext <<_ACEOF
57808 #line $LINENO "configure"
57809 /* confdefs.h. */
57810 _ACEOF
57811 cat confdefs.h >>conftest.$ac_ext
57812 cat >>conftest.$ac_ext <<_ACEOF
57813 /* end confdefs.h. */
57814 $ac_includes_default
57815 #include <$ac_header>
57816 _ACEOF
57817 rm -f conftest.$ac_objext
57818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57819 (eval $ac_compile) 2>&5
57820 ac_status=$?
57821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57822 (exit $ac_status); } &&
57823 { ac_try='test -s conftest.$ac_objext'
57824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57825 (eval $ac_try) 2>&5
57826 ac_status=$?
57827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57828 (exit $ac_status); }; }; then
57829 ac_header_compiler=yes
57830 else
57831 echo "$as_me: failed program was:" >&5
57832 sed 's/^/| /' conftest.$ac_ext >&5
57834 ac_header_compiler=no
57836 rm -f conftest.$ac_objext conftest.$ac_ext
57837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57838 echo "${ECHO_T}$ac_header_compiler" >&6
57840 # Is the header present?
57841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57843 cat >conftest.$ac_ext <<_ACEOF
57844 #line $LINENO "configure"
57845 /* confdefs.h. */
57846 _ACEOF
57847 cat confdefs.h >>conftest.$ac_ext
57848 cat >>conftest.$ac_ext <<_ACEOF
57849 /* end confdefs.h. */
57850 #include <$ac_header>
57851 _ACEOF
57852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57854 ac_status=$?
57855 grep -v '^ *+' conftest.er1 >conftest.err
57856 rm -f conftest.er1
57857 cat conftest.err >&5
57858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57859 (exit $ac_status); } >/dev/null; then
57860 if test -s conftest.err; then
57861 ac_cpp_err=$ac_c_preproc_warn_flag
57862 else
57863 ac_cpp_err=
57865 else
57866 ac_cpp_err=yes
57868 if test -z "$ac_cpp_err"; then
57869 ac_header_preproc=yes
57870 else
57871 echo "$as_me: failed program was:" >&5
57872 sed 's/^/| /' conftest.$ac_ext >&5
57874 ac_header_preproc=no
57876 rm -f conftest.err conftest.$ac_ext
57877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57878 echo "${ECHO_T}$ac_header_preproc" >&6
57880 # So? What about this header?
57881 case $ac_header_compiler:$ac_header_preproc in
57882 yes:no )
57883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57888 cat <<\_ASBOX
57889 ## ------------------------------------ ##
57890 ## Report this to bug-autoconf@gnu.org. ##
57891 ## ------------------------------------ ##
57892 _ASBOX
57894 sed "s/^/$as_me: WARNING: /" >&2
57896 no:yes )
57897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57904 cat <<\_ASBOX
57905 ## ------------------------------------ ##
57906 ## Report this to bug-autoconf@gnu.org. ##
57907 ## ------------------------------------ ##
57908 _ASBOX
57910 sed "s/^/$as_me: WARNING: /" >&2
57912 esac
57913 echo "$as_me:$LINENO: checking for $ac_header" >&5
57914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57916 echo $ECHO_N "(cached) $ECHO_C" >&6
57917 else
57918 eval "$as_ac_Header=$ac_header_preproc"
57920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57925 cat >>confdefs.h <<_ACEOF
57926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57927 _ACEOF
57928 ac_has_wchar_h=yes
57929 else
57930 ac_has_wchar_h=no
57933 done
57936 for ac_header in wctype.h
57938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57940 echo "$as_me:$LINENO: checking for $ac_header" >&5
57941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57943 echo $ECHO_N "(cached) $ECHO_C" >&6
57945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57947 else
57948 # Is the header compilable?
57949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57951 cat >conftest.$ac_ext <<_ACEOF
57952 #line $LINENO "configure"
57953 /* confdefs.h. */
57954 _ACEOF
57955 cat confdefs.h >>conftest.$ac_ext
57956 cat >>conftest.$ac_ext <<_ACEOF
57957 /* end confdefs.h. */
57958 $ac_includes_default
57959 #include <$ac_header>
57960 _ACEOF
57961 rm -f conftest.$ac_objext
57962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57963 (eval $ac_compile) 2>&5
57964 ac_status=$?
57965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57966 (exit $ac_status); } &&
57967 { ac_try='test -s conftest.$ac_objext'
57968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57969 (eval $ac_try) 2>&5
57970 ac_status=$?
57971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57972 (exit $ac_status); }; }; then
57973 ac_header_compiler=yes
57974 else
57975 echo "$as_me: failed program was:" >&5
57976 sed 's/^/| /' conftest.$ac_ext >&5
57978 ac_header_compiler=no
57980 rm -f conftest.$ac_objext conftest.$ac_ext
57981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57982 echo "${ECHO_T}$ac_header_compiler" >&6
57984 # Is the header present?
57985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57987 cat >conftest.$ac_ext <<_ACEOF
57988 #line $LINENO "configure"
57989 /* confdefs.h. */
57990 _ACEOF
57991 cat confdefs.h >>conftest.$ac_ext
57992 cat >>conftest.$ac_ext <<_ACEOF
57993 /* end confdefs.h. */
57994 #include <$ac_header>
57995 _ACEOF
57996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57998 ac_status=$?
57999 grep -v '^ *+' conftest.er1 >conftest.err
58000 rm -f conftest.er1
58001 cat conftest.err >&5
58002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58003 (exit $ac_status); } >/dev/null; then
58004 if test -s conftest.err; then
58005 ac_cpp_err=$ac_c_preproc_warn_flag
58006 else
58007 ac_cpp_err=
58009 else
58010 ac_cpp_err=yes
58012 if test -z "$ac_cpp_err"; then
58013 ac_header_preproc=yes
58014 else
58015 echo "$as_me: failed program was:" >&5
58016 sed 's/^/| /' conftest.$ac_ext >&5
58018 ac_header_preproc=no
58020 rm -f conftest.err conftest.$ac_ext
58021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58022 echo "${ECHO_T}$ac_header_preproc" >&6
58024 # So? What about this header?
58025 case $ac_header_compiler:$ac_header_preproc in
58026 yes:no )
58027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58032 cat <<\_ASBOX
58033 ## ------------------------------------ ##
58034 ## Report this to bug-autoconf@gnu.org. ##
58035 ## ------------------------------------ ##
58036 _ASBOX
58038 sed "s/^/$as_me: WARNING: /" >&2
58040 no:yes )
58041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58048 cat <<\_ASBOX
58049 ## ------------------------------------ ##
58050 ## Report this to bug-autoconf@gnu.org. ##
58051 ## ------------------------------------ ##
58052 _ASBOX
58054 sed "s/^/$as_me: WARNING: /" >&2
58056 esac
58057 echo "$as_me:$LINENO: checking for $ac_header" >&5
58058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58060 echo $ECHO_N "(cached) $ECHO_C" >&6
58061 else
58062 eval "$as_ac_Header=$ac_header_preproc"
58064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58069 cat >>confdefs.h <<_ACEOF
58070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58071 _ACEOF
58072 ac_has_wctype_h=yes
58073 else
58074 ac_has_wctype_h=no
58077 done
58080 # Only continue checking if the ISO C99 headers exist and support is on.
58081 if test x"$ac_has_wchar_h" = xyes &&
58082 test x"$ac_has_wctype_h" = xyes &&
58083 test x"$enable_c_mbchar" != xno; then
58085 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
58086 # numeric_limits can instantiate type_traits<wchar_t>
58087 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
58088 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
58089 cat >conftest.$ac_ext <<_ACEOF
58090 #line $LINENO "configure"
58091 /* confdefs.h. */
58092 _ACEOF
58093 cat confdefs.h >>conftest.$ac_ext
58094 cat >>conftest.$ac_ext <<_ACEOF
58095 /* end confdefs.h. */
58096 #include <wchar.h>
58098 main ()
58100 int i = WCHAR_MIN; int j = WCHAR_MAX;
58102 return 0;
58104 _ACEOF
58105 rm -f conftest.$ac_objext
58106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58107 (eval $ac_compile) 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 has_wchar_minmax=yes
58118 else
58119 echo "$as_me: failed program was:" >&5
58120 sed 's/^/| /' conftest.$ac_ext >&5
58122 has_wchar_minmax=no
58124 rm -f conftest.$ac_objext conftest.$ac_ext
58125 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
58126 echo "${ECHO_T}$has_wchar_minmax" >&6
58128 # Test wchar.h for WEOF, which is what we use to determine whether
58129 # to specialize for char_traits<wchar_t> or not.
58130 echo "$as_me:$LINENO: checking for WEOF" >&5
58131 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
58132 cat >conftest.$ac_ext <<_ACEOF
58133 #line $LINENO "configure"
58134 /* confdefs.h. */
58135 _ACEOF
58136 cat confdefs.h >>conftest.$ac_ext
58137 cat >>conftest.$ac_ext <<_ACEOF
58138 /* end confdefs.h. */
58140 #include <wchar.h>
58141 #include <stddef.h>
58143 main ()
58145 wint_t i = WEOF;
58147 return 0;
58149 _ACEOF
58150 rm -f conftest.$ac_objext
58151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58152 (eval $ac_compile) 2>&5
58153 ac_status=$?
58154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58155 (exit $ac_status); } &&
58156 { ac_try='test -s conftest.$ac_objext'
58157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58158 (eval $ac_try) 2>&5
58159 ac_status=$?
58160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58161 (exit $ac_status); }; }; then
58162 has_weof=yes
58163 else
58164 echo "$as_me: failed program was:" >&5
58165 sed 's/^/| /' conftest.$ac_ext >&5
58167 has_weof=no
58169 rm -f conftest.$ac_objext conftest.$ac_ext
58170 echo "$as_me:$LINENO: result: $has_weof" >&5
58171 echo "${ECHO_T}$has_weof" >&6
58173 # Tests for wide character functions used in char_traits<wchar_t>.
58174 ac_wfuncs=yes
58181 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
58183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58184 echo "$as_me:$LINENO: checking for $ac_func" >&5
58185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58186 if eval "test \"\${$as_ac_var+set}\" = set"; then
58187 echo $ECHO_N "(cached) $ECHO_C" >&6
58188 else
58189 if test x$gcc_no_link = xyes; then
58190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58192 { (exit 1); exit 1; }; }
58194 cat >conftest.$ac_ext <<_ACEOF
58195 #line $LINENO "configure"
58196 /* confdefs.h. */
58197 _ACEOF
58198 cat confdefs.h >>conftest.$ac_ext
58199 cat >>conftest.$ac_ext <<_ACEOF
58200 /* end confdefs.h. */
58201 /* System header to define __stub macros and hopefully few prototypes,
58202 which can conflict with char $ac_func (); below.
58203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58204 <limits.h> exists even on freestanding compilers. */
58205 #ifdef __STDC__
58206 # include <limits.h>
58207 #else
58208 # include <assert.h>
58209 #endif
58210 /* Override any gcc2 internal prototype to avoid an error. */
58211 #ifdef __cplusplus
58212 extern "C"
58214 #endif
58215 /* We use char because int might match the return type of a gcc2
58216 builtin and then its argument prototype would still apply. */
58217 char $ac_func ();
58218 /* The GNU C library defines this for functions which it implements
58219 to always fail with ENOSYS. Some functions are actually named
58220 something starting with __ and the normal name is an alias. */
58221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58222 choke me
58223 #else
58224 char (*f) () = $ac_func;
58225 #endif
58226 #ifdef __cplusplus
58228 #endif
58231 main ()
58233 return f != $ac_func;
58235 return 0;
58237 _ACEOF
58238 rm -f conftest.$ac_objext conftest$ac_exeext
58239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58240 (eval $ac_link) 2>&5
58241 ac_status=$?
58242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58243 (exit $ac_status); } &&
58244 { ac_try='test -s conftest$ac_exeext'
58245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58246 (eval $ac_try) 2>&5
58247 ac_status=$?
58248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58249 (exit $ac_status); }; }; then
58250 eval "$as_ac_var=yes"
58251 else
58252 echo "$as_me: failed program was:" >&5
58253 sed 's/^/| /' conftest.$ac_ext >&5
58255 eval "$as_ac_var=no"
58257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58261 if test `eval echo '${'$as_ac_var'}'` = yes; then
58262 cat >>confdefs.h <<_ACEOF
58263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58264 _ACEOF
58266 else
58267 ac_wfuncs=no
58269 done
58272 # Checks for names injected into std:: by the c_std headers.
58319 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
58320 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
58321 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
58322 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
58323 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
58324 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
58326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58327 echo "$as_me:$LINENO: checking for $ac_func" >&5
58328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58329 if eval "test \"\${$as_ac_var+set}\" = set"; then
58330 echo $ECHO_N "(cached) $ECHO_C" >&6
58331 else
58332 if test x$gcc_no_link = xyes; then
58333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58335 { (exit 1); exit 1; }; }
58337 cat >conftest.$ac_ext <<_ACEOF
58338 #line $LINENO "configure"
58339 /* confdefs.h. */
58340 _ACEOF
58341 cat confdefs.h >>conftest.$ac_ext
58342 cat >>conftest.$ac_ext <<_ACEOF
58343 /* end confdefs.h. */
58344 /* System header to define __stub macros and hopefully few prototypes,
58345 which can conflict with char $ac_func (); below.
58346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58347 <limits.h> exists even on freestanding compilers. */
58348 #ifdef __STDC__
58349 # include <limits.h>
58350 #else
58351 # include <assert.h>
58352 #endif
58353 /* Override any gcc2 internal prototype to avoid an error. */
58354 #ifdef __cplusplus
58355 extern "C"
58357 #endif
58358 /* We use char because int might match the return type of a gcc2
58359 builtin and then its argument prototype would still apply. */
58360 char $ac_func ();
58361 /* The GNU C library defines this for functions which it implements
58362 to always fail with ENOSYS. Some functions are actually named
58363 something starting with __ and the normal name is an alias. */
58364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58365 choke me
58366 #else
58367 char (*f) () = $ac_func;
58368 #endif
58369 #ifdef __cplusplus
58371 #endif
58374 main ()
58376 return f != $ac_func;
58378 return 0;
58380 _ACEOF
58381 rm -f conftest.$ac_objext conftest$ac_exeext
58382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58383 (eval $ac_link) 2>&5
58384 ac_status=$?
58385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58386 (exit $ac_status); } &&
58387 { ac_try='test -s conftest$ac_exeext'
58388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58389 (eval $ac_try) 2>&5
58390 ac_status=$?
58391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58392 (exit $ac_status); }; }; then
58393 eval "$as_ac_var=yes"
58394 else
58395 echo "$as_me: failed program was:" >&5
58396 sed 's/^/| /' conftest.$ac_ext >&5
58398 eval "$as_ac_var=no"
58400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58404 if test `eval echo '${'$as_ac_var'}'` = yes; then
58405 cat >>confdefs.h <<_ACEOF
58406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58407 _ACEOF
58409 else
58410 ac_wfuncs=no
58412 done
58415 # Checks for wide character functions that are not required
58416 # for basic wchar_t support. Don't disable support if they are missing.
58417 # Injection of these is wrapped with guard macros.
58423 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
58425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58426 echo "$as_me:$LINENO: checking for $ac_func" >&5
58427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58428 if eval "test \"\${$as_ac_var+set}\" = set"; then
58429 echo $ECHO_N "(cached) $ECHO_C" >&6
58430 else
58431 if test x$gcc_no_link = xyes; then
58432 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58433 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58434 { (exit 1); exit 1; }; }
58436 cat >conftest.$ac_ext <<_ACEOF
58437 #line $LINENO "configure"
58438 /* confdefs.h. */
58439 _ACEOF
58440 cat confdefs.h >>conftest.$ac_ext
58441 cat >>conftest.$ac_ext <<_ACEOF
58442 /* end confdefs.h. */
58443 /* System header to define __stub macros and hopefully few prototypes,
58444 which can conflict with char $ac_func (); below.
58445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58446 <limits.h> exists even on freestanding compilers. */
58447 #ifdef __STDC__
58448 # include <limits.h>
58449 #else
58450 # include <assert.h>
58451 #endif
58452 /* Override any gcc2 internal prototype to avoid an error. */
58453 #ifdef __cplusplus
58454 extern "C"
58456 #endif
58457 /* We use char because int might match the return type of a gcc2
58458 builtin and then its argument prototype would still apply. */
58459 char $ac_func ();
58460 /* The GNU C library defines this for functions which it implements
58461 to always fail with ENOSYS. Some functions are actually named
58462 something starting with __ and the normal name is an alias. */
58463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58464 choke me
58465 #else
58466 char (*f) () = $ac_func;
58467 #endif
58468 #ifdef __cplusplus
58470 #endif
58473 main ()
58475 return f != $ac_func;
58477 return 0;
58479 _ACEOF
58480 rm -f conftest.$ac_objext conftest$ac_exeext
58481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58482 (eval $ac_link) 2>&5
58483 ac_status=$?
58484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58485 (exit $ac_status); } &&
58486 { ac_try='test -s conftest$ac_exeext'
58487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58488 (eval $ac_try) 2>&5
58489 ac_status=$?
58490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58491 (exit $ac_status); }; }; then
58492 eval "$as_ac_var=yes"
58493 else
58494 echo "$as_me: failed program was:" >&5
58495 sed 's/^/| /' conftest.$ac_ext >&5
58497 eval "$as_ac_var=no"
58499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58503 if test `eval echo '${'$as_ac_var'}'` = yes; then
58504 cat >>confdefs.h <<_ACEOF
58505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58506 _ACEOF
58509 done
58512 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
58513 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
58514 if test x"$has_weof" = xyes &&
58515 test x"$has_wchar_minmax" = xyes &&
58516 test x"$ac_wfuncs" = xyes;
58517 then
58518 ac_isoC99_wchar_t=yes
58519 else
58520 ac_isoC99_wchar_t=no
58522 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
58523 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
58525 # Use iconv for wchar_t to char conversions. As such, check for
58526 # X/Open Portability Guide, version 2 features (XPG2).
58527 if test "${ac_cv_header_iconv_h+set}" = set; then
58528 echo "$as_me:$LINENO: checking for iconv.h" >&5
58529 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
58530 if test "${ac_cv_header_iconv_h+set}" = set; then
58531 echo $ECHO_N "(cached) $ECHO_C" >&6
58533 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
58534 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
58535 else
58536 # Is the header compilable?
58537 echo "$as_me:$LINENO: checking iconv.h usability" >&5
58538 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
58539 cat >conftest.$ac_ext <<_ACEOF
58540 #line $LINENO "configure"
58541 /* confdefs.h. */
58542 _ACEOF
58543 cat confdefs.h >>conftest.$ac_ext
58544 cat >>conftest.$ac_ext <<_ACEOF
58545 /* end confdefs.h. */
58546 $ac_includes_default
58547 #include <iconv.h>
58548 _ACEOF
58549 rm -f conftest.$ac_objext
58550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58551 (eval $ac_compile) 2>&5
58552 ac_status=$?
58553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58554 (exit $ac_status); } &&
58555 { ac_try='test -s conftest.$ac_objext'
58556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58557 (eval $ac_try) 2>&5
58558 ac_status=$?
58559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58560 (exit $ac_status); }; }; then
58561 ac_header_compiler=yes
58562 else
58563 echo "$as_me: failed program was:" >&5
58564 sed 's/^/| /' conftest.$ac_ext >&5
58566 ac_header_compiler=no
58568 rm -f conftest.$ac_objext conftest.$ac_ext
58569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58570 echo "${ECHO_T}$ac_header_compiler" >&6
58572 # Is the header present?
58573 echo "$as_me:$LINENO: checking iconv.h presence" >&5
58574 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
58575 cat >conftest.$ac_ext <<_ACEOF
58576 #line $LINENO "configure"
58577 /* confdefs.h. */
58578 _ACEOF
58579 cat confdefs.h >>conftest.$ac_ext
58580 cat >>conftest.$ac_ext <<_ACEOF
58581 /* end confdefs.h. */
58582 #include <iconv.h>
58583 _ACEOF
58584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58586 ac_status=$?
58587 grep -v '^ *+' conftest.er1 >conftest.err
58588 rm -f conftest.er1
58589 cat conftest.err >&5
58590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58591 (exit $ac_status); } >/dev/null; then
58592 if test -s conftest.err; then
58593 ac_cpp_err=$ac_c_preproc_warn_flag
58594 else
58595 ac_cpp_err=
58597 else
58598 ac_cpp_err=yes
58600 if test -z "$ac_cpp_err"; then
58601 ac_header_preproc=yes
58602 else
58603 echo "$as_me: failed program was:" >&5
58604 sed 's/^/| /' conftest.$ac_ext >&5
58606 ac_header_preproc=no
58608 rm -f conftest.err conftest.$ac_ext
58609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58610 echo "${ECHO_T}$ac_header_preproc" >&6
58612 # So? What about this header?
58613 case $ac_header_compiler:$ac_header_preproc in
58614 yes:no )
58615 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
58616 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
58617 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
58618 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
58620 cat <<\_ASBOX
58621 ## ------------------------------------ ##
58622 ## Report this to bug-autoconf@gnu.org. ##
58623 ## ------------------------------------ ##
58624 _ASBOX
58626 sed "s/^/$as_me: WARNING: /" >&2
58628 no:yes )
58629 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
58630 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
58631 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
58632 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
58633 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
58634 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
58636 cat <<\_ASBOX
58637 ## ------------------------------------ ##
58638 ## Report this to bug-autoconf@gnu.org. ##
58639 ## ------------------------------------ ##
58640 _ASBOX
58642 sed "s/^/$as_me: WARNING: /" >&2
58644 esac
58645 echo "$as_me:$LINENO: checking for iconv.h" >&5
58646 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
58647 if test "${ac_cv_header_iconv_h+set}" = set; then
58648 echo $ECHO_N "(cached) $ECHO_C" >&6
58649 else
58650 ac_cv_header_iconv_h=$ac_header_preproc
58652 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
58653 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
58656 if test $ac_cv_header_iconv_h = yes; then
58657 ac_has_iconv_h=yes
58658 else
58659 ac_has_iconv_h=no
58663 if test "${ac_cv_header_langinfo_h+set}" = set; then
58664 echo "$as_me:$LINENO: checking for langinfo.h" >&5
58665 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
58666 if test "${ac_cv_header_langinfo_h+set}" = set; then
58667 echo $ECHO_N "(cached) $ECHO_C" >&6
58669 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
58670 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
58671 else
58672 # Is the header compilable?
58673 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
58674 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
58675 cat >conftest.$ac_ext <<_ACEOF
58676 #line $LINENO "configure"
58677 /* confdefs.h. */
58678 _ACEOF
58679 cat confdefs.h >>conftest.$ac_ext
58680 cat >>conftest.$ac_ext <<_ACEOF
58681 /* end confdefs.h. */
58682 $ac_includes_default
58683 #include <langinfo.h>
58684 _ACEOF
58685 rm -f conftest.$ac_objext
58686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58687 (eval $ac_compile) 2>&5
58688 ac_status=$?
58689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58690 (exit $ac_status); } &&
58691 { ac_try='test -s conftest.$ac_objext'
58692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58693 (eval $ac_try) 2>&5
58694 ac_status=$?
58695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58696 (exit $ac_status); }; }; then
58697 ac_header_compiler=yes
58698 else
58699 echo "$as_me: failed program was:" >&5
58700 sed 's/^/| /' conftest.$ac_ext >&5
58702 ac_header_compiler=no
58704 rm -f conftest.$ac_objext conftest.$ac_ext
58705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58706 echo "${ECHO_T}$ac_header_compiler" >&6
58708 # Is the header present?
58709 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
58710 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
58711 cat >conftest.$ac_ext <<_ACEOF
58712 #line $LINENO "configure"
58713 /* confdefs.h. */
58714 _ACEOF
58715 cat confdefs.h >>conftest.$ac_ext
58716 cat >>conftest.$ac_ext <<_ACEOF
58717 /* end confdefs.h. */
58718 #include <langinfo.h>
58719 _ACEOF
58720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58722 ac_status=$?
58723 grep -v '^ *+' conftest.er1 >conftest.err
58724 rm -f conftest.er1
58725 cat conftest.err >&5
58726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58727 (exit $ac_status); } >/dev/null; then
58728 if test -s conftest.err; then
58729 ac_cpp_err=$ac_c_preproc_warn_flag
58730 else
58731 ac_cpp_err=
58733 else
58734 ac_cpp_err=yes
58736 if test -z "$ac_cpp_err"; then
58737 ac_header_preproc=yes
58738 else
58739 echo "$as_me: failed program was:" >&5
58740 sed 's/^/| /' conftest.$ac_ext >&5
58742 ac_header_preproc=no
58744 rm -f conftest.err conftest.$ac_ext
58745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58746 echo "${ECHO_T}$ac_header_preproc" >&6
58748 # So? What about this header?
58749 case $ac_header_compiler:$ac_header_preproc in
58750 yes:no )
58751 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
58752 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
58753 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
58754 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
58756 cat <<\_ASBOX
58757 ## ------------------------------------ ##
58758 ## Report this to bug-autoconf@gnu.org. ##
58759 ## ------------------------------------ ##
58760 _ASBOX
58762 sed "s/^/$as_me: WARNING: /" >&2
58764 no:yes )
58765 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
58766 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
58767 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
58768 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
58769 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
58770 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
58772 cat <<\_ASBOX
58773 ## ------------------------------------ ##
58774 ## Report this to bug-autoconf@gnu.org. ##
58775 ## ------------------------------------ ##
58776 _ASBOX
58778 sed "s/^/$as_me: WARNING: /" >&2
58780 esac
58781 echo "$as_me:$LINENO: checking for langinfo.h" >&5
58782 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
58783 if test "${ac_cv_header_langinfo_h+set}" = set; then
58784 echo $ECHO_N "(cached) $ECHO_C" >&6
58785 else
58786 ac_cv_header_langinfo_h=$ac_header_preproc
58788 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
58789 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
58792 if test $ac_cv_header_langinfo_h = yes; then
58793 ac_has_langinfo_h=yes
58794 else
58795 ac_has_langinfo_h=no
58800 # Check for existence of libiconv.a providing XPG2 wchar_t support.
58801 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
58802 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
58803 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
58804 echo $ECHO_N "(cached) $ECHO_C" >&6
58805 else
58806 ac_check_lib_save_LIBS=$LIBS
58807 LIBS="-liconv $LIBS"
58808 if test x$gcc_no_link = xyes; then
58809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58811 { (exit 1); exit 1; }; }
58813 cat >conftest.$ac_ext <<_ACEOF
58814 #line $LINENO "configure"
58815 /* confdefs.h. */
58816 _ACEOF
58817 cat confdefs.h >>conftest.$ac_ext
58818 cat >>conftest.$ac_ext <<_ACEOF
58819 /* end confdefs.h. */
58821 /* Override any gcc2 internal prototype to avoid an error. */
58822 #ifdef __cplusplus
58823 extern "C"
58824 #endif
58825 /* We use char because int might match the return type of a gcc2
58826 builtin and then its argument prototype would still apply. */
58827 char iconv ();
58829 main ()
58831 iconv ();
58833 return 0;
58835 _ACEOF
58836 rm -f conftest.$ac_objext conftest$ac_exeext
58837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58838 (eval $ac_link) 2>&5
58839 ac_status=$?
58840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58841 (exit $ac_status); } &&
58842 { ac_try='test -s conftest$ac_exeext'
58843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58844 (eval $ac_try) 2>&5
58845 ac_status=$?
58846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58847 (exit $ac_status); }; }; then
58848 ac_cv_lib_iconv_iconv=yes
58849 else
58850 echo "$as_me: failed program was:" >&5
58851 sed 's/^/| /' conftest.$ac_ext >&5
58853 ac_cv_lib_iconv_iconv=no
58855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58856 LIBS=$ac_check_lib_save_LIBS
58858 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
58859 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
58860 if test $ac_cv_lib_iconv_iconv = yes; then
58861 libiconv="-liconv"
58864 ac_save_LIBS="$LIBS"
58865 LIBS="$LIBS $libiconv"
58871 for ac_func in iconv_open iconv_close iconv nl_langinfo
58873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58874 echo "$as_me:$LINENO: checking for $ac_func" >&5
58875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58876 if eval "test \"\${$as_ac_var+set}\" = set"; then
58877 echo $ECHO_N "(cached) $ECHO_C" >&6
58878 else
58879 if test x$gcc_no_link = xyes; then
58880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58882 { (exit 1); exit 1; }; }
58884 cat >conftest.$ac_ext <<_ACEOF
58885 #line $LINENO "configure"
58886 /* confdefs.h. */
58887 _ACEOF
58888 cat confdefs.h >>conftest.$ac_ext
58889 cat >>conftest.$ac_ext <<_ACEOF
58890 /* end confdefs.h. */
58891 /* System header to define __stub macros and hopefully few prototypes,
58892 which can conflict with char $ac_func (); below.
58893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58894 <limits.h> exists even on freestanding compilers. */
58895 #ifdef __STDC__
58896 # include <limits.h>
58897 #else
58898 # include <assert.h>
58899 #endif
58900 /* Override any gcc2 internal prototype to avoid an error. */
58901 #ifdef __cplusplus
58902 extern "C"
58904 #endif
58905 /* We use char because int might match the return type of a gcc2
58906 builtin and then its argument prototype would still apply. */
58907 char $ac_func ();
58908 /* The GNU C library defines this for functions which it implements
58909 to always fail with ENOSYS. Some functions are actually named
58910 something starting with __ and the normal name is an alias. */
58911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58912 choke me
58913 #else
58914 char (*f) () = $ac_func;
58915 #endif
58916 #ifdef __cplusplus
58918 #endif
58921 main ()
58923 return f != $ac_func;
58925 return 0;
58927 _ACEOF
58928 rm -f conftest.$ac_objext conftest$ac_exeext
58929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58930 (eval $ac_link) 2>&5
58931 ac_status=$?
58932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58933 (exit $ac_status); } &&
58934 { ac_try='test -s conftest$ac_exeext'
58935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58936 (eval $ac_try) 2>&5
58937 ac_status=$?
58938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58939 (exit $ac_status); }; }; then
58940 eval "$as_ac_var=yes"
58941 else
58942 echo "$as_me: failed program was:" >&5
58943 sed 's/^/| /' conftest.$ac_ext >&5
58945 eval "$as_ac_var=no"
58947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58951 if test `eval echo '${'$as_ac_var'}'` = yes; then
58952 cat >>confdefs.h <<_ACEOF
58953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58954 _ACEOF
58955 ac_XPG2funcs=yes
58956 else
58957 ac_XPG2funcs=no
58959 done
58962 LIBS="$ac_save_LIBS"
58964 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
58965 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
58966 if test x"$ac_has_iconv_h" = xyes &&
58967 test x"$ac_has_langinfo_h" = xyes &&
58968 test x"$ac_XPG2funcs" = xyes;
58969 then
58970 ac_XPG2_wchar_t=yes
58971 else
58972 ac_XPG2_wchar_t=no
58974 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
58975 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
58977 # At the moment, only enable wchar_t specializations if all the
58978 # above support is present.
58979 if test x"$ac_isoC99_wchar_t" = xyes &&
58980 test x"$ac_XPG2_wchar_t" = xyes;
58981 then
58982 cat >>confdefs.h <<\_ACEOF
58983 #define _GLIBCXX_USE_WCHAR_T 1
58984 _ACEOF
58986 enable_wchar_t=yes
58989 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
58990 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
58991 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
58992 echo "${ECHO_T}$enable_wchar_t" >&6
58994 cat >>confdefs.h <<\_ACEOF
58995 #define HAVE_COSF 1
58996 _ACEOF
58998 cat >>confdefs.h <<\_ACEOF
58999 #define HAVE_COSL 1
59000 _ACEOF
59002 cat >>confdefs.h <<\_ACEOF
59003 #define HAVE_COSHF 1
59004 _ACEOF
59006 cat >>confdefs.h <<\_ACEOF
59007 #define HAVE_COSHL 1
59008 _ACEOF
59010 cat >>confdefs.h <<\_ACEOF
59011 #define HAVE_LOGF 1
59012 _ACEOF
59014 cat >>confdefs.h <<\_ACEOF
59015 #define HAVE_LOGL 1
59016 _ACEOF
59018 cat >>confdefs.h <<\_ACEOF
59019 #define HAVE_LOG10F 1
59020 _ACEOF
59022 cat >>confdefs.h <<\_ACEOF
59023 #define HAVE_LOG10L 1
59024 _ACEOF
59026 cat >>confdefs.h <<\_ACEOF
59027 #define HAVE_SINF 1
59028 _ACEOF
59030 cat >>confdefs.h <<\_ACEOF
59031 #define HAVE_SINL 1
59032 _ACEOF
59034 cat >>confdefs.h <<\_ACEOF
59035 #define HAVE_SINHF 1
59036 _ACEOF
59038 cat >>confdefs.h <<\_ACEOF
59039 #define HAVE_SINHL 1
59040 _ACEOF
59043 *-solaris*)
59044 case "$target" in
59045 # *-solaris2.5)
59046 # os_include_dir="os/solaris/solaris2.5"
59047 # ;;
59048 # *-solaris2.6)
59049 # os_include_dir="os/solaris/solaris2.6"
59050 # ;;
59051 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
59052 cat >>confdefs.h <<\_ACEOF
59053 #define HAVE_GETPAGESIZE 1
59054 _ACEOF
59056 cat >>confdefs.h <<\_ACEOF
59057 #define HAVE_SIGSETJMP 1
59058 _ACEOF
59060 cat >>confdefs.h <<\_ACEOF
59061 #define HAVE_MBSTATE_T 1
59062 _ACEOF
59064 cat >>confdefs.h <<\_ACEOF
59065 #define HAVE_POLL 1
59066 _ACEOF
59068 cat >>confdefs.h <<\_ACEOF
59069 #define HAVE_S_ISREG 1
59070 _ACEOF
59072 cat >>confdefs.h <<\_ACEOF
59073 #define HAVE_LC_MESSAGES 1
59074 _ACEOF
59076 cat >>confdefs.h <<\_ACEOF
59077 #define HAVE_BTOWC 1
59078 _ACEOF
59080 cat >>confdefs.h <<\_ACEOF
59081 #define HAVE_DRAND48 1
59082 _ACEOF
59084 cat >>confdefs.h <<\_ACEOF
59085 #define HAVE_FGETWC 1
59086 _ACEOF
59088 cat >>confdefs.h <<\_ACEOF
59089 #define HAVE_FGETWS 1
59090 _ACEOF
59092 cat >>confdefs.h <<\_ACEOF
59093 #define HAVE_FINITE 1
59094 _ACEOF
59096 cat >>confdefs.h <<\_ACEOF
59097 #define HAVE_FPCLASS 1
59098 _ACEOF
59100 cat >>confdefs.h <<\_ACEOF
59101 #define HAVE_FPUTWC 1
59102 _ACEOF
59104 cat >>confdefs.h <<\_ACEOF
59105 #define HAVE_FPUTWS 1
59106 _ACEOF
59108 cat >>confdefs.h <<\_ACEOF
59109 #define HAVE_FWIDE 1
59110 _ACEOF
59112 cat >>confdefs.h <<\_ACEOF
59113 #define HAVE_FWPRINTF 1
59114 _ACEOF
59116 cat >>confdefs.h <<\_ACEOF
59117 #define HAVE_FWSCANF 1
59118 _ACEOF
59120 cat >>confdefs.h <<\_ACEOF
59121 #define HAVE_GETPAGESIZE 1
59122 _ACEOF
59124 cat >>confdefs.h <<\_ACEOF
59125 #define HAVE_GETWC 1
59126 _ACEOF
59128 cat >>confdefs.h <<\_ACEOF
59129 #define HAVE_GETWCHAR 1
59130 _ACEOF
59132 cat >>confdefs.h <<\_ACEOF
59133 #define HAVE_MBRLEN 1
59134 _ACEOF
59136 cat >>confdefs.h <<\_ACEOF
59137 #define HAVE_MBRTOWC 1
59138 _ACEOF
59140 cat >>confdefs.h <<\_ACEOF
59141 #define HAVE_MBSINIT 1
59142 _ACEOF
59144 cat >>confdefs.h <<\_ACEOF
59145 #define HAVE_MBSRTOWCS 1
59146 _ACEOF
59148 cat >>confdefs.h <<\_ACEOF
59149 #define HAVE_NL_LANGINFO 1
59150 _ACEOF
59152 cat >>confdefs.h <<\_ACEOF
59153 #define HAVE_PUTWC 1
59154 _ACEOF
59156 cat >>confdefs.h <<\_ACEOF
59157 #define HAVE_PUTWCHAR 1
59158 _ACEOF
59160 cat >>confdefs.h <<\_ACEOF
59161 #define HAVE_SWPRINTF 1
59162 _ACEOF
59164 cat >>confdefs.h <<\_ACEOF
59165 #define HAVE_SWSCANF 1
59166 _ACEOF
59168 cat >>confdefs.h <<\_ACEOF
59169 #define HAVE_UNGETWC 1
59170 _ACEOF
59172 cat >>confdefs.h <<\_ACEOF
59173 #define HAVE_VFWPRINTF 1
59174 _ACEOF
59176 cat >>confdefs.h <<\_ACEOF
59177 #define HAVE_VSWPRINTF 1
59178 _ACEOF
59180 cat >>confdefs.h <<\_ACEOF
59181 #define HAVE_VWPRINTF 1
59182 _ACEOF
59184 cat >>confdefs.h <<\_ACEOF
59185 #define HAVE_WCRTOMB 1
59186 _ACEOF
59188 cat >>confdefs.h <<\_ACEOF
59189 #define HAVE_WCSCAT 1
59190 _ACEOF
59192 cat >>confdefs.h <<\_ACEOF
59193 #define HAVE_WCSCHR 1
59194 _ACEOF
59196 cat >>confdefs.h <<\_ACEOF
59197 #define HAVE_WCSCMP 1
59198 _ACEOF
59200 cat >>confdefs.h <<\_ACEOF
59201 #define HAVE_WCSCOLL 1
59202 _ACEOF
59204 cat >>confdefs.h <<\_ACEOF
59205 #define HAVE_WCSCPY 1
59206 _ACEOF
59208 cat >>confdefs.h <<\_ACEOF
59209 #define HAVE_WCSCSPN 1
59210 _ACEOF
59212 cat >>confdefs.h <<\_ACEOF
59213 #define HAVE_WCSFTIME 1
59214 _ACEOF
59216 cat >>confdefs.h <<\_ACEOF
59217 #define HAVE_WCSLEN 1
59218 _ACEOF
59220 cat >>confdefs.h <<\_ACEOF
59221 #define HAVE_WCSNCAT 1
59222 _ACEOF
59224 cat >>confdefs.h <<\_ACEOF
59225 #define HAVE_WCSNCMP 1
59226 _ACEOF
59228 cat >>confdefs.h <<\_ACEOF
59229 #define HAVE_WCSNCPY 1
59230 _ACEOF
59232 cat >>confdefs.h <<\_ACEOF
59233 #define HAVE_WCSPBRK 1
59234 _ACEOF
59236 cat >>confdefs.h <<\_ACEOF
59237 #define HAVE_WCSRCHR 1
59238 _ACEOF
59240 cat >>confdefs.h <<\_ACEOF
59241 #define HAVE_WCSRTOMBS 1
59242 _ACEOF
59244 cat >>confdefs.h <<\_ACEOF
59245 #define HAVE_WCSSPN 1
59246 _ACEOF
59248 cat >>confdefs.h <<\_ACEOF
59249 #define HAVE_WCSSTR 1
59250 _ACEOF
59252 cat >>confdefs.h <<\_ACEOF
59253 #define HAVE_WCSTOD 1
59254 _ACEOF
59256 cat >>confdefs.h <<\_ACEOF
59257 #define HAVE_WCSTOK 1
59258 _ACEOF
59260 cat >>confdefs.h <<\_ACEOF
59261 #define HAVE_WCSTOL 1
59262 _ACEOF
59264 cat >>confdefs.h <<\_ACEOF
59265 #define HAVE_WCSTOUL 1
59266 _ACEOF
59268 cat >>confdefs.h <<\_ACEOF
59269 #define HAVE_WCSXFRM 1
59270 _ACEOF
59272 cat >>confdefs.h <<\_ACEOF
59273 #define HAVE_WCTOB 1
59274 _ACEOF
59276 cat >>confdefs.h <<\_ACEOF
59277 #define HAVE_WMEMCHR 1
59278 _ACEOF
59280 cat >>confdefs.h <<\_ACEOF
59281 #define HAVE_WMEMCMP 1
59282 _ACEOF
59284 cat >>confdefs.h <<\_ACEOF
59285 #define HAVE_WMEMCPY 1
59286 _ACEOF
59288 cat >>confdefs.h <<\_ACEOF
59289 #define HAVE_WMEMMOVE 1
59290 _ACEOF
59292 cat >>confdefs.h <<\_ACEOF
59293 #define HAVE_WMEMSET 1
59294 _ACEOF
59296 cat >>confdefs.h <<\_ACEOF
59297 #define HAVE_WPRINTF 1
59298 _ACEOF
59300 cat >>confdefs.h <<\_ACEOF
59301 #define HAVE_WSCANF 1
59302 _ACEOF
59304 cat >>confdefs.h <<\_ACEOF
59305 #define HAVE_ICONV 1
59306 _ACEOF
59308 cat >>confdefs.h <<\_ACEOF
59309 #define HAVE_ICONV_CLOSE 1
59310 _ACEOF
59312 cat >>confdefs.h <<\_ACEOF
59313 #define HAVE_ICONV_OPEN 1
59314 _ACEOF
59316 # Look for the pieces required for wchar_t support in order to
59317 # get all the right HAVE_* macros defined.
59319 # Test wchar.h for mbstate_t, which is needed for char_traits and
59320 # others even if wchar_t support is not on.
59321 echo "$as_me:$LINENO: checking for mbstate_t" >&5
59322 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
59323 cat >conftest.$ac_ext <<_ACEOF
59324 #line $LINENO "configure"
59325 /* confdefs.h. */
59326 _ACEOF
59327 cat confdefs.h >>conftest.$ac_ext
59328 cat >>conftest.$ac_ext <<_ACEOF
59329 /* end confdefs.h. */
59330 #include <wchar.h>
59332 main ()
59334 mbstate_t teststate;
59336 return 0;
59338 _ACEOF
59339 rm -f conftest.$ac_objext
59340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59341 (eval $ac_compile) 2>&5
59342 ac_status=$?
59343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59344 (exit $ac_status); } &&
59345 { ac_try='test -s conftest.$ac_objext'
59346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59347 (eval $ac_try) 2>&5
59348 ac_status=$?
59349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59350 (exit $ac_status); }; }; then
59351 have_mbstate_t=yes
59352 else
59353 echo "$as_me: failed program was:" >&5
59354 sed 's/^/| /' conftest.$ac_ext >&5
59356 have_mbstate_t=no
59358 rm -f conftest.$ac_objext conftest.$ac_ext
59359 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
59360 echo "${ECHO_T}$have_mbstate_t" >&6
59361 if test x"$have_mbstate_t" = xyes; then
59362 cat >>confdefs.h <<\_ACEOF
59363 #define HAVE_MBSTATE_T 1
59364 _ACEOF
59368 # Sanity check for existence of ISO C99 headers for extended encoding.
59370 for ac_header in wchar.h
59372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59374 echo "$as_me:$LINENO: checking for $ac_header" >&5
59375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59377 echo $ECHO_N "(cached) $ECHO_C" >&6
59379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59381 else
59382 # Is the header compilable?
59383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59385 cat >conftest.$ac_ext <<_ACEOF
59386 #line $LINENO "configure"
59387 /* confdefs.h. */
59388 _ACEOF
59389 cat confdefs.h >>conftest.$ac_ext
59390 cat >>conftest.$ac_ext <<_ACEOF
59391 /* end confdefs.h. */
59392 $ac_includes_default
59393 #include <$ac_header>
59394 _ACEOF
59395 rm -f conftest.$ac_objext
59396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59397 (eval $ac_compile) 2>&5
59398 ac_status=$?
59399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59400 (exit $ac_status); } &&
59401 { ac_try='test -s conftest.$ac_objext'
59402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59403 (eval $ac_try) 2>&5
59404 ac_status=$?
59405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59406 (exit $ac_status); }; }; then
59407 ac_header_compiler=yes
59408 else
59409 echo "$as_me: failed program was:" >&5
59410 sed 's/^/| /' conftest.$ac_ext >&5
59412 ac_header_compiler=no
59414 rm -f conftest.$ac_objext conftest.$ac_ext
59415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59416 echo "${ECHO_T}$ac_header_compiler" >&6
59418 # Is the header present?
59419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59421 cat >conftest.$ac_ext <<_ACEOF
59422 #line $LINENO "configure"
59423 /* confdefs.h. */
59424 _ACEOF
59425 cat confdefs.h >>conftest.$ac_ext
59426 cat >>conftest.$ac_ext <<_ACEOF
59427 /* end confdefs.h. */
59428 #include <$ac_header>
59429 _ACEOF
59430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59432 ac_status=$?
59433 grep -v '^ *+' conftest.er1 >conftest.err
59434 rm -f conftest.er1
59435 cat conftest.err >&5
59436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59437 (exit $ac_status); } >/dev/null; then
59438 if test -s conftest.err; then
59439 ac_cpp_err=$ac_c_preproc_warn_flag
59440 else
59441 ac_cpp_err=
59443 else
59444 ac_cpp_err=yes
59446 if test -z "$ac_cpp_err"; then
59447 ac_header_preproc=yes
59448 else
59449 echo "$as_me: failed program was:" >&5
59450 sed 's/^/| /' conftest.$ac_ext >&5
59452 ac_header_preproc=no
59454 rm -f conftest.err conftest.$ac_ext
59455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59456 echo "${ECHO_T}$ac_header_preproc" >&6
59458 # So? What about this header?
59459 case $ac_header_compiler:$ac_header_preproc in
59460 yes:no )
59461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59466 cat <<\_ASBOX
59467 ## ------------------------------------ ##
59468 ## Report this to bug-autoconf@gnu.org. ##
59469 ## ------------------------------------ ##
59470 _ASBOX
59472 sed "s/^/$as_me: WARNING: /" >&2
59474 no:yes )
59475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59482 cat <<\_ASBOX
59483 ## ------------------------------------ ##
59484 ## Report this to bug-autoconf@gnu.org. ##
59485 ## ------------------------------------ ##
59486 _ASBOX
59488 sed "s/^/$as_me: WARNING: /" >&2
59490 esac
59491 echo "$as_me:$LINENO: checking for $ac_header" >&5
59492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59494 echo $ECHO_N "(cached) $ECHO_C" >&6
59495 else
59496 eval "$as_ac_Header=$ac_header_preproc"
59498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59503 cat >>confdefs.h <<_ACEOF
59504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59505 _ACEOF
59506 ac_has_wchar_h=yes
59507 else
59508 ac_has_wchar_h=no
59511 done
59514 for ac_header in wctype.h
59516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59518 echo "$as_me:$LINENO: checking for $ac_header" >&5
59519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59521 echo $ECHO_N "(cached) $ECHO_C" >&6
59523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59525 else
59526 # Is the header compilable?
59527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59529 cat >conftest.$ac_ext <<_ACEOF
59530 #line $LINENO "configure"
59531 /* confdefs.h. */
59532 _ACEOF
59533 cat confdefs.h >>conftest.$ac_ext
59534 cat >>conftest.$ac_ext <<_ACEOF
59535 /* end confdefs.h. */
59536 $ac_includes_default
59537 #include <$ac_header>
59538 _ACEOF
59539 rm -f conftest.$ac_objext
59540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59541 (eval $ac_compile) 2>&5
59542 ac_status=$?
59543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59544 (exit $ac_status); } &&
59545 { ac_try='test -s conftest.$ac_objext'
59546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59547 (eval $ac_try) 2>&5
59548 ac_status=$?
59549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59550 (exit $ac_status); }; }; then
59551 ac_header_compiler=yes
59552 else
59553 echo "$as_me: failed program was:" >&5
59554 sed 's/^/| /' conftest.$ac_ext >&5
59556 ac_header_compiler=no
59558 rm -f conftest.$ac_objext conftest.$ac_ext
59559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59560 echo "${ECHO_T}$ac_header_compiler" >&6
59562 # Is the header present?
59563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59565 cat >conftest.$ac_ext <<_ACEOF
59566 #line $LINENO "configure"
59567 /* confdefs.h. */
59568 _ACEOF
59569 cat confdefs.h >>conftest.$ac_ext
59570 cat >>conftest.$ac_ext <<_ACEOF
59571 /* end confdefs.h. */
59572 #include <$ac_header>
59573 _ACEOF
59574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59576 ac_status=$?
59577 grep -v '^ *+' conftest.er1 >conftest.err
59578 rm -f conftest.er1
59579 cat conftest.err >&5
59580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59581 (exit $ac_status); } >/dev/null; then
59582 if test -s conftest.err; then
59583 ac_cpp_err=$ac_c_preproc_warn_flag
59584 else
59585 ac_cpp_err=
59587 else
59588 ac_cpp_err=yes
59590 if test -z "$ac_cpp_err"; then
59591 ac_header_preproc=yes
59592 else
59593 echo "$as_me: failed program was:" >&5
59594 sed 's/^/| /' conftest.$ac_ext >&5
59596 ac_header_preproc=no
59598 rm -f conftest.err conftest.$ac_ext
59599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59600 echo "${ECHO_T}$ac_header_preproc" >&6
59602 # So? What about this header?
59603 case $ac_header_compiler:$ac_header_preproc in
59604 yes:no )
59605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59610 cat <<\_ASBOX
59611 ## ------------------------------------ ##
59612 ## Report this to bug-autoconf@gnu.org. ##
59613 ## ------------------------------------ ##
59614 _ASBOX
59616 sed "s/^/$as_me: WARNING: /" >&2
59618 no:yes )
59619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59626 cat <<\_ASBOX
59627 ## ------------------------------------ ##
59628 ## Report this to bug-autoconf@gnu.org. ##
59629 ## ------------------------------------ ##
59630 _ASBOX
59632 sed "s/^/$as_me: WARNING: /" >&2
59634 esac
59635 echo "$as_me:$LINENO: checking for $ac_header" >&5
59636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59638 echo $ECHO_N "(cached) $ECHO_C" >&6
59639 else
59640 eval "$as_ac_Header=$ac_header_preproc"
59642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59647 cat >>confdefs.h <<_ACEOF
59648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59649 _ACEOF
59650 ac_has_wctype_h=yes
59651 else
59652 ac_has_wctype_h=no
59655 done
59658 # Only continue checking if the ISO C99 headers exist and support is on.
59659 if test x"$ac_has_wchar_h" = xyes &&
59660 test x"$ac_has_wctype_h" = xyes &&
59661 test x"$enable_c_mbchar" != xno; then
59663 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59664 # numeric_limits can instantiate type_traits<wchar_t>
59665 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59666 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59667 cat >conftest.$ac_ext <<_ACEOF
59668 #line $LINENO "configure"
59669 /* confdefs.h. */
59670 _ACEOF
59671 cat confdefs.h >>conftest.$ac_ext
59672 cat >>conftest.$ac_ext <<_ACEOF
59673 /* end confdefs.h. */
59674 #include <wchar.h>
59676 main ()
59678 int i = WCHAR_MIN; int j = WCHAR_MAX;
59680 return 0;
59682 _ACEOF
59683 rm -f conftest.$ac_objext
59684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59685 (eval $ac_compile) 2>&5
59686 ac_status=$?
59687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59688 (exit $ac_status); } &&
59689 { ac_try='test -s conftest.$ac_objext'
59690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59691 (eval $ac_try) 2>&5
59692 ac_status=$?
59693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59694 (exit $ac_status); }; }; then
59695 has_wchar_minmax=yes
59696 else
59697 echo "$as_me: failed program was:" >&5
59698 sed 's/^/| /' conftest.$ac_ext >&5
59700 has_wchar_minmax=no
59702 rm -f conftest.$ac_objext conftest.$ac_ext
59703 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59704 echo "${ECHO_T}$has_wchar_minmax" >&6
59706 # Test wchar.h for WEOF, which is what we use to determine whether
59707 # to specialize for char_traits<wchar_t> or not.
59708 echo "$as_me:$LINENO: checking for WEOF" >&5
59709 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59710 cat >conftest.$ac_ext <<_ACEOF
59711 #line $LINENO "configure"
59712 /* confdefs.h. */
59713 _ACEOF
59714 cat confdefs.h >>conftest.$ac_ext
59715 cat >>conftest.$ac_ext <<_ACEOF
59716 /* end confdefs.h. */
59718 #include <wchar.h>
59719 #include <stddef.h>
59721 main ()
59723 wint_t i = WEOF;
59725 return 0;
59727 _ACEOF
59728 rm -f conftest.$ac_objext
59729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59730 (eval $ac_compile) 2>&5
59731 ac_status=$?
59732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59733 (exit $ac_status); } &&
59734 { ac_try='test -s conftest.$ac_objext'
59735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59736 (eval $ac_try) 2>&5
59737 ac_status=$?
59738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59739 (exit $ac_status); }; }; then
59740 has_weof=yes
59741 else
59742 echo "$as_me: failed program was:" >&5
59743 sed 's/^/| /' conftest.$ac_ext >&5
59745 has_weof=no
59747 rm -f conftest.$ac_objext conftest.$ac_ext
59748 echo "$as_me:$LINENO: result: $has_weof" >&5
59749 echo "${ECHO_T}$has_weof" >&6
59751 # Tests for wide character functions used in char_traits<wchar_t>.
59752 ac_wfuncs=yes
59759 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59762 echo "$as_me:$LINENO: checking for $ac_func" >&5
59763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59764 if eval "test \"\${$as_ac_var+set}\" = set"; then
59765 echo $ECHO_N "(cached) $ECHO_C" >&6
59766 else
59767 if test x$gcc_no_link = xyes; then
59768 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59769 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59770 { (exit 1); exit 1; }; }
59772 cat >conftest.$ac_ext <<_ACEOF
59773 #line $LINENO "configure"
59774 /* confdefs.h. */
59775 _ACEOF
59776 cat confdefs.h >>conftest.$ac_ext
59777 cat >>conftest.$ac_ext <<_ACEOF
59778 /* end confdefs.h. */
59779 /* System header to define __stub macros and hopefully few prototypes,
59780 which can conflict with char $ac_func (); below.
59781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59782 <limits.h> exists even on freestanding compilers. */
59783 #ifdef __STDC__
59784 # include <limits.h>
59785 #else
59786 # include <assert.h>
59787 #endif
59788 /* Override any gcc2 internal prototype to avoid an error. */
59789 #ifdef __cplusplus
59790 extern "C"
59792 #endif
59793 /* We use char because int might match the return type of a gcc2
59794 builtin and then its argument prototype would still apply. */
59795 char $ac_func ();
59796 /* The GNU C library defines this for functions which it implements
59797 to always fail with ENOSYS. Some functions are actually named
59798 something starting with __ and the normal name is an alias. */
59799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59800 choke me
59801 #else
59802 char (*f) () = $ac_func;
59803 #endif
59804 #ifdef __cplusplus
59806 #endif
59809 main ()
59811 return f != $ac_func;
59813 return 0;
59815 _ACEOF
59816 rm -f conftest.$ac_objext conftest$ac_exeext
59817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59818 (eval $ac_link) 2>&5
59819 ac_status=$?
59820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59821 (exit $ac_status); } &&
59822 { ac_try='test -s conftest$ac_exeext'
59823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59824 (eval $ac_try) 2>&5
59825 ac_status=$?
59826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59827 (exit $ac_status); }; }; then
59828 eval "$as_ac_var=yes"
59829 else
59830 echo "$as_me: failed program was:" >&5
59831 sed 's/^/| /' conftest.$ac_ext >&5
59833 eval "$as_ac_var=no"
59835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59839 if test `eval echo '${'$as_ac_var'}'` = yes; then
59840 cat >>confdefs.h <<_ACEOF
59841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59842 _ACEOF
59844 else
59845 ac_wfuncs=no
59847 done
59850 # Checks for names injected into std:: by the c_std headers.
59897 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59898 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59899 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59900 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59901 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59902 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59905 echo "$as_me:$LINENO: checking for $ac_func" >&5
59906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59907 if eval "test \"\${$as_ac_var+set}\" = set"; then
59908 echo $ECHO_N "(cached) $ECHO_C" >&6
59909 else
59910 if test x$gcc_no_link = xyes; then
59911 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59913 { (exit 1); exit 1; }; }
59915 cat >conftest.$ac_ext <<_ACEOF
59916 #line $LINENO "configure"
59917 /* confdefs.h. */
59918 _ACEOF
59919 cat confdefs.h >>conftest.$ac_ext
59920 cat >>conftest.$ac_ext <<_ACEOF
59921 /* end confdefs.h. */
59922 /* System header to define __stub macros and hopefully few prototypes,
59923 which can conflict with char $ac_func (); below.
59924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59925 <limits.h> exists even on freestanding compilers. */
59926 #ifdef __STDC__
59927 # include <limits.h>
59928 #else
59929 # include <assert.h>
59930 #endif
59931 /* Override any gcc2 internal prototype to avoid an error. */
59932 #ifdef __cplusplus
59933 extern "C"
59935 #endif
59936 /* We use char because int might match the return type of a gcc2
59937 builtin and then its argument prototype would still apply. */
59938 char $ac_func ();
59939 /* The GNU C library defines this for functions which it implements
59940 to always fail with ENOSYS. Some functions are actually named
59941 something starting with __ and the normal name is an alias. */
59942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59943 choke me
59944 #else
59945 char (*f) () = $ac_func;
59946 #endif
59947 #ifdef __cplusplus
59949 #endif
59952 main ()
59954 return f != $ac_func;
59956 return 0;
59958 _ACEOF
59959 rm -f conftest.$ac_objext conftest$ac_exeext
59960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59961 (eval $ac_link) 2>&5
59962 ac_status=$?
59963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59964 (exit $ac_status); } &&
59965 { ac_try='test -s conftest$ac_exeext'
59966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59967 (eval $ac_try) 2>&5
59968 ac_status=$?
59969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59970 (exit $ac_status); }; }; then
59971 eval "$as_ac_var=yes"
59972 else
59973 echo "$as_me: failed program was:" >&5
59974 sed 's/^/| /' conftest.$ac_ext >&5
59976 eval "$as_ac_var=no"
59978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59982 if test `eval echo '${'$as_ac_var'}'` = yes; then
59983 cat >>confdefs.h <<_ACEOF
59984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59985 _ACEOF
59987 else
59988 ac_wfuncs=no
59990 done
59993 # Checks for wide character functions that are not required
59994 # for basic wchar_t support. Don't disable support if they are missing.
59995 # Injection of these is wrapped with guard macros.
60001 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
60003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60004 echo "$as_me:$LINENO: checking for $ac_func" >&5
60005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60006 if eval "test \"\${$as_ac_var+set}\" = set"; then
60007 echo $ECHO_N "(cached) $ECHO_C" >&6
60008 else
60009 if test x$gcc_no_link = xyes; then
60010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60012 { (exit 1); exit 1; }; }
60014 cat >conftest.$ac_ext <<_ACEOF
60015 #line $LINENO "configure"
60016 /* confdefs.h. */
60017 _ACEOF
60018 cat confdefs.h >>conftest.$ac_ext
60019 cat >>conftest.$ac_ext <<_ACEOF
60020 /* end confdefs.h. */
60021 /* System header to define __stub macros and hopefully few prototypes,
60022 which can conflict with char $ac_func (); below.
60023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60024 <limits.h> exists even on freestanding compilers. */
60025 #ifdef __STDC__
60026 # include <limits.h>
60027 #else
60028 # include <assert.h>
60029 #endif
60030 /* Override any gcc2 internal prototype to avoid an error. */
60031 #ifdef __cplusplus
60032 extern "C"
60034 #endif
60035 /* We use char because int might match the return type of a gcc2
60036 builtin and then its argument prototype would still apply. */
60037 char $ac_func ();
60038 /* The GNU C library defines this for functions which it implements
60039 to always fail with ENOSYS. Some functions are actually named
60040 something starting with __ and the normal name is an alias. */
60041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60042 choke me
60043 #else
60044 char (*f) () = $ac_func;
60045 #endif
60046 #ifdef __cplusplus
60048 #endif
60051 main ()
60053 return f != $ac_func;
60055 return 0;
60057 _ACEOF
60058 rm -f conftest.$ac_objext conftest$ac_exeext
60059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60060 (eval $ac_link) 2>&5
60061 ac_status=$?
60062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60063 (exit $ac_status); } &&
60064 { ac_try='test -s conftest$ac_exeext'
60065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60066 (eval $ac_try) 2>&5
60067 ac_status=$?
60068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60069 (exit $ac_status); }; }; then
60070 eval "$as_ac_var=yes"
60071 else
60072 echo "$as_me: failed program was:" >&5
60073 sed 's/^/| /' conftest.$ac_ext >&5
60075 eval "$as_ac_var=no"
60077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60081 if test `eval echo '${'$as_ac_var'}'` = yes; then
60082 cat >>confdefs.h <<_ACEOF
60083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60084 _ACEOF
60087 done
60090 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
60091 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
60092 if test x"$has_weof" = xyes &&
60093 test x"$has_wchar_minmax" = xyes &&
60094 test x"$ac_wfuncs" = xyes;
60095 then
60096 ac_isoC99_wchar_t=yes
60097 else
60098 ac_isoC99_wchar_t=no
60100 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
60101 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
60103 # Use iconv for wchar_t to char conversions. As such, check for
60104 # X/Open Portability Guide, version 2 features (XPG2).
60105 if test "${ac_cv_header_iconv_h+set}" = set; then
60106 echo "$as_me:$LINENO: checking for iconv.h" >&5
60107 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
60108 if test "${ac_cv_header_iconv_h+set}" = set; then
60109 echo $ECHO_N "(cached) $ECHO_C" >&6
60111 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
60112 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
60113 else
60114 # Is the header compilable?
60115 echo "$as_me:$LINENO: checking iconv.h usability" >&5
60116 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
60117 cat >conftest.$ac_ext <<_ACEOF
60118 #line $LINENO "configure"
60119 /* confdefs.h. */
60120 _ACEOF
60121 cat confdefs.h >>conftest.$ac_ext
60122 cat >>conftest.$ac_ext <<_ACEOF
60123 /* end confdefs.h. */
60124 $ac_includes_default
60125 #include <iconv.h>
60126 _ACEOF
60127 rm -f conftest.$ac_objext
60128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60129 (eval $ac_compile) 2>&5
60130 ac_status=$?
60131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60132 (exit $ac_status); } &&
60133 { ac_try='test -s conftest.$ac_objext'
60134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60135 (eval $ac_try) 2>&5
60136 ac_status=$?
60137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60138 (exit $ac_status); }; }; then
60139 ac_header_compiler=yes
60140 else
60141 echo "$as_me: failed program was:" >&5
60142 sed 's/^/| /' conftest.$ac_ext >&5
60144 ac_header_compiler=no
60146 rm -f conftest.$ac_objext conftest.$ac_ext
60147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60148 echo "${ECHO_T}$ac_header_compiler" >&6
60150 # Is the header present?
60151 echo "$as_me:$LINENO: checking iconv.h presence" >&5
60152 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
60153 cat >conftest.$ac_ext <<_ACEOF
60154 #line $LINENO "configure"
60155 /* confdefs.h. */
60156 _ACEOF
60157 cat confdefs.h >>conftest.$ac_ext
60158 cat >>conftest.$ac_ext <<_ACEOF
60159 /* end confdefs.h. */
60160 #include <iconv.h>
60161 _ACEOF
60162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60164 ac_status=$?
60165 grep -v '^ *+' conftest.er1 >conftest.err
60166 rm -f conftest.er1
60167 cat conftest.err >&5
60168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60169 (exit $ac_status); } >/dev/null; then
60170 if test -s conftest.err; then
60171 ac_cpp_err=$ac_c_preproc_warn_flag
60172 else
60173 ac_cpp_err=
60175 else
60176 ac_cpp_err=yes
60178 if test -z "$ac_cpp_err"; then
60179 ac_header_preproc=yes
60180 else
60181 echo "$as_me: failed program was:" >&5
60182 sed 's/^/| /' conftest.$ac_ext >&5
60184 ac_header_preproc=no
60186 rm -f conftest.err conftest.$ac_ext
60187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60188 echo "${ECHO_T}$ac_header_preproc" >&6
60190 # So? What about this header?
60191 case $ac_header_compiler:$ac_header_preproc in
60192 yes:no )
60193 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
60194 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60195 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
60196 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
60198 cat <<\_ASBOX
60199 ## ------------------------------------ ##
60200 ## Report this to bug-autoconf@gnu.org. ##
60201 ## ------------------------------------ ##
60202 _ASBOX
60204 sed "s/^/$as_me: WARNING: /" >&2
60206 no:yes )
60207 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
60208 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
60209 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
60210 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
60211 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
60212 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
60214 cat <<\_ASBOX
60215 ## ------------------------------------ ##
60216 ## Report this to bug-autoconf@gnu.org. ##
60217 ## ------------------------------------ ##
60218 _ASBOX
60220 sed "s/^/$as_me: WARNING: /" >&2
60222 esac
60223 echo "$as_me:$LINENO: checking for iconv.h" >&5
60224 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
60225 if test "${ac_cv_header_iconv_h+set}" = set; then
60226 echo $ECHO_N "(cached) $ECHO_C" >&6
60227 else
60228 ac_cv_header_iconv_h=$ac_header_preproc
60230 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
60231 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
60234 if test $ac_cv_header_iconv_h = yes; then
60235 ac_has_iconv_h=yes
60236 else
60237 ac_has_iconv_h=no
60241 if test "${ac_cv_header_langinfo_h+set}" = set; then
60242 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60243 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60244 if test "${ac_cv_header_langinfo_h+set}" = set; then
60245 echo $ECHO_N "(cached) $ECHO_C" >&6
60247 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60248 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60249 else
60250 # Is the header compilable?
60251 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
60252 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
60253 cat >conftest.$ac_ext <<_ACEOF
60254 #line $LINENO "configure"
60255 /* confdefs.h. */
60256 _ACEOF
60257 cat confdefs.h >>conftest.$ac_ext
60258 cat >>conftest.$ac_ext <<_ACEOF
60259 /* end confdefs.h. */
60260 $ac_includes_default
60261 #include <langinfo.h>
60262 _ACEOF
60263 rm -f conftest.$ac_objext
60264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60265 (eval $ac_compile) 2>&5
60266 ac_status=$?
60267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60268 (exit $ac_status); } &&
60269 { ac_try='test -s conftest.$ac_objext'
60270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60271 (eval $ac_try) 2>&5
60272 ac_status=$?
60273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60274 (exit $ac_status); }; }; then
60275 ac_header_compiler=yes
60276 else
60277 echo "$as_me: failed program was:" >&5
60278 sed 's/^/| /' conftest.$ac_ext >&5
60280 ac_header_compiler=no
60282 rm -f conftest.$ac_objext conftest.$ac_ext
60283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60284 echo "${ECHO_T}$ac_header_compiler" >&6
60286 # Is the header present?
60287 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
60288 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
60289 cat >conftest.$ac_ext <<_ACEOF
60290 #line $LINENO "configure"
60291 /* confdefs.h. */
60292 _ACEOF
60293 cat confdefs.h >>conftest.$ac_ext
60294 cat >>conftest.$ac_ext <<_ACEOF
60295 /* end confdefs.h. */
60296 #include <langinfo.h>
60297 _ACEOF
60298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60300 ac_status=$?
60301 grep -v '^ *+' conftest.er1 >conftest.err
60302 rm -f conftest.er1
60303 cat conftest.err >&5
60304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60305 (exit $ac_status); } >/dev/null; then
60306 if test -s conftest.err; then
60307 ac_cpp_err=$ac_c_preproc_warn_flag
60308 else
60309 ac_cpp_err=
60311 else
60312 ac_cpp_err=yes
60314 if test -z "$ac_cpp_err"; then
60315 ac_header_preproc=yes
60316 else
60317 echo "$as_me: failed program was:" >&5
60318 sed 's/^/| /' conftest.$ac_ext >&5
60320 ac_header_preproc=no
60322 rm -f conftest.err conftest.$ac_ext
60323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60324 echo "${ECHO_T}$ac_header_preproc" >&6
60326 # So? What about this header?
60327 case $ac_header_compiler:$ac_header_preproc in
60328 yes:no )
60329 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
60330 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60331 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60332 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60334 cat <<\_ASBOX
60335 ## ------------------------------------ ##
60336 ## Report this to bug-autoconf@gnu.org. ##
60337 ## ------------------------------------ ##
60338 _ASBOX
60340 sed "s/^/$as_me: WARNING: /" >&2
60342 no:yes )
60343 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
60344 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
60345 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
60346 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
60347 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60348 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60350 cat <<\_ASBOX
60351 ## ------------------------------------ ##
60352 ## Report this to bug-autoconf@gnu.org. ##
60353 ## ------------------------------------ ##
60354 _ASBOX
60356 sed "s/^/$as_me: WARNING: /" >&2
60358 esac
60359 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60360 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60361 if test "${ac_cv_header_langinfo_h+set}" = set; then
60362 echo $ECHO_N "(cached) $ECHO_C" >&6
60363 else
60364 ac_cv_header_langinfo_h=$ac_header_preproc
60366 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60367 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60370 if test $ac_cv_header_langinfo_h = yes; then
60371 ac_has_langinfo_h=yes
60372 else
60373 ac_has_langinfo_h=no
60378 # Check for existence of libiconv.a providing XPG2 wchar_t support.
60379 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60380 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60381 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60382 echo $ECHO_N "(cached) $ECHO_C" >&6
60383 else
60384 ac_check_lib_save_LIBS=$LIBS
60385 LIBS="-liconv $LIBS"
60386 if test x$gcc_no_link = xyes; then
60387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60389 { (exit 1); exit 1; }; }
60391 cat >conftest.$ac_ext <<_ACEOF
60392 #line $LINENO "configure"
60393 /* confdefs.h. */
60394 _ACEOF
60395 cat confdefs.h >>conftest.$ac_ext
60396 cat >>conftest.$ac_ext <<_ACEOF
60397 /* end confdefs.h. */
60399 /* Override any gcc2 internal prototype to avoid an error. */
60400 #ifdef __cplusplus
60401 extern "C"
60402 #endif
60403 /* We use char because int might match the return type of a gcc2
60404 builtin and then its argument prototype would still apply. */
60405 char iconv ();
60407 main ()
60409 iconv ();
60411 return 0;
60413 _ACEOF
60414 rm -f conftest.$ac_objext conftest$ac_exeext
60415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60416 (eval $ac_link) 2>&5
60417 ac_status=$?
60418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60419 (exit $ac_status); } &&
60420 { ac_try='test -s conftest$ac_exeext'
60421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60422 (eval $ac_try) 2>&5
60423 ac_status=$?
60424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60425 (exit $ac_status); }; }; then
60426 ac_cv_lib_iconv_iconv=yes
60427 else
60428 echo "$as_me: failed program was:" >&5
60429 sed 's/^/| /' conftest.$ac_ext >&5
60431 ac_cv_lib_iconv_iconv=no
60433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60434 LIBS=$ac_check_lib_save_LIBS
60436 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60437 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60438 if test $ac_cv_lib_iconv_iconv = yes; then
60439 libiconv="-liconv"
60442 ac_save_LIBS="$LIBS"
60443 LIBS="$LIBS $libiconv"
60449 for ac_func in iconv_open iconv_close iconv nl_langinfo
60451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60452 echo "$as_me:$LINENO: checking for $ac_func" >&5
60453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60454 if eval "test \"\${$as_ac_var+set}\" = set"; then
60455 echo $ECHO_N "(cached) $ECHO_C" >&6
60456 else
60457 if test x$gcc_no_link = xyes; then
60458 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60460 { (exit 1); exit 1; }; }
60462 cat >conftest.$ac_ext <<_ACEOF
60463 #line $LINENO "configure"
60464 /* confdefs.h. */
60465 _ACEOF
60466 cat confdefs.h >>conftest.$ac_ext
60467 cat >>conftest.$ac_ext <<_ACEOF
60468 /* end confdefs.h. */
60469 /* System header to define __stub macros and hopefully few prototypes,
60470 which can conflict with char $ac_func (); below.
60471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60472 <limits.h> exists even on freestanding compilers. */
60473 #ifdef __STDC__
60474 # include <limits.h>
60475 #else
60476 # include <assert.h>
60477 #endif
60478 /* Override any gcc2 internal prototype to avoid an error. */
60479 #ifdef __cplusplus
60480 extern "C"
60482 #endif
60483 /* We use char because int might match the return type of a gcc2
60484 builtin and then its argument prototype would still apply. */
60485 char $ac_func ();
60486 /* The GNU C library defines this for functions which it implements
60487 to always fail with ENOSYS. Some functions are actually named
60488 something starting with __ and the normal name is an alias. */
60489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60490 choke me
60491 #else
60492 char (*f) () = $ac_func;
60493 #endif
60494 #ifdef __cplusplus
60496 #endif
60499 main ()
60501 return f != $ac_func;
60503 return 0;
60505 _ACEOF
60506 rm -f conftest.$ac_objext conftest$ac_exeext
60507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60508 (eval $ac_link) 2>&5
60509 ac_status=$?
60510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60511 (exit $ac_status); } &&
60512 { ac_try='test -s conftest$ac_exeext'
60513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60514 (eval $ac_try) 2>&5
60515 ac_status=$?
60516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60517 (exit $ac_status); }; }; then
60518 eval "$as_ac_var=yes"
60519 else
60520 echo "$as_me: failed program was:" >&5
60521 sed 's/^/| /' conftest.$ac_ext >&5
60523 eval "$as_ac_var=no"
60525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60529 if test `eval echo '${'$as_ac_var'}'` = yes; then
60530 cat >>confdefs.h <<_ACEOF
60531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60532 _ACEOF
60533 ac_XPG2funcs=yes
60534 else
60535 ac_XPG2funcs=no
60537 done
60540 LIBS="$ac_save_LIBS"
60542 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60543 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60544 if test x"$ac_has_iconv_h" = xyes &&
60545 test x"$ac_has_langinfo_h" = xyes &&
60546 test x"$ac_XPG2funcs" = xyes;
60547 then
60548 ac_XPG2_wchar_t=yes
60549 else
60550 ac_XPG2_wchar_t=no
60552 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60553 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60555 # At the moment, only enable wchar_t specializations if all the
60556 # above support is present.
60557 if test x"$ac_isoC99_wchar_t" = xyes &&
60558 test x"$ac_XPG2_wchar_t" = xyes;
60559 then
60560 cat >>confdefs.h <<\_ACEOF
60561 #define _GLIBCXX_USE_WCHAR_T 1
60562 _ACEOF
60564 enable_wchar_t=yes
60567 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60568 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60569 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60570 echo "${ECHO_T}$enable_wchar_t" >&6
60572 # All of the dependencies for wide character support are here, so
60573 # turn it on. This requires some syncronization with the
60574 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
60575 cat >>confdefs.h <<\_ACEOF
60576 #define _GLIBCXX_USE_WCHAR_T 1
60577 _ACEOF
60579 # Are these tested for even when cross?
60580 cat >>confdefs.h <<\_ACEOF
60581 #define HAVE_FLOAT_H 1
60582 _ACEOF
60584 cat >>confdefs.h <<\_ACEOF
60585 #define HAVE_IEEEFP_H 1
60586 _ACEOF
60588 cat >>confdefs.h <<\_ACEOF
60589 #define HAVE_INTTYPES_H 1
60590 _ACEOF
60592 cat >>confdefs.h <<\_ACEOF
60593 #define HAVE_LOCALE_H 1
60594 _ACEOF
60596 cat >>confdefs.h <<\_ACEOF
60597 #define HAVE_NAN_H 1
60598 _ACEOF
60600 cat >>confdefs.h <<\_ACEOF
60601 #define HAVE_SYS_FILIO_H 1
60602 _ACEOF
60604 cat >>confdefs.h <<\_ACEOF
60605 #define HAVE_SYS_IOCTL_H 1
60606 _ACEOF
60608 cat >>confdefs.h <<\_ACEOF
60609 #define HAVE_SYS_ISA_DEFS_H 1
60610 _ACEOF
60612 cat >>confdefs.h <<\_ACEOF
60613 #define HAVE_SYS_RESOURCE_H 1
60614 _ACEOF
60616 cat >>confdefs.h <<\_ACEOF
60617 #define HAVE_SYS_TIME_H 1
60618 _ACEOF
60620 cat >>confdefs.h <<\_ACEOF
60621 #define HAVE_SYS_TYPES_H 1
60622 _ACEOF
60624 cat >>confdefs.h <<\_ACEOF
60625 #define HAVE_UNISTD_H 1
60626 _ACEOF
60628 cat >>confdefs.h <<\_ACEOF
60629 #define HAVE_WCHAR_H 1
60630 _ACEOF
60632 cat >>confdefs.h <<\_ACEOF
60633 #define HAVE_WCTYPE_H 1
60634 _ACEOF
60636 cat >>confdefs.h <<\_ACEOF
60637 #define HAVE_LIBM 1
60638 _ACEOF
60641 esac
60642 case "$target" in
60643 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
60644 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
60645 cat >>confdefs.h <<\_ACEOF
60646 #define HAVE___BUILTIN_ABS 1
60647 _ACEOF
60649 cat >>confdefs.h <<\_ACEOF
60650 #define HAVE___BUILTIN_LABS 1
60651 _ACEOF
60653 cat >>confdefs.h <<\_ACEOF
60654 #define HAVE___BUILTIN_FABS 1
60655 _ACEOF
60657 cat >>confdefs.h <<\_ACEOF
60658 #define HAVE___BUILTIN_FABSF 1
60659 _ACEOF
60661 cat >>confdefs.h <<\_ACEOF
60662 #define HAVE___BUILTIN_FABSL 1
60663 _ACEOF
60665 cat >>confdefs.h <<\_ACEOF
60666 #define HAVE___BUILTIN_COS 1
60667 _ACEOF
60669 cat >>confdefs.h <<\_ACEOF
60670 #define HAVE___BUILTIN_COSF 1
60671 _ACEOF
60673 cat >>confdefs.h <<\_ACEOF
60674 #define HAVE___BUILTIN_SIN 1
60675 _ACEOF
60677 cat >>confdefs.h <<\_ACEOF
60678 #define HAVE___BUILTIN_SINF 1
60679 _ACEOF
60682 esac
60683 cat >>confdefs.h <<\_ACEOF
60684 #define HAVE_STRTOF 1
60685 _ACEOF
60687 cat >>confdefs.h <<\_ACEOF
60688 #define HAVE_STRTOLD 1
60689 _ACEOF
60691 cat >>confdefs.h <<\_ACEOF
60692 #define HAVE_MMAP 1
60693 _ACEOF
60695 cat >>confdefs.h <<\_ACEOF
60696 #define HAVE_COPYSIGN 1
60697 _ACEOF
60699 cat >>confdefs.h <<\_ACEOF
60700 #define HAVE_ISNAN 1
60701 _ACEOF
60703 cat >>confdefs.h <<\_ACEOF
60704 #define HAVE_ISNANF 1
60705 _ACEOF
60707 cat >>confdefs.h <<\_ACEOF
60708 #define HAVE_MODFF 1
60709 _ACEOF
60711 cat >>confdefs.h <<\_ACEOF
60712 #define HAVE_HYPOT 1
60713 _ACEOF
60716 *-vxworks)
60717 cat >>confdefs.h <<\_ACEOF
60718 #define HAVE_MMAP 1
60719 _ACEOF
60721 cat >>confdefs.h <<\_ACEOF
60722 #define HAVE_ACOSF 1
60723 _ACEOF
60725 cat >>confdefs.h <<\_ACEOF
60726 #define HAVE_ASINF 1
60727 _ACEOF
60729 cat >>confdefs.h <<\_ACEOF
60730 #define HAVE_ATAN2F 1
60731 _ACEOF
60733 cat >>confdefs.h <<\_ACEOF
60734 #define HAVE_ATANF 1
60735 _ACEOF
60737 cat >>confdefs.h <<\_ACEOF
60738 #define HAVE_CEILF 1
60739 _ACEOF
60741 cat >>confdefs.h <<\_ACEOF
60742 #define HAVE_COSF 1
60743 _ACEOF
60745 cat >>confdefs.h <<\_ACEOF
60746 #define HAVE_COSHF 1
60747 _ACEOF
60749 cat >>confdefs.h <<\_ACEOF
60750 #define HAVE_EXPF 1
60751 _ACEOF
60753 cat >>confdefs.h <<\_ACEOF
60754 #define HAVE_FABSF 1
60755 _ACEOF
60757 cat >>confdefs.h <<\_ACEOF
60758 #define HAVE_FLOORF 1
60759 _ACEOF
60761 cat >>confdefs.h <<\_ACEOF
60762 #define HAVE_FMODF 1
60763 _ACEOF
60765 cat >>confdefs.h <<\_ACEOF
60766 #define HAVE_HYPOT 1
60767 _ACEOF
60769 cat >>confdefs.h <<\_ACEOF
60770 #define HAVE_LOG10F 1
60771 _ACEOF
60773 cat >>confdefs.h <<\_ACEOF
60774 #define HAVE_LOGF 1
60775 _ACEOF
60777 cat >>confdefs.h <<\_ACEOF
60778 #define HAVE_POWF 1
60779 _ACEOF
60781 cat >>confdefs.h <<\_ACEOF
60782 #define HAVE_SINF 1
60783 _ACEOF
60785 cat >>confdefs.h <<\_ACEOF
60786 #define HAVE_SINHF 1
60787 _ACEOF
60789 cat >>confdefs.h <<\_ACEOF
60790 #define HAVE_SQRTF 1
60791 _ACEOF
60793 cat >>confdefs.h <<\_ACEOF
60794 #define HAVE_TANF 1
60795 _ACEOF
60797 cat >>confdefs.h <<\_ACEOF
60798 #define HAVE_TANHF 1
60799 _ACEOF
60802 *-windiss*)
60803 cat >>confdefs.h <<\_ACEOF
60804 #define HAVE_ACOSF 1
60805 _ACEOF
60807 cat >>confdefs.h <<\_ACEOF
60808 #define HAVE_ACOSL 1
60809 _ACEOF
60811 cat >>confdefs.h <<\_ACEOF
60812 #define HAVE_ASINF 1
60813 _ACEOF
60815 cat >>confdefs.h <<\_ACEOF
60816 #define HAVE_ASINL 1
60817 _ACEOF
60819 cat >>confdefs.h <<\_ACEOF
60820 #define HAVE_ATAN2F 1
60821 _ACEOF
60823 cat >>confdefs.h <<\_ACEOF
60824 #define HAVE_ATAN2L 1
60825 _ACEOF
60827 cat >>confdefs.h <<\_ACEOF
60828 #define HAVE_ATANF 1
60829 _ACEOF
60831 cat >>confdefs.h <<\_ACEOF
60832 #define HAVE_ATANL 1
60833 _ACEOF
60835 cat >>confdefs.h <<\_ACEOF
60836 #define HAVE_CEILF 1
60837 _ACEOF
60839 cat >>confdefs.h <<\_ACEOF
60840 #define HAVE_CEILL 1
60841 _ACEOF
60843 cat >>confdefs.h <<\_ACEOF
60844 #define HAVE_COPYSIGN 1
60845 _ACEOF
60847 cat >>confdefs.h <<\_ACEOF
60848 #define HAVE_COPYSIGNF 1
60849 _ACEOF
60851 cat >>confdefs.h <<\_ACEOF
60852 #define HAVE_COSF 1
60853 _ACEOF
60855 cat >>confdefs.h <<\_ACEOF
60856 #define HAVE_COSL 1
60857 _ACEOF
60859 cat >>confdefs.h <<\_ACEOF
60860 #define HAVE_COSHF 1
60861 _ACEOF
60863 cat >>confdefs.h <<\_ACEOF
60864 #define HAVE_COSHL 1
60865 _ACEOF
60867 cat >>confdefs.h <<\_ACEOF
60868 #define HAVE_EXPF 1
60869 _ACEOF
60871 cat >>confdefs.h <<\_ACEOF
60872 #define HAVE_EXPL 1
60873 _ACEOF
60875 cat >>confdefs.h <<\_ACEOF
60876 #define HAVE_FABSF 1
60877 _ACEOF
60879 cat >>confdefs.h <<\_ACEOF
60880 #define HAVE_FABSL 1
60881 _ACEOF
60883 cat >>confdefs.h <<\_ACEOF
60884 #define HAVE_FLOORF 1
60885 _ACEOF
60887 cat >>confdefs.h <<\_ACEOF
60888 #define HAVE_FLOORL 1
60889 _ACEOF
60891 cat >>confdefs.h <<\_ACEOF
60892 #define HAVE_FMODF 1
60893 _ACEOF
60895 cat >>confdefs.h <<\_ACEOF
60896 #define HAVE_FMODL 1
60897 _ACEOF
60899 cat >>confdefs.h <<\_ACEOF
60900 #define HAVE_FREXPF 1
60901 _ACEOF
60903 cat >>confdefs.h <<\_ACEOF
60904 #define HAVE_FREXPL 1
60905 _ACEOF
60907 cat >>confdefs.h <<\_ACEOF
60908 #define HAVE_LDEXPF 1
60909 _ACEOF
60911 cat >>confdefs.h <<\_ACEOF
60912 #define HAVE_LDEXPL 1
60913 _ACEOF
60915 cat >>confdefs.h <<\_ACEOF
60916 #define HAVE_LOG10F 1
60917 _ACEOF
60919 cat >>confdefs.h <<\_ACEOF
60920 #define HAVE_LOG10L 1
60921 _ACEOF
60923 cat >>confdefs.h <<\_ACEOF
60924 #define HAVE_LOGF 1
60925 _ACEOF
60927 cat >>confdefs.h <<\_ACEOF
60928 #define HAVE_MODFF 1
60929 _ACEOF
60931 cat >>confdefs.h <<\_ACEOF
60932 #define HAVE_MODFL 1
60933 _ACEOF
60935 cat >>confdefs.h <<\_ACEOF
60936 #define HAVE_POWF 1
60937 _ACEOF
60939 cat >>confdefs.h <<\_ACEOF
60940 #define HAVE_POWL 1
60941 _ACEOF
60943 cat >>confdefs.h <<\_ACEOF
60944 #define HAVE_SINF 1
60945 _ACEOF
60947 cat >>confdefs.h <<\_ACEOF
60948 #define HAVE_SINL 1
60949 _ACEOF
60951 cat >>confdefs.h <<\_ACEOF
60952 #define HAVE_SINHF 1
60953 _ACEOF
60955 cat >>confdefs.h <<\_ACEOF
60956 #define HAVE_SINHL 1
60957 _ACEOF
60959 cat >>confdefs.h <<\_ACEOF
60960 #define HAVE_SQRTF 1
60961 _ACEOF
60963 cat >>confdefs.h <<\_ACEOF
60964 #define HAVE_SQRTL 1
60965 _ACEOF
60967 cat >>confdefs.h <<\_ACEOF
60968 #define HAVE_TANF 1
60969 _ACEOF
60971 cat >>confdefs.h <<\_ACEOF
60972 #define HAVE_TANL 1
60973 _ACEOF
60975 cat >>confdefs.h <<\_ACEOF
60976 #define HAVE_TANHF 1
60977 _ACEOF
60979 cat >>confdefs.h <<\_ACEOF
60980 #define HAVE_TANHL 1
60981 _ACEOF
60985 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
60986 echo "$as_me: error: No support for this host/target combination." >&2;}
60987 { (exit 1); exit 1; }; }
60989 esac
60994 # At some point, we should differentiate between architectures
60995 # like x86, which have long double versions, and alpha/powerpc/etc.,
60996 # which don't. For the time being, punt.
60997 if test x"long_double_math_on_this_cpu" = x"yes"; then
60998 cat >>confdefs.h <<\_ACEOF
60999 #define HAVE_ACOSL 1
61000 _ACEOF
61002 cat >>confdefs.h <<\_ACEOF
61003 #define HAVE_ASINL 1
61004 _ACEOF
61006 cat >>confdefs.h <<\_ACEOF
61007 #define HAVE_ATAN2L 1
61008 _ACEOF
61010 cat >>confdefs.h <<\_ACEOF
61011 #define HAVE_ATANL 1
61012 _ACEOF
61014 cat >>confdefs.h <<\_ACEOF
61015 #define HAVE_CEILL 1
61016 _ACEOF
61018 cat >>confdefs.h <<\_ACEOF
61019 #define HAVE_COPYSIGNL 1
61020 _ACEOF
61022 cat >>confdefs.h <<\_ACEOF
61023 #define HAVE_COSL 1
61024 _ACEOF
61026 cat >>confdefs.h <<\_ACEOF
61027 #define HAVE_COSHL 1
61028 _ACEOF
61030 cat >>confdefs.h <<\_ACEOF
61031 #define HAVE_EXPL 1
61032 _ACEOF
61034 cat >>confdefs.h <<\_ACEOF
61035 #define HAVE_FABSL 1
61036 _ACEOF
61038 cat >>confdefs.h <<\_ACEOF
61039 #define HAVE_FLOORL 1
61040 _ACEOF
61042 cat >>confdefs.h <<\_ACEOF
61043 #define HAVE_FMODL 1
61044 _ACEOF
61046 cat >>confdefs.h <<\_ACEOF
61047 #define HAVE_FREXPL 1
61048 _ACEOF
61050 cat >>confdefs.h <<\_ACEOF
61051 #define HAVE_LDEXPL 1
61052 _ACEOF
61054 cat >>confdefs.h <<\_ACEOF
61055 #define HAVE_LOG10L 1
61056 _ACEOF
61058 cat >>confdefs.h <<\_ACEOF
61059 #define HAVE_LOGL 1
61060 _ACEOF
61062 cat >>confdefs.h <<\_ACEOF
61063 #define HAVE_MODFL 1
61064 _ACEOF
61066 cat >>confdefs.h <<\_ACEOF
61067 #define HAVE_POWL 1
61068 _ACEOF
61070 cat >>confdefs.h <<\_ACEOF
61071 #define HAVE_SINCOSL 1
61072 _ACEOF
61074 cat >>confdefs.h <<\_ACEOF
61075 #define HAVE_SINL 1
61076 _ACEOF
61078 cat >>confdefs.h <<\_ACEOF
61079 #define HAVE_SINHL 1
61080 _ACEOF
61082 cat >>confdefs.h <<\_ACEOF
61083 #define HAVE_SQRTL 1
61084 _ACEOF
61086 cat >>confdefs.h <<\_ACEOF
61087 #define HAVE_TANL 1
61088 _ACEOF
61090 cat >>confdefs.h <<\_ACEOF
61091 #define HAVE_TANHL 1
61092 _ACEOF
61098 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
61101 # Check whether --enable-symvers or --disable-symvers was given.
61102 if test "${enable_symvers+set}" = set; then
61103 enableval="$enable_symvers"
61105 case "$enableval" in
61106 yes|no|gnu) ;;
61107 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
61108 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
61109 { (exit 1); exit 1; }; } ;;
61110 esac
61112 else
61113 enable_symvers=yes
61117 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
61118 # don't know enough about $LD to do tricks...
61120 # FIXME The following test is too strict, in theory.
61121 if test $enable_shared = no ||
61122 test "x$LD" = x ||
61123 test x$glibcxx_gnu_ld_version = x; then
61124 enable_symvers=no
61127 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
61128 if test $enable_symvers != no; then
61129 echo "$as_me:$LINENO: checking for shared libgcc" >&5
61130 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
61131 ac_save_CFLAGS="$CFLAGS"
61132 CFLAGS=' -lgcc_s'
61133 if test x$gcc_no_link = xyes; then
61134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61136 { (exit 1); exit 1; }; }
61138 cat >conftest.$ac_ext <<_ACEOF
61139 #line $LINENO "configure"
61140 /* confdefs.h. */
61141 _ACEOF
61142 cat confdefs.h >>conftest.$ac_ext
61143 cat >>conftest.$ac_ext <<_ACEOF
61144 /* end confdefs.h. */
61147 main ()
61149 return 0;
61151 return 0;
61153 _ACEOF
61154 rm -f conftest.$ac_objext conftest$ac_exeext
61155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61156 (eval $ac_link) 2>&5
61157 ac_status=$?
61158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61159 (exit $ac_status); } &&
61160 { ac_try='test -s conftest$ac_exeext'
61161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61162 (eval $ac_try) 2>&5
61163 ac_status=$?
61164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61165 (exit $ac_status); }; }; then
61166 glibcxx_shared_libgcc=yes
61167 else
61168 echo "$as_me: failed program was:" >&5
61169 sed 's/^/| /' conftest.$ac_ext >&5
61171 glibcxx_shared_libgcc=no
61173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61174 CFLAGS="$ac_save_CFLAGS"
61175 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
61176 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
61179 # For GNU ld, we need at least this version. The format is described in
61180 # GLIBCXX_CHECK_LINKER_FEATURES above.
61181 glibcxx_min_gnu_ld_version=21400
61182 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
61184 # Check to see if unspecified "yes" value can win, given results above.
61185 # Change "yes" into either "no" or a style name.
61186 if test $enable_symvers = yes; then
61187 if test $with_gnu_ld = yes &&
61188 test $glibcxx_shared_libgcc = yes;
61189 then
61190 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
61191 enable_symvers=gnu
61192 else
61193 # The right tools, the right setup, but too old. Fallbacks?
61194 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
61195 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
61196 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
61197 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
61198 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
61199 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
61200 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
61201 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
61202 if test $glibcxx_gnu_ld_version -ge 21200 ; then
61203 # Globbing fix is present, proper block support is not.
61204 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
61205 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
61206 enable_symvers=no
61207 else
61208 # 2.11 or older.
61209 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
61210 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
61211 enable_symvers=no
61214 else
61215 # just fail for now
61216 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
61217 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
61218 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
61219 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
61220 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
61221 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
61222 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
61223 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
61224 enable_symvers=no
61228 # Everything parsed; figure out what file to use.
61229 case $enable_symvers in
61231 SYMVER_MAP=config/linker-map.dummy
61233 gnu)
61234 SYMVER_MAP=config/linker-map.gnu
61235 cat >>confdefs.h <<\_ACEOF
61236 #define _GLIBCXX_SYMVER 1
61237 _ACEOF
61240 esac
61245 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
61246 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
61249 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
61251 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
61252 # Do checks for memory limit functions.
61254 setrlimit_have_headers=yes
61258 for ac_header in unistd.h sys/time.h sys/resource.h
61260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61262 echo "$as_me:$LINENO: checking for $ac_header" >&5
61263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61265 echo $ECHO_N "(cached) $ECHO_C" >&6
61267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61269 else
61270 # Is the header compilable?
61271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61273 cat >conftest.$ac_ext <<_ACEOF
61274 #line $LINENO "configure"
61275 /* confdefs.h. */
61276 _ACEOF
61277 cat confdefs.h >>conftest.$ac_ext
61278 cat >>conftest.$ac_ext <<_ACEOF
61279 /* end confdefs.h. */
61280 $ac_includes_default
61281 #include <$ac_header>
61282 _ACEOF
61283 rm -f conftest.$ac_objext
61284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61285 (eval $ac_compile) 2>&5
61286 ac_status=$?
61287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61288 (exit $ac_status); } &&
61289 { ac_try='test -s conftest.$ac_objext'
61290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61291 (eval $ac_try) 2>&5
61292 ac_status=$?
61293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61294 (exit $ac_status); }; }; then
61295 ac_header_compiler=yes
61296 else
61297 echo "$as_me: failed program was:" >&5
61298 sed 's/^/| /' conftest.$ac_ext >&5
61300 ac_header_compiler=no
61302 rm -f conftest.$ac_objext conftest.$ac_ext
61303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61304 echo "${ECHO_T}$ac_header_compiler" >&6
61306 # Is the header present?
61307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61309 cat >conftest.$ac_ext <<_ACEOF
61310 #line $LINENO "configure"
61311 /* confdefs.h. */
61312 _ACEOF
61313 cat confdefs.h >>conftest.$ac_ext
61314 cat >>conftest.$ac_ext <<_ACEOF
61315 /* end confdefs.h. */
61316 #include <$ac_header>
61317 _ACEOF
61318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61320 ac_status=$?
61321 grep -v '^ *+' conftest.er1 >conftest.err
61322 rm -f conftest.er1
61323 cat conftest.err >&5
61324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61325 (exit $ac_status); } >/dev/null; then
61326 if test -s conftest.err; then
61327 ac_cpp_err=$ac_c_preproc_warn_flag
61328 else
61329 ac_cpp_err=
61331 else
61332 ac_cpp_err=yes
61334 if test -z "$ac_cpp_err"; then
61335 ac_header_preproc=yes
61336 else
61337 echo "$as_me: failed program was:" >&5
61338 sed 's/^/| /' conftest.$ac_ext >&5
61340 ac_header_preproc=no
61342 rm -f conftest.err conftest.$ac_ext
61343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61344 echo "${ECHO_T}$ac_header_preproc" >&6
61346 # So? What about this header?
61347 case $ac_header_compiler:$ac_header_preproc in
61348 yes:no )
61349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61354 cat <<\_ASBOX
61355 ## ------------------------------------ ##
61356 ## Report this to bug-autoconf@gnu.org. ##
61357 ## ------------------------------------ ##
61358 _ASBOX
61360 sed "s/^/$as_me: WARNING: /" >&2
61362 no:yes )
61363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61370 cat <<\_ASBOX
61371 ## ------------------------------------ ##
61372 ## Report this to bug-autoconf@gnu.org. ##
61373 ## ------------------------------------ ##
61374 _ASBOX
61376 sed "s/^/$as_me: WARNING: /" >&2
61378 esac
61379 echo "$as_me:$LINENO: checking for $ac_header" >&5
61380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61382 echo $ECHO_N "(cached) $ECHO_C" >&6
61383 else
61384 eval "$as_ac_Header=$ac_header_preproc"
61386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61391 cat >>confdefs.h <<_ACEOF
61392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61393 _ACEOF
61395 else
61396 setrlimit_have_headers=no
61399 done
61401 # If don't have the headers, then we can't run the tests now, and we
61402 # won't be seeing any of these during testsuite compilation.
61403 if test $setrlimit_have_headers = yes; then
61404 # Can't do these in a loop, else the resulting syntax is wrong.
61406 cat >conftest.$ac_ext <<_ACEOF
61407 #line $LINENO "configure"
61408 /* confdefs.h. */
61409 _ACEOF
61410 cat confdefs.h >>conftest.$ac_ext
61411 cat >>conftest.$ac_ext <<_ACEOF
61412 /* end confdefs.h. */
61413 #include <unistd.h>
61414 #include <sys/time.h>
61415 #include <sys/resource.h>
61418 main ()
61420 int f = RLIMIT_DATA ;
61422 return 0;
61424 _ACEOF
61425 rm -f conftest.$ac_objext
61426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61427 (eval $ac_compile) 2>&5
61428 ac_status=$?
61429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61430 (exit $ac_status); } &&
61431 { ac_try='test -s conftest.$ac_objext'
61432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61433 (eval $ac_try) 2>&5
61434 ac_status=$?
61435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61436 (exit $ac_status); }; }; then
61437 glibcxx_mresult=1
61438 else
61439 echo "$as_me: failed program was:" >&5
61440 sed 's/^/| /' conftest.$ac_ext >&5
61442 glibcxx_mresult=0
61444 rm -f conftest.$ac_objext conftest.$ac_ext
61446 cat >>confdefs.h <<_ACEOF
61447 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
61448 _ACEOF
61452 cat >conftest.$ac_ext <<_ACEOF
61453 #line $LINENO "configure"
61454 /* confdefs.h. */
61455 _ACEOF
61456 cat confdefs.h >>conftest.$ac_ext
61457 cat >>conftest.$ac_ext <<_ACEOF
61458 /* end confdefs.h. */
61459 #include <unistd.h>
61460 #include <sys/time.h>
61461 #include <sys/resource.h>
61464 main ()
61466 int f = RLIMIT_RSS ;
61468 return 0;
61470 _ACEOF
61471 rm -f conftest.$ac_objext
61472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61473 (eval $ac_compile) 2>&5
61474 ac_status=$?
61475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61476 (exit $ac_status); } &&
61477 { ac_try='test -s conftest.$ac_objext'
61478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61479 (eval $ac_try) 2>&5
61480 ac_status=$?
61481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61482 (exit $ac_status); }; }; then
61483 glibcxx_mresult=1
61484 else
61485 echo "$as_me: failed program was:" >&5
61486 sed 's/^/| /' conftest.$ac_ext >&5
61488 glibcxx_mresult=0
61490 rm -f conftest.$ac_objext conftest.$ac_ext
61492 cat >>confdefs.h <<_ACEOF
61493 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
61494 _ACEOF
61498 cat >conftest.$ac_ext <<_ACEOF
61499 #line $LINENO "configure"
61500 /* confdefs.h. */
61501 _ACEOF
61502 cat confdefs.h >>conftest.$ac_ext
61503 cat >>conftest.$ac_ext <<_ACEOF
61504 /* end confdefs.h. */
61505 #include <unistd.h>
61506 #include <sys/time.h>
61507 #include <sys/resource.h>
61510 main ()
61512 int f = RLIMIT_VMEM ;
61514 return 0;
61516 _ACEOF
61517 rm -f conftest.$ac_objext
61518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61519 (eval $ac_compile) 2>&5
61520 ac_status=$?
61521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61522 (exit $ac_status); } &&
61523 { ac_try='test -s conftest.$ac_objext'
61524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61525 (eval $ac_try) 2>&5
61526 ac_status=$?
61527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61528 (exit $ac_status); }; }; then
61529 glibcxx_mresult=1
61530 else
61531 echo "$as_me: failed program was:" >&5
61532 sed 's/^/| /' conftest.$ac_ext >&5
61534 glibcxx_mresult=0
61536 rm -f conftest.$ac_objext conftest.$ac_ext
61538 cat >>confdefs.h <<_ACEOF
61539 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
61540 _ACEOF
61544 cat >conftest.$ac_ext <<_ACEOF
61545 #line $LINENO "configure"
61546 /* confdefs.h. */
61547 _ACEOF
61548 cat confdefs.h >>conftest.$ac_ext
61549 cat >>conftest.$ac_ext <<_ACEOF
61550 /* end confdefs.h. */
61551 #include <unistd.h>
61552 #include <sys/time.h>
61553 #include <sys/resource.h>
61556 main ()
61558 int f = RLIMIT_AS ;
61560 return 0;
61562 _ACEOF
61563 rm -f conftest.$ac_objext
61564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61565 (eval $ac_compile) 2>&5
61566 ac_status=$?
61567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61568 (exit $ac_status); } &&
61569 { ac_try='test -s conftest.$ac_objext'
61570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61571 (eval $ac_try) 2>&5
61572 ac_status=$?
61573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61574 (exit $ac_status); }; }; then
61575 glibcxx_mresult=1
61576 else
61577 echo "$as_me: failed program was:" >&5
61578 sed 's/^/| /' conftest.$ac_ext >&5
61580 glibcxx_mresult=0
61582 rm -f conftest.$ac_objext conftest.$ac_ext
61584 cat >>confdefs.h <<_ACEOF
61585 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
61586 _ACEOF
61590 # Check for rlimit, setrlimit.
61591 if test "${ac_setrlimit+set}" = set; then
61592 echo $ECHO_N "(cached) $ECHO_C" >&6
61593 else
61595 cat >conftest.$ac_ext <<_ACEOF
61596 #line $LINENO "configure"
61597 /* confdefs.h. */
61598 _ACEOF
61599 cat confdefs.h >>conftest.$ac_ext
61600 cat >>conftest.$ac_ext <<_ACEOF
61601 /* end confdefs.h. */
61602 #include <unistd.h>
61603 #include <sys/time.h>
61604 #include <sys/resource.h>
61607 main ()
61609 struct rlimit r;
61610 setrlimit(0, &r);
61612 return 0;
61614 _ACEOF
61615 rm -f conftest.$ac_objext
61616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61617 (eval $ac_compile) 2>&5
61618 ac_status=$?
61619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61620 (exit $ac_status); } &&
61621 { ac_try='test -s conftest.$ac_objext'
61622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61623 (eval $ac_try) 2>&5
61624 ac_status=$?
61625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61626 (exit $ac_status); }; }; then
61627 ac_setrlimit=yes
61628 else
61629 echo "$as_me: failed program was:" >&5
61630 sed 's/^/| /' conftest.$ac_ext >&5
61632 ac_setrlimit=no
61634 rm -f conftest.$ac_objext conftest.$ac_ext
61640 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
61641 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
61642 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
61643 ac_mem_limits=yes
61644 cat >>confdefs.h <<\_ACEOF
61645 #define _GLIBCXX_MEM_LIMITS 1
61646 _ACEOF
61648 else
61649 ac_mem_limits=no
61651 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
61652 echo "${ECHO_T}$ac_mem_limits" >&6
61655 # Look for setenv, so that extended locale tests can be performed.
61657 echo "$as_me:$LINENO: checking for setenv declaration" >&5
61658 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
61659 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
61660 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
61661 echo $ECHO_N "(cached) $ECHO_C" >&6
61662 else
61666 ac_ext=cc
61667 ac_cpp='$CXXCPP $CPPFLAGS'
61668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
61672 cat >conftest.$ac_ext <<_ACEOF
61673 #line $LINENO "configure"
61674 /* confdefs.h. */
61675 _ACEOF
61676 cat confdefs.h >>conftest.$ac_ext
61677 cat >>conftest.$ac_ext <<_ACEOF
61678 /* end confdefs.h. */
61679 #include <stdlib.h>
61681 main ()
61683 setenv(0, 0, 0);
61685 return 0;
61687 _ACEOF
61688 rm -f conftest.$ac_objext
61689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61690 (eval $ac_compile) 2>&5
61691 ac_status=$?
61692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61693 (exit $ac_status); } &&
61694 { ac_try='test -s conftest.$ac_objext'
61695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61696 (eval $ac_try) 2>&5
61697 ac_status=$?
61698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61699 (exit $ac_status); }; }; then
61700 glibcxx_cv_func_setenv_use=yes
61701 else
61702 echo "$as_me: failed program was:" >&5
61703 sed 's/^/| /' conftest.$ac_ext >&5
61705 glibcxx_cv_func_setenv_use=no
61707 rm -f conftest.$ac_objext conftest.$ac_ext
61708 ac_ext=c
61709 ac_cpp='$CPP $CPPFLAGS'
61710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61718 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
61719 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
61720 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
61722 for ac_func in setenv
61724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61725 echo "$as_me:$LINENO: checking for $ac_func" >&5
61726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61727 if eval "test \"\${$as_ac_var+set}\" = set"; then
61728 echo $ECHO_N "(cached) $ECHO_C" >&6
61729 else
61730 if test x$gcc_no_link = xyes; then
61731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61733 { (exit 1); exit 1; }; }
61735 cat >conftest.$ac_ext <<_ACEOF
61736 #line $LINENO "configure"
61737 /* confdefs.h. */
61738 _ACEOF
61739 cat confdefs.h >>conftest.$ac_ext
61740 cat >>conftest.$ac_ext <<_ACEOF
61741 /* end confdefs.h. */
61742 /* System header to define __stub macros and hopefully few prototypes,
61743 which can conflict with char $ac_func (); below.
61744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61745 <limits.h> exists even on freestanding compilers. */
61746 #ifdef __STDC__
61747 # include <limits.h>
61748 #else
61749 # include <assert.h>
61750 #endif
61751 /* Override any gcc2 internal prototype to avoid an error. */
61752 #ifdef __cplusplus
61753 extern "C"
61755 #endif
61756 /* We use char because int might match the return type of a gcc2
61757 builtin and then its argument prototype would still apply. */
61758 char $ac_func ();
61759 /* The GNU C library defines this for functions which it implements
61760 to always fail with ENOSYS. Some functions are actually named
61761 something starting with __ and the normal name is an alias. */
61762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61763 choke me
61764 #else
61765 char (*f) () = $ac_func;
61766 #endif
61767 #ifdef __cplusplus
61769 #endif
61772 main ()
61774 return f != $ac_func;
61776 return 0;
61778 _ACEOF
61779 rm -f conftest.$ac_objext conftest$ac_exeext
61780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61781 (eval $ac_link) 2>&5
61782 ac_status=$?
61783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61784 (exit $ac_status); } &&
61785 { ac_try='test -s conftest$ac_exeext'
61786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61787 (eval $ac_try) 2>&5
61788 ac_status=$?
61789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61790 (exit $ac_status); }; }; then
61791 eval "$as_ac_var=yes"
61792 else
61793 echo "$as_me: failed program was:" >&5
61794 sed 's/^/| /' conftest.$ac_ext >&5
61796 eval "$as_ac_var=no"
61798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61802 if test `eval echo '${'$as_ac_var'}'` = yes; then
61803 cat >>confdefs.h <<_ACEOF
61804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61805 _ACEOF
61808 done
61813 if test $enable_symvers = no; then
61814 enable_abi_check=no
61815 else
61816 case "$host" in
61817 *-*-cygwin*)
61818 enable_abi_check=no ;;
61820 enable_abi_check=yes ;;
61821 esac
61823 else
61824 # Only build this as native, since automake does not understand
61825 # CXX_FOR_BUILD.
61826 enable_abi_check=no
61829 # Export file names for ABI checking.
61830 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
61837 # Propagate the target-specific source directories through the build chain.
61838 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
61839 # uses it, and it only gets used in this file.)
61840 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
61841 OS_INC_SRCDIR=config/${os_include_dir}
61845 # Determine cross-compile flags and AM_CONDITIONALs.
61846 #AC_SUBST(GLIBCXX_IS_NATIVE)
61847 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
61848 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
61849 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
61852 if test $is_hosted = yes; then
61853 GLIBCXX_HOSTED_TRUE=
61854 GLIBCXX_HOSTED_FALSE='#'
61855 else
61856 GLIBCXX_HOSTED_TRUE='#'
61857 GLIBCXX_HOSTED_FALSE=
61863 if test $enable_libstdcxx_pch = yes; then
61864 GLIBCXX_BUILD_PCH_TRUE=
61865 GLIBCXX_BUILD_PCH_FALSE='#'
61866 else
61867 GLIBCXX_BUILD_PCH_TRUE='#'
61868 GLIBCXX_BUILD_PCH_FALSE=
61874 if test $enable_cheaders = c; then
61875 GLIBCXX_C_HEADERS_C_TRUE=
61876 GLIBCXX_C_HEADERS_C_FALSE='#'
61877 else
61878 GLIBCXX_C_HEADERS_C_TRUE='#'
61879 GLIBCXX_C_HEADERS_C_FALSE=
61885 if test $enable_cheaders = c_std; then
61886 GLIBCXX_C_HEADERS_C_STD_TRUE=
61887 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
61888 else
61889 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
61890 GLIBCXX_C_HEADERS_C_STD_FALSE=
61896 if test $c_compatibility = yes; then
61897 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
61898 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
61899 else
61900 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
61901 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
61907 if test $enable_libstdcxx_debug = yes; then
61908 GLIBCXX_BUILD_DEBUG_TRUE=
61909 GLIBCXX_BUILD_DEBUG_FALSE='#'
61910 else
61911 GLIBCXX_BUILD_DEBUG_TRUE='#'
61912 GLIBCXX_BUILD_DEBUG_FALSE=
61918 if test $enable_symvers != no; then
61919 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
61920 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
61921 else
61922 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
61923 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
61929 if test $enable_wchar_t = yes; then
61930 GLIBCXX_TEST_WCHAR_T_TRUE=
61931 GLIBCXX_TEST_WCHAR_T_FALSE='#'
61932 else
61933 GLIBCXX_TEST_WCHAR_T_TRUE='#'
61934 GLIBCXX_TEST_WCHAR_T_FALSE=
61940 if test $enable_abi_check = yes; then
61941 GLIBCXX_TEST_ABI_TRUE=
61942 GLIBCXX_TEST_ABI_FALSE='#'
61943 else
61944 GLIBCXX_TEST_ABI_TRUE='#'
61945 GLIBCXX_TEST_ABI_FALSE=
61951 cat >confcache <<\_ACEOF
61952 # This file is a shell script that caches the results of configure
61953 # tests run on this system so they can be shared between configure
61954 # scripts and configure runs, see configure's option --config-cache.
61955 # It is not useful on other systems. If it contains results you don't
61956 # want to keep, you may remove or edit it.
61958 # config.status only pays attention to the cache file if you give it
61959 # the --recheck option to rerun configure.
61961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
61962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
61963 # following values.
61965 _ACEOF
61967 # The following way of writing the cache mishandles newlines in values,
61968 # but we know of no workaround that is simple, portable, and efficient.
61969 # So, don't put newlines in cache variables' values.
61970 # Ultrix sh set writes to stderr and can't be redirected directly,
61971 # and sets the high bit in the cache file unless we assign to the vars.
61973 (set) 2>&1 |
61974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
61975 *ac_space=\ *)
61976 # `set' does not quote correctly, so add quotes (double-quote
61977 # substitution turns \\\\ into \\, and sed turns \\ into \).
61978 sed -n \
61979 "s/'/'\\\\''/g;
61980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
61983 # `set' quotes correctly as required by POSIX, so do not add quotes.
61984 sed -n \
61985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
61987 esac;
61989 sed '
61990 t clear
61991 : clear
61992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
61993 t end
61994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
61995 : end' >>confcache
61996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
61997 if test -w $cache_file; then
61998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
61999 cat confcache >$cache_file
62000 else
62001 echo "not updating unwritable cache $cache_file"
62004 rm -f confcache
62006 if test ${multilib} = yes; then
62007 multilib_arg="--enable-multilib"
62008 else
62009 multilib_arg=
62012 # Export all the install information.
62014 glibcxx_toolexecdir=no
62015 glibcxx_toolexeclibdir=no
62016 glibcxx_prefixdir=$prefix
62018 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
62019 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
62021 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
62022 if test "${with_gxx_include_dir+set}" = set; then
62023 withval="$with_gxx_include_dir"
62024 case "$withval" in
62025 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
62026 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
62027 { (exit 1); exit 1; }; } ;;
62028 no) gxx_include_dir=no ;;
62029 *) gxx_include_dir=$withval ;;
62030 esac
62031 else
62032 gxx_include_dir=no
62034 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
62035 echo "${ECHO_T}$gxx_include_dir" >&6
62037 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
62038 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
62039 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
62040 if test "${enable_version_specific_runtime_libs+set}" = set; then
62041 enableval="$enable_version_specific_runtime_libs"
62042 case "$enableval" in
62043 yes) version_specific_libs=yes ;;
62044 no) version_specific_libs=no ;;
62045 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
62046 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
62047 { (exit 1); exit 1; }; };;
62048 esac
62049 else
62050 version_specific_libs=no
62052 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
62053 echo "${ECHO_T}$version_specific_libs" >&6
62055 # Default case for install directory for include files.
62056 if test $version_specific_libs = no && test $gxx_include_dir = no; then
62057 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
62060 # Version-specific runtime libs processing.
62061 if test $version_specific_libs = yes; then
62062 # Need the gcc compiler version to know where to install libraries
62063 # and header files if --enable-version-specific-runtime-libs option
62064 # is selected.
62065 if test x"$gxx_include_dir" = x"no"; then
62066 gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
62068 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
62069 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
62072 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
62073 # Install a library built with a cross compiler in tooldir, not libdir.
62074 if test x"$glibcxx_toolexecdir" = x"no"; then
62075 if test -n "$with_cross_host" &&
62076 test x"$with_cross_host" != x"no"; then
62077 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
62078 glibcxx_toolexeclibdir='${toolexecdir}/lib'
62079 else
62080 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
62081 glibcxx_toolexeclibdir='${libdir}'
62083 multi_os_directory=`$CXX -print-multi-os-directory`
62084 case $multi_os_directory in
62085 .) ;; # Avoid trailing /.
62086 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
62087 esac
62090 echo "$as_me:$LINENO: checking for install location" >&5
62091 echo $ECHO_N "checking for install location... $ECHO_C" >&6
62092 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
62093 echo "${ECHO_T}$gxx_include_dir" >&6
62101 # Export all the include and flag information to Makefiles.
62103 # Used for every C++ compile we perform.
62104 GLIBCXX_INCLUDES="\
62105 -I$glibcxx_builddir/include/$host_alias \
62106 -I$glibcxx_builddir/include \
62107 -I$glibcxx_srcdir/libsupc++"
62109 # For Canadian crosses, pick this up too.
62110 if test $CANADIAN = yes; then
62111 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
62114 # Stuff in the actual top level. Currently only used by libsupc++ to
62115 # get unwind* headers from the gcc dir.
62116 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
62117 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
62119 # Now, export this to all the little Makefiles....
62124 # Optimization flags that are probably a good idea for thrill-seekers. Just
62125 # uncomment the lines below and make, everything else is ready to go...
62126 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
62127 OPTIMIZE_CXXFLAGS=
62130 WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
62134 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
62135 grep "enable shared" > /dev/null;
62136 then
62137 LIBSUPCXX_PICFLAGS=-prefer-pic
62138 else
62139 LIBSUPCXX_PICFLAGS=
62143 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
62145 ac_config_files="$ac_config_files scripts/check_survey"
62147 ac_config_files="$ac_config_files scripts/testsuite_flags"
62150 ac_config_commands="$ac_config_commands default"
62153 cat >confcache <<\_ACEOF
62154 # This file is a shell script that caches the results of configure
62155 # tests run on this system so they can be shared between configure
62156 # scripts and configure runs, see configure's option --config-cache.
62157 # It is not useful on other systems. If it contains results you don't
62158 # want to keep, you may remove or edit it.
62160 # config.status only pays attention to the cache file if you give it
62161 # the --recheck option to rerun configure.
62163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
62164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
62165 # following values.
62167 _ACEOF
62169 # The following way of writing the cache mishandles newlines in values,
62170 # but we know of no workaround that is simple, portable, and efficient.
62171 # So, don't put newlines in cache variables' values.
62172 # Ultrix sh set writes to stderr and can't be redirected directly,
62173 # and sets the high bit in the cache file unless we assign to the vars.
62175 (set) 2>&1 |
62176 case `(ac_space=' '; set | grep ac_space) 2>&1` in
62177 *ac_space=\ *)
62178 # `set' does not quote correctly, so add quotes (double-quote
62179 # substitution turns \\\\ into \\, and sed turns \\ into \).
62180 sed -n \
62181 "s/'/'\\\\''/g;
62182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
62185 # `set' quotes correctly as required by POSIX, so do not add quotes.
62186 sed -n \
62187 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
62189 esac;
62191 sed '
62192 t clear
62193 : clear
62194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
62195 t end
62196 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
62197 : end' >>confcache
62198 if diff $cache_file confcache >/dev/null 2>&1; then :; else
62199 if test -w $cache_file; then
62200 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
62201 cat confcache >$cache_file
62202 else
62203 echo "not updating unwritable cache $cache_file"
62206 rm -f confcache
62208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
62209 # Let make expand exec_prefix.
62210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
62212 # VPATH may cause trouble with some makes, so we remove $(srcdir),
62213 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
62214 # trailing colons and then remove the whole line if VPATH becomes empty
62215 # (actually we leave an empty line to preserve line numbers).
62216 if test "x$srcdir" = x.; then
62217 ac_vpsub='/^[ ]*VPATH[ ]*=/{
62218 s/:*\$(srcdir):*/:/;
62219 s/:*\${srcdir}:*/:/;
62220 s/:*@srcdir@:*/:/;
62221 s/^\([^=]*=[ ]*\):*/\1/;
62222 s/:*$//;
62223 s/^[^=]*=[ ]*$//;
62227 DEFS=-DHAVE_CONFIG_H
62229 ac_libobjs=
62230 ac_ltlibobjs=
62231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
62232 # 1. Remove the extension, and $U if already installed.
62233 ac_i=`echo "$ac_i" |
62234 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
62235 # 2. Add them.
62236 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
62237 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
62238 done
62239 LIBOBJS=$ac_libobjs
62241 LTLIBOBJS=$ac_ltlibobjs
62244 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
62245 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
62246 Usually this means the macro was only invoked conditionally." >&5
62247 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
62248 Usually this means the macro was only invoked conditionally." >&2;}
62249 { (exit 1); exit 1; }; }
62251 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
62252 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
62253 Usually this means the macro was only invoked conditionally." >&5
62254 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
62255 Usually this means the macro was only invoked conditionally." >&2;}
62256 { (exit 1); exit 1; }; }
62258 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
62259 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
62260 Usually this means the macro was only invoked conditionally." >&5
62261 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
62262 Usually this means the macro was only invoked conditionally." >&2;}
62263 { (exit 1); exit 1; }; }
62265 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
62266 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
62267 Usually this means the macro was only invoked conditionally." >&5
62268 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
62269 Usually this means the macro was only invoked conditionally." >&2;}
62270 { (exit 1); exit 1; }; }
62272 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
62273 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
62274 Usually this means the macro was only invoked conditionally." >&5
62275 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
62276 Usually this means the macro was only invoked conditionally." >&2;}
62277 { (exit 1); exit 1; }; }
62279 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
62280 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
62281 Usually this means the macro was only invoked conditionally." >&5
62282 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
62283 Usually this means the macro was only invoked conditionally." >&2;}
62284 { (exit 1); exit 1; }; }
62286 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
62287 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
62288 Usually this means the macro was only invoked conditionally." >&5
62289 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
62290 Usually this means the macro was only invoked conditionally." >&2;}
62291 { (exit 1); exit 1; }; }
62293 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
62294 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
62295 Usually this means the macro was only invoked conditionally." >&5
62296 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
62297 Usually this means the macro was only invoked conditionally." >&2;}
62298 { (exit 1); exit 1; }; }
62300 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
62301 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
62302 Usually this means the macro was only invoked conditionally." >&5
62303 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
62304 Usually this means the macro was only invoked conditionally." >&2;}
62305 { (exit 1); exit 1; }; }
62307 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
62308 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
62309 Usually this means the macro was only invoked conditionally." >&5
62310 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
62311 Usually this means the macro was only invoked conditionally." >&2;}
62312 { (exit 1); exit 1; }; }
62315 : ${CONFIG_STATUS=./config.status}
62316 ac_clean_files_save=$ac_clean_files
62317 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
62318 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
62319 echo "$as_me: creating $CONFIG_STATUS" >&6;}
62320 cat >$CONFIG_STATUS <<_ACEOF
62321 #! $SHELL
62322 # Generated by $as_me.
62323 # Run this file to recreate the current configuration.
62324 # Compiler output produced by configure, useful for debugging
62325 # configure, is in config.log if it exists.
62327 debug=false
62328 ac_cs_recheck=false
62329 ac_cs_silent=false
62330 SHELL=\${CONFIG_SHELL-$SHELL}
62331 _ACEOF
62333 cat >>$CONFIG_STATUS <<\_ACEOF
62334 ## --------------------- ##
62335 ## M4sh Initialization. ##
62336 ## --------------------- ##
62338 # Be Bourne compatible
62339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
62340 emulate sh
62341 NULLCMD=:
62342 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
62343 # is contrary to our usage. Disable this feature.
62344 alias -g '${1+"$@"}'='"$@"'
62345 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
62346 set -o posix
62349 # Support unset when possible.
62350 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62351 as_unset=unset
62352 else
62353 as_unset=false
62357 # Work around bugs in pre-3.0 UWIN ksh.
62358 $as_unset ENV MAIL MAILPATH
62359 PS1='$ '
62360 PS2='> '
62361 PS4='+ '
62363 # NLS nuisances.
62364 for as_var in \
62365 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
62366 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
62367 LC_TELEPHONE LC_TIME
62369 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
62370 eval $as_var=C; export $as_var
62371 else
62372 $as_unset $as_var
62374 done
62376 # Required to use basename.
62377 if expr a : '\(a\)' >/dev/null 2>&1; then
62378 as_expr=expr
62379 else
62380 as_expr=false
62383 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62384 as_basename=basename
62385 else
62386 as_basename=false
62390 # Name of the executable.
62391 as_me=`$as_basename "$0" ||
62392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
62393 X"$0" : 'X\(//\)$' \| \
62394 X"$0" : 'X\(/\)$' \| \
62395 . : '\(.\)' 2>/dev/null ||
62396 echo X/"$0" |
62397 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
62398 /^X\/\(\/\/\)$/{ s//\1/; q; }
62399 /^X\/\(\/\).*/{ s//\1/; q; }
62400 s/.*/./; q'`
62403 # PATH needs CR, and LINENO needs CR and PATH.
62404 # Avoid depending upon Character Ranges.
62405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
62406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
62407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
62408 as_cr_digits='0123456789'
62409 as_cr_alnum=$as_cr_Letters$as_cr_digits
62411 # The user is always right.
62412 if test "${PATH_SEPARATOR+set}" != set; then
62413 echo "#! /bin/sh" >conf$$.sh
62414 echo "exit 0" >>conf$$.sh
62415 chmod +x conf$$.sh
62416 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
62417 PATH_SEPARATOR=';'
62418 else
62419 PATH_SEPARATOR=:
62421 rm -f conf$$.sh
62425 as_lineno_1=$LINENO
62426 as_lineno_2=$LINENO
62427 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
62428 test "x$as_lineno_1" != "x$as_lineno_2" &&
62429 test "x$as_lineno_3" = "x$as_lineno_2" || {
62430 # Find who we are. Look in the path if we contain no path at all
62431 # relative or not.
62432 case $0 in
62433 *[\\/]* ) as_myself=$0 ;;
62434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62435 for as_dir in $PATH
62437 IFS=$as_save_IFS
62438 test -z "$as_dir" && as_dir=.
62439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
62440 done
62443 esac
62444 # We did not find ourselves, most probably we were run as `sh COMMAND'
62445 # in which case we are not to be found in the path.
62446 if test "x$as_myself" = x; then
62447 as_myself=$0
62449 if test ! -f "$as_myself"; then
62450 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
62451 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
62452 { (exit 1); exit 1; }; }
62454 case $CONFIG_SHELL in
62456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62457 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
62459 IFS=$as_save_IFS
62460 test -z "$as_dir" && as_dir=.
62461 for as_base in sh bash ksh sh5; do
62462 case $as_dir in
62464 if ("$as_dir/$as_base" -c '
62465 as_lineno_1=$LINENO
62466 as_lineno_2=$LINENO
62467 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
62468 test "x$as_lineno_1" != "x$as_lineno_2" &&
62469 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
62470 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
62471 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
62472 CONFIG_SHELL=$as_dir/$as_base
62473 export CONFIG_SHELL
62474 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
62475 fi;;
62476 esac
62477 done
62478 done
62480 esac
62482 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
62483 # uniformly replaced by the line number. The first 'sed' inserts a
62484 # line-number line before each line; the second 'sed' does the real
62485 # work. The second script uses 'N' to pair each line-number line
62486 # with the numbered line, and appends trailing '-' during
62487 # substitution so that $LINENO is not a special case at line end.
62488 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
62489 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
62490 sed '=' <$as_myself |
62491 sed '
62493 s,$,-,
62494 : loop
62495 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
62496 t loop
62497 s,-$,,
62498 s,^['$as_cr_digits']*\n,,
62499 ' >$as_me.lineno &&
62500 chmod +x $as_me.lineno ||
62501 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
62502 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
62503 { (exit 1); exit 1; }; }
62505 # Don't try to exec as it changes $[0], causing all sort of problems
62506 # (the dirname of $[0] is not the place where we might find the
62507 # original and so on. Autoconf is especially sensible to this).
62508 . ./$as_me.lineno
62509 # Exit status is that of the last command.
62510 exit
62514 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
62515 *c*,-n*) ECHO_N= ECHO_C='
62516 ' ECHO_T=' ' ;;
62517 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
62518 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
62519 esac
62521 if expr a : '\(a\)' >/dev/null 2>&1; then
62522 as_expr=expr
62523 else
62524 as_expr=false
62527 rm -f conf$$ conf$$.exe conf$$.file
62528 echo >conf$$.file
62529 if ln -s conf$$.file conf$$ 2>/dev/null; then
62530 # We could just check for DJGPP; but this test a) works b) is more generic
62531 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
62532 if test -f conf$$.exe; then
62533 # Don't use ln at all; we don't have any links
62534 as_ln_s='cp -p'
62535 else
62536 as_ln_s='ln -s'
62538 elif ln conf$$.file conf$$ 2>/dev/null; then
62539 as_ln_s=ln
62540 else
62541 as_ln_s='cp -p'
62543 rm -f conf$$ conf$$.exe conf$$.file
62545 if mkdir -p . 2>/dev/null; then
62546 as_mkdir_p=:
62547 else
62548 as_mkdir_p=false
62551 as_executable_p="test -f"
62553 # Sed expression to map a string onto a valid CPP name.
62554 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
62556 # Sed expression to map a string onto a valid variable name.
62557 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
62560 # IFS
62561 # We need space, tab and new line, in precisely that order.
62562 as_nl='
62564 IFS=" $as_nl"
62566 # CDPATH.
62567 $as_unset CDPATH
62569 exec 6>&1
62571 # Open the log real soon, to keep \$[0] and so on meaningful, and to
62572 # report actual input values of CONFIG_FILES etc. instead of their
62573 # values after options handling. Logging --version etc. is OK.
62574 exec 5>>config.log
62576 echo
62577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
62578 ## Running $as_me. ##
62579 _ASBOX
62580 } >&5
62581 cat >&5 <<_CSEOF
62583 This file was extended by package-unused $as_me version-unused, which was
62584 generated by GNU Autoconf 2.57. Invocation command line was
62586 CONFIG_FILES = $CONFIG_FILES
62587 CONFIG_HEADERS = $CONFIG_HEADERS
62588 CONFIG_LINKS = $CONFIG_LINKS
62589 CONFIG_COMMANDS = $CONFIG_COMMANDS
62590 $ $0 $@
62592 _CSEOF
62593 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
62594 echo >&5
62595 _ACEOF
62597 # Files that config.status was made for.
62598 if test -n "$ac_config_files"; then
62599 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
62602 if test -n "$ac_config_headers"; then
62603 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
62606 if test -n "$ac_config_links"; then
62607 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
62610 if test -n "$ac_config_commands"; then
62611 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
62614 cat >>$CONFIG_STATUS <<\_ACEOF
62616 ac_cs_usage="\
62617 \`$as_me' instantiates files from templates according to the
62618 current configuration.
62620 Usage: $0 [OPTIONS] [FILE]...
62622 -h, --help print this help, then exit
62623 -V, --version print version number, then exit
62624 -q, --quiet do not print progress messages
62625 -d, --debug don't remove temporary files
62626 --recheck update $as_me by reconfiguring in the same conditions
62627 --file=FILE[:TEMPLATE]
62628 instantiate the configuration file FILE
62629 --header=FILE[:TEMPLATE]
62630 instantiate the configuration header FILE
62632 Configuration files:
62633 $config_files
62635 Configuration headers:
62636 $config_headers
62638 Configuration commands:
62639 $config_commands
62641 Report bugs to <bug-autoconf@gnu.org>."
62642 _ACEOF
62644 cat >>$CONFIG_STATUS <<_ACEOF
62645 ac_cs_version="\\
62646 package-unused config.status version-unused
62647 configured by $0, generated by GNU Autoconf 2.57,
62648 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
62650 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
62651 Free Software Foundation, Inc.
62652 This config.status script is free software; the Free Software Foundation
62653 gives unlimited permission to copy, distribute and modify it."
62654 srcdir=$srcdir
62655 INSTALL="$INSTALL"
62656 _ACEOF
62658 cat >>$CONFIG_STATUS <<\_ACEOF
62659 # If no file are specified by the user, then we need to provide default
62660 # value. By we need to know if files were specified by the user.
62661 ac_need_defaults=:
62662 while test $# != 0
62664 case $1 in
62665 --*=*)
62666 ac_option=`expr "x$1" : 'x\([^=]*\)='`
62667 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
62668 ac_shift=:
62671 ac_option=$1
62672 ac_optarg=$2
62673 ac_shift=shift
62675 *) # This is not an option, so the user has probably given explicit
62676 # arguments.
62677 ac_option=$1
62678 ac_need_defaults=false;;
62679 esac
62681 case $ac_option in
62682 # Handling of the options.
62683 _ACEOF
62684 cat >>$CONFIG_STATUS <<\_ACEOF
62685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
62686 ac_cs_recheck=: ;;
62687 --version | --vers* | -V )
62688 echo "$ac_cs_version"; exit 0 ;;
62689 --he | --h)
62690 # Conflict between --help and --header
62691 { { echo "$as_me:$LINENO: error: ambiguous option: $1
62692 Try \`$0 --help' for more information." >&5
62693 echo "$as_me: error: ambiguous option: $1
62694 Try \`$0 --help' for more information." >&2;}
62695 { (exit 1); exit 1; }; };;
62696 --help | --hel | -h )
62697 echo "$ac_cs_usage"; exit 0 ;;
62698 --debug | --d* | -d )
62699 debug=: ;;
62700 --file | --fil | --fi | --f )
62701 $ac_shift
62702 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
62703 ac_need_defaults=false;;
62704 --header | --heade | --head | --hea )
62705 $ac_shift
62706 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
62707 ac_need_defaults=false;;
62708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
62709 | -silent | --silent | --silen | --sile | --sil | --si | --s)
62710 ac_cs_silent=: ;;
62712 # This is an error.
62713 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
62714 Try \`$0 --help' for more information." >&5
62715 echo "$as_me: error: unrecognized option: $1
62716 Try \`$0 --help' for more information." >&2;}
62717 { (exit 1); exit 1; }; } ;;
62719 *) ac_config_targets="$ac_config_targets $1" ;;
62721 esac
62722 shift
62723 done
62725 ac_configure_extra_args=
62727 if $ac_cs_silent; then
62728 exec 6>/dev/null
62729 ac_configure_extra_args="$ac_configure_extra_args --silent"
62732 _ACEOF
62733 cat >>$CONFIG_STATUS <<_ACEOF
62734 if \$ac_cs_recheck; then
62735 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
62736 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
62739 _ACEOF
62741 cat >>$CONFIG_STATUS <<_ACEOF
62743 # INIT-COMMANDS section.
62747 srcdir="$srcdir"
62748 host="$host"
62749 target="$target"
62750 with_multisubdir="$with_multisubdir"
62751 with_multisrctop="$with_multisrctop"
62752 with_target_subdir="$with_target_subdir"
62753 ac_configure_args="${multilib_arg} ${ac_configure_args}"
62754 multi_basedir="$multi_basedir"
62755 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
62756 CC="$CC"
62758 # Variables needed in config.status (file generation) which aren't already
62759 # passed by autoconf.
62760 SUBDIRS="$SUBDIRS"
62763 _ACEOF
62767 cat >>$CONFIG_STATUS <<\_ACEOF
62768 for ac_config_target in $ac_config_targets
62770 case "$ac_config_target" in
62771 # Handling of arguments.
62772 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
62773 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
62774 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
62775 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
62776 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
62777 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
62778 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
62779 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
62780 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
62781 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
62782 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
62783 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
62784 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
62785 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
62786 { (exit 1); exit 1; }; };;
62787 esac
62788 done
62790 # If the user did not use the arguments to specify the items to instantiate,
62791 # then the envvar interface is used. Set only those that are not.
62792 # We use the long form for the default assignment because of an extremely
62793 # bizarre bug on SunOS 4.1.3.
62794 if $ac_need_defaults; then
62795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
62796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
62797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
62800 # Have a temporary directory for convenience. Make it in the build tree
62801 # simply because there is no reason to put it here, and in addition,
62802 # creating and moving files from /tmp can sometimes cause problems.
62803 # Create a temporary directory, and hook for its removal unless debugging.
62804 $debug ||
62806 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
62807 trap '{ (exit 1); exit 1; }' 1 2 13 15
62810 # Create a (secure) tmp directory for tmp files.
62813 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
62814 test -n "$tmp" && test -d "$tmp"
62815 } ||
62817 tmp=./confstat$$-$RANDOM
62818 (umask 077 && mkdir $tmp)
62819 } ||
62821 echo "$me: cannot create a temporary directory in ." >&2
62822 { (exit 1); exit 1; }
62825 _ACEOF
62827 cat >>$CONFIG_STATUS <<_ACEOF
62830 # CONFIG_FILES section.
62833 # No need to generate the scripts if there are no CONFIG_FILES.
62834 # This happens for instance when ./config.status config.h
62835 if test -n "\$CONFIG_FILES"; then
62836 # Protect against being on the right side of a sed subst in config.status.
62837 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
62838 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
62839 s,@SHELL@,$SHELL,;t t
62840 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
62841 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
62842 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
62843 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
62844 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
62845 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
62846 s,@exec_prefix@,$exec_prefix,;t t
62847 s,@prefix@,$prefix,;t t
62848 s,@program_transform_name@,$program_transform_name,;t t
62849 s,@bindir@,$bindir,;t t
62850 s,@sbindir@,$sbindir,;t t
62851 s,@libexecdir@,$libexecdir,;t t
62852 s,@datadir@,$datadir,;t t
62853 s,@sysconfdir@,$sysconfdir,;t t
62854 s,@sharedstatedir@,$sharedstatedir,;t t
62855 s,@localstatedir@,$localstatedir,;t t
62856 s,@libdir@,$libdir,;t t
62857 s,@includedir@,$includedir,;t t
62858 s,@oldincludedir@,$oldincludedir,;t t
62859 s,@infodir@,$infodir,;t t
62860 s,@mandir@,$mandir,;t t
62861 s,@build_alias@,$build_alias,;t t
62862 s,@host_alias@,$host_alias,;t t
62863 s,@target_alias@,$target_alias,;t t
62864 s,@DEFS@,$DEFS,;t t
62865 s,@ECHO_C@,$ECHO_C,;t t
62866 s,@ECHO_N@,$ECHO_N,;t t
62867 s,@ECHO_T@,$ECHO_T,;t t
62868 s,@LIBS@,$LIBS,;t t
62869 s,@libtool_VERSION@,$libtool_VERSION,;t t
62870 s,@multi_basedir@,$multi_basedir,;t t
62871 s,@build@,$build,;t t
62872 s,@build_cpu@,$build_cpu,;t t
62873 s,@build_vendor@,$build_vendor,;t t
62874 s,@build_os@,$build_os,;t t
62875 s,@host@,$host,;t t
62876 s,@host_cpu@,$host_cpu,;t t
62877 s,@host_vendor@,$host_vendor,;t t
62878 s,@host_os@,$host_os,;t t
62879 s,@target@,$target,;t t
62880 s,@target_cpu@,$target_cpu,;t t
62881 s,@target_vendor@,$target_vendor,;t t
62882 s,@target_os@,$target_os,;t t
62883 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
62884 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
62885 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
62886 s,@CYGPATH_W@,$CYGPATH_W,;t t
62887 s,@PACKAGE@,$PACKAGE,;t t
62888 s,@VERSION@,$VERSION,;t t
62889 s,@ACLOCAL@,$ACLOCAL,;t t
62890 s,@AUTOCONF@,$AUTOCONF,;t t
62891 s,@AUTOMAKE@,$AUTOMAKE,;t t
62892 s,@AUTOHEADER@,$AUTOHEADER,;t t
62893 s,@MAKEINFO@,$MAKEINFO,;t t
62894 s,@AMTAR@,$AMTAR,;t t
62895 s,@install_sh@,$install_sh,;t t
62896 s,@STRIP@,$STRIP,;t t
62897 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
62898 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
62899 s,@AWK@,$AWK,;t t
62900 s,@SET_MAKE@,$SET_MAKE,;t t
62901 s,@am__leading_dot@,$am__leading_dot,;t t
62902 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
62903 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
62904 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
62905 s,@CC@,$CC,;t t
62906 s,@ac_ct_CC@,$ac_ct_CC,;t t
62907 s,@EXEEXT@,$EXEEXT,;t t
62908 s,@OBJEXT@,$OBJEXT,;t t
62909 s,@CXX@,$CXX,;t t
62910 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
62911 s,@CFLAGS@,$CFLAGS,;t t
62912 s,@CXXFLAGS@,$CXXFLAGS,;t t
62913 s,@LN_S@,$LN_S,;t t
62914 s,@AS@,$AS,;t t
62915 s,@ac_ct_AS@,$ac_ct_AS,;t t
62916 s,@AR@,$AR,;t t
62917 s,@ac_ct_AR@,$ac_ct_AR,;t t
62918 s,@RANLIB@,$RANLIB,;t t
62919 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
62920 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
62921 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
62922 s,@MAINT@,$MAINT,;t t
62923 s,@LIBTOOL@,$LIBTOOL,;t t
62924 s,@CXXCPP@,$CXXCPP,;t t
62925 s,@CPPFLAGS@,$CPPFLAGS,;t t
62926 s,@enable_shared@,$enable_shared,;t t
62927 s,@enable_static@,$enable_static,;t t
62928 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
62929 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
62930 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
62931 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
62932 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
62933 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
62934 s,@CSTDIO_H@,$CSTDIO_H,;t t
62935 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
62936 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
62937 s,@CPP@,$CPP,;t t
62938 s,@EGREP@,$EGREP,;t t
62939 s,@check_msgfmt@,$check_msgfmt,;t t
62940 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
62941 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
62942 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
62943 s,@USE_NLS@,$USE_NLS,;t t
62944 s,@CLOCALE_H@,$CLOCALE_H,;t t
62945 s,@CCODECVT_H@,$CCODECVT_H,;t t
62946 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
62947 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
62948 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
62949 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
62950 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
62951 s,@CMONEY_CC@,$CMONEY_CC,;t t
62952 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
62953 s,@CTIME_H@,$CTIME_H,;t t
62954 s,@CTIME_CC@,$CTIME_CC,;t t
62955 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
62956 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
62957 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
62958 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
62959 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
62960 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
62961 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
62962 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
62963 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
62964 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
62965 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
62966 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
62967 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
62968 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
62969 s,@WERROR@,$WERROR,;t t
62970 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
62971 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
62972 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
62973 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
62974 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
62975 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
62976 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
62977 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
62978 s,@baseline_dir@,$baseline_dir,;t t
62979 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
62980 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
62981 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
62982 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
62983 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
62984 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
62985 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
62986 s,@gxx_include_dir@,$gxx_include_dir,;t t
62987 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
62988 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
62989 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
62990 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
62991 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
62992 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
62993 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
62994 s,@LIBOBJS@,$LIBOBJS,;t t
62995 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
62996 CEOF
62998 _ACEOF
63000 cat >>$CONFIG_STATUS <<\_ACEOF
63001 # Split the substitutions into bite-sized pieces for seds with
63002 # small command number limits, like on Digital OSF/1 and HP-UX.
63003 ac_max_sed_lines=48
63004 ac_sed_frag=1 # Number of current file.
63005 ac_beg=1 # First line for current file.
63006 ac_end=$ac_max_sed_lines # Line after last line for current file.
63007 ac_more_lines=:
63008 ac_sed_cmds=
63009 while $ac_more_lines; do
63010 if test $ac_beg -gt 1; then
63011 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63012 else
63013 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63015 if test ! -s $tmp/subs.frag; then
63016 ac_more_lines=false
63017 else
63018 # The purpose of the label and of the branching condition is to
63019 # speed up the sed processing (if there are no `@' at all, there
63020 # is no need to browse any of the substitutions).
63021 # These are the two extra sed commands mentioned above.
63022 (echo ':t
63023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
63024 if test -z "$ac_sed_cmds"; then
63025 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
63026 else
63027 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
63029 ac_sed_frag=`expr $ac_sed_frag + 1`
63030 ac_beg=$ac_end
63031 ac_end=`expr $ac_end + $ac_max_sed_lines`
63033 done
63034 if test -z "$ac_sed_cmds"; then
63035 ac_sed_cmds=cat
63037 fi # test -n "$CONFIG_FILES"
63039 _ACEOF
63040 cat >>$CONFIG_STATUS <<\_ACEOF
63041 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
63042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
63043 case $ac_file in
63044 - | *:- | *:-:* ) # input from stdin
63045 cat >$tmp/stdin
63046 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63048 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63049 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63050 * ) ac_file_in=$ac_file.in ;;
63051 esac
63053 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
63054 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
63055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63056 X"$ac_file" : 'X\(//\)[^/]' \| \
63057 X"$ac_file" : 'X\(//\)$' \| \
63058 X"$ac_file" : 'X\(/\)' \| \
63059 . : '\(.\)' 2>/dev/null ||
63060 echo X"$ac_file" |
63061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63063 /^X\(\/\/\)$/{ s//\1/; q; }
63064 /^X\(\/\).*/{ s//\1/; q; }
63065 s/.*/./; q'`
63066 { if $as_mkdir_p; then
63067 mkdir -p "$ac_dir"
63068 else
63069 as_dir="$ac_dir"
63070 as_dirs=
63071 while test ! -d "$as_dir"; do
63072 as_dirs="$as_dir $as_dirs"
63073 as_dir=`(dirname "$as_dir") 2>/dev/null ||
63074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63075 X"$as_dir" : 'X\(//\)[^/]' \| \
63076 X"$as_dir" : 'X\(//\)$' \| \
63077 X"$as_dir" : 'X\(/\)' \| \
63078 . : '\(.\)' 2>/dev/null ||
63079 echo X"$as_dir" |
63080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63082 /^X\(\/\/\)$/{ s//\1/; q; }
63083 /^X\(\/\).*/{ s//\1/; q; }
63084 s/.*/./; q'`
63085 done
63086 test ! -n "$as_dirs" || mkdir $as_dirs
63087 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
63088 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
63089 { (exit 1); exit 1; }; }; }
63091 ac_builddir=.
63093 if test "$ac_dir" != .; then
63094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
63095 # A "../" for each directory in $ac_dir_suffix.
63096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63097 else
63098 ac_dir_suffix= ac_top_builddir=
63101 case $srcdir in
63102 .) # No --srcdir option. We are building in place.
63103 ac_srcdir=.
63104 if test -z "$ac_top_builddir"; then
63105 ac_top_srcdir=.
63106 else
63107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
63108 fi ;;
63109 [\\/]* | ?:[\\/]* ) # Absolute path.
63110 ac_srcdir=$srcdir$ac_dir_suffix;
63111 ac_top_srcdir=$srcdir ;;
63112 *) # Relative path.
63113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
63114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
63115 esac
63116 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
63117 # absolute.
63118 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
63119 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
63120 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
63121 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
63124 case $INSTALL in
63125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
63126 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
63127 esac
63129 if test x"$ac_file" != x-; then
63130 { echo "$as_me:$LINENO: creating $ac_file" >&5
63131 echo "$as_me: creating $ac_file" >&6;}
63132 rm -f "$ac_file"
63134 # Let's still pretend it is `configure' which instantiates (i.e., don't
63135 # use $as_me), people would be surprised to read:
63136 # /* config.h. Generated by config.status. */
63137 if test x"$ac_file" = x-; then
63138 configure_input=
63139 else
63140 configure_input="$ac_file. "
63142 configure_input=$configure_input"Generated from `echo $ac_file_in |
63143 sed 's,.*/,,'` by configure."
63145 # First look for the input files in the build tree, otherwise in the
63146 # src tree.
63147 ac_file_inputs=`IFS=:
63148 for f in $ac_file_in; do
63149 case $f in
63150 -) echo $tmp/stdin ;;
63151 [\\/$]*)
63152 # Absolute (can't be DOS-style, as IFS=:)
63153 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63154 echo "$as_me: error: cannot find input file: $f" >&2;}
63155 { (exit 1); exit 1; }; }
63156 echo $f;;
63157 *) # Relative
63158 if test -f "$f"; then
63159 # Build tree
63160 echo $f
63161 elif test -f "$srcdir/$f"; then
63162 # Source tree
63163 echo $srcdir/$f
63164 else
63165 # /dev/null tree
63166 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63167 echo "$as_me: error: cannot find input file: $f" >&2;}
63168 { (exit 1); exit 1; }; }
63169 fi;;
63170 esac
63171 done` || { (exit 1); exit 1; }
63172 _ACEOF
63173 cat >>$CONFIG_STATUS <<_ACEOF
63174 sed "$ac_vpsub
63175 $extrasub
63176 _ACEOF
63177 cat >>$CONFIG_STATUS <<\_ACEOF
63179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
63180 s,@configure_input@,$configure_input,;t t
63181 s,@srcdir@,$ac_srcdir,;t t
63182 s,@abs_srcdir@,$ac_abs_srcdir,;t t
63183 s,@top_srcdir@,$ac_top_srcdir,;t t
63184 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
63185 s,@builddir@,$ac_builddir,;t t
63186 s,@abs_builddir@,$ac_abs_builddir,;t t
63187 s,@top_builddir@,$ac_top_builddir,;t t
63188 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
63189 s,@INSTALL@,$ac_INSTALL,;t t
63190 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
63191 rm -f $tmp/stdin
63192 if test x"$ac_file" != x-; then
63193 mv $tmp/out $ac_file
63194 else
63195 cat $tmp/out
63196 rm -f $tmp/out
63199 # Run the commands associated with the file.
63200 case $ac_file in
63201 scripts/check_survey ) chmod +x scripts/check_survey ;;
63202 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
63203 esac
63204 done
63205 _ACEOF
63206 cat >>$CONFIG_STATUS <<\_ACEOF
63209 # CONFIG_HEADER section.
63212 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
63213 # NAME is the cpp macro being defined and VALUE is the value it is being given.
63215 # ac_d sets the value in "#define NAME VALUE" lines.
63216 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
63217 ac_dB='[ ].*$,\1#\2'
63218 ac_dC=' '
63219 ac_dD=',;t'
63220 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
63221 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
63222 ac_uB='$,\1#\2define\3'
63223 ac_uC=' '
63224 ac_uD=',;t'
63226 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
63227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
63228 case $ac_file in
63229 - | *:- | *:-:* ) # input from stdin
63230 cat >$tmp/stdin
63231 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63233 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63235 * ) ac_file_in=$ac_file.in ;;
63236 esac
63238 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
63239 echo "$as_me: creating $ac_file" >&6;}
63241 # First look for the input files in the build tree, otherwise in the
63242 # src tree.
63243 ac_file_inputs=`IFS=:
63244 for f in $ac_file_in; do
63245 case $f in
63246 -) echo $tmp/stdin ;;
63247 [\\/$]*)
63248 # Absolute (can't be DOS-style, as IFS=:)
63249 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63250 echo "$as_me: error: cannot find input file: $f" >&2;}
63251 { (exit 1); exit 1; }; }
63252 echo $f;;
63253 *) # Relative
63254 if test -f "$f"; then
63255 # Build tree
63256 echo $f
63257 elif test -f "$srcdir/$f"; then
63258 # Source tree
63259 echo $srcdir/$f
63260 else
63261 # /dev/null tree
63262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63263 echo "$as_me: error: cannot find input file: $f" >&2;}
63264 { (exit 1); exit 1; }; }
63265 fi;;
63266 esac
63267 done` || { (exit 1); exit 1; }
63268 # Remove the trailing spaces.
63269 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
63271 _ACEOF
63273 # Transform confdefs.h into two sed scripts, `conftest.defines' and
63274 # `conftest.undefs', that substitutes the proper values into
63275 # config.h.in to produce config.h. The first handles `#define'
63276 # templates, and the second `#undef' templates.
63277 # And first: Protect against being on the right side of a sed subst in
63278 # config.status. Protect against being in an unquoted here document
63279 # in config.status.
63280 rm -f conftest.defines conftest.undefs
63281 # Using a here document instead of a string reduces the quoting nightmare.
63282 # Putting comments in sed scripts is not portable.
63284 # `end' is used to avoid that the second main sed command (meant for
63285 # 0-ary CPP macros) applies to n-ary macro definitions.
63286 # See the Autoconf documentation for `clear'.
63287 cat >confdef2sed.sed <<\_ACEOF
63288 s/[\\&,]/\\&/g
63289 s,[\\$`],\\&,g
63290 t clear
63291 : clear
63292 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
63293 t end
63294 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
63295 : end
63296 _ACEOF
63297 # If some macros were called several times there might be several times
63298 # the same #defines, which is useless. Nevertheless, we may not want to
63299 # sort them, since we want the *last* AC-DEFINE to be honored.
63300 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
63301 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
63302 rm -f confdef2sed.sed
63304 # This sed command replaces #undef with comments. This is necessary, for
63305 # example, in the case of _POSIX_SOURCE, which is predefined and required
63306 # on some systems where configure will not decide to define it.
63307 cat >>conftest.undefs <<\_ACEOF
63308 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
63309 _ACEOF
63311 # Break up conftest.defines because some shells have a limit on the size
63312 # of here documents, and old seds have small limits too (100 cmds).
63313 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
63314 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
63315 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
63316 echo ' :' >>$CONFIG_STATUS
63317 rm -f conftest.tail
63318 while grep . conftest.defines >/dev/null
63320 # Write a limited-size here document to $tmp/defines.sed.
63321 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
63322 # Speed up: don't consider the non `#define' lines.
63323 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
63324 # Work around the forget-to-reset-the-flag bug.
63325 echo 't clr' >>$CONFIG_STATUS
63326 echo ': clr' >>$CONFIG_STATUS
63327 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
63328 echo 'CEOF
63329 sed -f $tmp/defines.sed $tmp/in >$tmp/out
63330 rm -f $tmp/in
63331 mv $tmp/out $tmp/in
63332 ' >>$CONFIG_STATUS
63333 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
63334 rm -f conftest.defines
63335 mv conftest.tail conftest.defines
63336 done
63337 rm -f conftest.defines
63338 echo ' fi # grep' >>$CONFIG_STATUS
63339 echo >>$CONFIG_STATUS
63341 # Break up conftest.undefs because some shells have a limit on the size
63342 # of here documents, and old seds have small limits too (100 cmds).
63343 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
63344 rm -f conftest.tail
63345 while grep . conftest.undefs >/dev/null
63347 # Write a limited-size here document to $tmp/undefs.sed.
63348 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
63349 # Speed up: don't consider the non `#undef'
63350 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
63351 # Work around the forget-to-reset-the-flag bug.
63352 echo 't clr' >>$CONFIG_STATUS
63353 echo ': clr' >>$CONFIG_STATUS
63354 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
63355 echo 'CEOF
63356 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
63357 rm -f $tmp/in
63358 mv $tmp/out $tmp/in
63359 ' >>$CONFIG_STATUS
63360 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
63361 rm -f conftest.undefs
63362 mv conftest.tail conftest.undefs
63363 done
63364 rm -f conftest.undefs
63366 cat >>$CONFIG_STATUS <<\_ACEOF
63367 # Let's still pretend it is `configure' which instantiates (i.e., don't
63368 # use $as_me), people would be surprised to read:
63369 # /* config.h. Generated by config.status. */
63370 if test x"$ac_file" = x-; then
63371 echo "/* Generated by configure. */" >$tmp/config.h
63372 else
63373 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
63375 cat $tmp/in >>$tmp/config.h
63376 rm -f $tmp/in
63377 if test x"$ac_file" != x-; then
63378 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
63379 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
63380 echo "$as_me: $ac_file is unchanged" >&6;}
63381 else
63382 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
63383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63384 X"$ac_file" : 'X\(//\)[^/]' \| \
63385 X"$ac_file" : 'X\(//\)$' \| \
63386 X"$ac_file" : 'X\(/\)' \| \
63387 . : '\(.\)' 2>/dev/null ||
63388 echo X"$ac_file" |
63389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63391 /^X\(\/\/\)$/{ s//\1/; q; }
63392 /^X\(\/\).*/{ s//\1/; q; }
63393 s/.*/./; q'`
63394 { if $as_mkdir_p; then
63395 mkdir -p "$ac_dir"
63396 else
63397 as_dir="$ac_dir"
63398 as_dirs=
63399 while test ! -d "$as_dir"; do
63400 as_dirs="$as_dir $as_dirs"
63401 as_dir=`(dirname "$as_dir") 2>/dev/null ||
63402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63403 X"$as_dir" : 'X\(//\)[^/]' \| \
63404 X"$as_dir" : 'X\(//\)$' \| \
63405 X"$as_dir" : 'X\(/\)' \| \
63406 . : '\(.\)' 2>/dev/null ||
63407 echo X"$as_dir" |
63408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63410 /^X\(\/\/\)$/{ s//\1/; q; }
63411 /^X\(\/\).*/{ s//\1/; q; }
63412 s/.*/./; q'`
63413 done
63414 test ! -n "$as_dirs" || mkdir $as_dirs
63415 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
63416 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
63417 { (exit 1); exit 1; }; }; }
63419 rm -f $ac_file
63420 mv $tmp/config.h $ac_file
63422 else
63423 cat $tmp/config.h
63424 rm -f $tmp/config.h
63426 # Compute $ac_file's index in $config_headers.
63427 _am_stamp_count=1
63428 for _am_header in $config_headers :; do
63429 case $_am_header in
63430 $ac_file | $ac_file:* )
63431 break ;;
63433 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
63434 esac
63435 done
63436 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
63437 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63438 X$ac_file : 'X\(//\)[^/]' \| \
63439 X$ac_file : 'X\(//\)$' \| \
63440 X$ac_file : 'X\(/\)' \| \
63441 . : '\(.\)' 2>/dev/null ||
63442 echo X$ac_file |
63443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63445 /^X\(\/\/\)$/{ s//\1/; q; }
63446 /^X\(\/\).*/{ s//\1/; q; }
63447 s/.*/./; q'`/stamp-h$_am_stamp_count
63448 done
63449 _ACEOF
63450 cat >>$CONFIG_STATUS <<\_ACEOF
63453 # CONFIG_COMMANDS section.
63455 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
63456 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
63457 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
63458 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
63459 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63460 X"$ac_dest" : 'X\(//\)[^/]' \| \
63461 X"$ac_dest" : 'X\(//\)$' \| \
63462 X"$ac_dest" : 'X\(/\)' \| \
63463 . : '\(.\)' 2>/dev/null ||
63464 echo X"$ac_dest" |
63465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63467 /^X\(\/\/\)$/{ s//\1/; q; }
63468 /^X\(\/\).*/{ s//\1/; q; }
63469 s/.*/./; q'`
63470 ac_builddir=.
63472 if test "$ac_dir" != .; then
63473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
63474 # A "../" for each directory in $ac_dir_suffix.
63475 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63476 else
63477 ac_dir_suffix= ac_top_builddir=
63480 case $srcdir in
63481 .) # No --srcdir option. We are building in place.
63482 ac_srcdir=.
63483 if test -z "$ac_top_builddir"; then
63484 ac_top_srcdir=.
63485 else
63486 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
63487 fi ;;
63488 [\\/]* | ?:[\\/]* ) # Absolute path.
63489 ac_srcdir=$srcdir$ac_dir_suffix;
63490 ac_top_srcdir=$srcdir ;;
63491 *) # Relative path.
63492 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
63493 ac_top_srcdir=$ac_top_builddir$srcdir ;;
63494 esac
63495 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
63496 # absolute.
63497 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
63498 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
63499 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
63500 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
63503 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
63504 echo "$as_me: executing $ac_dest commands" >&6;}
63505 case $ac_dest in
63506 default-1 )
63507 # Only add multilib support code if we just rebuilt the top-level
63508 # Makefile.
63509 case " $CONFIG_FILES " in
63510 *" Makefile "*)
63511 ac_file=Makefile . ${multi_basedir}/config-ml.in
63513 esac ;;
63514 default ) if test -n "$CONFIG_FILES"; then
63515 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
63516 # that multilib installs will end up installed in the correct place.
63517 # The testsuite needs it for multilib-aware ABI baseline files.
63518 # To work around this not being passed down from config-ml.in ->
63519 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
63520 # append it here. Only modify Makefiles that have just been created.
63522 # Also, get rid of this simulated-VPATH thing that automake does.
63523 cat > vpsed << \_EOF
63524 s!`test -f '$<' || echo '$(srcdir)/'`!!
63525 _EOF
63526 for i in $SUBDIRS; do
63527 case $CONFIG_FILES in
63528 *${i}/Makefile*)
63529 #echo "Adding MULTISUBDIR to $i/Makefile"
63530 sed -f vpsed $i/Makefile > tmp
63531 grep '^MULTISUBDIR =' Makefile >> tmp
63532 mv tmp $i/Makefile
63534 esac
63535 done
63536 rm vpsed
63538 (cd include && ${MAKE-make})
63540 esac
63541 done
63542 _ACEOF
63544 cat >>$CONFIG_STATUS <<\_ACEOF
63546 { (exit 0); exit 0; }
63547 _ACEOF
63548 chmod +x $CONFIG_STATUS
63549 ac_clean_files=$ac_clean_files_save
63552 # configure is writing to config.log, and then calls config.status.
63553 # config.status does its own redirection, appending to config.log.
63554 # Unfortunately, on DOS this fails, as config.log is still kept open
63555 # by configure, so config.status won't be able to write to it; its
63556 # output is simply discarded. So we exec the FD to /dev/null,
63557 # effectively closing config.log, so it can be properly (re)opened and
63558 # appended to by config.status. When coming back to configure, we
63559 # need to make the FD available again.
63560 if test "$no_create" != yes; then
63561 ac_cs_success=:
63562 ac_config_status_args=
63563 test "$silent" = yes &&
63564 ac_config_status_args="$ac_config_status_args --quiet"
63565 exec 5>/dev/null
63566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
63567 exec 5>>config.log
63568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
63569 # would make configure fail if this is the last instruction.
63570 $ac_cs_success || { (exit 1); exit 1; }