2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
[official-gcc.git] / libstdc++-v3 / configure
blob87a258a5ad88fca228f3bb304edca3475024a8f3
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 FPOS_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 FPOS_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.* *.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 \
2804 '#include <stdlib.h>' \
2805 'extern "C" void std::exit (int) throw (); using std::exit;' \
2806 'extern "C" void std::exit (int); using std::exit;' \
2807 'extern "C" void exit (int) throw ();' \
2808 'extern "C" void exit (int);' \
2809 'void exit (int);'
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 #include <stdlib.h>
2819 $ac_declaration
2821 main ()
2823 exit (42);
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 continue
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 /* confdefs.h. */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855 $ac_declaration
2857 main ()
2859 exit (42);
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 break
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2882 rm -f conftest.$ac_objext conftest.$ac_ext
2883 done
2884 rm -f conftest*
2885 if test -n "$ac_declaration"; then
2886 echo '#ifdef __cplusplus' >>confdefs.h
2887 echo $ac_declaration >>confdefs.h
2888 echo '#endif' >>confdefs.h
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f conftest.$ac_objext conftest.$ac_ext
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 ac_ext=cc
2904 ac_cpp='$CXXCPP $CPPFLAGS'
2905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$CXX"; then
2919 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2937 CXX=$glibcxx_cv_prog_CXX
2938 if test -n "$CXX"; then
2939 echo "$as_me:$LINENO: result: $CXX" >&5
2940 echo "${ECHO_T}$CXX" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 test -n "$CXX" && break
2947 done
2949 if test -z "$CXX"; then
2950 ac_ct_CXX=$CXX
2951 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$ac_ct_CXX"; then
2961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CXX="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2980 if test -n "$ac_ct_CXX"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2982 echo "${ECHO_T}$ac_ct_CXX" >&6
2983 else
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2988 test -n "$ac_ct_CXX" && break
2989 done
2990 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2992 CXX=$ac_ct_CXX
2996 # Provide some information about the compiler.
2997 echo "$as_me:$LINENO:" \
2998 "checking for C++ compiler version" >&5
2999 ac_compiler=`set X $ac_compile; echo $2`
3000 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3001 (eval $ac_compiler --version </dev/null >&5) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
3005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3006 (eval $ac_compiler -v </dev/null >&5) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3011 (eval $ac_compiler -V </dev/null >&5) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3016 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3030 main ()
3032 #ifndef __GNUC__
3033 choke me
3034 #endif
3037 return 0;
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_compiler_gnu=yes
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_compiler_gnu=no
3059 rm -f conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3063 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3065 GXX=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CXXFLAGS=${CXXFLAGS+set}
3067 ac_save_CXXFLAGS=$CXXFLAGS
3068 CXXFLAGS="-g"
3069 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3070 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3071 if test "${ac_cv_prog_cxx_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3076 /* confdefs.h. */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3083 main ()
3087 return 0;
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 ac_cv_prog_cxx_g=yes
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_cv_prog_cxx_g=no
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3111 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3112 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3113 if test "$ac_test_CXXFLAGS" = set; then
3114 CXXFLAGS=$ac_save_CXXFLAGS
3115 elif test $ac_cv_prog_cxx_g = yes; then
3116 if test "$GXX" = yes; then
3117 CXXFLAGS="-g -O2"
3118 else
3119 CXXFLAGS="-g"
3121 else
3122 if test "$GXX" = yes; then
3123 CXXFLAGS="-O2"
3124 else
3125 CXXFLAGS=
3128 for ac_declaration in \
3130 '#include <stdlib.h>' \
3131 'extern "C" void std::exit (int) throw (); using std::exit;' \
3132 'extern "C" void std::exit (int); using std::exit;' \
3133 'extern "C" void exit (int) throw ();' \
3134 'extern "C" void exit (int);' \
3135 'void exit (int);'
3137 cat >conftest.$ac_ext <<_ACEOF
3138 #line $LINENO "configure"
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 #include <stdlib.h>
3145 $ac_declaration
3147 main ()
3149 exit (42);
3151 return 0;
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 continue
3173 rm -f conftest.$ac_objext conftest.$ac_ext
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 $ac_declaration
3183 main ()
3185 exit (42);
3187 return 0;
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 break
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209 done
3210 rm -f conftest*
3211 if test -n "$ac_declaration"; then
3212 echo '#ifdef __cplusplus' >>confdefs.h
3213 echo $ac_declaration >>confdefs.h
3214 echo '#endif' >>confdefs.h
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 CXXFLAGS="$save_CXXFLAGS"
3228 # For directory versioning (e.g., headers) and other variables.
3229 echo "$as_me:$LINENO: checking for GCC version number" >&5
3230 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3231 gcc_version=`$CXX -dumpversion`
3232 echo "$as_me:$LINENO: result: $gcc_version" >&5
3233 echo "${ECHO_T}$gcc_version" >&6
3235 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3236 # available). Uncomment the next line to force a particular method.
3237 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3239 LN_S=$as_ln_s
3240 if test "$LN_S" = "ln -s"; then
3241 echo "$as_me:$LINENO: result: yes" >&5
3242 echo "${ECHO_T}yes" >&6
3243 else
3244 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3245 echo "${ECHO_T}no, using $LN_S" >&6
3248 #LN_S='cp -p'
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}as; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_AS+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$AS"; then
3259 ac_cv_prog_AS="$AS" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_AS="${ac_tool_prefix}as"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3277 AS=$ac_cv_prog_AS
3278 if test -n "$AS"; then
3279 echo "$as_me:$LINENO: result: $AS" >&5
3280 echo "${ECHO_T}$AS" >&6
3281 else
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3287 if test -z "$ac_cv_prog_AS"; then
3288 ac_ct_AS=$AS
3289 # Extract the first word of "as", so it can be a program name with args.
3290 set dummy as; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 if test -n "$ac_ct_AS"; then
3297 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_AS="as"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3310 done
3311 done
3315 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3316 if test -n "$ac_ct_AS"; then
3317 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3318 echo "${ECHO_T}$ac_ct_AS" >&6
3319 else
3320 echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6
3324 AS=$ac_ct_AS
3325 else
3326 AS="$ac_cv_prog_AS"
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ar; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_AR+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 if test -n "$AR"; then
3338 ac_cv_prog_AR="$AR" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_AR="${ac_tool_prefix}ar"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3351 done
3352 done
3356 AR=$ac_cv_prog_AR
3357 if test -n "$AR"; then
3358 echo "$as_me:$LINENO: result: $AR" >&5
3359 echo "${ECHO_T}$AR" >&6
3360 else
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3366 if test -z "$ac_cv_prog_AR"; then
3367 ac_ct_AR=$AR
3368 # Extract the first word of "ar", so it can be a program name with args.
3369 set dummy ar; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 if test -n "$ac_ct_AR"; then
3376 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_AR="ar"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3394 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3395 if test -n "$ac_ct_AR"; then
3396 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3397 echo "${ECHO_T}$ac_ct_AR" >&6
3398 else
3399 echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3403 AR=$ac_ct_AR
3404 else
3405 AR="$ac_cv_prog_AR"
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_RANLIB+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 if test -n "$RANLIB"; then
3417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3430 done
3431 done
3435 RANLIB=$ac_cv_prog_RANLIB
3436 if test -n "$RANLIB"; then
3437 echo "$as_me:$LINENO: result: $RANLIB" >&5
3438 echo "${ECHO_T}$RANLIB" >&6
3439 else
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3445 if test -z "$ac_cv_prog_RANLIB"; then
3446 ac_ct_RANLIB=$RANLIB
3447 # Extract the first word of "ranlib", so it can be a program name with args.
3448 set dummy ranlib; ac_word=$2
3449 echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3451 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if test -n "$ac_ct_RANLIB"; then
3455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_ac_ct_RANLIB="ranlib"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3468 done
3469 done
3471 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3475 if test -n "$ac_ct_RANLIB"; then
3476 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3477 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3483 RANLIB=$ac_ct_RANLIB
3484 else
3485 RANLIB="$ac_cv_prog_RANLIB"
3489 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3490 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3491 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3492 if test "${enable_maintainer_mode+set}" = set; then
3493 enableval="$enable_maintainer_mode"
3494 USE_MAINTAINER_MODE=$enableval
3495 else
3496 USE_MAINTAINER_MODE=no
3498 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3499 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3502 if test $USE_MAINTAINER_MODE = yes; then
3503 MAINTAINER_MODE_TRUE=
3504 MAINTAINER_MODE_FALSE='#'
3505 else
3506 MAINTAINER_MODE_TRUE='#'
3507 MAINTAINER_MODE_FALSE=
3510 MAINT=$MAINTAINER_MODE_TRUE
3514 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3515 # which are themselves conditionally expanded.
3516 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3517 ## other macros from doing the same. This should be automated.) -pme
3518 need_libmath=no
3519 enable_wchar_t=no
3520 #enable_libstdcxx_debug=no
3521 #enable_libstdcxx_pch=no
3522 #enable_cheaders=c
3523 #c_compatibility=no
3524 #enable_abi_check=no
3525 #enable_symvers=no
3526 #enable_hosted_libstdcxx=yes
3528 # Find platform-specific directories containing configuration info.
3529 # Also possibly modify flags used elsewhere, as needed by the platform.
3531 . $glibcxx_srcdir/configure.host
3532 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3533 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3534 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3535 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3539 #AC_MSG_NOTICE([====== Starting libtool configuration])
3541 # Check whether --enable-shared or --disable-shared was given.
3542 if test "${enable_shared+set}" = set; then
3543 enableval="$enable_shared"
3544 p=${PACKAGE-default}
3545 case $enableval in
3546 yes) enable_shared=yes ;;
3547 no) enable_shared=no ;;
3549 enable_shared=no
3550 # Look at the argument we got. We use all the common list separators.
3551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3552 for pkg in $enableval; do
3553 if test "X$pkg" = "X$p"; then
3554 enable_shared=yes
3556 done
3557 IFS="$ac_save_ifs"
3559 esac
3560 else
3561 enable_shared=yes
3563 # Check whether --enable-static or --disable-static was given.
3564 if test "${enable_static+set}" = set; then
3565 enableval="$enable_static"
3566 p=${PACKAGE-default}
3567 case $enableval in
3568 yes) enable_static=yes ;;
3569 no) enable_static=no ;;
3571 enable_static=no
3572 # Look at the argument we got. We use all the common list separators.
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3574 for pkg in $enableval; do
3575 if test "X$pkg" = "X$p"; then
3576 enable_static=yes
3578 done
3579 IFS="$ac_save_ifs"
3581 esac
3582 else
3583 enable_static=yes
3585 # Check whether --enable-fast-install or --disable-fast-install was given.
3586 if test "${enable_fast_install+set}" = set; then
3587 enableval="$enable_fast_install"
3588 p=${PACKAGE-default}
3589 case $enableval in
3590 yes) enable_fast_install=yes ;;
3591 no) enable_fast_install=no ;;
3593 enable_fast_install=no
3594 # Look at the argument we got. We use all the common list separators.
3595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3596 for pkg in $enableval; do
3597 if test "X$pkg" = "X$p"; then
3598 enable_fast_install=yes
3600 done
3601 IFS="$ac_save_ifs"
3603 esac
3604 else
3605 enable_fast_install=yes
3608 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3609 if test "${with_gnu_ld+set}" = set; then
3610 withval="$with_gnu_ld"
3611 test "$withval" = no || with_gnu_ld=yes
3612 else
3613 with_gnu_ld=no
3615 ac_prog=ld
3616 if test "$GCC" = yes; then
3617 # Check if gcc -print-prog-name=ld gives a path.
3618 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3619 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3620 case $host in
3621 *-*-mingw*)
3622 # gcc leaves a trailing carriage return which upsets mingw
3623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3626 esac
3627 case $ac_prog in
3628 # Accept absolute paths.
3629 [\\/]* | [A-Za-z]:[\\/]*)
3630 re_direlt='/[^/][^/]*/\.\./'
3631 # Canonicalize the path of ld
3632 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3633 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3634 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3635 done
3636 test -z "$LD" && LD="$ac_prog"
3639 # If it fails, then pretend we aren't using GCC.
3640 ac_prog=ld
3643 # If it is relative, then search for the first ld in PATH.
3644 with_gnu_ld=unknown
3646 esac
3647 elif test "$with_gnu_ld" = yes; then
3648 echo "$as_me:$LINENO: checking for GNU ld" >&5
3649 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3650 else
3651 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3652 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3654 if test "${lt_cv_path_LD+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 if test -z "$LD"; then
3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3659 for ac_dir in $PATH; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3662 lt_cv_path_LD="$ac_dir/$ac_prog"
3663 # Check to see if the program is GNU ld. I'd rather use --version,
3664 # but apparently some GNU ld's only accept -v.
3665 # Break only if it was the GNU/non-GNU ld that we prefer.
3666 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3667 test "$with_gnu_ld" != no && break
3668 else
3669 test "$with_gnu_ld" != yes && break
3672 done
3673 IFS="$ac_save_ifs"
3674 else
3675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3679 LD="$lt_cv_path_LD"
3680 if test -n "$LD"; then
3681 echo "$as_me:$LINENO: result: $LD" >&5
3682 echo "${ECHO_T}$LD" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3687 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3688 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3689 { (exit 1); exit 1; }; }
3690 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3691 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3692 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3696 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3697 lt_cv_prog_gnu_ld=yes
3698 else
3699 lt_cv_prog_gnu_ld=no
3702 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3703 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3704 with_gnu_ld=$lt_cv_prog_gnu_ld
3707 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3708 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3709 if test "${lt_cv_ld_reload_flag+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 lt_cv_ld_reload_flag='-r'
3714 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3715 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3716 reload_flag=$lt_cv_ld_reload_flag
3717 test -n "$reload_flag" && reload_flag=" $reload_flag"
3719 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3720 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3721 if test "${lt_cv_path_NM+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 if test -n "$NM"; then
3725 # Let the user override the test.
3726 lt_cv_path_NM="$NM"
3727 else
3728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3729 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3730 test -z "$ac_dir" && ac_dir=.
3731 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3732 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3733 # Check to see if the nm accepts a BSD-compat flag.
3734 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3735 # nm: unknown option "B" ignored
3736 # Tru64's nm complains that /dev/null is an invalid object file
3737 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3738 lt_cv_path_NM="$tmp_nm -B"
3739 break
3740 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3741 lt_cv_path_NM="$tmp_nm -p"
3742 break
3743 else
3744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3745 continue # so that we can try to find one that supports BSD flags
3748 done
3749 IFS="$ac_save_ifs"
3750 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3754 NM="$lt_cv_path_NM"
3755 echo "$as_me:$LINENO: result: $NM" >&5
3756 echo "${ECHO_T}$NM" >&6
3758 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3759 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3760 if test "${lt_cv_deplibs_check_method+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 lt_cv_file_magic_cmd='$MAGIC_CMD'
3764 lt_cv_file_magic_test_file=
3765 lt_cv_deplibs_check_method='unknown'
3766 # Need to set the preceding variable on all platforms that support
3767 # interlibrary dependencies.
3768 # 'none' -- dependencies not supported.
3769 # `unknown' -- same as none, but documents that we really don't know.
3770 # 'pass_all' -- all dependencies passed with no checks.
3771 # 'test_compile' -- check by making test program.
3772 # 'file_magic [regex]' -- check by looking for files in library path
3773 # which responds to the $file_magic_cmd with a given egrep regex.
3774 # If you have `file' or equivalent on your system and you're not sure
3775 # whether `pass_all' will *always* work, you probably want this one.
3777 case $host_os in
3778 aix*)
3779 lt_cv_deplibs_check_method=pass_all
3782 beos*)
3783 lt_cv_deplibs_check_method=pass_all
3786 bsdi4*)
3787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3788 lt_cv_file_magic_cmd='/usr/bin/file -L'
3789 lt_cv_file_magic_test_file=/shlib/libc.so
3792 cygwin* | mingw* |pw32*)
3793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3794 lt_cv_file_magic_cmd='$OBJDUMP -f'
3797 darwin* | rhapsody*)
3798 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3799 lt_cv_file_magic_cmd='/usr/bin/file -L'
3800 case "$host_os" in
3801 rhapsody* | darwin1.012)
3802 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3804 *) # Darwin 1.3 on
3805 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3807 esac
3810 freebsd* )
3811 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812 case $host_cpu in
3813 i*86 )
3814 # Not sure whether the presence of OpenBSD here was a mistake.
3815 # Let's accept both of them until this is cleared up.
3816 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3817 lt_cv_file_magic_cmd=/usr/bin/file
3818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3820 esac
3821 else
3822 lt_cv_deplibs_check_method=pass_all
3826 gnu*)
3827 lt_cv_deplibs_check_method=pass_all
3830 hpux10.20*|hpux11*)
3831 case $host_cpu in
3832 hppa*)
3833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3834 lt_cv_file_magic_cmd=/usr/bin/file
3835 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3837 ia64*)
3838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3839 lt_cv_file_magic_cmd=/usr/bin/file
3840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3842 esac
3845 irix5* | irix6*)
3846 case $host_os in
3847 irix5*)
3848 # this will be overridden with pass_all, but let us keep it just in case
3849 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3852 case $LD in
3853 *-32|*"-32 ") libmagic=32-bit;;
3854 *-n32|*"-n32 ") libmagic=N32;;
3855 *-64|*"-64 ") libmagic=64-bit;;
3856 *) libmagic=never-match;;
3857 esac
3858 # this will be overridden with pass_all, but let us keep it just in case
3859 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3861 esac
3862 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3863 lt_cv_deplibs_check_method=pass_all
3866 # This must be Linux ELF.
3867 linux-gnu*)
3868 case $host_cpu in
3869 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3870 lt_cv_deplibs_check_method=pass_all ;;
3872 # glibc up to 2.1.1 does not perform some relocations on ARM
3873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3874 esac
3875 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3878 netbsd*)
3879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3880 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3881 else
3882 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3886 newsos6)
3887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3888 lt_cv_file_magic_cmd=/usr/bin/file
3889 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3892 osf3* | osf4* | osf5*)
3893 # this will be overridden with pass_all, but let us keep it just in case
3894 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3895 lt_cv_file_magic_test_file=/shlib/libc.so
3896 lt_cv_deplibs_check_method=pass_all
3899 sco3.2v5*)
3900 lt_cv_deplibs_check_method=pass_all
3903 solaris*)
3904 lt_cv_deplibs_check_method=pass_all
3905 lt_cv_file_magic_test_file=/lib/libc.so
3908 sysv5uw[78]* | sysv4*uw2*)
3909 lt_cv_deplibs_check_method=pass_all
3912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3913 case $host_vendor in
3914 ncr)
3915 lt_cv_deplibs_check_method=pass_all
3917 motorola)
3918 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]'
3919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3921 esac
3923 esac
3926 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3927 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3928 file_magic_cmd=$lt_cv_file_magic_cmd
3929 deplibs_check_method=$lt_cv_deplibs_check_method
3935 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3937 # Only perform the check for file, if the check method requires it
3938 case $deplibs_check_method in
3939 file_magic*)
3940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3941 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3942 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 case $MAGIC_CMD in
3948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3950 ?:/*)
3951 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3954 ac_save_MAGIC_CMD="$MAGIC_CMD"
3955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3956 ac_dummy="/usr/bin:$PATH"
3957 for ac_dir in $ac_dummy; do
3958 test -z "$ac_dir" && ac_dir=.
3959 if test -f $ac_dir/${ac_tool_prefix}file; then
3960 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3961 if test -n "$file_magic_test_file"; then
3962 case $deplibs_check_method in
3963 "file_magic "*)
3964 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3967 egrep "$file_magic_regex" > /dev/null; then
3969 else
3970 cat <<EOF 1>&2
3972 *** Warning: the command libtool uses to detect shared libraries,
3973 *** $file_magic_cmd, produces output that libtool cannot recognize.
3974 *** The result is that libtool may fail to recognize shared libraries
3975 *** as such. This will affect the creation of libtool libraries that
3976 *** depend on shared libraries, but programs linked with such libtool
3977 *** libraries will work regardless of this problem. Nevertheless, you
3978 *** may want to report the problem to your system manager and/or to
3979 *** bug-libtool@gnu.org
3982 fi ;;
3983 esac
3985 break
3987 done
3988 IFS="$ac_save_ifs"
3989 MAGIC_CMD="$ac_save_MAGIC_CMD"
3991 esac
3994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3995 if test -n "$MAGIC_CMD"; then
3996 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3997 echo "${ECHO_T}$MAGIC_CMD" >&6
3998 else
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4003 if test -z "$lt_cv_path_MAGIC_CMD"; then
4004 if test -n "$ac_tool_prefix"; then
4005 echo "$as_me:$LINENO: checking for file" >&5
4006 echo $ECHO_N "checking for file... $ECHO_C" >&6
4007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 case $MAGIC_CMD in
4012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4014 ?:/*)
4015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4018 ac_save_MAGIC_CMD="$MAGIC_CMD"
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4020 ac_dummy="/usr/bin:$PATH"
4021 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f $ac_dir/file; then
4024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4025 if test -n "$file_magic_test_file"; then
4026 case $deplibs_check_method in
4027 "file_magic "*)
4028 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4031 egrep "$file_magic_regex" > /dev/null; then
4033 else
4034 cat <<EOF 1>&2
4036 *** Warning: the command libtool uses to detect shared libraries,
4037 *** $file_magic_cmd, produces output that libtool cannot recognize.
4038 *** The result is that libtool may fail to recognize shared libraries
4039 *** as such. This will affect the creation of libtool libraries that
4040 *** depend on shared libraries, but programs linked with such libtool
4041 *** libraries will work regardless of this problem. Nevertheless, you
4042 *** may want to report the problem to your system manager and/or to
4043 *** bug-libtool@gnu.org
4046 fi ;;
4047 esac
4049 break
4051 done
4052 IFS="$ac_save_ifs"
4053 MAGIC_CMD="$ac_save_MAGIC_CMD"
4055 esac
4058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4059 if test -n "$MAGIC_CMD"; then
4060 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4061 echo "${ECHO_T}$MAGIC_CMD" >&6
4062 else
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4067 else
4068 MAGIC_CMD=:
4074 esac
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_RANLIB+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 if test -n "$RANLIB"; then
4085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4098 done
4099 done
4103 RANLIB=$ac_cv_prog_RANLIB
4104 if test -n "$RANLIB"; then
4105 echo "$as_me:$LINENO: result: $RANLIB" >&5
4106 echo "${ECHO_T}$RANLIB" >&6
4107 else
4108 echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4113 if test -z "$ac_cv_prog_RANLIB"; then
4114 ac_ct_RANLIB=$RANLIB
4115 # Extract the first word of "ranlib", so it can be a program name with args.
4116 set dummy ranlib; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 if test -n "$ac_ct_RANLIB"; then
4123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_RANLIB="ranlib"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4139 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4143 if test -n "$ac_ct_RANLIB"; then
4144 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4145 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4146 else
4147 echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4151 RANLIB=$ac_ct_RANLIB
4152 else
4153 RANLIB="$ac_cv_prog_RANLIB"
4156 if test -n "$ac_tool_prefix"; then
4157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4158 set dummy ${ac_tool_prefix}strip; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_STRIP+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 if test -n "$STRIP"; then
4165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4178 done
4179 done
4183 STRIP=$ac_cv_prog_STRIP
4184 if test -n "$STRIP"; then
4185 echo "$as_me:$LINENO: result: $STRIP" >&5
4186 echo "${ECHO_T}$STRIP" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4193 if test -z "$ac_cv_prog_STRIP"; then
4194 ac_ct_STRIP=$STRIP
4195 # Extract the first word of "strip", so it can be a program name with args.
4196 set dummy strip; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 if test -n "$ac_ct_STRIP"; then
4203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_ac_ct_STRIP="strip"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4216 done
4217 done
4219 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4223 if test -n "$ac_ct_STRIP"; then
4224 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4225 echo "${ECHO_T}$ac_ct_STRIP" >&6
4226 else
4227 echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4231 STRIP=$ac_ct_STRIP
4232 else
4233 STRIP="$ac_cv_prog_STRIP"
4237 # Check for any special flags to pass to ltconfig.
4238 libtool_flags="--cache-file=$cache_file"
4239 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4240 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4241 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4242 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4243 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4246 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4247 if test "${enable_libtool_lock+set}" = set; then
4248 enableval="$enable_libtool_lock"
4251 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4252 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4255 # Check whether --with-pic or --without-pic was given.
4256 if test "${with_pic+set}" = set; then
4257 withval="$with_pic"
4258 pic_mode="$withval"
4259 else
4260 pic_mode=default
4262 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4263 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4265 # Some flags need to be propagated to the compiler or linker for good
4266 # libtool support.
4267 case $host in
4268 *-*-irix6*)
4269 # Find out which ABI we are using.
4270 echo '#line 4270 "configure"' > conftest.$ac_ext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; then
4276 if test "$lt_cv_prog_gnu_ld" = yes; then
4277 case `/usr/bin/file conftest.$ac_objext` in
4278 *32-bit*)
4279 LD="${LD-ld} -melf32bsmip"
4281 *N32*)
4282 LD="${LD-ld} -melf32bmipn32"
4284 *64-bit*)
4285 LD="${LD-ld} -melf64bmip"
4287 esac
4288 else
4289 case `/usr/bin/file conftest.$ac_objext` in
4290 *32-bit*)
4291 LD="${LD-ld} -32"
4293 *N32*)
4294 LD="${LD-ld} -n32"
4296 *64-bit*)
4297 LD="${LD-ld} -64"
4299 esac
4302 rm -rf conftest*
4305 ia64-*-hpux*)
4306 # Find out which ABI we are using.
4307 echo 'int i;' > conftest.$ac_ext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; then
4313 case "`/usr/bin/file conftest.o`" in
4314 *ELF-32*)
4315 HPUX_IA64_MODE="32"
4317 *ELF-64*)
4318 HPUX_IA64_MODE="64"
4320 esac
4322 rm -rf conftest*
4325 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4326 # Find out which ABI we are using.
4327 echo 'int i;' > conftest.$ac_ext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; then
4333 case "`/usr/bin/file conftest.o`" in
4334 *32-bit*)
4335 case $host in
4336 x86_64-*linux*)
4337 LD="${LD-ld} -m elf_i386"
4339 ppc64-*linux*|powerpc64-*linux*)
4340 LD="${LD-ld} -m elf32ppclinux"
4342 s390x-*linux*)
4343 LD="${LD-ld} -m elf_s390"
4345 sparc64-*linux*)
4346 LD="${LD-ld} -m elf32_sparc"
4348 esac
4350 *64-bit*)
4351 case $host in
4352 x86_64-*linux*)
4353 LD="${LD-ld} -m elf_x86_64"
4355 ppc*-*linux*|powerpc*-*linux*)
4356 LD="${LD-ld} -m elf64ppc"
4358 s390*-*linux*)
4359 LD="${LD-ld} -m elf64_s390"
4361 sparc*-*linux*)
4362 LD="${LD-ld} -m elf64_sparc"
4364 esac
4366 esac
4368 rm -rf conftest*
4371 *-*-sco3.2v5*)
4372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4373 SAVE_CFLAGS="$CFLAGS"
4374 CFLAGS="$CFLAGS -belf"
4375 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4376 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4377 if test "${lt_cv_cc_needs_belf+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 if test x$gcc_no_link = xyes; then
4389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4391 { (exit 1); exit 1; }; }
4393 cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4402 main ()
4406 return 0;
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 (eval $ac_link) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -s conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 lt_cv_cc_needs_belf=yes
4422 else
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426 lt_cv_cc_needs_belf=no
4428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4437 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4438 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4440 CFLAGS="$SAVE_CFLAGS"
4445 esac
4448 # Save cache, so that ltconfig can load it
4449 cat >confcache <<\_ACEOF
4450 # This file is a shell script that caches the results of configure
4451 # tests run on this system so they can be shared between configure
4452 # scripts and configure runs, see configure's option --config-cache.
4453 # It is not useful on other systems. If it contains results you don't
4454 # want to keep, you may remove or edit it.
4456 # config.status only pays attention to the cache file if you give it
4457 # the --recheck option to rerun configure.
4459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4461 # following values.
4463 _ACEOF
4465 # The following way of writing the cache mishandles newlines in values,
4466 # but we know of no workaround that is simple, portable, and efficient.
4467 # So, don't put newlines in cache variables' values.
4468 # Ultrix sh set writes to stderr and can't be redirected directly,
4469 # and sets the high bit in the cache file unless we assign to the vars.
4471 (set) 2>&1 |
4472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4473 *ac_space=\ *)
4474 # `set' does not quote correctly, so add quotes (double-quote
4475 # substitution turns \\\\ into \\, and sed turns \\ into \).
4476 sed -n \
4477 "s/'/'\\\\''/g;
4478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4481 # `set' quotes correctly as required by POSIX, so do not add quotes.
4482 sed -n \
4483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4485 esac;
4487 sed '
4488 t clear
4489 : clear
4490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4491 t end
4492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4493 : end' >>confcache
4494 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4495 if test -w $cache_file; then
4496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4497 cat confcache >$cache_file
4498 else
4499 echo "not updating unwritable cache $cache_file"
4502 rm -f confcache
4504 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4505 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4506 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4507 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4508 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4509 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4510 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4511 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4512 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4513 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4514 echo "$as_me: error: libtool configure failed" >&2;}
4515 { (exit 1); exit 1; }; }
4517 # Reload cache, that may have been modified by ltconfig
4518 if test -r "$cache_file"; then
4519 # Some versions of bash will fail to source /dev/null (special
4520 # files actually), so we avoid doing that.
4521 if test -f "$cache_file"; then
4522 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4523 echo "$as_me: loading cache $cache_file" >&6;}
4524 case $cache_file in
4525 [\\/]* | ?:[\\/]* ) . $cache_file;;
4526 *) . ./$cache_file;;
4527 esac
4529 else
4530 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4531 echo "$as_me: creating cache $cache_file" >&6;}
4532 >$cache_file
4536 # This can be used to rebuild libtool when needed
4537 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4539 # Always use our own libtool.
4540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4542 # Redirect the config.log output again, so that the ltconfig log is not
4543 # clobbered by the next message.
4544 exec 5>>./config.log
4546 ac_ext=cc
4547 ac_cpp='$CXXCPP $CPPFLAGS'
4548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4551 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4552 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4553 if test -z "$CXXCPP"; then
4554 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 # Double quotes because CXXCPP needs to be expanded
4558 for CXXCPP in "$CXX -E" "/lib/cpp"
4560 ac_preproc_ok=false
4561 for ac_cxx_preproc_warn_flag in '' yes
4563 # Use a header file that comes with gcc, so configuring glibc
4564 # with a fresh cross-compiler works.
4565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4566 # <limits.h> exists even on freestanding compilers.
4567 # On the NeXT, cc -E runs the code through the compiler's parser,
4568 # not just through cpp. "Syntax error" is here to catch this case.
4569 cat >conftest.$ac_ext <<_ACEOF
4570 #line $LINENO "configure"
4571 /* confdefs.h. */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 #ifdef __STDC__
4577 # include <limits.h>
4578 #else
4579 # include <assert.h>
4580 #endif
4581 Syntax error
4582 _ACEOF
4583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } >/dev/null; then
4591 if test -s conftest.err; then
4592 ac_cpp_err=$ac_cxx_preproc_warn_flag
4593 else
4594 ac_cpp_err=
4596 else
4597 ac_cpp_err=yes
4599 if test -z "$ac_cpp_err"; then
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 # Broken: fails on valid input.
4606 continue
4608 rm -f conftest.err conftest.$ac_ext
4610 # OK, works on sane cases. Now check whether non-existent headers
4611 # can be detected and how.
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #line $LINENO "configure"
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4620 _ACEOF
4621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } >/dev/null; then
4629 if test -s conftest.err; then
4630 ac_cpp_err=$ac_cxx_preproc_warn_flag
4631 else
4632 ac_cpp_err=
4634 else
4635 ac_cpp_err=yes
4637 if test -z "$ac_cpp_err"; then
4638 # Broken: success on invalid input.
4639 continue
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 # Passes both tests.
4645 ac_preproc_ok=:
4646 break
4648 rm -f conftest.err conftest.$ac_ext
4650 done
4651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4652 rm -f conftest.err conftest.$ac_ext
4653 if $ac_preproc_ok; then
4654 break
4657 done
4658 ac_cv_prog_CXXCPP=$CXXCPP
4661 CXXCPP=$ac_cv_prog_CXXCPP
4662 else
4663 ac_cv_prog_CXXCPP=$CXXCPP
4665 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4666 echo "${ECHO_T}$CXXCPP" >&6
4667 ac_preproc_ok=false
4668 for ac_cxx_preproc_warn_flag in '' yes
4670 # Use a header file that comes with gcc, so configuring glibc
4671 # with a fresh cross-compiler works.
4672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673 # <limits.h> exists even on freestanding compilers.
4674 # On the NeXT, cc -E runs the code through the compiler's parser,
4675 # not just through cpp. "Syntax error" is here to catch this case.
4676 cat >conftest.$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 #ifdef __STDC__
4684 # include <limits.h>
4685 #else
4686 # include <assert.h>
4687 #endif
4688 Syntax error
4689 _ACEOF
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null; then
4698 if test -s conftest.err; then
4699 ac_cpp_err=$ac_cxx_preproc_warn_flag
4700 else
4701 ac_cpp_err=
4703 else
4704 ac_cpp_err=yes
4706 if test -z "$ac_cpp_err"; then
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 # Broken: fails on valid input.
4713 continue
4715 rm -f conftest.err conftest.$ac_ext
4717 # OK, works on sane cases. Now check whether non-existent headers
4718 # can be detected and how.
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <ac_nonexistent.h>
4727 _ACEOF
4728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null; then
4736 if test -s conftest.err; then
4737 ac_cpp_err=$ac_cxx_preproc_warn_flag
4738 else
4739 ac_cpp_err=
4741 else
4742 ac_cpp_err=yes
4744 if test -z "$ac_cpp_err"; then
4745 # Broken: success on invalid input.
4746 continue
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 # Passes both tests.
4752 ac_preproc_ok=:
4753 break
4755 rm -f conftest.err conftest.$ac_ext
4757 done
4758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759 rm -f conftest.err conftest.$ac_ext
4760 if $ac_preproc_ok; then
4762 else
4763 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4764 See \`config.log' for more details." >&5
4765 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4766 See \`config.log' for more details." >&2;}
4767 { (exit 1); exit 1; }; }
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4779 lt_save_CC="$CC"
4780 lt_save_CFLAGS="$CFLAGS"
4781 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4782 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4783 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4784 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4785 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4786 deplibs_check_method="$deplibs_check_method" \
4787 file_magic_cmd="$file_magic_cmd" \
4788 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4789 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4790 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4791 echo "$as_me: error: libtool tag configuration failed" >&2;}
4792 { (exit 1); exit 1; }; }
4793 CC="$lt_save_CC"
4794 CFLAGS="$lt_save_CFLAGS"
4796 # Redirect the config.log output again, so that the ltconfig log is not
4797 # clobbered by the next message.
4798 exec 5>>./config.log
4807 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4809 # Possibly disable most of the library.
4810 ## XXX Consider skipping unncessary tests altogether in this case, rather
4811 ## than just ignoring the results. Faster /and/ more correct, win win.
4813 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4814 if test "${enable_hosted_libstdcxx+set}" = set; then
4815 enableval="$enable_hosted_libstdcxx"
4817 else
4818 enable_hosted_libstdcxx=yes
4820 if test "$enable_hosted_libstdcxx" = no; then
4821 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4822 echo "$as_me: Only freestanding libraries will be built" >&6;}
4823 is_hosted=no
4824 hosted_define=0
4825 enable_abi_check=no
4826 enable_libstdcxx_pch=no
4827 else
4828 is_hosted=yes
4829 hosted_define=1
4833 cat >>confdefs.h <<_ACEOF
4834 #define _GLIBCXX_HOSTED $hosted_define
4835 _ACEOF
4839 # Check for support bits and g++ features that don't require linking.
4841 echo "$as_me:$LINENO: checking for exception model to use" >&5
4842 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4845 ac_ext=cc
4846 ac_cpp='$CXXCPP $CPPFLAGS'
4847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4851 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4852 if test "${enable_sjlj_exceptions+set}" = set; then
4853 enableval="$enable_sjlj_exceptions"
4855 case "$enableval" in
4856 yes|no|auto) ;;
4857 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4858 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4860 esac
4862 else
4863 enable_sjlj_exceptions=auto
4867 if test $enable_sjlj_exceptions = auto; then
4868 # Botheration. Now we've got to detect the exception model. Link tests
4869 # against libgcc.a are problematic since we've not been given proper -L
4870 # bits for single-tree newlib and libgloss.
4872 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4873 cat > conftest.$ac_ext << EOF
4874 #line 4874 "configure"
4875 struct S { ~S(); };
4876 void bar();
4877 void foo()
4879 S s;
4880 bar();
4883 old_CXXFLAGS="$CXXFLAGS"
4884 CXXFLAGS=-S
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; then
4890 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4891 enable_sjlj_exceptions=yes
4892 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4893 enable_sjlj_exceptions=no
4896 CXXFLAGS="$old_CXXFLAGS"
4897 rm -f conftest*
4900 # This is a tad weird, for hysterical raisins. We have to map enable/disable
4901 # to two different models.
4902 case $enable_sjlj_exceptions in
4903 yes)
4905 cat >>confdefs.h <<\_ACEOF
4906 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4907 _ACEOF
4909 ac_exception_model_name=sjlj
4912 ac_exception_model_name="call frame"
4915 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4916 echo "$as_me: error: unable to detect exception model" >&2;}
4917 { (exit 1); exit 1; }; }
4919 esac
4920 ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4927 echo "${ECHO_T}$ac_exception_model_name" >&6
4930 echo "$as_me:$LINENO: checking for use of libunwind" >&5
4931 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4932 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4933 if test "${enable_libunwind_exceptions+set}" = set; then
4934 enableval="$enable_libunwind_exceptions"
4936 case "$enableval" in
4937 yes|no) ;;
4938 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4939 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4941 esac
4943 else
4944 enable_libunwind_exceptions=no
4947 echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4948 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4949 if test $enable_libunwind_exceptions = yes; then
4950 LIBUNWIND_FLAG="-lunwind"
4951 else
4952 LIBUNWIND_FLAG=""
4957 echo "$as_me:$LINENO: checking for enabled PCH" >&5
4958 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4959 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4960 if test "${enable_libstdcxx_pch+set}" = set; then
4961 enableval="$enable_libstdcxx_pch"
4963 case "$enableval" in
4964 yes|no) ;;
4965 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4966 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4968 esac
4970 else
4971 enable_libstdcxx_pch=$is_hosted
4974 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4975 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4977 if test $enable_libstdcxx_pch = yes; then
4978 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4979 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4980 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 ac_save_CXXFLAGS="$CXXFLAGS"
4984 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4987 ac_ext=cc
4988 ac_cpp='$CXXCPP $CPPFLAGS'
4989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4993 echo '#include <math.h>' > conftest.h
4994 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4995 -o conftest.h.gch 1>&5 2>&1 &&
4996 echo '#error "pch failed"' > conftest.h &&
4997 echo '#include "conftest.h"' > conftest.cc &&
4998 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4999 then
5000 glibcxx_cv_prog_CXX_pch=yes
5001 else
5002 glibcxx_cv_prog_CXX_pch=no
5004 rm -f conftest*
5005 CXXFLAGS=$ac_save_CXXFLAGS
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5015 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5016 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5020 if test $enable_libstdcxx_pch = yes; then
5021 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5022 else
5023 glibcxx_PCHFLAGS=""
5028 # Enable all the variable C++ runtime options.
5029 # NB: C_MBCHAR must come early.
5031 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5032 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5033 # Check whether --enable-cstdio or --disable-cstdio was given.
5034 if test "${enable_cstdio+set}" = set; then
5035 enableval="$enable_cstdio"
5037 case "$enableval" in
5038 stdio) ;;
5039 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5040 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5042 esac
5044 else
5045 enable_cstdio=stdio
5049 # Now that libio has been removed, you can have any color you want as long
5050 # as it's black. This is one big no-op until other packages are added, but
5051 # showing the framework never hurts.
5052 case ${enable_cstdio} in
5053 stdio)
5054 CSTDIO_H=config/io/c_io_stdio.h
5055 BASIC_FILE_H=config/io/basic_file_stdio.h
5056 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5057 echo "$as_me:$LINENO: result: stdio" >&5
5058 echo "${ECHO_T}stdio" >&6
5060 esac
5062 FPOS_H=$fpos_include_dir
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5075 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5076 # On Suns, sometimes $CPP names a directory.
5077 if test -n "$CPP" && test -d "$CPP"; then
5078 CPP=
5080 if test -z "$CPP"; then
5081 if test "${ac_cv_prog_CPP+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 # Double quotes because CPP needs to be expanded
5085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5087 ac_preproc_ok=false
5088 for ac_c_preproc_warn_flag in '' yes
5090 # Use a header file that comes with gcc, so configuring glibc
5091 # with a fresh cross-compiler works.
5092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096 cat >conftest.$ac_ext <<_ACEOF
5097 #line $LINENO "configure"
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #ifdef __STDC__
5104 # include <limits.h>
5105 #else
5106 # include <assert.h>
5107 #endif
5108 Syntax error
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 else
5121 ac_cpp_err=
5123 else
5124 ac_cpp_err=yes
5126 if test -z "$ac_cpp_err"; then
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 # Broken: fails on valid input.
5133 continue
5135 rm -f conftest.err conftest.$ac_ext
5137 # OK, works on sane cases. Now check whether non-existent headers
5138 # can be detected and how.
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 #include <ac_nonexistent.h>
5147 _ACEOF
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_c_preproc_warn_flag
5158 else
5159 ac_cpp_err=
5161 else
5162 ac_cpp_err=yes
5164 if test -z "$ac_cpp_err"; then
5165 # Broken: success on invalid input.
5166 continue
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 # Passes both tests.
5172 ac_preproc_ok=:
5173 break
5175 rm -f conftest.err conftest.$ac_ext
5177 done
5178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179 rm -f conftest.err conftest.$ac_ext
5180 if $ac_preproc_ok; then
5181 break
5184 done
5185 ac_cv_prog_CPP=$CPP
5188 CPP=$ac_cv_prog_CPP
5189 else
5190 ac_cv_prog_CPP=$CPP
5192 echo "$as_me:$LINENO: result: $CPP" >&5
5193 echo "${ECHO_T}$CPP" >&6
5194 ac_preproc_ok=false
5195 for ac_c_preproc_warn_flag in '' yes
5197 # Use a header file that comes with gcc, so configuring glibc
5198 # with a fresh cross-compiler works.
5199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200 # <limits.h> exists even on freestanding compilers.
5201 # On the NeXT, cc -E runs the code through the compiler's parser,
5202 # not just through cpp. "Syntax error" is here to catch this case.
5203 cat >conftest.$ac_ext <<_ACEOF
5204 #line $LINENO "configure"
5205 /* confdefs.h. */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #ifdef __STDC__
5211 # include <limits.h>
5212 #else
5213 # include <assert.h>
5214 #endif
5215 Syntax error
5216 _ACEOF
5217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null; then
5225 if test -s conftest.err; then
5226 ac_cpp_err=$ac_c_preproc_warn_flag
5227 else
5228 ac_cpp_err=
5230 else
5231 ac_cpp_err=yes
5233 if test -z "$ac_cpp_err"; then
5235 else
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 # Broken: fails on valid input.
5240 continue
5242 rm -f conftest.err conftest.$ac_ext
5244 # OK, works on sane cases. Now check whether non-existent headers
5245 # can be detected and how.
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <ac_nonexistent.h>
5254 _ACEOF
5255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } >/dev/null; then
5263 if test -s conftest.err; then
5264 ac_cpp_err=$ac_c_preproc_warn_flag
5265 else
5266 ac_cpp_err=
5268 else
5269 ac_cpp_err=yes
5271 if test -z "$ac_cpp_err"; then
5272 # Broken: success on invalid input.
5273 continue
5274 else
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 # Passes both tests.
5279 ac_preproc_ok=:
5280 break
5282 rm -f conftest.err conftest.$ac_ext
5284 done
5285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5286 rm -f conftest.err conftest.$ac_ext
5287 if $ac_preproc_ok; then
5289 else
5290 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5291 See \`config.log' for more details." >&5
5292 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5293 See \`config.log' for more details." >&2;}
5294 { (exit 1); exit 1; }; }
5297 ac_ext=c
5298 ac_cpp='$CPP $CPPFLAGS'
5299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 echo "$as_me:$LINENO: checking for egrep" >&5
5305 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5306 if test "${ac_cv_prog_egrep+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5310 then ac_cv_prog_egrep='grep -E'
5311 else ac_cv_prog_egrep='egrep'
5314 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5315 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5316 EGREP=$ac_cv_prog_egrep
5319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5321 if test "${ac_cv_header_stdc+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 cat >conftest.$ac_ext <<_ACEOF
5325 #line $LINENO "configure"
5326 /* confdefs.h. */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 #include <stdlib.h>
5332 #include <stdarg.h>
5333 #include <string.h>
5334 #include <float.h>
5337 main ()
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest.$ac_objext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_header_stdc=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_cv_header_stdc=no
5363 rm -f conftest.$ac_objext conftest.$ac_ext
5365 if test $ac_cv_header_stdc = yes; then
5366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5367 cat >conftest.$ac_ext <<_ACEOF
5368 #line $LINENO "configure"
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <string.h>
5376 _ACEOF
5377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5378 $EGREP "memchr" >/dev/null 2>&1; then
5380 else
5381 ac_cv_header_stdc=no
5383 rm -f conftest*
5387 if test $ac_cv_header_stdc = yes; then
5388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5389 cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 #include <stdlib.h>
5398 _ACEOF
5399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5400 $EGREP "free" >/dev/null 2>&1; then
5402 else
5403 ac_cv_header_stdc=no
5405 rm -f conftest*
5409 if test $ac_cv_header_stdc = yes; then
5410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5411 if test "$cross_compiling" = yes; then
5413 else
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <ctype.h>
5422 #if ((' ' & 0x0FF) == 0x020)
5423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5425 #else
5426 # define ISLOWER(c) \
5427 (('a' <= (c) && (c) <= 'i') \
5428 || ('j' <= (c) && (c) <= 'r') \
5429 || ('s' <= (c) && (c) <= 'z'))
5430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5431 #endif
5433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5435 main ()
5437 int i;
5438 for (i = 0; i < 256; i++)
5439 if (XOR (islower (i), ISLOWER (i))
5440 || toupper (i) != TOUPPER (i))
5441 exit(2);
5442 exit (0);
5444 _ACEOF
5445 rm -f conftest$ac_exeext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5447 (eval $ac_link) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5457 else
5458 echo "$as_me: program exited with status $ac_status" >&5
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 ( exit $ac_status )
5463 ac_cv_header_stdc=no
5465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5471 if test $ac_cv_header_stdc = yes; then
5473 cat >>confdefs.h <<\_ACEOF
5474 #define STDC_HEADERS 1
5475 _ACEOF
5479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5490 inttypes.h stdint.h unistd.h
5492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5493 echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 cat >conftest.$ac_ext <<_ACEOF
5499 #line $LINENO "configure"
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5507 #include <$ac_header>
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 eval "$as_ac_Header=yes"
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 eval "$as_ac_Header=no"
5528 rm -f conftest.$ac_objext conftest.$ac_ext
5530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5535 _ACEOF
5539 done
5543 echo "$as_me:$LINENO: checking for C locale to use" >&5
5544 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5545 # Check whether --enable-clocale or --disable-clocale was given.
5546 if test "${enable_clocale+set}" = set; then
5547 enableval="$enable_clocale"
5549 case "$enableval" in
5550 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5551 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5552 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5553 { (exit 1); exit 1; }; } ;;
5554 esac
5556 else
5557 enable_clocale=auto
5561 # If they didn't use this option switch, or if they specified --enable
5562 # with no specific model, we'll have to look for one. If they
5563 # specified --disable (???), do likewise.
5564 if test $enable_clocale = no || test $enable_clocale = yes; then
5565 enable_clocale=auto
5568 # Either a known package, or "auto"
5569 enable_clocale_flag=$enable_clocale
5571 # Probe for locale support if no specific model is specified.
5572 # Default to "generic".
5573 if test $enable_clocale_flag = auto; then
5574 case x${target_os} in
5575 xlinux* | xgnu*)
5576 cat >conftest.$ac_ext <<_ACEOF
5577 #line $LINENO "configure"
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5584 #include <features.h>
5585 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5586 _GLIBCXX_ok
5587 #endif
5589 _ACEOF
5590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5591 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5592 enable_clocale_flag=gnu
5593 else
5594 enable_clocale_flag=generic
5596 rm -f conftest*
5599 # Test for bugs early in glibc-2.2.x series
5600 if test x$enable_clocale_flag = xgnu; then
5601 if test "$cross_compiling" = yes; then
5602 enable_clocale_flag=generic
5603 else
5604 cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5612 #define _GNU_SOURCE 1
5613 #include <locale.h>
5614 #include <string.h>
5615 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5616 extern __typeof(newlocale) __newlocale;
5617 extern __typeof(duplocale) __duplocale;
5618 extern __typeof(strcoll_l) __strcoll_l;
5619 #endif
5620 int main()
5622 const char __one[] = "Äuglein Augmen";
5623 const char __two[] = "Äuglein";
5624 int i;
5625 int j;
5626 __locale_t loc;
5627 __locale_t loc_dup;
5628 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5629 loc_dup = __duplocale(loc);
5630 i = __strcoll_l(__one, __two, loc);
5631 j = __strcoll_l(__one, __two, loc_dup);
5632 return 0;
5635 _ACEOF
5636 rm -f conftest$ac_exeext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 enable_clocale_flag=gnu
5648 else
5649 echo "$as_me: program exited with status $ac_status" >&5
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 ( exit $ac_status )
5654 enable_clocale_flag=generic
5656 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5660 # ... at some point put __strxfrm_l tests in as well.
5663 enable_clocale_flag=generic
5665 esac
5668 # Deal with gettext issues. Default to not using it (=no) until we detect
5669 # support for it later. Let the user turn it off via --e/d, but let that
5670 # default to on for easier handling.
5671 USE_NLS=no
5672 # Check whether --enable-nls or --disable-nls was given.
5673 if test "${enable_nls+set}" = set; then
5674 enableval="$enable_nls"
5676 else
5677 enable_nls=yes
5680 # Set configure bits for specified locale package
5681 case ${enable_clocale_flag} in
5682 generic)
5683 echo "$as_me:$LINENO: result: generic" >&5
5684 echo "${ECHO_T}generic" >&6
5686 CLOCALE_H=config/locale/generic/c_locale.h
5687 CLOCALE_CC=config/locale/generic/c_locale.cc
5688 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5689 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5690 CCOLLATE_CC=config/locale/generic/collate_members.cc
5691 CCTYPE_CC=config/locale/generic/ctype_members.cc
5692 CMESSAGES_H=config/locale/generic/messages_members.h
5693 CMESSAGES_CC=config/locale/generic/messages_members.cc
5694 CMONEY_CC=config/locale/generic/monetary_members.cc
5695 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5696 CTIME_H=config/locale/generic/time_members.h
5697 CTIME_CC=config/locale/generic/time_members.cc
5698 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5700 gnu)
5701 echo "$as_me:$LINENO: result: gnu" >&5
5702 echo "${ECHO_T}gnu" >&6
5704 # Declare intention to use gettext, and add support for specific
5705 # languages.
5706 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5707 ALL_LINGUAS="de fr"
5709 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5710 # Extract the first word of "msgfmt", so it can be a program name with args.
5711 set dummy msgfmt; ac_word=$2
5712 echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 if test -n "$check_msgfmt"; then
5718 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_check_msgfmt="yes"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5731 done
5732 done
5734 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5737 check_msgfmt=$ac_cv_prog_check_msgfmt
5738 if test -n "$check_msgfmt"; then
5739 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5740 echo "${ECHO_T}$check_msgfmt" >&6
5741 else
5742 echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6
5746 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5747 USE_NLS=yes
5749 # Export the build objects.
5750 for ling in $ALL_LINGUAS; do \
5751 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5752 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5753 done
5757 CLOCALE_H=config/locale/gnu/c_locale.h
5758 CLOCALE_CC=config/locale/gnu/c_locale.cc
5759 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5760 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5761 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5762 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5763 CMESSAGES_H=config/locale/gnu/messages_members.h
5764 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5765 CMONEY_CC=config/locale/gnu/monetary_members.cc
5766 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5767 CTIME_H=config/locale/gnu/time_members.h
5768 CTIME_CC=config/locale/gnu/time_members.cc
5769 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5771 ieee_1003.1-2001)
5772 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5773 echo "${ECHO_T}IEEE 1003.1" >&6
5775 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5776 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5777 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5778 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5779 CCOLLATE_CC=config/locale/generic/collate_members.cc
5780 CCTYPE_CC=config/locale/generic/ctype_members.cc
5781 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5782 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5783 CMONEY_CC=config/locale/generic/monetary_members.cc
5784 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5785 CTIME_H=config/locale/generic/time_members.h
5786 CTIME_CC=config/locale/generic/time_members.cc
5787 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5789 esac
5791 # This is where the testsuite looks for locale catalogs, using the
5792 # -DLOCALEDIR define during testsuite compilation.
5793 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5796 # A standalone libintl (e.g., GNU libintl) may be in use.
5797 if test $USE_NLS = yes; then
5799 for ac_header in libintl.h
5801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo "$as_me:$LINENO: checking for $ac_header" >&5
5804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5810 else
5811 # Is the header compilable?
5812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5822 #include <$ac_header>
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_header_compiler=yes
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_header_compiler=no
5843 rm -f conftest.$ac_objext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5845 echo "${ECHO_T}$ac_header_compiler" >&6
5847 # Is the header present?
5848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <$ac_header>
5858 _ACEOF
5859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } >/dev/null; then
5867 if test -s conftest.err; then
5868 ac_cpp_err=$ac_c_preproc_warn_flag
5869 else
5870 ac_cpp_err=
5872 else
5873 ac_cpp_err=yes
5875 if test -z "$ac_cpp_err"; then
5876 ac_header_preproc=yes
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_header_preproc=no
5883 rm -f conftest.err conftest.$ac_ext
5884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5885 echo "${ECHO_T}$ac_header_preproc" >&6
5887 # So? What about this header?
5888 case $ac_header_compiler:$ac_header_preproc in
5889 yes:no )
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895 cat <<\_ASBOX
5896 ## ------------------------------------ ##
5897 ## Report this to bug-autoconf@gnu.org. ##
5898 ## ------------------------------------ ##
5899 _ASBOX
5901 sed "s/^/$as_me: WARNING: /" >&2
5903 no:yes )
5904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5911 cat <<\_ASBOX
5912 ## ------------------------------------ ##
5913 ## Report this to bug-autoconf@gnu.org. ##
5914 ## ------------------------------------ ##
5915 _ASBOX
5917 sed "s/^/$as_me: WARNING: /" >&2
5919 esac
5920 echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925 eval "$as_ac_Header=$ac_header_preproc"
5927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5932 cat >>confdefs.h <<_ACEOF
5933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5934 _ACEOF
5936 else
5937 USE_NLS=no
5940 done
5942 echo "$as_me:$LINENO: checking for library containing gettext" >&5
5943 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5944 if test "${ac_cv_search_gettext+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 ac_func_search_save_LIBS=$LIBS
5948 ac_cv_search_gettext=no
5949 if test x$gcc_no_link = xyes; then
5950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5952 { (exit 1); exit 1; }; }
5954 cat >conftest.$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5962 /* Override any gcc2 internal prototype to avoid an error. */
5963 #ifdef __cplusplus
5964 extern "C"
5965 #endif
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5968 char gettext ();
5970 main ()
5972 gettext ();
5974 return 0;
5976 _ACEOF
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -s conftest$ac_exeext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_search_gettext="none required"
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5996 if test "$ac_cv_search_gettext" = no; then
5997 for ac_lib in intl; do
5998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5999 if test x$gcc_no_link = xyes; then
6000 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6002 { (exit 1); exit 1; }; }
6004 cat >conftest.$ac_ext <<_ACEOF
6005 #line $LINENO "configure"
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6012 /* Override any gcc2 internal prototype to avoid an error. */
6013 #ifdef __cplusplus
6014 extern "C"
6015 #endif
6016 /* We use char because int might match the return type of a gcc2
6017 builtin and then its argument prototype would still apply. */
6018 char gettext ();
6020 main ()
6022 gettext ();
6024 return 0;
6026 _ACEOF
6027 rm -f conftest.$ac_objext conftest$ac_exeext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6029 (eval $ac_link) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -s conftest$ac_exeext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_search_gettext="-l$ac_lib"
6040 break
6041 else
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6047 done
6049 LIBS=$ac_func_search_save_LIBS
6051 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6052 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6053 if test "$ac_cv_search_gettext" != no; then
6054 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6056 else
6057 USE_NLS=no
6061 if test $USE_NLS = yes; then
6062 cat >>confdefs.h <<\_ACEOF
6063 #define _GLIBCXX_USE_NLS 1
6064 _ACEOF
6084 # Check whether --enable-cheaders or --disable-cheaders was given.
6085 if test "${enable_cheaders+set}" = set; then
6086 enableval="$enable_cheaders"
6088 case "$enableval" in
6089 c|c_std) ;;
6090 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6091 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6092 { (exit 1); exit 1; }; } ;;
6093 esac
6095 else
6096 enable_cheaders=$c_model
6099 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6100 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6102 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6109 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6110 if test "${enable_c_mbchar+set}" = set; then
6111 enableval="$enable_c_mbchar"
6113 case "$enableval" in
6114 yes|no) ;;
6115 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6116 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6117 { (exit 1); exit 1; }; } ;;
6118 esac
6120 else
6121 enable_c_mbchar=yes
6124 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6128 # Check whether --enable-c99 or --disable-c99 was given.
6129 if test "${enable_c99+set}" = set; then
6130 enableval="$enable_c99"
6132 case "$enableval" in
6133 yes|no) ;;
6134 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6135 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6136 { (exit 1); exit 1; }; } ;;
6137 esac
6139 else
6140 enable_c99=yes
6146 ac_ext=cc
6147 ac_cpp='$CXXCPP $CPPFLAGS'
6148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6153 # Check for the existence of <math.h> functions used if C99 is enabled.
6154 ac_c99_math=yes;
6155 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6156 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6157 cat >conftest.$ac_ext <<_ACEOF
6158 #line $LINENO "configure"
6159 /* confdefs.h. */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <math.h>
6166 main ()
6168 fpclassify(0.0);
6170 return 0;
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ac_c99_math=no
6192 rm -f conftest.$ac_objext conftest.$ac_ext
6193 cat >conftest.$ac_ext <<_ACEOF
6194 #line $LINENO "configure"
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 #include <math.h>
6202 main ()
6204 isfinite(0.0);
6206 return 0;
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_c99_math=no
6228 rm -f conftest.$ac_objext conftest.$ac_ext
6229 cat >conftest.$ac_ext <<_ACEOF
6230 #line $LINENO "configure"
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <math.h>
6238 main ()
6240 isinf(0.0);
6242 return 0;
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_c99_math=no
6264 rm -f conftest.$ac_objext conftest.$ac_ext
6265 cat >conftest.$ac_ext <<_ACEOF
6266 #line $LINENO "configure"
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 #include <math.h>
6274 main ()
6276 isnan(0.0);
6278 return 0;
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6294 else
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_c99_math=no
6300 rm -f conftest.$ac_objext conftest.$ac_ext
6301 cat >conftest.$ac_ext <<_ACEOF
6302 #line $LINENO "configure"
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #include <math.h>
6310 main ()
6312 isnormal(0.0);
6314 return 0;
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 ac_c99_math=no
6336 rm -f conftest.$ac_objext conftest.$ac_ext
6337 cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <math.h>
6346 main ()
6348 signbit(0.0);
6350 return 0;
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_c99_math=no
6372 rm -f conftest.$ac_objext conftest.$ac_ext
6373 cat >conftest.$ac_ext <<_ACEOF
6374 #line $LINENO "configure"
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <math.h>
6382 main ()
6384 isgreater(0.0,0.0);
6386 return 0;
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_c99_math=no
6408 rm -f conftest.$ac_objext conftest.$ac_ext
6409 cat >conftest.$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 #include <math.h>
6418 main ()
6420 isgreaterequal(0.0,0.0);
6422 return 0;
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_c99_math=no
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 /* confdefs.h. */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6452 #include <math.h>
6454 main ()
6456 isless(0.0,0.0);
6458 return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -s conftest.$ac_objext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6474 else
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_c99_math=no
6480 rm -f conftest.$ac_objext conftest.$ac_ext
6481 cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <math.h>
6490 main ()
6492 islessequal(0.0,0.0);
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -s conftest.$ac_objext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6510 else
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_c99_math=no
6516 rm -f conftest.$ac_objext conftest.$ac_ext
6517 cat >conftest.$ac_ext <<_ACEOF
6518 #line $LINENO "configure"
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 #include <math.h>
6526 main ()
6528 islessgreater(0.0,0.0);
6530 return 0;
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535 (eval $ac_compile) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -s conftest.$ac_objext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6546 else
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 ac_c99_math=no
6552 rm -f conftest.$ac_objext conftest.$ac_ext
6553 cat >conftest.$ac_ext <<_ACEOF
6554 #line $LINENO "configure"
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <math.h>
6562 main ()
6564 isunordered(0.0,0.0);
6566 return 0;
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6582 else
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6586 ac_c99_math=no
6588 rm -f conftest.$ac_objext conftest.$ac_ext
6589 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6590 echo "${ECHO_T}$ac_c99_math" >&6
6592 # Check for the existence in <stdio.h> of vscanf, et. al.
6593 ac_c99_stdio=yes;
6594 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6595 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6596 cat >conftest.$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 #include <stdio.h>
6605 main ()
6607 snprintf("12", 0, "%i");
6609 return 0;
6611 _ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ac_c99_stdio=no
6631 rm -f conftest.$ac_objext conftest.$ac_ext
6632 cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <stdio.h>
6640 #include <stdarg.h>
6641 void foo(char* fmt, ...)
6642 {va_list args; va_start(args, fmt);
6643 vfscanf(stderr, "%i", args);}
6645 main ()
6649 return 0;
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -s conftest.$ac_objext'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 (eval $ac_try) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_c99_stdio=no
6671 rm -f conftest.$ac_objext conftest.$ac_ext
6672 cat >conftest.$ac_ext <<_ACEOF
6673 #line $LINENO "configure"
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <stdio.h>
6680 #include <stdarg.h>
6681 void foo(char* fmt, ...)
6682 {va_list args; va_start(args, fmt);
6683 vscanf("%i", args);}
6685 main ()
6689 return 0;
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694 (eval $ac_compile) 2>&5
6695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -s conftest.$ac_objext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6705 else
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 ac_c99_stdio=no
6711 rm -f conftest.$ac_objext conftest.$ac_ext
6712 cat >conftest.$ac_ext <<_ACEOF
6713 #line $LINENO "configure"
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 #include <stdio.h>
6720 #include <stdarg.h>
6721 void foo(char* fmt, ...)
6722 {va_list args; va_start(args, fmt);
6723 vsnprintf(fmt, 0, "%i", args);}
6725 main ()
6729 return 0;
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -s conftest.$ac_objext'
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 (eval $ac_try) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; }; then
6745 else
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_c99_stdio=no
6751 rm -f conftest.$ac_objext conftest.$ac_ext
6752 cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <stdio.h>
6760 #include <stdarg.h>
6761 void foo(char* fmt, ...)
6762 {va_list args; va_start(args, fmt);
6763 vsscanf(fmt, "%i", args);}
6765 main ()
6769 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -s conftest.$ac_objext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 ac_c99_stdio=no
6791 rm -f conftest.$ac_objext conftest.$ac_ext
6792 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6793 echo "${ECHO_T}$ac_c99_stdio" >&6
6795 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6796 ac_c99_stdlib=yes;
6797 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6798 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6799 if test "${ac_c99_lldiv_t+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6803 cat >conftest.$ac_ext <<_ACEOF
6804 #line $LINENO "configure"
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <stdlib.h>
6812 main ()
6814 lldiv_t mydivt;
6816 return 0;
6818 _ACEOF
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 ac_c99_lldiv_t=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 ac_c99_lldiv_t=no
6838 rm -f conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6843 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6845 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6846 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6847 cat >conftest.$ac_ext <<_ACEOF
6848 #line $LINENO "configure"
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <stdlib.h>
6856 main ()
6858 char* tmp; strtof("gnu", &tmp);
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 ac_c99_stdlib=no
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line $LINENO "configure"
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <stdlib.h>
6892 main ()
6894 char* tmp; strtold("gnu", &tmp);
6896 return 0;
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_c99_stdlib=no
6918 rm -f conftest.$ac_objext conftest.$ac_ext
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line $LINENO "configure"
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 #include <stdlib.h>
6928 main ()
6930 llabs(10);
6932 return 0;
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_c99_stdlib=no
6954 rm -f conftest.$ac_objext conftest.$ac_ext
6955 cat >conftest.$ac_ext <<_ACEOF
6956 #line $LINENO "configure"
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <stdlib.h>
6964 main ()
6966 lldiv(10,1);
6968 return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -s conftest.$ac_objext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6984 else
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_c99_stdlib=no
6990 rm -f conftest.$ac_objext conftest.$ac_ext
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <stdlib.h>
7000 main ()
7002 atoll("10");
7004 return 0;
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest.$ac_objext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_c99_stdlib=no
7026 rm -f conftest.$ac_objext conftest.$ac_ext
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line $LINENO "configure"
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 #include <stdlib.h>
7036 main ()
7038 _Exit(0);
7040 return 0;
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_c99_stdlib=no
7062 rm -f conftest.$ac_objext conftest.$ac_ext
7063 if test x"$ac_c99_lldiv_t" = x"no"; then
7064 ac_c99_stdlib=no;
7066 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7067 echo "${ECHO_T}$ac_c99_stdlib" >&6
7069 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7070 # XXX the wchar.h checks should be rolled into the general C99 bits.
7071 ac_c99_wchar=yes;
7072 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7073 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7074 cat >conftest.$ac_ext <<_ACEOF
7075 #line $LINENO "configure"
7076 /* confdefs.h. */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 #include <wchar.h>
7083 main ()
7085 wcstold(L"10.0", NULL);
7087 return 0;
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7103 else
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 ac_c99_wchar=no
7109 rm -f conftest.$ac_objext conftest.$ac_ext
7110 cat >conftest.$ac_ext <<_ACEOF
7111 #line $LINENO "configure"
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 #include <wchar.h>
7119 main ()
7121 wcstoll(L"10", NULL, 10);
7123 return 0;
7125 _ACEOF
7126 rm -f conftest.$ac_objext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7128 (eval $ac_compile) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_c99_wchar=no
7145 rm -f conftest.$ac_objext conftest.$ac_ext
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line $LINENO "configure"
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 #include <wchar.h>
7155 main ()
7157 wcstoull(L"10", NULL, 10);
7159 return 0;
7161 _ACEOF
7162 rm -f conftest.$ac_objext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -s conftest.$ac_objext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 ac_c99_wchar=no
7181 rm -f conftest.$ac_objext conftest.$ac_ext
7182 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7183 echo "${ECHO_T}$ac_c99_wchar" >&6
7185 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7186 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7187 if test x"$ac_c99_math" = x"no" ||
7188 test x"$ac_c99_stdio" = x"no" ||
7189 test x"$ac_c99_stdlib" = x"no" ||
7190 test x"$ac_c99_wchar" = x"no"; then
7191 enable_c99=no;
7193 echo "$as_me:$LINENO: result: $enable_c99" >&5
7194 echo "${ECHO_T}$enable_c99" >&6
7196 # Option parsed, now set things appropriately
7197 if test x"$enable_c99" = x"yes"; then
7198 cat >>confdefs.h <<\_ACEOF
7199 #define _GLIBCXX_USE_C99 1
7200 _ACEOF
7204 ac_ext=c
7205 ac_cpp='$CPP $CPPFLAGS'
7206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7212 # Check whether --enable-long-long or --disable-long-long was given.
7213 if test "${enable_long_long+set}" = set; then
7214 enableval="$enable_long_long"
7216 case "$enableval" in
7217 yes|no) ;;
7218 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7219 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7220 { (exit 1); exit 1; }; } ;;
7221 esac
7223 else
7224 enable_long_long=yes
7230 ac_ext=cc
7231 ac_cpp='$CXXCPP $CPPFLAGS'
7232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7237 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7238 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7239 # iostreams require strtoll, strtoull to compile
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line $LINENO "configure"
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #include <stdlib.h>
7249 main ()
7251 char* tmp; strtoll("gnu", &tmp, 10);
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7269 else
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 enable_long_long=no
7275 rm -f conftest.$ac_objext conftest.$ac_ext
7276 cat >conftest.$ac_ext <<_ACEOF
7277 #line $LINENO "configure"
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 #include <stdlib.h>
7285 main ()
7287 char* tmp; strtoull("gnu", &tmp, 10);
7289 return 0;
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7294 (eval $ac_compile) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 enable_long_long=no
7311 rm -f conftest.$ac_objext conftest.$ac_ext
7313 # Option parsed, now set things appropriately
7314 if test $enable_long_long = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define _GLIBCXX_USE_LONG_LONG 1
7317 _ACEOF
7320 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7321 echo "${ECHO_T}$enable_long_long" >&6
7323 ac_ext=c
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7332 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7333 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7334 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7335 echo "${ECHO_T}$target_thread_file" >&6
7337 if test $target_thread_file != single; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_GTHR_DEFAULT 1
7340 _ACEOF
7342 cat >>confdefs.h <<\_ACEOF
7343 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7344 _ACEOF
7348 glibcxx_thread_h=gthr-$target_thread_file.h
7352 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7353 if test "${enable_concept_checks+set}" = set; then
7354 enableval="$enable_concept_checks"
7356 case "$enableval" in
7357 yes|no) ;;
7358 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7359 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7360 { (exit 1); exit 1; }; } ;;
7361 esac
7363 else
7364 enable_concept_checks=no
7367 if test $enable_concept_checks = yes; then
7368 cat >>confdefs.h <<\_ACEOF
7369 #define _GLIBCXX_CONCEPT_CHECKS 1
7370 _ACEOF
7375 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7376 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7377 enableval="$enable_libstdcxx_debug_flags"
7378 case "x$enable_libstdcxx_debug_flags" in
7379 xno | x) enable_libstdcxx_debug_flags= ;;
7380 x-*) ;;
7381 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7382 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7383 { (exit 1); exit 1; }; } ;;
7384 esac
7385 else
7386 enable_libstdcxx_debug_flags="-g3 -O0"
7390 # Option parsed, now set things appropriately
7391 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7394 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7395 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7398 echo "$as_me:$LINENO: checking for additional debug build" >&5
7399 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7400 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7401 if test "${enable_libstdcxx_debug+set}" = set; then
7402 enableval="$enable_libstdcxx_debug"
7404 case "$enableval" in
7405 yes|no) ;;
7406 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7407 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7408 { (exit 1); exit 1; }; } ;;
7409 esac
7411 else
7412 enable_libstdcxx_debug=no
7415 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7416 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7419 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7420 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7421 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7422 if test "${enable_cxx_flags+set}" = set; then
7423 enableval="$enable_cxx_flags"
7424 case "x$enable_cxx_flags" in
7425 xno | x) enable_cxx_flags= ;;
7426 x-*) ;;
7427 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7428 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7429 { (exit 1); exit 1; }; } ;;
7430 esac
7431 else
7432 enable_cxx_flags=
7436 # Run through flags (either default or command-line) and set anything
7437 # extra (e.g., #defines) that must accompany particular g++ options.
7438 if test -n "$enable_cxx_flags"; then
7439 for f in $enable_cxx_flags; do
7440 case "$f" in
7441 -fhonor-std) ;;
7442 -*) ;;
7443 *) # and we're trying to pass /what/ exactly?
7444 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7445 echo "$as_me: error: compiler flags start with a -" >&2;}
7446 { (exit 1); exit 1; }; } ;;
7447 esac
7448 done
7451 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7452 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7453 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7457 # No surprises, no surprises...
7458 if test $atomicity_include_dir = cpu/generic ; then
7459 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7460 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7461 if test $target_thread_file = single; then
7462 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7463 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7464 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7465 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7466 else
7467 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7468 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7469 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7470 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7475 if $GLIBCXX_IS_NATIVE; then
7477 # We can do more elaborate tests that assume a working linker.
7478 CANADIAN=no
7480 # Check for available headers.
7494 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7495 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7496 sys/types.h
7498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500 echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507 else
7508 # Is the header compilable?
7509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7512 #line $LINENO "configure"
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 $ac_includes_default
7519 #include <$ac_header>
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_header_compiler=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_header_compiler=no
7540 rm -f conftest.$ac_objext conftest.$ac_ext
7541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7542 echo "${ECHO_T}$ac_header_compiler" >&6
7544 # Is the header present?
7545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <$ac_header>
7555 _ACEOF
7556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } >/dev/null; then
7564 if test -s conftest.err; then
7565 ac_cpp_err=$ac_c_preproc_warn_flag
7566 else
7567 ac_cpp_err=
7569 else
7570 ac_cpp_err=yes
7572 if test -z "$ac_cpp_err"; then
7573 ac_header_preproc=yes
7574 else
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7578 ac_header_preproc=no
7580 rm -f conftest.err conftest.$ac_ext
7581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6
7584 # So? What about this header?
7585 case $ac_header_compiler:$ac_header_preproc in
7586 yes:no )
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7592 cat <<\_ASBOX
7593 ## ------------------------------------ ##
7594 ## Report this to bug-autoconf@gnu.org. ##
7595 ## ------------------------------------ ##
7596 _ASBOX
7598 sed "s/^/$as_me: WARNING: /" >&2
7600 no:yes )
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7608 cat <<\_ASBOX
7609 ## ------------------------------------ ##
7610 ## Report this to bug-autoconf@gnu.org. ##
7611 ## ------------------------------------ ##
7612 _ASBOX
7614 sed "s/^/$as_me: WARNING: /" >&2
7616 esac
7617 echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622 eval "$as_ac_Header=$ac_header_preproc"
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629 cat >>confdefs.h <<_ACEOF
7630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 _ACEOF
7635 done
7639 # All these tests are for C++; save the language and the compiler flags.
7640 # The CXXFLAGS thing is suspicious, but based on similar bits previously
7641 # found in GLIBCXX_CONFIGURE.
7644 ac_ext=cc
7645 ac_cpp='$CXXCPP $CPPFLAGS'
7646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7650 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7651 ac_save_CXXFLAGS="$CXXFLAGS"
7653 # Check for maintainer-mode bits.
7654 if test x"$USE_MAINTAINER_MODE" = xno; then
7655 WERROR=''
7656 else
7657 WERROR='-Werror'
7660 # Check for -ffunction-sections -fdata-sections
7661 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7662 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7663 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line $LINENO "configure"
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7673 main ()
7675 int foo;
7677 return 0;
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682 (eval $ac_compile) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_fdsections=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_fdsections=no
7699 rm -f conftest.$ac_objext conftest.$ac_ext
7700 if test "$ac_test_CXXFLAGS" = set; then
7701 CXXFLAGS="$ac_save_CXXFLAGS"
7702 else
7703 # this is the suspicious part
7704 CXXFLAGS=''
7706 if test x"$ac_fdsections" = x"yes"; then
7707 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7709 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7710 echo "${ECHO_T}$ac_fdsections" >&6
7712 ac_ext=c
7713 ac_cpp='$CPP $CPPFLAGS'
7714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722 # If we're not using GNU ld, then there's no point in even trying these
7723 # tests. Check for that first. We should have already tested for gld
7724 # by now (in libtool), but require it now just to be safe...
7725 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7726 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7730 # The name set by libtool depends on the version of libtool. Shame on us
7731 # for depending on an impl detail, but c'est la vie. Older versions used
7732 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7733 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7734 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7735 # set (hence we're using an older libtool), then set it.
7736 if test x${with_gnu_ld+set} != xset; then
7737 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7738 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7739 with_gnu_ld=no
7740 else
7741 with_gnu_ld=$ac_cv_prog_gnu_ld
7745 # Start by getting the version number. I think the libtool test already
7746 # does some of this, but throws away the result.
7748 ldver=`$LD --version 2>/dev/null | head -1 | \
7749 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7751 glibcxx_gnu_ld_version=`echo $ldver | \
7752 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7754 # Set --gc-sections.
7755 if test "$with_gnu_ld" = "notbroken"; then
7756 # GNU ld it is! Joy and bunny rabbits!
7758 # All these tests are for C++; save the language and the compiler flags.
7759 # Need to do this so that g++ won't try to link in libstdc++
7760 ac_test_CFLAGS="${CFLAGS+set}"
7761 ac_save_CFLAGS="$CFLAGS"
7762 CFLAGS='-x c++ -Wl,--gc-sections'
7764 # Check for -Wl,--gc-sections
7765 # XXX This test is broken at the moment, as symbols required for linking
7766 # are now in libsupc++ (not built yet). In addition, this test has
7767 # cored on solaris in the past. In addition, --gc-sections doesn't
7768 # really work at the moment (keeps on discarding used sections, first
7769 # .eh_frame and now some of the glibc sections for iconv).
7770 # Bzzzzt. Thanks for playing, maybe next time.
7771 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7772 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7773 if test "$cross_compiling" = yes; then
7774 ac_sectionLDflags=yes
7775 else
7776 cat >conftest.$ac_ext <<_ACEOF
7777 #line $LINENO "configure"
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7784 int main(void)
7786 try { throw 1; }
7787 catch (...) { };
7788 return 0;
7791 _ACEOF
7792 rm -f conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_sectionLDflags=yes
7804 else
7805 echo "$as_me: program exited with status $ac_status" >&5
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 ( exit $ac_status )
7810 ac_sectionLDflags=no
7812 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7814 if test "$ac_test_CFLAGS" = set; then
7815 CFLAGS="$ac_save_CFLAGS"
7816 else
7817 # this is the suspicious part
7818 CFLAGS=''
7820 if test "$ac_sectionLDflags" = "yes"; then
7821 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7823 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7824 echo "${ECHO_T}$ac_sectionLDflags" >&6
7827 # Set linker optimization flags.
7828 if test x"$with_gnu_ld" = x"yes"; then
7829 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7836 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7837 ac_save_CXXFLAGS="$CXXFLAGS"
7838 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7840 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7841 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7842 if test "${ac_cv_lib_m_sin+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 ac_check_lib_save_LIBS=$LIBS
7846 LIBS="-lm $LIBS"
7847 if test x$gcc_no_link = xyes; then
7848 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7849 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7850 { (exit 1); exit 1; }; }
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 #ifdef __cplusplus
7862 extern "C"
7863 #endif
7864 /* We use char because int might match the return type of a gcc2
7865 builtin and then its argument prototype would still apply. */
7866 char sin ();
7868 main ()
7870 sin ();
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877 (eval $ac_link) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_lib_m_sin=yes
7888 else
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_cv_lib_m_sin=no
7894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7895 LIBS=$ac_check_lib_save_LIBS
7897 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7898 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7899 if test $ac_cv_lib_m_sin = yes; then
7900 libm="-lm"
7903 ac_save_LIBS="$LIBS"
7904 LIBS="$LIBS $libm"
7908 echo "$as_me:$LINENO: checking for isinf declaration" >&5
7909 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7910 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7911 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7917 ac_ext=cc
7918 ac_cpp='$CXXCPP $CPPFLAGS'
7919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7923 cat >conftest.$ac_ext <<_ACEOF
7924 #line $LINENO "configure"
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 #include <math.h>
7931 #ifdef HAVE_IEEEFP_H
7932 #include <ieeefp.h>
7933 #endif
7936 main ()
7938 isinf(0);
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945 (eval $ac_compile) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 glibcxx_cv_func_isinf_use=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 glibcxx_cv_func_isinf_use=no
7962 rm -f conftest.$ac_objext conftest.$ac_ext
7963 ac_ext=c
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7974 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7976 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7978 for ac_func in isinf
7980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7981 echo "$as_me:$LINENO: checking for $ac_func" >&5
7982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7983 if eval "test \"\${$as_ac_var+set}\" = set"; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 if test x$gcc_no_link = xyes; then
7987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7989 { (exit 1); exit 1; }; }
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 /* System header to define __stub macros and hopefully few prototypes,
7999 which can conflict with char $ac_func (); below.
8000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8001 <limits.h> exists even on freestanding compilers. */
8002 #ifdef __STDC__
8003 # include <limits.h>
8004 #else
8005 # include <assert.h>
8006 #endif
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 #ifdef __cplusplus
8009 extern "C"
8011 #endif
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char $ac_func ();
8015 /* The GNU C library defines this for functions which it implements
8016 to always fail with ENOSYS. Some functions are actually named
8017 something starting with __ and the normal name is an alias. */
8018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8019 choke me
8020 #else
8021 char (*f) () = $ac_func;
8022 #endif
8023 #ifdef __cplusplus
8025 #endif
8028 main ()
8030 return f != $ac_func;
8032 return 0;
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 eval "$as_ac_var=yes"
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 eval "$as_ac_var=no"
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8058 if test `eval echo '${'$as_ac_var'}'` = yes; then
8059 cat >>confdefs.h <<_ACEOF
8060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8061 _ACEOF
8064 done
8066 else
8068 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8069 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8070 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8071 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8077 ac_ext=cc
8078 ac_cpp='$CXXCPP $CPPFLAGS'
8079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 #include <math.h>
8091 #ifdef HAVE_IEEEFP_H
8092 #include <ieeefp.h>
8093 #endif
8096 main ()
8098 _isinf(0);
8100 return 0;
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8105 (eval $ac_compile) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -s conftest.$ac_objext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 glibcxx_cv_func__isinf_use=yes
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 glibcxx_cv_func__isinf_use=no
8122 rm -f conftest.$ac_objext conftest.$ac_ext
8123 ac_ext=c
8124 ac_cpp='$CPP $CPPFLAGS'
8125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8134 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8136 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8138 for ac_func in _isinf
8140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8141 echo "$as_me:$LINENO: checking for $ac_func" >&5
8142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8143 if eval "test \"\${$as_ac_var+set}\" = set"; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 if test x$gcc_no_link = xyes; then
8147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8149 { (exit 1); exit 1; }; }
8151 cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 /* System header to define __stub macros and hopefully few prototypes,
8159 which can conflict with char $ac_func (); below.
8160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161 <limits.h> exists even on freestanding compilers. */
8162 #ifdef __STDC__
8163 # include <limits.h>
8164 #else
8165 # include <assert.h>
8166 #endif
8167 /* Override any gcc2 internal prototype to avoid an error. */
8168 #ifdef __cplusplus
8169 extern "C"
8171 #endif
8172 /* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8174 char $ac_func ();
8175 /* The GNU C library defines this for functions which it implements
8176 to always fail with ENOSYS. Some functions are actually named
8177 something starting with __ and the normal name is an alias. */
8178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8179 choke me
8180 #else
8181 char (*f) () = $ac_func;
8182 #endif
8183 #ifdef __cplusplus
8185 #endif
8188 main ()
8190 return f != $ac_func;
8192 return 0;
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -s conftest$ac_exeext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 eval "$as_ac_var=yes"
8208 else
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 eval "$as_ac_var=no"
8214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8218 if test `eval echo '${'$as_ac_var'}'` = yes; then
8219 cat >>confdefs.h <<_ACEOF
8220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8221 _ACEOF
8224 done
8231 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8232 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8233 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8234 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8240 ac_ext=cc
8241 ac_cpp='$CXXCPP $CPPFLAGS'
8242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8246 cat >conftest.$ac_ext <<_ACEOF
8247 #line $LINENO "configure"
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #include <math.h>
8254 #ifdef HAVE_IEEEFP_H
8255 #include <ieeefp.h>
8256 #endif
8259 main ()
8261 isnan(0);
8263 return 0;
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8268 (eval $ac_compile) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -s conftest.$ac_objext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 glibcxx_cv_func_isnan_use=yes
8279 else
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 glibcxx_cv_func_isnan_use=no
8285 rm -f conftest.$ac_objext conftest.$ac_ext
8286 ac_ext=c
8287 ac_cpp='$CPP $CPPFLAGS'
8288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8297 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8299 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8301 for ac_func in isnan
8303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8304 echo "$as_me:$LINENO: checking for $ac_func" >&5
8305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8306 if eval "test \"\${$as_ac_var+set}\" = set"; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 if test x$gcc_no_link = xyes; then
8310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8312 { (exit 1); exit 1; }; }
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 /* confdefs.h. */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 /* System header to define __stub macros and hopefully few prototypes,
8322 which can conflict with char $ac_func (); below.
8323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324 <limits.h> exists even on freestanding compilers. */
8325 #ifdef __STDC__
8326 # include <limits.h>
8327 #else
8328 # include <assert.h>
8329 #endif
8330 /* Override any gcc2 internal prototype to avoid an error. */
8331 #ifdef __cplusplus
8332 extern "C"
8334 #endif
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8337 char $ac_func ();
8338 /* The GNU C library defines this for functions which it implements
8339 to always fail with ENOSYS. Some functions are actually named
8340 something starting with __ and the normal name is an alias. */
8341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8342 choke me
8343 #else
8344 char (*f) () = $ac_func;
8345 #endif
8346 #ifdef __cplusplus
8348 #endif
8351 main ()
8353 return f != $ac_func;
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 eval "$as_ac_var=yes"
8371 else
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 eval "$as_ac_var=no"
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8381 if test `eval echo '${'$as_ac_var'}'` = yes; then
8382 cat >>confdefs.h <<_ACEOF
8383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8384 _ACEOF
8387 done
8389 else
8391 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8392 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8393 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8394 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8400 ac_ext=cc
8401 ac_cpp='$CXXCPP $CPPFLAGS'
8402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8406 cat >conftest.$ac_ext <<_ACEOF
8407 #line $LINENO "configure"
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 #include <math.h>
8414 #ifdef HAVE_IEEEFP_H
8415 #include <ieeefp.h>
8416 #endif
8419 main ()
8421 _isnan(0);
8423 return 0;
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest.$ac_objext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 glibcxx_cv_func__isnan_use=yes
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 glibcxx_cv_func__isnan_use=no
8445 rm -f conftest.$ac_objext conftest.$ac_ext
8446 ac_ext=c
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8457 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8459 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8461 for ac_func in _isnan
8463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8464 echo "$as_me:$LINENO: checking for $ac_func" >&5
8465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8466 if eval "test \"\${$as_ac_var+set}\" = set"; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 if test x$gcc_no_link = xyes; then
8470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8472 { (exit 1); exit 1; }; }
8474 cat >conftest.$ac_ext <<_ACEOF
8475 #line $LINENO "configure"
8476 /* confdefs.h. */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 /* System header to define __stub macros and hopefully few prototypes,
8482 which can conflict with char $ac_func (); below.
8483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8484 <limits.h> exists even on freestanding compilers. */
8485 #ifdef __STDC__
8486 # include <limits.h>
8487 #else
8488 # include <assert.h>
8489 #endif
8490 /* Override any gcc2 internal prototype to avoid an error. */
8491 #ifdef __cplusplus
8492 extern "C"
8494 #endif
8495 /* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8497 char $ac_func ();
8498 /* The GNU C library defines this for functions which it implements
8499 to always fail with ENOSYS. Some functions are actually named
8500 something starting with __ and the normal name is an alias. */
8501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8502 choke me
8503 #else
8504 char (*f) () = $ac_func;
8505 #endif
8506 #ifdef __cplusplus
8508 #endif
8511 main ()
8513 return f != $ac_func;
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520 (eval $ac_link) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 eval "$as_ac_var=yes"
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 eval "$as_ac_var=no"
8537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8541 if test `eval echo '${'$as_ac_var'}'` = yes; then
8542 cat >>confdefs.h <<_ACEOF
8543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8544 _ACEOF
8547 done
8554 echo "$as_me:$LINENO: checking for finite declaration" >&5
8555 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8556 if test x${glibcxx_cv_func_finite_use+set} != xset; then
8557 if test "${glibcxx_cv_func_finite_use+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8563 ac_ext=cc
8564 ac_cpp='$CXXCPP $CPPFLAGS'
8565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8569 cat >conftest.$ac_ext <<_ACEOF
8570 #line $LINENO "configure"
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 #include <math.h>
8577 #ifdef HAVE_IEEEFP_H
8578 #include <ieeefp.h>
8579 #endif
8582 main ()
8584 finite(0);
8586 return 0;
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591 (eval $ac_compile) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 glibcxx_cv_func_finite_use=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 glibcxx_cv_func_finite_use=no
8608 rm -f conftest.$ac_objext conftest.$ac_ext
8609 ac_ext=c
8610 ac_cpp='$CPP $CPPFLAGS'
8611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8619 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8620 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8622 if test x$glibcxx_cv_func_finite_use = x"yes"; then
8624 for ac_func in finite
8626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8627 echo "$as_me:$LINENO: checking for $ac_func" >&5
8628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8629 if eval "test \"\${$as_ac_var+set}\" = set"; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 if test x$gcc_no_link = xyes; then
8633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8635 { (exit 1); exit 1; }; }
8637 cat >conftest.$ac_ext <<_ACEOF
8638 #line $LINENO "configure"
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 /* System header to define __stub macros and hopefully few prototypes,
8645 which can conflict with char $ac_func (); below.
8646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8647 <limits.h> exists even on freestanding compilers. */
8648 #ifdef __STDC__
8649 # include <limits.h>
8650 #else
8651 # include <assert.h>
8652 #endif
8653 /* Override any gcc2 internal prototype to avoid an error. */
8654 #ifdef __cplusplus
8655 extern "C"
8657 #endif
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660 char $ac_func ();
8661 /* The GNU C library defines this for functions which it implements
8662 to always fail with ENOSYS. Some functions are actually named
8663 something starting with __ and the normal name is an alias. */
8664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8665 choke me
8666 #else
8667 char (*f) () = $ac_func;
8668 #endif
8669 #ifdef __cplusplus
8671 #endif
8674 main ()
8676 return f != $ac_func;
8678 return 0;
8680 _ACEOF
8681 rm -f conftest.$ac_objext conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683 (eval $ac_link) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 eval "$as_ac_var=yes"
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 eval "$as_ac_var=no"
8700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8704 if test `eval echo '${'$as_ac_var'}'` = yes; then
8705 cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8707 _ACEOF
8710 done
8712 else
8714 echo "$as_me:$LINENO: checking for _finite declaration" >&5
8715 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8716 if test x${glibcxx_cv_func__finite_use+set} != xset; then
8717 if test "${glibcxx_cv_func__finite_use+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8723 ac_ext=cc
8724 ac_cpp='$CXXCPP $CPPFLAGS'
8725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8729 cat >conftest.$ac_ext <<_ACEOF
8730 #line $LINENO "configure"
8731 /* confdefs.h. */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 #include <math.h>
8737 #ifdef HAVE_IEEEFP_H
8738 #include <ieeefp.h>
8739 #endif
8742 main ()
8744 _finite(0);
8746 return 0;
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751 (eval $ac_compile) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -s conftest.$ac_objext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 glibcxx_cv_func__finite_use=yes
8762 else
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 glibcxx_cv_func__finite_use=no
8768 rm -f conftest.$ac_objext conftest.$ac_ext
8769 ac_ext=c
8770 ac_cpp='$CPP $CPPFLAGS'
8771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8780 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8782 if test x$glibcxx_cv_func__finite_use = x"yes"; then
8784 for ac_func in _finite
8786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8787 echo "$as_me:$LINENO: checking for $ac_func" >&5
8788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8789 if eval "test \"\${$as_ac_var+set}\" = set"; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792 if test x$gcc_no_link = xyes; then
8793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8795 { (exit 1); exit 1; }; }
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8799 /* confdefs.h. */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 /* System header to define __stub macros and hopefully few prototypes,
8805 which can conflict with char $ac_func (); below.
8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807 <limits.h> exists even on freestanding compilers. */
8808 #ifdef __STDC__
8809 # include <limits.h>
8810 #else
8811 # include <assert.h>
8812 #endif
8813 /* Override any gcc2 internal prototype to avoid an error. */
8814 #ifdef __cplusplus
8815 extern "C"
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char $ac_func ();
8821 /* The GNU C library defines this for functions which it implements
8822 to always fail with ENOSYS. Some functions are actually named
8823 something starting with __ and the normal name is an alias. */
8824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8825 choke me
8826 #else
8827 char (*f) () = $ac_func;
8828 #endif
8829 #ifdef __cplusplus
8831 #endif
8834 main ()
8836 return f != $ac_func;
8838 return 0;
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -s conftest$ac_exeext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 eval "$as_ac_var=yes"
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8858 eval "$as_ac_var=no"
8860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8864 if test `eval echo '${'$as_ac_var'}'` = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8867 _ACEOF
8870 done
8877 echo "$as_me:$LINENO: checking for copysign declaration" >&5
8878 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8879 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8880 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8886 ac_ext=cc
8887 ac_cpp='$CXXCPP $CPPFLAGS'
8888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8892 cat >conftest.$ac_ext <<_ACEOF
8893 #line $LINENO "configure"
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 #include <math.h>
8901 main ()
8903 copysign(0, 0);
8905 return 0;
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -s conftest.$ac_objext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 glibcxx_cv_func_copysign_use=yes
8921 else
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 glibcxx_cv_func_copysign_use=no
8927 rm -f conftest.$ac_objext conftest.$ac_ext
8928 ac_ext=c
8929 ac_cpp='$CPP $CPPFLAGS'
8930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8938 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8939 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8941 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8943 for ac_func in copysign
8945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8946 echo "$as_me:$LINENO: checking for $ac_func" >&5
8947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8948 if eval "test \"\${$as_ac_var+set}\" = set"; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951 if test x$gcc_no_link = xyes; then
8952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8954 { (exit 1); exit 1; }; }
8956 cat >conftest.$ac_ext <<_ACEOF
8957 #line $LINENO "configure"
8958 /* confdefs.h. */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 /* System header to define __stub macros and hopefully few prototypes,
8964 which can conflict with char $ac_func (); below.
8965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8966 <limits.h> exists even on freestanding compilers. */
8967 #ifdef __STDC__
8968 # include <limits.h>
8969 #else
8970 # include <assert.h>
8971 #endif
8972 /* Override any gcc2 internal prototype to avoid an error. */
8973 #ifdef __cplusplus
8974 extern "C"
8976 #endif
8977 /* We use char because int might match the return type of a gcc2
8978 builtin and then its argument prototype would still apply. */
8979 char $ac_func ();
8980 /* The GNU C library defines this for functions which it implements
8981 to always fail with ENOSYS. Some functions are actually named
8982 something starting with __ and the normal name is an alias. */
8983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8984 choke me
8985 #else
8986 char (*f) () = $ac_func;
8987 #endif
8988 #ifdef __cplusplus
8990 #endif
8993 main ()
8995 return f != $ac_func;
8997 return 0;
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 eval "$as_ac_var=yes"
9013 else
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 eval "$as_ac_var=no"
9019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9023 if test `eval echo '${'$as_ac_var'}'` = yes; then
9024 cat >>confdefs.h <<_ACEOF
9025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9026 _ACEOF
9029 done
9031 else
9033 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9034 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9035 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9036 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9042 ac_ext=cc
9043 ac_cpp='$CXXCPP $CPPFLAGS'
9044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9048 cat >conftest.$ac_ext <<_ACEOF
9049 #line $LINENO "configure"
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 #include <math.h>
9057 main ()
9059 _copysign(0, 0);
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 glibcxx_cv_func__copysign_use=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 glibcxx_cv_func__copysign_use=no
9083 rm -f conftest.$ac_objext conftest.$ac_ext
9084 ac_ext=c
9085 ac_cpp='$CPP $CPPFLAGS'
9086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9094 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9095 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9097 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9099 for ac_func in _copysign
9101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9102 echo "$as_me:$LINENO: checking for $ac_func" >&5
9103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9104 if eval "test \"\${$as_ac_var+set}\" = set"; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107 if test x$gcc_no_link = xyes; then
9108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9110 { (exit 1); exit 1; }; }
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9114 /* confdefs.h. */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 /* System header to define __stub macros and hopefully few prototypes,
9120 which can conflict with char $ac_func (); below.
9121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 <limits.h> exists even on freestanding compilers. */
9123 #ifdef __STDC__
9124 # include <limits.h>
9125 #else
9126 # include <assert.h>
9127 #endif
9128 /* Override any gcc2 internal prototype to avoid an error. */
9129 #ifdef __cplusplus
9130 extern "C"
9132 #endif
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9135 char $ac_func ();
9136 /* The GNU C library defines this for functions which it implements
9137 to always fail with ENOSYS. Some functions are actually named
9138 something starting with __ and the normal name is an alias. */
9139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9140 choke me
9141 #else
9142 char (*f) () = $ac_func;
9143 #endif
9144 #ifdef __cplusplus
9146 #endif
9149 main ()
9151 return f != $ac_func;
9153 return 0;
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -s conftest$ac_exeext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 eval "$as_ac_var=yes"
9169 else
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9173 eval "$as_ac_var=no"
9175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9179 if test `eval echo '${'$as_ac_var'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9182 _ACEOF
9185 done
9192 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9193 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9194 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9195 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9201 ac_ext=cc
9202 ac_cpp='$CXXCPP $CPPFLAGS'
9203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9207 cat >conftest.$ac_ext <<_ACEOF
9208 #line $LINENO "configure"
9209 /* confdefs.h. */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 #include <math.h>
9216 main ()
9218 sincos(0, 0, 0);
9220 return 0;
9222 _ACEOF
9223 rm -f conftest.$ac_objext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9225 (eval $ac_compile) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } &&
9229 { ac_try='test -s conftest.$ac_objext'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 (eval $ac_try) 2>&5
9232 ac_status=$?
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; }; then
9235 glibcxx_cv_func_sincos_use=yes
9236 else
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9240 glibcxx_cv_func_sincos_use=no
9242 rm -f conftest.$ac_objext conftest.$ac_ext
9243 ac_ext=c
9244 ac_cpp='$CPP $CPPFLAGS'
9245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9253 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9254 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9256 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9258 for ac_func in sincos
9260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9261 echo "$as_me:$LINENO: checking for $ac_func" >&5
9262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9263 if eval "test \"\${$as_ac_var+set}\" = set"; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 if test x$gcc_no_link = xyes; then
9267 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9269 { (exit 1); exit 1; }; }
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line $LINENO "configure"
9273 /* confdefs.h. */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9278 /* System header to define __stub macros and hopefully few prototypes,
9279 which can conflict with char $ac_func (); below.
9280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9281 <limits.h> exists even on freestanding compilers. */
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9287 /* Override any gcc2 internal prototype to avoid an error. */
9288 #ifdef __cplusplus
9289 extern "C"
9291 #endif
9292 /* We use char because int might match the return type of a gcc2
9293 builtin and then its argument prototype would still apply. */
9294 char $ac_func ();
9295 /* The GNU C library defines this for functions which it implements
9296 to always fail with ENOSYS. Some functions are actually named
9297 something starting with __ and the normal name is an alias. */
9298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9299 choke me
9300 #else
9301 char (*f) () = $ac_func;
9302 #endif
9303 #ifdef __cplusplus
9305 #endif
9308 main ()
9310 return f != $ac_func;
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -s conftest$ac_exeext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 eval "$as_ac_var=yes"
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 eval "$as_ac_var=no"
9334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9338 if test `eval echo '${'$as_ac_var'}'` = yes; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9341 _ACEOF
9344 done
9346 else
9348 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9349 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9350 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9351 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9357 ac_ext=cc
9358 ac_cpp='$CXXCPP $CPPFLAGS'
9359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9363 cat >conftest.$ac_ext <<_ACEOF
9364 #line $LINENO "configure"
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 #include <math.h>
9372 main ()
9374 _sincos(0, 0, 0);
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 glibcxx_cv_func__sincos_use=yes
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 glibcxx_cv_func__sincos_use=no
9398 rm -f conftest.$ac_objext conftest.$ac_ext
9399 ac_ext=c
9400 ac_cpp='$CPP $CPPFLAGS'
9401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9409 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9410 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9412 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9414 for ac_func in _sincos
9416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9417 echo "$as_me:$LINENO: checking for $ac_func" >&5
9418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9419 if eval "test \"\${$as_ac_var+set}\" = set"; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 if test x$gcc_no_link = xyes; then
9423 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9424 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9425 { (exit 1); exit 1; }; }
9427 cat >conftest.$ac_ext <<_ACEOF
9428 #line $LINENO "configure"
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 /* System header to define __stub macros and hopefully few prototypes,
9435 which can conflict with char $ac_func (); below.
9436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9437 <limits.h> exists even on freestanding compilers. */
9438 #ifdef __STDC__
9439 # include <limits.h>
9440 #else
9441 # include <assert.h>
9442 #endif
9443 /* Override any gcc2 internal prototype to avoid an error. */
9444 #ifdef __cplusplus
9445 extern "C"
9447 #endif
9448 /* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9450 char $ac_func ();
9451 /* The GNU C library defines this for functions which it implements
9452 to always fail with ENOSYS. Some functions are actually named
9453 something starting with __ and the normal name is an alias. */
9454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9455 choke me
9456 #else
9457 char (*f) () = $ac_func;
9458 #endif
9459 #ifdef __cplusplus
9461 #endif
9464 main ()
9466 return f != $ac_func;
9468 return 0;
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473 (eval $ac_link) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -s conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 eval "$as_ac_var=yes"
9484 else
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 eval "$as_ac_var=no"
9490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9494 if test `eval echo '${'$as_ac_var'}'` = yes; then
9495 cat >>confdefs.h <<_ACEOF
9496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9497 _ACEOF
9500 done
9507 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9508 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9509 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9510 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9516 ac_ext=cc
9517 ac_cpp='$CXXCPP $CPPFLAGS'
9518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9522 cat >conftest.$ac_ext <<_ACEOF
9523 #line $LINENO "configure"
9524 /* confdefs.h. */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 #include <math.h>
9530 #ifdef HAVE_IEEEFP_H
9531 #include <ieeefp.h>
9532 #endif
9535 main ()
9537 fpclass(0);
9539 return 0;
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 glibcxx_cv_func_fpclass_use=yes
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 glibcxx_cv_func_fpclass_use=no
9561 rm -f conftest.$ac_objext conftest.$ac_ext
9562 ac_ext=c
9563 ac_cpp='$CPP $CPPFLAGS'
9564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9572 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9573 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9575 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9577 for ac_func in fpclass
9579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9580 echo "$as_me:$LINENO: checking for $ac_func" >&5
9581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9582 if eval "test \"\${$as_ac_var+set}\" = set"; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 if test x$gcc_no_link = xyes; then
9586 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9588 { (exit 1); exit 1; }; }
9590 cat >conftest.$ac_ext <<_ACEOF
9591 #line $LINENO "configure"
9592 /* confdefs.h. */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 /* System header to define __stub macros and hopefully few prototypes,
9598 which can conflict with char $ac_func (); below.
9599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9600 <limits.h> exists even on freestanding compilers. */
9601 #ifdef __STDC__
9602 # include <limits.h>
9603 #else
9604 # include <assert.h>
9605 #endif
9606 /* Override any gcc2 internal prototype to avoid an error. */
9607 #ifdef __cplusplus
9608 extern "C"
9610 #endif
9611 /* We use char because int might match the return type of a gcc2
9612 builtin and then its argument prototype would still apply. */
9613 char $ac_func ();
9614 /* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
9617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9618 choke me
9619 #else
9620 char (*f) () = $ac_func;
9621 #endif
9622 #ifdef __cplusplus
9624 #endif
9627 main ()
9629 return f != $ac_func;
9631 return 0;
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 eval "$as_ac_var=yes"
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 eval "$as_ac_var=no"
9653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9657 if test `eval echo '${'$as_ac_var'}'` = yes; then
9658 cat >>confdefs.h <<_ACEOF
9659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9660 _ACEOF
9663 done
9665 else
9667 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9668 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9669 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9670 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9676 ac_ext=cc
9677 ac_cpp='$CXXCPP $CPPFLAGS'
9678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9682 cat >conftest.$ac_ext <<_ACEOF
9683 #line $LINENO "configure"
9684 /* confdefs.h. */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 #include <math.h>
9690 #ifdef HAVE_IEEEFP_H
9691 #include <ieeefp.h>
9692 #endif
9695 main ()
9697 _fpclass(0);
9699 return 0;
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704 (eval $ac_compile) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 glibcxx_cv_func__fpclass_use=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 glibcxx_cv_func__fpclass_use=no
9721 rm -f conftest.$ac_objext conftest.$ac_ext
9722 ac_ext=c
9723 ac_cpp='$CPP $CPPFLAGS'
9724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9732 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9733 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9735 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9737 for ac_func in _fpclass
9739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9740 echo "$as_me:$LINENO: checking for $ac_func" >&5
9741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9742 if eval "test \"\${$as_ac_var+set}\" = set"; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 if test x$gcc_no_link = xyes; then
9746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9748 { (exit 1); exit 1; }; }
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 /* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char $ac_func (); below.
9759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760 <limits.h> exists even on freestanding compilers. */
9761 #ifdef __STDC__
9762 # include <limits.h>
9763 #else
9764 # include <assert.h>
9765 #endif
9766 /* Override any gcc2 internal prototype to avoid an error. */
9767 #ifdef __cplusplus
9768 extern "C"
9770 #endif
9771 /* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9773 char $ac_func ();
9774 /* The GNU C library defines this for functions which it implements
9775 to always fail with ENOSYS. Some functions are actually named
9776 something starting with __ and the normal name is an alias. */
9777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9778 choke me
9779 #else
9780 char (*f) () = $ac_func;
9781 #endif
9782 #ifdef __cplusplus
9784 #endif
9787 main ()
9789 return f != $ac_func;
9791 return 0;
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796 (eval $ac_link) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 eval "$as_ac_var=yes"
9807 else
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 eval "$as_ac_var=no"
9813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9817 if test `eval echo '${'$as_ac_var'}'` = yes; then
9818 cat >>confdefs.h <<_ACEOF
9819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9820 _ACEOF
9823 done
9830 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9831 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9832 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9833 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9839 ac_ext=cc
9840 ac_cpp='$CXXCPP $CPPFLAGS'
9841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9845 cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9847 /* confdefs.h. */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 #include <math.h>
9853 #ifdef HAVE_IEEEFP_H
9854 #include <ieeefp.h>
9855 #endif
9858 main ()
9860 qfpclass(0);
9862 return 0;
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 glibcxx_cv_func_qfpclass_use=yes
9878 else
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 glibcxx_cv_func_qfpclass_use=no
9884 rm -f conftest.$ac_objext conftest.$ac_ext
9885 ac_ext=c
9886 ac_cpp='$CPP $CPPFLAGS'
9887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9895 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9896 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9898 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9900 for ac_func in qfpclass
9902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9903 echo "$as_me:$LINENO: checking for $ac_func" >&5
9904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9905 if eval "test \"\${$as_ac_var+set}\" = set"; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 if test x$gcc_no_link = xyes; then
9909 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9911 { (exit 1); exit 1; }; }
9913 cat >conftest.$ac_ext <<_ACEOF
9914 #line $LINENO "configure"
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func (); below.
9922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923 <limits.h> exists even on freestanding compilers. */
9924 #ifdef __STDC__
9925 # include <limits.h>
9926 #else
9927 # include <assert.h>
9928 #endif
9929 /* Override any gcc2 internal prototype to avoid an error. */
9930 #ifdef __cplusplus
9931 extern "C"
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936 char $ac_func ();
9937 /* The GNU C library defines this for functions which it implements
9938 to always fail with ENOSYS. Some functions are actually named
9939 something starting with __ and the normal name is an alias. */
9940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9941 choke me
9942 #else
9943 char (*f) () = $ac_func;
9944 #endif
9945 #ifdef __cplusplus
9947 #endif
9950 main ()
9952 return f != $ac_func;
9954 return 0;
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 (eval $ac_try) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 eval "$as_ac_var=yes"
9970 else
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 eval "$as_ac_var=no"
9976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9980 if test `eval echo '${'$as_ac_var'}'` = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983 _ACEOF
9986 done
9988 else
9990 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9991 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9992 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9993 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9999 ac_ext=cc
10000 ac_cpp='$CXXCPP $CPPFLAGS'
10001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10005 cat >conftest.$ac_ext <<_ACEOF
10006 #line $LINENO "configure"
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 #include <math.h>
10013 #ifdef HAVE_IEEEFP_H
10014 #include <ieeefp.h>
10015 #endif
10018 main ()
10020 _qfpclass(0);
10022 return 0;
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 glibcxx_cv_func__qfpclass_use=yes
10038 else
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 glibcxx_cv_func__qfpclass_use=no
10044 rm -f conftest.$ac_objext conftest.$ac_ext
10045 ac_ext=c
10046 ac_cpp='$CPP $CPPFLAGS'
10047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10055 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10056 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10058 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10060 for ac_func in _qfpclass
10062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10063 echo "$as_me:$LINENO: checking for $ac_func" >&5
10064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10065 if eval "test \"\${$as_ac_var+set}\" = set"; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068 if test x$gcc_no_link = xyes; then
10069 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10070 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10071 { (exit 1); exit 1; }; }
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 /* System header to define __stub macros and hopefully few prototypes,
10081 which can conflict with char $ac_func (); below.
10082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083 <limits.h> exists even on freestanding compilers. */
10084 #ifdef __STDC__
10085 # include <limits.h>
10086 #else
10087 # include <assert.h>
10088 #endif
10089 /* Override any gcc2 internal prototype to avoid an error. */
10090 #ifdef __cplusplus
10091 extern "C"
10093 #endif
10094 /* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096 char $ac_func ();
10097 /* The GNU C library defines this for functions which it implements
10098 to always fail with ENOSYS. Some functions are actually named
10099 something starting with __ and the normal name is an alias. */
10100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10101 choke me
10102 #else
10103 char (*f) () = $ac_func;
10104 #endif
10105 #ifdef __cplusplus
10107 #endif
10110 main ()
10112 return f != $ac_func;
10114 return 0;
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 eval "$as_ac_var=yes"
10130 else
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 eval "$as_ac_var=no"
10136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10140 if test `eval echo '${'$as_ac_var'}'` = yes; then
10141 cat >>confdefs.h <<_ACEOF
10142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10143 _ACEOF
10146 done
10153 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10154 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10155 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10156 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10162 ac_ext=cc
10163 ac_cpp='$CXXCPP $CPPFLAGS'
10164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10168 cat >conftest.$ac_ext <<_ACEOF
10169 #line $LINENO "configure"
10170 /* confdefs.h. */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <math.h>
10177 main ()
10179 hypot(0, 0);
10181 return 0;
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try='test -s conftest.$ac_objext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 glibcxx_cv_func_hypot_use=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 glibcxx_cv_func_hypot_use=no
10203 rm -f conftest.$ac_objext conftest.$ac_ext
10204 ac_ext=c
10205 ac_cpp='$CPP $CPPFLAGS'
10206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10214 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10215 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10217 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10219 for ac_func in hypot
10221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10222 echo "$as_me:$LINENO: checking for $ac_func" >&5
10223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10224 if eval "test \"\${$as_ac_var+set}\" = set"; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227 if test x$gcc_no_link = xyes; then
10228 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10229 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10230 { (exit 1); exit 1; }; }
10232 cat >conftest.$ac_ext <<_ACEOF
10233 #line $LINENO "configure"
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 /* System header to define __stub macros and hopefully few prototypes,
10240 which can conflict with char $ac_func (); below.
10241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10242 <limits.h> exists even on freestanding compilers. */
10243 #ifdef __STDC__
10244 # include <limits.h>
10245 #else
10246 # include <assert.h>
10247 #endif
10248 /* Override any gcc2 internal prototype to avoid an error. */
10249 #ifdef __cplusplus
10250 extern "C"
10252 #endif
10253 /* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255 char $ac_func ();
10256 /* The GNU C library defines this for functions which it implements
10257 to always fail with ENOSYS. Some functions are actually named
10258 something starting with __ and the normal name is an alias. */
10259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10260 choke me
10261 #else
10262 char (*f) () = $ac_func;
10263 #endif
10264 #ifdef __cplusplus
10266 #endif
10269 main ()
10271 return f != $ac_func;
10273 return 0;
10275 _ACEOF
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278 (eval $ac_link) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 eval "$as_ac_var=yes"
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 eval "$as_ac_var=no"
10295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10299 if test `eval echo '${'$as_ac_var'}'` = yes; then
10300 cat >>confdefs.h <<_ACEOF
10301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 _ACEOF
10305 done
10307 else
10309 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10310 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10311 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10312 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10318 ac_ext=cc
10319 ac_cpp='$CXXCPP $CPPFLAGS'
10320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10324 cat >conftest.$ac_ext <<_ACEOF
10325 #line $LINENO "configure"
10326 /* confdefs.h. */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 #include <math.h>
10333 main ()
10335 _hypot(0, 0);
10337 return 0;
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 glibcxx_cv_func__hypot_use=yes
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 glibcxx_cv_func__hypot_use=no
10359 rm -f conftest.$ac_objext conftest.$ac_ext
10360 ac_ext=c
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10370 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10371 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10373 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10375 for ac_func in _hypot
10377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378 echo "$as_me:$LINENO: checking for $ac_func" >&5
10379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10380 if eval "test \"\${$as_ac_var+set}\" = set"; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383 if test x$gcc_no_link = xyes; then
10384 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10386 { (exit 1); exit 1; }; }
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 /* System header to define __stub macros and hopefully few prototypes,
10396 which can conflict with char $ac_func (); below.
10397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10398 <limits.h> exists even on freestanding compilers. */
10399 #ifdef __STDC__
10400 # include <limits.h>
10401 #else
10402 # include <assert.h>
10403 #endif
10404 /* Override any gcc2 internal prototype to avoid an error. */
10405 #ifdef __cplusplus
10406 extern "C"
10408 #endif
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411 char $ac_func ();
10412 /* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10416 choke me
10417 #else
10418 char (*f) () = $ac_func;
10419 #endif
10420 #ifdef __cplusplus
10422 #endif
10425 main ()
10427 return f != $ac_func;
10429 return 0;
10431 _ACEOF
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434 (eval $ac_link) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -s conftest$ac_exeext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 eval "$as_ac_var=yes"
10445 else
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 eval "$as_ac_var=no"
10451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10455 if test `eval echo '${'$as_ac_var'}'` = yes; then
10456 cat >>confdefs.h <<_ACEOF
10457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10458 _ACEOF
10461 done
10468 echo "$as_me:$LINENO: checking for float trig functions" >&5
10469 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10470 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10476 ac_ext=cc
10477 ac_cpp='$CXXCPP $CPPFLAGS'
10478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10482 cat >conftest.$ac_ext <<_ACEOF
10483 #line $LINENO "configure"
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 #include <math.h>
10491 main ()
10493 `for x in acosf asinf atanf \
10494 cosf sinf tanf \
10495 coshf sinhf tanhf; do echo "$x (0);"; done`
10497 return 0;
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 glibcxx_cv_func_float_trig_use=yes
10513 else
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 glibcxx_cv_func_float_trig_use=no
10519 rm -f conftest.$ac_objext conftest.$ac_ext
10520 ac_ext=c
10521 ac_cpp='$CPP $CPPFLAGS'
10522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10529 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10530 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10540 for ac_func in acosf asinf atanf \
10541 cosf sinf tanf \
10542 coshf sinhf tanhf
10544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10545 echo "$as_me:$LINENO: checking for $ac_func" >&5
10546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10547 if eval "test \"\${$as_ac_var+set}\" = set"; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550 if test x$gcc_no_link = xyes; then
10551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10553 { (exit 1); exit 1; }; }
10555 cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 /* System header to define __stub macros and hopefully few prototypes,
10563 which can conflict with char $ac_func (); below.
10564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10565 <limits.h> exists even on freestanding compilers. */
10566 #ifdef __STDC__
10567 # include <limits.h>
10568 #else
10569 # include <assert.h>
10570 #endif
10571 /* Override any gcc2 internal prototype to avoid an error. */
10572 #ifdef __cplusplus
10573 extern "C"
10575 #endif
10576 /* We use char because int might match the return type of a gcc2
10577 builtin and then its argument prototype would still apply. */
10578 char $ac_func ();
10579 /* The GNU C library defines this for functions which it implements
10580 to always fail with ENOSYS. Some functions are actually named
10581 something starting with __ and the normal name is an alias. */
10582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10583 choke me
10584 #else
10585 char (*f) () = $ac_func;
10586 #endif
10587 #ifdef __cplusplus
10589 #endif
10592 main ()
10594 return f != $ac_func;
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 (eval $ac_link) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -s conftest$ac_exeext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 eval "$as_ac_var=yes"
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 eval "$as_ac_var=no"
10618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10622 if test `eval echo '${'$as_ac_var'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10625 _ACEOF
10628 done
10633 echo "$as_me:$LINENO: checking for float round functions" >&5
10634 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10635 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10641 ac_ext=cc
10642 ac_cpp='$CXXCPP $CPPFLAGS'
10643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10647 cat >conftest.$ac_ext <<_ACEOF
10648 #line $LINENO "configure"
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <math.h>
10656 main ()
10658 `for x in ceilf floorf; do echo "$x (0);"; done`
10660 return 0;
10662 _ACEOF
10663 rm -f conftest.$ac_objext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -s conftest.$ac_objext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 glibcxx_cv_func_float_round_use=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 glibcxx_cv_func_float_round_use=no
10682 rm -f conftest.$ac_objext conftest.$ac_ext
10683 ac_ext=c
10684 ac_cpp='$CPP $CPPFLAGS'
10685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10691 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10692 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10693 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10696 for ac_func in ceilf floorf
10698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10699 echo "$as_me:$LINENO: checking for $ac_func" >&5
10700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10701 if eval "test \"\${$as_ac_var+set}\" = set"; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704 if test x$gcc_no_link = xyes; then
10705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10707 { (exit 1); exit 1; }; }
10709 cat >conftest.$ac_ext <<_ACEOF
10710 #line $LINENO "configure"
10711 /* confdefs.h. */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 /* System header to define __stub macros and hopefully few prototypes,
10717 which can conflict with char $ac_func (); below.
10718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10719 <limits.h> exists even on freestanding compilers. */
10720 #ifdef __STDC__
10721 # include <limits.h>
10722 #else
10723 # include <assert.h>
10724 #endif
10725 /* Override any gcc2 internal prototype to avoid an error. */
10726 #ifdef __cplusplus
10727 extern "C"
10729 #endif
10730 /* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10732 char $ac_func ();
10733 /* The GNU C library defines this for functions which it implements
10734 to always fail with ENOSYS. Some functions are actually named
10735 something starting with __ and the normal name is an alias. */
10736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10737 choke me
10738 #else
10739 char (*f) () = $ac_func;
10740 #endif
10741 #ifdef __cplusplus
10743 #endif
10746 main ()
10748 return f != $ac_func;
10750 return 0;
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 eval "$as_ac_var=yes"
10766 else
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 eval "$as_ac_var=no"
10772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10776 if test `eval echo '${'$as_ac_var'}'` = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10779 _ACEOF
10782 done
10788 echo "$as_me:$LINENO: checking for expf declaration" >&5
10789 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10790 if test x${glibcxx_cv_func_expf_use+set} != xset; then
10791 if test "${glibcxx_cv_func_expf_use+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10797 ac_ext=cc
10798 ac_cpp='$CXXCPP $CPPFLAGS'
10799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10803 cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <math.h>
10811 #ifdef HAVE_IEEEFP_H
10812 #include <ieeefp.h>
10813 #endif
10816 main ()
10818 expf(0);
10820 return 0;
10822 _ACEOF
10823 rm -f conftest.$ac_objext
10824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10825 (eval $ac_compile) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 glibcxx_cv_func_expf_use=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 glibcxx_cv_func_expf_use=no
10842 rm -f conftest.$ac_objext conftest.$ac_ext
10843 ac_ext=c
10844 ac_cpp='$CPP $CPPFLAGS'
10845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10853 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10854 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10856 if test x$glibcxx_cv_func_expf_use = x"yes"; then
10858 for ac_func in expf
10860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10861 echo "$as_me:$LINENO: checking for $ac_func" >&5
10862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10863 if eval "test \"\${$as_ac_var+set}\" = set"; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866 if test x$gcc_no_link = xyes; then
10867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10869 { (exit 1); exit 1; }; }
10871 cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 /* System header to define __stub macros and hopefully few prototypes,
10879 which can conflict with char $ac_func (); below.
10880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10881 <limits.h> exists even on freestanding compilers. */
10882 #ifdef __STDC__
10883 # include <limits.h>
10884 #else
10885 # include <assert.h>
10886 #endif
10887 /* Override any gcc2 internal prototype to avoid an error. */
10888 #ifdef __cplusplus
10889 extern "C"
10891 #endif
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894 char $ac_func ();
10895 /* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
10898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10899 choke me
10900 #else
10901 char (*f) () = $ac_func;
10902 #endif
10903 #ifdef __cplusplus
10905 #endif
10908 main ()
10910 return f != $ac_func;
10912 return 0;
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10917 (eval $ac_link) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -s conftest$ac_exeext'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 eval "$as_ac_var=yes"
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 eval "$as_ac_var=no"
10934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10938 if test `eval echo '${'$as_ac_var'}'` = yes; then
10939 cat >>confdefs.h <<_ACEOF
10940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10941 _ACEOF
10944 done
10946 else
10948 echo "$as_me:$LINENO: checking for _expf declaration" >&5
10949 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10950 if test x${glibcxx_cv_func__expf_use+set} != xset; then
10951 if test "${glibcxx_cv_func__expf_use+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10957 ac_ext=cc
10958 ac_cpp='$CXXCPP $CPPFLAGS'
10959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <math.h>
10971 #ifdef HAVE_IEEEFP_H
10972 #include <ieeefp.h>
10973 #endif
10976 main ()
10978 _expf(0);
10980 return 0;
10982 _ACEOF
10983 rm -f conftest.$ac_objext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10995 glibcxx_cv_func__expf_use=yes
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 glibcxx_cv_func__expf_use=no
11002 rm -f conftest.$ac_objext conftest.$ac_ext
11003 ac_ext=c
11004 ac_cpp='$CPP $CPPFLAGS'
11005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11013 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
11014 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
11016 if test x$glibcxx_cv_func__expf_use = x"yes"; then
11018 for ac_func in _expf
11020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 echo "$as_me:$LINENO: checking for $ac_func" >&5
11022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11023 if eval "test \"\${$as_ac_var+set}\" = set"; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026 if test x$gcc_no_link = xyes; then
11027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11029 { (exit 1); exit 1; }; }
11031 cat >conftest.$ac_ext <<_ACEOF
11032 #line $LINENO "configure"
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 /* System header to define __stub macros and hopefully few prototypes,
11039 which can conflict with char $ac_func (); below.
11040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11041 <limits.h> exists even on freestanding compilers. */
11042 #ifdef __STDC__
11043 # include <limits.h>
11044 #else
11045 # include <assert.h>
11046 #endif
11047 /* Override any gcc2 internal prototype to avoid an error. */
11048 #ifdef __cplusplus
11049 extern "C"
11051 #endif
11052 /* We use char because int might match the return type of a gcc2
11053 builtin and then its argument prototype would still apply. */
11054 char $ac_func ();
11055 /* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
11058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11059 choke me
11060 #else
11061 char (*f) () = $ac_func;
11062 #endif
11063 #ifdef __cplusplus
11065 #endif
11068 main ()
11070 return f != $ac_func;
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077 (eval $ac_link) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -s conftest$ac_exeext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 eval "$as_ac_var=yes"
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 eval "$as_ac_var=no"
11094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11098 if test `eval echo '${'$as_ac_var'}'` = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11101 _ACEOF
11104 done
11111 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
11112 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
11113 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
11114 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11120 ac_ext=cc
11121 ac_cpp='$CXXCPP $CPPFLAGS'
11122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line $LINENO "configure"
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <math.h>
11134 #ifdef HAVE_IEEEFP_H
11135 #include <ieeefp.h>
11136 #endif
11139 main ()
11141 isnanf(0);
11143 return 0;
11145 _ACEOF
11146 rm -f conftest.$ac_objext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -s conftest.$ac_objext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 glibcxx_cv_func_isnanf_use=yes
11159 else
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 glibcxx_cv_func_isnanf_use=no
11165 rm -f conftest.$ac_objext conftest.$ac_ext
11166 ac_ext=c
11167 ac_cpp='$CPP $CPPFLAGS'
11168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11176 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11177 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11179 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11181 for ac_func in isnanf
11183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11184 echo "$as_me:$LINENO: checking for $ac_func" >&5
11185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11186 if eval "test \"\${$as_ac_var+set}\" = set"; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189 if test x$gcc_no_link = xyes; then
11190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11192 { (exit 1); exit 1; }; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 #line $LINENO "configure"
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 /* System header to define __stub macros and hopefully few prototypes,
11202 which can conflict with char $ac_func (); below.
11203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11204 <limits.h> exists even on freestanding compilers. */
11205 #ifdef __STDC__
11206 # include <limits.h>
11207 #else
11208 # include <assert.h>
11209 #endif
11210 /* Override any gcc2 internal prototype to avoid an error. */
11211 #ifdef __cplusplus
11212 extern "C"
11214 #endif
11215 /* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217 char $ac_func ();
11218 /* The GNU C library defines this for functions which it implements
11219 to always fail with ENOSYS. Some functions are actually named
11220 something starting with __ and the normal name is an alias. */
11221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11222 choke me
11223 #else
11224 char (*f) () = $ac_func;
11225 #endif
11226 #ifdef __cplusplus
11228 #endif
11231 main ()
11233 return f != $ac_func;
11235 return 0;
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 (eval $ac_link) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -s conftest$ac_exeext'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 eval "$as_ac_var=yes"
11251 else
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 eval "$as_ac_var=no"
11257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11261 if test `eval echo '${'$as_ac_var'}'` = yes; then
11262 cat >>confdefs.h <<_ACEOF
11263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264 _ACEOF
11267 done
11269 else
11271 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11272 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11273 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11274 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11280 ac_ext=cc
11281 ac_cpp='$CXXCPP $CPPFLAGS'
11282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11286 cat >conftest.$ac_ext <<_ACEOF
11287 #line $LINENO "configure"
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <math.h>
11294 #ifdef HAVE_IEEEFP_H
11295 #include <ieeefp.h>
11296 #endif
11299 main ()
11301 _isnanf(0);
11303 return 0;
11305 _ACEOF
11306 rm -f conftest.$ac_objext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 glibcxx_cv_func__isnanf_use=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 glibcxx_cv_func__isnanf_use=no
11325 rm -f conftest.$ac_objext conftest.$ac_ext
11326 ac_ext=c
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11336 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11337 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11339 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11341 for ac_func in _isnanf
11343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11344 echo "$as_me:$LINENO: checking for $ac_func" >&5
11345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11346 if eval "test \"\${$as_ac_var+set}\" = set"; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 if test x$gcc_no_link = xyes; then
11350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11352 { (exit 1); exit 1; }; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char $ac_func (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11365 #ifdef __STDC__
11366 # include <limits.h>
11367 #else
11368 # include <assert.h>
11369 #endif
11370 /* Override any gcc2 internal prototype to avoid an error. */
11371 #ifdef __cplusplus
11372 extern "C"
11374 #endif
11375 /* We use char because int might match the return type of a gcc2
11376 builtin and then its argument prototype would still apply. */
11377 char $ac_func ();
11378 /* The GNU C library defines this for functions which it implements
11379 to always fail with ENOSYS. Some functions are actually named
11380 something starting with __ and the normal name is an alias. */
11381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11382 choke me
11383 #else
11384 char (*f) () = $ac_func;
11385 #endif
11386 #ifdef __cplusplus
11388 #endif
11391 main ()
11393 return f != $ac_func;
11395 return 0;
11397 _ACEOF
11398 rm -f conftest.$ac_objext conftest$ac_exeext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11400 (eval $ac_link) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -s conftest$ac_exeext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 eval "$as_ac_var=yes"
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 eval "$as_ac_var=no"
11417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11421 if test `eval echo '${'$as_ac_var'}'` = yes; then
11422 cat >>confdefs.h <<_ACEOF
11423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11424 _ACEOF
11427 done
11434 echo "$as_me:$LINENO: checking for isinff declaration" >&5
11435 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11436 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11437 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11443 ac_ext=cc
11444 ac_cpp='$CXXCPP $CPPFLAGS'
11445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11449 cat >conftest.$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 /* confdefs.h. */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 #include <math.h>
11457 #ifdef HAVE_IEEEFP_H
11458 #include <ieeefp.h>
11459 #endif
11462 main ()
11464 isinff(0);
11466 return 0;
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471 (eval $ac_compile) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 glibcxx_cv_func_isinff_use=yes
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 glibcxx_cv_func_isinff_use=no
11488 rm -f conftest.$ac_objext conftest.$ac_ext
11489 ac_ext=c
11490 ac_cpp='$CPP $CPPFLAGS'
11491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11499 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11500 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11502 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11504 for ac_func in isinff
11506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11507 echo "$as_me:$LINENO: checking for $ac_func" >&5
11508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11509 if eval "test \"\${$as_ac_var+set}\" = set"; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 if test x$gcc_no_link = xyes; then
11513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11515 { (exit 1); exit 1; }; }
11517 cat >conftest.$ac_ext <<_ACEOF
11518 #line $LINENO "configure"
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 /* System header to define __stub macros and hopefully few prototypes,
11525 which can conflict with char $ac_func (); below.
11526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11527 <limits.h> exists even on freestanding compilers. */
11528 #ifdef __STDC__
11529 # include <limits.h>
11530 #else
11531 # include <assert.h>
11532 #endif
11533 /* Override any gcc2 internal prototype to avoid an error. */
11534 #ifdef __cplusplus
11535 extern "C"
11537 #endif
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11540 char $ac_func ();
11541 /* The GNU C library defines this for functions which it implements
11542 to always fail with ENOSYS. Some functions are actually named
11543 something starting with __ and the normal name is an alias. */
11544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11545 choke me
11546 #else
11547 char (*f) () = $ac_func;
11548 #endif
11549 #ifdef __cplusplus
11551 #endif
11554 main ()
11556 return f != $ac_func;
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 eval "$as_ac_var=yes"
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 eval "$as_ac_var=no"
11580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11584 if test `eval echo '${'$as_ac_var'}'` = yes; then
11585 cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11587 _ACEOF
11590 done
11592 else
11594 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11595 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11596 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11597 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11603 ac_ext=cc
11604 ac_cpp='$CXXCPP $CPPFLAGS'
11605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11609 cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 #include <math.h>
11617 #ifdef HAVE_IEEEFP_H
11618 #include <ieeefp.h>
11619 #endif
11622 main ()
11624 _isinff(0);
11626 return 0;
11628 _ACEOF
11629 rm -f conftest.$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -s conftest.$ac_objext'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 glibcxx_cv_func__isinff_use=yes
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 glibcxx_cv_func__isinff_use=no
11648 rm -f conftest.$ac_objext conftest.$ac_ext
11649 ac_ext=c
11650 ac_cpp='$CPP $CPPFLAGS'
11651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11659 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11660 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11662 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11664 for ac_func in _isinff
11666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11667 echo "$as_me:$LINENO: checking for $ac_func" >&5
11668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11669 if eval "test \"\${$as_ac_var+set}\" = set"; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 if test x$gcc_no_link = xyes; then
11673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11675 { (exit 1); exit 1; }; }
11677 cat >conftest.$ac_ext <<_ACEOF
11678 #line $LINENO "configure"
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 /* System header to define __stub macros and hopefully few prototypes,
11685 which can conflict with char $ac_func (); below.
11686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11687 <limits.h> exists even on freestanding compilers. */
11688 #ifdef __STDC__
11689 # include <limits.h>
11690 #else
11691 # include <assert.h>
11692 #endif
11693 /* Override any gcc2 internal prototype to avoid an error. */
11694 #ifdef __cplusplus
11695 extern "C"
11697 #endif
11698 /* We use char because int might match the return type of a gcc2
11699 builtin and then its argument prototype would still apply. */
11700 char $ac_func ();
11701 /* The GNU C library defines this for functions which it implements
11702 to always fail with ENOSYS. Some functions are actually named
11703 something starting with __ and the normal name is an alias. */
11704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11705 choke me
11706 #else
11707 char (*f) () = $ac_func;
11708 #endif
11709 #ifdef __cplusplus
11711 #endif
11714 main ()
11716 return f != $ac_func;
11718 return 0;
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 eval "$as_ac_var=yes"
11734 else
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 eval "$as_ac_var=no"
11740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11744 if test `eval echo '${'$as_ac_var'}'` = yes; then
11745 cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 _ACEOF
11750 done
11757 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11758 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11759 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11760 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11766 ac_ext=cc
11767 ac_cpp='$CXXCPP $CPPFLAGS'
11768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11772 cat >conftest.$ac_ext <<_ACEOF
11773 #line $LINENO "configure"
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 #include <math.h>
11781 main ()
11783 atan2f(0, 0);
11785 return 0;
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790 (eval $ac_compile) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 glibcxx_cv_func_atan2f_use=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 glibcxx_cv_func_atan2f_use=no
11807 rm -f conftest.$ac_objext conftest.$ac_ext
11808 ac_ext=c
11809 ac_cpp='$CPP $CPPFLAGS'
11810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11818 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11819 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11821 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11823 for ac_func in atan2f
11825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11826 echo "$as_me:$LINENO: checking for $ac_func" >&5
11827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11828 if eval "test \"\${$as_ac_var+set}\" = set"; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 if test x$gcc_no_link = xyes; then
11832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11834 { (exit 1); exit 1; }; }
11836 cat >conftest.$ac_ext <<_ACEOF
11837 #line $LINENO "configure"
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 /* System header to define __stub macros and hopefully few prototypes,
11844 which can conflict with char $ac_func (); below.
11845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11846 <limits.h> exists even on freestanding compilers. */
11847 #ifdef __STDC__
11848 # include <limits.h>
11849 #else
11850 # include <assert.h>
11851 #endif
11852 /* Override any gcc2 internal prototype to avoid an error. */
11853 #ifdef __cplusplus
11854 extern "C"
11856 #endif
11857 /* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11859 char $ac_func ();
11860 /* The GNU C library defines this for functions which it implements
11861 to always fail with ENOSYS. Some functions are actually named
11862 something starting with __ and the normal name is an alias. */
11863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11864 choke me
11865 #else
11866 char (*f) () = $ac_func;
11867 #endif
11868 #ifdef __cplusplus
11870 #endif
11873 main ()
11875 return f != $ac_func;
11877 return 0;
11879 _ACEOF
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882 (eval $ac_link) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -s conftest$ac_exeext'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 eval "$as_ac_var=yes"
11893 else
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 eval "$as_ac_var=no"
11899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11903 if test `eval echo '${'$as_ac_var'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 _ACEOF
11909 done
11911 else
11913 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11914 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11915 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11916 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11922 ac_ext=cc
11923 ac_cpp='$CXXCPP $CPPFLAGS'
11924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11928 cat >conftest.$ac_ext <<_ACEOF
11929 #line $LINENO "configure"
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <math.h>
11937 main ()
11939 _atan2f(0, 0);
11941 return 0;
11943 _ACEOF
11944 rm -f conftest.$ac_objext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11946 (eval $ac_compile) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -s conftest.$ac_objext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 glibcxx_cv_func__atan2f_use=yes
11957 else
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 glibcxx_cv_func__atan2f_use=no
11963 rm -f conftest.$ac_objext conftest.$ac_ext
11964 ac_ext=c
11965 ac_cpp='$CPP $CPPFLAGS'
11966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11974 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11975 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11977 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11979 for ac_func in _atan2f
11981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11982 echo "$as_me:$LINENO: checking for $ac_func" >&5
11983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11984 if eval "test \"\${$as_ac_var+set}\" = set"; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 if test x$gcc_no_link = xyes; then
11988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11990 { (exit 1); exit 1; }; }
11992 cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11994 /* confdefs.h. */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 /* System header to define __stub macros and hopefully few prototypes,
12000 which can conflict with char $ac_func (); below.
12001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12002 <limits.h> exists even on freestanding compilers. */
12003 #ifdef __STDC__
12004 # include <limits.h>
12005 #else
12006 # include <assert.h>
12007 #endif
12008 /* Override any gcc2 internal prototype to avoid an error. */
12009 #ifdef __cplusplus
12010 extern "C"
12012 #endif
12013 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015 char $ac_func ();
12016 /* The GNU C library defines this for functions which it implements
12017 to always fail with ENOSYS. Some functions are actually named
12018 something starting with __ and the normal name is an alias. */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 char (*f) () = $ac_func;
12023 #endif
12024 #ifdef __cplusplus
12026 #endif
12029 main ()
12031 return f != $ac_func;
12033 return 0;
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038 (eval $ac_link) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 eval "$as_ac_var=yes"
12049 else
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 eval "$as_ac_var=no"
12055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062 _ACEOF
12065 done
12072 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
12073 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
12074 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
12075 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12081 ac_ext=cc
12082 ac_cpp='$CXXCPP $CPPFLAGS'
12083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12087 cat >conftest.$ac_ext <<_ACEOF
12088 #line $LINENO "configure"
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <math.h>
12095 #ifdef HAVE_IEEEFP_H
12096 #include <ieeefp.h>
12097 #endif
12100 main ()
12102 fabsf(0);
12104 return 0;
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109 (eval $ac_compile) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -s conftest.$ac_objext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 glibcxx_cv_func_fabsf_use=yes
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 glibcxx_cv_func_fabsf_use=no
12126 rm -f conftest.$ac_objext conftest.$ac_ext
12127 ac_ext=c
12128 ac_cpp='$CPP $CPPFLAGS'
12129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12137 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
12138 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
12140 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
12142 for ac_func in fabsf
12144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12145 echo "$as_me:$LINENO: checking for $ac_func" >&5
12146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12147 if eval "test \"\${$as_ac_var+set}\" = set"; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 if test x$gcc_no_link = xyes; then
12151 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12153 { (exit 1); exit 1; }; }
12155 cat >conftest.$ac_ext <<_ACEOF
12156 #line $LINENO "configure"
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 /* System header to define __stub macros and hopefully few prototypes,
12163 which can conflict with char $ac_func (); below.
12164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12165 <limits.h> exists even on freestanding compilers. */
12166 #ifdef __STDC__
12167 # include <limits.h>
12168 #else
12169 # include <assert.h>
12170 #endif
12171 /* Override any gcc2 internal prototype to avoid an error. */
12172 #ifdef __cplusplus
12173 extern "C"
12175 #endif
12176 /* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12178 char $ac_func ();
12179 /* The GNU C library defines this for functions which it implements
12180 to always fail with ENOSYS. Some functions are actually named
12181 something starting with __ and the normal name is an alias. */
12182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12183 choke me
12184 #else
12185 char (*f) () = $ac_func;
12186 #endif
12187 #ifdef __cplusplus
12189 #endif
12192 main ()
12194 return f != $ac_func;
12196 return 0;
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -s conftest$ac_exeext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 eval "$as_ac_var=yes"
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 eval "$as_ac_var=no"
12218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12222 if test `eval echo '${'$as_ac_var'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12225 _ACEOF
12228 done
12230 else
12232 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12233 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12234 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12235 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12241 ac_ext=cc
12242 ac_cpp='$CXXCPP $CPPFLAGS'
12243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12247 cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <math.h>
12255 #ifdef HAVE_IEEEFP_H
12256 #include <ieeefp.h>
12257 #endif
12260 main ()
12262 _fabsf(0);
12264 return 0;
12266 _ACEOF
12267 rm -f conftest.$ac_objext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -s conftest.$ac_objext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 glibcxx_cv_func__fabsf_use=yes
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 glibcxx_cv_func__fabsf_use=no
12286 rm -f conftest.$ac_objext conftest.$ac_ext
12287 ac_ext=c
12288 ac_cpp='$CPP $CPPFLAGS'
12289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12297 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12298 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12300 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12302 for ac_func in _fabsf
12304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12305 echo "$as_me:$LINENO: checking for $ac_func" >&5
12306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12307 if eval "test \"\${$as_ac_var+set}\" = set"; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 if test x$gcc_no_link = xyes; then
12311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12313 { (exit 1); exit 1; }; }
12315 cat >conftest.$ac_ext <<_ACEOF
12316 #line $LINENO "configure"
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 /* System header to define __stub macros and hopefully few prototypes,
12323 which can conflict with char $ac_func (); below.
12324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12325 <limits.h> exists even on freestanding compilers. */
12326 #ifdef __STDC__
12327 # include <limits.h>
12328 #else
12329 # include <assert.h>
12330 #endif
12331 /* Override any gcc2 internal prototype to avoid an error. */
12332 #ifdef __cplusplus
12333 extern "C"
12335 #endif
12336 /* We use char because int might match the return type of a gcc2
12337 builtin and then its argument prototype would still apply. */
12338 char $ac_func ();
12339 /* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
12342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12343 choke me
12344 #else
12345 char (*f) () = $ac_func;
12346 #endif
12347 #ifdef __cplusplus
12349 #endif
12352 main ()
12354 return f != $ac_func;
12356 return 0;
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12361 (eval $ac_link) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 eval "$as_ac_var=yes"
12372 else
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 eval "$as_ac_var=no"
12378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12382 if test `eval echo '${'$as_ac_var'}'` = yes; then
12383 cat >>confdefs.h <<_ACEOF
12384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12385 _ACEOF
12388 done
12395 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12396 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12397 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12398 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12404 ac_ext=cc
12405 ac_cpp='$CXXCPP $CPPFLAGS'
12406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <math.h>
12419 main ()
12421 fmodf(0, 0);
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 glibcxx_cv_func_fmodf_use=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 glibcxx_cv_func_fmodf_use=no
12445 rm -f conftest.$ac_objext conftest.$ac_ext
12446 ac_ext=c
12447 ac_cpp='$CPP $CPPFLAGS'
12448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12456 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12457 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12459 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12461 for ac_func in fmodf
12463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12464 echo "$as_me:$LINENO: checking for $ac_func" >&5
12465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12466 if eval "test \"\${$as_ac_var+set}\" = set"; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469 if test x$gcc_no_link = xyes; then
12470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12472 { (exit 1); exit 1; }; }
12474 cat >conftest.$ac_ext <<_ACEOF
12475 #line $LINENO "configure"
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481 /* System header to define __stub macros and hopefully few prototypes,
12482 which can conflict with char $ac_func (); below.
12483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484 <limits.h> exists even on freestanding compilers. */
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12490 /* Override any gcc2 internal prototype to avoid an error. */
12491 #ifdef __cplusplus
12492 extern "C"
12494 #endif
12495 /* We use char because int might match the return type of a gcc2
12496 builtin and then its argument prototype would still apply. */
12497 char $ac_func ();
12498 /* The GNU C library defines this for functions which it implements
12499 to always fail with ENOSYS. Some functions are actually named
12500 something starting with __ and the normal name is an alias. */
12501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12502 choke me
12503 #else
12504 char (*f) () = $ac_func;
12505 #endif
12506 #ifdef __cplusplus
12508 #endif
12511 main ()
12513 return f != $ac_func;
12515 return 0;
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest$ac_exeext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 eval "$as_ac_var=yes"
12531 else
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 eval "$as_ac_var=no"
12537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12541 if test `eval echo '${'$as_ac_var'}'` = yes; then
12542 cat >>confdefs.h <<_ACEOF
12543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12544 _ACEOF
12547 done
12549 else
12551 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12552 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12553 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12554 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12560 ac_ext=cc
12561 ac_cpp='$CXXCPP $CPPFLAGS'
12562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12566 cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 /* confdefs.h. */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <math.h>
12575 main ()
12577 _fmodf(0, 0);
12579 return 0;
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584 (eval $ac_compile) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 glibcxx_cv_func__fmodf_use=yes
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 glibcxx_cv_func__fmodf_use=no
12601 rm -f conftest.$ac_objext conftest.$ac_ext
12602 ac_ext=c
12603 ac_cpp='$CPP $CPPFLAGS'
12604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12612 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12613 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12615 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12617 for ac_func in _fmodf
12619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12620 echo "$as_me:$LINENO: checking for $ac_func" >&5
12621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12622 if eval "test \"\${$as_ac_var+set}\" = set"; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625 if test x$gcc_no_link = xyes; then
12626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12628 { (exit 1); exit 1; }; }
12630 cat >conftest.$ac_ext <<_ACEOF
12631 #line $LINENO "configure"
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12641 #ifdef __STDC__
12642 # include <limits.h>
12643 #else
12644 # include <assert.h>
12645 #endif
12646 /* Override any gcc2 internal prototype to avoid an error. */
12647 #ifdef __cplusplus
12648 extern "C"
12650 #endif
12651 /* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12653 char $ac_func ();
12654 /* The GNU C library defines this for functions which it implements
12655 to always fail with ENOSYS. Some functions are actually named
12656 something starting with __ and the normal name is an alias. */
12657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12658 choke me
12659 #else
12660 char (*f) () = $ac_func;
12661 #endif
12662 #ifdef __cplusplus
12664 #endif
12667 main ()
12669 return f != $ac_func;
12671 return 0;
12673 _ACEOF
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12676 (eval $ac_link) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 eval "$as_ac_var=yes"
12687 else
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 eval "$as_ac_var=no"
12693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12697 if test `eval echo '${'$as_ac_var'}'` = yes; then
12698 cat >>confdefs.h <<_ACEOF
12699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12700 _ACEOF
12703 done
12710 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12711 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12712 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12713 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12719 ac_ext=cc
12720 ac_cpp='$CXXCPP $CPPFLAGS'
12721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12725 cat >conftest.$ac_ext <<_ACEOF
12726 #line $LINENO "configure"
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 #include <math.h>
12734 main ()
12736 frexpf(0, 0);
12738 return 0;
12740 _ACEOF
12741 rm -f conftest.$ac_objext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -s conftest.$ac_objext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 glibcxx_cv_func_frexpf_use=yes
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 glibcxx_cv_func_frexpf_use=no
12760 rm -f conftest.$ac_objext conftest.$ac_ext
12761 ac_ext=c
12762 ac_cpp='$CPP $CPPFLAGS'
12763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12771 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12772 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12774 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12776 for ac_func in frexpf
12778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12779 echo "$as_me:$LINENO: checking for $ac_func" >&5
12780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12781 if eval "test \"\${$as_ac_var+set}\" = set"; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784 if test x$gcc_no_link = xyes; then
12785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12787 { (exit 1); exit 1; }; }
12789 cat >conftest.$ac_ext <<_ACEOF
12790 #line $LINENO "configure"
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 /* System header to define __stub macros and hopefully few prototypes,
12797 which can conflict with char $ac_func (); below.
12798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12799 <limits.h> exists even on freestanding compilers. */
12800 #ifdef __STDC__
12801 # include <limits.h>
12802 #else
12803 # include <assert.h>
12804 #endif
12805 /* Override any gcc2 internal prototype to avoid an error. */
12806 #ifdef __cplusplus
12807 extern "C"
12809 #endif
12810 /* We use char because int might match the return type of a gcc2
12811 builtin and then its argument prototype would still apply. */
12812 char $ac_func ();
12813 /* The GNU C library defines this for functions which it implements
12814 to always fail with ENOSYS. Some functions are actually named
12815 something starting with __ and the normal name is an alias. */
12816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12817 choke me
12818 #else
12819 char (*f) () = $ac_func;
12820 #endif
12821 #ifdef __cplusplus
12823 #endif
12826 main ()
12828 return f != $ac_func;
12830 return 0;
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -s conftest$ac_exeext'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12845 eval "$as_ac_var=yes"
12846 else
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 eval "$as_ac_var=no"
12852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12856 if test `eval echo '${'$as_ac_var'}'` = yes; then
12857 cat >>confdefs.h <<_ACEOF
12858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12859 _ACEOF
12862 done
12864 else
12866 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12867 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12868 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12869 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12875 ac_ext=cc
12876 ac_cpp='$CXXCPP $CPPFLAGS'
12877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12881 cat >conftest.$ac_ext <<_ACEOF
12882 #line $LINENO "configure"
12883 /* confdefs.h. */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 #include <math.h>
12890 main ()
12892 _frexpf(0, 0);
12894 return 0;
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899 (eval $ac_compile) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 glibcxx_cv_func__frexpf_use=yes
12910 else
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 glibcxx_cv_func__frexpf_use=no
12916 rm -f conftest.$ac_objext conftest.$ac_ext
12917 ac_ext=c
12918 ac_cpp='$CPP $CPPFLAGS'
12919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12928 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12930 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12932 for ac_func in _frexpf
12934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935 echo "$as_me:$LINENO: checking for $ac_func" >&5
12936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937 if eval "test \"\${$as_ac_var+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 if test x$gcc_no_link = xyes; then
12941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12943 { (exit 1); exit 1; }; }
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 /* System header to define __stub macros and hopefully few prototypes,
12953 which can conflict with char $ac_func (); below.
12954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12955 <limits.h> exists even on freestanding compilers. */
12956 #ifdef __STDC__
12957 # include <limits.h>
12958 #else
12959 # include <assert.h>
12960 #endif
12961 /* Override any gcc2 internal prototype to avoid an error. */
12962 #ifdef __cplusplus
12963 extern "C"
12965 #endif
12966 /* We use char because int might match the return type of a gcc2
12967 builtin and then its argument prototype would still apply. */
12968 char $ac_func ();
12969 /* The GNU C library defines this for functions which it implements
12970 to always fail with ENOSYS. Some functions are actually named
12971 something starting with __ and the normal name is an alias. */
12972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12973 choke me
12974 #else
12975 char (*f) () = $ac_func;
12976 #endif
12977 #ifdef __cplusplus
12979 #endif
12982 main ()
12984 return f != $ac_func;
12986 return 0;
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -s conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 eval "$as_ac_var=yes"
13002 else
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 eval "$as_ac_var=no"
13008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13012 if test `eval echo '${'$as_ac_var'}'` = yes; then
13013 cat >>confdefs.h <<_ACEOF
13014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13015 _ACEOF
13018 done
13025 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
13026 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
13027 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
13028 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13034 ac_ext=cc
13035 ac_cpp='$CXXCPP $CPPFLAGS'
13036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13040 cat >conftest.$ac_ext <<_ACEOF
13041 #line $LINENO "configure"
13042 /* confdefs.h. */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 #include <math.h>
13049 main ()
13051 hypotf(0, 0);
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -s conftest.$ac_objext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 glibcxx_cv_func_hypotf_use=yes
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 glibcxx_cv_func_hypotf_use=no
13075 rm -f conftest.$ac_objext conftest.$ac_ext
13076 ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
13087 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
13089 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
13091 for ac_func in hypotf
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 echo "$as_me:$LINENO: checking for $ac_func" >&5
13095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096 if eval "test \"\${$as_ac_var+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099 if test x$gcc_no_link = xyes; then
13100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13102 { (exit 1); exit 1; }; }
13104 cat >conftest.$ac_ext <<_ACEOF
13105 #line $LINENO "configure"
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 /* System header to define __stub macros and hopefully few prototypes,
13112 which can conflict with char $ac_func (); below.
13113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114 <limits.h> exists even on freestanding compilers. */
13115 #ifdef __STDC__
13116 # include <limits.h>
13117 #else
13118 # include <assert.h>
13119 #endif
13120 /* Override any gcc2 internal prototype to avoid an error. */
13121 #ifdef __cplusplus
13122 extern "C"
13124 #endif
13125 /* We use char because int might match the return type of a gcc2
13126 builtin and then its argument prototype would still apply. */
13127 char $ac_func ();
13128 /* The GNU C library defines this for functions which it implements
13129 to always fail with ENOSYS. Some functions are actually named
13130 something starting with __ and the normal name is an alias. */
13131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13132 choke me
13133 #else
13134 char (*f) () = $ac_func;
13135 #endif
13136 #ifdef __cplusplus
13138 #endif
13141 main ()
13143 return f != $ac_func;
13145 return 0;
13147 _ACEOF
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13150 (eval $ac_link) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -s conftest$ac_exeext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 eval "$as_ac_var=yes"
13161 else
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 eval "$as_ac_var=no"
13167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13171 if test `eval echo '${'$as_ac_var'}'` = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13174 _ACEOF
13177 done
13179 else
13181 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
13182 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
13183 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
13184 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13190 ac_ext=cc
13191 ac_cpp='$CXXCPP $CPPFLAGS'
13192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13196 cat >conftest.$ac_ext <<_ACEOF
13197 #line $LINENO "configure"
13198 /* confdefs.h. */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 #include <math.h>
13205 main ()
13207 _hypotf(0, 0);
13209 return 0;
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 glibcxx_cv_func__hypotf_use=yes
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13229 glibcxx_cv_func__hypotf_use=no
13231 rm -f conftest.$ac_objext conftest.$ac_ext
13232 ac_ext=c
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13242 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13243 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13245 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13247 for ac_func in _hypotf
13249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13250 echo "$as_me:$LINENO: checking for $ac_func" >&5
13251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13252 if eval "test \"\${$as_ac_var+set}\" = set"; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255 if test x$gcc_no_link = xyes; then
13256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13258 { (exit 1); exit 1; }; }
13260 cat >conftest.$ac_ext <<_ACEOF
13261 #line $LINENO "configure"
13262 /* confdefs.h. */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13267 /* System header to define __stub macros and hopefully few prototypes,
13268 which can conflict with char $ac_func (); below.
13269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13270 <limits.h> exists even on freestanding compilers. */
13271 #ifdef __STDC__
13272 # include <limits.h>
13273 #else
13274 # include <assert.h>
13275 #endif
13276 /* Override any gcc2 internal prototype to avoid an error. */
13277 #ifdef __cplusplus
13278 extern "C"
13280 #endif
13281 /* We use char because int might match the return type of a gcc2
13282 builtin and then its argument prototype would still apply. */
13283 char $ac_func ();
13284 /* The GNU C library defines this for functions which it implements
13285 to always fail with ENOSYS. Some functions are actually named
13286 something starting with __ and the normal name is an alias. */
13287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13288 choke me
13289 #else
13290 char (*f) () = $ac_func;
13291 #endif
13292 #ifdef __cplusplus
13294 #endif
13297 main ()
13299 return f != $ac_func;
13301 return 0;
13303 _ACEOF
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306 (eval $ac_link) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -s conftest$ac_exeext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 eval "$as_ac_var=yes"
13317 else
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 eval "$as_ac_var=no"
13323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13327 if test `eval echo '${'$as_ac_var'}'` = yes; then
13328 cat >>confdefs.h <<_ACEOF
13329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13330 _ACEOF
13333 done
13340 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13341 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13342 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13343 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13349 ac_ext=cc
13350 ac_cpp='$CXXCPP $CPPFLAGS'
13351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13355 cat >conftest.$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <math.h>
13364 main ()
13366 ldexpf(0, 0);
13368 return 0;
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373 (eval $ac_compile) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 glibcxx_cv_func_ldexpf_use=yes
13384 else
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 glibcxx_cv_func_ldexpf_use=no
13390 rm -f conftest.$ac_objext conftest.$ac_ext
13391 ac_ext=c
13392 ac_cpp='$CPP $CPPFLAGS'
13393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13401 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13402 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13404 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13406 for ac_func in ldexpf
13408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13409 echo "$as_me:$LINENO: checking for $ac_func" >&5
13410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_var+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414 if test x$gcc_no_link = xyes; then
13415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13417 { (exit 1); exit 1; }; }
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 /* System header to define __stub macros and hopefully few prototypes,
13427 which can conflict with char $ac_func (); below.
13428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13429 <limits.h> exists even on freestanding compilers. */
13430 #ifdef __STDC__
13431 # include <limits.h>
13432 #else
13433 # include <assert.h>
13434 #endif
13435 /* Override any gcc2 internal prototype to avoid an error. */
13436 #ifdef __cplusplus
13437 extern "C"
13439 #endif
13440 /* We use char because int might match the return type of a gcc2
13441 builtin and then its argument prototype would still apply. */
13442 char $ac_func ();
13443 /* The GNU C library defines this for functions which it implements
13444 to always fail with ENOSYS. Some functions are actually named
13445 something starting with __ and the normal name is an alias. */
13446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13447 choke me
13448 #else
13449 char (*f) () = $ac_func;
13450 #endif
13451 #ifdef __cplusplus
13453 #endif
13456 main ()
13458 return f != $ac_func;
13460 return 0;
13462 _ACEOF
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 eval "$as_ac_var=yes"
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 eval "$as_ac_var=no"
13482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13486 if test `eval echo '${'$as_ac_var'}'` = yes; then
13487 cat >>confdefs.h <<_ACEOF
13488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13489 _ACEOF
13492 done
13494 else
13496 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13497 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13498 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13499 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13505 ac_ext=cc
13506 ac_cpp='$CXXCPP $CPPFLAGS'
13507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13511 cat >conftest.$ac_ext <<_ACEOF
13512 #line $LINENO "configure"
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <math.h>
13520 main ()
13522 _ldexpf(0, 0);
13524 return 0;
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -s conftest.$ac_objext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 glibcxx_cv_func__ldexpf_use=yes
13540 else
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 glibcxx_cv_func__ldexpf_use=no
13546 rm -f conftest.$ac_objext conftest.$ac_ext
13547 ac_ext=c
13548 ac_cpp='$CPP $CPPFLAGS'
13549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13557 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13558 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13560 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13562 for ac_func in _ldexpf
13564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13565 echo "$as_me:$LINENO: checking for $ac_func" >&5
13566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13567 if eval "test \"\${$as_ac_var+set}\" = set"; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570 if test x$gcc_no_link = xyes; then
13571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13573 { (exit 1); exit 1; }; }
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 /* System header to define __stub macros and hopefully few prototypes,
13583 which can conflict with char $ac_func (); below.
13584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13585 <limits.h> exists even on freestanding compilers. */
13586 #ifdef __STDC__
13587 # include <limits.h>
13588 #else
13589 # include <assert.h>
13590 #endif
13591 /* Override any gcc2 internal prototype to avoid an error. */
13592 #ifdef __cplusplus
13593 extern "C"
13595 #endif
13596 /* We use char because int might match the return type of a gcc2
13597 builtin and then its argument prototype would still apply. */
13598 char $ac_func ();
13599 /* The GNU C library defines this for functions which it implements
13600 to always fail with ENOSYS. Some functions are actually named
13601 something starting with __ and the normal name is an alias. */
13602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13603 choke me
13604 #else
13605 char (*f) () = $ac_func;
13606 #endif
13607 #ifdef __cplusplus
13609 #endif
13612 main ()
13614 return f != $ac_func;
13616 return 0;
13618 _ACEOF
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621 (eval $ac_link) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -s conftest$ac_exeext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 eval "$as_ac_var=yes"
13632 else
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 eval "$as_ac_var=no"
13638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13642 if test `eval echo '${'$as_ac_var'}'` = yes; then
13643 cat >>confdefs.h <<_ACEOF
13644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13645 _ACEOF
13648 done
13655 echo "$as_me:$LINENO: checking for logf declaration" >&5
13656 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13657 if test x${glibcxx_cv_func_logf_use+set} != xset; then
13658 if test "${glibcxx_cv_func_logf_use+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13664 ac_ext=cc
13665 ac_cpp='$CXXCPP $CPPFLAGS'
13666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13670 cat >conftest.$ac_ext <<_ACEOF
13671 #line $LINENO "configure"
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #include <math.h>
13678 #ifdef HAVE_IEEEFP_H
13679 #include <ieeefp.h>
13680 #endif
13683 main ()
13685 logf(0);
13687 return 0;
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13692 (eval $ac_compile) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -s conftest.$ac_objext'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }; then
13702 glibcxx_cv_func_logf_use=yes
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 glibcxx_cv_func_logf_use=no
13709 rm -f conftest.$ac_objext conftest.$ac_ext
13710 ac_ext=c
13711 ac_cpp='$CPP $CPPFLAGS'
13712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13720 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13721 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13723 if test x$glibcxx_cv_func_logf_use = x"yes"; then
13725 for ac_func in logf
13727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13728 echo "$as_me:$LINENO: checking for $ac_func" >&5
13729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13730 if eval "test \"\${$as_ac_var+set}\" = set"; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733 if test x$gcc_no_link = xyes; then
13734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13736 { (exit 1); exit 1; }; }
13738 cat >conftest.$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13740 /* confdefs.h. */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 /* System header to define __stub macros and hopefully few prototypes,
13746 which can conflict with char $ac_func (); below.
13747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13748 <limits.h> exists even on freestanding compilers. */
13749 #ifdef __STDC__
13750 # include <limits.h>
13751 #else
13752 # include <assert.h>
13753 #endif
13754 /* Override any gcc2 internal prototype to avoid an error. */
13755 #ifdef __cplusplus
13756 extern "C"
13758 #endif
13759 /* We use char because int might match the return type of a gcc2
13760 builtin and then its argument prototype would still apply. */
13761 char $ac_func ();
13762 /* The GNU C library defines this for functions which it implements
13763 to always fail with ENOSYS. Some functions are actually named
13764 something starting with __ and the normal name is an alias. */
13765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13766 choke me
13767 #else
13768 char (*f) () = $ac_func;
13769 #endif
13770 #ifdef __cplusplus
13772 #endif
13775 main ()
13777 return f != $ac_func;
13779 return 0;
13781 _ACEOF
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13784 (eval $ac_link) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -s conftest$ac_exeext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 eval "$as_ac_var=yes"
13795 else
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 eval "$as_ac_var=no"
13801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13805 if test `eval echo '${'$as_ac_var'}'` = yes; then
13806 cat >>confdefs.h <<_ACEOF
13807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13808 _ACEOF
13811 done
13813 else
13815 echo "$as_me:$LINENO: checking for _logf declaration" >&5
13816 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13817 if test x${glibcxx_cv_func__logf_use+set} != xset; then
13818 if test "${glibcxx_cv_func__logf_use+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13824 ac_ext=cc
13825 ac_cpp='$CXXCPP $CPPFLAGS'
13826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13830 cat >conftest.$ac_ext <<_ACEOF
13831 #line $LINENO "configure"
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 #include <math.h>
13838 #ifdef HAVE_IEEEFP_H
13839 #include <ieeefp.h>
13840 #endif
13843 main ()
13845 _logf(0);
13847 return 0;
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 glibcxx_cv_func__logf_use=yes
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 glibcxx_cv_func__logf_use=no
13869 rm -f conftest.$ac_objext conftest.$ac_ext
13870 ac_ext=c
13871 ac_cpp='$CPP $CPPFLAGS'
13872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13880 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13881 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13883 if test x$glibcxx_cv_func__logf_use = x"yes"; then
13885 for ac_func in _logf
13887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13888 echo "$as_me:$LINENO: checking for $ac_func" >&5
13889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13890 if eval "test \"\${$as_ac_var+set}\" = set"; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893 if test x$gcc_no_link = xyes; then
13894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13896 { (exit 1); exit 1; }; }
13898 cat >conftest.$ac_ext <<_ACEOF
13899 #line $LINENO "configure"
13900 /* confdefs.h. */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 /* System header to define __stub macros and hopefully few prototypes,
13906 which can conflict with char $ac_func (); below.
13907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13908 <limits.h> exists even on freestanding compilers. */
13909 #ifdef __STDC__
13910 # include <limits.h>
13911 #else
13912 # include <assert.h>
13913 #endif
13914 /* Override any gcc2 internal prototype to avoid an error. */
13915 #ifdef __cplusplus
13916 extern "C"
13918 #endif
13919 /* We use char because int might match the return type of a gcc2
13920 builtin and then its argument prototype would still apply. */
13921 char $ac_func ();
13922 /* The GNU C library defines this for functions which it implements
13923 to always fail with ENOSYS. Some functions are actually named
13924 something starting with __ and the normal name is an alias. */
13925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13926 choke me
13927 #else
13928 char (*f) () = $ac_func;
13929 #endif
13930 #ifdef __cplusplus
13932 #endif
13935 main ()
13937 return f != $ac_func;
13939 return 0;
13941 _ACEOF
13942 rm -f conftest.$ac_objext conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -s conftest$ac_exeext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 eval "$as_ac_var=yes"
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 eval "$as_ac_var=no"
13961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13965 if test `eval echo '${'$as_ac_var'}'` = yes; then
13966 cat >>confdefs.h <<_ACEOF
13967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13968 _ACEOF
13971 done
13978 echo "$as_me:$LINENO: checking for log10f declaration" >&5
13979 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13980 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13981 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13987 ac_ext=cc
13988 ac_cpp='$CXXCPP $CPPFLAGS'
13989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13993 cat >conftest.$ac_ext <<_ACEOF
13994 #line $LINENO "configure"
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 #include <math.h>
14001 #ifdef HAVE_IEEEFP_H
14002 #include <ieeefp.h>
14003 #endif
14006 main ()
14008 log10f(0);
14010 return 0;
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015 (eval $ac_compile) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 glibcxx_cv_func_log10f_use=yes
14026 else
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 glibcxx_cv_func_log10f_use=no
14032 rm -f conftest.$ac_objext conftest.$ac_ext
14033 ac_ext=c
14034 ac_cpp='$CPP $CPPFLAGS'
14035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14043 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
14044 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
14046 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14048 for ac_func in log10f
14050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051 echo "$as_me:$LINENO: checking for $ac_func" >&5
14052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14053 if eval "test \"\${$as_ac_var+set}\" = set"; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056 if test x$gcc_no_link = xyes; then
14057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14059 { (exit 1); exit 1; }; }
14061 cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 /* System header to define __stub macros and hopefully few prototypes,
14069 which can conflict with char $ac_func (); below.
14070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14071 <limits.h> exists even on freestanding compilers. */
14072 #ifdef __STDC__
14073 # include <limits.h>
14074 #else
14075 # include <assert.h>
14076 #endif
14077 /* Override any gcc2 internal prototype to avoid an error. */
14078 #ifdef __cplusplus
14079 extern "C"
14081 #endif
14082 /* We use char because int might match the return type of a gcc2
14083 builtin and then its argument prototype would still apply. */
14084 char $ac_func ();
14085 /* The GNU C library defines this for functions which it implements
14086 to always fail with ENOSYS. Some functions are actually named
14087 something starting with __ and the normal name is an alias. */
14088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14089 choke me
14090 #else
14091 char (*f) () = $ac_func;
14092 #endif
14093 #ifdef __cplusplus
14095 #endif
14098 main ()
14100 return f != $ac_func;
14102 return 0;
14104 _ACEOF
14105 rm -f conftest.$ac_objext conftest$ac_exeext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14107 (eval $ac_link) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -s conftest$ac_exeext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 eval "$as_ac_var=yes"
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 eval "$as_ac_var=no"
14124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14128 if test `eval echo '${'$as_ac_var'}'` = yes; then
14129 cat >>confdefs.h <<_ACEOF
14130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14131 _ACEOF
14134 done
14136 else
14138 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
14139 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
14140 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14141 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14147 ac_ext=cc
14148 ac_cpp='$CXXCPP $CPPFLAGS'
14149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14153 cat >conftest.$ac_ext <<_ACEOF
14154 #line $LINENO "configure"
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <math.h>
14161 #ifdef HAVE_IEEEFP_H
14162 #include <ieeefp.h>
14163 #endif
14166 main ()
14168 _log10f(0);
14170 return 0;
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175 (eval $ac_compile) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 glibcxx_cv_func__log10f_use=yes
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 glibcxx_cv_func__log10f_use=no
14192 rm -f conftest.$ac_objext conftest.$ac_ext
14193 ac_ext=c
14194 ac_cpp='$CPP $CPPFLAGS'
14195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14203 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
14204 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
14206 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14208 for ac_func in _log10f
14210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14211 echo "$as_me:$LINENO: checking for $ac_func" >&5
14212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14213 if eval "test \"\${$as_ac_var+set}\" = set"; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216 if test x$gcc_no_link = xyes; then
14217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14219 { (exit 1); exit 1; }; }
14221 cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func (); below.
14230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14231 <limits.h> exists even on freestanding compilers. */
14232 #ifdef __STDC__
14233 # include <limits.h>
14234 #else
14235 # include <assert.h>
14236 #endif
14237 /* Override any gcc2 internal prototype to avoid an error. */
14238 #ifdef __cplusplus
14239 extern "C"
14241 #endif
14242 /* We use char because int might match the return type of a gcc2
14243 builtin and then its argument prototype would still apply. */
14244 char $ac_func ();
14245 /* The GNU C library defines this for functions which it implements
14246 to always fail with ENOSYS. Some functions are actually named
14247 something starting with __ and the normal name is an alias. */
14248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14249 choke me
14250 #else
14251 char (*f) () = $ac_func;
14252 #endif
14253 #ifdef __cplusplus
14255 #endif
14258 main ()
14260 return f != $ac_func;
14262 return 0;
14264 _ACEOF
14265 rm -f conftest.$ac_objext conftest$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -s conftest$ac_exeext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 eval "$as_ac_var=yes"
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 eval "$as_ac_var=no"
14284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14288 if test `eval echo '${'$as_ac_var'}'` = yes; then
14289 cat >>confdefs.h <<_ACEOF
14290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14291 _ACEOF
14294 done
14301 echo "$as_me:$LINENO: checking for modff declaration" >&5
14302 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14303 if test x${glibcxx_cv_func_modff_use+set} != xset; then
14304 if test "${glibcxx_cv_func_modff_use+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14310 ac_ext=cc
14311 ac_cpp='$CXXCPP $CPPFLAGS'
14312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14316 cat >conftest.$ac_ext <<_ACEOF
14317 #line $LINENO "configure"
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 #include <math.h>
14325 main ()
14327 modff(0, 0);
14329 return 0;
14331 _ACEOF
14332 rm -f conftest.$ac_objext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 glibcxx_cv_func_modff_use=yes
14345 else
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14349 glibcxx_cv_func_modff_use=no
14351 rm -f conftest.$ac_objext conftest.$ac_ext
14352 ac_ext=c
14353 ac_cpp='$CPP $CPPFLAGS'
14354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14362 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14363 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14365 if test x$glibcxx_cv_func_modff_use = x"yes"; then
14367 for ac_func in modff
14369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14370 echo "$as_me:$LINENO: checking for $ac_func" >&5
14371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_var+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375 if test x$gcc_no_link = xyes; then
14376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14378 { (exit 1); exit 1; }; }
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 /* confdefs.h. */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 /* System header to define __stub macros and hopefully few prototypes,
14388 which can conflict with char $ac_func (); below.
14389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14390 <limits.h> exists even on freestanding compilers. */
14391 #ifdef __STDC__
14392 # include <limits.h>
14393 #else
14394 # include <assert.h>
14395 #endif
14396 /* Override any gcc2 internal prototype to avoid an error. */
14397 #ifdef __cplusplus
14398 extern "C"
14400 #endif
14401 /* We use char because int might match the return type of a gcc2
14402 builtin and then its argument prototype would still apply. */
14403 char $ac_func ();
14404 /* The GNU C library defines this for functions which it implements
14405 to always fail with ENOSYS. Some functions are actually named
14406 something starting with __ and the normal name is an alias. */
14407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14408 choke me
14409 #else
14410 char (*f) () = $ac_func;
14411 #endif
14412 #ifdef __cplusplus
14414 #endif
14417 main ()
14419 return f != $ac_func;
14421 return 0;
14423 _ACEOF
14424 rm -f conftest.$ac_objext conftest$ac_exeext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 (eval $ac_link) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -s conftest$ac_exeext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 eval "$as_ac_var=yes"
14437 else
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 eval "$as_ac_var=no"
14443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14447 if test `eval echo '${'$as_ac_var'}'` = yes; then
14448 cat >>confdefs.h <<_ACEOF
14449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14450 _ACEOF
14453 done
14455 else
14457 echo "$as_me:$LINENO: checking for _modff declaration" >&5
14458 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14459 if test x${glibcxx_cv_func__modff_use+set} != xset; then
14460 if test "${glibcxx_cv_func__modff_use+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14466 ac_ext=cc
14467 ac_cpp='$CXXCPP $CPPFLAGS'
14468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14472 cat >conftest.$ac_ext <<_ACEOF
14473 #line $LINENO "configure"
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 #include <math.h>
14481 main ()
14483 _modff(0, 0);
14485 return 0;
14487 _ACEOF
14488 rm -f conftest.$ac_objext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490 (eval $ac_compile) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 glibcxx_cv_func__modff_use=yes
14501 else
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 glibcxx_cv_func__modff_use=no
14507 rm -f conftest.$ac_objext conftest.$ac_ext
14508 ac_ext=c
14509 ac_cpp='$CPP $CPPFLAGS'
14510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14518 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14519 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14521 if test x$glibcxx_cv_func__modff_use = x"yes"; then
14523 for ac_func in _modff
14525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14526 echo "$as_me:$LINENO: checking for $ac_func" >&5
14527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14528 if eval "test \"\${$as_ac_var+set}\" = set"; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531 if test x$gcc_no_link = xyes; then
14532 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14534 { (exit 1); exit 1; }; }
14536 cat >conftest.$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14538 /* confdefs.h. */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14543 /* System header to define __stub macros and hopefully few prototypes,
14544 which can conflict with char $ac_func (); below.
14545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14546 <limits.h> exists even on freestanding compilers. */
14547 #ifdef __STDC__
14548 # include <limits.h>
14549 #else
14550 # include <assert.h>
14551 #endif
14552 /* Override any gcc2 internal prototype to avoid an error. */
14553 #ifdef __cplusplus
14554 extern "C"
14556 #endif
14557 /* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14559 char $ac_func ();
14560 /* The GNU C library defines this for functions which it implements
14561 to always fail with ENOSYS. Some functions are actually named
14562 something starting with __ and the normal name is an alias. */
14563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14564 choke me
14565 #else
14566 char (*f) () = $ac_func;
14567 #endif
14568 #ifdef __cplusplus
14570 #endif
14573 main ()
14575 return f != $ac_func;
14577 return 0;
14579 _ACEOF
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14582 (eval $ac_link) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -s conftest$ac_exeext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 eval "$as_ac_var=yes"
14593 else
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 eval "$as_ac_var=no"
14599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14603 if test `eval echo '${'$as_ac_var'}'` = yes; then
14604 cat >>confdefs.h <<_ACEOF
14605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14606 _ACEOF
14609 done
14616 echo "$as_me:$LINENO: checking for powf declaration" >&5
14617 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14618 if test x${glibcxx_cv_func_powf_use+set} != xset; then
14619 if test "${glibcxx_cv_func_powf_use+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14625 ac_ext=cc
14626 ac_cpp='$CXXCPP $CPPFLAGS'
14627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14631 cat >conftest.$ac_ext <<_ACEOF
14632 #line $LINENO "configure"
14633 /* confdefs.h. */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 #include <math.h>
14640 main ()
14642 powf(0, 0);
14644 return 0;
14646 _ACEOF
14647 rm -f conftest.$ac_objext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -s conftest.$ac_objext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 glibcxx_cv_func_powf_use=yes
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 glibcxx_cv_func_powf_use=no
14666 rm -f conftest.$ac_objext conftest.$ac_ext
14667 ac_ext=c
14668 ac_cpp='$CPP $CPPFLAGS'
14669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14677 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14678 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14680 if test x$glibcxx_cv_func_powf_use = x"yes"; then
14682 for ac_func in powf
14684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14685 echo "$as_me:$LINENO: checking for $ac_func" >&5
14686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14687 if eval "test \"\${$as_ac_var+set}\" = set"; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690 if test x$gcc_no_link = xyes; then
14691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14693 { (exit 1); exit 1; }; }
14695 cat >conftest.$ac_ext <<_ACEOF
14696 #line $LINENO "configure"
14697 /* confdefs.h. */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14702 /* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char $ac_func (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14706 #ifdef __STDC__
14707 # include <limits.h>
14708 #else
14709 # include <assert.h>
14710 #endif
14711 /* Override any gcc2 internal prototype to avoid an error. */
14712 #ifdef __cplusplus
14713 extern "C"
14715 #endif
14716 /* We use char because int might match the return type of a gcc2
14717 builtin and then its argument prototype would still apply. */
14718 char $ac_func ();
14719 /* The GNU C library defines this for functions which it implements
14720 to always fail with ENOSYS. Some functions are actually named
14721 something starting with __ and the normal name is an alias. */
14722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14723 choke me
14724 #else
14725 char (*f) () = $ac_func;
14726 #endif
14727 #ifdef __cplusplus
14729 #endif
14732 main ()
14734 return f != $ac_func;
14736 return 0;
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741 (eval $ac_link) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest$ac_exeext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 eval "$as_ac_var=yes"
14752 else
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 eval "$as_ac_var=no"
14758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14762 if test `eval echo '${'$as_ac_var'}'` = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14765 _ACEOF
14768 done
14770 else
14772 echo "$as_me:$LINENO: checking for _powf declaration" >&5
14773 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14774 if test x${glibcxx_cv_func__powf_use+set} != xset; then
14775 if test "${glibcxx_cv_func__powf_use+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14781 ac_ext=cc
14782 ac_cpp='$CXXCPP $CPPFLAGS'
14783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14787 cat >conftest.$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <math.h>
14796 main ()
14798 _powf(0, 0);
14800 return 0;
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 glibcxx_cv_func__powf_use=yes
14816 else
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14820 glibcxx_cv_func__powf_use=no
14822 rm -f conftest.$ac_objext conftest.$ac_ext
14823 ac_ext=c
14824 ac_cpp='$CPP $CPPFLAGS'
14825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14833 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14834 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14836 if test x$glibcxx_cv_func__powf_use = x"yes"; then
14838 for ac_func in _powf
14840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14841 echo "$as_me:$LINENO: checking for $ac_func" >&5
14842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14843 if eval "test \"\${$as_ac_var+set}\" = set"; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846 if test x$gcc_no_link = xyes; then
14847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14849 { (exit 1); exit 1; }; }
14851 cat >conftest.$ac_ext <<_ACEOF
14852 #line $LINENO "configure"
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 /* System header to define __stub macros and hopefully few prototypes,
14859 which can conflict with char $ac_func (); below.
14860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14861 <limits.h> exists even on freestanding compilers. */
14862 #ifdef __STDC__
14863 # include <limits.h>
14864 #else
14865 # include <assert.h>
14866 #endif
14867 /* Override any gcc2 internal prototype to avoid an error. */
14868 #ifdef __cplusplus
14869 extern "C"
14871 #endif
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14874 char $ac_func ();
14875 /* The GNU C library defines this for functions which it implements
14876 to always fail with ENOSYS. Some functions are actually named
14877 something starting with __ and the normal name is an alias. */
14878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14879 choke me
14880 #else
14881 char (*f) () = $ac_func;
14882 #endif
14883 #ifdef __cplusplus
14885 #endif
14888 main ()
14890 return f != $ac_func;
14892 return 0;
14894 _ACEOF
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 eval "$as_ac_var=yes"
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 eval "$as_ac_var=no"
14914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14918 if test `eval echo '${'$as_ac_var'}'` = yes; then
14919 cat >>confdefs.h <<_ACEOF
14920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14921 _ACEOF
14924 done
14931 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14932 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14933 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14934 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14940 ac_ext=cc
14941 ac_cpp='$CXXCPP $CPPFLAGS'
14942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14946 cat >conftest.$ac_ext <<_ACEOF
14947 #line $LINENO "configure"
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 #include <math.h>
14954 #ifdef HAVE_IEEEFP_H
14955 #include <ieeefp.h>
14956 #endif
14959 main ()
14961 sqrtf(0);
14963 return 0;
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14968 (eval $ac_compile) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 glibcxx_cv_func_sqrtf_use=yes
14979 else
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 glibcxx_cv_func_sqrtf_use=no
14985 rm -f conftest.$ac_objext conftest.$ac_ext
14986 ac_ext=c
14987 ac_cpp='$CPP $CPPFLAGS'
14988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14996 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14997 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14999 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
15001 for ac_func in sqrtf
15003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15004 echo "$as_me:$LINENO: checking for $ac_func" >&5
15005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15006 if eval "test \"\${$as_ac_var+set}\" = set"; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009 if test x$gcc_no_link = xyes; then
15010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15012 { (exit 1); exit 1; }; }
15014 cat >conftest.$ac_ext <<_ACEOF
15015 #line $LINENO "configure"
15016 /* confdefs.h. */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 /* System header to define __stub macros and hopefully few prototypes,
15022 which can conflict with char $ac_func (); below.
15023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15024 <limits.h> exists even on freestanding compilers. */
15025 #ifdef __STDC__
15026 # include <limits.h>
15027 #else
15028 # include <assert.h>
15029 #endif
15030 /* Override any gcc2 internal prototype to avoid an error. */
15031 #ifdef __cplusplus
15032 extern "C"
15034 #endif
15035 /* We use char because int might match the return type of a gcc2
15036 builtin and then its argument prototype would still apply. */
15037 char $ac_func ();
15038 /* The GNU C library defines this for functions which it implements
15039 to always fail with ENOSYS. Some functions are actually named
15040 something starting with __ and the normal name is an alias. */
15041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15042 choke me
15043 #else
15044 char (*f) () = $ac_func;
15045 #endif
15046 #ifdef __cplusplus
15048 #endif
15051 main ()
15053 return f != $ac_func;
15055 return 0;
15057 _ACEOF
15058 rm -f conftest.$ac_objext conftest$ac_exeext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15060 (eval $ac_link) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 eval "$as_ac_var=yes"
15071 else
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 eval "$as_ac_var=no"
15077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15081 if test `eval echo '${'$as_ac_var'}'` = yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15084 _ACEOF
15087 done
15089 else
15091 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
15092 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
15093 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15094 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15100 ac_ext=cc
15101 ac_cpp='$CXXCPP $CPPFLAGS'
15102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15106 cat >conftest.$ac_ext <<_ACEOF
15107 #line $LINENO "configure"
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <math.h>
15114 #ifdef HAVE_IEEEFP_H
15115 #include <ieeefp.h>
15116 #endif
15119 main ()
15121 _sqrtf(0);
15123 return 0;
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 glibcxx_cv_func__sqrtf_use=yes
15139 else
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 glibcxx_cv_func__sqrtf_use=no
15145 rm -f conftest.$ac_objext conftest.$ac_ext
15146 ac_ext=c
15147 ac_cpp='$CPP $CPPFLAGS'
15148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15156 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
15157 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
15159 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15161 for ac_func in _sqrtf
15163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15164 echo "$as_me:$LINENO: checking for $ac_func" >&5
15165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15166 if eval "test \"\${$as_ac_var+set}\" = set"; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169 if test x$gcc_no_link = xyes; then
15170 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15171 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15172 { (exit 1); exit 1; }; }
15174 cat >conftest.$ac_ext <<_ACEOF
15175 #line $LINENO "configure"
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 /* System header to define __stub macros and hopefully few prototypes,
15182 which can conflict with char $ac_func (); below.
15183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15184 <limits.h> exists even on freestanding compilers. */
15185 #ifdef __STDC__
15186 # include <limits.h>
15187 #else
15188 # include <assert.h>
15189 #endif
15190 /* Override any gcc2 internal prototype to avoid an error. */
15191 #ifdef __cplusplus
15192 extern "C"
15194 #endif
15195 /* We use char because int might match the return type of a gcc2
15196 builtin and then its argument prototype would still apply. */
15197 char $ac_func ();
15198 /* The GNU C library defines this for functions which it implements
15199 to always fail with ENOSYS. Some functions are actually named
15200 something starting with __ and the normal name is an alias. */
15201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15202 choke me
15203 #else
15204 char (*f) () = $ac_func;
15205 #endif
15206 #ifdef __cplusplus
15208 #endif
15211 main ()
15213 return f != $ac_func;
15215 return 0;
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 eval "$as_ac_var=yes"
15231 else
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 eval "$as_ac_var=no"
15237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15241 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15244 _ACEOF
15247 done
15254 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
15255 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
15256 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15257 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15263 ac_ext=cc
15264 ac_cpp='$CXXCPP $CPPFLAGS'
15265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15269 cat >conftest.$ac_ext <<_ACEOF
15270 #line $LINENO "configure"
15271 /* confdefs.h. */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 #include <math.h>
15278 main ()
15280 sincosf(0, 0, 0);
15282 return 0;
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -s conftest.$ac_objext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 glibcxx_cv_func_sincosf_use=yes
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 glibcxx_cv_func_sincosf_use=no
15304 rm -f conftest.$ac_objext conftest.$ac_ext
15305 ac_ext=c
15306 ac_cpp='$CPP $CPPFLAGS'
15307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15315 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15316 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15318 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15320 for ac_func in sincosf
15322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15323 echo "$as_me:$LINENO: checking for $ac_func" >&5
15324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15325 if eval "test \"\${$as_ac_var+set}\" = set"; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328 if test x$gcc_no_link = xyes; then
15329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15331 { (exit 1); exit 1; }; }
15333 cat >conftest.$ac_ext <<_ACEOF
15334 #line $LINENO "configure"
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 /* System header to define __stub macros and hopefully few prototypes,
15341 which can conflict with char $ac_func (); below.
15342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15343 <limits.h> exists even on freestanding compilers. */
15344 #ifdef __STDC__
15345 # include <limits.h>
15346 #else
15347 # include <assert.h>
15348 #endif
15349 /* Override any gcc2 internal prototype to avoid an error. */
15350 #ifdef __cplusplus
15351 extern "C"
15353 #endif
15354 /* We use char because int might match the return type of a gcc2
15355 builtin and then its argument prototype would still apply. */
15356 char $ac_func ();
15357 /* The GNU C library defines this for functions which it implements
15358 to always fail with ENOSYS. Some functions are actually named
15359 something starting with __ and the normal name is an alias. */
15360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15361 choke me
15362 #else
15363 char (*f) () = $ac_func;
15364 #endif
15365 #ifdef __cplusplus
15367 #endif
15370 main ()
15372 return f != $ac_func;
15374 return 0;
15376 _ACEOF
15377 rm -f conftest.$ac_objext conftest$ac_exeext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15379 (eval $ac_link) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -s conftest$ac_exeext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 eval "$as_ac_var=yes"
15390 else
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 eval "$as_ac_var=no"
15396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15400 if test `eval echo '${'$as_ac_var'}'` = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15403 _ACEOF
15406 done
15408 else
15410 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15411 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15412 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15413 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15419 ac_ext=cc
15420 ac_cpp='$CXXCPP $CPPFLAGS'
15421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15425 cat >conftest.$ac_ext <<_ACEOF
15426 #line $LINENO "configure"
15427 /* confdefs.h. */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 #include <math.h>
15434 main ()
15436 _sincosf(0, 0, 0);
15438 return 0;
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -s conftest.$ac_objext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 glibcxx_cv_func__sincosf_use=yes
15454 else
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 glibcxx_cv_func__sincosf_use=no
15460 rm -f conftest.$ac_objext conftest.$ac_ext
15461 ac_ext=c
15462 ac_cpp='$CPP $CPPFLAGS'
15463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15471 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15472 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15474 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15476 for ac_func in _sincosf
15478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15479 echo "$as_me:$LINENO: checking for $ac_func" >&5
15480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15481 if eval "test \"\${$as_ac_var+set}\" = set"; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484 if test x$gcc_no_link = xyes; then
15485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15487 { (exit 1); exit 1; }; }
15489 cat >conftest.$ac_ext <<_ACEOF
15490 #line $LINENO "configure"
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 /* System header to define __stub macros and hopefully few prototypes,
15497 which can conflict with char $ac_func (); below.
15498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15499 <limits.h> exists even on freestanding compilers. */
15500 #ifdef __STDC__
15501 # include <limits.h>
15502 #else
15503 # include <assert.h>
15504 #endif
15505 /* Override any gcc2 internal prototype to avoid an error. */
15506 #ifdef __cplusplus
15507 extern "C"
15509 #endif
15510 /* We use char because int might match the return type of a gcc2
15511 builtin and then its argument prototype would still apply. */
15512 char $ac_func ();
15513 /* The GNU C library defines this for functions which it implements
15514 to always fail with ENOSYS. Some functions are actually named
15515 something starting with __ and the normal name is an alias. */
15516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15517 choke me
15518 #else
15519 char (*f) () = $ac_func;
15520 #endif
15521 #ifdef __cplusplus
15523 #endif
15526 main ()
15528 return f != $ac_func;
15530 return 0;
15532 _ACEOF
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535 (eval $ac_link) 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -s conftest$ac_exeext'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15545 eval "$as_ac_var=yes"
15546 else
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 eval "$as_ac_var=no"
15552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15556 if test `eval echo '${'$as_ac_var'}'` = yes; then
15557 cat >>confdefs.h <<_ACEOF
15558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15559 _ACEOF
15562 done
15569 echo "$as_me:$LINENO: checking for finitef declaration" >&5
15570 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15571 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15572 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15578 ac_ext=cc
15579 ac_cpp='$CXXCPP $CPPFLAGS'
15580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15584 cat >conftest.$ac_ext <<_ACEOF
15585 #line $LINENO "configure"
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <math.h>
15592 #ifdef HAVE_IEEEFP_H
15593 #include <ieeefp.h>
15594 #endif
15597 main ()
15599 finitef(0);
15601 return 0;
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15606 (eval $ac_compile) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 glibcxx_cv_func_finitef_use=yes
15617 else
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 glibcxx_cv_func_finitef_use=no
15623 rm -f conftest.$ac_objext conftest.$ac_ext
15624 ac_ext=c
15625 ac_cpp='$CPP $CPPFLAGS'
15626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15634 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15635 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15637 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15639 for ac_func in finitef
15641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15642 echo "$as_me:$LINENO: checking for $ac_func" >&5
15643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15644 if eval "test \"\${$as_ac_var+set}\" = set"; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647 if test x$gcc_no_link = xyes; then
15648 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15649 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15650 { (exit 1); exit 1; }; }
15652 cat >conftest.$ac_ext <<_ACEOF
15653 #line $LINENO "configure"
15654 /* confdefs.h. */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 /* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func (); below.
15661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15662 <limits.h> exists even on freestanding compilers. */
15663 #ifdef __STDC__
15664 # include <limits.h>
15665 #else
15666 # include <assert.h>
15667 #endif
15668 /* Override any gcc2 internal prototype to avoid an error. */
15669 #ifdef __cplusplus
15670 extern "C"
15672 #endif
15673 /* We use char because int might match the return type of a gcc2
15674 builtin and then its argument prototype would still apply. */
15675 char $ac_func ();
15676 /* The GNU C library defines this for functions which it implements
15677 to always fail with ENOSYS. Some functions are actually named
15678 something starting with __ and the normal name is an alias. */
15679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15680 choke me
15681 #else
15682 char (*f) () = $ac_func;
15683 #endif
15684 #ifdef __cplusplus
15686 #endif
15689 main ()
15691 return f != $ac_func;
15693 return 0;
15695 _ACEOF
15696 rm -f conftest.$ac_objext conftest$ac_exeext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15698 (eval $ac_link) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -s conftest$ac_exeext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 eval "$as_ac_var=yes"
15709 else
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 eval "$as_ac_var=no"
15715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15719 if test `eval echo '${'$as_ac_var'}'` = yes; then
15720 cat >>confdefs.h <<_ACEOF
15721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15722 _ACEOF
15725 done
15727 else
15729 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15730 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15731 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15732 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15738 ac_ext=cc
15739 ac_cpp='$CXXCPP $CPPFLAGS'
15740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15744 cat >conftest.$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 /* confdefs.h. */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 #include <math.h>
15752 #ifdef HAVE_IEEEFP_H
15753 #include <ieeefp.h>
15754 #endif
15757 main ()
15759 _finitef(0);
15761 return 0;
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766 (eval $ac_compile) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 glibcxx_cv_func__finitef_use=yes
15777 else
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 glibcxx_cv_func__finitef_use=no
15783 rm -f conftest.$ac_objext conftest.$ac_ext
15784 ac_ext=c
15785 ac_cpp='$CPP $CPPFLAGS'
15786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15794 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15795 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15797 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15799 for ac_func in _finitef
15801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15802 echo "$as_me:$LINENO: checking for $ac_func" >&5
15803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15804 if eval "test \"\${$as_ac_var+set}\" = set"; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807 if test x$gcc_no_link = xyes; then
15808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15810 { (exit 1); exit 1; }; }
15812 cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15814 /* confdefs.h. */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 /* System header to define __stub macros and hopefully few prototypes,
15820 which can conflict with char $ac_func (); below.
15821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15822 <limits.h> exists even on freestanding compilers. */
15823 #ifdef __STDC__
15824 # include <limits.h>
15825 #else
15826 # include <assert.h>
15827 #endif
15828 /* Override any gcc2 internal prototype to avoid an error. */
15829 #ifdef __cplusplus
15830 extern "C"
15832 #endif
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15835 char $ac_func ();
15836 /* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
15839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15840 choke me
15841 #else
15842 char (*f) () = $ac_func;
15843 #endif
15844 #ifdef __cplusplus
15846 #endif
15849 main ()
15851 return f != $ac_func;
15853 return 0;
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -s conftest$ac_exeext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 eval "$as_ac_var=yes"
15869 else
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 eval "$as_ac_var=no"
15875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15879 if test `eval echo '${'$as_ac_var'}'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 _ACEOF
15885 done
15892 echo "$as_me:$LINENO: checking for long double trig functions" >&5
15893 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15894 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15900 ac_ext=cc
15901 ac_cpp='$CXXCPP $CPPFLAGS'
15902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15906 cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 /* confdefs.h. */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 #include <math.h>
15915 main ()
15917 `for x in acosl asinl atanl \
15918 cosl sinl tanl \
15919 coshl sinhl tanhl; do echo "$x (0);"; done`
15921 return 0;
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 glibcxx_cv_func_long_double_trig_use=yes
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 glibcxx_cv_func_long_double_trig_use=no
15943 rm -f conftest.$ac_objext conftest.$ac_ext
15944 ac_ext=c
15945 ac_cpp='$CPP $CPPFLAGS'
15946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15952 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15953 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15954 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15964 for ac_func in acosl asinl atanl \
15965 cosl sinl tanl \
15966 coshl sinhl tanhl
15968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15969 echo "$as_me:$LINENO: checking for $ac_func" >&5
15970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15971 if eval "test \"\${$as_ac_var+set}\" = set"; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974 if test x$gcc_no_link = xyes; then
15975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15977 { (exit 1); exit 1; }; }
15979 cat >conftest.$ac_ext <<_ACEOF
15980 #line $LINENO "configure"
15981 /* confdefs.h. */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 /* System header to define __stub macros and hopefully few prototypes,
15987 which can conflict with char $ac_func (); below.
15988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15989 <limits.h> exists even on freestanding compilers. */
15990 #ifdef __STDC__
15991 # include <limits.h>
15992 #else
15993 # include <assert.h>
15994 #endif
15995 /* Override any gcc2 internal prototype to avoid an error. */
15996 #ifdef __cplusplus
15997 extern "C"
15999 #endif
16000 /* We use char because int might match the return type of a gcc2
16001 builtin and then its argument prototype would still apply. */
16002 char $ac_func ();
16003 /* The GNU C library defines this for functions which it implements
16004 to always fail with ENOSYS. Some functions are actually named
16005 something starting with __ and the normal name is an alias. */
16006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16007 choke me
16008 #else
16009 char (*f) () = $ac_func;
16010 #endif
16011 #ifdef __cplusplus
16013 #endif
16016 main ()
16018 return f != $ac_func;
16020 return 0;
16022 _ACEOF
16023 rm -f conftest.$ac_objext conftest$ac_exeext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16025 (eval $ac_link) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -s conftest$ac_exeext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 eval "$as_ac_var=yes"
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 eval "$as_ac_var=no"
16042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16046 if test `eval echo '${'$as_ac_var'}'` = yes; then
16047 cat >>confdefs.h <<_ACEOF
16048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16049 _ACEOF
16052 done
16057 echo "$as_me:$LINENO: checking for long double round functions" >&5
16058 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
16059 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16065 ac_ext=cc
16066 ac_cpp='$CXXCPP $CPPFLAGS'
16067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16071 cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16073 /* confdefs.h. */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 #include <math.h>
16080 main ()
16082 `for x in ceill floorl; do echo "$x (0);"; done`
16084 return 0;
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -s conftest.$ac_objext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 glibcxx_cv_func_long_double_round_use=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 glibcxx_cv_func_long_double_round_use=no
16106 rm -f conftest.$ac_objext conftest.$ac_ext
16107 ac_ext=c
16108 ac_cpp='$CPP $CPPFLAGS'
16109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16115 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
16116 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
16117 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16120 for ac_func in ceill floorl
16122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16123 echo "$as_me:$LINENO: checking for $ac_func" >&5
16124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16125 if eval "test \"\${$as_ac_var+set}\" = set"; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128 if test x$gcc_no_link = xyes; then
16129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16131 { (exit 1); exit 1; }; }
16133 cat >conftest.$ac_ext <<_ACEOF
16134 #line $LINENO "configure"
16135 /* confdefs.h. */
16136 _ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h. */
16140 /* System header to define __stub macros and hopefully few prototypes,
16141 which can conflict with char $ac_func (); below.
16142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16143 <limits.h> exists even on freestanding compilers. */
16144 #ifdef __STDC__
16145 # include <limits.h>
16146 #else
16147 # include <assert.h>
16148 #endif
16149 /* Override any gcc2 internal prototype to avoid an error. */
16150 #ifdef __cplusplus
16151 extern "C"
16153 #endif
16154 /* We use char because int might match the return type of a gcc2
16155 builtin and then its argument prototype would still apply. */
16156 char $ac_func ();
16157 /* The GNU C library defines this for functions which it implements
16158 to always fail with ENOSYS. Some functions are actually named
16159 something starting with __ and the normal name is an alias. */
16160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16161 choke me
16162 #else
16163 char (*f) () = $ac_func;
16164 #endif
16165 #ifdef __cplusplus
16167 #endif
16170 main ()
16172 return f != $ac_func;
16174 return 0;
16176 _ACEOF
16177 rm -f conftest.$ac_objext conftest$ac_exeext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16179 (eval $ac_link) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -s conftest$ac_exeext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 eval "$as_ac_var=yes"
16190 else
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 eval "$as_ac_var=no"
16196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16200 if test `eval echo '${'$as_ac_var'}'` = yes; then
16201 cat >>confdefs.h <<_ACEOF
16202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16203 _ACEOF
16206 done
16212 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
16213 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
16214 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16215 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16221 ac_ext=cc
16222 ac_cpp='$CXXCPP $CPPFLAGS'
16223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16227 cat >conftest.$ac_ext <<_ACEOF
16228 #line $LINENO "configure"
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <math.h>
16235 #ifdef HAVE_IEEEFP_H
16236 #include <ieeefp.h>
16237 #endif
16240 main ()
16242 isnanl(0);
16244 return 0;
16246 _ACEOF
16247 rm -f conftest.$ac_objext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16249 (eval $ac_compile) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 glibcxx_cv_func_isnanl_use=yes
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 glibcxx_cv_func_isnanl_use=no
16266 rm -f conftest.$ac_objext conftest.$ac_ext
16267 ac_ext=c
16268 ac_cpp='$CPP $CPPFLAGS'
16269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
16278 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
16280 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16282 for ac_func in isnanl
16284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16285 echo "$as_me:$LINENO: checking for $ac_func" >&5
16286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16287 if eval "test \"\${$as_ac_var+set}\" = set"; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290 if test x$gcc_no_link = xyes; then
16291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16293 { (exit 1); exit 1; }; }
16295 cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16297 /* confdefs.h. */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 /* System header to define __stub macros and hopefully few prototypes,
16303 which can conflict with char $ac_func (); below.
16304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305 <limits.h> exists even on freestanding compilers. */
16306 #ifdef __STDC__
16307 # include <limits.h>
16308 #else
16309 # include <assert.h>
16310 #endif
16311 /* Override any gcc2 internal prototype to avoid an error. */
16312 #ifdef __cplusplus
16313 extern "C"
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16318 char $ac_func ();
16319 /* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16323 choke me
16324 #else
16325 char (*f) () = $ac_func;
16326 #endif
16327 #ifdef __cplusplus
16329 #endif
16332 main ()
16334 return f != $ac_func;
16336 return 0;
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 eval "$as_ac_var=yes"
16352 else
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 eval "$as_ac_var=no"
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16362 if test `eval echo '${'$as_ac_var'}'` = yes; then
16363 cat >>confdefs.h <<_ACEOF
16364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16365 _ACEOF
16368 done
16370 else
16372 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16373 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16374 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16375 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16381 ac_ext=cc
16382 ac_cpp='$CXXCPP $CPPFLAGS'
16383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16387 cat >conftest.$ac_ext <<_ACEOF
16388 #line $LINENO "configure"
16389 /* confdefs.h. */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 #include <math.h>
16395 #ifdef HAVE_IEEEFP_H
16396 #include <ieeefp.h>
16397 #endif
16400 main ()
16402 _isnanl(0);
16404 return 0;
16406 _ACEOF
16407 rm -f conftest.$ac_objext
16408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16409 (eval $ac_compile) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
16413 { ac_try='test -s conftest.$ac_objext'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 glibcxx_cv_func__isnanl_use=yes
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 glibcxx_cv_func__isnanl_use=no
16426 rm -f conftest.$ac_objext conftest.$ac_ext
16427 ac_ext=c
16428 ac_cpp='$CPP $CPPFLAGS'
16429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16437 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16438 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16440 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16442 for ac_func in _isnanl
16444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16445 echo "$as_me:$LINENO: checking for $ac_func" >&5
16446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16447 if eval "test \"\${$as_ac_var+set}\" = set"; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450 if test x$gcc_no_link = xyes; then
16451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16453 { (exit 1); exit 1; }; }
16455 cat >conftest.$ac_ext <<_ACEOF
16456 #line $LINENO "configure"
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 /* System header to define __stub macros and hopefully few prototypes,
16463 which can conflict with char $ac_func (); below.
16464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16465 <limits.h> exists even on freestanding compilers. */
16466 #ifdef __STDC__
16467 # include <limits.h>
16468 #else
16469 # include <assert.h>
16470 #endif
16471 /* Override any gcc2 internal prototype to avoid an error. */
16472 #ifdef __cplusplus
16473 extern "C"
16475 #endif
16476 /* We use char because int might match the return type of a gcc2
16477 builtin and then its argument prototype would still apply. */
16478 char $ac_func ();
16479 /* The GNU C library defines this for functions which it implements
16480 to always fail with ENOSYS. Some functions are actually named
16481 something starting with __ and the normal name is an alias. */
16482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16483 choke me
16484 #else
16485 char (*f) () = $ac_func;
16486 #endif
16487 #ifdef __cplusplus
16489 #endif
16492 main ()
16494 return f != $ac_func;
16496 return 0;
16498 _ACEOF
16499 rm -f conftest.$ac_objext conftest$ac_exeext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16501 (eval $ac_link) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 eval "$as_ac_var=yes"
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 eval "$as_ac_var=no"
16518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16522 if test `eval echo '${'$as_ac_var'}'` = yes; then
16523 cat >>confdefs.h <<_ACEOF
16524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16525 _ACEOF
16528 done
16535 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16536 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16537 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16538 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16544 ac_ext=cc
16545 ac_cpp='$CXXCPP $CPPFLAGS'
16546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 /* confdefs.h. */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 #include <math.h>
16558 #ifdef HAVE_IEEEFP_H
16559 #include <ieeefp.h>
16560 #endif
16563 main ()
16565 isinfl(0);
16567 return 0;
16569 _ACEOF
16570 rm -f conftest.$ac_objext
16571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16572 (eval $ac_compile) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 glibcxx_cv_func_isinfl_use=yes
16583 else
16584 echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16587 glibcxx_cv_func_isinfl_use=no
16589 rm -f conftest.$ac_objext conftest.$ac_ext
16590 ac_ext=c
16591 ac_cpp='$CPP $CPPFLAGS'
16592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16600 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16601 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16603 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16605 for ac_func in isinfl
16607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16608 echo "$as_me:$LINENO: checking for $ac_func" >&5
16609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16610 if eval "test \"\${$as_ac_var+set}\" = set"; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613 if test x$gcc_no_link = xyes; then
16614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16616 { (exit 1); exit 1; }; }
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 /* System header to define __stub macros and hopefully few prototypes,
16626 which can conflict with char $ac_func (); below.
16627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16628 <limits.h> exists even on freestanding compilers. */
16629 #ifdef __STDC__
16630 # include <limits.h>
16631 #else
16632 # include <assert.h>
16633 #endif
16634 /* Override any gcc2 internal prototype to avoid an error. */
16635 #ifdef __cplusplus
16636 extern "C"
16638 #endif
16639 /* We use char because int might match the return type of a gcc2
16640 builtin and then its argument prototype would still apply. */
16641 char $ac_func ();
16642 /* The GNU C library defines this for functions which it implements
16643 to always fail with ENOSYS. Some functions are actually named
16644 something starting with __ and the normal name is an alias. */
16645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16646 choke me
16647 #else
16648 char (*f) () = $ac_func;
16649 #endif
16650 #ifdef __cplusplus
16652 #endif
16655 main ()
16657 return f != $ac_func;
16659 return 0;
16661 _ACEOF
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -s conftest$ac_exeext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 eval "$as_ac_var=yes"
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 eval "$as_ac_var=no"
16681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16685 if test `eval echo '${'$as_ac_var'}'` = yes; then
16686 cat >>confdefs.h <<_ACEOF
16687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16688 _ACEOF
16691 done
16693 else
16695 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16696 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16697 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16698 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16704 ac_ext=cc
16705 ac_cpp='$CXXCPP $CPPFLAGS'
16706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16710 cat >conftest.$ac_ext <<_ACEOF
16711 #line $LINENO "configure"
16712 /* confdefs.h. */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 #include <math.h>
16718 #ifdef HAVE_IEEEFP_H
16719 #include <ieeefp.h>
16720 #endif
16723 main ()
16725 _isinfl(0);
16727 return 0;
16729 _ACEOF
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 glibcxx_cv_func__isinfl_use=yes
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 glibcxx_cv_func__isinfl_use=no
16749 rm -f conftest.$ac_objext conftest.$ac_ext
16750 ac_ext=c
16751 ac_cpp='$CPP $CPPFLAGS'
16752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16760 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16761 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16763 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16765 for ac_func in _isinfl
16767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16770 if eval "test \"\${$as_ac_var+set}\" = set"; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773 if test x$gcc_no_link = xyes; then
16774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16775 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16776 { (exit 1); exit 1; }; }
16778 cat >conftest.$ac_ext <<_ACEOF
16779 #line $LINENO "configure"
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 /* System header to define __stub macros and hopefully few prototypes,
16786 which can conflict with char $ac_func (); below.
16787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16788 <limits.h> exists even on freestanding compilers. */
16789 #ifdef __STDC__
16790 # include <limits.h>
16791 #else
16792 # include <assert.h>
16793 #endif
16794 /* Override any gcc2 internal prototype to avoid an error. */
16795 #ifdef __cplusplus
16796 extern "C"
16798 #endif
16799 /* We use char because int might match the return type of a gcc2
16800 builtin and then its argument prototype would still apply. */
16801 char $ac_func ();
16802 /* The GNU C library defines this for functions which it implements
16803 to always fail with ENOSYS. Some functions are actually named
16804 something starting with __ and the normal name is an alias. */
16805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16806 choke me
16807 #else
16808 char (*f) () = $ac_func;
16809 #endif
16810 #ifdef __cplusplus
16812 #endif
16815 main ()
16817 return f != $ac_func;
16819 return 0;
16821 _ACEOF
16822 rm -f conftest.$ac_objext conftest$ac_exeext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16824 (eval $ac_link) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -s conftest$ac_exeext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 eval "$as_ac_var=yes"
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 eval "$as_ac_var=no"
16841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16845 if test `eval echo '${'$as_ac_var'}'` = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16848 _ACEOF
16851 done
16858 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16859 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16860 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16861 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16867 ac_ext=cc
16868 ac_cpp='$CXXCPP $CPPFLAGS'
16869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16873 cat >conftest.$ac_ext <<_ACEOF
16874 #line $LINENO "configure"
16875 /* confdefs.h. */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h. */
16880 #include <math.h>
16882 main ()
16884 copysignl(0, 0);
16886 return 0;
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891 (eval $ac_compile) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -s conftest.$ac_objext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 glibcxx_cv_func_copysignl_use=yes
16902 else
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 glibcxx_cv_func_copysignl_use=no
16908 rm -f conftest.$ac_objext conftest.$ac_ext
16909 ac_ext=c
16910 ac_cpp='$CPP $CPPFLAGS'
16911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16919 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16920 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16922 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16924 for ac_func in copysignl
16926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16927 echo "$as_me:$LINENO: checking for $ac_func" >&5
16928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16929 if eval "test \"\${$as_ac_var+set}\" = set"; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 else
16932 if test x$gcc_no_link = xyes; then
16933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16935 { (exit 1); exit 1; }; }
16937 cat >conftest.$ac_ext <<_ACEOF
16938 #line $LINENO "configure"
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 /* System header to define __stub macros and hopefully few prototypes,
16945 which can conflict with char $ac_func (); below.
16946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16947 <limits.h> exists even on freestanding compilers. */
16948 #ifdef __STDC__
16949 # include <limits.h>
16950 #else
16951 # include <assert.h>
16952 #endif
16953 /* Override any gcc2 internal prototype to avoid an error. */
16954 #ifdef __cplusplus
16955 extern "C"
16957 #endif
16958 /* We use char because int might match the return type of a gcc2
16959 builtin and then its argument prototype would still apply. */
16960 char $ac_func ();
16961 /* The GNU C library defines this for functions which it implements
16962 to always fail with ENOSYS. Some functions are actually named
16963 something starting with __ and the normal name is an alias. */
16964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16965 choke me
16966 #else
16967 char (*f) () = $ac_func;
16968 #endif
16969 #ifdef __cplusplus
16971 #endif
16974 main ()
16976 return f != $ac_func;
16978 return 0;
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983 (eval $ac_link) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -s conftest$ac_exeext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 eval "$as_ac_var=yes"
16994 else
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 eval "$as_ac_var=no"
17000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17004 if test `eval echo '${'$as_ac_var'}'` = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17007 _ACEOF
17010 done
17012 else
17014 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
17015 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
17016 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
17017 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17023 ac_ext=cc
17024 ac_cpp='$CXXCPP $CPPFLAGS'
17025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17029 cat >conftest.$ac_ext <<_ACEOF
17030 #line $LINENO "configure"
17031 /* confdefs.h. */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17036 #include <math.h>
17038 main ()
17040 _copysignl(0, 0);
17042 return 0;
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17047 (eval $ac_compile) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -s conftest.$ac_objext'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 glibcxx_cv_func__copysignl_use=yes
17058 else
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 glibcxx_cv_func__copysignl_use=no
17064 rm -f conftest.$ac_objext conftest.$ac_ext
17065 ac_ext=c
17066 ac_cpp='$CPP $CPPFLAGS'
17067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17075 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
17076 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
17078 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
17080 for ac_func in _copysignl
17082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17083 echo "$as_me:$LINENO: checking for $ac_func" >&5
17084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_var+set}\" = set"; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088 if test x$gcc_no_link = xyes; then
17089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17091 { (exit 1); exit 1; }; }
17093 cat >conftest.$ac_ext <<_ACEOF
17094 #line $LINENO "configure"
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 /* System header to define __stub macros and hopefully few prototypes,
17101 which can conflict with char $ac_func (); below.
17102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17103 <limits.h> exists even on freestanding compilers. */
17104 #ifdef __STDC__
17105 # include <limits.h>
17106 #else
17107 # include <assert.h>
17108 #endif
17109 /* Override any gcc2 internal prototype to avoid an error. */
17110 #ifdef __cplusplus
17111 extern "C"
17113 #endif
17114 /* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17116 char $ac_func ();
17117 /* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17121 choke me
17122 #else
17123 char (*f) () = $ac_func;
17124 #endif
17125 #ifdef __cplusplus
17127 #endif
17130 main ()
17132 return f != $ac_func;
17134 return 0;
17136 _ACEOF
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -s conftest$ac_exeext'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 eval "$as_ac_var=yes"
17150 else
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17154 eval "$as_ac_var=no"
17156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17160 if test `eval echo '${'$as_ac_var'}'` = yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17163 _ACEOF
17166 done
17173 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
17174 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
17175 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
17176 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17182 ac_ext=cc
17183 ac_cpp='$CXXCPP $CPPFLAGS'
17184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17188 cat >conftest.$ac_ext <<_ACEOF
17189 #line $LINENO "configure"
17190 /* confdefs.h. */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <math.h>
17197 main ()
17199 atan2l(0, 0);
17201 return 0;
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 glibcxx_cv_func_atan2l_use=yes
17217 else
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 glibcxx_cv_func_atan2l_use=no
17223 rm -f conftest.$ac_objext conftest.$ac_ext
17224 ac_ext=c
17225 ac_cpp='$CPP $CPPFLAGS'
17226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17234 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
17235 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
17237 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17239 for ac_func in atan2l
17241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17242 echo "$as_me:$LINENO: checking for $ac_func" >&5
17243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17244 if eval "test \"\${$as_ac_var+set}\" = set"; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247 if test x$gcc_no_link = xyes; then
17248 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17249 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17250 { (exit 1); exit 1; }; }
17252 cat >conftest.$ac_ext <<_ACEOF
17253 #line $LINENO "configure"
17254 /* confdefs.h. */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 /* System header to define __stub macros and hopefully few prototypes,
17260 which can conflict with char $ac_func (); below.
17261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17262 <limits.h> exists even on freestanding compilers. */
17263 #ifdef __STDC__
17264 # include <limits.h>
17265 #else
17266 # include <assert.h>
17267 #endif
17268 /* Override any gcc2 internal prototype to avoid an error. */
17269 #ifdef __cplusplus
17270 extern "C"
17272 #endif
17273 /* We use char because int might match the return type of a gcc2
17274 builtin and then its argument prototype would still apply. */
17275 char $ac_func ();
17276 /* The GNU C library defines this for functions which it implements
17277 to always fail with ENOSYS. Some functions are actually named
17278 something starting with __ and the normal name is an alias. */
17279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17280 choke me
17281 #else
17282 char (*f) () = $ac_func;
17283 #endif
17284 #ifdef __cplusplus
17286 #endif
17289 main ()
17291 return f != $ac_func;
17293 return 0;
17295 _ACEOF
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -s conftest$ac_exeext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 eval "$as_ac_var=yes"
17309 else
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17313 eval "$as_ac_var=no"
17315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322 _ACEOF
17325 done
17327 else
17329 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
17330 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
17331 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17332 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17338 ac_ext=cc
17339 ac_cpp='$CXXCPP $CPPFLAGS'
17340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 #include <math.h>
17353 main ()
17355 _atan2l(0, 0);
17357 return 0;
17359 _ACEOF
17360 rm -f conftest.$ac_objext
17361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17362 (eval $ac_compile) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 glibcxx_cv_func__atan2l_use=yes
17373 else
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17377 glibcxx_cv_func__atan2l_use=no
17379 rm -f conftest.$ac_objext conftest.$ac_ext
17380 ac_ext=c
17381 ac_cpp='$CPP $CPPFLAGS'
17382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17390 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17391 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17393 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17395 for ac_func in _atan2l
17397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17398 echo "$as_me:$LINENO: checking for $ac_func" >&5
17399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17400 if eval "test \"\${$as_ac_var+set}\" = set"; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403 if test x$gcc_no_link = xyes; then
17404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17406 { (exit 1); exit 1; }; }
17408 cat >conftest.$ac_ext <<_ACEOF
17409 #line $LINENO "configure"
17410 /* confdefs.h. */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 /* System header to define __stub macros and hopefully few prototypes,
17416 which can conflict with char $ac_func (); below.
17417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17418 <limits.h> exists even on freestanding compilers. */
17419 #ifdef __STDC__
17420 # include <limits.h>
17421 #else
17422 # include <assert.h>
17423 #endif
17424 /* Override any gcc2 internal prototype to avoid an error. */
17425 #ifdef __cplusplus
17426 extern "C"
17428 #endif
17429 /* We use char because int might match the return type of a gcc2
17430 builtin and then its argument prototype would still apply. */
17431 char $ac_func ();
17432 /* The GNU C library defines this for functions which it implements
17433 to always fail with ENOSYS. Some functions are actually named
17434 something starting with __ and the normal name is an alias. */
17435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17436 choke me
17437 #else
17438 char (*f) () = $ac_func;
17439 #endif
17440 #ifdef __cplusplus
17442 #endif
17445 main ()
17447 return f != $ac_func;
17449 return 0;
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454 (eval $ac_link) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17465 else
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 eval "$as_ac_var=no"
17471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17475 if test `eval echo '${'$as_ac_var'}'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17478 _ACEOF
17481 done
17488 echo "$as_me:$LINENO: checking for expl declaration" >&5
17489 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17490 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17491 if test "${glibcxx_cv_func_expl_use+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17497 ac_ext=cc
17498 ac_cpp='$CXXCPP $CPPFLAGS'
17499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17503 cat >conftest.$ac_ext <<_ACEOF
17504 #line $LINENO "configure"
17505 /* confdefs.h. */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17510 #include <math.h>
17511 #ifdef HAVE_IEEEFP_H
17512 #include <ieeefp.h>
17513 #endif
17516 main ()
17518 expl(0);
17520 return 0;
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try='test -s conftest.$ac_objext'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; }; then
17535 glibcxx_cv_func_expl_use=yes
17536 else
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 glibcxx_cv_func_expl_use=no
17542 rm -f conftest.$ac_objext conftest.$ac_ext
17543 ac_ext=c
17544 ac_cpp='$CPP $CPPFLAGS'
17545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17553 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17554 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17556 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17558 for ac_func in expl
17560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 echo "$as_me:$LINENO: checking for $ac_func" >&5
17562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17563 if eval "test \"\${$as_ac_var+set}\" = set"; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566 if test x$gcc_no_link = xyes; then
17567 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17568 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17569 { (exit 1); exit 1; }; }
17571 cat >conftest.$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17573 /* confdefs.h. */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 /* System header to define __stub macros and hopefully few prototypes,
17579 which can conflict with char $ac_func (); below.
17580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17581 <limits.h> exists even on freestanding compilers. */
17582 #ifdef __STDC__
17583 # include <limits.h>
17584 #else
17585 # include <assert.h>
17586 #endif
17587 /* Override any gcc2 internal prototype to avoid an error. */
17588 #ifdef __cplusplus
17589 extern "C"
17591 #endif
17592 /* We use char because int might match the return type of a gcc2
17593 builtin and then its argument prototype would still apply. */
17594 char $ac_func ();
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17599 choke me
17600 #else
17601 char (*f) () = $ac_func;
17602 #endif
17603 #ifdef __cplusplus
17605 #endif
17608 main ()
17610 return f != $ac_func;
17612 return 0;
17614 _ACEOF
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17617 (eval $ac_link) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -s conftest$ac_exeext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 eval "$as_ac_var=yes"
17628 else
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 eval "$as_ac_var=no"
17634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17638 if test `eval echo '${'$as_ac_var'}'` = yes; then
17639 cat >>confdefs.h <<_ACEOF
17640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17641 _ACEOF
17644 done
17646 else
17648 echo "$as_me:$LINENO: checking for _expl declaration" >&5
17649 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17650 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17651 if test "${glibcxx_cv_func__expl_use+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17657 ac_ext=cc
17658 ac_cpp='$CXXCPP $CPPFLAGS'
17659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17663 cat >conftest.$ac_ext <<_ACEOF
17664 #line $LINENO "configure"
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <math.h>
17671 #ifdef HAVE_IEEEFP_H
17672 #include <ieeefp.h>
17673 #endif
17676 main ()
17678 _expl(0);
17680 return 0;
17682 _ACEOF
17683 rm -f conftest.$ac_objext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
17689 { ac_try='test -s conftest.$ac_objext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 glibcxx_cv_func__expl_use=yes
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 glibcxx_cv_func__expl_use=no
17702 rm -f conftest.$ac_objext conftest.$ac_ext
17703 ac_ext=c
17704 ac_cpp='$CPP $CPPFLAGS'
17705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17713 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17714 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17716 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17718 for ac_func in _expl
17720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17721 echo "$as_me:$LINENO: checking for $ac_func" >&5
17722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17723 if eval "test \"\${$as_ac_var+set}\" = set"; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726 if test x$gcc_no_link = xyes; then
17727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17729 { (exit 1); exit 1; }; }
17731 cat >conftest.$ac_ext <<_ACEOF
17732 #line $LINENO "configure"
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 /* System header to define __stub macros and hopefully few prototypes,
17739 which can conflict with char $ac_func (); below.
17740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17741 <limits.h> exists even on freestanding compilers. */
17742 #ifdef __STDC__
17743 # include <limits.h>
17744 #else
17745 # include <assert.h>
17746 #endif
17747 /* Override any gcc2 internal prototype to avoid an error. */
17748 #ifdef __cplusplus
17749 extern "C"
17751 #endif
17752 /* We use char because int might match the return type of a gcc2
17753 builtin and then its argument prototype would still apply. */
17754 char $ac_func ();
17755 /* The GNU C library defines this for functions which it implements
17756 to always fail with ENOSYS. Some functions are actually named
17757 something starting with __ and the normal name is an alias. */
17758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17759 choke me
17760 #else
17761 char (*f) () = $ac_func;
17762 #endif
17763 #ifdef __cplusplus
17765 #endif
17768 main ()
17770 return f != $ac_func;
17772 return 0;
17774 _ACEOF
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777 (eval $ac_link) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -s conftest$ac_exeext'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 eval "$as_ac_var=yes"
17788 else
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 eval "$as_ac_var=no"
17794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17798 if test `eval echo '${'$as_ac_var'}'` = yes; then
17799 cat >>confdefs.h <<_ACEOF
17800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17801 _ACEOF
17804 done
17811 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17812 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17813 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17814 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17820 ac_ext=cc
17821 ac_cpp='$CXXCPP $CPPFLAGS'
17822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17826 cat >conftest.$ac_ext <<_ACEOF
17827 #line $LINENO "configure"
17828 /* confdefs.h. */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #include <math.h>
17834 #ifdef HAVE_IEEEFP_H
17835 #include <ieeefp.h>
17836 #endif
17839 main ()
17841 fabsl(0);
17843 return 0;
17845 _ACEOF
17846 rm -f conftest.$ac_objext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -s conftest.$ac_objext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 glibcxx_cv_func_fabsl_use=yes
17859 else
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 glibcxx_cv_func_fabsl_use=no
17865 rm -f conftest.$ac_objext conftest.$ac_ext
17866 ac_ext=c
17867 ac_cpp='$CPP $CPPFLAGS'
17868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17876 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17877 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17879 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17881 for ac_func in fabsl
17883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17884 echo "$as_me:$LINENO: checking for $ac_func" >&5
17885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17886 if eval "test \"\${$as_ac_var+set}\" = set"; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 else
17889 if test x$gcc_no_link = xyes; then
17890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17892 { (exit 1); exit 1; }; }
17894 cat >conftest.$ac_ext <<_ACEOF
17895 #line $LINENO "configure"
17896 /* confdefs.h. */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 /* System header to define __stub macros and hopefully few prototypes,
17902 which can conflict with char $ac_func (); below.
17903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17904 <limits.h> exists even on freestanding compilers. */
17905 #ifdef __STDC__
17906 # include <limits.h>
17907 #else
17908 # include <assert.h>
17909 #endif
17910 /* Override any gcc2 internal prototype to avoid an error. */
17911 #ifdef __cplusplus
17912 extern "C"
17914 #endif
17915 /* We use char because int might match the return type of a gcc2
17916 builtin and then its argument prototype would still apply. */
17917 char $ac_func ();
17918 /* The GNU C library defines this for functions which it implements
17919 to always fail with ENOSYS. Some functions are actually named
17920 something starting with __ and the normal name is an alias. */
17921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17922 choke me
17923 #else
17924 char (*f) () = $ac_func;
17925 #endif
17926 #ifdef __cplusplus
17928 #endif
17931 main ()
17933 return f != $ac_func;
17935 return 0;
17937 _ACEOF
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17940 (eval $ac_link) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try='test -s conftest$ac_exeext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 eval "$as_ac_var=yes"
17951 else
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 eval "$as_ac_var=no"
17957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17961 if test `eval echo '${'$as_ac_var'}'` = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17964 _ACEOF
17967 done
17969 else
17971 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17972 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17973 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17974 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17980 ac_ext=cc
17981 ac_cpp='$CXXCPP $CPPFLAGS'
17982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17986 cat >conftest.$ac_ext <<_ACEOF
17987 #line $LINENO "configure"
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 #include <math.h>
17994 #ifdef HAVE_IEEEFP_H
17995 #include <ieeefp.h>
17996 #endif
17999 main ()
18001 _fabsl(0);
18003 return 0;
18005 _ACEOF
18006 rm -f conftest.$ac_objext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18008 (eval $ac_compile) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -s conftest.$ac_objext'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 glibcxx_cv_func__fabsl_use=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 glibcxx_cv_func__fabsl_use=no
18025 rm -f conftest.$ac_objext conftest.$ac_ext
18026 ac_ext=c
18027 ac_cpp='$CPP $CPPFLAGS'
18028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18036 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
18037 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
18039 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
18041 for ac_func in _fabsl
18043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044 echo "$as_me:$LINENO: checking for $ac_func" >&5
18045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18046 if eval "test \"\${$as_ac_var+set}\" = set"; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049 if test x$gcc_no_link = xyes; then
18050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18052 { (exit 1); exit 1; }; }
18054 cat >conftest.$ac_ext <<_ACEOF
18055 #line $LINENO "configure"
18056 /* confdefs.h. */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 /* System header to define __stub macros and hopefully few prototypes,
18062 which can conflict with char $ac_func (); below.
18063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18064 <limits.h> exists even on freestanding compilers. */
18065 #ifdef __STDC__
18066 # include <limits.h>
18067 #else
18068 # include <assert.h>
18069 #endif
18070 /* Override any gcc2 internal prototype to avoid an error. */
18071 #ifdef __cplusplus
18072 extern "C"
18074 #endif
18075 /* We use char because int might match the return type of a gcc2
18076 builtin and then its argument prototype would still apply. */
18077 char $ac_func ();
18078 /* The GNU C library defines this for functions which it implements
18079 to always fail with ENOSYS. Some functions are actually named
18080 something starting with __ and the normal name is an alias. */
18081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18082 choke me
18083 #else
18084 char (*f) () = $ac_func;
18085 #endif
18086 #ifdef __cplusplus
18088 #endif
18091 main ()
18093 return f != $ac_func;
18095 return 0;
18097 _ACEOF
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18100 (eval $ac_link) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -s conftest$ac_exeext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 eval "$as_ac_var=yes"
18111 else
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 eval "$as_ac_var=no"
18117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18121 if test `eval echo '${'$as_ac_var'}'` = yes; then
18122 cat >>confdefs.h <<_ACEOF
18123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18124 _ACEOF
18127 done
18134 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
18135 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
18136 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
18137 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18143 ac_ext=cc
18144 ac_cpp='$CXXCPP $CPPFLAGS'
18145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18149 cat >conftest.$ac_ext <<_ACEOF
18150 #line $LINENO "configure"
18151 /* confdefs.h. */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <math.h>
18158 main ()
18160 fmodl(0, 0);
18162 return 0;
18164 _ACEOF
18165 rm -f conftest.$ac_objext
18166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18167 (eval $ac_compile) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -s conftest.$ac_objext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 glibcxx_cv_func_fmodl_use=yes
18178 else
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 glibcxx_cv_func_fmodl_use=no
18184 rm -f conftest.$ac_objext conftest.$ac_ext
18185 ac_ext=c
18186 ac_cpp='$CPP $CPPFLAGS'
18187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18195 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
18196 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
18198 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
18200 for ac_func in fmodl
18202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18203 echo "$as_me:$LINENO: checking for $ac_func" >&5
18204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18205 if eval "test \"\${$as_ac_var+set}\" = set"; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208 if test x$gcc_no_link = xyes; then
18209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18211 { (exit 1); exit 1; }; }
18213 cat >conftest.$ac_ext <<_ACEOF
18214 #line $LINENO "configure"
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* System header to define __stub macros and hopefully few prototypes,
18221 which can conflict with char $ac_func (); below.
18222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18223 <limits.h> exists even on freestanding compilers. */
18224 #ifdef __STDC__
18225 # include <limits.h>
18226 #else
18227 # include <assert.h>
18228 #endif
18229 /* Override any gcc2 internal prototype to avoid an error. */
18230 #ifdef __cplusplus
18231 extern "C"
18233 #endif
18234 /* We use char because int might match the return type of a gcc2
18235 builtin and then its argument prototype would still apply. */
18236 char $ac_func ();
18237 /* The GNU C library defines this for functions which it implements
18238 to always fail with ENOSYS. Some functions are actually named
18239 something starting with __ and the normal name is an alias. */
18240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18241 choke me
18242 #else
18243 char (*f) () = $ac_func;
18244 #endif
18245 #ifdef __cplusplus
18247 #endif
18250 main ()
18252 return f != $ac_func;
18254 return 0;
18256 _ACEOF
18257 rm -f conftest.$ac_objext conftest$ac_exeext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18259 (eval $ac_link) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -s conftest$ac_exeext'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 eval "$as_ac_var=yes"
18270 else
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18274 eval "$as_ac_var=no"
18276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283 _ACEOF
18286 done
18288 else
18290 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
18291 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
18292 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
18293 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18299 ac_ext=cc
18300 ac_cpp='$CXXCPP $CPPFLAGS'
18301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18305 cat >conftest.$ac_ext <<_ACEOF
18306 #line $LINENO "configure"
18307 /* confdefs.h. */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312 #include <math.h>
18314 main ()
18316 _fmodl(0, 0);
18318 return 0;
18320 _ACEOF
18321 rm -f conftest.$ac_objext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18323 (eval $ac_compile) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -s conftest.$ac_objext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 glibcxx_cv_func__fmodl_use=yes
18334 else
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 glibcxx_cv_func__fmodl_use=no
18340 rm -f conftest.$ac_objext conftest.$ac_ext
18341 ac_ext=c
18342 ac_cpp='$CPP $CPPFLAGS'
18343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18351 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
18352 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
18354 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
18356 for ac_func in _fmodl
18358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18359 echo "$as_me:$LINENO: checking for $ac_func" >&5
18360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18361 if eval "test \"\${$as_ac_var+set}\" = set"; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 else
18364 if test x$gcc_no_link = xyes; then
18365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18367 { (exit 1); exit 1; }; }
18369 cat >conftest.$ac_ext <<_ACEOF
18370 #line $LINENO "configure"
18371 /* confdefs.h. */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 /* System header to define __stub macros and hopefully few prototypes,
18377 which can conflict with char $ac_func (); below.
18378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18379 <limits.h> exists even on freestanding compilers. */
18380 #ifdef __STDC__
18381 # include <limits.h>
18382 #else
18383 # include <assert.h>
18384 #endif
18385 /* Override any gcc2 internal prototype to avoid an error. */
18386 #ifdef __cplusplus
18387 extern "C"
18389 #endif
18390 /* We use char because int might match the return type of a gcc2
18391 builtin and then its argument prototype would still apply. */
18392 char $ac_func ();
18393 /* The GNU C library defines this for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18397 choke me
18398 #else
18399 char (*f) () = $ac_func;
18400 #endif
18401 #ifdef __cplusplus
18403 #endif
18406 main ()
18408 return f != $ac_func;
18410 return 0;
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415 (eval $ac_link) 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -s conftest$ac_exeext'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 eval "$as_ac_var=yes"
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 eval "$as_ac_var=no"
18432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18436 if test `eval echo '${'$as_ac_var'}'` = yes; then
18437 cat >>confdefs.h <<_ACEOF
18438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18439 _ACEOF
18442 done
18449 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18450 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18451 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18452 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18458 ac_ext=cc
18459 ac_cpp='$CXXCPP $CPPFLAGS'
18460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18464 cat >conftest.$ac_ext <<_ACEOF
18465 #line $LINENO "configure"
18466 /* confdefs.h. */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18471 #include <math.h>
18473 main ()
18475 frexpl(0, 0);
18477 return 0;
18479 _ACEOF
18480 rm -f conftest.$ac_objext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18482 (eval $ac_compile) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -s conftest.$ac_objext'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 glibcxx_cv_func_frexpl_use=yes
18493 else
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 glibcxx_cv_func_frexpl_use=no
18499 rm -f conftest.$ac_objext conftest.$ac_ext
18500 ac_ext=c
18501 ac_cpp='$CPP $CPPFLAGS'
18502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18510 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18511 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18513 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18515 for ac_func in frexpl
18517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518 echo "$as_me:$LINENO: checking for $ac_func" >&5
18519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18520 if eval "test \"\${$as_ac_var+set}\" = set"; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523 if test x$gcc_no_link = xyes; then
18524 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18525 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18526 { (exit 1); exit 1; }; }
18528 cat >conftest.$ac_ext <<_ACEOF
18529 #line $LINENO "configure"
18530 /* confdefs.h. */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 /* System header to define __stub macros and hopefully few prototypes,
18536 which can conflict with char $ac_func (); below.
18537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18538 <limits.h> exists even on freestanding compilers. */
18539 #ifdef __STDC__
18540 # include <limits.h>
18541 #else
18542 # include <assert.h>
18543 #endif
18544 /* Override any gcc2 internal prototype to avoid an error. */
18545 #ifdef __cplusplus
18546 extern "C"
18548 #endif
18549 /* We use char because int might match the return type of a gcc2
18550 builtin and then its argument prototype would still apply. */
18551 char $ac_func ();
18552 /* The GNU C library defines this for functions which it implements
18553 to always fail with ENOSYS. Some functions are actually named
18554 something starting with __ and the normal name is an alias. */
18555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18556 choke me
18557 #else
18558 char (*f) () = $ac_func;
18559 #endif
18560 #ifdef __cplusplus
18562 #endif
18565 main ()
18567 return f != $ac_func;
18569 return 0;
18571 _ACEOF
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18574 (eval $ac_link) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
18578 { ac_try='test -s conftest$ac_exeext'
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584 eval "$as_ac_var=yes"
18585 else
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 eval "$as_ac_var=no"
18591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18595 if test `eval echo '${'$as_ac_var'}'` = yes; then
18596 cat >>confdefs.h <<_ACEOF
18597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18598 _ACEOF
18601 done
18603 else
18605 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18606 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18607 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18608 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18614 ac_ext=cc
18615 ac_cpp='$CXXCPP $CPPFLAGS'
18616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18620 cat >conftest.$ac_ext <<_ACEOF
18621 #line $LINENO "configure"
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 #include <math.h>
18629 main ()
18631 _frexpl(0, 0);
18633 return 0;
18635 _ACEOF
18636 rm -f conftest.$ac_objext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18638 (eval $ac_compile) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try='test -s conftest.$ac_objext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 glibcxx_cv_func__frexpl_use=yes
18649 else
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 glibcxx_cv_func__frexpl_use=no
18655 rm -f conftest.$ac_objext conftest.$ac_ext
18656 ac_ext=c
18657 ac_cpp='$CPP $CPPFLAGS'
18658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18666 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18667 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18669 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18671 for ac_func in _frexpl
18673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674 echo "$as_me:$LINENO: checking for $ac_func" >&5
18675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18676 if eval "test \"\${$as_ac_var+set}\" = set"; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679 if test x$gcc_no_link = xyes; then
18680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18682 { (exit 1); exit 1; }; }
18684 cat >conftest.$ac_ext <<_ACEOF
18685 #line $LINENO "configure"
18686 /* confdefs.h. */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18691 /* System header to define __stub macros and hopefully few prototypes,
18692 which can conflict with char $ac_func (); below.
18693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18694 <limits.h> exists even on freestanding compilers. */
18695 #ifdef __STDC__
18696 # include <limits.h>
18697 #else
18698 # include <assert.h>
18699 #endif
18700 /* Override any gcc2 internal prototype to avoid an error. */
18701 #ifdef __cplusplus
18702 extern "C"
18704 #endif
18705 /* We use char because int might match the return type of a gcc2
18706 builtin and then its argument prototype would still apply. */
18707 char $ac_func ();
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18712 choke me
18713 #else
18714 char (*f) () = $ac_func;
18715 #endif
18716 #ifdef __cplusplus
18718 #endif
18721 main ()
18723 return f != $ac_func;
18725 return 0;
18727 _ACEOF
18728 rm -f conftest.$ac_objext conftest$ac_exeext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18730 (eval $ac_link) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -s conftest$ac_exeext'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 eval "$as_ac_var=yes"
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 eval "$as_ac_var=no"
18747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18751 if test `eval echo '${'$as_ac_var'}'` = yes; then
18752 cat >>confdefs.h <<_ACEOF
18753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18754 _ACEOF
18757 done
18764 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18765 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18766 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18767 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18773 ac_ext=cc
18774 ac_cpp='$CXXCPP $CPPFLAGS'
18775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18779 cat >conftest.$ac_ext <<_ACEOF
18780 #line $LINENO "configure"
18781 /* confdefs.h. */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 #include <math.h>
18788 main ()
18790 hypotl(0, 0);
18792 return 0;
18794 _ACEOF
18795 rm -f conftest.$ac_objext
18796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18797 (eval $ac_compile) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -s conftest.$ac_objext'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; }; then
18807 glibcxx_cv_func_hypotl_use=yes
18808 else
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 glibcxx_cv_func_hypotl_use=no
18814 rm -f conftest.$ac_objext conftest.$ac_ext
18815 ac_ext=c
18816 ac_cpp='$CPP $CPPFLAGS'
18817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18825 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18826 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18828 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18830 for ac_func in hypotl
18832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833 echo "$as_me:$LINENO: checking for $ac_func" >&5
18834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18835 if eval "test \"\${$as_ac_var+set}\" = set"; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838 if test x$gcc_no_link = xyes; then
18839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18841 { (exit 1); exit 1; }; }
18843 cat >conftest.$ac_ext <<_ACEOF
18844 #line $LINENO "configure"
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 /* System header to define __stub macros and hopefully few prototypes,
18851 which can conflict with char $ac_func (); below.
18852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18853 <limits.h> exists even on freestanding compilers. */
18854 #ifdef __STDC__
18855 # include <limits.h>
18856 #else
18857 # include <assert.h>
18858 #endif
18859 /* Override any gcc2 internal prototype to avoid an error. */
18860 #ifdef __cplusplus
18861 extern "C"
18863 #endif
18864 /* We use char because int might match the return type of a gcc2
18865 builtin and then its argument prototype would still apply. */
18866 char $ac_func ();
18867 /* The GNU C library defines this for functions which it implements
18868 to always fail with ENOSYS. Some functions are actually named
18869 something starting with __ and the normal name is an alias. */
18870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18871 choke me
18872 #else
18873 char (*f) () = $ac_func;
18874 #endif
18875 #ifdef __cplusplus
18877 #endif
18880 main ()
18882 return f != $ac_func;
18884 return 0;
18886 _ACEOF
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889 (eval $ac_link) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 eval "$as_ac_var=yes"
18900 else
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 eval "$as_ac_var=no"
18906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18910 if test `eval echo '${'$as_ac_var'}'` = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18913 _ACEOF
18916 done
18918 else
18920 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18921 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18922 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18923 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18929 ac_ext=cc
18930 ac_cpp='$CXXCPP $CPPFLAGS'
18931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18935 cat >conftest.$ac_ext <<_ACEOF
18936 #line $LINENO "configure"
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 #include <math.h>
18944 main ()
18946 _hypotl(0, 0);
18948 return 0;
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -s conftest.$ac_objext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 glibcxx_cv_func__hypotl_use=yes
18964 else
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 glibcxx_cv_func__hypotl_use=no
18970 rm -f conftest.$ac_objext conftest.$ac_ext
18971 ac_ext=c
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18981 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18982 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18984 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18986 for ac_func in _hypotl
18988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18989 echo "$as_me:$LINENO: checking for $ac_func" >&5
18990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18991 if eval "test \"\${$as_ac_var+set}\" = set"; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994 if test x$gcc_no_link = xyes; then
18995 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18997 { (exit 1); exit 1; }; }
18999 cat >conftest.$ac_ext <<_ACEOF
19000 #line $LINENO "configure"
19001 /* confdefs.h. */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 /* System header to define __stub macros and hopefully few prototypes,
19007 which can conflict with char $ac_func (); below.
19008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19009 <limits.h> exists even on freestanding compilers. */
19010 #ifdef __STDC__
19011 # include <limits.h>
19012 #else
19013 # include <assert.h>
19014 #endif
19015 /* Override any gcc2 internal prototype to avoid an error. */
19016 #ifdef __cplusplus
19017 extern "C"
19019 #endif
19020 /* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19022 char $ac_func ();
19023 /* The GNU C library defines this for functions which it implements
19024 to always fail with ENOSYS. Some functions are actually named
19025 something starting with __ and the normal name is an alias. */
19026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19027 choke me
19028 #else
19029 char (*f) () = $ac_func;
19030 #endif
19031 #ifdef __cplusplus
19033 #endif
19036 main ()
19038 return f != $ac_func;
19040 return 0;
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try='test -s conftest$ac_exeext'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 eval "$as_ac_var=yes"
19056 else
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19060 eval "$as_ac_var=no"
19062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19066 if test `eval echo '${'$as_ac_var'}'` = yes; then
19067 cat >>confdefs.h <<_ACEOF
19068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19069 _ACEOF
19072 done
19079 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
19080 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
19081 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
19082 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19088 ac_ext=cc
19089 ac_cpp='$CXXCPP $CPPFLAGS'
19090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19094 cat >conftest.$ac_ext <<_ACEOF
19095 #line $LINENO "configure"
19096 /* confdefs.h. */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <math.h>
19103 main ()
19105 ldexpl(0, 0);
19107 return 0;
19109 _ACEOF
19110 rm -f conftest.$ac_objext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112 (eval $ac_compile) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 glibcxx_cv_func_ldexpl_use=yes
19123 else
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 glibcxx_cv_func_ldexpl_use=no
19129 rm -f conftest.$ac_objext conftest.$ac_ext
19130 ac_ext=c
19131 ac_cpp='$CPP $CPPFLAGS'
19132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
19141 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
19143 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
19145 for ac_func in ldexpl
19147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19148 echo "$as_me:$LINENO: checking for $ac_func" >&5
19149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19150 if eval "test \"\${$as_ac_var+set}\" = set"; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 else
19153 if test x$gcc_no_link = xyes; then
19154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19156 { (exit 1); exit 1; }; }
19158 cat >conftest.$ac_ext <<_ACEOF
19159 #line $LINENO "configure"
19160 /* confdefs.h. */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 /* System header to define __stub macros and hopefully few prototypes,
19166 which can conflict with char $ac_func (); below.
19167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19168 <limits.h> exists even on freestanding compilers. */
19169 #ifdef __STDC__
19170 # include <limits.h>
19171 #else
19172 # include <assert.h>
19173 #endif
19174 /* Override any gcc2 internal prototype to avoid an error. */
19175 #ifdef __cplusplus
19176 extern "C"
19178 #endif
19179 /* We use char because int might match the return type of a gcc2
19180 builtin and then its argument prototype would still apply. */
19181 char $ac_func ();
19182 /* The GNU C library defines this for functions which it implements
19183 to always fail with ENOSYS. Some functions are actually named
19184 something starting with __ and the normal name is an alias. */
19185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19186 choke me
19187 #else
19188 char (*f) () = $ac_func;
19189 #endif
19190 #ifdef __cplusplus
19192 #endif
19195 main ()
19197 return f != $ac_func;
19199 return 0;
19201 _ACEOF
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204 (eval $ac_link) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -s conftest$ac_exeext'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 eval "$as_ac_var=yes"
19215 else
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 eval "$as_ac_var=no"
19221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19225 if test `eval echo '${'$as_ac_var'}'` = yes; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19228 _ACEOF
19231 done
19233 else
19235 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
19236 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
19237 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
19238 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19244 ac_ext=cc
19245 ac_cpp='$CXXCPP $CPPFLAGS'
19246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19250 cat >conftest.$ac_ext <<_ACEOF
19251 #line $LINENO "configure"
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 #include <math.h>
19259 main ()
19261 _ldexpl(0, 0);
19263 return 0;
19265 _ACEOF
19266 rm -f conftest.$ac_objext
19267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19268 (eval $ac_compile) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try='test -s conftest.$ac_objext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 glibcxx_cv_func__ldexpl_use=yes
19279 else
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 glibcxx_cv_func__ldexpl_use=no
19285 rm -f conftest.$ac_objext conftest.$ac_ext
19286 ac_ext=c
19287 ac_cpp='$CPP $CPPFLAGS'
19288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19296 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
19297 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
19299 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
19301 for ac_func in _ldexpl
19303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19304 echo "$as_me:$LINENO: checking for $ac_func" >&5
19305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19306 if eval "test \"\${$as_ac_var+set}\" = set"; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308 else
19309 if test x$gcc_no_link = xyes; then
19310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19312 { (exit 1); exit 1; }; }
19314 cat >conftest.$ac_ext <<_ACEOF
19315 #line $LINENO "configure"
19316 /* confdefs.h. */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* System header to define __stub macros and hopefully few prototypes,
19322 which can conflict with char $ac_func (); below.
19323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19324 <limits.h> exists even on freestanding compilers. */
19325 #ifdef __STDC__
19326 # include <limits.h>
19327 #else
19328 # include <assert.h>
19329 #endif
19330 /* Override any gcc2 internal prototype to avoid an error. */
19331 #ifdef __cplusplus
19332 extern "C"
19334 #endif
19335 /* We use char because int might match the return type of a gcc2
19336 builtin and then its argument prototype would still apply. */
19337 char $ac_func ();
19338 /* The GNU C library defines this for functions which it implements
19339 to always fail with ENOSYS. Some functions are actually named
19340 something starting with __ and the normal name is an alias. */
19341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19342 choke me
19343 #else
19344 char (*f) () = $ac_func;
19345 #endif
19346 #ifdef __cplusplus
19348 #endif
19351 main ()
19353 return f != $ac_func;
19355 return 0;
19357 _ACEOF
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360 (eval $ac_link) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -s conftest$ac_exeext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 eval "$as_ac_var=yes"
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 eval "$as_ac_var=no"
19377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19381 if test `eval echo '${'$as_ac_var'}'` = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19384 _ACEOF
19387 done
19394 echo "$as_me:$LINENO: checking for logl declaration" >&5
19395 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
19396 if test x${glibcxx_cv_func_logl_use+set} != xset; then
19397 if test "${glibcxx_cv_func_logl_use+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19403 ac_ext=cc
19404 ac_cpp='$CXXCPP $CPPFLAGS'
19405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19409 cat >conftest.$ac_ext <<_ACEOF
19410 #line $LINENO "configure"
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19416 #include <math.h>
19417 #ifdef HAVE_IEEEFP_H
19418 #include <ieeefp.h>
19419 #endif
19422 main ()
19424 logl(0);
19426 return 0;
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19431 (eval $ac_compile) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
19435 { ac_try='test -s conftest.$ac_objext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 glibcxx_cv_func_logl_use=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 glibcxx_cv_func_logl_use=no
19448 rm -f conftest.$ac_objext conftest.$ac_ext
19449 ac_ext=c
19450 ac_cpp='$CPP $CPPFLAGS'
19451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19459 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19460 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19462 if test x$glibcxx_cv_func_logl_use = x"yes"; then
19464 for ac_func in logl
19466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19467 echo "$as_me:$LINENO: checking for $ac_func" >&5
19468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19469 if eval "test \"\${$as_ac_var+set}\" = set"; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472 if test x$gcc_no_link = xyes; then
19473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19475 { (exit 1); exit 1; }; }
19477 cat >conftest.$ac_ext <<_ACEOF
19478 #line $LINENO "configure"
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 /* System header to define __stub macros and hopefully few prototypes,
19485 which can conflict with char $ac_func (); below.
19486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19487 <limits.h> exists even on freestanding compilers. */
19488 #ifdef __STDC__
19489 # include <limits.h>
19490 #else
19491 # include <assert.h>
19492 #endif
19493 /* Override any gcc2 internal prototype to avoid an error. */
19494 #ifdef __cplusplus
19495 extern "C"
19497 #endif
19498 /* We use char because int might match the return type of a gcc2
19499 builtin and then its argument prototype would still apply. */
19500 char $ac_func ();
19501 /* The GNU C library defines this for functions which it implements
19502 to always fail with ENOSYS. Some functions are actually named
19503 something starting with __ and the normal name is an alias. */
19504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19505 choke me
19506 #else
19507 char (*f) () = $ac_func;
19508 #endif
19509 #ifdef __cplusplus
19511 #endif
19514 main ()
19516 return f != $ac_func;
19518 return 0;
19520 _ACEOF
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523 (eval $ac_link) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -s conftest$ac_exeext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 eval "$as_ac_var=yes"
19534 else
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 eval "$as_ac_var=no"
19540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19544 if test `eval echo '${'$as_ac_var'}'` = yes; then
19545 cat >>confdefs.h <<_ACEOF
19546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19547 _ACEOF
19550 done
19552 else
19554 echo "$as_me:$LINENO: checking for _logl declaration" >&5
19555 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19556 if test x${glibcxx_cv_func__logl_use+set} != xset; then
19557 if test "${glibcxx_cv_func__logl_use+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 else
19563 ac_ext=cc
19564 ac_cpp='$CXXCPP $CPPFLAGS'
19565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19569 cat >conftest.$ac_ext <<_ACEOF
19570 #line $LINENO "configure"
19571 /* confdefs.h. */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 #include <math.h>
19577 #ifdef HAVE_IEEEFP_H
19578 #include <ieeefp.h>
19579 #endif
19582 main ()
19584 _logl(0);
19586 return 0;
19588 _ACEOF
19589 rm -f conftest.$ac_objext
19590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19591 (eval $ac_compile) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
19595 { ac_try='test -s conftest.$ac_objext'
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601 glibcxx_cv_func__logl_use=yes
19602 else
19603 echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19606 glibcxx_cv_func__logl_use=no
19608 rm -f conftest.$ac_objext conftest.$ac_ext
19609 ac_ext=c
19610 ac_cpp='$CPP $CPPFLAGS'
19611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19620 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19622 if test x$glibcxx_cv_func__logl_use = x"yes"; then
19624 for ac_func in _logl
19626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19627 echo "$as_me:$LINENO: checking for $ac_func" >&5
19628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19629 if eval "test \"\${$as_ac_var+set}\" = set"; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632 if test x$gcc_no_link = xyes; then
19633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19635 { (exit 1); exit 1; }; }
19637 cat >conftest.$ac_ext <<_ACEOF
19638 #line $LINENO "configure"
19639 /* confdefs.h. */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 /* System header to define __stub macros and hopefully few prototypes,
19645 which can conflict with char $ac_func (); below.
19646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19647 <limits.h> exists even on freestanding compilers. */
19648 #ifdef __STDC__
19649 # include <limits.h>
19650 #else
19651 # include <assert.h>
19652 #endif
19653 /* Override any gcc2 internal prototype to avoid an error. */
19654 #ifdef __cplusplus
19655 extern "C"
19657 #endif
19658 /* We use char because int might match the return type of a gcc2
19659 builtin and then its argument prototype would still apply. */
19660 char $ac_func ();
19661 /* The GNU C library defines this for functions which it implements
19662 to always fail with ENOSYS. Some functions are actually named
19663 something starting with __ and the normal name is an alias. */
19664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19665 choke me
19666 #else
19667 char (*f) () = $ac_func;
19668 #endif
19669 #ifdef __cplusplus
19671 #endif
19674 main ()
19676 return f != $ac_func;
19678 return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19683 (eval $ac_link) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -s conftest$ac_exeext'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 eval "$as_ac_var=yes"
19694 else
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 eval "$as_ac_var=no"
19700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19704 if test `eval echo '${'$as_ac_var'}'` = yes; then
19705 cat >>confdefs.h <<_ACEOF
19706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19707 _ACEOF
19710 done
19717 echo "$as_me:$LINENO: checking for log10l declaration" >&5
19718 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19719 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19720 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19726 ac_ext=cc
19727 ac_cpp='$CXXCPP $CPPFLAGS'
19728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19732 cat >conftest.$ac_ext <<_ACEOF
19733 #line $LINENO "configure"
19734 /* confdefs.h. */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 #include <math.h>
19740 #ifdef HAVE_IEEEFP_H
19741 #include <ieeefp.h>
19742 #endif
19745 main ()
19747 log10l(0);
19749 return 0;
19751 _ACEOF
19752 rm -f conftest.$ac_objext
19753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19754 (eval $ac_compile) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -s conftest.$ac_objext'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19761 ac_status=$?
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; }; then
19764 glibcxx_cv_func_log10l_use=yes
19765 else
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 glibcxx_cv_func_log10l_use=no
19771 rm -f conftest.$ac_objext conftest.$ac_ext
19772 ac_ext=c
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19782 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19783 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19785 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19787 for ac_func in log10l
19789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 echo "$as_me:$LINENO: checking for $ac_func" >&5
19791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19792 if eval "test \"\${$as_ac_var+set}\" = set"; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795 if test x$gcc_no_link = xyes; then
19796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19798 { (exit 1); exit 1; }; }
19800 cat >conftest.$ac_ext <<_ACEOF
19801 #line $LINENO "configure"
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 /* System header to define __stub macros and hopefully few prototypes,
19808 which can conflict with char $ac_func (); below.
19809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19810 <limits.h> exists even on freestanding compilers. */
19811 #ifdef __STDC__
19812 # include <limits.h>
19813 #else
19814 # include <assert.h>
19815 #endif
19816 /* Override any gcc2 internal prototype to avoid an error. */
19817 #ifdef __cplusplus
19818 extern "C"
19820 #endif
19821 /* We use char because int might match the return type of a gcc2
19822 builtin and then its argument prototype would still apply. */
19823 char $ac_func ();
19824 /* The GNU C library defines this for functions which it implements
19825 to always fail with ENOSYS. Some functions are actually named
19826 something starting with __ and the normal name is an alias. */
19827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19828 choke me
19829 #else
19830 char (*f) () = $ac_func;
19831 #endif
19832 #ifdef __cplusplus
19834 #endif
19837 main ()
19839 return f != $ac_func;
19841 return 0;
19843 _ACEOF
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19846 (eval $ac_link) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } &&
19850 { ac_try='test -s conftest$ac_exeext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 eval "$as_ac_var=yes"
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 eval "$as_ac_var=no"
19863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19867 if test `eval echo '${'$as_ac_var'}'` = yes; then
19868 cat >>confdefs.h <<_ACEOF
19869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19870 _ACEOF
19873 done
19875 else
19877 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19878 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19879 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19880 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19886 ac_ext=cc
19887 ac_cpp='$CXXCPP $CPPFLAGS'
19888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19892 cat >conftest.$ac_ext <<_ACEOF
19893 #line $LINENO "configure"
19894 /* confdefs.h. */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899 #include <math.h>
19900 #ifdef HAVE_IEEEFP_H
19901 #include <ieeefp.h>
19902 #endif
19905 main ()
19907 _log10l(0);
19909 return 0;
19911 _ACEOF
19912 rm -f conftest.$ac_objext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19914 (eval $ac_compile) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try='test -s conftest.$ac_objext'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 glibcxx_cv_func__log10l_use=yes
19925 else
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 glibcxx_cv_func__log10l_use=no
19931 rm -f conftest.$ac_objext conftest.$ac_ext
19932 ac_ext=c
19933 ac_cpp='$CPP $CPPFLAGS'
19934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19942 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19943 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19945 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19947 for ac_func in _log10l
19949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19950 echo "$as_me:$LINENO: checking for $ac_func" >&5
19951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19952 if eval "test \"\${$as_ac_var+set}\" = set"; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955 if test x$gcc_no_link = xyes; then
19956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19958 { (exit 1); exit 1; }; }
19960 cat >conftest.$ac_ext <<_ACEOF
19961 #line $LINENO "configure"
19962 /* confdefs.h. */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 /* System header to define __stub macros and hopefully few prototypes,
19968 which can conflict with char $ac_func (); below.
19969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19970 <limits.h> exists even on freestanding compilers. */
19971 #ifdef __STDC__
19972 # include <limits.h>
19973 #else
19974 # include <assert.h>
19975 #endif
19976 /* Override any gcc2 internal prototype to avoid an error. */
19977 #ifdef __cplusplus
19978 extern "C"
19980 #endif
19981 /* We use char because int might match the return type of a gcc2
19982 builtin and then its argument prototype would still apply. */
19983 char $ac_func ();
19984 /* The GNU C library defines this for functions which it implements
19985 to always fail with ENOSYS. Some functions are actually named
19986 something starting with __ and the normal name is an alias. */
19987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19988 choke me
19989 #else
19990 char (*f) () = $ac_func;
19991 #endif
19992 #ifdef __cplusplus
19994 #endif
19997 main ()
19999 return f != $ac_func;
20001 return 0;
20003 _ACEOF
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006 (eval $ac_link) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
20010 { ac_try='test -s conftest$ac_exeext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 eval "$as_ac_var=yes"
20017 else
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 eval "$as_ac_var=no"
20023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20027 if test `eval echo '${'$as_ac_var'}'` = yes; then
20028 cat >>confdefs.h <<_ACEOF
20029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20030 _ACEOF
20033 done
20040 echo "$as_me:$LINENO: checking for modfl declaration" >&5
20041 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
20042 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
20043 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 else
20049 ac_ext=cc
20050 ac_cpp='$CXXCPP $CPPFLAGS'
20051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20055 cat >conftest.$ac_ext <<_ACEOF
20056 #line $LINENO "configure"
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 #include <math.h>
20064 main ()
20066 modfl(0, 0);
20068 return 0;
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073 (eval $ac_compile) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 glibcxx_cv_func_modfl_use=yes
20084 else
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20088 glibcxx_cv_func_modfl_use=no
20090 rm -f conftest.$ac_objext conftest.$ac_ext
20091 ac_ext=c
20092 ac_cpp='$CPP $CPPFLAGS'
20093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20101 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
20102 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
20104 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
20106 for ac_func in modfl
20108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20109 echo "$as_me:$LINENO: checking for $ac_func" >&5
20110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20111 if eval "test \"\${$as_ac_var+set}\" = set"; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 else
20114 if test x$gcc_no_link = xyes; then
20115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20117 { (exit 1); exit 1; }; }
20119 cat >conftest.$ac_ext <<_ACEOF
20120 #line $LINENO "configure"
20121 /* confdefs.h. */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 /* System header to define __stub macros and hopefully few prototypes,
20127 which can conflict with char $ac_func (); below.
20128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20129 <limits.h> exists even on freestanding compilers. */
20130 #ifdef __STDC__
20131 # include <limits.h>
20132 #else
20133 # include <assert.h>
20134 #endif
20135 /* Override any gcc2 internal prototype to avoid an error. */
20136 #ifdef __cplusplus
20137 extern "C"
20139 #endif
20140 /* We use char because int might match the return type of a gcc2
20141 builtin and then its argument prototype would still apply. */
20142 char $ac_func ();
20143 /* The GNU C library defines this for functions which it implements
20144 to always fail with ENOSYS. Some functions are actually named
20145 something starting with __ and the normal name is an alias. */
20146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20147 choke me
20148 #else
20149 char (*f) () = $ac_func;
20150 #endif
20151 #ifdef __cplusplus
20153 #endif
20156 main ()
20158 return f != $ac_func;
20160 return 0;
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20165 (eval $ac_link) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -s conftest$ac_exeext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 eval "$as_ac_var=yes"
20176 else
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 eval "$as_ac_var=no"
20182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20186 if test `eval echo '${'$as_ac_var'}'` = yes; then
20187 cat >>confdefs.h <<_ACEOF
20188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20189 _ACEOF
20192 done
20194 else
20196 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
20197 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
20198 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
20199 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 else
20205 ac_ext=cc
20206 ac_cpp='$CXXCPP $CPPFLAGS'
20207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20211 cat >conftest.$ac_ext <<_ACEOF
20212 #line $LINENO "configure"
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 #include <math.h>
20220 main ()
20222 _modfl(0, 0);
20224 return 0;
20226 _ACEOF
20227 rm -f conftest.$ac_objext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20229 (eval $ac_compile) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -s conftest.$ac_objext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 glibcxx_cv_func__modfl_use=yes
20240 else
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 glibcxx_cv_func__modfl_use=no
20246 rm -f conftest.$ac_objext conftest.$ac_ext
20247 ac_ext=c
20248 ac_cpp='$CPP $CPPFLAGS'
20249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20257 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
20258 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
20260 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
20262 for ac_func in _modfl
20264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20265 echo "$as_me:$LINENO: checking for $ac_func" >&5
20266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20267 if eval "test \"\${$as_ac_var+set}\" = set"; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270 if test x$gcc_no_link = xyes; then
20271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20273 { (exit 1); exit 1; }; }
20275 cat >conftest.$ac_ext <<_ACEOF
20276 #line $LINENO "configure"
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 /* System header to define __stub macros and hopefully few prototypes,
20283 which can conflict with char $ac_func (); below.
20284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20285 <limits.h> exists even on freestanding compilers. */
20286 #ifdef __STDC__
20287 # include <limits.h>
20288 #else
20289 # include <assert.h>
20290 #endif
20291 /* Override any gcc2 internal prototype to avoid an error. */
20292 #ifdef __cplusplus
20293 extern "C"
20295 #endif
20296 /* We use char because int might match the return type of a gcc2
20297 builtin and then its argument prototype would still apply. */
20298 char $ac_func ();
20299 /* The GNU C library defines this for functions which it implements
20300 to always fail with ENOSYS. Some functions are actually named
20301 something starting with __ and the normal name is an alias. */
20302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20303 choke me
20304 #else
20305 char (*f) () = $ac_func;
20306 #endif
20307 #ifdef __cplusplus
20309 #endif
20312 main ()
20314 return f != $ac_func;
20316 return 0;
20318 _ACEOF
20319 rm -f conftest.$ac_objext conftest$ac_exeext
20320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20321 (eval $ac_link) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -s conftest$ac_exeext'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 eval "$as_ac_var=yes"
20332 else
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20336 eval "$as_ac_var=no"
20338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20342 if test `eval echo '${'$as_ac_var'}'` = yes; then
20343 cat >>confdefs.h <<_ACEOF
20344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20345 _ACEOF
20348 done
20355 echo "$as_me:$LINENO: checking for powl declaration" >&5
20356 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
20357 if test x${glibcxx_cv_func_powl_use+set} != xset; then
20358 if test "${glibcxx_cv_func_powl_use+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20364 ac_ext=cc
20365 ac_cpp='$CXXCPP $CPPFLAGS'
20366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20370 cat >conftest.$ac_ext <<_ACEOF
20371 #line $LINENO "configure"
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <math.h>
20379 main ()
20381 powl(0, 0);
20383 return 0;
20385 _ACEOF
20386 rm -f conftest.$ac_objext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388 (eval $ac_compile) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
20392 { ac_try='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 glibcxx_cv_func_powl_use=yes
20399 else
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 glibcxx_cv_func_powl_use=no
20405 rm -f conftest.$ac_objext conftest.$ac_ext
20406 ac_ext=c
20407 ac_cpp='$CPP $CPPFLAGS'
20408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20416 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
20417 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
20419 if test x$glibcxx_cv_func_powl_use = x"yes"; then
20421 for ac_func in powl
20423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20424 echo "$as_me:$LINENO: checking for $ac_func" >&5
20425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20426 if eval "test \"\${$as_ac_var+set}\" = set"; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 else
20429 if test x$gcc_no_link = xyes; then
20430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20432 { (exit 1); exit 1; }; }
20434 cat >conftest.$ac_ext <<_ACEOF
20435 #line $LINENO "configure"
20436 /* confdefs.h. */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20441 /* System header to define __stub macros and hopefully few prototypes,
20442 which can conflict with char $ac_func (); below.
20443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20444 <limits.h> exists even on freestanding compilers. */
20445 #ifdef __STDC__
20446 # include <limits.h>
20447 #else
20448 # include <assert.h>
20449 #endif
20450 /* Override any gcc2 internal prototype to avoid an error. */
20451 #ifdef __cplusplus
20452 extern "C"
20454 #endif
20455 /* We use char because int might match the return type of a gcc2
20456 builtin and then its argument prototype would still apply. */
20457 char $ac_func ();
20458 /* The GNU C library defines this for functions which it implements
20459 to always fail with ENOSYS. Some functions are actually named
20460 something starting with __ and the normal name is an alias. */
20461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20462 choke me
20463 #else
20464 char (*f) () = $ac_func;
20465 #endif
20466 #ifdef __cplusplus
20468 #endif
20471 main ()
20473 return f != $ac_func;
20475 return 0;
20477 _ACEOF
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20480 (eval $ac_link) 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
20484 { ac_try='test -s conftest$ac_exeext'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 eval "$as_ac_var=yes"
20491 else
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20495 eval "$as_ac_var=no"
20497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20501 if test `eval echo '${'$as_ac_var'}'` = yes; then
20502 cat >>confdefs.h <<_ACEOF
20503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20504 _ACEOF
20507 done
20509 else
20511 echo "$as_me:$LINENO: checking for _powl declaration" >&5
20512 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20513 if test x${glibcxx_cv_func__powl_use+set} != xset; then
20514 if test "${glibcxx_cv_func__powl_use+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20520 ac_ext=cc
20521 ac_cpp='$CXXCPP $CPPFLAGS'
20522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20526 cat >conftest.$ac_ext <<_ACEOF
20527 #line $LINENO "configure"
20528 /* confdefs.h. */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <math.h>
20535 main ()
20537 _powl(0, 0);
20539 return 0;
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 glibcxx_cv_func__powl_use=yes
20555 else
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 glibcxx_cv_func__powl_use=no
20561 rm -f conftest.$ac_objext conftest.$ac_ext
20562 ac_ext=c
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20572 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20573 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20575 if test x$glibcxx_cv_func__powl_use = x"yes"; then
20577 for ac_func in _powl
20579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20580 echo "$as_me:$LINENO: checking for $ac_func" >&5
20581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20582 if eval "test \"\${$as_ac_var+set}\" = set"; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585 if test x$gcc_no_link = xyes; then
20586 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20588 { (exit 1); exit 1; }; }
20590 cat >conftest.$ac_ext <<_ACEOF
20591 #line $LINENO "configure"
20592 /* confdefs.h. */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 /* System header to define __stub macros and hopefully few prototypes,
20598 which can conflict with char $ac_func (); below.
20599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20600 <limits.h> exists even on freestanding compilers. */
20601 #ifdef __STDC__
20602 # include <limits.h>
20603 #else
20604 # include <assert.h>
20605 #endif
20606 /* Override any gcc2 internal prototype to avoid an error. */
20607 #ifdef __cplusplus
20608 extern "C"
20610 #endif
20611 /* We use char because int might match the return type of a gcc2
20612 builtin and then its argument prototype would still apply. */
20613 char $ac_func ();
20614 /* The GNU C library defines this for functions which it implements
20615 to always fail with ENOSYS. Some functions are actually named
20616 something starting with __ and the normal name is an alias. */
20617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20618 choke me
20619 #else
20620 char (*f) () = $ac_func;
20621 #endif
20622 #ifdef __cplusplus
20624 #endif
20627 main ()
20629 return f != $ac_func;
20631 return 0;
20633 _ACEOF
20634 rm -f conftest.$ac_objext conftest$ac_exeext
20635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20636 (eval $ac_link) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } &&
20640 { ac_try='test -s conftest$ac_exeext'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; }; then
20646 eval "$as_ac_var=yes"
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 eval "$as_ac_var=no"
20653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20657 if test `eval echo '${'$as_ac_var'}'` = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20660 _ACEOF
20663 done
20670 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20671 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20672 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20673 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20679 ac_ext=cc
20680 ac_cpp='$CXXCPP $CPPFLAGS'
20681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20685 cat >conftest.$ac_ext <<_ACEOF
20686 #line $LINENO "configure"
20687 /* confdefs.h. */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20692 #include <math.h>
20693 #ifdef HAVE_IEEEFP_H
20694 #include <ieeefp.h>
20695 #endif
20698 main ()
20700 sqrtl(0);
20702 return 0;
20704 _ACEOF
20705 rm -f conftest.$ac_objext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20707 (eval $ac_compile) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -s conftest.$ac_objext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 glibcxx_cv_func_sqrtl_use=yes
20718 else
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 glibcxx_cv_func_sqrtl_use=no
20724 rm -f conftest.$ac_objext conftest.$ac_ext
20725 ac_ext=c
20726 ac_cpp='$CPP $CPPFLAGS'
20727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20735 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20736 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20738 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20740 for ac_func in sqrtl
20742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20743 echo "$as_me:$LINENO: checking for $ac_func" >&5
20744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20745 if eval "test \"\${$as_ac_var+set}\" = set"; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748 if test x$gcc_no_link = xyes; then
20749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20751 { (exit 1); exit 1; }; }
20753 cat >conftest.$ac_ext <<_ACEOF
20754 #line $LINENO "configure"
20755 /* confdefs.h. */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 /* System header to define __stub macros and hopefully few prototypes,
20761 which can conflict with char $ac_func (); below.
20762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20763 <limits.h> exists even on freestanding compilers. */
20764 #ifdef __STDC__
20765 # include <limits.h>
20766 #else
20767 # include <assert.h>
20768 #endif
20769 /* Override any gcc2 internal prototype to avoid an error. */
20770 #ifdef __cplusplus
20771 extern "C"
20773 #endif
20774 /* We use char because int might match the return type of a gcc2
20775 builtin and then its argument prototype would still apply. */
20776 char $ac_func ();
20777 /* The GNU C library defines this for functions which it implements
20778 to always fail with ENOSYS. Some functions are actually named
20779 something starting with __ and the normal name is an alias. */
20780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20781 choke me
20782 #else
20783 char (*f) () = $ac_func;
20784 #endif
20785 #ifdef __cplusplus
20787 #endif
20790 main ()
20792 return f != $ac_func;
20794 return 0;
20796 _ACEOF
20797 rm -f conftest.$ac_objext conftest$ac_exeext
20798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20799 (eval $ac_link) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -s conftest$ac_exeext'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 eval "$as_ac_var=yes"
20810 else
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 eval "$as_ac_var=no"
20816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20820 if test `eval echo '${'$as_ac_var'}'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823 _ACEOF
20826 done
20828 else
20830 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20831 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20832 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20833 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20839 ac_ext=cc
20840 ac_cpp='$CXXCPP $CPPFLAGS'
20841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20845 cat >conftest.$ac_ext <<_ACEOF
20846 #line $LINENO "configure"
20847 /* confdefs.h. */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 #include <math.h>
20853 #ifdef HAVE_IEEEFP_H
20854 #include <ieeefp.h>
20855 #endif
20858 main ()
20860 _sqrtl(0);
20862 return 0;
20864 _ACEOF
20865 rm -f conftest.$ac_objext
20866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20867 (eval $ac_compile) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } &&
20871 { ac_try='test -s conftest.$ac_objext'
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; }; then
20877 glibcxx_cv_func__sqrtl_use=yes
20878 else
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 glibcxx_cv_func__sqrtl_use=no
20884 rm -f conftest.$ac_objext conftest.$ac_ext
20885 ac_ext=c
20886 ac_cpp='$CPP $CPPFLAGS'
20887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20895 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20896 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20898 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20900 for ac_func in _sqrtl
20902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20903 echo "$as_me:$LINENO: checking for $ac_func" >&5
20904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20905 if eval "test \"\${$as_ac_var+set}\" = set"; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908 if test x$gcc_no_link = xyes; then
20909 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20911 { (exit 1); exit 1; }; }
20913 cat >conftest.$ac_ext <<_ACEOF
20914 #line $LINENO "configure"
20915 /* confdefs.h. */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20920 /* System header to define __stub macros and hopefully few prototypes,
20921 which can conflict with char $ac_func (); below.
20922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20923 <limits.h> exists even on freestanding compilers. */
20924 #ifdef __STDC__
20925 # include <limits.h>
20926 #else
20927 # include <assert.h>
20928 #endif
20929 /* Override any gcc2 internal prototype to avoid an error. */
20930 #ifdef __cplusplus
20931 extern "C"
20933 #endif
20934 /* We use char because int might match the return type of a gcc2
20935 builtin and then its argument prototype would still apply. */
20936 char $ac_func ();
20937 /* The GNU C library defines this for functions which it implements
20938 to always fail with ENOSYS. Some functions are actually named
20939 something starting with __ and the normal name is an alias. */
20940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20941 choke me
20942 #else
20943 char (*f) () = $ac_func;
20944 #endif
20945 #ifdef __cplusplus
20947 #endif
20950 main ()
20952 return f != $ac_func;
20954 return 0;
20956 _ACEOF
20957 rm -f conftest.$ac_objext conftest$ac_exeext
20958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20959 (eval $ac_link) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -s conftest$ac_exeext'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969 eval "$as_ac_var=yes"
20970 else
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20974 eval "$as_ac_var=no"
20976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20980 if test `eval echo '${'$as_ac_var'}'` = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20983 _ACEOF
20986 done
20993 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20994 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20995 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20996 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
21002 ac_ext=cc
21003 ac_cpp='$CXXCPP $CPPFLAGS'
21004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21008 cat >conftest.$ac_ext <<_ACEOF
21009 #line $LINENO "configure"
21010 /* confdefs.h. */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 #include <math.h>
21017 main ()
21019 sincosl(0, 0, 0);
21021 return 0;
21023 _ACEOF
21024 rm -f conftest.$ac_objext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21026 (eval $ac_compile) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
21030 { ac_try='test -s conftest.$ac_objext'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 glibcxx_cv_func_sincosl_use=yes
21037 else
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 glibcxx_cv_func_sincosl_use=no
21043 rm -f conftest.$ac_objext conftest.$ac_ext
21044 ac_ext=c
21045 ac_cpp='$CPP $CPPFLAGS'
21046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21054 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
21055 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
21057 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
21059 for ac_func in sincosl
21061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21062 echo "$as_me:$LINENO: checking for $ac_func" >&5
21063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21064 if eval "test \"\${$as_ac_var+set}\" = set"; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067 if test x$gcc_no_link = xyes; then
21068 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21070 { (exit 1); exit 1; }; }
21072 cat >conftest.$ac_ext <<_ACEOF
21073 #line $LINENO "configure"
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 /* System header to define __stub macros and hopefully few prototypes,
21080 which can conflict with char $ac_func (); below.
21081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21082 <limits.h> exists even on freestanding compilers. */
21083 #ifdef __STDC__
21084 # include <limits.h>
21085 #else
21086 # include <assert.h>
21087 #endif
21088 /* Override any gcc2 internal prototype to avoid an error. */
21089 #ifdef __cplusplus
21090 extern "C"
21092 #endif
21093 /* We use char because int might match the return type of a gcc2
21094 builtin and then its argument prototype would still apply. */
21095 char $ac_func ();
21096 /* The GNU C library defines this for functions which it implements
21097 to always fail with ENOSYS. Some functions are actually named
21098 something starting with __ and the normal name is an alias. */
21099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21100 choke me
21101 #else
21102 char (*f) () = $ac_func;
21103 #endif
21104 #ifdef __cplusplus
21106 #endif
21109 main ()
21111 return f != $ac_func;
21113 return 0;
21115 _ACEOF
21116 rm -f conftest.$ac_objext conftest$ac_exeext
21117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21118 (eval $ac_link) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } &&
21122 { ac_try='test -s conftest$ac_exeext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 eval "$as_ac_var=yes"
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 eval "$as_ac_var=no"
21135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21139 if test `eval echo '${'$as_ac_var'}'` = yes; then
21140 cat >>confdefs.h <<_ACEOF
21141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21142 _ACEOF
21145 done
21147 else
21149 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
21150 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
21151 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
21152 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21158 ac_ext=cc
21159 ac_cpp='$CXXCPP $CPPFLAGS'
21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21164 cat >conftest.$ac_ext <<_ACEOF
21165 #line $LINENO "configure"
21166 /* confdefs.h. */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21171 #include <math.h>
21173 main ()
21175 _sincosl(0, 0, 0);
21177 return 0;
21179 _ACEOF
21180 rm -f conftest.$ac_objext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21182 (eval $ac_compile) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -s conftest.$ac_objext'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 glibcxx_cv_func__sincosl_use=yes
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 glibcxx_cv_func__sincosl_use=no
21199 rm -f conftest.$ac_objext conftest.$ac_ext
21200 ac_ext=c
21201 ac_cpp='$CPP $CPPFLAGS'
21202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
21211 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
21213 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
21215 for ac_func in _sincosl
21217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21218 echo "$as_me:$LINENO: checking for $ac_func" >&5
21219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21220 if eval "test \"\${$as_ac_var+set}\" = set"; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223 if test x$gcc_no_link = xyes; then
21224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21226 { (exit 1); exit 1; }; }
21228 cat >conftest.$ac_ext <<_ACEOF
21229 #line $LINENO "configure"
21230 /* confdefs.h. */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 /* System header to define __stub macros and hopefully few prototypes,
21236 which can conflict with char $ac_func (); below.
21237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21238 <limits.h> exists even on freestanding compilers. */
21239 #ifdef __STDC__
21240 # include <limits.h>
21241 #else
21242 # include <assert.h>
21243 #endif
21244 /* Override any gcc2 internal prototype to avoid an error. */
21245 #ifdef __cplusplus
21246 extern "C"
21248 #endif
21249 /* We use char because int might match the return type of a gcc2
21250 builtin and then its argument prototype would still apply. */
21251 char $ac_func ();
21252 /* The GNU C library defines this for functions which it implements
21253 to always fail with ENOSYS. Some functions are actually named
21254 something starting with __ and the normal name is an alias. */
21255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21256 choke me
21257 #else
21258 char (*f) () = $ac_func;
21259 #endif
21260 #ifdef __cplusplus
21262 #endif
21265 main ()
21267 return f != $ac_func;
21269 return 0;
21271 _ACEOF
21272 rm -f conftest.$ac_objext conftest$ac_exeext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21274 (eval $ac_link) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } &&
21278 { ac_try='test -s conftest$ac_exeext'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
21284 eval "$as_ac_var=yes"
21285 else
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 eval "$as_ac_var=no"
21291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21295 if test `eval echo '${'$as_ac_var'}'` = yes; then
21296 cat >>confdefs.h <<_ACEOF
21297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21298 _ACEOF
21301 done
21308 echo "$as_me:$LINENO: checking for finitel declaration" >&5
21309 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
21310 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
21311 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 else
21317 ac_ext=cc
21318 ac_cpp='$CXXCPP $CPPFLAGS'
21319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21323 cat >conftest.$ac_ext <<_ACEOF
21324 #line $LINENO "configure"
21325 /* confdefs.h. */
21326 _ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21330 #include <math.h>
21331 #ifdef HAVE_IEEEFP_H
21332 #include <ieeefp.h>
21333 #endif
21336 main ()
21338 finitel(0);
21340 return 0;
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345 (eval $ac_compile) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } &&
21349 { ac_try='test -s conftest.$ac_objext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 glibcxx_cv_func_finitel_use=yes
21356 else
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21360 glibcxx_cv_func_finitel_use=no
21362 rm -f conftest.$ac_objext conftest.$ac_ext
21363 ac_ext=c
21364 ac_cpp='$CPP $CPPFLAGS'
21365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21373 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
21374 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
21376 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
21378 for ac_func in finitel
21380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21381 echo "$as_me:$LINENO: checking for $ac_func" >&5
21382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21383 if eval "test \"\${$as_ac_var+set}\" = set"; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386 if test x$gcc_no_link = xyes; then
21387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21389 { (exit 1); exit 1; }; }
21391 cat >conftest.$ac_ext <<_ACEOF
21392 #line $LINENO "configure"
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 /* System header to define __stub macros and hopefully few prototypes,
21399 which can conflict with char $ac_func (); below.
21400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21401 <limits.h> exists even on freestanding compilers. */
21402 #ifdef __STDC__
21403 # include <limits.h>
21404 #else
21405 # include <assert.h>
21406 #endif
21407 /* Override any gcc2 internal prototype to avoid an error. */
21408 #ifdef __cplusplus
21409 extern "C"
21411 #endif
21412 /* We use char because int might match the return type of a gcc2
21413 builtin and then its argument prototype would still apply. */
21414 char $ac_func ();
21415 /* The GNU C library defines this for functions which it implements
21416 to always fail with ENOSYS. Some functions are actually named
21417 something starting with __ and the normal name is an alias. */
21418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21419 choke me
21420 #else
21421 char (*f) () = $ac_func;
21422 #endif
21423 #ifdef __cplusplus
21425 #endif
21428 main ()
21430 return f != $ac_func;
21432 return 0;
21434 _ACEOF
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437 (eval $ac_link) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } &&
21441 { ac_try='test -s conftest$ac_exeext'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 eval "$as_ac_var=yes"
21448 else
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 eval "$as_ac_var=no"
21454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21458 if test `eval echo '${'$as_ac_var'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21461 _ACEOF
21464 done
21466 else
21468 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
21469 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
21470 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
21471 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21477 ac_ext=cc
21478 ac_cpp='$CXXCPP $CPPFLAGS'
21479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21483 cat >conftest.$ac_ext <<_ACEOF
21484 #line $LINENO "configure"
21485 /* confdefs.h. */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 #include <math.h>
21491 #ifdef HAVE_IEEEFP_H
21492 #include <ieeefp.h>
21493 #endif
21496 main ()
21498 _finitel(0);
21500 return 0;
21502 _ACEOF
21503 rm -f conftest.$ac_objext
21504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21505 (eval $ac_compile) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } &&
21509 { ac_try='test -s conftest.$ac_objext'
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21512 ac_status=$?
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; }; then
21515 glibcxx_cv_func__finitel_use=yes
21516 else
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 glibcxx_cv_func__finitel_use=no
21522 rm -f conftest.$ac_objext conftest.$ac_ext
21523 ac_ext=c
21524 ac_cpp='$CPP $CPPFLAGS'
21525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21533 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21534 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21536 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21538 for ac_func in _finitel
21540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21541 echo "$as_me:$LINENO: checking for $ac_func" >&5
21542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21543 if eval "test \"\${$as_ac_var+set}\" = set"; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 else
21546 if test x$gcc_no_link = xyes; then
21547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21549 { (exit 1); exit 1; }; }
21551 cat >conftest.$ac_ext <<_ACEOF
21552 #line $LINENO "configure"
21553 /* confdefs.h. */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 /* System header to define __stub macros and hopefully few prototypes,
21559 which can conflict with char $ac_func (); below.
21560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21561 <limits.h> exists even on freestanding compilers. */
21562 #ifdef __STDC__
21563 # include <limits.h>
21564 #else
21565 # include <assert.h>
21566 #endif
21567 /* Override any gcc2 internal prototype to avoid an error. */
21568 #ifdef __cplusplus
21569 extern "C"
21571 #endif
21572 /* We use char because int might match the return type of a gcc2
21573 builtin and then its argument prototype would still apply. */
21574 char $ac_func ();
21575 /* The GNU C library defines this for functions which it implements
21576 to always fail with ENOSYS. Some functions are actually named
21577 something starting with __ and the normal name is an alias. */
21578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21579 choke me
21580 #else
21581 char (*f) () = $ac_func;
21582 #endif
21583 #ifdef __cplusplus
21585 #endif
21588 main ()
21590 return f != $ac_func;
21592 return 0;
21594 _ACEOF
21595 rm -f conftest.$ac_objext conftest$ac_exeext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21597 (eval $ac_link) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
21601 { ac_try='test -s conftest$ac_exeext'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 eval "$as_ac_var=yes"
21608 else
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 eval "$as_ac_var=no"
21614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21618 if test `eval echo '${'$as_ac_var'}'` = yes; then
21619 cat >>confdefs.h <<_ACEOF
21620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21621 _ACEOF
21624 done
21632 echo "$as_me:$LINENO: checking for _float trig functions" >&5
21633 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21634 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21640 ac_ext=cc
21641 ac_cpp='$CXXCPP $CPPFLAGS'
21642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21646 cat >conftest.$ac_ext <<_ACEOF
21647 #line $LINENO "configure"
21648 /* confdefs.h. */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 #include <math.h>
21655 main ()
21657 `for x in _acosf _asinf _atanf \
21658 _cosf _sinf _tanf \
21659 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21661 return 0;
21663 _ACEOF
21664 rm -f conftest.$ac_objext
21665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21666 (eval $ac_compile) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } &&
21670 { ac_try='test -s conftest.$ac_objext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 glibcxx_cv_func__float_trig_use=yes
21677 else
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 glibcxx_cv_func__float_trig_use=no
21683 rm -f conftest.$ac_objext conftest.$ac_ext
21684 ac_ext=c
21685 ac_cpp='$CPP $CPPFLAGS'
21686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21692 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21693 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21694 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21704 for ac_func in _acosf _asinf _atanf \
21705 _cosf _sinf _tanf \
21706 _coshf _sinhf _tanhf
21708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21709 echo "$as_me:$LINENO: checking for $ac_func" >&5
21710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21711 if eval "test \"\${$as_ac_var+set}\" = set"; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714 if test x$gcc_no_link = xyes; then
21715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21717 { (exit 1); exit 1; }; }
21719 cat >conftest.$ac_ext <<_ACEOF
21720 #line $LINENO "configure"
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 /* System header to define __stub macros and hopefully few prototypes,
21727 which can conflict with char $ac_func (); below.
21728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21729 <limits.h> exists even on freestanding compilers. */
21730 #ifdef __STDC__
21731 # include <limits.h>
21732 #else
21733 # include <assert.h>
21734 #endif
21735 /* Override any gcc2 internal prototype to avoid an error. */
21736 #ifdef __cplusplus
21737 extern "C"
21739 #endif
21740 /* We use char because int might match the return type of a gcc2
21741 builtin and then its argument prototype would still apply. */
21742 char $ac_func ();
21743 /* The GNU C library defines this for functions which it implements
21744 to always fail with ENOSYS. Some functions are actually named
21745 something starting with __ and the normal name is an alias. */
21746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21747 choke me
21748 #else
21749 char (*f) () = $ac_func;
21750 #endif
21751 #ifdef __cplusplus
21753 #endif
21756 main ()
21758 return f != $ac_func;
21760 return 0;
21762 _ACEOF
21763 rm -f conftest.$ac_objext conftest$ac_exeext
21764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21765 (eval $ac_link) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
21769 { ac_try='test -s conftest$ac_exeext'
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21772 ac_status=$?
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; }; then
21775 eval "$as_ac_var=yes"
21776 else
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 eval "$as_ac_var=no"
21782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21786 if test `eval echo '${'$as_ac_var'}'` = yes; then
21787 cat >>confdefs.h <<_ACEOF
21788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21789 _ACEOF
21792 done
21797 echo "$as_me:$LINENO: checking for _float round functions" >&5
21798 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21799 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21805 ac_ext=cc
21806 ac_cpp='$CXXCPP $CPPFLAGS'
21807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21811 cat >conftest.$ac_ext <<_ACEOF
21812 #line $LINENO "configure"
21813 /* confdefs.h. */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 #include <math.h>
21820 main ()
21822 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21824 return 0;
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21829 (eval $ac_compile) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } &&
21833 { ac_try='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 glibcxx_cv_func__float_round_use=yes
21840 else
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 glibcxx_cv_func__float_round_use=no
21846 rm -f conftest.$ac_objext conftest.$ac_ext
21847 ac_ext=c
21848 ac_cpp='$CPP $CPPFLAGS'
21849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21855 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21856 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21857 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21860 for ac_func in _ceilf _floorf
21862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21863 echo "$as_me:$LINENO: checking for $ac_func" >&5
21864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21865 if eval "test \"\${$as_ac_var+set}\" = set"; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 else
21868 if test x$gcc_no_link = xyes; then
21869 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21870 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21871 { (exit 1); exit 1; }; }
21873 cat >conftest.$ac_ext <<_ACEOF
21874 #line $LINENO "configure"
21875 /* confdefs.h. */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21880 /* System header to define __stub macros and hopefully few prototypes,
21881 which can conflict with char $ac_func (); below.
21882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21883 <limits.h> exists even on freestanding compilers. */
21884 #ifdef __STDC__
21885 # include <limits.h>
21886 #else
21887 # include <assert.h>
21888 #endif
21889 /* Override any gcc2 internal prototype to avoid an error. */
21890 #ifdef __cplusplus
21891 extern "C"
21893 #endif
21894 /* We use char because int might match the return type of a gcc2
21895 builtin and then its argument prototype would still apply. */
21896 char $ac_func ();
21897 /* The GNU C library defines this for functions which it implements
21898 to always fail with ENOSYS. Some functions are actually named
21899 something starting with __ and the normal name is an alias. */
21900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21901 choke me
21902 #else
21903 char (*f) () = $ac_func;
21904 #endif
21905 #ifdef __cplusplus
21907 #endif
21910 main ()
21912 return f != $ac_func;
21914 return 0;
21916 _ACEOF
21917 rm -f conftest.$ac_objext conftest$ac_exeext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21919 (eval $ac_link) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } &&
21923 { ac_try='test -s conftest$ac_exeext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 eval "$as_ac_var=yes"
21930 else
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 eval "$as_ac_var=no"
21936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21940 if test `eval echo '${'$as_ac_var'}'` = yes; then
21941 cat >>confdefs.h <<_ACEOF
21942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21943 _ACEOF
21946 done
21952 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21953 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21954 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21960 ac_ext=cc
21961 ac_cpp='$CXXCPP $CPPFLAGS'
21962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21966 cat >conftest.$ac_ext <<_ACEOF
21967 #line $LINENO "configure"
21968 /* confdefs.h. */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #include <math.h>
21975 main ()
21977 `for x in _acosl _asinl _atanl \
21978 _cosl _sinl _tanl \
21979 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21981 return 0;
21983 _ACEOF
21984 rm -f conftest.$ac_objext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21986 (eval $ac_compile) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
21990 { ac_try='test -s conftest.$ac_objext'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 glibcxx_cv_func__long_double_trig_use=yes
21997 else
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 glibcxx_cv_func__long_double_trig_use=no
22003 rm -f conftest.$ac_objext conftest.$ac_ext
22004 ac_ext=c
22005 ac_cpp='$CPP $CPPFLAGS'
22006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22012 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
22013 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
22014 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
22024 for ac_func in _acosl _asinl _atanl \
22025 _cosl _sinl _tanl \
22026 _coshl _sinhl _tanhl
22028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22029 echo "$as_me:$LINENO: checking for $ac_func" >&5
22030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22031 if eval "test \"\${$as_ac_var+set}\" = set"; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034 if test x$gcc_no_link = xyes; then
22035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22037 { (exit 1); exit 1; }; }
22039 cat >conftest.$ac_ext <<_ACEOF
22040 #line $LINENO "configure"
22041 /* confdefs.h. */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 /* System header to define __stub macros and hopefully few prototypes,
22047 which can conflict with char $ac_func (); below.
22048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22049 <limits.h> exists even on freestanding compilers. */
22050 #ifdef __STDC__
22051 # include <limits.h>
22052 #else
22053 # include <assert.h>
22054 #endif
22055 /* Override any gcc2 internal prototype to avoid an error. */
22056 #ifdef __cplusplus
22057 extern "C"
22059 #endif
22060 /* We use char because int might match the return type of a gcc2
22061 builtin and then its argument prototype would still apply. */
22062 char $ac_func ();
22063 /* The GNU C library defines this for functions which it implements
22064 to always fail with ENOSYS. Some functions are actually named
22065 something starting with __ and the normal name is an alias. */
22066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22067 choke me
22068 #else
22069 char (*f) () = $ac_func;
22070 #endif
22071 #ifdef __cplusplus
22073 #endif
22076 main ()
22078 return f != $ac_func;
22080 return 0;
22082 _ACEOF
22083 rm -f conftest.$ac_objext conftest$ac_exeext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085 (eval $ac_link) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } &&
22089 { ac_try='test -s conftest$ac_exeext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 eval "$as_ac_var=yes"
22096 else
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 eval "$as_ac_var=no"
22102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22106 if test `eval echo '${'$as_ac_var'}'` = yes; then
22107 cat >>confdefs.h <<_ACEOF
22108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22109 _ACEOF
22112 done
22117 echo "$as_me:$LINENO: checking for _long double round functions" >&5
22118 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
22119 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 else
22125 ac_ext=cc
22126 ac_cpp='$CXXCPP $CPPFLAGS'
22127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22131 cat >conftest.$ac_ext <<_ACEOF
22132 #line $LINENO "configure"
22133 /* confdefs.h. */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 #include <math.h>
22140 main ()
22142 `for x in _ceill _floorl; do echo "$x (0);"; done`
22144 return 0;
22146 _ACEOF
22147 rm -f conftest.$ac_objext
22148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22149 (eval $ac_compile) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } &&
22153 { ac_try='test -s conftest.$ac_objext'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 glibcxx_cv_func__long_double_round_use=yes
22160 else
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22164 glibcxx_cv_func__long_double_round_use=no
22166 rm -f conftest.$ac_objext conftest.$ac_ext
22167 ac_ext=c
22168 ac_cpp='$CPP $CPPFLAGS'
22169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22175 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
22176 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
22177 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
22180 for ac_func in _ceill _floorl
22182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22183 echo "$as_me:$LINENO: checking for $ac_func" >&5
22184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22185 if eval "test \"\${$as_ac_var+set}\" = set"; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188 if test x$gcc_no_link = xyes; then
22189 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22190 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22191 { (exit 1); exit 1; }; }
22193 cat >conftest.$ac_ext <<_ACEOF
22194 #line $LINENO "configure"
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 /* System header to define __stub macros and hopefully few prototypes,
22201 which can conflict with char $ac_func (); below.
22202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22203 <limits.h> exists even on freestanding compilers. */
22204 #ifdef __STDC__
22205 # include <limits.h>
22206 #else
22207 # include <assert.h>
22208 #endif
22209 /* Override any gcc2 internal prototype to avoid an error. */
22210 #ifdef __cplusplus
22211 extern "C"
22213 #endif
22214 /* We use char because int might match the return type of a gcc2
22215 builtin and then its argument prototype would still apply. */
22216 char $ac_func ();
22217 /* The GNU C library defines this for functions which it implements
22218 to always fail with ENOSYS. Some functions are actually named
22219 something starting with __ and the normal name is an alias. */
22220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22221 choke me
22222 #else
22223 char (*f) () = $ac_func;
22224 #endif
22225 #ifdef __cplusplus
22227 #endif
22230 main ()
22232 return f != $ac_func;
22234 return 0;
22236 _ACEOF
22237 rm -f conftest.$ac_objext conftest$ac_exeext
22238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22239 (eval $ac_link) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
22243 { ac_try='test -s conftest$ac_exeext'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 eval "$as_ac_var=yes"
22250 else
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 eval "$as_ac_var=no"
22256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22260 if test `eval echo '${'$as_ac_var'}'` = yes; then
22261 cat >>confdefs.h <<_ACEOF
22262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22263 _ACEOF
22266 done
22271 LIBS="$ac_save_LIBS"
22272 CXXFLAGS="$ac_save_CXXFLAGS"
22276 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
22277 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
22278 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
22279 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22281 else
22285 ac_ext=cc
22286 ac_cpp='$CXXCPP $CPPFLAGS'
22287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22291 cat >conftest.$ac_ext <<_ACEOF
22292 #line $LINENO "configure"
22293 /* confdefs.h. */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22298 #include <math.h>
22300 main ()
22302 __builtin_abs(0);
22304 return 0;
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22309 (eval $ac_compile) 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } &&
22313 { ac_try='test -s conftest.$ac_objext'
22314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315 (eval $ac_try) 2>&5
22316 ac_status=$?
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); }; }; then
22319 glibcxx_cv_func___builtin_abs_use=yes
22320 else
22321 echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22324 glibcxx_cv_func___builtin_abs_use=no
22326 rm -f conftest.$ac_objext conftest.$ac_ext
22327 ac_ext=c
22328 ac_cpp='$CPP $CPPFLAGS'
22329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22337 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
22338 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
22339 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
22340 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
22341 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
22342 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
22343 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22347 if test x$gcc_no_link = xyes; then
22348 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22350 { (exit 1); exit 1; }; }
22352 cat >conftest.$ac_ext <<_ACEOF
22353 #line $LINENO "configure"
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 #include <math.h>
22361 main ()
22363 __builtin_abs(0);
22365 return 0;
22367 _ACEOF
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22370 (eval $ac_link) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } &&
22374 { ac_try='test -s conftest$ac_exeext'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 glibcxx_cv_func___builtin_abs_link=yes
22381 else
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22385 glibcxx_cv_func___builtin_abs_link=no
22387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22392 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
22393 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
22394 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
22395 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22396 cat >>confdefs.h <<_ACEOF
22397 #define ${ac_tr_func} 1
22398 _ACEOF
22404 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
22405 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
22406 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
22407 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 else
22413 ac_ext=cc
22414 ac_cpp='$CXXCPP $CPPFLAGS'
22415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22419 cat >conftest.$ac_ext <<_ACEOF
22420 #line $LINENO "configure"
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #include <math.h>
22428 main ()
22430 __builtin_fabsf(0);
22432 return 0;
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22437 (eval $ac_compile) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -s conftest.$ac_objext'
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }; then
22447 glibcxx_cv_func___builtin_fabsf_use=yes
22448 else
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 glibcxx_cv_func___builtin_fabsf_use=no
22454 rm -f conftest.$ac_objext conftest.$ac_ext
22455 ac_ext=c
22456 ac_cpp='$CPP $CPPFLAGS'
22457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22465 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
22466 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
22467 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
22468 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
22469 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
22470 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
22471 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
22472 echo $ECHO_N "(cached) $ECHO_C" >&6
22473 else
22475 if test x$gcc_no_link = xyes; then
22476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22478 { (exit 1); exit 1; }; }
22480 cat >conftest.$ac_ext <<_ACEOF
22481 #line $LINENO "configure"
22482 /* confdefs.h. */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22487 #include <math.h>
22489 main ()
22491 __builtin_fabsf(0);
22493 return 0;
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498 (eval $ac_link) 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } &&
22502 { ac_try='test -s conftest$ac_exeext'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 glibcxx_cv_func___builtin_fabsf_link=yes
22509 else
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 glibcxx_cv_func___builtin_fabsf_link=no
22515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22520 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
22521 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
22522 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
22523 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22524 cat >>confdefs.h <<_ACEOF
22525 #define ${ac_tr_func} 1
22526 _ACEOF
22532 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22533 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22534 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22535 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22541 ac_ext=cc
22542 ac_cpp='$CXXCPP $CPPFLAGS'
22543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22547 cat >conftest.$ac_ext <<_ACEOF
22548 #line $LINENO "configure"
22549 /* confdefs.h. */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 #include <math.h>
22556 main ()
22558 __builtin_fabs(0);
22560 return 0;
22562 _ACEOF
22563 rm -f conftest.$ac_objext
22564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22565 (eval $ac_compile) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } &&
22569 { ac_try='test -s conftest.$ac_objext'
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 glibcxx_cv_func___builtin_fabs_use=yes
22576 else
22577 echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22580 glibcxx_cv_func___builtin_fabs_use=no
22582 rm -f conftest.$ac_objext conftest.$ac_ext
22583 ac_ext=c
22584 ac_cpp='$CPP $CPPFLAGS'
22585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22593 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22594 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22595 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22596 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22597 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22598 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22599 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 else
22603 if test x$gcc_no_link = xyes; then
22604 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22605 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22606 { (exit 1); exit 1; }; }
22608 cat >conftest.$ac_ext <<_ACEOF
22609 #line $LINENO "configure"
22610 /* confdefs.h. */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22615 #include <math.h>
22617 main ()
22619 __builtin_fabs(0);
22621 return 0;
22623 _ACEOF
22624 rm -f conftest.$ac_objext conftest$ac_exeext
22625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22626 (eval $ac_link) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -s conftest$ac_exeext'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22633 ac_status=$?
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 glibcxx_cv_func___builtin_fabs_link=yes
22637 else
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 glibcxx_cv_func___builtin_fabs_link=no
22643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22648 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22649 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22650 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22651 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22652 cat >>confdefs.h <<_ACEOF
22653 #define ${ac_tr_func} 1
22654 _ACEOF
22660 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22661 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22662 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22663 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 else
22669 ac_ext=cc
22670 ac_cpp='$CXXCPP $CPPFLAGS'
22671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22675 cat >conftest.$ac_ext <<_ACEOF
22676 #line $LINENO "configure"
22677 /* confdefs.h. */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 #include <math.h>
22684 main ()
22686 __builtin_fabsl(0);
22688 return 0;
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22693 (eval $ac_compile) 2>&5
22694 ac_status=$?
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } &&
22697 { ac_try='test -s conftest.$ac_objext'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; }; then
22703 glibcxx_cv_func___builtin_fabsl_use=yes
22704 else
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22708 glibcxx_cv_func___builtin_fabsl_use=no
22710 rm -f conftest.$ac_objext conftest.$ac_ext
22711 ac_ext=c
22712 ac_cpp='$CPP $CPPFLAGS'
22713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22721 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22722 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22723 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22724 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22725 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22726 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22727 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 else
22731 if test x$gcc_no_link = xyes; then
22732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22734 { (exit 1); exit 1; }; }
22736 cat >conftest.$ac_ext <<_ACEOF
22737 #line $LINENO "configure"
22738 /* confdefs.h. */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 #include <math.h>
22745 main ()
22747 __builtin_fabsl(0);
22749 return 0;
22751 _ACEOF
22752 rm -f conftest.$ac_objext conftest$ac_exeext
22753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22754 (eval $ac_link) 2>&5
22755 ac_status=$?
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } &&
22758 { ac_try='test -s conftest$ac_exeext'
22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760 (eval $ac_try) 2>&5
22761 ac_status=$?
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; }; then
22764 glibcxx_cv_func___builtin_fabsl_link=yes
22765 else
22766 echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22769 glibcxx_cv_func___builtin_fabsl_link=no
22771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22776 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22777 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22778 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22779 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22780 cat >>confdefs.h <<_ACEOF
22781 #define ${ac_tr_func} 1
22782 _ACEOF
22788 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22789 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22790 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22791 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22797 ac_ext=cc
22798 ac_cpp='$CXXCPP $CPPFLAGS'
22799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22803 cat >conftest.$ac_ext <<_ACEOF
22804 #line $LINENO "configure"
22805 /* confdefs.h. */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22810 #include <math.h>
22812 main ()
22814 __builtin_labs(0);
22816 return 0;
22818 _ACEOF
22819 rm -f conftest.$ac_objext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22821 (eval $ac_compile) 2>&5
22822 ac_status=$?
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } &&
22825 { ac_try='test -s conftest.$ac_objext'
22826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827 (eval $ac_try) 2>&5
22828 ac_status=$?
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); }; }; then
22831 glibcxx_cv_func___builtin_labs_use=yes
22832 else
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 glibcxx_cv_func___builtin_labs_use=no
22838 rm -f conftest.$ac_objext conftest.$ac_ext
22839 ac_ext=c
22840 ac_cpp='$CPP $CPPFLAGS'
22841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22849 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22850 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22851 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22852 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22853 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22854 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22855 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 else
22859 if test x$gcc_no_link = xyes; then
22860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22862 { (exit 1); exit 1; }; }
22864 cat >conftest.$ac_ext <<_ACEOF
22865 #line $LINENO "configure"
22866 /* confdefs.h. */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 #include <math.h>
22873 main ()
22875 __builtin_labs(0);
22877 return 0;
22879 _ACEOF
22880 rm -f conftest.$ac_objext conftest$ac_exeext
22881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22882 (eval $ac_link) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
22886 { ac_try='test -s conftest$ac_exeext'
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; }; then
22892 glibcxx_cv_func___builtin_labs_link=yes
22893 else
22894 echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 glibcxx_cv_func___builtin_labs_link=no
22899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22904 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22905 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22906 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22907 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22908 cat >>confdefs.h <<_ACEOF
22909 #define ${ac_tr_func} 1
22910 _ACEOF
22917 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22918 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22919 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22920 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 else
22926 ac_ext=cc
22927 ac_cpp='$CXXCPP $CPPFLAGS'
22928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22932 cat >conftest.$ac_ext <<_ACEOF
22933 #line $LINENO "configure"
22934 /* confdefs.h. */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 #include <math.h>
22941 main ()
22943 __builtin_sqrtf(0);
22945 return 0;
22947 _ACEOF
22948 rm -f conftest.$ac_objext
22949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22950 (eval $ac_compile) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } &&
22954 { ac_try='test -s conftest.$ac_objext'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 glibcxx_cv_func___builtin_sqrtf_use=yes
22961 else
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 glibcxx_cv_func___builtin_sqrtf_use=no
22967 rm -f conftest.$ac_objext conftest.$ac_ext
22968 ac_ext=c
22969 ac_cpp='$CPP $CPPFLAGS'
22970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22978 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22979 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22980 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22981 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22982 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22983 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22984 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22986 else
22988 if test x$gcc_no_link = xyes; then
22989 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22990 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22991 { (exit 1); exit 1; }; }
22993 cat >conftest.$ac_ext <<_ACEOF
22994 #line $LINENO "configure"
22995 /* confdefs.h. */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 #include <math.h>
23002 main ()
23004 __builtin_sqrtf(0);
23006 return 0;
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23011 (eval $ac_link) 2>&5
23012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
23015 { ac_try='test -s conftest$ac_exeext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23018 ac_status=$?
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 glibcxx_cv_func___builtin_sqrtf_link=yes
23022 else
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 glibcxx_cv_func___builtin_sqrtf_link=no
23028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23033 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
23034 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
23035 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
23036 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23037 cat >>confdefs.h <<_ACEOF
23038 #define ${ac_tr_func} 1
23039 _ACEOF
23045 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
23046 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
23047 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
23048 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23054 ac_ext=cc
23055 ac_cpp='$CXXCPP $CPPFLAGS'
23056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23060 cat >conftest.$ac_ext <<_ACEOF
23061 #line $LINENO "configure"
23062 /* confdefs.h. */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 #include <math.h>
23069 main ()
23071 __builtin_sqrt(0);
23073 return 0;
23075 _ACEOF
23076 rm -f conftest.$ac_objext
23077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23078 (eval $ac_compile) 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } &&
23082 { ac_try='test -s conftest.$ac_objext'
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23085 ac_status=$?
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 glibcxx_cv_func___builtin_sqrt_use=yes
23089 else
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 glibcxx_cv_func___builtin_sqrt_use=no
23095 rm -f conftest.$ac_objext conftest.$ac_ext
23096 ac_ext=c
23097 ac_cpp='$CPP $CPPFLAGS'
23098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23106 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
23107 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
23108 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
23109 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
23110 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
23111 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
23112 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23116 if test x$gcc_no_link = xyes; then
23117 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23118 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23119 { (exit 1); exit 1; }; }
23121 cat >conftest.$ac_ext <<_ACEOF
23122 #line $LINENO "configure"
23123 /* confdefs.h. */
23124 _ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23128 #include <math.h>
23130 main ()
23132 __builtin_sqrt(0);
23134 return 0;
23136 _ACEOF
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139 (eval $ac_link) 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } &&
23143 { ac_try='test -s conftest$ac_exeext'
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23146 ac_status=$?
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; }; then
23149 glibcxx_cv_func___builtin_sqrt_link=yes
23150 else
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 glibcxx_cv_func___builtin_sqrt_link=no
23156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23161 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
23162 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
23163 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
23164 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23165 cat >>confdefs.h <<_ACEOF
23166 #define ${ac_tr_func} 1
23167 _ACEOF
23173 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
23174 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
23175 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
23176 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23182 ac_ext=cc
23183 ac_cpp='$CXXCPP $CPPFLAGS'
23184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23188 cat >conftest.$ac_ext <<_ACEOF
23189 #line $LINENO "configure"
23190 /* confdefs.h. */
23191 _ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23195 #include <math.h>
23197 main ()
23199 __builtin_sqrtl(0);
23201 return 0;
23203 _ACEOF
23204 rm -f conftest.$ac_objext
23205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23206 (eval $ac_compile) 2>&5
23207 ac_status=$?
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } &&
23210 { ac_try='test -s conftest.$ac_objext'
23211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212 (eval $ac_try) 2>&5
23213 ac_status=$?
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 glibcxx_cv_func___builtin_sqrtl_use=yes
23217 else
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 glibcxx_cv_func___builtin_sqrtl_use=no
23223 rm -f conftest.$ac_objext conftest.$ac_ext
23224 ac_ext=c
23225 ac_cpp='$CPP $CPPFLAGS'
23226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23234 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
23235 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
23236 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
23237 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
23238 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
23239 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
23240 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23244 if test x$gcc_no_link = xyes; then
23245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23247 { (exit 1); exit 1; }; }
23249 cat >conftest.$ac_ext <<_ACEOF
23250 #line $LINENO "configure"
23251 /* confdefs.h. */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 #include <math.h>
23258 main ()
23260 __builtin_sqrtl(0);
23262 return 0;
23264 _ACEOF
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267 (eval $ac_link) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -s conftest$ac_exeext'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 glibcxx_cv_func___builtin_sqrtl_link=yes
23278 else
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 glibcxx_cv_func___builtin_sqrtl_link=no
23284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23289 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
23290 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
23291 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
23292 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23293 cat >>confdefs.h <<_ACEOF
23294 #define ${ac_tr_func} 1
23295 _ACEOF
23302 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
23303 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
23304 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
23305 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 else
23311 ac_ext=cc
23312 ac_cpp='$CXXCPP $CPPFLAGS'
23313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23317 cat >conftest.$ac_ext <<_ACEOF
23318 #line $LINENO "configure"
23319 /* confdefs.h. */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 #include <math.h>
23326 main ()
23328 __builtin_sinf(0);
23330 return 0;
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23335 (eval $ac_compile) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } &&
23339 { ac_try='test -s conftest.$ac_objext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 glibcxx_cv_func___builtin_sinf_use=yes
23346 else
23347 echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23350 glibcxx_cv_func___builtin_sinf_use=no
23352 rm -f conftest.$ac_objext conftest.$ac_ext
23353 ac_ext=c
23354 ac_cpp='$CPP $CPPFLAGS'
23355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23363 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
23364 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
23365 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
23366 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
23367 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
23368 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
23369 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23373 if test x$gcc_no_link = xyes; then
23374 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23375 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23376 { (exit 1); exit 1; }; }
23378 cat >conftest.$ac_ext <<_ACEOF
23379 #line $LINENO "configure"
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 #include <math.h>
23387 main ()
23389 __builtin_sinf(0);
23391 return 0;
23393 _ACEOF
23394 rm -f conftest.$ac_objext conftest$ac_exeext
23395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23396 (eval $ac_link) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } &&
23400 { ac_try='test -s conftest$ac_exeext'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 glibcxx_cv_func___builtin_sinf_link=yes
23407 else
23408 echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 glibcxx_cv_func___builtin_sinf_link=no
23413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23418 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
23419 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
23420 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
23421 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23422 cat >>confdefs.h <<_ACEOF
23423 #define ${ac_tr_func} 1
23424 _ACEOF
23430 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
23431 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
23432 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
23433 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23439 ac_ext=cc
23440 ac_cpp='$CXXCPP $CPPFLAGS'
23441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23445 cat >conftest.$ac_ext <<_ACEOF
23446 #line $LINENO "configure"
23447 /* confdefs.h. */
23448 _ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 #include <math.h>
23454 main ()
23456 __builtin_sin(0);
23458 return 0;
23460 _ACEOF
23461 rm -f conftest.$ac_objext
23462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23463 (eval $ac_compile) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } &&
23467 { ac_try='test -s conftest.$ac_objext'
23468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469 (eval $ac_try) 2>&5
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23473 glibcxx_cv_func___builtin_sin_use=yes
23474 else
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 glibcxx_cv_func___builtin_sin_use=no
23480 rm -f conftest.$ac_objext conftest.$ac_ext
23481 ac_ext=c
23482 ac_cpp='$CPP $CPPFLAGS'
23483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23491 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
23492 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
23493 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
23494 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
23495 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
23496 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
23497 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
23498 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 else
23501 if test x$gcc_no_link = xyes; then
23502 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23504 { (exit 1); exit 1; }; }
23506 cat >conftest.$ac_ext <<_ACEOF
23507 #line $LINENO "configure"
23508 /* confdefs.h. */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 #include <math.h>
23515 main ()
23517 __builtin_sin(0);
23519 return 0;
23521 _ACEOF
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23524 (eval $ac_link) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } &&
23528 { ac_try='test -s conftest$ac_exeext'
23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); }; }; then
23534 glibcxx_cv_func___builtin_sin_link=yes
23535 else
23536 echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23539 glibcxx_cv_func___builtin_sin_link=no
23541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23546 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
23547 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
23548 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
23549 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23550 cat >>confdefs.h <<_ACEOF
23551 #define ${ac_tr_func} 1
23552 _ACEOF
23558 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
23559 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
23560 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
23561 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
23562 echo $ECHO_N "(cached) $ECHO_C" >&6
23563 else
23567 ac_ext=cc
23568 ac_cpp='$CXXCPP $CPPFLAGS'
23569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23573 cat >conftest.$ac_ext <<_ACEOF
23574 #line $LINENO "configure"
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #include <math.h>
23582 main ()
23584 __builtin_sinl(0);
23586 return 0;
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23591 (eval $ac_compile) 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } &&
23595 { ac_try='test -s conftest.$ac_objext'
23596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597 (eval $ac_try) 2>&5
23598 ac_status=$?
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); }; }; then
23601 glibcxx_cv_func___builtin_sinl_use=yes
23602 else
23603 echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23606 glibcxx_cv_func___builtin_sinl_use=no
23608 rm -f conftest.$ac_objext conftest.$ac_ext
23609 ac_ext=c
23610 ac_cpp='$CPP $CPPFLAGS'
23611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23619 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23620 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23621 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23622 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23623 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23624 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23625 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 else
23629 if test x$gcc_no_link = xyes; then
23630 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23632 { (exit 1); exit 1; }; }
23634 cat >conftest.$ac_ext <<_ACEOF
23635 #line $LINENO "configure"
23636 /* confdefs.h. */
23637 _ACEOF
23638 cat confdefs.h >>conftest.$ac_ext
23639 cat >>conftest.$ac_ext <<_ACEOF
23640 /* end confdefs.h. */
23641 #include <math.h>
23643 main ()
23645 __builtin_sinl(0);
23647 return 0;
23649 _ACEOF
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
23656 { ac_try='test -s conftest$ac_exeext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 glibcxx_cv_func___builtin_sinl_link=yes
23663 else
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23667 glibcxx_cv_func___builtin_sinl_link=no
23669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23674 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23675 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23676 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23677 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23678 cat >>confdefs.h <<_ACEOF
23679 #define ${ac_tr_func} 1
23680 _ACEOF
23687 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23688 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23689 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23690 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 else
23696 ac_ext=cc
23697 ac_cpp='$CXXCPP $CPPFLAGS'
23698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23702 cat >conftest.$ac_ext <<_ACEOF
23703 #line $LINENO "configure"
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 #include <math.h>
23711 main ()
23713 __builtin_cosf(0);
23715 return 0;
23717 _ACEOF
23718 rm -f conftest.$ac_objext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23720 (eval $ac_compile) 2>&5
23721 ac_status=$?
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try='test -s conftest.$ac_objext'
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23727 ac_status=$?
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23730 glibcxx_cv_func___builtin_cosf_use=yes
23731 else
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 glibcxx_cv_func___builtin_cosf_use=no
23737 rm -f conftest.$ac_objext conftest.$ac_ext
23738 ac_ext=c
23739 ac_cpp='$CPP $CPPFLAGS'
23740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23748 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23749 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23750 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23751 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23752 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23753 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23754 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23758 if test x$gcc_no_link = xyes; then
23759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23761 { (exit 1); exit 1; }; }
23763 cat >conftest.$ac_ext <<_ACEOF
23764 #line $LINENO "configure"
23765 /* confdefs.h. */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 #include <math.h>
23772 main ()
23774 __builtin_cosf(0);
23776 return 0;
23778 _ACEOF
23779 rm -f conftest.$ac_objext conftest$ac_exeext
23780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23781 (eval $ac_link) 2>&5
23782 ac_status=$?
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } &&
23785 { ac_try='test -s conftest$ac_exeext'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 glibcxx_cv_func___builtin_cosf_link=yes
23792 else
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 glibcxx_cv_func___builtin_cosf_link=no
23798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23803 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23804 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23805 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23806 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23807 cat >>confdefs.h <<_ACEOF
23808 #define ${ac_tr_func} 1
23809 _ACEOF
23815 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23816 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23817 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23818 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23819 echo $ECHO_N "(cached) $ECHO_C" >&6
23820 else
23824 ac_ext=cc
23825 ac_cpp='$CXXCPP $CPPFLAGS'
23826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23830 cat >conftest.$ac_ext <<_ACEOF
23831 #line $LINENO "configure"
23832 /* confdefs.h. */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23837 #include <math.h>
23839 main ()
23841 __builtin_cos(0);
23843 return 0;
23845 _ACEOF
23846 rm -f conftest.$ac_objext
23847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23848 (eval $ac_compile) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } &&
23852 { ac_try='test -s conftest.$ac_objext'
23853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854 (eval $ac_try) 2>&5
23855 ac_status=$?
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); }; }; then
23858 glibcxx_cv_func___builtin_cos_use=yes
23859 else
23860 echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23863 glibcxx_cv_func___builtin_cos_use=no
23865 rm -f conftest.$ac_objext conftest.$ac_ext
23866 ac_ext=c
23867 ac_cpp='$CPP $CPPFLAGS'
23868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23876 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23877 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23878 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23879 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23880 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23881 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23882 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 else
23886 if test x$gcc_no_link = xyes; then
23887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23889 { (exit 1); exit 1; }; }
23891 cat >conftest.$ac_ext <<_ACEOF
23892 #line $LINENO "configure"
23893 /* confdefs.h. */
23894 _ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h. */
23898 #include <math.h>
23900 main ()
23902 __builtin_cos(0);
23904 return 0;
23906 _ACEOF
23907 rm -f conftest.$ac_objext conftest$ac_exeext
23908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23909 (eval $ac_link) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
23913 { ac_try='test -s conftest$ac_exeext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 glibcxx_cv_func___builtin_cos_link=yes
23920 else
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23924 glibcxx_cv_func___builtin_cos_link=no
23926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23931 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23932 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23933 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23934 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23935 cat >>confdefs.h <<_ACEOF
23936 #define ${ac_tr_func} 1
23937 _ACEOF
23943 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23944 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23945 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23946 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 else
23952 ac_ext=cc
23953 ac_cpp='$CXXCPP $CPPFLAGS'
23954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23958 cat >conftest.$ac_ext <<_ACEOF
23959 #line $LINENO "configure"
23960 /* confdefs.h. */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 #include <math.h>
23967 main ()
23969 __builtin_cosl(0);
23971 return 0;
23973 _ACEOF
23974 rm -f conftest.$ac_objext
23975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23976 (eval $ac_compile) 2>&5
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } &&
23980 { ac_try='test -s conftest.$ac_objext'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986 glibcxx_cv_func___builtin_cosl_use=yes
23987 else
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 glibcxx_cv_func___builtin_cosl_use=no
23993 rm -f conftest.$ac_objext conftest.$ac_ext
23994 ac_ext=c
23995 ac_cpp='$CPP $CPPFLAGS'
23996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24004 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
24005 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
24006 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
24007 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
24008 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
24009 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
24010 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24014 if test x$gcc_no_link = xyes; then
24015 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24016 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24017 { (exit 1); exit 1; }; }
24019 cat >conftest.$ac_ext <<_ACEOF
24020 #line $LINENO "configure"
24021 /* confdefs.h. */
24022 _ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h. */
24026 #include <math.h>
24028 main ()
24030 __builtin_cosl(0);
24032 return 0;
24034 _ACEOF
24035 rm -f conftest.$ac_objext conftest$ac_exeext
24036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24037 (eval $ac_link) 2>&5
24038 ac_status=$?
24039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); } &&
24041 { ac_try='test -s conftest$ac_exeext'
24042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24043 (eval $ac_try) 2>&5
24044 ac_status=$?
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); }; }; then
24047 glibcxx_cv_func___builtin_cosl_link=yes
24048 else
24049 echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24052 glibcxx_cv_func___builtin_cosl_link=no
24054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24059 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
24060 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
24061 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
24062 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24063 cat >>confdefs.h <<_ACEOF
24064 #define ${ac_tr_func} 1
24065 _ACEOF
24071 dummyvar=no
24072 if test x$dummyvar = x"yes"; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE___BUILTIN_ABS 1
24075 _ACEOF
24077 cat >>confdefs.h <<\_ACEOF
24078 #define HAVE___BUILTIN_LABS 1
24079 _ACEOF
24081 cat >>confdefs.h <<\_ACEOF
24082 #define HAVE___BUILTIN_COS 1
24083 _ACEOF
24085 cat >>confdefs.h <<\_ACEOF
24086 #define HAVE___BUILTIN_COSF 1
24087 _ACEOF
24089 cat >>confdefs.h <<\_ACEOF
24090 #define HAVE___BUILTIN_COSL 1
24091 _ACEOF
24093 cat >>confdefs.h <<\_ACEOF
24094 #define HAVE___BUILTIN_FABS 1
24095 _ACEOF
24097 cat >>confdefs.h <<\_ACEOF
24098 #define HAVE___BUILTIN_FABSF 1
24099 _ACEOF
24101 cat >>confdefs.h <<\_ACEOF
24102 #define HAVE___BUILTIN_FABSL 1
24103 _ACEOF
24105 cat >>confdefs.h <<\_ACEOF
24106 #define HAVE___BUILTIN_SIN 1
24107 _ACEOF
24109 cat >>confdefs.h <<\_ACEOF
24110 #define HAVE___BUILTIN_SINF 1
24111 _ACEOF
24113 cat >>confdefs.h <<\_ACEOF
24114 #define HAVE___BUILTIN_SINL 1
24115 _ACEOF
24117 cat >>confdefs.h <<\_ACEOF
24118 #define HAVE___BUILTIN_SQRT 1
24119 _ACEOF
24121 cat >>confdefs.h <<\_ACEOF
24122 #define HAVE___BUILTIN_SQRTF 1
24123 _ACEOF
24125 cat >>confdefs.h <<\_ACEOF
24126 #define HAVE___BUILTIN_SQRTL 1
24127 _ACEOF
24133 echo "$as_me:$LINENO: checking for main in -lm" >&5
24134 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
24135 if test "${ac_cv_lib_m_main+set}" = set; then
24136 echo $ECHO_N "(cached) $ECHO_C" >&6
24137 else
24138 ac_check_lib_save_LIBS=$LIBS
24139 LIBS="-lm $LIBS"
24140 if test x$gcc_no_link = xyes; then
24141 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24143 { (exit 1); exit 1; }; }
24145 cat >conftest.$ac_ext <<_ACEOF
24146 #line $LINENO "configure"
24147 /* confdefs.h. */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24155 main ()
24157 main ();
24159 return 0;
24161 _ACEOF
24162 rm -f conftest.$ac_objext conftest$ac_exeext
24163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24164 (eval $ac_link) 2>&5
24165 ac_status=$?
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } &&
24168 { ac_try='test -s conftest$ac_exeext'
24169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24171 ac_status=$?
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); }; }; then
24174 ac_cv_lib_m_main=yes
24175 else
24176 echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24179 ac_cv_lib_m_main=no
24181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24182 LIBS=$ac_check_lib_save_LIBS
24184 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
24185 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
24186 if test $ac_cv_lib_m_main = yes; then
24187 cat >>confdefs.h <<_ACEOF
24188 #define HAVE_LIBM 1
24189 _ACEOF
24191 LIBS="-lm $LIBS"
24197 for ac_func in nan copysignf
24199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24200 echo "$as_me:$LINENO: checking for $ac_func" >&5
24201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24202 if eval "test \"\${$as_ac_var+set}\" = set"; then
24203 echo $ECHO_N "(cached) $ECHO_C" >&6
24204 else
24205 if test x$gcc_no_link = xyes; then
24206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24208 { (exit 1); exit 1; }; }
24210 cat >conftest.$ac_ext <<_ACEOF
24211 #line $LINENO "configure"
24212 /* confdefs.h. */
24213 _ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24217 /* System header to define __stub macros and hopefully few prototypes,
24218 which can conflict with char $ac_func (); below.
24219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24220 <limits.h> exists even on freestanding compilers. */
24221 #ifdef __STDC__
24222 # include <limits.h>
24223 #else
24224 # include <assert.h>
24225 #endif
24226 /* Override any gcc2 internal prototype to avoid an error. */
24227 #ifdef __cplusplus
24228 extern "C"
24230 #endif
24231 /* We use char because int might match the return type of a gcc2
24232 builtin and then its argument prototype would still apply. */
24233 char $ac_func ();
24234 /* The GNU C library defines this for functions which it implements
24235 to always fail with ENOSYS. Some functions are actually named
24236 something starting with __ and the normal name is an alias. */
24237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24238 choke me
24239 #else
24240 char (*f) () = $ac_func;
24241 #endif
24242 #ifdef __cplusplus
24244 #endif
24247 main ()
24249 return f != $ac_func;
24251 return 0;
24253 _ACEOF
24254 rm -f conftest.$ac_objext conftest$ac_exeext
24255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24256 (eval $ac_link) 2>&5
24257 ac_status=$?
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); } &&
24260 { ac_try='test -s conftest$ac_exeext'
24261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); }; }; then
24266 eval "$as_ac_var=yes"
24267 else
24268 echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24271 eval "$as_ac_var=no"
24273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24277 if test `eval echo '${'$as_ac_var'}'` = yes; then
24278 cat >>confdefs.h <<_ACEOF
24279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24280 _ACEOF
24282 else
24283 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
24285 done
24289 for ac_func in __signbit
24291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24292 echo "$as_me:$LINENO: checking for $ac_func" >&5
24293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24294 if eval "test \"\${$as_ac_var+set}\" = set"; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24296 else
24297 if test x$gcc_no_link = xyes; then
24298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24300 { (exit 1); exit 1; }; }
24302 cat >conftest.$ac_ext <<_ACEOF
24303 #line $LINENO "configure"
24304 /* confdefs.h. */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24309 /* System header to define __stub macros and hopefully few prototypes,
24310 which can conflict with char $ac_func (); below.
24311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24312 <limits.h> exists even on freestanding compilers. */
24313 #ifdef __STDC__
24314 # include <limits.h>
24315 #else
24316 # include <assert.h>
24317 #endif
24318 /* Override any gcc2 internal prototype to avoid an error. */
24319 #ifdef __cplusplus
24320 extern "C"
24322 #endif
24323 /* We use char because int might match the return type of a gcc2
24324 builtin and then its argument prototype would still apply. */
24325 char $ac_func ();
24326 /* The GNU C library defines this for functions which it implements
24327 to always fail with ENOSYS. Some functions are actually named
24328 something starting with __ and the normal name is an alias. */
24329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24330 choke me
24331 #else
24332 char (*f) () = $ac_func;
24333 #endif
24334 #ifdef __cplusplus
24336 #endif
24339 main ()
24341 return f != $ac_func;
24343 return 0;
24345 _ACEOF
24346 rm -f conftest.$ac_objext conftest$ac_exeext
24347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24348 (eval $ac_link) 2>&5
24349 ac_status=$?
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
24352 { ac_try='test -s conftest$ac_exeext'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358 eval "$as_ac_var=yes"
24359 else
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24363 eval "$as_ac_var=no"
24365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24369 if test `eval echo '${'$as_ac_var'}'` = yes; then
24370 cat >>confdefs.h <<_ACEOF
24371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24372 _ACEOF
24374 else
24375 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
24377 done
24380 for ac_func in __signbitf
24382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24383 echo "$as_me:$LINENO: checking for $ac_func" >&5
24384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24385 if eval "test \"\${$as_ac_var+set}\" = set"; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24388 if test x$gcc_no_link = xyes; then
24389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24391 { (exit 1); exit 1; }; }
24393 cat >conftest.$ac_ext <<_ACEOF
24394 #line $LINENO "configure"
24395 /* confdefs.h. */
24396 _ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h. */
24400 /* System header to define __stub macros and hopefully few prototypes,
24401 which can conflict with char $ac_func (); below.
24402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24403 <limits.h> exists even on freestanding compilers. */
24404 #ifdef __STDC__
24405 # include <limits.h>
24406 #else
24407 # include <assert.h>
24408 #endif
24409 /* Override any gcc2 internal prototype to avoid an error. */
24410 #ifdef __cplusplus
24411 extern "C"
24413 #endif
24414 /* We use char because int might match the return type of a gcc2
24415 builtin and then its argument prototype would still apply. */
24416 char $ac_func ();
24417 /* The GNU C library defines this for functions which it implements
24418 to always fail with ENOSYS. Some functions are actually named
24419 something starting with __ and the normal name is an alias. */
24420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24421 choke me
24422 #else
24423 char (*f) () = $ac_func;
24424 #endif
24425 #ifdef __cplusplus
24427 #endif
24430 main ()
24432 return f != $ac_func;
24434 return 0;
24436 _ACEOF
24437 rm -f conftest.$ac_objext conftest$ac_exeext
24438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24439 (eval $ac_link) 2>&5
24440 ac_status=$?
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } &&
24443 { ac_try='test -s conftest$ac_exeext'
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 eval "$as_ac_var=yes"
24450 else
24451 echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24454 eval "$as_ac_var=no"
24456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24460 if test `eval echo '${'$as_ac_var'}'` = yes; then
24461 cat >>confdefs.h <<_ACEOF
24462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24463 _ACEOF
24465 else
24466 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
24468 done
24471 if test x$ac_cv_func_copysignl = x"yes"; then
24473 for ac_func in __signbitl
24475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24476 echo "$as_me:$LINENO: checking for $ac_func" >&5
24477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24478 if eval "test \"\${$as_ac_var+set}\" = set"; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 else
24481 if test x$gcc_no_link = xyes; then
24482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24484 { (exit 1); exit 1; }; }
24486 cat >conftest.$ac_ext <<_ACEOF
24487 #line $LINENO "configure"
24488 /* confdefs.h. */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 /* System header to define __stub macros and hopefully few prototypes,
24494 which can conflict with char $ac_func (); below.
24495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496 <limits.h> exists even on freestanding compilers. */
24497 #ifdef __STDC__
24498 # include <limits.h>
24499 #else
24500 # include <assert.h>
24501 #endif
24502 /* Override any gcc2 internal prototype to avoid an error. */
24503 #ifdef __cplusplus
24504 extern "C"
24506 #endif
24507 /* We use char because int might match the return type of a gcc2
24508 builtin and then its argument prototype would still apply. */
24509 char $ac_func ();
24510 /* The GNU C library defines this for functions which it implements
24511 to always fail with ENOSYS. Some functions are actually named
24512 something starting with __ and the normal name is an alias. */
24513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24514 choke me
24515 #else
24516 char (*f) () = $ac_func;
24517 #endif
24518 #ifdef __cplusplus
24520 #endif
24523 main ()
24525 return f != $ac_func;
24527 return 0;
24529 _ACEOF
24530 rm -f conftest.$ac_objext conftest$ac_exeext
24531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24532 (eval $ac_link) 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } &&
24536 { ac_try='test -s conftest$ac_exeext'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24539 ac_status=$?
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 eval "$as_ac_var=yes"
24543 else
24544 echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 eval "$as_ac_var=no"
24549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24553 if test `eval echo '${'$as_ac_var'}'` = yes; then
24554 cat >>confdefs.h <<_ACEOF
24555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24556 _ACEOF
24558 else
24559 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
24561 done
24565 # XXX Review this. Nothing uses it.
24566 if test -n "$LIBMATHOBJS"; then
24567 need_libmath=yes
24572 # Test wchar.h for mbstate_t, which is needed for char_traits and
24573 # others even if wchar_t support is not on.
24574 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24575 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24576 cat >conftest.$ac_ext <<_ACEOF
24577 #line $LINENO "configure"
24578 /* confdefs.h. */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 #include <wchar.h>
24585 main ()
24587 mbstate_t teststate;
24589 return 0;
24591 _ACEOF
24592 rm -f conftest.$ac_objext
24593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24594 (eval $ac_compile) 2>&5
24595 ac_status=$?
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
24598 { ac_try='test -s conftest.$ac_objext'
24599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24601 ac_status=$?
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; }; then
24604 have_mbstate_t=yes
24605 else
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 have_mbstate_t=no
24611 rm -f conftest.$ac_objext conftest.$ac_ext
24612 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24613 echo "${ECHO_T}$have_mbstate_t" >&6
24614 if test x"$have_mbstate_t" = xyes; then
24615 cat >>confdefs.h <<\_ACEOF
24616 #define HAVE_MBSTATE_T 1
24617 _ACEOF
24621 # Sanity check for existence of ISO C99 headers for extended encoding.
24623 for ac_header in wchar.h
24625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24627 echo "$as_me:$LINENO: checking for $ac_header" >&5
24628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24634 else
24635 # Is the header compilable?
24636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24638 cat >conftest.$ac_ext <<_ACEOF
24639 #line $LINENO "configure"
24640 /* confdefs.h. */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 $ac_includes_default
24646 #include <$ac_header>
24647 _ACEOF
24648 rm -f conftest.$ac_objext
24649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24650 (eval $ac_compile) 2>&5
24651 ac_status=$?
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } &&
24654 { ac_try='test -s conftest.$ac_objext'
24655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; }; then
24660 ac_header_compiler=yes
24661 else
24662 echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 ac_header_compiler=no
24667 rm -f conftest.$ac_objext conftest.$ac_ext
24668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24669 echo "${ECHO_T}$ac_header_compiler" >&6
24671 # Is the header present?
24672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24674 cat >conftest.$ac_ext <<_ACEOF
24675 #line $LINENO "configure"
24676 /* confdefs.h. */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24681 #include <$ac_header>
24682 _ACEOF
24683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24685 ac_status=$?
24686 grep -v '^ *+' conftest.er1 >conftest.err
24687 rm -f conftest.er1
24688 cat conftest.err >&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } >/dev/null; then
24691 if test -s conftest.err; then
24692 ac_cpp_err=$ac_c_preproc_warn_flag
24693 else
24694 ac_cpp_err=
24696 else
24697 ac_cpp_err=yes
24699 if test -z "$ac_cpp_err"; then
24700 ac_header_preproc=yes
24701 else
24702 echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24705 ac_header_preproc=no
24707 rm -f conftest.err conftest.$ac_ext
24708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24709 echo "${ECHO_T}$ac_header_preproc" >&6
24711 # So? What about this header?
24712 case $ac_header_compiler:$ac_header_preproc in
24713 yes:no )
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24719 cat <<\_ASBOX
24720 ## ------------------------------------ ##
24721 ## Report this to bug-autoconf@gnu.org. ##
24722 ## ------------------------------------ ##
24723 _ASBOX
24725 sed "s/^/$as_me: WARNING: /" >&2
24727 no:yes )
24728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24735 cat <<\_ASBOX
24736 ## ------------------------------------ ##
24737 ## Report this to bug-autoconf@gnu.org. ##
24738 ## ------------------------------------ ##
24739 _ASBOX
24741 sed "s/^/$as_me: WARNING: /" >&2
24743 esac
24744 echo "$as_me:$LINENO: checking for $ac_header" >&5
24745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
24748 else
24749 eval "$as_ac_Header=$ac_header_preproc"
24751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24756 cat >>confdefs.h <<_ACEOF
24757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24758 _ACEOF
24759 ac_has_wchar_h=yes
24760 else
24761 ac_has_wchar_h=no
24764 done
24767 for ac_header in wctype.h
24769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24771 echo "$as_me:$LINENO: checking for $ac_header" >&5
24772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24778 else
24779 # Is the header compilable?
24780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24782 cat >conftest.$ac_ext <<_ACEOF
24783 #line $LINENO "configure"
24784 /* confdefs.h. */
24785 _ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h. */
24789 $ac_includes_default
24790 #include <$ac_header>
24791 _ACEOF
24792 rm -f conftest.$ac_objext
24793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24794 (eval $ac_compile) 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } &&
24798 { ac_try='test -s conftest.$ac_objext'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; }; then
24804 ac_header_compiler=yes
24805 else
24806 echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24809 ac_header_compiler=no
24811 rm -f conftest.$ac_objext conftest.$ac_ext
24812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24813 echo "${ECHO_T}$ac_header_compiler" >&6
24815 # Is the header present?
24816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24818 cat >conftest.$ac_ext <<_ACEOF
24819 #line $LINENO "configure"
24820 /* confdefs.h. */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h. */
24825 #include <$ac_header>
24826 _ACEOF
24827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24829 ac_status=$?
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } >/dev/null; then
24835 if test -s conftest.err; then
24836 ac_cpp_err=$ac_c_preproc_warn_flag
24837 else
24838 ac_cpp_err=
24840 else
24841 ac_cpp_err=yes
24843 if test -z "$ac_cpp_err"; then
24844 ac_header_preproc=yes
24845 else
24846 echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24849 ac_header_preproc=no
24851 rm -f conftest.err conftest.$ac_ext
24852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24853 echo "${ECHO_T}$ac_header_preproc" >&6
24855 # So? What about this header?
24856 case $ac_header_compiler:$ac_header_preproc in
24857 yes:no )
24858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24863 cat <<\_ASBOX
24864 ## ------------------------------------ ##
24865 ## Report this to bug-autoconf@gnu.org. ##
24866 ## ------------------------------------ ##
24867 _ASBOX
24869 sed "s/^/$as_me: WARNING: /" >&2
24871 no:yes )
24872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24879 cat <<\_ASBOX
24880 ## ------------------------------------ ##
24881 ## Report this to bug-autoconf@gnu.org. ##
24882 ## ------------------------------------ ##
24883 _ASBOX
24885 sed "s/^/$as_me: WARNING: /" >&2
24887 esac
24888 echo "$as_me:$LINENO: checking for $ac_header" >&5
24889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892 else
24893 eval "$as_ac_Header=$ac_header_preproc"
24895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24900 cat >>confdefs.h <<_ACEOF
24901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24902 _ACEOF
24903 ac_has_wctype_h=yes
24904 else
24905 ac_has_wctype_h=no
24908 done
24911 # Only continue checking if the ISO C99 headers exist and support is on.
24912 if test x"$ac_has_wchar_h" = xyes &&
24913 test x"$ac_has_wctype_h" = xyes &&
24914 test x"$enable_c_mbchar" != xno; then
24916 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24917 # numeric_limits can instantiate type_traits<wchar_t>
24918 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24919 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24920 cat >conftest.$ac_ext <<_ACEOF
24921 #line $LINENO "configure"
24922 /* confdefs.h. */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 #include <wchar.h>
24929 main ()
24931 int i = WCHAR_MIN; int j = WCHAR_MAX;
24933 return 0;
24935 _ACEOF
24936 rm -f conftest.$ac_objext
24937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24938 (eval $ac_compile) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } &&
24942 { ac_try='test -s conftest.$ac_objext'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; }; then
24948 has_wchar_minmax=yes
24949 else
24950 echo "$as_me: failed program was:" >&5
24951 sed 's/^/| /' conftest.$ac_ext >&5
24953 has_wchar_minmax=no
24955 rm -f conftest.$ac_objext conftest.$ac_ext
24956 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24957 echo "${ECHO_T}$has_wchar_minmax" >&6
24959 # Test wchar.h for WEOF, which is what we use to determine whether
24960 # to specialize for char_traits<wchar_t> or not.
24961 echo "$as_me:$LINENO: checking for WEOF" >&5
24962 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24963 cat >conftest.$ac_ext <<_ACEOF
24964 #line $LINENO "configure"
24965 /* confdefs.h. */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24971 #include <wchar.h>
24972 #include <stddef.h>
24974 main ()
24976 wint_t i = WEOF;
24978 return 0;
24980 _ACEOF
24981 rm -f conftest.$ac_objext
24982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24983 (eval $ac_compile) 2>&5
24984 ac_status=$?
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } &&
24987 { ac_try='test -s conftest.$ac_objext'
24988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989 (eval $ac_try) 2>&5
24990 ac_status=$?
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); }; }; then
24993 has_weof=yes
24994 else
24995 echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24998 has_weof=no
25000 rm -f conftest.$ac_objext conftest.$ac_ext
25001 echo "$as_me:$LINENO: result: $has_weof" >&5
25002 echo "${ECHO_T}$has_weof" >&6
25004 # Tests for wide character functions used in char_traits<wchar_t>.
25005 ac_wfuncs=yes
25012 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
25014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25015 echo "$as_me:$LINENO: checking for $ac_func" >&5
25016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25017 if eval "test \"\${$as_ac_var+set}\" = set"; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020 if test x$gcc_no_link = xyes; then
25021 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25022 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25023 { (exit 1); exit 1; }; }
25025 cat >conftest.$ac_ext <<_ACEOF
25026 #line $LINENO "configure"
25027 /* confdefs.h. */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 /* System header to define __stub macros and hopefully few prototypes,
25033 which can conflict with char $ac_func (); below.
25034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25035 <limits.h> exists even on freestanding compilers. */
25036 #ifdef __STDC__
25037 # include <limits.h>
25038 #else
25039 # include <assert.h>
25040 #endif
25041 /* Override any gcc2 internal prototype to avoid an error. */
25042 #ifdef __cplusplus
25043 extern "C"
25045 #endif
25046 /* We use char because int might match the return type of a gcc2
25047 builtin and then its argument prototype would still apply. */
25048 char $ac_func ();
25049 /* The GNU C library defines this for functions which it implements
25050 to always fail with ENOSYS. Some functions are actually named
25051 something starting with __ and the normal name is an alias. */
25052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25053 choke me
25054 #else
25055 char (*f) () = $ac_func;
25056 #endif
25057 #ifdef __cplusplus
25059 #endif
25062 main ()
25064 return f != $ac_func;
25066 return 0;
25068 _ACEOF
25069 rm -f conftest.$ac_objext conftest$ac_exeext
25070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25071 (eval $ac_link) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } &&
25075 { ac_try='test -s conftest$ac_exeext'
25076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); }; }; then
25081 eval "$as_ac_var=yes"
25082 else
25083 echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25086 eval "$as_ac_var=no"
25088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25092 if test `eval echo '${'$as_ac_var'}'` = yes; then
25093 cat >>confdefs.h <<_ACEOF
25094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25095 _ACEOF
25097 else
25098 ac_wfuncs=no
25100 done
25103 # Checks for names injected into std:: by the c_std headers.
25154 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
25155 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
25156 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
25157 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
25158 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
25159 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
25161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25162 echo "$as_me:$LINENO: checking for $ac_func" >&5
25163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25164 if eval "test \"\${$as_ac_var+set}\" = set"; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167 if test x$gcc_no_link = xyes; then
25168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25170 { (exit 1); exit 1; }; }
25172 cat >conftest.$ac_ext <<_ACEOF
25173 #line $LINENO "configure"
25174 /* confdefs.h. */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25179 /* System header to define __stub macros and hopefully few prototypes,
25180 which can conflict with char $ac_func (); below.
25181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25182 <limits.h> exists even on freestanding compilers. */
25183 #ifdef __STDC__
25184 # include <limits.h>
25185 #else
25186 # include <assert.h>
25187 #endif
25188 /* Override any gcc2 internal prototype to avoid an error. */
25189 #ifdef __cplusplus
25190 extern "C"
25192 #endif
25193 /* We use char because int might match the return type of a gcc2
25194 builtin and then its argument prototype would still apply. */
25195 char $ac_func ();
25196 /* The GNU C library defines this for functions which it implements
25197 to always fail with ENOSYS. Some functions are actually named
25198 something starting with __ and the normal name is an alias. */
25199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25200 choke me
25201 #else
25202 char (*f) () = $ac_func;
25203 #endif
25204 #ifdef __cplusplus
25206 #endif
25209 main ()
25211 return f != $ac_func;
25213 return 0;
25215 _ACEOF
25216 rm -f conftest.$ac_objext conftest$ac_exeext
25217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25218 (eval $ac_link) 2>&5
25219 ac_status=$?
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } &&
25222 { ac_try='test -s conftest$ac_exeext'
25223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
25228 eval "$as_ac_var=yes"
25229 else
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25233 eval "$as_ac_var=no"
25235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25239 if test `eval echo '${'$as_ac_var'}'` = yes; then
25240 cat >>confdefs.h <<_ACEOF
25241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25242 _ACEOF
25244 else
25245 ac_wfuncs=no
25247 done
25250 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
25251 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
25252 if test x"$has_weof" = xyes &&
25253 test x"$has_wchar_minmax" = xyes &&
25254 test x"$ac_wfuncs" = xyes;
25255 then
25256 ac_isoC99_wchar_t=yes
25257 else
25258 ac_isoC99_wchar_t=no
25260 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
25261 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
25263 # Use iconv for wchar_t to char conversions. As such, check for
25264 # X/Open Portability Guide, version 2 features (XPG2).
25265 if test "${ac_cv_header_iconv_h+set}" = set; then
25266 echo "$as_me:$LINENO: checking for iconv.h" >&5
25267 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25268 if test "${ac_cv_header_iconv_h+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25272 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25273 else
25274 # Is the header compilable?
25275 echo "$as_me:$LINENO: checking iconv.h usability" >&5
25276 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
25277 cat >conftest.$ac_ext <<_ACEOF
25278 #line $LINENO "configure"
25279 /* confdefs.h. */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25284 $ac_includes_default
25285 #include <iconv.h>
25286 _ACEOF
25287 rm -f conftest.$ac_objext
25288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25289 (eval $ac_compile) 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } &&
25293 { ac_try='test -s conftest.$ac_objext'
25294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; }; then
25299 ac_header_compiler=yes
25300 else
25301 echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25304 ac_header_compiler=no
25306 rm -f conftest.$ac_objext conftest.$ac_ext
25307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25308 echo "${ECHO_T}$ac_header_compiler" >&6
25310 # Is the header present?
25311 echo "$as_me:$LINENO: checking iconv.h presence" >&5
25312 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
25313 cat >conftest.$ac_ext <<_ACEOF
25314 #line $LINENO "configure"
25315 /* confdefs.h. */
25316 _ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
25319 /* end confdefs.h. */
25320 #include <iconv.h>
25321 _ACEOF
25322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25324 ac_status=$?
25325 grep -v '^ *+' conftest.er1 >conftest.err
25326 rm -f conftest.er1
25327 cat conftest.err >&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); } >/dev/null; then
25330 if test -s conftest.err; then
25331 ac_cpp_err=$ac_c_preproc_warn_flag
25332 else
25333 ac_cpp_err=
25335 else
25336 ac_cpp_err=yes
25338 if test -z "$ac_cpp_err"; then
25339 ac_header_preproc=yes
25340 else
25341 echo "$as_me: failed program was:" >&5
25342 sed 's/^/| /' conftest.$ac_ext >&5
25344 ac_header_preproc=no
25346 rm -f conftest.err conftest.$ac_ext
25347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25348 echo "${ECHO_T}$ac_header_preproc" >&6
25350 # So? What about this header?
25351 case $ac_header_compiler:$ac_header_preproc in
25352 yes:no )
25353 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
25354 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25356 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25358 cat <<\_ASBOX
25359 ## ------------------------------------ ##
25360 ## Report this to bug-autoconf@gnu.org. ##
25361 ## ------------------------------------ ##
25362 _ASBOX
25364 sed "s/^/$as_me: WARNING: /" >&2
25366 no:yes )
25367 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
25368 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
25370 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25372 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25374 cat <<\_ASBOX
25375 ## ------------------------------------ ##
25376 ## Report this to bug-autoconf@gnu.org. ##
25377 ## ------------------------------------ ##
25378 _ASBOX
25380 sed "s/^/$as_me: WARNING: /" >&2
25382 esac
25383 echo "$as_me:$LINENO: checking for iconv.h" >&5
25384 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25385 if test "${ac_cv_header_iconv_h+set}" = set; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25387 else
25388 ac_cv_header_iconv_h=$ac_header_preproc
25390 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25391 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25394 if test $ac_cv_header_iconv_h = yes; then
25395 ac_has_iconv_h=yes
25396 else
25397 ac_has_iconv_h=no
25401 if test "${ac_cv_header_langinfo_h+set}" = set; then
25402 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25403 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25404 if test "${ac_cv_header_langinfo_h+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25407 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25408 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25409 else
25410 # Is the header compilable?
25411 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
25412 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
25413 cat >conftest.$ac_ext <<_ACEOF
25414 #line $LINENO "configure"
25415 /* confdefs.h. */
25416 _ACEOF
25417 cat confdefs.h >>conftest.$ac_ext
25418 cat >>conftest.$ac_ext <<_ACEOF
25419 /* end confdefs.h. */
25420 $ac_includes_default
25421 #include <langinfo.h>
25422 _ACEOF
25423 rm -f conftest.$ac_objext
25424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25425 (eval $ac_compile) 2>&5
25426 ac_status=$?
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } &&
25429 { ac_try='test -s conftest.$ac_objext'
25430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; }; then
25435 ac_header_compiler=yes
25436 else
25437 echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25440 ac_header_compiler=no
25442 rm -f conftest.$ac_objext conftest.$ac_ext
25443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25444 echo "${ECHO_T}$ac_header_compiler" >&6
25446 # Is the header present?
25447 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
25448 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
25449 cat >conftest.$ac_ext <<_ACEOF
25450 #line $LINENO "configure"
25451 /* confdefs.h. */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 #include <langinfo.h>
25457 _ACEOF
25458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25460 ac_status=$?
25461 grep -v '^ *+' conftest.er1 >conftest.err
25462 rm -f conftest.er1
25463 cat conftest.err >&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } >/dev/null; then
25466 if test -s conftest.err; then
25467 ac_cpp_err=$ac_c_preproc_warn_flag
25468 else
25469 ac_cpp_err=
25471 else
25472 ac_cpp_err=yes
25474 if test -z "$ac_cpp_err"; then
25475 ac_header_preproc=yes
25476 else
25477 echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25480 ac_header_preproc=no
25482 rm -f conftest.err conftest.$ac_ext
25483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25484 echo "${ECHO_T}$ac_header_preproc" >&6
25486 # So? What about this header?
25487 case $ac_header_compiler:$ac_header_preproc in
25488 yes:no )
25489 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
25490 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25491 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25492 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25494 cat <<\_ASBOX
25495 ## ------------------------------------ ##
25496 ## Report this to bug-autoconf@gnu.org. ##
25497 ## ------------------------------------ ##
25498 _ASBOX
25500 sed "s/^/$as_me: WARNING: /" >&2
25502 no:yes )
25503 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
25504 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
25506 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
25507 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25508 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25510 cat <<\_ASBOX
25511 ## ------------------------------------ ##
25512 ## Report this to bug-autoconf@gnu.org. ##
25513 ## ------------------------------------ ##
25514 _ASBOX
25516 sed "s/^/$as_me: WARNING: /" >&2
25518 esac
25519 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25520 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25521 if test "${ac_cv_header_langinfo_h+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25523 else
25524 ac_cv_header_langinfo_h=$ac_header_preproc
25526 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25527 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25530 if test $ac_cv_header_langinfo_h = yes; then
25531 ac_has_langinfo_h=yes
25532 else
25533 ac_has_langinfo_h=no
25538 # Check for existence of libiconv.a providing XPG2 wchar_t support.
25539 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
25540 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
25541 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544 ac_check_lib_save_LIBS=$LIBS
25545 LIBS="-liconv $LIBS"
25546 if test x$gcc_no_link = xyes; then
25547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25549 { (exit 1); exit 1; }; }
25551 cat >conftest.$ac_ext <<_ACEOF
25552 #line $LINENO "configure"
25553 /* confdefs.h. */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25559 /* Override any gcc2 internal prototype to avoid an error. */
25560 #ifdef __cplusplus
25561 extern "C"
25562 #endif
25563 /* We use char because int might match the return type of a gcc2
25564 builtin and then its argument prototype would still apply. */
25565 char iconv ();
25567 main ()
25569 iconv ();
25571 return 0;
25573 _ACEOF
25574 rm -f conftest.$ac_objext conftest$ac_exeext
25575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25576 (eval $ac_link) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } &&
25580 { ac_try='test -s conftest$ac_exeext'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
25586 ac_cv_lib_iconv_iconv=yes
25587 else
25588 echo "$as_me: failed program was:" >&5
25589 sed 's/^/| /' conftest.$ac_ext >&5
25591 ac_cv_lib_iconv_iconv=no
25593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25594 LIBS=$ac_check_lib_save_LIBS
25596 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
25597 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
25598 if test $ac_cv_lib_iconv_iconv = yes; then
25599 libiconv="-liconv"
25602 ac_save_LIBS="$LIBS"
25603 LIBS="$LIBS $libiconv"
25609 for ac_func in iconv_open iconv_close iconv nl_langinfo
25611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25612 echo "$as_me:$LINENO: checking for $ac_func" >&5
25613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25614 if eval "test \"\${$as_ac_var+set}\" = set"; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25616 else
25617 if test x$gcc_no_link = xyes; then
25618 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25619 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25620 { (exit 1); exit 1; }; }
25622 cat >conftest.$ac_ext <<_ACEOF
25623 #line $LINENO "configure"
25624 /* confdefs.h. */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25629 /* System header to define __stub macros and hopefully few prototypes,
25630 which can conflict with char $ac_func (); below.
25631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25632 <limits.h> exists even on freestanding compilers. */
25633 #ifdef __STDC__
25634 # include <limits.h>
25635 #else
25636 # include <assert.h>
25637 #endif
25638 /* Override any gcc2 internal prototype to avoid an error. */
25639 #ifdef __cplusplus
25640 extern "C"
25642 #endif
25643 /* We use char because int might match the return type of a gcc2
25644 builtin and then its argument prototype would still apply. */
25645 char $ac_func ();
25646 /* The GNU C library defines this for functions which it implements
25647 to always fail with ENOSYS. Some functions are actually named
25648 something starting with __ and the normal name is an alias. */
25649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25650 choke me
25651 #else
25652 char (*f) () = $ac_func;
25653 #endif
25654 #ifdef __cplusplus
25656 #endif
25659 main ()
25661 return f != $ac_func;
25663 return 0;
25665 _ACEOF
25666 rm -f conftest.$ac_objext conftest$ac_exeext
25667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25668 (eval $ac_link) 2>&5
25669 ac_status=$?
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); } &&
25672 { ac_try='test -s conftest$ac_exeext'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; }; then
25678 eval "$as_ac_var=yes"
25679 else
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25683 eval "$as_ac_var=no"
25685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25689 if test `eval echo '${'$as_ac_var'}'` = yes; then
25690 cat >>confdefs.h <<_ACEOF
25691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25692 _ACEOF
25693 ac_XPG2funcs=yes
25694 else
25695 ac_XPG2funcs=no
25697 done
25700 LIBS="$ac_save_LIBS"
25702 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25703 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25704 if test x"$ac_has_iconv_h" = xyes &&
25705 test x"$ac_has_langinfo_h" = xyes &&
25706 test x"$ac_XPG2funcs" = xyes;
25707 then
25708 ac_XPG2_wchar_t=yes
25709 else
25710 ac_XPG2_wchar_t=no
25712 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25713 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25715 # At the moment, only enable wchar_t specializations if all the
25716 # above support is present.
25717 if test x"$ac_isoC99_wchar_t" = xyes &&
25718 test x"$ac_XPG2_wchar_t" = xyes;
25719 then
25720 cat >>confdefs.h <<\_ACEOF
25721 #define _GLIBCXX_USE_WCHAR_T 1
25722 _ACEOF
25724 enable_wchar_t=yes
25727 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25728 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25729 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25730 echo "${ECHO_T}$enable_wchar_t" >&6
25733 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25734 ac_save_CXXFLAGS="$CXXFLAGS"
25735 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25738 echo "$as_me:$LINENO: checking for strtold declaration" >&5
25739 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25740 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25741 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25742 echo $ECHO_N "(cached) $ECHO_C" >&6
25743 else
25747 ac_ext=cc
25748 ac_cpp='$CXXCPP $CPPFLAGS'
25749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25753 cat >conftest.$ac_ext <<_ACEOF
25754 #line $LINENO "configure"
25755 /* confdefs.h. */
25756 _ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h. */
25760 #include <stdlib.h>
25762 main ()
25764 strtold(0, 0);
25766 return 0;
25768 _ACEOF
25769 rm -f conftest.$ac_objext
25770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25771 (eval $ac_compile) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } &&
25775 { ac_try='test -s conftest.$ac_objext'
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25778 ac_status=$?
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; }; then
25781 glibcxx_cv_func_strtold_use=yes
25782 else
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25786 glibcxx_cv_func_strtold_use=no
25788 rm -f conftest.$ac_objext conftest.$ac_ext
25789 ac_ext=c
25790 ac_cpp='$CPP $CPPFLAGS'
25791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25799 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25800 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25801 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25803 for ac_func in strtold
25805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25806 echo "$as_me:$LINENO: checking for $ac_func" >&5
25807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25808 if eval "test \"\${$as_ac_var+set}\" = set"; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25810 else
25811 if test x$gcc_no_link = xyes; then
25812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25814 { (exit 1); exit 1; }; }
25816 cat >conftest.$ac_ext <<_ACEOF
25817 #line $LINENO "configure"
25818 /* confdefs.h. */
25819 _ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h. */
25823 /* System header to define __stub macros and hopefully few prototypes,
25824 which can conflict with char $ac_func (); below.
25825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25826 <limits.h> exists even on freestanding compilers. */
25827 #ifdef __STDC__
25828 # include <limits.h>
25829 #else
25830 # include <assert.h>
25831 #endif
25832 /* Override any gcc2 internal prototype to avoid an error. */
25833 #ifdef __cplusplus
25834 extern "C"
25836 #endif
25837 /* We use char because int might match the return type of a gcc2
25838 builtin and then its argument prototype would still apply. */
25839 char $ac_func ();
25840 /* The GNU C library defines this for functions which it implements
25841 to always fail with ENOSYS. Some functions are actually named
25842 something starting with __ and the normal name is an alias. */
25843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25844 choke me
25845 #else
25846 char (*f) () = $ac_func;
25847 #endif
25848 #ifdef __cplusplus
25850 #endif
25853 main ()
25855 return f != $ac_func;
25857 return 0;
25859 _ACEOF
25860 rm -f conftest.$ac_objext conftest$ac_exeext
25861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25862 (eval $ac_link) 2>&5
25863 ac_status=$?
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
25866 { ac_try='test -s conftest$ac_exeext'
25867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); }; }; then
25872 eval "$as_ac_var=yes"
25873 else
25874 echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25877 eval "$as_ac_var=no"
25879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25883 if test `eval echo '${'$as_ac_var'}'` = yes; then
25884 cat >>confdefs.h <<_ACEOF
25885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25886 _ACEOF
25889 done
25894 echo "$as_me:$LINENO: checking for strtof declaration" >&5
25895 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25896 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25897 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25899 else
25903 ac_ext=cc
25904 ac_cpp='$CXXCPP $CPPFLAGS'
25905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25909 cat >conftest.$ac_ext <<_ACEOF
25910 #line $LINENO "configure"
25911 /* confdefs.h. */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25916 #include <stdlib.h>
25918 main ()
25920 strtof(0, 0);
25922 return 0;
25924 _ACEOF
25925 rm -f conftest.$ac_objext
25926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25927 (eval $ac_compile) 2>&5
25928 ac_status=$?
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } &&
25931 { ac_try='test -s conftest.$ac_objext'
25932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933 (eval $ac_try) 2>&5
25934 ac_status=$?
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); }; }; then
25937 glibcxx_cv_func_strtof_use=yes
25938 else
25939 echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25942 glibcxx_cv_func_strtof_use=no
25944 rm -f conftest.$ac_objext conftest.$ac_ext
25945 ac_ext=c
25946 ac_cpp='$CPP $CPPFLAGS'
25947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25955 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
25956 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
25957 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
25959 for ac_func in strtof
25961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25962 echo "$as_me:$LINENO: checking for $ac_func" >&5
25963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25964 if eval "test \"\${$as_ac_var+set}\" = set"; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
25966 else
25967 if test x$gcc_no_link = xyes; then
25968 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25970 { (exit 1); exit 1; }; }
25972 cat >conftest.$ac_ext <<_ACEOF
25973 #line $LINENO "configure"
25974 /* confdefs.h. */
25975 _ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h. */
25979 /* System header to define __stub macros and hopefully few prototypes,
25980 which can conflict with char $ac_func (); below.
25981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25982 <limits.h> exists even on freestanding compilers. */
25983 #ifdef __STDC__
25984 # include <limits.h>
25985 #else
25986 # include <assert.h>
25987 #endif
25988 /* Override any gcc2 internal prototype to avoid an error. */
25989 #ifdef __cplusplus
25990 extern "C"
25992 #endif
25993 /* We use char because int might match the return type of a gcc2
25994 builtin and then its argument prototype would still apply. */
25995 char $ac_func ();
25996 /* The GNU C library defines this for functions which it implements
25997 to always fail with ENOSYS. Some functions are actually named
25998 something starting with __ and the normal name is an alias. */
25999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26000 choke me
26001 #else
26002 char (*f) () = $ac_func;
26003 #endif
26004 #ifdef __cplusplus
26006 #endif
26009 main ()
26011 return f != $ac_func;
26013 return 0;
26015 _ACEOF
26016 rm -f conftest.$ac_objext conftest$ac_exeext
26017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26018 (eval $ac_link) 2>&5
26019 ac_status=$?
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } &&
26022 { ac_try='test -s conftest$ac_exeext'
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; }; then
26028 eval "$as_ac_var=yes"
26029 else
26030 echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26033 eval "$as_ac_var=no"
26035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26039 if test `eval echo '${'$as_ac_var'}'` = yes; then
26040 cat >>confdefs.h <<_ACEOF
26041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26042 _ACEOF
26045 done
26050 for ac_func in drand48
26052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26053 echo "$as_me:$LINENO: checking for $ac_func" >&5
26054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26055 if eval "test \"\${$as_ac_var+set}\" = set"; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058 if test x$gcc_no_link = xyes; then
26059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26061 { (exit 1); exit 1; }; }
26063 cat >conftest.$ac_ext <<_ACEOF
26064 #line $LINENO "configure"
26065 /* confdefs.h. */
26066 _ACEOF
26067 cat confdefs.h >>conftest.$ac_ext
26068 cat >>conftest.$ac_ext <<_ACEOF
26069 /* end confdefs.h. */
26070 /* System header to define __stub macros and hopefully few prototypes,
26071 which can conflict with char $ac_func (); below.
26072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26073 <limits.h> exists even on freestanding compilers. */
26074 #ifdef __STDC__
26075 # include <limits.h>
26076 #else
26077 # include <assert.h>
26078 #endif
26079 /* Override any gcc2 internal prototype to avoid an error. */
26080 #ifdef __cplusplus
26081 extern "C"
26083 #endif
26084 /* We use char because int might match the return type of a gcc2
26085 builtin and then its argument prototype would still apply. */
26086 char $ac_func ();
26087 /* The GNU C library defines this for functions which it implements
26088 to always fail with ENOSYS. Some functions are actually named
26089 something starting with __ and the normal name is an alias. */
26090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26091 choke me
26092 #else
26093 char (*f) () = $ac_func;
26094 #endif
26095 #ifdef __cplusplus
26097 #endif
26100 main ()
26102 return f != $ac_func;
26104 return 0;
26106 _ACEOF
26107 rm -f conftest.$ac_objext conftest$ac_exeext
26108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26109 (eval $ac_link) 2>&5
26110 ac_status=$?
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } &&
26113 { ac_try='test -s conftest$ac_exeext'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
26119 eval "$as_ac_var=yes"
26120 else
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26124 eval "$as_ac_var=no"
26126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26130 if test `eval echo '${'$as_ac_var'}'` = yes; then
26131 cat >>confdefs.h <<_ACEOF
26132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26133 _ACEOF
26136 done
26139 CXXFLAGS="$ac_save_CXXFLAGS"
26142 # For showmanyc_helper().
26145 for ac_header in sys/ioctl.h sys/filio.h
26147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26149 echo "$as_me:$LINENO: checking for $ac_header" >&5
26150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26152 echo $ECHO_N "(cached) $ECHO_C" >&6
26154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26156 else
26157 # Is the header compilable?
26158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26160 cat >conftest.$ac_ext <<_ACEOF
26161 #line $LINENO "configure"
26162 /* confdefs.h. */
26163 _ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h. */
26167 $ac_includes_default
26168 #include <$ac_header>
26169 _ACEOF
26170 rm -f conftest.$ac_objext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26172 (eval $ac_compile) 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } &&
26176 { ac_try='test -s conftest.$ac_objext'
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; }; then
26182 ac_header_compiler=yes
26183 else
26184 echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26187 ac_header_compiler=no
26189 rm -f conftest.$ac_objext conftest.$ac_ext
26190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26191 echo "${ECHO_T}$ac_header_compiler" >&6
26193 # Is the header present?
26194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26196 cat >conftest.$ac_ext <<_ACEOF
26197 #line $LINENO "configure"
26198 /* confdefs.h. */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26203 #include <$ac_header>
26204 _ACEOF
26205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26207 ac_status=$?
26208 grep -v '^ *+' conftest.er1 >conftest.err
26209 rm -f conftest.er1
26210 cat conftest.err >&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } >/dev/null; then
26213 if test -s conftest.err; then
26214 ac_cpp_err=$ac_c_preproc_warn_flag
26215 else
26216 ac_cpp_err=
26218 else
26219 ac_cpp_err=yes
26221 if test -z "$ac_cpp_err"; then
26222 ac_header_preproc=yes
26223 else
26224 echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26227 ac_header_preproc=no
26229 rm -f conftest.err conftest.$ac_ext
26230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26231 echo "${ECHO_T}$ac_header_preproc" >&6
26233 # So? What about this header?
26234 case $ac_header_compiler:$ac_header_preproc in
26235 yes:no )
26236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26241 cat <<\_ASBOX
26242 ## ------------------------------------ ##
26243 ## Report this to bug-autoconf@gnu.org. ##
26244 ## ------------------------------------ ##
26245 _ASBOX
26247 sed "s/^/$as_me: WARNING: /" >&2
26249 no:yes )
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26257 cat <<\_ASBOX
26258 ## ------------------------------------ ##
26259 ## Report this to bug-autoconf@gnu.org. ##
26260 ## ------------------------------------ ##
26261 _ASBOX
26263 sed "s/^/$as_me: WARNING: /" >&2
26265 esac
26266 echo "$as_me:$LINENO: checking for $ac_header" >&5
26267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26270 else
26271 eval "$as_ac_Header=$ac_header_preproc"
26273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26278 cat >>confdefs.h <<_ACEOF
26279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26280 _ACEOF
26284 done
26287 if test "${glibcxx_cv_POLL+set}" = set; then
26288 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 else
26291 cat >conftest.$ac_ext <<_ACEOF
26292 #line $LINENO "configure"
26293 /* confdefs.h. */
26294 _ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h. */
26298 #include <poll.h>
26300 main ()
26302 struct pollfd pfd[1];
26303 pfd[0].events = POLLIN;
26304 poll(pfd, 1, 0);
26306 return 0;
26308 _ACEOF
26309 rm -f conftest.$ac_objext
26310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26311 (eval $ac_compile) 2>&5
26312 ac_status=$?
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -s conftest.$ac_objext'
26316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26317 (eval $ac_try) 2>&5
26318 ac_status=$?
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); }; }; then
26321 glibcxx_cv_POLL=yes
26322 else
26323 echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.$ac_ext >&5
26326 glibcxx_cv_POLL=no
26328 rm -f conftest.$ac_objext conftest.$ac_ext
26332 if test $glibcxx_cv_POLL = yes; then
26333 cat >>confdefs.h <<\_ACEOF
26334 #define HAVE_POLL 1
26335 _ACEOF
26340 if test "${glibcxx_cv_S_ISREG+set}" = set; then
26341 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 else
26344 if test x$gcc_no_link = xyes; then
26345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26347 { (exit 1); exit 1; }; }
26349 cat >conftest.$ac_ext <<_ACEOF
26350 #line $LINENO "configure"
26351 /* confdefs.h. */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h. */
26356 #include <sys/stat.h>
26358 main ()
26360 struct stat buffer;
26361 fstat(0, &buffer);
26362 S_ISREG(buffer.st_mode);
26364 return 0;
26366 _ACEOF
26367 rm -f conftest.$ac_objext conftest$ac_exeext
26368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26369 (eval $ac_link) 2>&5
26370 ac_status=$?
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); } &&
26373 { ac_try='test -s conftest$ac_exeext'
26374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26375 (eval $ac_try) 2>&5
26376 ac_status=$?
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); }; }; then
26379 glibcxx_cv_S_ISREG=yes
26380 else
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 glibcxx_cv_S_ISREG=no
26386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26390 if test "${glibcxx_cv_S_IFREG+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26392 else
26394 if test x$gcc_no_link = xyes; then
26395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26397 { (exit 1); exit 1; }; }
26399 cat >conftest.$ac_ext <<_ACEOF
26400 #line $LINENO "configure"
26401 /* confdefs.h. */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h. */
26406 #include <sys/stat.h>
26408 main ()
26410 struct stat buffer;
26411 fstat(0, &buffer);
26412 S_IFREG & buffer.st_mode;
26414 return 0;
26416 _ACEOF
26417 rm -f conftest.$ac_objext conftest$ac_exeext
26418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26419 (eval $ac_link) 2>&5
26420 ac_status=$?
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); } &&
26423 { ac_try='test -s conftest$ac_exeext'
26424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425 (eval $ac_try) 2>&5
26426 ac_status=$?
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; }; then
26429 glibcxx_cv_S_IFREG=yes
26430 else
26431 echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26434 glibcxx_cv_S_IFREG=no
26436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26440 if test $glibcxx_cv_S_ISREG = yes; then
26441 cat >>confdefs.h <<\_ACEOF
26442 #define HAVE_S_ISREG 1
26443 _ACEOF
26445 elif test $glibcxx_cv_S_IFREG = yes; then
26446 cat >>confdefs.h <<\_ACEOF
26447 #define HAVE_S_IFREG 1
26448 _ACEOF
26453 # For xsputn_2().
26455 for ac_header in sys/uio.h
26457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26459 echo "$as_me:$LINENO: checking for $ac_header" >&5
26460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26466 else
26467 # Is the header compilable?
26468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26470 cat >conftest.$ac_ext <<_ACEOF
26471 #line $LINENO "configure"
26472 /* confdefs.h. */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26477 $ac_includes_default
26478 #include <$ac_header>
26479 _ACEOF
26480 rm -f conftest.$ac_objext
26481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26482 (eval $ac_compile) 2>&5
26483 ac_status=$?
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
26486 { ac_try='test -s conftest.$ac_objext'
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; }; then
26492 ac_header_compiler=yes
26493 else
26494 echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26497 ac_header_compiler=no
26499 rm -f conftest.$ac_objext conftest.$ac_ext
26500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26501 echo "${ECHO_T}$ac_header_compiler" >&6
26503 # Is the header present?
26504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26506 cat >conftest.$ac_ext <<_ACEOF
26507 #line $LINENO "configure"
26508 /* confdefs.h. */
26509 _ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h. */
26513 #include <$ac_header>
26514 _ACEOF
26515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26517 ac_status=$?
26518 grep -v '^ *+' conftest.er1 >conftest.err
26519 rm -f conftest.er1
26520 cat conftest.err >&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } >/dev/null; then
26523 if test -s conftest.err; then
26524 ac_cpp_err=$ac_c_preproc_warn_flag
26525 else
26526 ac_cpp_err=
26528 else
26529 ac_cpp_err=yes
26531 if test -z "$ac_cpp_err"; then
26532 ac_header_preproc=yes
26533 else
26534 echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26537 ac_header_preproc=no
26539 rm -f conftest.err conftest.$ac_ext
26540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26541 echo "${ECHO_T}$ac_header_preproc" >&6
26543 # So? What about this header?
26544 case $ac_header_compiler:$ac_header_preproc in
26545 yes:no )
26546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26551 cat <<\_ASBOX
26552 ## ------------------------------------ ##
26553 ## Report this to bug-autoconf@gnu.org. ##
26554 ## ------------------------------------ ##
26555 _ASBOX
26557 sed "s/^/$as_me: WARNING: /" >&2
26559 no:yes )
26560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26567 cat <<\_ASBOX
26568 ## ------------------------------------ ##
26569 ## Report this to bug-autoconf@gnu.org. ##
26570 ## ------------------------------------ ##
26571 _ASBOX
26573 sed "s/^/$as_me: WARNING: /" >&2
26575 esac
26576 echo "$as_me:$LINENO: checking for $ac_header" >&5
26577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26580 else
26581 eval "$as_ac_Header=$ac_header_preproc"
26583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26588 cat >>confdefs.h <<_ACEOF
26589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26590 _ACEOF
26594 done
26597 if test "${glibcxx_cv_WRITEV+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26599 else
26601 cat >conftest.$ac_ext <<_ACEOF
26602 #line $LINENO "configure"
26603 /* confdefs.h. */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26608 #include <sys/uio.h>
26610 main ()
26612 struct iovec iov[2];
26613 writev(0, iov, 0);
26615 return 0;
26617 _ACEOF
26618 rm -f conftest.$ac_objext
26619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26620 (eval $ac_compile) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } &&
26624 { ac_try='test -s conftest.$ac_objext'
26625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
26630 glibcxx_cv_WRITEV=yes
26631 else
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26635 glibcxx_cv_WRITEV=no
26637 rm -f conftest.$ac_objext conftest.$ac_ext
26641 if test $glibcxx_cv_WRITEV = yes; then
26642 cat >>confdefs.h <<\_ACEOF
26643 #define HAVE_WRITEV 1
26644 _ACEOF
26650 if test "${ac_cv_header_locale_h+set}" = set; then
26651 echo "$as_me:$LINENO: checking for locale.h" >&5
26652 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26653 if test "${ac_cv_header_locale_h+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26657 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26658 else
26659 # Is the header compilable?
26660 echo "$as_me:$LINENO: checking locale.h usability" >&5
26661 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26662 cat >conftest.$ac_ext <<_ACEOF
26663 #line $LINENO "configure"
26664 /* confdefs.h. */
26665 _ACEOF
26666 cat confdefs.h >>conftest.$ac_ext
26667 cat >>conftest.$ac_ext <<_ACEOF
26668 /* end confdefs.h. */
26669 $ac_includes_default
26670 #include <locale.h>
26671 _ACEOF
26672 rm -f conftest.$ac_objext
26673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26674 (eval $ac_compile) 2>&5
26675 ac_status=$?
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); } &&
26678 { ac_try='test -s conftest.$ac_objext'
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; }; then
26684 ac_header_compiler=yes
26685 else
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ac_header_compiler=no
26691 rm -f conftest.$ac_objext conftest.$ac_ext
26692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26693 echo "${ECHO_T}$ac_header_compiler" >&6
26695 # Is the header present?
26696 echo "$as_me:$LINENO: checking locale.h presence" >&5
26697 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26698 cat >conftest.$ac_ext <<_ACEOF
26699 #line $LINENO "configure"
26700 /* confdefs.h. */
26701 _ACEOF
26702 cat confdefs.h >>conftest.$ac_ext
26703 cat >>conftest.$ac_ext <<_ACEOF
26704 /* end confdefs.h. */
26705 #include <locale.h>
26706 _ACEOF
26707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26709 ac_status=$?
26710 grep -v '^ *+' conftest.er1 >conftest.err
26711 rm -f conftest.er1
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } >/dev/null; then
26715 if test -s conftest.err; then
26716 ac_cpp_err=$ac_c_preproc_warn_flag
26717 else
26718 ac_cpp_err=
26720 else
26721 ac_cpp_err=yes
26723 if test -z "$ac_cpp_err"; then
26724 ac_header_preproc=yes
26725 else
26726 echo "$as_me: failed program was:" >&5
26727 sed 's/^/| /' conftest.$ac_ext >&5
26729 ac_header_preproc=no
26731 rm -f conftest.err conftest.$ac_ext
26732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26733 echo "${ECHO_T}$ac_header_preproc" >&6
26735 # So? What about this header?
26736 case $ac_header_compiler:$ac_header_preproc in
26737 yes:no )
26738 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
26739 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26740 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26741 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26743 cat <<\_ASBOX
26744 ## ------------------------------------ ##
26745 ## Report this to bug-autoconf@gnu.org. ##
26746 ## ------------------------------------ ##
26747 _ASBOX
26749 sed "s/^/$as_me: WARNING: /" >&2
26751 no:yes )
26752 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
26753 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
26754 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
26755 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
26756 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26757 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26759 cat <<\_ASBOX
26760 ## ------------------------------------ ##
26761 ## Report this to bug-autoconf@gnu.org. ##
26762 ## ------------------------------------ ##
26763 _ASBOX
26765 sed "s/^/$as_me: WARNING: /" >&2
26767 esac
26768 echo "$as_me:$LINENO: checking for locale.h" >&5
26769 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26770 if test "${ac_cv_header_locale_h+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772 else
26773 ac_cv_header_locale_h=$ac_header_preproc
26775 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26776 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26779 if test $ac_cv_header_locale_h = yes; then
26781 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26782 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26783 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26785 else
26786 if test x$gcc_no_link = xyes; then
26787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26789 { (exit 1); exit 1; }; }
26791 cat >conftest.$ac_ext <<_ACEOF
26792 #line $LINENO "configure"
26793 /* confdefs.h. */
26794 _ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h. */
26798 #include <locale.h>
26800 main ()
26802 return LC_MESSAGES
26804 return 0;
26806 _ACEOF
26807 rm -f conftest.$ac_objext conftest$ac_exeext
26808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26809 (eval $ac_link) 2>&5
26810 ac_status=$?
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } &&
26813 { ac_try='test -s conftest$ac_exeext'
26814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; }; then
26819 ac_cv_val_LC_MESSAGES=yes
26820 else
26821 echo "$as_me: failed program was:" >&5
26822 sed 's/^/| /' conftest.$ac_ext >&5
26824 ac_cv_val_LC_MESSAGES=no
26826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26828 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
26829 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
26830 if test $ac_cv_val_LC_MESSAGES = yes; then
26831 cat >>confdefs.h <<\_ACEOF
26832 #define HAVE_LC_MESSAGES 1
26833 _ACEOF
26842 cat >conftest.$ac_ext <<_ACEOF
26843 #line $LINENO "configure"
26844 /* confdefs.h. */
26845 _ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h. */
26849 #include <setjmp.h>
26851 main ()
26853 sigjmp_buf env;
26854 while (! sigsetjmp (env, 1))
26855 siglongjmp (env, 1);
26858 return 0;
26860 _ACEOF
26861 rm -f conftest.$ac_objext
26862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26863 (eval $ac_compile) 2>&5
26864 ac_status=$?
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); } &&
26867 { ac_try='test -s conftest.$ac_objext'
26868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869 (eval $ac_try) 2>&5
26870 ac_status=$?
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); }; }; then
26874 cat >>confdefs.h <<\_ACEOF
26875 #define HAVE_SIGSETJMP 1
26876 _ACEOF
26878 else
26879 echo "$as_me: failed program was:" >&5
26880 sed 's/^/| /' conftest.$ac_ext >&5
26883 rm -f conftest.$ac_objext conftest.$ac_ext
26885 if test x$gcc_no_link = xyes; then
26886 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
26887 ac_cv_func_mmap_fixed_mapped=no
26890 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
26893 for ac_header in stdlib.h unistd.h
26895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26897 echo "$as_me:$LINENO: checking for $ac_header" >&5
26898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26904 else
26905 # Is the header compilable?
26906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26908 cat >conftest.$ac_ext <<_ACEOF
26909 #line $LINENO "configure"
26910 /* confdefs.h. */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 $ac_includes_default
26916 #include <$ac_header>
26917 _ACEOF
26918 rm -f conftest.$ac_objext
26919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26920 (eval $ac_compile) 2>&5
26921 ac_status=$?
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); } &&
26924 { ac_try='test -s conftest.$ac_objext'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
26930 ac_header_compiler=yes
26931 else
26932 echo "$as_me: failed program was:" >&5
26933 sed 's/^/| /' conftest.$ac_ext >&5
26935 ac_header_compiler=no
26937 rm -f conftest.$ac_objext conftest.$ac_ext
26938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26939 echo "${ECHO_T}$ac_header_compiler" >&6
26941 # Is the header present?
26942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26944 cat >conftest.$ac_ext <<_ACEOF
26945 #line $LINENO "configure"
26946 /* confdefs.h. */
26947 _ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h. */
26951 #include <$ac_header>
26952 _ACEOF
26953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26955 ac_status=$?
26956 grep -v '^ *+' conftest.er1 >conftest.err
26957 rm -f conftest.er1
26958 cat conftest.err >&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } >/dev/null; then
26961 if test -s conftest.err; then
26962 ac_cpp_err=$ac_c_preproc_warn_flag
26963 else
26964 ac_cpp_err=
26966 else
26967 ac_cpp_err=yes
26969 if test -z "$ac_cpp_err"; then
26970 ac_header_preproc=yes
26971 else
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26975 ac_header_preproc=no
26977 rm -f conftest.err conftest.$ac_ext
26978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26979 echo "${ECHO_T}$ac_header_preproc" >&6
26981 # So? What about this header?
26982 case $ac_header_compiler:$ac_header_preproc in
26983 yes:no )
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26989 cat <<\_ASBOX
26990 ## ------------------------------------ ##
26991 ## Report this to bug-autoconf@gnu.org. ##
26992 ## ------------------------------------ ##
26993 _ASBOX
26995 sed "s/^/$as_me: WARNING: /" >&2
26997 no:yes )
26998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27005 cat <<\_ASBOX
27006 ## ------------------------------------ ##
27007 ## Report this to bug-autoconf@gnu.org. ##
27008 ## ------------------------------------ ##
27009 _ASBOX
27011 sed "s/^/$as_me: WARNING: /" >&2
27013 esac
27014 echo "$as_me:$LINENO: checking for $ac_header" >&5
27015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019 eval "$as_ac_Header=$ac_header_preproc"
27021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27026 cat >>confdefs.h <<_ACEOF
27027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27028 _ACEOF
27032 done
27035 for ac_func in getpagesize
27037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27038 echo "$as_me:$LINENO: checking for $ac_func" >&5
27039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27040 if eval "test \"\${$as_ac_var+set}\" = set"; then
27041 echo $ECHO_N "(cached) $ECHO_C" >&6
27042 else
27043 if test x$gcc_no_link = xyes; then
27044 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27046 { (exit 1); exit 1; }; }
27048 cat >conftest.$ac_ext <<_ACEOF
27049 #line $LINENO "configure"
27050 /* confdefs.h. */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h. */
27055 /* System header to define __stub macros and hopefully few prototypes,
27056 which can conflict with char $ac_func (); below.
27057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27058 <limits.h> exists even on freestanding compilers. */
27059 #ifdef __STDC__
27060 # include <limits.h>
27061 #else
27062 # include <assert.h>
27063 #endif
27064 /* Override any gcc2 internal prototype to avoid an error. */
27065 #ifdef __cplusplus
27066 extern "C"
27068 #endif
27069 /* We use char because int might match the return type of a gcc2
27070 builtin and then its argument prototype would still apply. */
27071 char $ac_func ();
27072 /* The GNU C library defines this for functions which it implements
27073 to always fail with ENOSYS. Some functions are actually named
27074 something starting with __ and the normal name is an alias. */
27075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27076 choke me
27077 #else
27078 char (*f) () = $ac_func;
27079 #endif
27080 #ifdef __cplusplus
27082 #endif
27085 main ()
27087 return f != $ac_func;
27089 return 0;
27091 _ACEOF
27092 rm -f conftest.$ac_objext conftest$ac_exeext
27093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27094 (eval $ac_link) 2>&5
27095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } &&
27098 { ac_try='test -s conftest$ac_exeext'
27099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100 (eval $ac_try) 2>&5
27101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; }; then
27104 eval "$as_ac_var=yes"
27105 else
27106 echo "$as_me: failed program was:" >&5
27107 sed 's/^/| /' conftest.$ac_ext >&5
27109 eval "$as_ac_var=no"
27111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27115 if test `eval echo '${'$as_ac_var'}'` = yes; then
27116 cat >>confdefs.h <<_ACEOF
27117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27118 _ACEOF
27121 done
27123 echo "$as_me:$LINENO: checking for working mmap" >&5
27124 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27125 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27126 echo $ECHO_N "(cached) $ECHO_C" >&6
27127 else
27128 if test "$cross_compiling" = yes; then
27129 ac_cv_func_mmap_fixed_mapped=no
27130 else
27131 cat >conftest.$ac_ext <<_ACEOF
27132 #line $LINENO "configure"
27133 /* confdefs.h. */
27134 _ACEOF
27135 cat confdefs.h >>conftest.$ac_ext
27136 cat >>conftest.$ac_ext <<_ACEOF
27137 /* end confdefs.h. */
27138 $ac_includes_default
27139 /* malloc might have been renamed as rpl_malloc. */
27140 #undef malloc
27142 /* Thanks to Mike Haertel and Jim Avera for this test.
27143 Here is a matrix of mmap possibilities:
27144 mmap private not fixed
27145 mmap private fixed at somewhere currently unmapped
27146 mmap private fixed at somewhere already mapped
27147 mmap shared not fixed
27148 mmap shared fixed at somewhere currently unmapped
27149 mmap shared fixed at somewhere already mapped
27150 For private mappings, we should verify that changes cannot be read()
27151 back from the file, nor mmap's back from the file at a different
27152 address. (There have been systems where private was not correctly
27153 implemented like the infamous i386 svr4.0, and systems where the
27154 VM page cache was not coherent with the file system buffer cache
27155 like early versions of FreeBSD and possibly contemporary NetBSD.)
27156 For shared mappings, we should conversely verify that changes get
27157 propagated back to all the places they're supposed to be.
27159 Grep wants private fixed already mapped.
27160 The main things grep needs to know about mmap are:
27161 * does it exist and is it safe to write into the mmap'd area
27162 * how to use it (BSD variants) */
27164 #include <fcntl.h>
27165 #include <sys/mman.h>
27167 #if !STDC_HEADERS && !HAVE_STDLIB_H
27168 char *malloc ();
27169 #endif
27171 /* This mess was copied from the GNU getpagesize.h. */
27172 #if !HAVE_GETPAGESIZE
27173 /* Assume that all systems that can run configure have sys/param.h. */
27174 # if !HAVE_SYS_PARAM_H
27175 # define HAVE_SYS_PARAM_H 1
27176 # endif
27178 # ifdef _SC_PAGESIZE
27179 # define getpagesize() sysconf(_SC_PAGESIZE)
27180 # else /* no _SC_PAGESIZE */
27181 # if HAVE_SYS_PARAM_H
27182 # include <sys/param.h>
27183 # ifdef EXEC_PAGESIZE
27184 # define getpagesize() EXEC_PAGESIZE
27185 # else /* no EXEC_PAGESIZE */
27186 # ifdef NBPG
27187 # define getpagesize() NBPG * CLSIZE
27188 # ifndef CLSIZE
27189 # define CLSIZE 1
27190 # endif /* no CLSIZE */
27191 # else /* no NBPG */
27192 # ifdef NBPC
27193 # define getpagesize() NBPC
27194 # else /* no NBPC */
27195 # ifdef PAGESIZE
27196 # define getpagesize() PAGESIZE
27197 # endif /* PAGESIZE */
27198 # endif /* no NBPC */
27199 # endif /* no NBPG */
27200 # endif /* no EXEC_PAGESIZE */
27201 # else /* no HAVE_SYS_PARAM_H */
27202 # define getpagesize() 8192 /* punt totally */
27203 # endif /* no HAVE_SYS_PARAM_H */
27204 # endif /* no _SC_PAGESIZE */
27206 #endif /* no HAVE_GETPAGESIZE */
27209 main ()
27211 char *data, *data2, *data3;
27212 int i, pagesize;
27213 int fd;
27215 pagesize = getpagesize ();
27217 /* First, make a file with some known garbage in it. */
27218 data = (char *) malloc (pagesize);
27219 if (!data)
27220 exit (1);
27221 for (i = 0; i < pagesize; ++i)
27222 *(data + i) = rand ();
27223 umask (0);
27224 fd = creat ("conftest.mmap", 0600);
27225 if (fd < 0)
27226 exit (1);
27227 if (write (fd, data, pagesize) != pagesize)
27228 exit (1);
27229 close (fd);
27231 /* Next, try to mmap the file at a fixed address which already has
27232 something else allocated at it. If we can, also make sure that
27233 we see the same garbage. */
27234 fd = open ("conftest.mmap", O_RDWR);
27235 if (fd < 0)
27236 exit (1);
27237 data2 = (char *) malloc (2 * pagesize);
27238 if (!data2)
27239 exit (1);
27240 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
27241 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27242 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27243 exit (1);
27244 for (i = 0; i < pagesize; ++i)
27245 if (*(data + i) != *(data2 + i))
27246 exit (1);
27248 /* Finally, make sure that changes to the mapped area do not
27249 percolate back to the file as seen by read(). (This is a bug on
27250 some variants of i386 svr4.0.) */
27251 for (i = 0; i < pagesize; ++i)
27252 *(data2 + i) = *(data2 + i) + 1;
27253 data3 = (char *) malloc (pagesize);
27254 if (!data3)
27255 exit (1);
27256 if (read (fd, data3, pagesize) != pagesize)
27257 exit (1);
27258 for (i = 0; i < pagesize; ++i)
27259 if (*(data + i) != *(data3 + i))
27260 exit (1);
27261 close (fd);
27262 exit (0);
27264 _ACEOF
27265 rm -f conftest$ac_exeext
27266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27267 (eval $ac_link) 2>&5
27268 ac_status=$?
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276 ac_cv_func_mmap_fixed_mapped=yes
27277 else
27278 echo "$as_me: program exited with status $ac_status" >&5
27279 echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27282 ( exit $ac_status )
27283 ac_cv_func_mmap_fixed_mapped=no
27285 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27288 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27289 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
27290 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27292 cat >>confdefs.h <<\_ACEOF
27293 #define HAVE_MMAP 1
27294 _ACEOF
27297 rm -f conftest.mmap
27301 else
27303 # This lets us hard-code the functionality we know we'll have in the cross
27304 # target environment. "Let" is a sugar-coated word placed on an especially
27305 # dull and tedious hack, actually.
27307 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27308 # that involve linking, can't be used:
27309 # "cannot open sim-crt0.o"
27310 # "cannot open crt0.o"
27311 # etc. All this is because there currently exists no unified, consistent
27312 # way for top level CC information to be passed down to target directories:
27313 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27314 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27315 # crosses can be removed.
27317 # If Canadian cross, then don't pick up tools from the build directory.
27318 # Used only in GLIBCXX_EXPORT_INCLUDES.
27319 if test -n "$with_cross_host" &&
27320 test x"$build_alias" != x"$with_cross_host" &&
27321 test x"$build" != x"$target";
27322 then
27323 CANADIAN=yes
27324 else
27325 CANADIAN=no
27328 # Construct crosses by hand, eliminating bits that need ld...
27329 # GLIBCXX_CHECK_COMPILER_FEATURES
27330 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
27331 # GLIBCXX_CHECK_MATH_SUPPORT
27333 # First, test for "known" system libraries. We may be using newlib even
27334 # on a hosted environment.
27335 if test "x${with_newlib}" = "xyes"; then
27336 os_include_dir="os/newlib"
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE_HYPOT 1
27339 _ACEOF
27342 # GLIBCXX_CHECK_STDLIB_SUPPORT
27343 cat >>confdefs.h <<\_ACEOF
27344 #define HAVE_STRTOF 1
27345 _ACEOF
27347 cat >>confdefs.h <<\_ACEOF
27348 #define HAVE_STRTOLD 1
27349 _ACEOF
27351 # AC_FUNC_MMAP
27352 cat >>confdefs.h <<\_ACEOF
27353 #define HAVE_MMAP 1
27354 _ACEOF
27357 cat >>confdefs.h <<\_ACEOF
27358 #define HAVE_ACOSF 1
27359 _ACEOF
27361 cat >>confdefs.h <<\_ACEOF
27362 #define HAVE_ASINF 1
27363 _ACEOF
27365 cat >>confdefs.h <<\_ACEOF
27366 #define HAVE_ATAN2F 1
27367 _ACEOF
27369 cat >>confdefs.h <<\_ACEOF
27370 #define HAVE_ATANF 1
27371 _ACEOF
27373 cat >>confdefs.h <<\_ACEOF
27374 #define HAVE_CEILF 1
27375 _ACEOF
27377 cat >>confdefs.h <<\_ACEOF
27378 #define HAVE_COPYSIGN 1
27379 _ACEOF
27381 cat >>confdefs.h <<\_ACEOF
27382 #define HAVE_COPYSIGNF 1
27383 _ACEOF
27385 cat >>confdefs.h <<\_ACEOF
27386 #define HAVE_COSF 1
27387 _ACEOF
27389 cat >>confdefs.h <<\_ACEOF
27390 #define HAVE_COSHF 1
27391 _ACEOF
27393 cat >>confdefs.h <<\_ACEOF
27394 #define HAVE_EXPF 1
27395 _ACEOF
27397 cat >>confdefs.h <<\_ACEOF
27398 #define HAVE_FABSF 1
27399 _ACEOF
27401 cat >>confdefs.h <<\_ACEOF
27402 #define HAVE_FLOORF 1
27403 _ACEOF
27405 cat >>confdefs.h <<\_ACEOF
27406 #define HAVE_FMODF 1
27407 _ACEOF
27409 cat >>confdefs.h <<\_ACEOF
27410 #define HAVE_FREXPF 1
27411 _ACEOF
27413 cat >>confdefs.h <<\_ACEOF
27414 #define HAVE_LDEXPF 1
27415 _ACEOF
27417 cat >>confdefs.h <<\_ACEOF
27418 #define HAVE_LOG10F 1
27419 _ACEOF
27421 cat >>confdefs.h <<\_ACEOF
27422 #define HAVE_LOGF 1
27423 _ACEOF
27425 cat >>confdefs.h <<\_ACEOF
27426 #define HAVE_MODFF 1
27427 _ACEOF
27429 cat >>confdefs.h <<\_ACEOF
27430 #define HAVE_POWF 1
27431 _ACEOF
27433 cat >>confdefs.h <<\_ACEOF
27434 #define HAVE_SINF 1
27435 _ACEOF
27437 cat >>confdefs.h <<\_ACEOF
27438 #define HAVE_SINHF 1
27439 _ACEOF
27441 cat >>confdefs.h <<\_ACEOF
27442 #define HAVE_SQRTF 1
27443 _ACEOF
27445 cat >>confdefs.h <<\_ACEOF
27446 #define HAVE_TANF 1
27447 _ACEOF
27449 cat >>confdefs.h <<\_ACEOF
27450 #define HAVE_TANHF 1
27451 _ACEOF
27453 else
27455 # Base decisions on target environment.
27456 case "${host}" in
27457 *-darwin*)
27458 # Darwin versions vary, but the linker should work in a cross environment,
27459 # so we just check for all the features here.
27460 # Check for available headers.
27474 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
27475 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
27476 sys/types.h
27478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27480 echo "$as_me:$LINENO: checking for $ac_header" >&5
27481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27483 echo $ECHO_N "(cached) $ECHO_C" >&6
27485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27487 else
27488 # Is the header compilable?
27489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27491 cat >conftest.$ac_ext <<_ACEOF
27492 #line $LINENO "configure"
27493 /* confdefs.h. */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h. */
27498 $ac_includes_default
27499 #include <$ac_header>
27500 _ACEOF
27501 rm -f conftest.$ac_objext
27502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27503 (eval $ac_compile) 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } &&
27507 { ac_try='test -s conftest.$ac_objext'
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; }; then
27513 ac_header_compiler=yes
27514 else
27515 echo "$as_me: failed program was:" >&5
27516 sed 's/^/| /' conftest.$ac_ext >&5
27518 ac_header_compiler=no
27520 rm -f conftest.$ac_objext conftest.$ac_ext
27521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27522 echo "${ECHO_T}$ac_header_compiler" >&6
27524 # Is the header present?
27525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27527 cat >conftest.$ac_ext <<_ACEOF
27528 #line $LINENO "configure"
27529 /* confdefs.h. */
27530 _ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h. */
27534 #include <$ac_header>
27535 _ACEOF
27536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27538 ac_status=$?
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } >/dev/null; then
27544 if test -s conftest.err; then
27545 ac_cpp_err=$ac_c_preproc_warn_flag
27546 else
27547 ac_cpp_err=
27549 else
27550 ac_cpp_err=yes
27552 if test -z "$ac_cpp_err"; then
27553 ac_header_preproc=yes
27554 else
27555 echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27558 ac_header_preproc=no
27560 rm -f conftest.err conftest.$ac_ext
27561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27562 echo "${ECHO_T}$ac_header_preproc" >&6
27564 # So? What about this header?
27565 case $ac_header_compiler:$ac_header_preproc in
27566 yes:no )
27567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27572 cat <<\_ASBOX
27573 ## ------------------------------------ ##
27574 ## Report this to bug-autoconf@gnu.org. ##
27575 ## ------------------------------------ ##
27576 _ASBOX
27578 sed "s/^/$as_me: WARNING: /" >&2
27580 no:yes )
27581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27588 cat <<\_ASBOX
27589 ## ------------------------------------ ##
27590 ## Report this to bug-autoconf@gnu.org. ##
27591 ## ------------------------------------ ##
27592 _ASBOX
27594 sed "s/^/$as_me: WARNING: /" >&2
27596 esac
27597 echo "$as_me:$LINENO: checking for $ac_header" >&5
27598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 else
27602 eval "$as_ac_Header=$ac_header_preproc"
27604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27609 cat >>confdefs.h <<_ACEOF
27610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27611 _ACEOF
27615 done
27619 # All these tests are for C++; save the language and the compiler flags.
27620 # The CXXFLAGS thing is suspicious, but based on similar bits previously
27621 # found in GLIBCXX_CONFIGURE.
27624 ac_ext=cc
27625 ac_cpp='$CXXCPP $CPPFLAGS'
27626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27630 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27631 ac_save_CXXFLAGS="$CXXFLAGS"
27633 # Check for maintainer-mode bits.
27634 if test x"$USE_MAINTAINER_MODE" = xno; then
27635 WERROR=''
27636 else
27637 WERROR='-Werror'
27640 # Check for -ffunction-sections -fdata-sections
27641 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
27642 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
27643 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
27644 cat >conftest.$ac_ext <<_ACEOF
27645 #line $LINENO "configure"
27646 /* confdefs.h. */
27647 _ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27653 main ()
27655 int foo;
27657 return 0;
27659 _ACEOF
27660 rm -f conftest.$ac_objext
27661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27662 (eval $ac_compile) 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
27666 { ac_try='test -s conftest.$ac_objext'
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27669 ac_status=$?
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; }; then
27672 ac_fdsections=yes
27673 else
27674 echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ac_fdsections=no
27679 rm -f conftest.$ac_objext conftest.$ac_ext
27680 if test "$ac_test_CXXFLAGS" = set; then
27681 CXXFLAGS="$ac_save_CXXFLAGS"
27682 else
27683 # this is the suspicious part
27684 CXXFLAGS=''
27686 if test x"$ac_fdsections" = x"yes"; then
27687 SECTION_FLAGS='-ffunction-sections -fdata-sections'
27689 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
27690 echo "${ECHO_T}$ac_fdsections" >&6
27692 ac_ext=c
27693 ac_cpp='$CPP $CPPFLAGS'
27694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27701 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
27703 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27704 ac_save_CXXFLAGS="$CXXFLAGS"
27705 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
27707 echo "$as_me:$LINENO: checking for sin in -lm" >&5
27708 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
27709 if test "${ac_cv_lib_m_sin+set}" = set; then
27710 echo $ECHO_N "(cached) $ECHO_C" >&6
27711 else
27712 ac_check_lib_save_LIBS=$LIBS
27713 LIBS="-lm $LIBS"
27714 if test x$gcc_no_link = xyes; then
27715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27717 { (exit 1); exit 1; }; }
27719 cat >conftest.$ac_ext <<_ACEOF
27720 #line $LINENO "configure"
27721 /* confdefs.h. */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27727 /* Override any gcc2 internal prototype to avoid an error. */
27728 #ifdef __cplusplus
27729 extern "C"
27730 #endif
27731 /* We use char because int might match the return type of a gcc2
27732 builtin and then its argument prototype would still apply. */
27733 char sin ();
27735 main ()
27737 sin ();
27739 return 0;
27741 _ACEOF
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27744 (eval $ac_link) 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); } &&
27748 { ac_try='test -s conftest$ac_exeext'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27751 ac_status=$?
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
27754 ac_cv_lib_m_sin=yes
27755 else
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27759 ac_cv_lib_m_sin=no
27761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27762 LIBS=$ac_check_lib_save_LIBS
27764 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27765 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
27766 if test $ac_cv_lib_m_sin = yes; then
27767 libm="-lm"
27770 ac_save_LIBS="$LIBS"
27771 LIBS="$LIBS $libm"
27775 echo "$as_me:$LINENO: checking for isinf declaration" >&5
27776 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
27777 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
27778 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
27779 echo $ECHO_N "(cached) $ECHO_C" >&6
27780 else
27784 ac_ext=cc
27785 ac_cpp='$CXXCPP $CPPFLAGS'
27786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27790 cat >conftest.$ac_ext <<_ACEOF
27791 #line $LINENO "configure"
27792 /* confdefs.h. */
27793 _ACEOF
27794 cat confdefs.h >>conftest.$ac_ext
27795 cat >>conftest.$ac_ext <<_ACEOF
27796 /* end confdefs.h. */
27797 #include <math.h>
27798 #ifdef HAVE_IEEEFP_H
27799 #include <ieeefp.h>
27800 #endif
27803 main ()
27805 isinf(0);
27807 return 0;
27809 _ACEOF
27810 rm -f conftest.$ac_objext
27811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27812 (eval $ac_compile) 2>&5
27813 ac_status=$?
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } &&
27816 { ac_try='test -s conftest.$ac_objext'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
27822 glibcxx_cv_func_isinf_use=yes
27823 else
27824 echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 glibcxx_cv_func_isinf_use=no
27829 rm -f conftest.$ac_objext conftest.$ac_ext
27830 ac_ext=c
27831 ac_cpp='$CPP $CPPFLAGS'
27832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27840 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
27841 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
27843 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
27845 for ac_func in isinf
27847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27848 echo "$as_me:$LINENO: checking for $ac_func" >&5
27849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27850 if eval "test \"\${$as_ac_var+set}\" = set"; then
27851 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 else
27853 if test x$gcc_no_link = xyes; then
27854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27856 { (exit 1); exit 1; }; }
27858 cat >conftest.$ac_ext <<_ACEOF
27859 #line $LINENO "configure"
27860 /* confdefs.h. */
27861 _ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h. */
27865 /* System header to define __stub macros and hopefully few prototypes,
27866 which can conflict with char $ac_func (); below.
27867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27868 <limits.h> exists even on freestanding compilers. */
27869 #ifdef __STDC__
27870 # include <limits.h>
27871 #else
27872 # include <assert.h>
27873 #endif
27874 /* Override any gcc2 internal prototype to avoid an error. */
27875 #ifdef __cplusplus
27876 extern "C"
27878 #endif
27879 /* We use char because int might match the return type of a gcc2
27880 builtin and then its argument prototype would still apply. */
27881 char $ac_func ();
27882 /* The GNU C library defines this for functions which it implements
27883 to always fail with ENOSYS. Some functions are actually named
27884 something starting with __ and the normal name is an alias. */
27885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27886 choke me
27887 #else
27888 char (*f) () = $ac_func;
27889 #endif
27890 #ifdef __cplusplus
27892 #endif
27895 main ()
27897 return f != $ac_func;
27899 return 0;
27901 _ACEOF
27902 rm -f conftest.$ac_objext conftest$ac_exeext
27903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27904 (eval $ac_link) 2>&5
27905 ac_status=$?
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); } &&
27908 { ac_try='test -s conftest$ac_exeext'
27909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910 (eval $ac_try) 2>&5
27911 ac_status=$?
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; }; then
27914 eval "$as_ac_var=yes"
27915 else
27916 echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27919 eval "$as_ac_var=no"
27921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27925 if test `eval echo '${'$as_ac_var'}'` = yes; then
27926 cat >>confdefs.h <<_ACEOF
27927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27928 _ACEOF
27931 done
27933 else
27935 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
27936 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
27937 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
27938 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
27939 echo $ECHO_N "(cached) $ECHO_C" >&6
27940 else
27944 ac_ext=cc
27945 ac_cpp='$CXXCPP $CPPFLAGS'
27946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27950 cat >conftest.$ac_ext <<_ACEOF
27951 #line $LINENO "configure"
27952 /* confdefs.h. */
27953 _ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h. */
27957 #include <math.h>
27958 #ifdef HAVE_IEEEFP_H
27959 #include <ieeefp.h>
27960 #endif
27963 main ()
27965 _isinf(0);
27967 return 0;
27969 _ACEOF
27970 rm -f conftest.$ac_objext
27971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27972 (eval $ac_compile) 2>&5
27973 ac_status=$?
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } &&
27976 { ac_try='test -s conftest.$ac_objext'
27977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27978 (eval $ac_try) 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; }; then
27982 glibcxx_cv_func__isinf_use=yes
27983 else
27984 echo "$as_me: failed program was:" >&5
27985 sed 's/^/| /' conftest.$ac_ext >&5
27987 glibcxx_cv_func__isinf_use=no
27989 rm -f conftest.$ac_objext conftest.$ac_ext
27990 ac_ext=c
27991 ac_cpp='$CPP $CPPFLAGS'
27992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28000 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
28001 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
28003 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
28005 for ac_func in _isinf
28007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28008 echo "$as_me:$LINENO: checking for $ac_func" >&5
28009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28010 if eval "test \"\${$as_ac_var+set}\" = set"; then
28011 echo $ECHO_N "(cached) $ECHO_C" >&6
28012 else
28013 if test x$gcc_no_link = xyes; then
28014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28016 { (exit 1); exit 1; }; }
28018 cat >conftest.$ac_ext <<_ACEOF
28019 #line $LINENO "configure"
28020 /* confdefs.h. */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28025 /* System header to define __stub macros and hopefully few prototypes,
28026 which can conflict with char $ac_func (); below.
28027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28028 <limits.h> exists even on freestanding compilers. */
28029 #ifdef __STDC__
28030 # include <limits.h>
28031 #else
28032 # include <assert.h>
28033 #endif
28034 /* Override any gcc2 internal prototype to avoid an error. */
28035 #ifdef __cplusplus
28036 extern "C"
28038 #endif
28039 /* We use char because int might match the return type of a gcc2
28040 builtin and then its argument prototype would still apply. */
28041 char $ac_func ();
28042 /* The GNU C library defines this for functions which it implements
28043 to always fail with ENOSYS. Some functions are actually named
28044 something starting with __ and the normal name is an alias. */
28045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28046 choke me
28047 #else
28048 char (*f) () = $ac_func;
28049 #endif
28050 #ifdef __cplusplus
28052 #endif
28055 main ()
28057 return f != $ac_func;
28059 return 0;
28061 _ACEOF
28062 rm -f conftest.$ac_objext conftest$ac_exeext
28063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28064 (eval $ac_link) 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } &&
28068 { ac_try='test -s conftest$ac_exeext'
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28071 ac_status=$?
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; }; then
28074 eval "$as_ac_var=yes"
28075 else
28076 echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28079 eval "$as_ac_var=no"
28081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28085 if test `eval echo '${'$as_ac_var'}'` = yes; then
28086 cat >>confdefs.h <<_ACEOF
28087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28088 _ACEOF
28091 done
28098 echo "$as_me:$LINENO: checking for isnan declaration" >&5
28099 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
28100 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
28101 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28103 else
28107 ac_ext=cc
28108 ac_cpp='$CXXCPP $CPPFLAGS'
28109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28113 cat >conftest.$ac_ext <<_ACEOF
28114 #line $LINENO "configure"
28115 /* confdefs.h. */
28116 _ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h. */
28120 #include <math.h>
28121 #ifdef HAVE_IEEEFP_H
28122 #include <ieeefp.h>
28123 #endif
28126 main ()
28128 isnan(0);
28130 return 0;
28132 _ACEOF
28133 rm -f conftest.$ac_objext
28134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28135 (eval $ac_compile) 2>&5
28136 ac_status=$?
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); } &&
28139 { ac_try='test -s conftest.$ac_objext'
28140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141 (eval $ac_try) 2>&5
28142 ac_status=$?
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); }; }; then
28145 glibcxx_cv_func_isnan_use=yes
28146 else
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28150 glibcxx_cv_func_isnan_use=no
28152 rm -f conftest.$ac_objext conftest.$ac_ext
28153 ac_ext=c
28154 ac_cpp='$CPP $CPPFLAGS'
28155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28163 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
28164 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
28166 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
28168 for ac_func in isnan
28170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28171 echo "$as_me:$LINENO: checking for $ac_func" >&5
28172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28173 if eval "test \"\${$as_ac_var+set}\" = set"; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28175 else
28176 if test x$gcc_no_link = xyes; then
28177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28179 { (exit 1); exit 1; }; }
28181 cat >conftest.$ac_ext <<_ACEOF
28182 #line $LINENO "configure"
28183 /* confdefs.h. */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h. */
28188 /* System header to define __stub macros and hopefully few prototypes,
28189 which can conflict with char $ac_func (); below.
28190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28191 <limits.h> exists even on freestanding compilers. */
28192 #ifdef __STDC__
28193 # include <limits.h>
28194 #else
28195 # include <assert.h>
28196 #endif
28197 /* Override any gcc2 internal prototype to avoid an error. */
28198 #ifdef __cplusplus
28199 extern "C"
28201 #endif
28202 /* We use char because int might match the return type of a gcc2
28203 builtin and then its argument prototype would still apply. */
28204 char $ac_func ();
28205 /* The GNU C library defines this for functions which it implements
28206 to always fail with ENOSYS. Some functions are actually named
28207 something starting with __ and the normal name is an alias. */
28208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28209 choke me
28210 #else
28211 char (*f) () = $ac_func;
28212 #endif
28213 #ifdef __cplusplus
28215 #endif
28218 main ()
28220 return f != $ac_func;
28222 return 0;
28224 _ACEOF
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28227 (eval $ac_link) 2>&5
28228 ac_status=$?
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } &&
28231 { ac_try='test -s conftest$ac_exeext'
28232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233 (eval $ac_try) 2>&5
28234 ac_status=$?
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28237 eval "$as_ac_var=yes"
28238 else
28239 echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28242 eval "$as_ac_var=no"
28244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28248 if test `eval echo '${'$as_ac_var'}'` = yes; then
28249 cat >>confdefs.h <<_ACEOF
28250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28251 _ACEOF
28254 done
28256 else
28258 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
28259 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
28260 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
28261 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
28262 echo $ECHO_N "(cached) $ECHO_C" >&6
28263 else
28267 ac_ext=cc
28268 ac_cpp='$CXXCPP $CPPFLAGS'
28269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28273 cat >conftest.$ac_ext <<_ACEOF
28274 #line $LINENO "configure"
28275 /* confdefs.h. */
28276 _ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h. */
28280 #include <math.h>
28281 #ifdef HAVE_IEEEFP_H
28282 #include <ieeefp.h>
28283 #endif
28286 main ()
28288 _isnan(0);
28290 return 0;
28292 _ACEOF
28293 rm -f conftest.$ac_objext
28294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28295 (eval $ac_compile) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } &&
28299 { ac_try='test -s conftest.$ac_objext'
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 glibcxx_cv_func__isnan_use=yes
28306 else
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28310 glibcxx_cv_func__isnan_use=no
28312 rm -f conftest.$ac_objext conftest.$ac_ext
28313 ac_ext=c
28314 ac_cpp='$CPP $CPPFLAGS'
28315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28323 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
28324 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
28326 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
28328 for ac_func in _isnan
28330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28331 echo "$as_me:$LINENO: checking for $ac_func" >&5
28332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28333 if eval "test \"\${$as_ac_var+set}\" = set"; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28335 else
28336 if test x$gcc_no_link = xyes; then
28337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28339 { (exit 1); exit 1; }; }
28341 cat >conftest.$ac_ext <<_ACEOF
28342 #line $LINENO "configure"
28343 /* confdefs.h. */
28344 _ACEOF
28345 cat confdefs.h >>conftest.$ac_ext
28346 cat >>conftest.$ac_ext <<_ACEOF
28347 /* end confdefs.h. */
28348 /* System header to define __stub macros and hopefully few prototypes,
28349 which can conflict with char $ac_func (); below.
28350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28351 <limits.h> exists even on freestanding compilers. */
28352 #ifdef __STDC__
28353 # include <limits.h>
28354 #else
28355 # include <assert.h>
28356 #endif
28357 /* Override any gcc2 internal prototype to avoid an error. */
28358 #ifdef __cplusplus
28359 extern "C"
28361 #endif
28362 /* We use char because int might match the return type of a gcc2
28363 builtin and then its argument prototype would still apply. */
28364 char $ac_func ();
28365 /* The GNU C library defines this for functions which it implements
28366 to always fail with ENOSYS. Some functions are actually named
28367 something starting with __ and the normal name is an alias. */
28368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28369 choke me
28370 #else
28371 char (*f) () = $ac_func;
28372 #endif
28373 #ifdef __cplusplus
28375 #endif
28378 main ()
28380 return f != $ac_func;
28382 return 0;
28384 _ACEOF
28385 rm -f conftest.$ac_objext conftest$ac_exeext
28386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28387 (eval $ac_link) 2>&5
28388 ac_status=$?
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); } &&
28391 { ac_try='test -s conftest$ac_exeext'
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; }; then
28397 eval "$as_ac_var=yes"
28398 else
28399 echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.$ac_ext >&5
28402 eval "$as_ac_var=no"
28404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28408 if test `eval echo '${'$as_ac_var'}'` = yes; then
28409 cat >>confdefs.h <<_ACEOF
28410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28411 _ACEOF
28414 done
28421 echo "$as_me:$LINENO: checking for finite declaration" >&5
28422 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
28423 if test x${glibcxx_cv_func_finite_use+set} != xset; then
28424 if test "${glibcxx_cv_func_finite_use+set}" = set; then
28425 echo $ECHO_N "(cached) $ECHO_C" >&6
28426 else
28430 ac_ext=cc
28431 ac_cpp='$CXXCPP $CPPFLAGS'
28432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28436 cat >conftest.$ac_ext <<_ACEOF
28437 #line $LINENO "configure"
28438 /* confdefs.h. */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h. */
28443 #include <math.h>
28444 #ifdef HAVE_IEEEFP_H
28445 #include <ieeefp.h>
28446 #endif
28449 main ()
28451 finite(0);
28453 return 0;
28455 _ACEOF
28456 rm -f conftest.$ac_objext
28457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28458 (eval $ac_compile) 2>&5
28459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } &&
28462 { ac_try='test -s conftest.$ac_objext'
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28465 ac_status=$?
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; }; then
28468 glibcxx_cv_func_finite_use=yes
28469 else
28470 echo "$as_me: failed program was:" >&5
28471 sed 's/^/| /' conftest.$ac_ext >&5
28473 glibcxx_cv_func_finite_use=no
28475 rm -f conftest.$ac_objext conftest.$ac_ext
28476 ac_ext=c
28477 ac_cpp='$CPP $CPPFLAGS'
28478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28486 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
28487 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
28489 if test x$glibcxx_cv_func_finite_use = x"yes"; then
28491 for ac_func in finite
28493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28494 echo "$as_me:$LINENO: checking for $ac_func" >&5
28495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28496 if eval "test \"\${$as_ac_var+set}\" = set"; then
28497 echo $ECHO_N "(cached) $ECHO_C" >&6
28498 else
28499 if test x$gcc_no_link = xyes; then
28500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28502 { (exit 1); exit 1; }; }
28504 cat >conftest.$ac_ext <<_ACEOF
28505 #line $LINENO "configure"
28506 /* confdefs.h. */
28507 _ACEOF
28508 cat confdefs.h >>conftest.$ac_ext
28509 cat >>conftest.$ac_ext <<_ACEOF
28510 /* end confdefs.h. */
28511 /* System header to define __stub macros and hopefully few prototypes,
28512 which can conflict with char $ac_func (); below.
28513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28514 <limits.h> exists even on freestanding compilers. */
28515 #ifdef __STDC__
28516 # include <limits.h>
28517 #else
28518 # include <assert.h>
28519 #endif
28520 /* Override any gcc2 internal prototype to avoid an error. */
28521 #ifdef __cplusplus
28522 extern "C"
28524 #endif
28525 /* We use char because int might match the return type of a gcc2
28526 builtin and then its argument prototype would still apply. */
28527 char $ac_func ();
28528 /* The GNU C library defines this for functions which it implements
28529 to always fail with ENOSYS. Some functions are actually named
28530 something starting with __ and the normal name is an alias. */
28531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28532 choke me
28533 #else
28534 char (*f) () = $ac_func;
28535 #endif
28536 #ifdef __cplusplus
28538 #endif
28541 main ()
28543 return f != $ac_func;
28545 return 0;
28547 _ACEOF
28548 rm -f conftest.$ac_objext conftest$ac_exeext
28549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28550 (eval $ac_link) 2>&5
28551 ac_status=$?
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); } &&
28554 { ac_try='test -s conftest$ac_exeext'
28555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556 (eval $ac_try) 2>&5
28557 ac_status=$?
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; }; then
28560 eval "$as_ac_var=yes"
28561 else
28562 echo "$as_me: failed program was:" >&5
28563 sed 's/^/| /' conftest.$ac_ext >&5
28565 eval "$as_ac_var=no"
28567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28571 if test `eval echo '${'$as_ac_var'}'` = yes; then
28572 cat >>confdefs.h <<_ACEOF
28573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28574 _ACEOF
28577 done
28579 else
28581 echo "$as_me:$LINENO: checking for _finite declaration" >&5
28582 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
28583 if test x${glibcxx_cv_func__finite_use+set} != xset; then
28584 if test "${glibcxx_cv_func__finite_use+set}" = set; then
28585 echo $ECHO_N "(cached) $ECHO_C" >&6
28586 else
28590 ac_ext=cc
28591 ac_cpp='$CXXCPP $CPPFLAGS'
28592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28596 cat >conftest.$ac_ext <<_ACEOF
28597 #line $LINENO "configure"
28598 /* confdefs.h. */
28599 _ACEOF
28600 cat confdefs.h >>conftest.$ac_ext
28601 cat >>conftest.$ac_ext <<_ACEOF
28602 /* end confdefs.h. */
28603 #include <math.h>
28604 #ifdef HAVE_IEEEFP_H
28605 #include <ieeefp.h>
28606 #endif
28609 main ()
28611 _finite(0);
28613 return 0;
28615 _ACEOF
28616 rm -f conftest.$ac_objext
28617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28618 (eval $ac_compile) 2>&5
28619 ac_status=$?
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); } &&
28622 { ac_try='test -s conftest.$ac_objext'
28623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28624 (eval $ac_try) 2>&5
28625 ac_status=$?
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 glibcxx_cv_func__finite_use=yes
28629 else
28630 echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28633 glibcxx_cv_func__finite_use=no
28635 rm -f conftest.$ac_objext conftest.$ac_ext
28636 ac_ext=c
28637 ac_cpp='$CPP $CPPFLAGS'
28638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28646 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
28647 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
28649 if test x$glibcxx_cv_func__finite_use = x"yes"; then
28651 for ac_func in _finite
28653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28654 echo "$as_me:$LINENO: checking for $ac_func" >&5
28655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28656 if eval "test \"\${$as_ac_var+set}\" = set"; then
28657 echo $ECHO_N "(cached) $ECHO_C" >&6
28658 else
28659 if test x$gcc_no_link = xyes; then
28660 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28661 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28662 { (exit 1); exit 1; }; }
28664 cat >conftest.$ac_ext <<_ACEOF
28665 #line $LINENO "configure"
28666 /* confdefs.h. */
28667 _ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h. */
28671 /* System header to define __stub macros and hopefully few prototypes,
28672 which can conflict with char $ac_func (); below.
28673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28674 <limits.h> exists even on freestanding compilers. */
28675 #ifdef __STDC__
28676 # include <limits.h>
28677 #else
28678 # include <assert.h>
28679 #endif
28680 /* Override any gcc2 internal prototype to avoid an error. */
28681 #ifdef __cplusplus
28682 extern "C"
28684 #endif
28685 /* We use char because int might match the return type of a gcc2
28686 builtin and then its argument prototype would still apply. */
28687 char $ac_func ();
28688 /* The GNU C library defines this for functions which it implements
28689 to always fail with ENOSYS. Some functions are actually named
28690 something starting with __ and the normal name is an alias. */
28691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28692 choke me
28693 #else
28694 char (*f) () = $ac_func;
28695 #endif
28696 #ifdef __cplusplus
28698 #endif
28701 main ()
28703 return f != $ac_func;
28705 return 0;
28707 _ACEOF
28708 rm -f conftest.$ac_objext conftest$ac_exeext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28710 (eval $ac_link) 2>&5
28711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); } &&
28714 { ac_try='test -s conftest$ac_exeext'
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28717 ac_status=$?
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; }; then
28720 eval "$as_ac_var=yes"
28721 else
28722 echo "$as_me: failed program was:" >&5
28723 sed 's/^/| /' conftest.$ac_ext >&5
28725 eval "$as_ac_var=no"
28727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28731 if test `eval echo '${'$as_ac_var'}'` = yes; then
28732 cat >>confdefs.h <<_ACEOF
28733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28734 _ACEOF
28737 done
28744 echo "$as_me:$LINENO: checking for copysign declaration" >&5
28745 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
28746 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
28747 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
28748 echo $ECHO_N "(cached) $ECHO_C" >&6
28749 else
28753 ac_ext=cc
28754 ac_cpp='$CXXCPP $CPPFLAGS'
28755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28759 cat >conftest.$ac_ext <<_ACEOF
28760 #line $LINENO "configure"
28761 /* confdefs.h. */
28762 _ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h. */
28766 #include <math.h>
28768 main ()
28770 copysign(0, 0);
28772 return 0;
28774 _ACEOF
28775 rm -f conftest.$ac_objext
28776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28777 (eval $ac_compile) 2>&5
28778 ac_status=$?
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
28781 { ac_try='test -s conftest.$ac_objext'
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28784 ac_status=$?
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; }; then
28787 glibcxx_cv_func_copysign_use=yes
28788 else
28789 echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28792 glibcxx_cv_func_copysign_use=no
28794 rm -f conftest.$ac_objext conftest.$ac_ext
28795 ac_ext=c
28796 ac_cpp='$CPP $CPPFLAGS'
28797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28805 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
28806 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
28808 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
28810 for ac_func in copysign
28812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813 echo "$as_me:$LINENO: checking for $ac_func" >&5
28814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28815 if eval "test \"\${$as_ac_var+set}\" = set"; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818 if test x$gcc_no_link = xyes; then
28819 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28821 { (exit 1); exit 1; }; }
28823 cat >conftest.$ac_ext <<_ACEOF
28824 #line $LINENO "configure"
28825 /* confdefs.h. */
28826 _ACEOF
28827 cat confdefs.h >>conftest.$ac_ext
28828 cat >>conftest.$ac_ext <<_ACEOF
28829 /* end confdefs.h. */
28830 /* System header to define __stub macros and hopefully few prototypes,
28831 which can conflict with char $ac_func (); below.
28832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28833 <limits.h> exists even on freestanding compilers. */
28834 #ifdef __STDC__
28835 # include <limits.h>
28836 #else
28837 # include <assert.h>
28838 #endif
28839 /* Override any gcc2 internal prototype to avoid an error. */
28840 #ifdef __cplusplus
28841 extern "C"
28843 #endif
28844 /* We use char because int might match the return type of a gcc2
28845 builtin and then its argument prototype would still apply. */
28846 char $ac_func ();
28847 /* The GNU C library defines this for functions which it implements
28848 to always fail with ENOSYS. Some functions are actually named
28849 something starting with __ and the normal name is an alias. */
28850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28851 choke me
28852 #else
28853 char (*f) () = $ac_func;
28854 #endif
28855 #ifdef __cplusplus
28857 #endif
28860 main ()
28862 return f != $ac_func;
28864 return 0;
28866 _ACEOF
28867 rm -f conftest.$ac_objext conftest$ac_exeext
28868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28869 (eval $ac_link) 2>&5
28870 ac_status=$?
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } &&
28873 { ac_try='test -s conftest$ac_exeext'
28874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875 (eval $ac_try) 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; }; then
28879 eval "$as_ac_var=yes"
28880 else
28881 echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28884 eval "$as_ac_var=no"
28886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28890 if test `eval echo '${'$as_ac_var'}'` = yes; then
28891 cat >>confdefs.h <<_ACEOF
28892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28893 _ACEOF
28896 done
28898 else
28900 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
28901 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
28902 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
28903 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
28904 echo $ECHO_N "(cached) $ECHO_C" >&6
28905 else
28909 ac_ext=cc
28910 ac_cpp='$CXXCPP $CPPFLAGS'
28911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28915 cat >conftest.$ac_ext <<_ACEOF
28916 #line $LINENO "configure"
28917 /* confdefs.h. */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28922 #include <math.h>
28924 main ()
28926 _copysign(0, 0);
28928 return 0;
28930 _ACEOF
28931 rm -f conftest.$ac_objext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28933 (eval $ac_compile) 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); } &&
28937 { ac_try='test -s conftest.$ac_objext'
28938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939 (eval $ac_try) 2>&5
28940 ac_status=$?
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 glibcxx_cv_func__copysign_use=yes
28944 else
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 glibcxx_cv_func__copysign_use=no
28950 rm -f conftest.$ac_objext conftest.$ac_ext
28951 ac_ext=c
28952 ac_cpp='$CPP $CPPFLAGS'
28953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28961 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
28962 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
28964 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
28966 for ac_func in _copysign
28968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28969 echo "$as_me:$LINENO: checking for $ac_func" >&5
28970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28971 if eval "test \"\${$as_ac_var+set}\" = set"; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28973 else
28974 if test x$gcc_no_link = xyes; then
28975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28977 { (exit 1); exit 1; }; }
28979 cat >conftest.$ac_ext <<_ACEOF
28980 #line $LINENO "configure"
28981 /* confdefs.h. */
28982 _ACEOF
28983 cat confdefs.h >>conftest.$ac_ext
28984 cat >>conftest.$ac_ext <<_ACEOF
28985 /* end confdefs.h. */
28986 /* System header to define __stub macros and hopefully few prototypes,
28987 which can conflict with char $ac_func (); below.
28988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28989 <limits.h> exists even on freestanding compilers. */
28990 #ifdef __STDC__
28991 # include <limits.h>
28992 #else
28993 # include <assert.h>
28994 #endif
28995 /* Override any gcc2 internal prototype to avoid an error. */
28996 #ifdef __cplusplus
28997 extern "C"
28999 #endif
29000 /* We use char because int might match the return type of a gcc2
29001 builtin and then its argument prototype would still apply. */
29002 char $ac_func ();
29003 /* The GNU C library defines this for functions which it implements
29004 to always fail with ENOSYS. Some functions are actually named
29005 something starting with __ and the normal name is an alias. */
29006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29007 choke me
29008 #else
29009 char (*f) () = $ac_func;
29010 #endif
29011 #ifdef __cplusplus
29013 #endif
29016 main ()
29018 return f != $ac_func;
29020 return 0;
29022 _ACEOF
29023 rm -f conftest.$ac_objext conftest$ac_exeext
29024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29025 (eval $ac_link) 2>&5
29026 ac_status=$?
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } &&
29029 { ac_try='test -s conftest$ac_exeext'
29030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29031 (eval $ac_try) 2>&5
29032 ac_status=$?
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 eval "$as_ac_var=yes"
29036 else
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29040 eval "$as_ac_var=no"
29042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29046 if test `eval echo '${'$as_ac_var'}'` = yes; then
29047 cat >>confdefs.h <<_ACEOF
29048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29049 _ACEOF
29052 done
29059 echo "$as_me:$LINENO: checking for sincos declaration" >&5
29060 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
29061 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29062 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 else
29068 ac_ext=cc
29069 ac_cpp='$CXXCPP $CPPFLAGS'
29070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29074 cat >conftest.$ac_ext <<_ACEOF
29075 #line $LINENO "configure"
29076 /* confdefs.h. */
29077 _ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h. */
29081 #include <math.h>
29083 main ()
29085 sincos(0, 0, 0);
29087 return 0;
29089 _ACEOF
29090 rm -f conftest.$ac_objext
29091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29092 (eval $ac_compile) 2>&5
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
29096 { ac_try='test -s conftest.$ac_objext'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29099 ac_status=$?
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
29102 glibcxx_cv_func_sincos_use=yes
29103 else
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29107 glibcxx_cv_func_sincos_use=no
29109 rm -f conftest.$ac_objext conftest.$ac_ext
29110 ac_ext=c
29111 ac_cpp='$CPP $CPPFLAGS'
29112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29120 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
29121 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
29123 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29125 for ac_func in sincos
29127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29128 echo "$as_me:$LINENO: checking for $ac_func" >&5
29129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29130 if eval "test \"\${$as_ac_var+set}\" = set"; then
29131 echo $ECHO_N "(cached) $ECHO_C" >&6
29132 else
29133 if test x$gcc_no_link = xyes; then
29134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29136 { (exit 1); exit 1; }; }
29138 cat >conftest.$ac_ext <<_ACEOF
29139 #line $LINENO "configure"
29140 /* confdefs.h. */
29141 _ACEOF
29142 cat confdefs.h >>conftest.$ac_ext
29143 cat >>conftest.$ac_ext <<_ACEOF
29144 /* end confdefs.h. */
29145 /* System header to define __stub macros and hopefully few prototypes,
29146 which can conflict with char $ac_func (); below.
29147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29148 <limits.h> exists even on freestanding compilers. */
29149 #ifdef __STDC__
29150 # include <limits.h>
29151 #else
29152 # include <assert.h>
29153 #endif
29154 /* Override any gcc2 internal prototype to avoid an error. */
29155 #ifdef __cplusplus
29156 extern "C"
29158 #endif
29159 /* We use char because int might match the return type of a gcc2
29160 builtin and then its argument prototype would still apply. */
29161 char $ac_func ();
29162 /* The GNU C library defines this for functions which it implements
29163 to always fail with ENOSYS. Some functions are actually named
29164 something starting with __ and the normal name is an alias. */
29165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29166 choke me
29167 #else
29168 char (*f) () = $ac_func;
29169 #endif
29170 #ifdef __cplusplus
29172 #endif
29175 main ()
29177 return f != $ac_func;
29179 return 0;
29181 _ACEOF
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29184 (eval $ac_link) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } &&
29188 { ac_try='test -s conftest$ac_exeext'
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 eval "$as_ac_var=yes"
29195 else
29196 echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29199 eval "$as_ac_var=no"
29201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29205 if test `eval echo '${'$as_ac_var'}'` = yes; then
29206 cat >>confdefs.h <<_ACEOF
29207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29208 _ACEOF
29211 done
29213 else
29215 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
29216 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
29217 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
29218 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29224 ac_ext=cc
29225 ac_cpp='$CXXCPP $CPPFLAGS'
29226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29230 cat >conftest.$ac_ext <<_ACEOF
29231 #line $LINENO "configure"
29232 /* confdefs.h. */
29233 _ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h. */
29237 #include <math.h>
29239 main ()
29241 _sincos(0, 0, 0);
29243 return 0;
29245 _ACEOF
29246 rm -f conftest.$ac_objext
29247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29248 (eval $ac_compile) 2>&5
29249 ac_status=$?
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } &&
29252 { ac_try='test -s conftest.$ac_objext'
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; }; then
29258 glibcxx_cv_func__sincos_use=yes
29259 else
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29263 glibcxx_cv_func__sincos_use=no
29265 rm -f conftest.$ac_objext conftest.$ac_ext
29266 ac_ext=c
29267 ac_cpp='$CPP $CPPFLAGS'
29268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29276 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
29277 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
29279 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
29281 for ac_func in _sincos
29283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29284 echo "$as_me:$LINENO: checking for $ac_func" >&5
29285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29286 if eval "test \"\${$as_ac_var+set}\" = set"; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29288 else
29289 if test x$gcc_no_link = xyes; then
29290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29292 { (exit 1); exit 1; }; }
29294 cat >conftest.$ac_ext <<_ACEOF
29295 #line $LINENO "configure"
29296 /* confdefs.h. */
29297 _ACEOF
29298 cat confdefs.h >>conftest.$ac_ext
29299 cat >>conftest.$ac_ext <<_ACEOF
29300 /* end confdefs.h. */
29301 /* System header to define __stub macros and hopefully few prototypes,
29302 which can conflict with char $ac_func (); below.
29303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29304 <limits.h> exists even on freestanding compilers. */
29305 #ifdef __STDC__
29306 # include <limits.h>
29307 #else
29308 # include <assert.h>
29309 #endif
29310 /* Override any gcc2 internal prototype to avoid an error. */
29311 #ifdef __cplusplus
29312 extern "C"
29314 #endif
29315 /* We use char because int might match the return type of a gcc2
29316 builtin and then its argument prototype would still apply. */
29317 char $ac_func ();
29318 /* The GNU C library defines this for functions which it implements
29319 to always fail with ENOSYS. Some functions are actually named
29320 something starting with __ and the normal name is an alias. */
29321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29322 choke me
29323 #else
29324 char (*f) () = $ac_func;
29325 #endif
29326 #ifdef __cplusplus
29328 #endif
29331 main ()
29333 return f != $ac_func;
29335 return 0;
29337 _ACEOF
29338 rm -f conftest.$ac_objext conftest$ac_exeext
29339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29340 (eval $ac_link) 2>&5
29341 ac_status=$?
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); } &&
29344 { ac_try='test -s conftest$ac_exeext'
29345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29346 (eval $ac_try) 2>&5
29347 ac_status=$?
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; }; then
29350 eval "$as_ac_var=yes"
29351 else
29352 echo "$as_me: failed program was:" >&5
29353 sed 's/^/| /' conftest.$ac_ext >&5
29355 eval "$as_ac_var=no"
29357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29361 if test `eval echo '${'$as_ac_var'}'` = yes; then
29362 cat >>confdefs.h <<_ACEOF
29363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29364 _ACEOF
29367 done
29374 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
29375 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
29376 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29377 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
29378 echo $ECHO_N "(cached) $ECHO_C" >&6
29379 else
29383 ac_ext=cc
29384 ac_cpp='$CXXCPP $CPPFLAGS'
29385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29389 cat >conftest.$ac_ext <<_ACEOF
29390 #line $LINENO "configure"
29391 /* confdefs.h. */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29396 #include <math.h>
29397 #ifdef HAVE_IEEEFP_H
29398 #include <ieeefp.h>
29399 #endif
29402 main ()
29404 fpclass(0);
29406 return 0;
29408 _ACEOF
29409 rm -f conftest.$ac_objext
29410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29411 (eval $ac_compile) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); } &&
29415 { ac_try='test -s conftest.$ac_objext'
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29418 ac_status=$?
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29421 glibcxx_cv_func_fpclass_use=yes
29422 else
29423 echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29426 glibcxx_cv_func_fpclass_use=no
29428 rm -f conftest.$ac_objext conftest.$ac_ext
29429 ac_ext=c
29430 ac_cpp='$CPP $CPPFLAGS'
29431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29439 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
29440 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
29442 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29444 for ac_func in fpclass
29446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29447 echo "$as_me:$LINENO: checking for $ac_func" >&5
29448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29449 if eval "test \"\${$as_ac_var+set}\" = set"; then
29450 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 else
29452 if test x$gcc_no_link = xyes; then
29453 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29455 { (exit 1); exit 1; }; }
29457 cat >conftest.$ac_ext <<_ACEOF
29458 #line $LINENO "configure"
29459 /* confdefs.h. */
29460 _ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h. */
29464 /* System header to define __stub macros and hopefully few prototypes,
29465 which can conflict with char $ac_func (); below.
29466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29467 <limits.h> exists even on freestanding compilers. */
29468 #ifdef __STDC__
29469 # include <limits.h>
29470 #else
29471 # include <assert.h>
29472 #endif
29473 /* Override any gcc2 internal prototype to avoid an error. */
29474 #ifdef __cplusplus
29475 extern "C"
29477 #endif
29478 /* We use char because int might match the return type of a gcc2
29479 builtin and then its argument prototype would still apply. */
29480 char $ac_func ();
29481 /* The GNU C library defines this for functions which it implements
29482 to always fail with ENOSYS. Some functions are actually named
29483 something starting with __ and the normal name is an alias. */
29484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29485 choke me
29486 #else
29487 char (*f) () = $ac_func;
29488 #endif
29489 #ifdef __cplusplus
29491 #endif
29494 main ()
29496 return f != $ac_func;
29498 return 0;
29500 _ACEOF
29501 rm -f conftest.$ac_objext conftest$ac_exeext
29502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29503 (eval $ac_link) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } &&
29507 { ac_try='test -s conftest$ac_exeext'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; }; then
29513 eval "$as_ac_var=yes"
29514 else
29515 echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29518 eval "$as_ac_var=no"
29520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29524 if test `eval echo '${'$as_ac_var'}'` = yes; then
29525 cat >>confdefs.h <<_ACEOF
29526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29527 _ACEOF
29530 done
29532 else
29534 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
29535 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
29536 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
29537 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29539 else
29543 ac_ext=cc
29544 ac_cpp='$CXXCPP $CPPFLAGS'
29545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29549 cat >conftest.$ac_ext <<_ACEOF
29550 #line $LINENO "configure"
29551 /* confdefs.h. */
29552 _ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29556 #include <math.h>
29557 #ifdef HAVE_IEEEFP_H
29558 #include <ieeefp.h>
29559 #endif
29562 main ()
29564 _fpclass(0);
29566 return 0;
29568 _ACEOF
29569 rm -f conftest.$ac_objext
29570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29571 (eval $ac_compile) 2>&5
29572 ac_status=$?
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); } &&
29575 { ac_try='test -s conftest.$ac_objext'
29576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29577 (eval $ac_try) 2>&5
29578 ac_status=$?
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); }; }; then
29581 glibcxx_cv_func__fpclass_use=yes
29582 else
29583 echo "$as_me: failed program was:" >&5
29584 sed 's/^/| /' conftest.$ac_ext >&5
29586 glibcxx_cv_func__fpclass_use=no
29588 rm -f conftest.$ac_objext conftest.$ac_ext
29589 ac_ext=c
29590 ac_cpp='$CPP $CPPFLAGS'
29591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29599 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
29600 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
29602 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
29604 for ac_func in _fpclass
29606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29607 echo "$as_me:$LINENO: checking for $ac_func" >&5
29608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29609 if eval "test \"\${$as_ac_var+set}\" = set"; then
29610 echo $ECHO_N "(cached) $ECHO_C" >&6
29611 else
29612 if test x$gcc_no_link = xyes; then
29613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29615 { (exit 1); exit 1; }; }
29617 cat >conftest.$ac_ext <<_ACEOF
29618 #line $LINENO "configure"
29619 /* confdefs.h. */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29624 /* System header to define __stub macros and hopefully few prototypes,
29625 which can conflict with char $ac_func (); below.
29626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29627 <limits.h> exists even on freestanding compilers. */
29628 #ifdef __STDC__
29629 # include <limits.h>
29630 #else
29631 # include <assert.h>
29632 #endif
29633 /* Override any gcc2 internal prototype to avoid an error. */
29634 #ifdef __cplusplus
29635 extern "C"
29637 #endif
29638 /* We use char because int might match the return type of a gcc2
29639 builtin and then its argument prototype would still apply. */
29640 char $ac_func ();
29641 /* The GNU C library defines this for functions which it implements
29642 to always fail with ENOSYS. Some functions are actually named
29643 something starting with __ and the normal name is an alias. */
29644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29645 choke me
29646 #else
29647 char (*f) () = $ac_func;
29648 #endif
29649 #ifdef __cplusplus
29651 #endif
29654 main ()
29656 return f != $ac_func;
29658 return 0;
29660 _ACEOF
29661 rm -f conftest.$ac_objext conftest$ac_exeext
29662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29663 (eval $ac_link) 2>&5
29664 ac_status=$?
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); } &&
29667 { ac_try='test -s conftest$ac_exeext'
29668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29669 (eval $ac_try) 2>&5
29670 ac_status=$?
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); }; }; then
29673 eval "$as_ac_var=yes"
29674 else
29675 echo "$as_me: failed program was:" >&5
29676 sed 's/^/| /' conftest.$ac_ext >&5
29678 eval "$as_ac_var=no"
29680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29684 if test `eval echo '${'$as_ac_var'}'` = yes; then
29685 cat >>confdefs.h <<_ACEOF
29686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29687 _ACEOF
29690 done
29697 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
29698 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
29699 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29700 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29702 else
29706 ac_ext=cc
29707 ac_cpp='$CXXCPP $CPPFLAGS'
29708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29712 cat >conftest.$ac_ext <<_ACEOF
29713 #line $LINENO "configure"
29714 /* confdefs.h. */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h. */
29719 #include <math.h>
29720 #ifdef HAVE_IEEEFP_H
29721 #include <ieeefp.h>
29722 #endif
29725 main ()
29727 qfpclass(0);
29729 return 0;
29731 _ACEOF
29732 rm -f conftest.$ac_objext
29733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29734 (eval $ac_compile) 2>&5
29735 ac_status=$?
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } &&
29738 { ac_try='test -s conftest.$ac_objext'
29739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740 (eval $ac_try) 2>&5
29741 ac_status=$?
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; }; then
29744 glibcxx_cv_func_qfpclass_use=yes
29745 else
29746 echo "$as_me: failed program was:" >&5
29747 sed 's/^/| /' conftest.$ac_ext >&5
29749 glibcxx_cv_func_qfpclass_use=no
29751 rm -f conftest.$ac_objext conftest.$ac_ext
29752 ac_ext=c
29753 ac_cpp='$CPP $CPPFLAGS'
29754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29762 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
29763 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
29765 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29767 for ac_func in qfpclass
29769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29770 echo "$as_me:$LINENO: checking for $ac_func" >&5
29771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29772 if eval "test \"\${$as_ac_var+set}\" = set"; then
29773 echo $ECHO_N "(cached) $ECHO_C" >&6
29774 else
29775 if test x$gcc_no_link = xyes; then
29776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29778 { (exit 1); exit 1; }; }
29780 cat >conftest.$ac_ext <<_ACEOF
29781 #line $LINENO "configure"
29782 /* confdefs.h. */
29783 _ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h. */
29787 /* System header to define __stub macros and hopefully few prototypes,
29788 which can conflict with char $ac_func (); below.
29789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29790 <limits.h> exists even on freestanding compilers. */
29791 #ifdef __STDC__
29792 # include <limits.h>
29793 #else
29794 # include <assert.h>
29795 #endif
29796 /* Override any gcc2 internal prototype to avoid an error. */
29797 #ifdef __cplusplus
29798 extern "C"
29800 #endif
29801 /* We use char because int might match the return type of a gcc2
29802 builtin and then its argument prototype would still apply. */
29803 char $ac_func ();
29804 /* The GNU C library defines this for functions which it implements
29805 to always fail with ENOSYS. Some functions are actually named
29806 something starting with __ and the normal name is an alias. */
29807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29808 choke me
29809 #else
29810 char (*f) () = $ac_func;
29811 #endif
29812 #ifdef __cplusplus
29814 #endif
29817 main ()
29819 return f != $ac_func;
29821 return 0;
29823 _ACEOF
29824 rm -f conftest.$ac_objext conftest$ac_exeext
29825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29826 (eval $ac_link) 2>&5
29827 ac_status=$?
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
29830 { ac_try='test -s conftest$ac_exeext'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 eval "$as_ac_var=yes"
29837 else
29838 echo "$as_me: failed program was:" >&5
29839 sed 's/^/| /' conftest.$ac_ext >&5
29841 eval "$as_ac_var=no"
29843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29847 if test `eval echo '${'$as_ac_var'}'` = yes; then
29848 cat >>confdefs.h <<_ACEOF
29849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29850 _ACEOF
29853 done
29855 else
29857 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
29858 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
29859 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
29860 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 else
29866 ac_ext=cc
29867 ac_cpp='$CXXCPP $CPPFLAGS'
29868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29872 cat >conftest.$ac_ext <<_ACEOF
29873 #line $LINENO "configure"
29874 /* confdefs.h. */
29875 _ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h. */
29879 #include <math.h>
29880 #ifdef HAVE_IEEEFP_H
29881 #include <ieeefp.h>
29882 #endif
29885 main ()
29887 _qfpclass(0);
29889 return 0;
29891 _ACEOF
29892 rm -f conftest.$ac_objext
29893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29894 (eval $ac_compile) 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); } &&
29898 { ac_try='test -s conftest.$ac_objext'
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
29904 glibcxx_cv_func__qfpclass_use=yes
29905 else
29906 echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29909 glibcxx_cv_func__qfpclass_use=no
29911 rm -f conftest.$ac_objext conftest.$ac_ext
29912 ac_ext=c
29913 ac_cpp='$CPP $CPPFLAGS'
29914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29922 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
29923 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
29925 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
29927 for ac_func in _qfpclass
29929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29930 echo "$as_me:$LINENO: checking for $ac_func" >&5
29931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29932 if eval "test \"\${$as_ac_var+set}\" = set"; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29934 else
29935 if test x$gcc_no_link = xyes; then
29936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29938 { (exit 1); exit 1; }; }
29940 cat >conftest.$ac_ext <<_ACEOF
29941 #line $LINENO "configure"
29942 /* confdefs.h. */
29943 _ACEOF
29944 cat confdefs.h >>conftest.$ac_ext
29945 cat >>conftest.$ac_ext <<_ACEOF
29946 /* end confdefs.h. */
29947 /* System header to define __stub macros and hopefully few prototypes,
29948 which can conflict with char $ac_func (); below.
29949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29950 <limits.h> exists even on freestanding compilers. */
29951 #ifdef __STDC__
29952 # include <limits.h>
29953 #else
29954 # include <assert.h>
29955 #endif
29956 /* Override any gcc2 internal prototype to avoid an error. */
29957 #ifdef __cplusplus
29958 extern "C"
29960 #endif
29961 /* We use char because int might match the return type of a gcc2
29962 builtin and then its argument prototype would still apply. */
29963 char $ac_func ();
29964 /* The GNU C library defines this for functions which it implements
29965 to always fail with ENOSYS. Some functions are actually named
29966 something starting with __ and the normal name is an alias. */
29967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29968 choke me
29969 #else
29970 char (*f) () = $ac_func;
29971 #endif
29972 #ifdef __cplusplus
29974 #endif
29977 main ()
29979 return f != $ac_func;
29981 return 0;
29983 _ACEOF
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986 (eval $ac_link) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); } &&
29990 { ac_try='test -s conftest$ac_exeext'
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; }; then
29996 eval "$as_ac_var=yes"
29997 else
29998 echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30001 eval "$as_ac_var=no"
30003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30007 if test `eval echo '${'$as_ac_var'}'` = yes; then
30008 cat >>confdefs.h <<_ACEOF
30009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30010 _ACEOF
30013 done
30020 echo "$as_me:$LINENO: checking for hypot declaration" >&5
30021 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
30022 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
30023 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
30024 echo $ECHO_N "(cached) $ECHO_C" >&6
30025 else
30029 ac_ext=cc
30030 ac_cpp='$CXXCPP $CPPFLAGS'
30031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30035 cat >conftest.$ac_ext <<_ACEOF
30036 #line $LINENO "configure"
30037 /* confdefs.h. */
30038 _ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h. */
30042 #include <math.h>
30044 main ()
30046 hypot(0, 0);
30048 return 0;
30050 _ACEOF
30051 rm -f conftest.$ac_objext
30052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30053 (eval $ac_compile) 2>&5
30054 ac_status=$?
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); } &&
30057 { ac_try='test -s conftest.$ac_objext'
30058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059 (eval $ac_try) 2>&5
30060 ac_status=$?
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; }; then
30063 glibcxx_cv_func_hypot_use=yes
30064 else
30065 echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30068 glibcxx_cv_func_hypot_use=no
30070 rm -f conftest.$ac_objext conftest.$ac_ext
30071 ac_ext=c
30072 ac_cpp='$CPP $CPPFLAGS'
30073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30081 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
30082 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
30084 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
30086 for ac_func in hypot
30088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30089 echo "$as_me:$LINENO: checking for $ac_func" >&5
30090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30091 if eval "test \"\${$as_ac_var+set}\" = set"; then
30092 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 else
30094 if test x$gcc_no_link = xyes; then
30095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30097 { (exit 1); exit 1; }; }
30099 cat >conftest.$ac_ext <<_ACEOF
30100 #line $LINENO "configure"
30101 /* confdefs.h. */
30102 _ACEOF
30103 cat confdefs.h >>conftest.$ac_ext
30104 cat >>conftest.$ac_ext <<_ACEOF
30105 /* end confdefs.h. */
30106 /* System header to define __stub macros and hopefully few prototypes,
30107 which can conflict with char $ac_func (); below.
30108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30109 <limits.h> exists even on freestanding compilers. */
30110 #ifdef __STDC__
30111 # include <limits.h>
30112 #else
30113 # include <assert.h>
30114 #endif
30115 /* Override any gcc2 internal prototype to avoid an error. */
30116 #ifdef __cplusplus
30117 extern "C"
30119 #endif
30120 /* We use char because int might match the return type of a gcc2
30121 builtin and then its argument prototype would still apply. */
30122 char $ac_func ();
30123 /* The GNU C library defines this for functions which it implements
30124 to always fail with ENOSYS. Some functions are actually named
30125 something starting with __ and the normal name is an alias. */
30126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30127 choke me
30128 #else
30129 char (*f) () = $ac_func;
30130 #endif
30131 #ifdef __cplusplus
30133 #endif
30136 main ()
30138 return f != $ac_func;
30140 return 0;
30142 _ACEOF
30143 rm -f conftest.$ac_objext conftest$ac_exeext
30144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30145 (eval $ac_link) 2>&5
30146 ac_status=$?
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); } &&
30149 { ac_try='test -s conftest$ac_exeext'
30150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151 (eval $ac_try) 2>&5
30152 ac_status=$?
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); }; }; then
30155 eval "$as_ac_var=yes"
30156 else
30157 echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30160 eval "$as_ac_var=no"
30162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30166 if test `eval echo '${'$as_ac_var'}'` = yes; then
30167 cat >>confdefs.h <<_ACEOF
30168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30169 _ACEOF
30172 done
30174 else
30176 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
30177 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
30178 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
30179 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
30180 echo $ECHO_N "(cached) $ECHO_C" >&6
30181 else
30185 ac_ext=cc
30186 ac_cpp='$CXXCPP $CPPFLAGS'
30187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30191 cat >conftest.$ac_ext <<_ACEOF
30192 #line $LINENO "configure"
30193 /* confdefs.h. */
30194 _ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30198 #include <math.h>
30200 main ()
30202 _hypot(0, 0);
30204 return 0;
30206 _ACEOF
30207 rm -f conftest.$ac_objext
30208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30209 (eval $ac_compile) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } &&
30213 { ac_try='test -s conftest.$ac_objext'
30214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215 (eval $ac_try) 2>&5
30216 ac_status=$?
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); }; }; then
30219 glibcxx_cv_func__hypot_use=yes
30220 else
30221 echo "$as_me: failed program was:" >&5
30222 sed 's/^/| /' conftest.$ac_ext >&5
30224 glibcxx_cv_func__hypot_use=no
30226 rm -f conftest.$ac_objext conftest.$ac_ext
30227 ac_ext=c
30228 ac_cpp='$CPP $CPPFLAGS'
30229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30237 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
30238 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
30240 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
30242 for ac_func in _hypot
30244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245 echo "$as_me:$LINENO: checking for $ac_func" >&5
30246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247 if eval "test \"\${$as_ac_var+set}\" = set"; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249 else
30250 if test x$gcc_no_link = xyes; then
30251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30253 { (exit 1); exit 1; }; }
30255 cat >conftest.$ac_ext <<_ACEOF
30256 #line $LINENO "configure"
30257 /* confdefs.h. */
30258 _ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h. */
30262 /* System header to define __stub macros and hopefully few prototypes,
30263 which can conflict with char $ac_func (); below.
30264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30265 <limits.h> exists even on freestanding compilers. */
30266 #ifdef __STDC__
30267 # include <limits.h>
30268 #else
30269 # include <assert.h>
30270 #endif
30271 /* Override any gcc2 internal prototype to avoid an error. */
30272 #ifdef __cplusplus
30273 extern "C"
30275 #endif
30276 /* We use char because int might match the return type of a gcc2
30277 builtin and then its argument prototype would still apply. */
30278 char $ac_func ();
30279 /* The GNU C library defines this for functions which it implements
30280 to always fail with ENOSYS. Some functions are actually named
30281 something starting with __ and the normal name is an alias. */
30282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30283 choke me
30284 #else
30285 char (*f) () = $ac_func;
30286 #endif
30287 #ifdef __cplusplus
30289 #endif
30292 main ()
30294 return f != $ac_func;
30296 return 0;
30298 _ACEOF
30299 rm -f conftest.$ac_objext conftest$ac_exeext
30300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30301 (eval $ac_link) 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } &&
30305 { ac_try='test -s conftest$ac_exeext'
30306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30307 (eval $ac_try) 2>&5
30308 ac_status=$?
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; }; then
30311 eval "$as_ac_var=yes"
30312 else
30313 echo "$as_me: failed program was:" >&5
30314 sed 's/^/| /' conftest.$ac_ext >&5
30316 eval "$as_ac_var=no"
30318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30322 if test `eval echo '${'$as_ac_var'}'` = yes; then
30323 cat >>confdefs.h <<_ACEOF
30324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30325 _ACEOF
30328 done
30335 echo "$as_me:$LINENO: checking for float trig functions" >&5
30336 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
30337 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
30338 echo $ECHO_N "(cached) $ECHO_C" >&6
30339 else
30343 ac_ext=cc
30344 ac_cpp='$CXXCPP $CPPFLAGS'
30345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30349 cat >conftest.$ac_ext <<_ACEOF
30350 #line $LINENO "configure"
30351 /* confdefs.h. */
30352 _ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356 #include <math.h>
30358 main ()
30360 `for x in acosf asinf atanf \
30361 cosf sinf tanf \
30362 coshf sinhf tanhf; do echo "$x (0);"; done`
30364 return 0;
30366 _ACEOF
30367 rm -f conftest.$ac_objext
30368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30369 (eval $ac_compile) 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } &&
30373 { ac_try='test -s conftest.$ac_objext'
30374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30375 (eval $ac_try) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; }; then
30379 glibcxx_cv_func_float_trig_use=yes
30380 else
30381 echo "$as_me: failed program was:" >&5
30382 sed 's/^/| /' conftest.$ac_ext >&5
30384 glibcxx_cv_func_float_trig_use=no
30386 rm -f conftest.$ac_objext conftest.$ac_ext
30387 ac_ext=c
30388 ac_cpp='$CPP $CPPFLAGS'
30389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30395 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
30396 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
30397 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
30407 for ac_func in acosf asinf atanf \
30408 cosf sinf tanf \
30409 coshf sinhf tanhf
30411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30412 echo "$as_me:$LINENO: checking for $ac_func" >&5
30413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30414 if eval "test \"\${$as_ac_var+set}\" = set"; then
30415 echo $ECHO_N "(cached) $ECHO_C" >&6
30416 else
30417 if test x$gcc_no_link = xyes; then
30418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30420 { (exit 1); exit 1; }; }
30422 cat >conftest.$ac_ext <<_ACEOF
30423 #line $LINENO "configure"
30424 /* confdefs.h. */
30425 _ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h. */
30429 /* System header to define __stub macros and hopefully few prototypes,
30430 which can conflict with char $ac_func (); below.
30431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432 <limits.h> exists even on freestanding compilers. */
30433 #ifdef __STDC__
30434 # include <limits.h>
30435 #else
30436 # include <assert.h>
30437 #endif
30438 /* Override any gcc2 internal prototype to avoid an error. */
30439 #ifdef __cplusplus
30440 extern "C"
30442 #endif
30443 /* We use char because int might match the return type of a gcc2
30444 builtin and then its argument prototype would still apply. */
30445 char $ac_func ();
30446 /* The GNU C library defines this for functions which it implements
30447 to always fail with ENOSYS. Some functions are actually named
30448 something starting with __ and the normal name is an alias. */
30449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30450 choke me
30451 #else
30452 char (*f) () = $ac_func;
30453 #endif
30454 #ifdef __cplusplus
30456 #endif
30459 main ()
30461 return f != $ac_func;
30463 return 0;
30465 _ACEOF
30466 rm -f conftest.$ac_objext conftest$ac_exeext
30467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30468 (eval $ac_link) 2>&5
30469 ac_status=$?
30470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471 (exit $ac_status); } &&
30472 { ac_try='test -s conftest$ac_exeext'
30473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474 (eval $ac_try) 2>&5
30475 ac_status=$?
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); }; }; then
30478 eval "$as_ac_var=yes"
30479 else
30480 echo "$as_me: failed program was:" >&5
30481 sed 's/^/| /' conftest.$ac_ext >&5
30483 eval "$as_ac_var=no"
30485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30489 if test `eval echo '${'$as_ac_var'}'` = yes; then
30490 cat >>confdefs.h <<_ACEOF
30491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30492 _ACEOF
30495 done
30500 echo "$as_me:$LINENO: checking for float round functions" >&5
30501 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
30502 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
30503 echo $ECHO_N "(cached) $ECHO_C" >&6
30504 else
30508 ac_ext=cc
30509 ac_cpp='$CXXCPP $CPPFLAGS'
30510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30514 cat >conftest.$ac_ext <<_ACEOF
30515 #line $LINENO "configure"
30516 /* confdefs.h. */
30517 _ACEOF
30518 cat confdefs.h >>conftest.$ac_ext
30519 cat >>conftest.$ac_ext <<_ACEOF
30520 /* end confdefs.h. */
30521 #include <math.h>
30523 main ()
30525 `for x in ceilf floorf; do echo "$x (0);"; done`
30527 return 0;
30529 _ACEOF
30530 rm -f conftest.$ac_objext
30531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30532 (eval $ac_compile) 2>&5
30533 ac_status=$?
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
30536 { ac_try='test -s conftest.$ac_objext'
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30542 glibcxx_cv_func_float_round_use=yes
30543 else
30544 echo "$as_me: failed program was:" >&5
30545 sed 's/^/| /' conftest.$ac_ext >&5
30547 glibcxx_cv_func_float_round_use=no
30549 rm -f conftest.$ac_objext conftest.$ac_ext
30550 ac_ext=c
30551 ac_cpp='$CPP $CPPFLAGS'
30552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30558 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
30559 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
30560 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
30563 for ac_func in ceilf floorf
30565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30566 echo "$as_me:$LINENO: checking for $ac_func" >&5
30567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30568 if eval "test \"\${$as_ac_var+set}\" = set"; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571 if test x$gcc_no_link = xyes; then
30572 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30573 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30574 { (exit 1); exit 1; }; }
30576 cat >conftest.$ac_ext <<_ACEOF
30577 #line $LINENO "configure"
30578 /* confdefs.h. */
30579 _ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30583 /* System header to define __stub macros and hopefully few prototypes,
30584 which can conflict with char $ac_func (); below.
30585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30586 <limits.h> exists even on freestanding compilers. */
30587 #ifdef __STDC__
30588 # include <limits.h>
30589 #else
30590 # include <assert.h>
30591 #endif
30592 /* Override any gcc2 internal prototype to avoid an error. */
30593 #ifdef __cplusplus
30594 extern "C"
30596 #endif
30597 /* We use char because int might match the return type of a gcc2
30598 builtin and then its argument prototype would still apply. */
30599 char $ac_func ();
30600 /* The GNU C library defines this for functions which it implements
30601 to always fail with ENOSYS. Some functions are actually named
30602 something starting with __ and the normal name is an alias. */
30603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30604 choke me
30605 #else
30606 char (*f) () = $ac_func;
30607 #endif
30608 #ifdef __cplusplus
30610 #endif
30613 main ()
30615 return f != $ac_func;
30617 return 0;
30619 _ACEOF
30620 rm -f conftest.$ac_objext conftest$ac_exeext
30621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30622 (eval $ac_link) 2>&5
30623 ac_status=$?
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); } &&
30626 { ac_try='test -s conftest$ac_exeext'
30627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628 (eval $ac_try) 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; }; then
30632 eval "$as_ac_var=yes"
30633 else
30634 echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30637 eval "$as_ac_var=no"
30639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30643 if test `eval echo '${'$as_ac_var'}'` = yes; then
30644 cat >>confdefs.h <<_ACEOF
30645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30646 _ACEOF
30649 done
30655 echo "$as_me:$LINENO: checking for expf declaration" >&5
30656 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
30657 if test x${glibcxx_cv_func_expf_use+set} != xset; then
30658 if test "${glibcxx_cv_func_expf_use+set}" = set; then
30659 echo $ECHO_N "(cached) $ECHO_C" >&6
30660 else
30664 ac_ext=cc
30665 ac_cpp='$CXXCPP $CPPFLAGS'
30666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30670 cat >conftest.$ac_ext <<_ACEOF
30671 #line $LINENO "configure"
30672 /* confdefs.h. */
30673 _ACEOF
30674 cat confdefs.h >>conftest.$ac_ext
30675 cat >>conftest.$ac_ext <<_ACEOF
30676 /* end confdefs.h. */
30677 #include <math.h>
30678 #ifdef HAVE_IEEEFP_H
30679 #include <ieeefp.h>
30680 #endif
30683 main ()
30685 expf(0);
30687 return 0;
30689 _ACEOF
30690 rm -f conftest.$ac_objext
30691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30692 (eval $ac_compile) 2>&5
30693 ac_status=$?
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); } &&
30696 { ac_try='test -s conftest.$ac_objext'
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30699 ac_status=$?
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; }; then
30702 glibcxx_cv_func_expf_use=yes
30703 else
30704 echo "$as_me: failed program was:" >&5
30705 sed 's/^/| /' conftest.$ac_ext >&5
30707 glibcxx_cv_func_expf_use=no
30709 rm -f conftest.$ac_objext conftest.$ac_ext
30710 ac_ext=c
30711 ac_cpp='$CPP $CPPFLAGS'
30712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30720 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
30721 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
30723 if test x$glibcxx_cv_func_expf_use = x"yes"; then
30725 for ac_func in expf
30727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30728 echo "$as_me:$LINENO: checking for $ac_func" >&5
30729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30730 if eval "test \"\${$as_ac_var+set}\" = set"; then
30731 echo $ECHO_N "(cached) $ECHO_C" >&6
30732 else
30733 if test x$gcc_no_link = xyes; then
30734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30736 { (exit 1); exit 1; }; }
30738 cat >conftest.$ac_ext <<_ACEOF
30739 #line $LINENO "configure"
30740 /* confdefs.h. */
30741 _ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30745 /* System header to define __stub macros and hopefully few prototypes,
30746 which can conflict with char $ac_func (); below.
30747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30748 <limits.h> exists even on freestanding compilers. */
30749 #ifdef __STDC__
30750 # include <limits.h>
30751 #else
30752 # include <assert.h>
30753 #endif
30754 /* Override any gcc2 internal prototype to avoid an error. */
30755 #ifdef __cplusplus
30756 extern "C"
30758 #endif
30759 /* We use char because int might match the return type of a gcc2
30760 builtin and then its argument prototype would still apply. */
30761 char $ac_func ();
30762 /* The GNU C library defines this for functions which it implements
30763 to always fail with ENOSYS. Some functions are actually named
30764 something starting with __ and the normal name is an alias. */
30765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30766 choke me
30767 #else
30768 char (*f) () = $ac_func;
30769 #endif
30770 #ifdef __cplusplus
30772 #endif
30775 main ()
30777 return f != $ac_func;
30779 return 0;
30781 _ACEOF
30782 rm -f conftest.$ac_objext conftest$ac_exeext
30783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30784 (eval $ac_link) 2>&5
30785 ac_status=$?
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } &&
30788 { ac_try='test -s conftest$ac_exeext'
30789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30790 (eval $ac_try) 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; }; then
30794 eval "$as_ac_var=yes"
30795 else
30796 echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30799 eval "$as_ac_var=no"
30801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30805 if test `eval echo '${'$as_ac_var'}'` = yes; then
30806 cat >>confdefs.h <<_ACEOF
30807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30808 _ACEOF
30811 done
30813 else
30815 echo "$as_me:$LINENO: checking for _expf declaration" >&5
30816 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
30817 if test x${glibcxx_cv_func__expf_use+set} != xset; then
30818 if test "${glibcxx_cv_func__expf_use+set}" = set; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30820 else
30824 ac_ext=cc
30825 ac_cpp='$CXXCPP $CPPFLAGS'
30826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30830 cat >conftest.$ac_ext <<_ACEOF
30831 #line $LINENO "configure"
30832 /* confdefs.h. */
30833 _ACEOF
30834 cat confdefs.h >>conftest.$ac_ext
30835 cat >>conftest.$ac_ext <<_ACEOF
30836 /* end confdefs.h. */
30837 #include <math.h>
30838 #ifdef HAVE_IEEEFP_H
30839 #include <ieeefp.h>
30840 #endif
30843 main ()
30845 _expf(0);
30847 return 0;
30849 _ACEOF
30850 rm -f conftest.$ac_objext
30851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30852 (eval $ac_compile) 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } &&
30856 { ac_try='test -s conftest.$ac_objext'
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; }; then
30862 glibcxx_cv_func__expf_use=yes
30863 else
30864 echo "$as_me: failed program was:" >&5
30865 sed 's/^/| /' conftest.$ac_ext >&5
30867 glibcxx_cv_func__expf_use=no
30869 rm -f conftest.$ac_objext conftest.$ac_ext
30870 ac_ext=c
30871 ac_cpp='$CPP $CPPFLAGS'
30872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30880 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
30881 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
30883 if test x$glibcxx_cv_func__expf_use = x"yes"; then
30885 for ac_func in _expf
30887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30888 echo "$as_me:$LINENO: checking for $ac_func" >&5
30889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30890 if eval "test \"\${$as_ac_var+set}\" = set"; then
30891 echo $ECHO_N "(cached) $ECHO_C" >&6
30892 else
30893 if test x$gcc_no_link = xyes; then
30894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30896 { (exit 1); exit 1; }; }
30898 cat >conftest.$ac_ext <<_ACEOF
30899 #line $LINENO "configure"
30900 /* confdefs.h. */
30901 _ACEOF
30902 cat confdefs.h >>conftest.$ac_ext
30903 cat >>conftest.$ac_ext <<_ACEOF
30904 /* end confdefs.h. */
30905 /* System header to define __stub macros and hopefully few prototypes,
30906 which can conflict with char $ac_func (); below.
30907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30908 <limits.h> exists even on freestanding compilers. */
30909 #ifdef __STDC__
30910 # include <limits.h>
30911 #else
30912 # include <assert.h>
30913 #endif
30914 /* Override any gcc2 internal prototype to avoid an error. */
30915 #ifdef __cplusplus
30916 extern "C"
30918 #endif
30919 /* We use char because int might match the return type of a gcc2
30920 builtin and then its argument prototype would still apply. */
30921 char $ac_func ();
30922 /* The GNU C library defines this for functions which it implements
30923 to always fail with ENOSYS. Some functions are actually named
30924 something starting with __ and the normal name is an alias. */
30925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30926 choke me
30927 #else
30928 char (*f) () = $ac_func;
30929 #endif
30930 #ifdef __cplusplus
30932 #endif
30935 main ()
30937 return f != $ac_func;
30939 return 0;
30941 _ACEOF
30942 rm -f conftest.$ac_objext conftest$ac_exeext
30943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30944 (eval $ac_link) 2>&5
30945 ac_status=$?
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } &&
30948 { ac_try='test -s conftest$ac_exeext'
30949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950 (eval $ac_try) 2>&5
30951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; }; then
30954 eval "$as_ac_var=yes"
30955 else
30956 echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30959 eval "$as_ac_var=no"
30961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30965 if test `eval echo '${'$as_ac_var'}'` = yes; then
30966 cat >>confdefs.h <<_ACEOF
30967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30968 _ACEOF
30971 done
30978 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
30979 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
30980 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
30981 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30987 ac_ext=cc
30988 ac_cpp='$CXXCPP $CPPFLAGS'
30989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30993 cat >conftest.$ac_ext <<_ACEOF
30994 #line $LINENO "configure"
30995 /* confdefs.h. */
30996 _ACEOF
30997 cat confdefs.h >>conftest.$ac_ext
30998 cat >>conftest.$ac_ext <<_ACEOF
30999 /* end confdefs.h. */
31000 #include <math.h>
31001 #ifdef HAVE_IEEEFP_H
31002 #include <ieeefp.h>
31003 #endif
31006 main ()
31008 isnanf(0);
31010 return 0;
31012 _ACEOF
31013 rm -f conftest.$ac_objext
31014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31015 (eval $ac_compile) 2>&5
31016 ac_status=$?
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); } &&
31019 { ac_try='test -s conftest.$ac_objext'
31020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31021 (eval $ac_try) 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; }; then
31025 glibcxx_cv_func_isnanf_use=yes
31026 else
31027 echo "$as_me: failed program was:" >&5
31028 sed 's/^/| /' conftest.$ac_ext >&5
31030 glibcxx_cv_func_isnanf_use=no
31032 rm -f conftest.$ac_objext conftest.$ac_ext
31033 ac_ext=c
31034 ac_cpp='$CPP $CPPFLAGS'
31035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31043 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
31044 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
31046 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
31048 for ac_func in isnanf
31050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31051 echo "$as_me:$LINENO: checking for $ac_func" >&5
31052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31053 if eval "test \"\${$as_ac_var+set}\" = set"; then
31054 echo $ECHO_N "(cached) $ECHO_C" >&6
31055 else
31056 if test x$gcc_no_link = xyes; then
31057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31059 { (exit 1); exit 1; }; }
31061 cat >conftest.$ac_ext <<_ACEOF
31062 #line $LINENO "configure"
31063 /* confdefs.h. */
31064 _ACEOF
31065 cat confdefs.h >>conftest.$ac_ext
31066 cat >>conftest.$ac_ext <<_ACEOF
31067 /* end confdefs.h. */
31068 /* System header to define __stub macros and hopefully few prototypes,
31069 which can conflict with char $ac_func (); below.
31070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31071 <limits.h> exists even on freestanding compilers. */
31072 #ifdef __STDC__
31073 # include <limits.h>
31074 #else
31075 # include <assert.h>
31076 #endif
31077 /* Override any gcc2 internal prototype to avoid an error. */
31078 #ifdef __cplusplus
31079 extern "C"
31081 #endif
31082 /* We use char because int might match the return type of a gcc2
31083 builtin and then its argument prototype would still apply. */
31084 char $ac_func ();
31085 /* The GNU C library defines this for functions which it implements
31086 to always fail with ENOSYS. Some functions are actually named
31087 something starting with __ and the normal name is an alias. */
31088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31089 choke me
31090 #else
31091 char (*f) () = $ac_func;
31092 #endif
31093 #ifdef __cplusplus
31095 #endif
31098 main ()
31100 return f != $ac_func;
31102 return 0;
31104 _ACEOF
31105 rm -f conftest.$ac_objext conftest$ac_exeext
31106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31107 (eval $ac_link) 2>&5
31108 ac_status=$?
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } &&
31111 { ac_try='test -s conftest$ac_exeext'
31112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31113 (eval $ac_try) 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; }; then
31117 eval "$as_ac_var=yes"
31118 else
31119 echo "$as_me: failed program was:" >&5
31120 sed 's/^/| /' conftest.$ac_ext >&5
31122 eval "$as_ac_var=no"
31124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31128 if test `eval echo '${'$as_ac_var'}'` = yes; then
31129 cat >>confdefs.h <<_ACEOF
31130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31131 _ACEOF
31134 done
31136 else
31138 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
31139 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
31140 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
31141 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
31142 echo $ECHO_N "(cached) $ECHO_C" >&6
31143 else
31147 ac_ext=cc
31148 ac_cpp='$CXXCPP $CPPFLAGS'
31149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31153 cat >conftest.$ac_ext <<_ACEOF
31154 #line $LINENO "configure"
31155 /* confdefs.h. */
31156 _ACEOF
31157 cat confdefs.h >>conftest.$ac_ext
31158 cat >>conftest.$ac_ext <<_ACEOF
31159 /* end confdefs.h. */
31160 #include <math.h>
31161 #ifdef HAVE_IEEEFP_H
31162 #include <ieeefp.h>
31163 #endif
31166 main ()
31168 _isnanf(0);
31170 return 0;
31172 _ACEOF
31173 rm -f conftest.$ac_objext
31174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31175 (eval $ac_compile) 2>&5
31176 ac_status=$?
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); } &&
31179 { ac_try='test -s conftest.$ac_objext'
31180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31181 (eval $ac_try) 2>&5
31182 ac_status=$?
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; }; then
31185 glibcxx_cv_func__isnanf_use=yes
31186 else
31187 echo "$as_me: failed program was:" >&5
31188 sed 's/^/| /' conftest.$ac_ext >&5
31190 glibcxx_cv_func__isnanf_use=no
31192 rm -f conftest.$ac_objext conftest.$ac_ext
31193 ac_ext=c
31194 ac_cpp='$CPP $CPPFLAGS'
31195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31203 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
31204 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
31206 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
31208 for ac_func in _isnanf
31210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31211 echo "$as_me:$LINENO: checking for $ac_func" >&5
31212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31213 if eval "test \"\${$as_ac_var+set}\" = set"; then
31214 echo $ECHO_N "(cached) $ECHO_C" >&6
31215 else
31216 if test x$gcc_no_link = xyes; then
31217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31219 { (exit 1); exit 1; }; }
31221 cat >conftest.$ac_ext <<_ACEOF
31222 #line $LINENO "configure"
31223 /* confdefs.h. */
31224 _ACEOF
31225 cat confdefs.h >>conftest.$ac_ext
31226 cat >>conftest.$ac_ext <<_ACEOF
31227 /* end confdefs.h. */
31228 /* System header to define __stub macros and hopefully few prototypes,
31229 which can conflict with char $ac_func (); below.
31230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31231 <limits.h> exists even on freestanding compilers. */
31232 #ifdef __STDC__
31233 # include <limits.h>
31234 #else
31235 # include <assert.h>
31236 #endif
31237 /* Override any gcc2 internal prototype to avoid an error. */
31238 #ifdef __cplusplus
31239 extern "C"
31241 #endif
31242 /* We use char because int might match the return type of a gcc2
31243 builtin and then its argument prototype would still apply. */
31244 char $ac_func ();
31245 /* The GNU C library defines this for functions which it implements
31246 to always fail with ENOSYS. Some functions are actually named
31247 something starting with __ and the normal name is an alias. */
31248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31249 choke me
31250 #else
31251 char (*f) () = $ac_func;
31252 #endif
31253 #ifdef __cplusplus
31255 #endif
31258 main ()
31260 return f != $ac_func;
31262 return 0;
31264 _ACEOF
31265 rm -f conftest.$ac_objext conftest$ac_exeext
31266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31267 (eval $ac_link) 2>&5
31268 ac_status=$?
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); } &&
31271 { ac_try='test -s conftest$ac_exeext'
31272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31273 (eval $ac_try) 2>&5
31274 ac_status=$?
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); }; }; then
31277 eval "$as_ac_var=yes"
31278 else
31279 echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31282 eval "$as_ac_var=no"
31284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31288 if test `eval echo '${'$as_ac_var'}'` = yes; then
31289 cat >>confdefs.h <<_ACEOF
31290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31291 _ACEOF
31294 done
31301 echo "$as_me:$LINENO: checking for isinff declaration" >&5
31302 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
31303 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
31304 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
31305 echo $ECHO_N "(cached) $ECHO_C" >&6
31306 else
31310 ac_ext=cc
31311 ac_cpp='$CXXCPP $CPPFLAGS'
31312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31316 cat >conftest.$ac_ext <<_ACEOF
31317 #line $LINENO "configure"
31318 /* confdefs.h. */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31323 #include <math.h>
31324 #ifdef HAVE_IEEEFP_H
31325 #include <ieeefp.h>
31326 #endif
31329 main ()
31331 isinff(0);
31333 return 0;
31335 _ACEOF
31336 rm -f conftest.$ac_objext
31337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31338 (eval $ac_compile) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); } &&
31342 { ac_try='test -s conftest.$ac_objext'
31343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344 (eval $ac_try) 2>&5
31345 ac_status=$?
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; }; then
31348 glibcxx_cv_func_isinff_use=yes
31349 else
31350 echo "$as_me: failed program was:" >&5
31351 sed 's/^/| /' conftest.$ac_ext >&5
31353 glibcxx_cv_func_isinff_use=no
31355 rm -f conftest.$ac_objext conftest.$ac_ext
31356 ac_ext=c
31357 ac_cpp='$CPP $CPPFLAGS'
31358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31366 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
31367 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
31369 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
31371 for ac_func in isinff
31373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31374 echo "$as_me:$LINENO: checking for $ac_func" >&5
31375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31376 if eval "test \"\${$as_ac_var+set}\" = set"; then
31377 echo $ECHO_N "(cached) $ECHO_C" >&6
31378 else
31379 if test x$gcc_no_link = xyes; then
31380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31382 { (exit 1); exit 1; }; }
31384 cat >conftest.$ac_ext <<_ACEOF
31385 #line $LINENO "configure"
31386 /* confdefs.h. */
31387 _ACEOF
31388 cat confdefs.h >>conftest.$ac_ext
31389 cat >>conftest.$ac_ext <<_ACEOF
31390 /* end confdefs.h. */
31391 /* System header to define __stub macros and hopefully few prototypes,
31392 which can conflict with char $ac_func (); below.
31393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31394 <limits.h> exists even on freestanding compilers. */
31395 #ifdef __STDC__
31396 # include <limits.h>
31397 #else
31398 # include <assert.h>
31399 #endif
31400 /* Override any gcc2 internal prototype to avoid an error. */
31401 #ifdef __cplusplus
31402 extern "C"
31404 #endif
31405 /* We use char because int might match the return type of a gcc2
31406 builtin and then its argument prototype would still apply. */
31407 char $ac_func ();
31408 /* The GNU C library defines this for functions which it implements
31409 to always fail with ENOSYS. Some functions are actually named
31410 something starting with __ and the normal name is an alias. */
31411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31412 choke me
31413 #else
31414 char (*f) () = $ac_func;
31415 #endif
31416 #ifdef __cplusplus
31418 #endif
31421 main ()
31423 return f != $ac_func;
31425 return 0;
31427 _ACEOF
31428 rm -f conftest.$ac_objext conftest$ac_exeext
31429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31430 (eval $ac_link) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } &&
31434 { ac_try='test -s conftest$ac_exeext'
31435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31436 (eval $ac_try) 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; }; then
31440 eval "$as_ac_var=yes"
31441 else
31442 echo "$as_me: failed program was:" >&5
31443 sed 's/^/| /' conftest.$ac_ext >&5
31445 eval "$as_ac_var=no"
31447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31451 if test `eval echo '${'$as_ac_var'}'` = yes; then
31452 cat >>confdefs.h <<_ACEOF
31453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31454 _ACEOF
31457 done
31459 else
31461 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
31462 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
31463 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
31464 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31466 else
31470 ac_ext=cc
31471 ac_cpp='$CXXCPP $CPPFLAGS'
31472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31476 cat >conftest.$ac_ext <<_ACEOF
31477 #line $LINENO "configure"
31478 /* confdefs.h. */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h. */
31483 #include <math.h>
31484 #ifdef HAVE_IEEEFP_H
31485 #include <ieeefp.h>
31486 #endif
31489 main ()
31491 _isinff(0);
31493 return 0;
31495 _ACEOF
31496 rm -f conftest.$ac_objext
31497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31498 (eval $ac_compile) 2>&5
31499 ac_status=$?
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); } &&
31502 { ac_try='test -s conftest.$ac_objext'
31503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504 (eval $ac_try) 2>&5
31505 ac_status=$?
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; }; then
31508 glibcxx_cv_func__isinff_use=yes
31509 else
31510 echo "$as_me: failed program was:" >&5
31511 sed 's/^/| /' conftest.$ac_ext >&5
31513 glibcxx_cv_func__isinff_use=no
31515 rm -f conftest.$ac_objext conftest.$ac_ext
31516 ac_ext=c
31517 ac_cpp='$CPP $CPPFLAGS'
31518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31526 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
31527 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
31529 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
31531 for ac_func in _isinff
31533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31534 echo "$as_me:$LINENO: checking for $ac_func" >&5
31535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31536 if eval "test \"\${$as_ac_var+set}\" = set"; then
31537 echo $ECHO_N "(cached) $ECHO_C" >&6
31538 else
31539 if test x$gcc_no_link = xyes; then
31540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31541 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31542 { (exit 1); exit 1; }; }
31544 cat >conftest.$ac_ext <<_ACEOF
31545 #line $LINENO "configure"
31546 /* confdefs.h. */
31547 _ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h. */
31551 /* System header to define __stub macros and hopefully few prototypes,
31552 which can conflict with char $ac_func (); below.
31553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31554 <limits.h> exists even on freestanding compilers. */
31555 #ifdef __STDC__
31556 # include <limits.h>
31557 #else
31558 # include <assert.h>
31559 #endif
31560 /* Override any gcc2 internal prototype to avoid an error. */
31561 #ifdef __cplusplus
31562 extern "C"
31564 #endif
31565 /* We use char because int might match the return type of a gcc2
31566 builtin and then its argument prototype would still apply. */
31567 char $ac_func ();
31568 /* The GNU C library defines this for functions which it implements
31569 to always fail with ENOSYS. Some functions are actually named
31570 something starting with __ and the normal name is an alias. */
31571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31572 choke me
31573 #else
31574 char (*f) () = $ac_func;
31575 #endif
31576 #ifdef __cplusplus
31578 #endif
31581 main ()
31583 return f != $ac_func;
31585 return 0;
31587 _ACEOF
31588 rm -f conftest.$ac_objext conftest$ac_exeext
31589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31590 (eval $ac_link) 2>&5
31591 ac_status=$?
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); } &&
31594 { ac_try='test -s conftest$ac_exeext'
31595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31596 (eval $ac_try) 2>&5
31597 ac_status=$?
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; }; then
31600 eval "$as_ac_var=yes"
31601 else
31602 echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31605 eval "$as_ac_var=no"
31607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31611 if test `eval echo '${'$as_ac_var'}'` = yes; then
31612 cat >>confdefs.h <<_ACEOF
31613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31614 _ACEOF
31617 done
31624 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
31625 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
31626 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
31627 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
31628 echo $ECHO_N "(cached) $ECHO_C" >&6
31629 else
31633 ac_ext=cc
31634 ac_cpp='$CXXCPP $CPPFLAGS'
31635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31639 cat >conftest.$ac_ext <<_ACEOF
31640 #line $LINENO "configure"
31641 /* confdefs.h. */
31642 _ACEOF
31643 cat confdefs.h >>conftest.$ac_ext
31644 cat >>conftest.$ac_ext <<_ACEOF
31645 /* end confdefs.h. */
31646 #include <math.h>
31648 main ()
31650 atan2f(0, 0);
31652 return 0;
31654 _ACEOF
31655 rm -f conftest.$ac_objext
31656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31657 (eval $ac_compile) 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } &&
31661 { ac_try='test -s conftest.$ac_objext'
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }; then
31667 glibcxx_cv_func_atan2f_use=yes
31668 else
31669 echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31672 glibcxx_cv_func_atan2f_use=no
31674 rm -f conftest.$ac_objext conftest.$ac_ext
31675 ac_ext=c
31676 ac_cpp='$CPP $CPPFLAGS'
31677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31685 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
31686 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
31688 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
31690 for ac_func in atan2f
31692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31693 echo "$as_me:$LINENO: checking for $ac_func" >&5
31694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31695 if eval "test \"\${$as_ac_var+set}\" = set"; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31697 else
31698 if test x$gcc_no_link = xyes; then
31699 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31701 { (exit 1); exit 1; }; }
31703 cat >conftest.$ac_ext <<_ACEOF
31704 #line $LINENO "configure"
31705 /* confdefs.h. */
31706 _ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h. */
31710 /* System header to define __stub macros and hopefully few prototypes,
31711 which can conflict with char $ac_func (); below.
31712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31713 <limits.h> exists even on freestanding compilers. */
31714 #ifdef __STDC__
31715 # include <limits.h>
31716 #else
31717 # include <assert.h>
31718 #endif
31719 /* Override any gcc2 internal prototype to avoid an error. */
31720 #ifdef __cplusplus
31721 extern "C"
31723 #endif
31724 /* We use char because int might match the return type of a gcc2
31725 builtin and then its argument prototype would still apply. */
31726 char $ac_func ();
31727 /* The GNU C library defines this for functions which it implements
31728 to always fail with ENOSYS. Some functions are actually named
31729 something starting with __ and the normal name is an alias. */
31730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31731 choke me
31732 #else
31733 char (*f) () = $ac_func;
31734 #endif
31735 #ifdef __cplusplus
31737 #endif
31740 main ()
31742 return f != $ac_func;
31744 return 0;
31746 _ACEOF
31747 rm -f conftest.$ac_objext conftest$ac_exeext
31748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31749 (eval $ac_link) 2>&5
31750 ac_status=$?
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); } &&
31753 { ac_try='test -s conftest$ac_exeext'
31754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31755 (eval $ac_try) 2>&5
31756 ac_status=$?
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); }; }; then
31759 eval "$as_ac_var=yes"
31760 else
31761 echo "$as_me: failed program was:" >&5
31762 sed 's/^/| /' conftest.$ac_ext >&5
31764 eval "$as_ac_var=no"
31766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31770 if test `eval echo '${'$as_ac_var'}'` = yes; then
31771 cat >>confdefs.h <<_ACEOF
31772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31773 _ACEOF
31776 done
31778 else
31780 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
31781 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
31782 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
31783 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
31784 echo $ECHO_N "(cached) $ECHO_C" >&6
31785 else
31789 ac_ext=cc
31790 ac_cpp='$CXXCPP $CPPFLAGS'
31791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31795 cat >conftest.$ac_ext <<_ACEOF
31796 #line $LINENO "configure"
31797 /* confdefs.h. */
31798 _ACEOF
31799 cat confdefs.h >>conftest.$ac_ext
31800 cat >>conftest.$ac_ext <<_ACEOF
31801 /* end confdefs.h. */
31802 #include <math.h>
31804 main ()
31806 _atan2f(0, 0);
31808 return 0;
31810 _ACEOF
31811 rm -f conftest.$ac_objext
31812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31813 (eval $ac_compile) 2>&5
31814 ac_status=$?
31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816 (exit $ac_status); } &&
31817 { ac_try='test -s conftest.$ac_objext'
31818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31819 (eval $ac_try) 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; }; then
31823 glibcxx_cv_func__atan2f_use=yes
31824 else
31825 echo "$as_me: failed program was:" >&5
31826 sed 's/^/| /' conftest.$ac_ext >&5
31828 glibcxx_cv_func__atan2f_use=no
31830 rm -f conftest.$ac_objext conftest.$ac_ext
31831 ac_ext=c
31832 ac_cpp='$CPP $CPPFLAGS'
31833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31841 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
31842 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
31844 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
31846 for ac_func in _atan2f
31848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31849 echo "$as_me:$LINENO: checking for $ac_func" >&5
31850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31851 if eval "test \"\${$as_ac_var+set}\" = set"; then
31852 echo $ECHO_N "(cached) $ECHO_C" >&6
31853 else
31854 if test x$gcc_no_link = xyes; then
31855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31857 { (exit 1); exit 1; }; }
31859 cat >conftest.$ac_ext <<_ACEOF
31860 #line $LINENO "configure"
31861 /* confdefs.h. */
31862 _ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h. */
31866 /* System header to define __stub macros and hopefully few prototypes,
31867 which can conflict with char $ac_func (); below.
31868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31869 <limits.h> exists even on freestanding compilers. */
31870 #ifdef __STDC__
31871 # include <limits.h>
31872 #else
31873 # include <assert.h>
31874 #endif
31875 /* Override any gcc2 internal prototype to avoid an error. */
31876 #ifdef __cplusplus
31877 extern "C"
31879 #endif
31880 /* We use char because int might match the return type of a gcc2
31881 builtin and then its argument prototype would still apply. */
31882 char $ac_func ();
31883 /* The GNU C library defines this for functions which it implements
31884 to always fail with ENOSYS. Some functions are actually named
31885 something starting with __ and the normal name is an alias. */
31886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31887 choke me
31888 #else
31889 char (*f) () = $ac_func;
31890 #endif
31891 #ifdef __cplusplus
31893 #endif
31896 main ()
31898 return f != $ac_func;
31900 return 0;
31902 _ACEOF
31903 rm -f conftest.$ac_objext conftest$ac_exeext
31904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31905 (eval $ac_link) 2>&5
31906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); } &&
31909 { ac_try='test -s conftest$ac_exeext'
31910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911 (eval $ac_try) 2>&5
31912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; }; then
31915 eval "$as_ac_var=yes"
31916 else
31917 echo "$as_me: failed program was:" >&5
31918 sed 's/^/| /' conftest.$ac_ext >&5
31920 eval "$as_ac_var=no"
31922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31926 if test `eval echo '${'$as_ac_var'}'` = yes; then
31927 cat >>confdefs.h <<_ACEOF
31928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31929 _ACEOF
31932 done
31939 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
31940 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
31941 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
31942 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
31943 echo $ECHO_N "(cached) $ECHO_C" >&6
31944 else
31948 ac_ext=cc
31949 ac_cpp='$CXXCPP $CPPFLAGS'
31950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31954 cat >conftest.$ac_ext <<_ACEOF
31955 #line $LINENO "configure"
31956 /* confdefs.h. */
31957 _ACEOF
31958 cat confdefs.h >>conftest.$ac_ext
31959 cat >>conftest.$ac_ext <<_ACEOF
31960 /* end confdefs.h. */
31961 #include <math.h>
31962 #ifdef HAVE_IEEEFP_H
31963 #include <ieeefp.h>
31964 #endif
31967 main ()
31969 fabsf(0);
31971 return 0;
31973 _ACEOF
31974 rm -f conftest.$ac_objext
31975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31976 (eval $ac_compile) 2>&5
31977 ac_status=$?
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); } &&
31980 { ac_try='test -s conftest.$ac_objext'
31981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982 (eval $ac_try) 2>&5
31983 ac_status=$?
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); }; }; then
31986 glibcxx_cv_func_fabsf_use=yes
31987 else
31988 echo "$as_me: failed program was:" >&5
31989 sed 's/^/| /' conftest.$ac_ext >&5
31991 glibcxx_cv_func_fabsf_use=no
31993 rm -f conftest.$ac_objext conftest.$ac_ext
31994 ac_ext=c
31995 ac_cpp='$CPP $CPPFLAGS'
31996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32004 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
32005 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
32007 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32009 for ac_func in fabsf
32011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32012 echo "$as_me:$LINENO: checking for $ac_func" >&5
32013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32014 if eval "test \"\${$as_ac_var+set}\" = set"; then
32015 echo $ECHO_N "(cached) $ECHO_C" >&6
32016 else
32017 if test x$gcc_no_link = xyes; then
32018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32020 { (exit 1); exit 1; }; }
32022 cat >conftest.$ac_ext <<_ACEOF
32023 #line $LINENO "configure"
32024 /* confdefs.h. */
32025 _ACEOF
32026 cat confdefs.h >>conftest.$ac_ext
32027 cat >>conftest.$ac_ext <<_ACEOF
32028 /* end confdefs.h. */
32029 /* System header to define __stub macros and hopefully few prototypes,
32030 which can conflict with char $ac_func (); below.
32031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32032 <limits.h> exists even on freestanding compilers. */
32033 #ifdef __STDC__
32034 # include <limits.h>
32035 #else
32036 # include <assert.h>
32037 #endif
32038 /* Override any gcc2 internal prototype to avoid an error. */
32039 #ifdef __cplusplus
32040 extern "C"
32042 #endif
32043 /* We use char because int might match the return type of a gcc2
32044 builtin and then its argument prototype would still apply. */
32045 char $ac_func ();
32046 /* The GNU C library defines this for functions which it implements
32047 to always fail with ENOSYS. Some functions are actually named
32048 something starting with __ and the normal name is an alias. */
32049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32050 choke me
32051 #else
32052 char (*f) () = $ac_func;
32053 #endif
32054 #ifdef __cplusplus
32056 #endif
32059 main ()
32061 return f != $ac_func;
32063 return 0;
32065 _ACEOF
32066 rm -f conftest.$ac_objext conftest$ac_exeext
32067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32068 (eval $ac_link) 2>&5
32069 ac_status=$?
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); } &&
32072 { ac_try='test -s conftest$ac_exeext'
32073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32074 (eval $ac_try) 2>&5
32075 ac_status=$?
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); }; }; then
32078 eval "$as_ac_var=yes"
32079 else
32080 echo "$as_me: failed program was:" >&5
32081 sed 's/^/| /' conftest.$ac_ext >&5
32083 eval "$as_ac_var=no"
32085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32089 if test `eval echo '${'$as_ac_var'}'` = yes; then
32090 cat >>confdefs.h <<_ACEOF
32091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32092 _ACEOF
32095 done
32097 else
32099 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
32100 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
32101 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
32102 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
32103 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 else
32108 ac_ext=cc
32109 ac_cpp='$CXXCPP $CPPFLAGS'
32110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32114 cat >conftest.$ac_ext <<_ACEOF
32115 #line $LINENO "configure"
32116 /* confdefs.h. */
32117 _ACEOF
32118 cat confdefs.h >>conftest.$ac_ext
32119 cat >>conftest.$ac_ext <<_ACEOF
32120 /* end confdefs.h. */
32121 #include <math.h>
32122 #ifdef HAVE_IEEEFP_H
32123 #include <ieeefp.h>
32124 #endif
32127 main ()
32129 _fabsf(0);
32131 return 0;
32133 _ACEOF
32134 rm -f conftest.$ac_objext
32135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32136 (eval $ac_compile) 2>&5
32137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); } &&
32140 { ac_try='test -s conftest.$ac_objext'
32141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32142 (eval $ac_try) 2>&5
32143 ac_status=$?
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); }; }; then
32146 glibcxx_cv_func__fabsf_use=yes
32147 else
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32151 glibcxx_cv_func__fabsf_use=no
32153 rm -f conftest.$ac_objext conftest.$ac_ext
32154 ac_ext=c
32155 ac_cpp='$CPP $CPPFLAGS'
32156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32164 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
32165 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
32167 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
32169 for ac_func in _fabsf
32171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32172 echo "$as_me:$LINENO: checking for $ac_func" >&5
32173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32174 if eval "test \"\${$as_ac_var+set}\" = set"; then
32175 echo $ECHO_N "(cached) $ECHO_C" >&6
32176 else
32177 if test x$gcc_no_link = xyes; then
32178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32180 { (exit 1); exit 1; }; }
32182 cat >conftest.$ac_ext <<_ACEOF
32183 #line $LINENO "configure"
32184 /* confdefs.h. */
32185 _ACEOF
32186 cat confdefs.h >>conftest.$ac_ext
32187 cat >>conftest.$ac_ext <<_ACEOF
32188 /* end confdefs.h. */
32189 /* System header to define __stub macros and hopefully few prototypes,
32190 which can conflict with char $ac_func (); below.
32191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32192 <limits.h> exists even on freestanding compilers. */
32193 #ifdef __STDC__
32194 # include <limits.h>
32195 #else
32196 # include <assert.h>
32197 #endif
32198 /* Override any gcc2 internal prototype to avoid an error. */
32199 #ifdef __cplusplus
32200 extern "C"
32202 #endif
32203 /* We use char because int might match the return type of a gcc2
32204 builtin and then its argument prototype would still apply. */
32205 char $ac_func ();
32206 /* The GNU C library defines this for functions which it implements
32207 to always fail with ENOSYS. Some functions are actually named
32208 something starting with __ and the normal name is an alias. */
32209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32210 choke me
32211 #else
32212 char (*f) () = $ac_func;
32213 #endif
32214 #ifdef __cplusplus
32216 #endif
32219 main ()
32221 return f != $ac_func;
32223 return 0;
32225 _ACEOF
32226 rm -f conftest.$ac_objext conftest$ac_exeext
32227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32228 (eval $ac_link) 2>&5
32229 ac_status=$?
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); } &&
32232 { ac_try='test -s conftest$ac_exeext'
32233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32234 (eval $ac_try) 2>&5
32235 ac_status=$?
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; }; then
32238 eval "$as_ac_var=yes"
32239 else
32240 echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32243 eval "$as_ac_var=no"
32245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32249 if test `eval echo '${'$as_ac_var'}'` = yes; then
32250 cat >>confdefs.h <<_ACEOF
32251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32252 _ACEOF
32255 done
32262 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
32263 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
32264 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32265 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
32266 echo $ECHO_N "(cached) $ECHO_C" >&6
32267 else
32271 ac_ext=cc
32272 ac_cpp='$CXXCPP $CPPFLAGS'
32273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32277 cat >conftest.$ac_ext <<_ACEOF
32278 #line $LINENO "configure"
32279 /* confdefs.h. */
32280 _ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h. */
32284 #include <math.h>
32286 main ()
32288 fmodf(0, 0);
32290 return 0;
32292 _ACEOF
32293 rm -f conftest.$ac_objext
32294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32295 (eval $ac_compile) 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); } &&
32299 { ac_try='test -s conftest.$ac_objext'
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
32305 glibcxx_cv_func_fmodf_use=yes
32306 else
32307 echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.$ac_ext >&5
32310 glibcxx_cv_func_fmodf_use=no
32312 rm -f conftest.$ac_objext conftest.$ac_ext
32313 ac_ext=c
32314 ac_cpp='$CPP $CPPFLAGS'
32315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32323 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
32324 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
32326 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
32328 for ac_func in fmodf
32330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32331 echo "$as_me:$LINENO: checking for $ac_func" >&5
32332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32333 if eval "test \"\${$as_ac_var+set}\" = set"; then
32334 echo $ECHO_N "(cached) $ECHO_C" >&6
32335 else
32336 if test x$gcc_no_link = xyes; then
32337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32339 { (exit 1); exit 1; }; }
32341 cat >conftest.$ac_ext <<_ACEOF
32342 #line $LINENO "configure"
32343 /* confdefs.h. */
32344 _ACEOF
32345 cat confdefs.h >>conftest.$ac_ext
32346 cat >>conftest.$ac_ext <<_ACEOF
32347 /* end confdefs.h. */
32348 /* System header to define __stub macros and hopefully few prototypes,
32349 which can conflict with char $ac_func (); below.
32350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32351 <limits.h> exists even on freestanding compilers. */
32352 #ifdef __STDC__
32353 # include <limits.h>
32354 #else
32355 # include <assert.h>
32356 #endif
32357 /* Override any gcc2 internal prototype to avoid an error. */
32358 #ifdef __cplusplus
32359 extern "C"
32361 #endif
32362 /* We use char because int might match the return type of a gcc2
32363 builtin and then its argument prototype would still apply. */
32364 char $ac_func ();
32365 /* The GNU C library defines this for functions which it implements
32366 to always fail with ENOSYS. Some functions are actually named
32367 something starting with __ and the normal name is an alias. */
32368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32369 choke me
32370 #else
32371 char (*f) () = $ac_func;
32372 #endif
32373 #ifdef __cplusplus
32375 #endif
32378 main ()
32380 return f != $ac_func;
32382 return 0;
32384 _ACEOF
32385 rm -f conftest.$ac_objext conftest$ac_exeext
32386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32387 (eval $ac_link) 2>&5
32388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); } &&
32391 { ac_try='test -s conftest$ac_exeext'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 eval "$as_ac_var=yes"
32398 else
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32402 eval "$as_ac_var=no"
32404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32408 if test `eval echo '${'$as_ac_var'}'` = yes; then
32409 cat >>confdefs.h <<_ACEOF
32410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32411 _ACEOF
32414 done
32416 else
32418 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
32419 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
32420 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
32421 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32423 else
32427 ac_ext=cc
32428 ac_cpp='$CXXCPP $CPPFLAGS'
32429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32433 cat >conftest.$ac_ext <<_ACEOF
32434 #line $LINENO "configure"
32435 /* confdefs.h. */
32436 _ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h. */
32440 #include <math.h>
32442 main ()
32444 _fmodf(0, 0);
32446 return 0;
32448 _ACEOF
32449 rm -f conftest.$ac_objext
32450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32451 (eval $ac_compile) 2>&5
32452 ac_status=$?
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); } &&
32455 { ac_try='test -s conftest.$ac_objext'
32456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457 (eval $ac_try) 2>&5
32458 ac_status=$?
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; }; then
32461 glibcxx_cv_func__fmodf_use=yes
32462 else
32463 echo "$as_me: failed program was:" >&5
32464 sed 's/^/| /' conftest.$ac_ext >&5
32466 glibcxx_cv_func__fmodf_use=no
32468 rm -f conftest.$ac_objext conftest.$ac_ext
32469 ac_ext=c
32470 ac_cpp='$CPP $CPPFLAGS'
32471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32479 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
32480 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
32482 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
32484 for ac_func in _fmodf
32486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32487 echo "$as_me:$LINENO: checking for $ac_func" >&5
32488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32489 if eval "test \"\${$as_ac_var+set}\" = set"; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32491 else
32492 if test x$gcc_no_link = xyes; then
32493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32495 { (exit 1); exit 1; }; }
32497 cat >conftest.$ac_ext <<_ACEOF
32498 #line $LINENO "configure"
32499 /* confdefs.h. */
32500 _ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h. */
32504 /* System header to define __stub macros and hopefully few prototypes,
32505 which can conflict with char $ac_func (); below.
32506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32507 <limits.h> exists even on freestanding compilers. */
32508 #ifdef __STDC__
32509 # include <limits.h>
32510 #else
32511 # include <assert.h>
32512 #endif
32513 /* Override any gcc2 internal prototype to avoid an error. */
32514 #ifdef __cplusplus
32515 extern "C"
32517 #endif
32518 /* We use char because int might match the return type of a gcc2
32519 builtin and then its argument prototype would still apply. */
32520 char $ac_func ();
32521 /* The GNU C library defines this for functions which it implements
32522 to always fail with ENOSYS. Some functions are actually named
32523 something starting with __ and the normal name is an alias. */
32524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32525 choke me
32526 #else
32527 char (*f) () = $ac_func;
32528 #endif
32529 #ifdef __cplusplus
32531 #endif
32534 main ()
32536 return f != $ac_func;
32538 return 0;
32540 _ACEOF
32541 rm -f conftest.$ac_objext conftest$ac_exeext
32542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32543 (eval $ac_link) 2>&5
32544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); } &&
32547 { ac_try='test -s conftest$ac_exeext'
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32550 ac_status=$?
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; }; then
32553 eval "$as_ac_var=yes"
32554 else
32555 echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32558 eval "$as_ac_var=no"
32560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32564 if test `eval echo '${'$as_ac_var'}'` = yes; then
32565 cat >>confdefs.h <<_ACEOF
32566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32567 _ACEOF
32570 done
32577 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
32578 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
32579 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
32580 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
32581 echo $ECHO_N "(cached) $ECHO_C" >&6
32582 else
32586 ac_ext=cc
32587 ac_cpp='$CXXCPP $CPPFLAGS'
32588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32592 cat >conftest.$ac_ext <<_ACEOF
32593 #line $LINENO "configure"
32594 /* confdefs.h. */
32595 _ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h. */
32599 #include <math.h>
32601 main ()
32603 frexpf(0, 0);
32605 return 0;
32607 _ACEOF
32608 rm -f conftest.$ac_objext
32609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32610 (eval $ac_compile) 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); } &&
32614 { ac_try='test -s conftest.$ac_objext'
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32620 glibcxx_cv_func_frexpf_use=yes
32621 else
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32625 glibcxx_cv_func_frexpf_use=no
32627 rm -f conftest.$ac_objext conftest.$ac_ext
32628 ac_ext=c
32629 ac_cpp='$CPP $CPPFLAGS'
32630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32638 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
32639 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
32641 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
32643 for ac_func in frexpf
32645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32646 echo "$as_me:$LINENO: checking for $ac_func" >&5
32647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32648 if eval "test \"\${$as_ac_var+set}\" = set"; then
32649 echo $ECHO_N "(cached) $ECHO_C" >&6
32650 else
32651 if test x$gcc_no_link = xyes; then
32652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32654 { (exit 1); exit 1; }; }
32656 cat >conftest.$ac_ext <<_ACEOF
32657 #line $LINENO "configure"
32658 /* confdefs.h. */
32659 _ACEOF
32660 cat confdefs.h >>conftest.$ac_ext
32661 cat >>conftest.$ac_ext <<_ACEOF
32662 /* end confdefs.h. */
32663 /* System header to define __stub macros and hopefully few prototypes,
32664 which can conflict with char $ac_func (); below.
32665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32666 <limits.h> exists even on freestanding compilers. */
32667 #ifdef __STDC__
32668 # include <limits.h>
32669 #else
32670 # include <assert.h>
32671 #endif
32672 /* Override any gcc2 internal prototype to avoid an error. */
32673 #ifdef __cplusplus
32674 extern "C"
32676 #endif
32677 /* We use char because int might match the return type of a gcc2
32678 builtin and then its argument prototype would still apply. */
32679 char $ac_func ();
32680 /* The GNU C library defines this for functions which it implements
32681 to always fail with ENOSYS. Some functions are actually named
32682 something starting with __ and the normal name is an alias. */
32683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32684 choke me
32685 #else
32686 char (*f) () = $ac_func;
32687 #endif
32688 #ifdef __cplusplus
32690 #endif
32693 main ()
32695 return f != $ac_func;
32697 return 0;
32699 _ACEOF
32700 rm -f conftest.$ac_objext conftest$ac_exeext
32701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32702 (eval $ac_link) 2>&5
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); } &&
32706 { ac_try='test -s conftest$ac_exeext'
32707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32708 (eval $ac_try) 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
32712 eval "$as_ac_var=yes"
32713 else
32714 echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32717 eval "$as_ac_var=no"
32719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32723 if test `eval echo '${'$as_ac_var'}'` = yes; then
32724 cat >>confdefs.h <<_ACEOF
32725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32726 _ACEOF
32729 done
32731 else
32733 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
32734 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
32735 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
32736 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
32737 echo $ECHO_N "(cached) $ECHO_C" >&6
32738 else
32742 ac_ext=cc
32743 ac_cpp='$CXXCPP $CPPFLAGS'
32744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32748 cat >conftest.$ac_ext <<_ACEOF
32749 #line $LINENO "configure"
32750 /* confdefs.h. */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h. */
32755 #include <math.h>
32757 main ()
32759 _frexpf(0, 0);
32761 return 0;
32763 _ACEOF
32764 rm -f conftest.$ac_objext
32765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32766 (eval $ac_compile) 2>&5
32767 ac_status=$?
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); } &&
32770 { ac_try='test -s conftest.$ac_objext'
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 glibcxx_cv_func__frexpf_use=yes
32777 else
32778 echo "$as_me: failed program was:" >&5
32779 sed 's/^/| /' conftest.$ac_ext >&5
32781 glibcxx_cv_func__frexpf_use=no
32783 rm -f conftest.$ac_objext conftest.$ac_ext
32784 ac_ext=c
32785 ac_cpp='$CPP $CPPFLAGS'
32786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32794 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
32795 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
32797 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
32799 for ac_func in _frexpf
32801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32802 echo "$as_me:$LINENO: checking for $ac_func" >&5
32803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32804 if eval "test \"\${$as_ac_var+set}\" = set"; then
32805 echo $ECHO_N "(cached) $ECHO_C" >&6
32806 else
32807 if test x$gcc_no_link = xyes; then
32808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32810 { (exit 1); exit 1; }; }
32812 cat >conftest.$ac_ext <<_ACEOF
32813 #line $LINENO "configure"
32814 /* confdefs.h. */
32815 _ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h. */
32819 /* System header to define __stub macros and hopefully few prototypes,
32820 which can conflict with char $ac_func (); below.
32821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32822 <limits.h> exists even on freestanding compilers. */
32823 #ifdef __STDC__
32824 # include <limits.h>
32825 #else
32826 # include <assert.h>
32827 #endif
32828 /* Override any gcc2 internal prototype to avoid an error. */
32829 #ifdef __cplusplus
32830 extern "C"
32832 #endif
32833 /* We use char because int might match the return type of a gcc2
32834 builtin and then its argument prototype would still apply. */
32835 char $ac_func ();
32836 /* The GNU C library defines this for functions which it implements
32837 to always fail with ENOSYS. Some functions are actually named
32838 something starting with __ and the normal name is an alias. */
32839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32840 choke me
32841 #else
32842 char (*f) () = $ac_func;
32843 #endif
32844 #ifdef __cplusplus
32846 #endif
32849 main ()
32851 return f != $ac_func;
32853 return 0;
32855 _ACEOF
32856 rm -f conftest.$ac_objext conftest$ac_exeext
32857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32858 (eval $ac_link) 2>&5
32859 ac_status=$?
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); } &&
32862 { ac_try='test -s conftest$ac_exeext'
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; }; then
32868 eval "$as_ac_var=yes"
32869 else
32870 echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32873 eval "$as_ac_var=no"
32875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32879 if test `eval echo '${'$as_ac_var'}'` = yes; then
32880 cat >>confdefs.h <<_ACEOF
32881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32882 _ACEOF
32885 done
32892 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
32893 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
32894 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
32895 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
32896 echo $ECHO_N "(cached) $ECHO_C" >&6
32897 else
32901 ac_ext=cc
32902 ac_cpp='$CXXCPP $CPPFLAGS'
32903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32907 cat >conftest.$ac_ext <<_ACEOF
32908 #line $LINENO "configure"
32909 /* confdefs.h. */
32910 _ACEOF
32911 cat confdefs.h >>conftest.$ac_ext
32912 cat >>conftest.$ac_ext <<_ACEOF
32913 /* end confdefs.h. */
32914 #include <math.h>
32916 main ()
32918 hypotf(0, 0);
32920 return 0;
32922 _ACEOF
32923 rm -f conftest.$ac_objext
32924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32925 (eval $ac_compile) 2>&5
32926 ac_status=$?
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); } &&
32929 { ac_try='test -s conftest.$ac_objext'
32930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32931 (eval $ac_try) 2>&5
32932 ac_status=$?
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); }; }; then
32935 glibcxx_cv_func_hypotf_use=yes
32936 else
32937 echo "$as_me: failed program was:" >&5
32938 sed 's/^/| /' conftest.$ac_ext >&5
32940 glibcxx_cv_func_hypotf_use=no
32942 rm -f conftest.$ac_objext conftest.$ac_ext
32943 ac_ext=c
32944 ac_cpp='$CPP $CPPFLAGS'
32945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32953 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
32954 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
32956 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
32958 for ac_func in hypotf
32960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32961 echo "$as_me:$LINENO: checking for $ac_func" >&5
32962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32963 if eval "test \"\${$as_ac_var+set}\" = set"; then
32964 echo $ECHO_N "(cached) $ECHO_C" >&6
32965 else
32966 if test x$gcc_no_link = xyes; then
32967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32969 { (exit 1); exit 1; }; }
32971 cat >conftest.$ac_ext <<_ACEOF
32972 #line $LINENO "configure"
32973 /* confdefs.h. */
32974 _ACEOF
32975 cat confdefs.h >>conftest.$ac_ext
32976 cat >>conftest.$ac_ext <<_ACEOF
32977 /* end confdefs.h. */
32978 /* System header to define __stub macros and hopefully few prototypes,
32979 which can conflict with char $ac_func (); below.
32980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32981 <limits.h> exists even on freestanding compilers. */
32982 #ifdef __STDC__
32983 # include <limits.h>
32984 #else
32985 # include <assert.h>
32986 #endif
32987 /* Override any gcc2 internal prototype to avoid an error. */
32988 #ifdef __cplusplus
32989 extern "C"
32991 #endif
32992 /* We use char because int might match the return type of a gcc2
32993 builtin and then its argument prototype would still apply. */
32994 char $ac_func ();
32995 /* The GNU C library defines this for functions which it implements
32996 to always fail with ENOSYS. Some functions are actually named
32997 something starting with __ and the normal name is an alias. */
32998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32999 choke me
33000 #else
33001 char (*f) () = $ac_func;
33002 #endif
33003 #ifdef __cplusplus
33005 #endif
33008 main ()
33010 return f != $ac_func;
33012 return 0;
33014 _ACEOF
33015 rm -f conftest.$ac_objext conftest$ac_exeext
33016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33017 (eval $ac_link) 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); } &&
33021 { ac_try='test -s conftest$ac_exeext'
33022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33023 (eval $ac_try) 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; }; then
33027 eval "$as_ac_var=yes"
33028 else
33029 echo "$as_me: failed program was:" >&5
33030 sed 's/^/| /' conftest.$ac_ext >&5
33032 eval "$as_ac_var=no"
33034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33038 if test `eval echo '${'$as_ac_var'}'` = yes; then
33039 cat >>confdefs.h <<_ACEOF
33040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33041 _ACEOF
33044 done
33046 else
33048 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
33049 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
33050 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
33051 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
33052 echo $ECHO_N "(cached) $ECHO_C" >&6
33053 else
33057 ac_ext=cc
33058 ac_cpp='$CXXCPP $CPPFLAGS'
33059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33063 cat >conftest.$ac_ext <<_ACEOF
33064 #line $LINENO "configure"
33065 /* confdefs.h. */
33066 _ACEOF
33067 cat confdefs.h >>conftest.$ac_ext
33068 cat >>conftest.$ac_ext <<_ACEOF
33069 /* end confdefs.h. */
33070 #include <math.h>
33072 main ()
33074 _hypotf(0, 0);
33076 return 0;
33078 _ACEOF
33079 rm -f conftest.$ac_objext
33080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33081 (eval $ac_compile) 2>&5
33082 ac_status=$?
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); } &&
33085 { ac_try='test -s conftest.$ac_objext'
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; }; then
33091 glibcxx_cv_func__hypotf_use=yes
33092 else
33093 echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33096 glibcxx_cv_func__hypotf_use=no
33098 rm -f conftest.$ac_objext conftest.$ac_ext
33099 ac_ext=c
33100 ac_cpp='$CPP $CPPFLAGS'
33101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33109 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
33110 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
33112 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
33114 for ac_func in _hypotf
33116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33117 echo "$as_me:$LINENO: checking for $ac_func" >&5
33118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33119 if eval "test \"\${$as_ac_var+set}\" = set"; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122 if test x$gcc_no_link = xyes; then
33123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33125 { (exit 1); exit 1; }; }
33127 cat >conftest.$ac_ext <<_ACEOF
33128 #line $LINENO "configure"
33129 /* confdefs.h. */
33130 _ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h. */
33134 /* System header to define __stub macros and hopefully few prototypes,
33135 which can conflict with char $ac_func (); below.
33136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33137 <limits.h> exists even on freestanding compilers. */
33138 #ifdef __STDC__
33139 # include <limits.h>
33140 #else
33141 # include <assert.h>
33142 #endif
33143 /* Override any gcc2 internal prototype to avoid an error. */
33144 #ifdef __cplusplus
33145 extern "C"
33147 #endif
33148 /* We use char because int might match the return type of a gcc2
33149 builtin and then its argument prototype would still apply. */
33150 char $ac_func ();
33151 /* The GNU C library defines this for functions which it implements
33152 to always fail with ENOSYS. Some functions are actually named
33153 something starting with __ and the normal name is an alias. */
33154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33155 choke me
33156 #else
33157 char (*f) () = $ac_func;
33158 #endif
33159 #ifdef __cplusplus
33161 #endif
33164 main ()
33166 return f != $ac_func;
33168 return 0;
33170 _ACEOF
33171 rm -f conftest.$ac_objext conftest$ac_exeext
33172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33173 (eval $ac_link) 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); } &&
33177 { ac_try='test -s conftest$ac_exeext'
33178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179 (eval $ac_try) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); }; }; then
33183 eval "$as_ac_var=yes"
33184 else
33185 echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33188 eval "$as_ac_var=no"
33190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33194 if test `eval echo '${'$as_ac_var'}'` = yes; then
33195 cat >>confdefs.h <<_ACEOF
33196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33197 _ACEOF
33200 done
33207 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
33208 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
33209 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33210 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
33211 echo $ECHO_N "(cached) $ECHO_C" >&6
33212 else
33216 ac_ext=cc
33217 ac_cpp='$CXXCPP $CPPFLAGS'
33218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33222 cat >conftest.$ac_ext <<_ACEOF
33223 #line $LINENO "configure"
33224 /* confdefs.h. */
33225 _ACEOF
33226 cat confdefs.h >>conftest.$ac_ext
33227 cat >>conftest.$ac_ext <<_ACEOF
33228 /* end confdefs.h. */
33229 #include <math.h>
33231 main ()
33233 ldexpf(0, 0);
33235 return 0;
33237 _ACEOF
33238 rm -f conftest.$ac_objext
33239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33240 (eval $ac_compile) 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33246 (eval $ac_try) 2>&5
33247 ac_status=$?
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; }; then
33250 glibcxx_cv_func_ldexpf_use=yes
33251 else
33252 echo "$as_me: failed program was:" >&5
33253 sed 's/^/| /' conftest.$ac_ext >&5
33255 glibcxx_cv_func_ldexpf_use=no
33257 rm -f conftest.$ac_objext conftest.$ac_ext
33258 ac_ext=c
33259 ac_cpp='$CPP $CPPFLAGS'
33260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33268 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
33269 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
33271 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33273 for ac_func in ldexpf
33275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33276 echo "$as_me:$LINENO: checking for $ac_func" >&5
33277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33278 if eval "test \"\${$as_ac_var+set}\" = set"; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33280 else
33281 if test x$gcc_no_link = xyes; then
33282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33284 { (exit 1); exit 1; }; }
33286 cat >conftest.$ac_ext <<_ACEOF
33287 #line $LINENO "configure"
33288 /* confdefs.h. */
33289 _ACEOF
33290 cat confdefs.h >>conftest.$ac_ext
33291 cat >>conftest.$ac_ext <<_ACEOF
33292 /* end confdefs.h. */
33293 /* System header to define __stub macros and hopefully few prototypes,
33294 which can conflict with char $ac_func (); below.
33295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33296 <limits.h> exists even on freestanding compilers. */
33297 #ifdef __STDC__
33298 # include <limits.h>
33299 #else
33300 # include <assert.h>
33301 #endif
33302 /* Override any gcc2 internal prototype to avoid an error. */
33303 #ifdef __cplusplus
33304 extern "C"
33306 #endif
33307 /* We use char because int might match the return type of a gcc2
33308 builtin and then its argument prototype would still apply. */
33309 char $ac_func ();
33310 /* The GNU C library defines this for functions which it implements
33311 to always fail with ENOSYS. Some functions are actually named
33312 something starting with __ and the normal name is an alias. */
33313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33314 choke me
33315 #else
33316 char (*f) () = $ac_func;
33317 #endif
33318 #ifdef __cplusplus
33320 #endif
33323 main ()
33325 return f != $ac_func;
33327 return 0;
33329 _ACEOF
33330 rm -f conftest.$ac_objext conftest$ac_exeext
33331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33332 (eval $ac_link) 2>&5
33333 ac_status=$?
33334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33335 (exit $ac_status); } &&
33336 { ac_try='test -s conftest$ac_exeext'
33337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33338 (eval $ac_try) 2>&5
33339 ac_status=$?
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; }; then
33342 eval "$as_ac_var=yes"
33343 else
33344 echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33347 eval "$as_ac_var=no"
33349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33353 if test `eval echo '${'$as_ac_var'}'` = yes; then
33354 cat >>confdefs.h <<_ACEOF
33355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33356 _ACEOF
33359 done
33361 else
33363 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
33364 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
33365 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
33366 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
33367 echo $ECHO_N "(cached) $ECHO_C" >&6
33368 else
33372 ac_ext=cc
33373 ac_cpp='$CXXCPP $CPPFLAGS'
33374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33378 cat >conftest.$ac_ext <<_ACEOF
33379 #line $LINENO "configure"
33380 /* confdefs.h. */
33381 _ACEOF
33382 cat confdefs.h >>conftest.$ac_ext
33383 cat >>conftest.$ac_ext <<_ACEOF
33384 /* end confdefs.h. */
33385 #include <math.h>
33387 main ()
33389 _ldexpf(0, 0);
33391 return 0;
33393 _ACEOF
33394 rm -f conftest.$ac_objext
33395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33396 (eval $ac_compile) 2>&5
33397 ac_status=$?
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } &&
33400 { ac_try='test -s conftest.$ac_objext'
33401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33402 (eval $ac_try) 2>&5
33403 ac_status=$?
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; }; then
33406 glibcxx_cv_func__ldexpf_use=yes
33407 else
33408 echo "$as_me: failed program was:" >&5
33409 sed 's/^/| /' conftest.$ac_ext >&5
33411 glibcxx_cv_func__ldexpf_use=no
33413 rm -f conftest.$ac_objext conftest.$ac_ext
33414 ac_ext=c
33415 ac_cpp='$CPP $CPPFLAGS'
33416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33424 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
33425 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
33427 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
33429 for ac_func in _ldexpf
33431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33432 echo "$as_me:$LINENO: checking for $ac_func" >&5
33433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33434 if eval "test \"\${$as_ac_var+set}\" = set"; then
33435 echo $ECHO_N "(cached) $ECHO_C" >&6
33436 else
33437 if test x$gcc_no_link = xyes; then
33438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33440 { (exit 1); exit 1; }; }
33442 cat >conftest.$ac_ext <<_ACEOF
33443 #line $LINENO "configure"
33444 /* confdefs.h. */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h. */
33449 /* System header to define __stub macros and hopefully few prototypes,
33450 which can conflict with char $ac_func (); below.
33451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33452 <limits.h> exists even on freestanding compilers. */
33453 #ifdef __STDC__
33454 # include <limits.h>
33455 #else
33456 # include <assert.h>
33457 #endif
33458 /* Override any gcc2 internal prototype to avoid an error. */
33459 #ifdef __cplusplus
33460 extern "C"
33462 #endif
33463 /* We use char because int might match the return type of a gcc2
33464 builtin and then its argument prototype would still apply. */
33465 char $ac_func ();
33466 /* The GNU C library defines this for functions which it implements
33467 to always fail with ENOSYS. Some functions are actually named
33468 something starting with __ and the normal name is an alias. */
33469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33470 choke me
33471 #else
33472 char (*f) () = $ac_func;
33473 #endif
33474 #ifdef __cplusplus
33476 #endif
33479 main ()
33481 return f != $ac_func;
33483 return 0;
33485 _ACEOF
33486 rm -f conftest.$ac_objext conftest$ac_exeext
33487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33488 (eval $ac_link) 2>&5
33489 ac_status=$?
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } &&
33492 { ac_try='test -s conftest$ac_exeext'
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33495 ac_status=$?
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
33498 eval "$as_ac_var=yes"
33499 else
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33503 eval "$as_ac_var=no"
33505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33509 if test `eval echo '${'$as_ac_var'}'` = yes; then
33510 cat >>confdefs.h <<_ACEOF
33511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33512 _ACEOF
33515 done
33522 echo "$as_me:$LINENO: checking for logf declaration" >&5
33523 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
33524 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33525 if test "${glibcxx_cv_func_logf_use+set}" = set; then
33526 echo $ECHO_N "(cached) $ECHO_C" >&6
33527 else
33531 ac_ext=cc
33532 ac_cpp='$CXXCPP $CPPFLAGS'
33533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33537 cat >conftest.$ac_ext <<_ACEOF
33538 #line $LINENO "configure"
33539 /* confdefs.h. */
33540 _ACEOF
33541 cat confdefs.h >>conftest.$ac_ext
33542 cat >>conftest.$ac_ext <<_ACEOF
33543 /* end confdefs.h. */
33544 #include <math.h>
33545 #ifdef HAVE_IEEEFP_H
33546 #include <ieeefp.h>
33547 #endif
33550 main ()
33552 logf(0);
33554 return 0;
33556 _ACEOF
33557 rm -f conftest.$ac_objext
33558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33559 (eval $ac_compile) 2>&5
33560 ac_status=$?
33561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562 (exit $ac_status); } &&
33563 { ac_try='test -s conftest.$ac_objext'
33564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33565 (eval $ac_try) 2>&5
33566 ac_status=$?
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); }; }; then
33569 glibcxx_cv_func_logf_use=yes
33570 else
33571 echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33574 glibcxx_cv_func_logf_use=no
33576 rm -f conftest.$ac_objext conftest.$ac_ext
33577 ac_ext=c
33578 ac_cpp='$CPP $CPPFLAGS'
33579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33587 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
33588 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
33590 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33592 for ac_func in logf
33594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33595 echo "$as_me:$LINENO: checking for $ac_func" >&5
33596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33597 if eval "test \"\${$as_ac_var+set}\" = set"; then
33598 echo $ECHO_N "(cached) $ECHO_C" >&6
33599 else
33600 if test x$gcc_no_link = xyes; then
33601 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33602 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33603 { (exit 1); exit 1; }; }
33605 cat >conftest.$ac_ext <<_ACEOF
33606 #line $LINENO "configure"
33607 /* confdefs.h. */
33608 _ACEOF
33609 cat confdefs.h >>conftest.$ac_ext
33610 cat >>conftest.$ac_ext <<_ACEOF
33611 /* end confdefs.h. */
33612 /* System header to define __stub macros and hopefully few prototypes,
33613 which can conflict with char $ac_func (); below.
33614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33615 <limits.h> exists even on freestanding compilers. */
33616 #ifdef __STDC__
33617 # include <limits.h>
33618 #else
33619 # include <assert.h>
33620 #endif
33621 /* Override any gcc2 internal prototype to avoid an error. */
33622 #ifdef __cplusplus
33623 extern "C"
33625 #endif
33626 /* We use char because int might match the return type of a gcc2
33627 builtin and then its argument prototype would still apply. */
33628 char $ac_func ();
33629 /* The GNU C library defines this for functions which it implements
33630 to always fail with ENOSYS. Some functions are actually named
33631 something starting with __ and the normal name is an alias. */
33632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33633 choke me
33634 #else
33635 char (*f) () = $ac_func;
33636 #endif
33637 #ifdef __cplusplus
33639 #endif
33642 main ()
33644 return f != $ac_func;
33646 return 0;
33648 _ACEOF
33649 rm -f conftest.$ac_objext conftest$ac_exeext
33650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33651 (eval $ac_link) 2>&5
33652 ac_status=$?
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); } &&
33655 { ac_try='test -s conftest$ac_exeext'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33658 ac_status=$?
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33661 eval "$as_ac_var=yes"
33662 else
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33666 eval "$as_ac_var=no"
33668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33672 if test `eval echo '${'$as_ac_var'}'` = yes; then
33673 cat >>confdefs.h <<_ACEOF
33674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33675 _ACEOF
33678 done
33680 else
33682 echo "$as_me:$LINENO: checking for _logf declaration" >&5
33683 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
33684 if test x${glibcxx_cv_func__logf_use+set} != xset; then
33685 if test "${glibcxx_cv_func__logf_use+set}" = set; then
33686 echo $ECHO_N "(cached) $ECHO_C" >&6
33687 else
33691 ac_ext=cc
33692 ac_cpp='$CXXCPP $CPPFLAGS'
33693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33697 cat >conftest.$ac_ext <<_ACEOF
33698 #line $LINENO "configure"
33699 /* confdefs.h. */
33700 _ACEOF
33701 cat confdefs.h >>conftest.$ac_ext
33702 cat >>conftest.$ac_ext <<_ACEOF
33703 /* end confdefs.h. */
33704 #include <math.h>
33705 #ifdef HAVE_IEEEFP_H
33706 #include <ieeefp.h>
33707 #endif
33710 main ()
33712 _logf(0);
33714 return 0;
33716 _ACEOF
33717 rm -f conftest.$ac_objext
33718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33719 (eval $ac_compile) 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); } &&
33723 { ac_try='test -s conftest.$ac_objext'
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; }; then
33729 glibcxx_cv_func__logf_use=yes
33730 else
33731 echo "$as_me: failed program was:" >&5
33732 sed 's/^/| /' conftest.$ac_ext >&5
33734 glibcxx_cv_func__logf_use=no
33736 rm -f conftest.$ac_objext conftest.$ac_ext
33737 ac_ext=c
33738 ac_cpp='$CPP $CPPFLAGS'
33739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33747 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
33748 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
33750 if test x$glibcxx_cv_func__logf_use = x"yes"; then
33752 for ac_func in _logf
33754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33755 echo "$as_me:$LINENO: checking for $ac_func" >&5
33756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33757 if eval "test \"\${$as_ac_var+set}\" = set"; then
33758 echo $ECHO_N "(cached) $ECHO_C" >&6
33759 else
33760 if test x$gcc_no_link = xyes; then
33761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33763 { (exit 1); exit 1; }; }
33765 cat >conftest.$ac_ext <<_ACEOF
33766 #line $LINENO "configure"
33767 /* confdefs.h. */
33768 _ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h. */
33772 /* System header to define __stub macros and hopefully few prototypes,
33773 which can conflict with char $ac_func (); below.
33774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33775 <limits.h> exists even on freestanding compilers. */
33776 #ifdef __STDC__
33777 # include <limits.h>
33778 #else
33779 # include <assert.h>
33780 #endif
33781 /* Override any gcc2 internal prototype to avoid an error. */
33782 #ifdef __cplusplus
33783 extern "C"
33785 #endif
33786 /* We use char because int might match the return type of a gcc2
33787 builtin and then its argument prototype would still apply. */
33788 char $ac_func ();
33789 /* The GNU C library defines this for functions which it implements
33790 to always fail with ENOSYS. Some functions are actually named
33791 something starting with __ and the normal name is an alias. */
33792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33793 choke me
33794 #else
33795 char (*f) () = $ac_func;
33796 #endif
33797 #ifdef __cplusplus
33799 #endif
33802 main ()
33804 return f != $ac_func;
33806 return 0;
33808 _ACEOF
33809 rm -f conftest.$ac_objext conftest$ac_exeext
33810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33811 (eval $ac_link) 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); } &&
33815 { ac_try='test -s conftest$ac_exeext'
33816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33817 (eval $ac_try) 2>&5
33818 ac_status=$?
33819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820 (exit $ac_status); }; }; then
33821 eval "$as_ac_var=yes"
33822 else
33823 echo "$as_me: failed program was:" >&5
33824 sed 's/^/| /' conftest.$ac_ext >&5
33826 eval "$as_ac_var=no"
33828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33832 if test `eval echo '${'$as_ac_var'}'` = yes; then
33833 cat >>confdefs.h <<_ACEOF
33834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33835 _ACEOF
33838 done
33845 echo "$as_me:$LINENO: checking for log10f declaration" >&5
33846 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
33847 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
33848 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
33849 echo $ECHO_N "(cached) $ECHO_C" >&6
33850 else
33854 ac_ext=cc
33855 ac_cpp='$CXXCPP $CPPFLAGS'
33856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33860 cat >conftest.$ac_ext <<_ACEOF
33861 #line $LINENO "configure"
33862 /* confdefs.h. */
33863 _ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h. */
33867 #include <math.h>
33868 #ifdef HAVE_IEEEFP_H
33869 #include <ieeefp.h>
33870 #endif
33873 main ()
33875 log10f(0);
33877 return 0;
33879 _ACEOF
33880 rm -f conftest.$ac_objext
33881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33882 (eval $ac_compile) 2>&5
33883 ac_status=$?
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } &&
33886 { ac_try='test -s conftest.$ac_objext'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33889 ac_status=$?
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; }; then
33892 glibcxx_cv_func_log10f_use=yes
33893 else
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33897 glibcxx_cv_func_log10f_use=no
33899 rm -f conftest.$ac_objext conftest.$ac_ext
33900 ac_ext=c
33901 ac_cpp='$CPP $CPPFLAGS'
33902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33910 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
33911 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
33913 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
33915 for ac_func in log10f
33917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33918 echo "$as_me:$LINENO: checking for $ac_func" >&5
33919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33920 if eval "test \"\${$as_ac_var+set}\" = set"; then
33921 echo $ECHO_N "(cached) $ECHO_C" >&6
33922 else
33923 if test x$gcc_no_link = xyes; then
33924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33926 { (exit 1); exit 1; }; }
33928 cat >conftest.$ac_ext <<_ACEOF
33929 #line $LINENO "configure"
33930 /* confdefs.h. */
33931 _ACEOF
33932 cat confdefs.h >>conftest.$ac_ext
33933 cat >>conftest.$ac_ext <<_ACEOF
33934 /* end confdefs.h. */
33935 /* System header to define __stub macros and hopefully few prototypes,
33936 which can conflict with char $ac_func (); below.
33937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33938 <limits.h> exists even on freestanding compilers. */
33939 #ifdef __STDC__
33940 # include <limits.h>
33941 #else
33942 # include <assert.h>
33943 #endif
33944 /* Override any gcc2 internal prototype to avoid an error. */
33945 #ifdef __cplusplus
33946 extern "C"
33948 #endif
33949 /* We use char because int might match the return type of a gcc2
33950 builtin and then its argument prototype would still apply. */
33951 char $ac_func ();
33952 /* The GNU C library defines this for functions which it implements
33953 to always fail with ENOSYS. Some functions are actually named
33954 something starting with __ and the normal name is an alias. */
33955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33956 choke me
33957 #else
33958 char (*f) () = $ac_func;
33959 #endif
33960 #ifdef __cplusplus
33962 #endif
33965 main ()
33967 return f != $ac_func;
33969 return 0;
33971 _ACEOF
33972 rm -f conftest.$ac_objext conftest$ac_exeext
33973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33974 (eval $ac_link) 2>&5
33975 ac_status=$?
33976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); } &&
33978 { ac_try='test -s conftest$ac_exeext'
33979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33980 (eval $ac_try) 2>&5
33981 ac_status=$?
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); }; }; then
33984 eval "$as_ac_var=yes"
33985 else
33986 echo "$as_me: failed program was:" >&5
33987 sed 's/^/| /' conftest.$ac_ext >&5
33989 eval "$as_ac_var=no"
33991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33995 if test `eval echo '${'$as_ac_var'}'` = yes; then
33996 cat >>confdefs.h <<_ACEOF
33997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33998 _ACEOF
34001 done
34003 else
34005 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
34006 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
34007 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
34008 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
34009 echo $ECHO_N "(cached) $ECHO_C" >&6
34010 else
34014 ac_ext=cc
34015 ac_cpp='$CXXCPP $CPPFLAGS'
34016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34020 cat >conftest.$ac_ext <<_ACEOF
34021 #line $LINENO "configure"
34022 /* confdefs.h. */
34023 _ACEOF
34024 cat confdefs.h >>conftest.$ac_ext
34025 cat >>conftest.$ac_ext <<_ACEOF
34026 /* end confdefs.h. */
34027 #include <math.h>
34028 #ifdef HAVE_IEEEFP_H
34029 #include <ieeefp.h>
34030 #endif
34033 main ()
34035 _log10f(0);
34037 return 0;
34039 _ACEOF
34040 rm -f conftest.$ac_objext
34041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34042 (eval $ac_compile) 2>&5
34043 ac_status=$?
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); } &&
34046 { ac_try='test -s conftest.$ac_objext'
34047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048 (eval $ac_try) 2>&5
34049 ac_status=$?
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; }; then
34052 glibcxx_cv_func__log10f_use=yes
34053 else
34054 echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34057 glibcxx_cv_func__log10f_use=no
34059 rm -f conftest.$ac_objext conftest.$ac_ext
34060 ac_ext=c
34061 ac_cpp='$CPP $CPPFLAGS'
34062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34070 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
34071 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
34073 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
34075 for ac_func in _log10f
34077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34078 echo "$as_me:$LINENO: checking for $ac_func" >&5
34079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34080 if eval "test \"\${$as_ac_var+set}\" = set"; then
34081 echo $ECHO_N "(cached) $ECHO_C" >&6
34082 else
34083 if test x$gcc_no_link = xyes; then
34084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34086 { (exit 1); exit 1; }; }
34088 cat >conftest.$ac_ext <<_ACEOF
34089 #line $LINENO "configure"
34090 /* confdefs.h. */
34091 _ACEOF
34092 cat confdefs.h >>conftest.$ac_ext
34093 cat >>conftest.$ac_ext <<_ACEOF
34094 /* end confdefs.h. */
34095 /* System header to define __stub macros and hopefully few prototypes,
34096 which can conflict with char $ac_func (); below.
34097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34098 <limits.h> exists even on freestanding compilers. */
34099 #ifdef __STDC__
34100 # include <limits.h>
34101 #else
34102 # include <assert.h>
34103 #endif
34104 /* Override any gcc2 internal prototype to avoid an error. */
34105 #ifdef __cplusplus
34106 extern "C"
34108 #endif
34109 /* We use char because int might match the return type of a gcc2
34110 builtin and then its argument prototype would still apply. */
34111 char $ac_func ();
34112 /* The GNU C library defines this for functions which it implements
34113 to always fail with ENOSYS. Some functions are actually named
34114 something starting with __ and the normal name is an alias. */
34115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34116 choke me
34117 #else
34118 char (*f) () = $ac_func;
34119 #endif
34120 #ifdef __cplusplus
34122 #endif
34125 main ()
34127 return f != $ac_func;
34129 return 0;
34131 _ACEOF
34132 rm -f conftest.$ac_objext conftest$ac_exeext
34133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34134 (eval $ac_link) 2>&5
34135 ac_status=$?
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); } &&
34138 { ac_try='test -s conftest$ac_exeext'
34139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140 (eval $ac_try) 2>&5
34141 ac_status=$?
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); }; }; then
34144 eval "$as_ac_var=yes"
34145 else
34146 echo "$as_me: failed program was:" >&5
34147 sed 's/^/| /' conftest.$ac_ext >&5
34149 eval "$as_ac_var=no"
34151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34155 if test `eval echo '${'$as_ac_var'}'` = yes; then
34156 cat >>confdefs.h <<_ACEOF
34157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34158 _ACEOF
34161 done
34168 echo "$as_me:$LINENO: checking for modff declaration" >&5
34169 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
34170 if test x${glibcxx_cv_func_modff_use+set} != xset; then
34171 if test "${glibcxx_cv_func_modff_use+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34173 else
34177 ac_ext=cc
34178 ac_cpp='$CXXCPP $CPPFLAGS'
34179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34183 cat >conftest.$ac_ext <<_ACEOF
34184 #line $LINENO "configure"
34185 /* confdefs.h. */
34186 _ACEOF
34187 cat confdefs.h >>conftest.$ac_ext
34188 cat >>conftest.$ac_ext <<_ACEOF
34189 /* end confdefs.h. */
34190 #include <math.h>
34192 main ()
34194 modff(0, 0);
34196 return 0;
34198 _ACEOF
34199 rm -f conftest.$ac_objext
34200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34201 (eval $ac_compile) 2>&5
34202 ac_status=$?
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); } &&
34205 { ac_try='test -s conftest.$ac_objext'
34206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34207 (eval $ac_try) 2>&5
34208 ac_status=$?
34209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210 (exit $ac_status); }; }; then
34211 glibcxx_cv_func_modff_use=yes
34212 else
34213 echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34216 glibcxx_cv_func_modff_use=no
34218 rm -f conftest.$ac_objext conftest.$ac_ext
34219 ac_ext=c
34220 ac_cpp='$CPP $CPPFLAGS'
34221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34229 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
34230 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
34232 if test x$glibcxx_cv_func_modff_use = x"yes"; then
34234 for ac_func in modff
34236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34237 echo "$as_me:$LINENO: checking for $ac_func" >&5
34238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34239 if eval "test \"\${$as_ac_var+set}\" = set"; then
34240 echo $ECHO_N "(cached) $ECHO_C" >&6
34241 else
34242 if test x$gcc_no_link = xyes; then
34243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34245 { (exit 1); exit 1; }; }
34247 cat >conftest.$ac_ext <<_ACEOF
34248 #line $LINENO "configure"
34249 /* confdefs.h. */
34250 _ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h. */
34254 /* System header to define __stub macros and hopefully few prototypes,
34255 which can conflict with char $ac_func (); below.
34256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34257 <limits.h> exists even on freestanding compilers. */
34258 #ifdef __STDC__
34259 # include <limits.h>
34260 #else
34261 # include <assert.h>
34262 #endif
34263 /* Override any gcc2 internal prototype to avoid an error. */
34264 #ifdef __cplusplus
34265 extern "C"
34267 #endif
34268 /* We use char because int might match the return type of a gcc2
34269 builtin and then its argument prototype would still apply. */
34270 char $ac_func ();
34271 /* The GNU C library defines this for functions which it implements
34272 to always fail with ENOSYS. Some functions are actually named
34273 something starting with __ and the normal name is an alias. */
34274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34275 choke me
34276 #else
34277 char (*f) () = $ac_func;
34278 #endif
34279 #ifdef __cplusplus
34281 #endif
34284 main ()
34286 return f != $ac_func;
34288 return 0;
34290 _ACEOF
34291 rm -f conftest.$ac_objext conftest$ac_exeext
34292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34293 (eval $ac_link) 2>&5
34294 ac_status=$?
34295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296 (exit $ac_status); } &&
34297 { ac_try='test -s conftest$ac_exeext'
34298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299 (eval $ac_try) 2>&5
34300 ac_status=$?
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); }; }; then
34303 eval "$as_ac_var=yes"
34304 else
34305 echo "$as_me: failed program was:" >&5
34306 sed 's/^/| /' conftest.$ac_ext >&5
34308 eval "$as_ac_var=no"
34310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34314 if test `eval echo '${'$as_ac_var'}'` = yes; then
34315 cat >>confdefs.h <<_ACEOF
34316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34317 _ACEOF
34320 done
34322 else
34324 echo "$as_me:$LINENO: checking for _modff declaration" >&5
34325 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
34326 if test x${glibcxx_cv_func__modff_use+set} != xset; then
34327 if test "${glibcxx_cv_func__modff_use+set}" = set; then
34328 echo $ECHO_N "(cached) $ECHO_C" >&6
34329 else
34333 ac_ext=cc
34334 ac_cpp='$CXXCPP $CPPFLAGS'
34335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34339 cat >conftest.$ac_ext <<_ACEOF
34340 #line $LINENO "configure"
34341 /* confdefs.h. */
34342 _ACEOF
34343 cat confdefs.h >>conftest.$ac_ext
34344 cat >>conftest.$ac_ext <<_ACEOF
34345 /* end confdefs.h. */
34346 #include <math.h>
34348 main ()
34350 _modff(0, 0);
34352 return 0;
34354 _ACEOF
34355 rm -f conftest.$ac_objext
34356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34357 (eval $ac_compile) 2>&5
34358 ac_status=$?
34359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360 (exit $ac_status); } &&
34361 { ac_try='test -s conftest.$ac_objext'
34362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34363 (eval $ac_try) 2>&5
34364 ac_status=$?
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); }; }; then
34367 glibcxx_cv_func__modff_use=yes
34368 else
34369 echo "$as_me: failed program was:" >&5
34370 sed 's/^/| /' conftest.$ac_ext >&5
34372 glibcxx_cv_func__modff_use=no
34374 rm -f conftest.$ac_objext conftest.$ac_ext
34375 ac_ext=c
34376 ac_cpp='$CPP $CPPFLAGS'
34377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34385 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
34386 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
34388 if test x$glibcxx_cv_func__modff_use = x"yes"; then
34390 for ac_func in _modff
34392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34393 echo "$as_me:$LINENO: checking for $ac_func" >&5
34394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34395 if eval "test \"\${$as_ac_var+set}\" = set"; then
34396 echo $ECHO_N "(cached) $ECHO_C" >&6
34397 else
34398 if test x$gcc_no_link = xyes; then
34399 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34401 { (exit 1); exit 1; }; }
34403 cat >conftest.$ac_ext <<_ACEOF
34404 #line $LINENO "configure"
34405 /* confdefs.h. */
34406 _ACEOF
34407 cat confdefs.h >>conftest.$ac_ext
34408 cat >>conftest.$ac_ext <<_ACEOF
34409 /* end confdefs.h. */
34410 /* System header to define __stub macros and hopefully few prototypes,
34411 which can conflict with char $ac_func (); below.
34412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34413 <limits.h> exists even on freestanding compilers. */
34414 #ifdef __STDC__
34415 # include <limits.h>
34416 #else
34417 # include <assert.h>
34418 #endif
34419 /* Override any gcc2 internal prototype to avoid an error. */
34420 #ifdef __cplusplus
34421 extern "C"
34423 #endif
34424 /* We use char because int might match the return type of a gcc2
34425 builtin and then its argument prototype would still apply. */
34426 char $ac_func ();
34427 /* The GNU C library defines this for functions which it implements
34428 to always fail with ENOSYS. Some functions are actually named
34429 something starting with __ and the normal name is an alias. */
34430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34431 choke me
34432 #else
34433 char (*f) () = $ac_func;
34434 #endif
34435 #ifdef __cplusplus
34437 #endif
34440 main ()
34442 return f != $ac_func;
34444 return 0;
34446 _ACEOF
34447 rm -f conftest.$ac_objext conftest$ac_exeext
34448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34449 (eval $ac_link) 2>&5
34450 ac_status=$?
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); } &&
34453 { ac_try='test -s conftest$ac_exeext'
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; }; then
34459 eval "$as_ac_var=yes"
34460 else
34461 echo "$as_me: failed program was:" >&5
34462 sed 's/^/| /' conftest.$ac_ext >&5
34464 eval "$as_ac_var=no"
34466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34470 if test `eval echo '${'$as_ac_var'}'` = yes; then
34471 cat >>confdefs.h <<_ACEOF
34472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34473 _ACEOF
34476 done
34483 echo "$as_me:$LINENO: checking for powf declaration" >&5
34484 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
34485 if test x${glibcxx_cv_func_powf_use+set} != xset; then
34486 if test "${glibcxx_cv_func_powf_use+set}" = set; then
34487 echo $ECHO_N "(cached) $ECHO_C" >&6
34488 else
34492 ac_ext=cc
34493 ac_cpp='$CXXCPP $CPPFLAGS'
34494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34498 cat >conftest.$ac_ext <<_ACEOF
34499 #line $LINENO "configure"
34500 /* confdefs.h. */
34501 _ACEOF
34502 cat confdefs.h >>conftest.$ac_ext
34503 cat >>conftest.$ac_ext <<_ACEOF
34504 /* end confdefs.h. */
34505 #include <math.h>
34507 main ()
34509 powf(0, 0);
34511 return 0;
34513 _ACEOF
34514 rm -f conftest.$ac_objext
34515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34516 (eval $ac_compile) 2>&5
34517 ac_status=$?
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); } &&
34520 { ac_try='test -s conftest.$ac_objext'
34521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 (eval $ac_try) 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; }; then
34526 glibcxx_cv_func_powf_use=yes
34527 else
34528 echo "$as_me: failed program was:" >&5
34529 sed 's/^/| /' conftest.$ac_ext >&5
34531 glibcxx_cv_func_powf_use=no
34533 rm -f conftest.$ac_objext conftest.$ac_ext
34534 ac_ext=c
34535 ac_cpp='$CPP $CPPFLAGS'
34536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34544 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
34545 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
34547 if test x$glibcxx_cv_func_powf_use = x"yes"; then
34549 for ac_func in powf
34551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34552 echo "$as_me:$LINENO: checking for $ac_func" >&5
34553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34554 if eval "test \"\${$as_ac_var+set}\" = set"; then
34555 echo $ECHO_N "(cached) $ECHO_C" >&6
34556 else
34557 if test x$gcc_no_link = xyes; then
34558 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34559 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34560 { (exit 1); exit 1; }; }
34562 cat >conftest.$ac_ext <<_ACEOF
34563 #line $LINENO "configure"
34564 /* confdefs.h. */
34565 _ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h. */
34569 /* System header to define __stub macros and hopefully few prototypes,
34570 which can conflict with char $ac_func (); below.
34571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34572 <limits.h> exists even on freestanding compilers. */
34573 #ifdef __STDC__
34574 # include <limits.h>
34575 #else
34576 # include <assert.h>
34577 #endif
34578 /* Override any gcc2 internal prototype to avoid an error. */
34579 #ifdef __cplusplus
34580 extern "C"
34582 #endif
34583 /* We use char because int might match the return type of a gcc2
34584 builtin and then its argument prototype would still apply. */
34585 char $ac_func ();
34586 /* The GNU C library defines this for functions which it implements
34587 to always fail with ENOSYS. Some functions are actually named
34588 something starting with __ and the normal name is an alias. */
34589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34590 choke me
34591 #else
34592 char (*f) () = $ac_func;
34593 #endif
34594 #ifdef __cplusplus
34596 #endif
34599 main ()
34601 return f != $ac_func;
34603 return 0;
34605 _ACEOF
34606 rm -f conftest.$ac_objext conftest$ac_exeext
34607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34608 (eval $ac_link) 2>&5
34609 ac_status=$?
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } &&
34612 { ac_try='test -s conftest$ac_exeext'
34613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34614 (eval $ac_try) 2>&5
34615 ac_status=$?
34616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617 (exit $ac_status); }; }; then
34618 eval "$as_ac_var=yes"
34619 else
34620 echo "$as_me: failed program was:" >&5
34621 sed 's/^/| /' conftest.$ac_ext >&5
34623 eval "$as_ac_var=no"
34625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34629 if test `eval echo '${'$as_ac_var'}'` = yes; then
34630 cat >>confdefs.h <<_ACEOF
34631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34632 _ACEOF
34635 done
34637 else
34639 echo "$as_me:$LINENO: checking for _powf declaration" >&5
34640 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
34641 if test x${glibcxx_cv_func__powf_use+set} != xset; then
34642 if test "${glibcxx_cv_func__powf_use+set}" = set; then
34643 echo $ECHO_N "(cached) $ECHO_C" >&6
34644 else
34648 ac_ext=cc
34649 ac_cpp='$CXXCPP $CPPFLAGS'
34650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34654 cat >conftest.$ac_ext <<_ACEOF
34655 #line $LINENO "configure"
34656 /* confdefs.h. */
34657 _ACEOF
34658 cat confdefs.h >>conftest.$ac_ext
34659 cat >>conftest.$ac_ext <<_ACEOF
34660 /* end confdefs.h. */
34661 #include <math.h>
34663 main ()
34665 _powf(0, 0);
34667 return 0;
34669 _ACEOF
34670 rm -f conftest.$ac_objext
34671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34672 (eval $ac_compile) 2>&5
34673 ac_status=$?
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); } &&
34676 { ac_try='test -s conftest.$ac_objext'
34677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34678 (eval $ac_try) 2>&5
34679 ac_status=$?
34680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681 (exit $ac_status); }; }; then
34682 glibcxx_cv_func__powf_use=yes
34683 else
34684 echo "$as_me: failed program was:" >&5
34685 sed 's/^/| /' conftest.$ac_ext >&5
34687 glibcxx_cv_func__powf_use=no
34689 rm -f conftest.$ac_objext conftest.$ac_ext
34690 ac_ext=c
34691 ac_cpp='$CPP $CPPFLAGS'
34692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34700 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
34701 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
34703 if test x$glibcxx_cv_func__powf_use = x"yes"; then
34705 for ac_func in _powf
34707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34708 echo "$as_me:$LINENO: checking for $ac_func" >&5
34709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34710 if eval "test \"\${$as_ac_var+set}\" = set"; then
34711 echo $ECHO_N "(cached) $ECHO_C" >&6
34712 else
34713 if test x$gcc_no_link = xyes; then
34714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34716 { (exit 1); exit 1; }; }
34718 cat >conftest.$ac_ext <<_ACEOF
34719 #line $LINENO "configure"
34720 /* confdefs.h. */
34721 _ACEOF
34722 cat confdefs.h >>conftest.$ac_ext
34723 cat >>conftest.$ac_ext <<_ACEOF
34724 /* end confdefs.h. */
34725 /* System header to define __stub macros and hopefully few prototypes,
34726 which can conflict with char $ac_func (); below.
34727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34728 <limits.h> exists even on freestanding compilers. */
34729 #ifdef __STDC__
34730 # include <limits.h>
34731 #else
34732 # include <assert.h>
34733 #endif
34734 /* Override any gcc2 internal prototype to avoid an error. */
34735 #ifdef __cplusplus
34736 extern "C"
34738 #endif
34739 /* We use char because int might match the return type of a gcc2
34740 builtin and then its argument prototype would still apply. */
34741 char $ac_func ();
34742 /* The GNU C library defines this for functions which it implements
34743 to always fail with ENOSYS. Some functions are actually named
34744 something starting with __ and the normal name is an alias. */
34745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34746 choke me
34747 #else
34748 char (*f) () = $ac_func;
34749 #endif
34750 #ifdef __cplusplus
34752 #endif
34755 main ()
34757 return f != $ac_func;
34759 return 0;
34761 _ACEOF
34762 rm -f conftest.$ac_objext conftest$ac_exeext
34763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34764 (eval $ac_link) 2>&5
34765 ac_status=$?
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); } &&
34768 { ac_try='test -s conftest$ac_exeext'
34769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770 (eval $ac_try) 2>&5
34771 ac_status=$?
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); }; }; then
34774 eval "$as_ac_var=yes"
34775 else
34776 echo "$as_me: failed program was:" >&5
34777 sed 's/^/| /' conftest.$ac_ext >&5
34779 eval "$as_ac_var=no"
34781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34785 if test `eval echo '${'$as_ac_var'}'` = yes; then
34786 cat >>confdefs.h <<_ACEOF
34787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34788 _ACEOF
34791 done
34798 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
34799 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
34800 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
34801 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
34802 echo $ECHO_N "(cached) $ECHO_C" >&6
34803 else
34807 ac_ext=cc
34808 ac_cpp='$CXXCPP $CPPFLAGS'
34809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34813 cat >conftest.$ac_ext <<_ACEOF
34814 #line $LINENO "configure"
34815 /* confdefs.h. */
34816 _ACEOF
34817 cat confdefs.h >>conftest.$ac_ext
34818 cat >>conftest.$ac_ext <<_ACEOF
34819 /* end confdefs.h. */
34820 #include <math.h>
34821 #ifdef HAVE_IEEEFP_H
34822 #include <ieeefp.h>
34823 #endif
34826 main ()
34828 sqrtf(0);
34830 return 0;
34832 _ACEOF
34833 rm -f conftest.$ac_objext
34834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34835 (eval $ac_compile) 2>&5
34836 ac_status=$?
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } &&
34839 { ac_try='test -s conftest.$ac_objext'
34840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841 (eval $ac_try) 2>&5
34842 ac_status=$?
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; }; then
34845 glibcxx_cv_func_sqrtf_use=yes
34846 else
34847 echo "$as_me: failed program was:" >&5
34848 sed 's/^/| /' conftest.$ac_ext >&5
34850 glibcxx_cv_func_sqrtf_use=no
34852 rm -f conftest.$ac_objext conftest.$ac_ext
34853 ac_ext=c
34854 ac_cpp='$CPP $CPPFLAGS'
34855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34863 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
34864 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
34866 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
34868 for ac_func in sqrtf
34870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34871 echo "$as_me:$LINENO: checking for $ac_func" >&5
34872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34873 if eval "test \"\${$as_ac_var+set}\" = set"; then
34874 echo $ECHO_N "(cached) $ECHO_C" >&6
34875 else
34876 if test x$gcc_no_link = xyes; then
34877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34879 { (exit 1); exit 1; }; }
34881 cat >conftest.$ac_ext <<_ACEOF
34882 #line $LINENO "configure"
34883 /* confdefs.h. */
34884 _ACEOF
34885 cat confdefs.h >>conftest.$ac_ext
34886 cat >>conftest.$ac_ext <<_ACEOF
34887 /* end confdefs.h. */
34888 /* System header to define __stub macros and hopefully few prototypes,
34889 which can conflict with char $ac_func (); below.
34890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34891 <limits.h> exists even on freestanding compilers. */
34892 #ifdef __STDC__
34893 # include <limits.h>
34894 #else
34895 # include <assert.h>
34896 #endif
34897 /* Override any gcc2 internal prototype to avoid an error. */
34898 #ifdef __cplusplus
34899 extern "C"
34901 #endif
34902 /* We use char because int might match the return type of a gcc2
34903 builtin and then its argument prototype would still apply. */
34904 char $ac_func ();
34905 /* The GNU C library defines this for functions which it implements
34906 to always fail with ENOSYS. Some functions are actually named
34907 something starting with __ and the normal name is an alias. */
34908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34909 choke me
34910 #else
34911 char (*f) () = $ac_func;
34912 #endif
34913 #ifdef __cplusplus
34915 #endif
34918 main ()
34920 return f != $ac_func;
34922 return 0;
34924 _ACEOF
34925 rm -f conftest.$ac_objext conftest$ac_exeext
34926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34927 (eval $ac_link) 2>&5
34928 ac_status=$?
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); } &&
34931 { ac_try='test -s conftest$ac_exeext'
34932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34933 (eval $ac_try) 2>&5
34934 ac_status=$?
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); }; }; then
34937 eval "$as_ac_var=yes"
34938 else
34939 echo "$as_me: failed program was:" >&5
34940 sed 's/^/| /' conftest.$ac_ext >&5
34942 eval "$as_ac_var=no"
34944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34948 if test `eval echo '${'$as_ac_var'}'` = yes; then
34949 cat >>confdefs.h <<_ACEOF
34950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34951 _ACEOF
34954 done
34956 else
34958 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
34959 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
34960 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
34961 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
34962 echo $ECHO_N "(cached) $ECHO_C" >&6
34963 else
34967 ac_ext=cc
34968 ac_cpp='$CXXCPP $CPPFLAGS'
34969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34973 cat >conftest.$ac_ext <<_ACEOF
34974 #line $LINENO "configure"
34975 /* confdefs.h. */
34976 _ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h. */
34980 #include <math.h>
34981 #ifdef HAVE_IEEEFP_H
34982 #include <ieeefp.h>
34983 #endif
34986 main ()
34988 _sqrtf(0);
34990 return 0;
34992 _ACEOF
34993 rm -f conftest.$ac_objext
34994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34995 (eval $ac_compile) 2>&5
34996 ac_status=$?
34997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998 (exit $ac_status); } &&
34999 { ac_try='test -s conftest.$ac_objext'
35000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35001 (eval $ac_try) 2>&5
35002 ac_status=$?
35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004 (exit $ac_status); }; }; then
35005 glibcxx_cv_func__sqrtf_use=yes
35006 else
35007 echo "$as_me: failed program was:" >&5
35008 sed 's/^/| /' conftest.$ac_ext >&5
35010 glibcxx_cv_func__sqrtf_use=no
35012 rm -f conftest.$ac_objext conftest.$ac_ext
35013 ac_ext=c
35014 ac_cpp='$CPP $CPPFLAGS'
35015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35023 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
35024 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
35026 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
35028 for ac_func in _sqrtf
35030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35031 echo "$as_me:$LINENO: checking for $ac_func" >&5
35032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35033 if eval "test \"\${$as_ac_var+set}\" = set"; then
35034 echo $ECHO_N "(cached) $ECHO_C" >&6
35035 else
35036 if test x$gcc_no_link = xyes; then
35037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35039 { (exit 1); exit 1; }; }
35041 cat >conftest.$ac_ext <<_ACEOF
35042 #line $LINENO "configure"
35043 /* confdefs.h. */
35044 _ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h. */
35048 /* System header to define __stub macros and hopefully few prototypes,
35049 which can conflict with char $ac_func (); below.
35050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35051 <limits.h> exists even on freestanding compilers. */
35052 #ifdef __STDC__
35053 # include <limits.h>
35054 #else
35055 # include <assert.h>
35056 #endif
35057 /* Override any gcc2 internal prototype to avoid an error. */
35058 #ifdef __cplusplus
35059 extern "C"
35061 #endif
35062 /* We use char because int might match the return type of a gcc2
35063 builtin and then its argument prototype would still apply. */
35064 char $ac_func ();
35065 /* The GNU C library defines this for functions which it implements
35066 to always fail with ENOSYS. Some functions are actually named
35067 something starting with __ and the normal name is an alias. */
35068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35069 choke me
35070 #else
35071 char (*f) () = $ac_func;
35072 #endif
35073 #ifdef __cplusplus
35075 #endif
35078 main ()
35080 return f != $ac_func;
35082 return 0;
35084 _ACEOF
35085 rm -f conftest.$ac_objext conftest$ac_exeext
35086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35087 (eval $ac_link) 2>&5
35088 ac_status=$?
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); } &&
35091 { ac_try='test -s conftest$ac_exeext'
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35094 ac_status=$?
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; }; then
35097 eval "$as_ac_var=yes"
35098 else
35099 echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35102 eval "$as_ac_var=no"
35104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35108 if test `eval echo '${'$as_ac_var'}'` = yes; then
35109 cat >>confdefs.h <<_ACEOF
35110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35111 _ACEOF
35114 done
35121 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
35122 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
35123 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
35124 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
35125 echo $ECHO_N "(cached) $ECHO_C" >&6
35126 else
35130 ac_ext=cc
35131 ac_cpp='$CXXCPP $CPPFLAGS'
35132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35136 cat >conftest.$ac_ext <<_ACEOF
35137 #line $LINENO "configure"
35138 /* confdefs.h. */
35139 _ACEOF
35140 cat confdefs.h >>conftest.$ac_ext
35141 cat >>conftest.$ac_ext <<_ACEOF
35142 /* end confdefs.h. */
35143 #include <math.h>
35145 main ()
35147 sincosf(0, 0, 0);
35149 return 0;
35151 _ACEOF
35152 rm -f conftest.$ac_objext
35153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35154 (eval $ac_compile) 2>&5
35155 ac_status=$?
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); } &&
35158 { ac_try='test -s conftest.$ac_objext'
35159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160 (eval $ac_try) 2>&5
35161 ac_status=$?
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); }; }; then
35164 glibcxx_cv_func_sincosf_use=yes
35165 else
35166 echo "$as_me: failed program was:" >&5
35167 sed 's/^/| /' conftest.$ac_ext >&5
35169 glibcxx_cv_func_sincosf_use=no
35171 rm -f conftest.$ac_objext conftest.$ac_ext
35172 ac_ext=c
35173 ac_cpp='$CPP $CPPFLAGS'
35174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35182 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
35183 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
35185 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
35187 for ac_func in sincosf
35189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35190 echo "$as_me:$LINENO: checking for $ac_func" >&5
35191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35192 if eval "test \"\${$as_ac_var+set}\" = set"; then
35193 echo $ECHO_N "(cached) $ECHO_C" >&6
35194 else
35195 if test x$gcc_no_link = xyes; then
35196 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35198 { (exit 1); exit 1; }; }
35200 cat >conftest.$ac_ext <<_ACEOF
35201 #line $LINENO "configure"
35202 /* confdefs.h. */
35203 _ACEOF
35204 cat confdefs.h >>conftest.$ac_ext
35205 cat >>conftest.$ac_ext <<_ACEOF
35206 /* end confdefs.h. */
35207 /* System header to define __stub macros and hopefully few prototypes,
35208 which can conflict with char $ac_func (); below.
35209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35210 <limits.h> exists even on freestanding compilers. */
35211 #ifdef __STDC__
35212 # include <limits.h>
35213 #else
35214 # include <assert.h>
35215 #endif
35216 /* Override any gcc2 internal prototype to avoid an error. */
35217 #ifdef __cplusplus
35218 extern "C"
35220 #endif
35221 /* We use char because int might match the return type of a gcc2
35222 builtin and then its argument prototype would still apply. */
35223 char $ac_func ();
35224 /* The GNU C library defines this for functions which it implements
35225 to always fail with ENOSYS. Some functions are actually named
35226 something starting with __ and the normal name is an alias. */
35227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35228 choke me
35229 #else
35230 char (*f) () = $ac_func;
35231 #endif
35232 #ifdef __cplusplus
35234 #endif
35237 main ()
35239 return f != $ac_func;
35241 return 0;
35243 _ACEOF
35244 rm -f conftest.$ac_objext conftest$ac_exeext
35245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35246 (eval $ac_link) 2>&5
35247 ac_status=$?
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); } &&
35250 { ac_try='test -s conftest$ac_exeext'
35251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252 (eval $ac_try) 2>&5
35253 ac_status=$?
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); }; }; then
35256 eval "$as_ac_var=yes"
35257 else
35258 echo "$as_me: failed program was:" >&5
35259 sed 's/^/| /' conftest.$ac_ext >&5
35261 eval "$as_ac_var=no"
35263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35267 if test `eval echo '${'$as_ac_var'}'` = yes; then
35268 cat >>confdefs.h <<_ACEOF
35269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35270 _ACEOF
35273 done
35275 else
35277 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
35278 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
35279 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
35280 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
35281 echo $ECHO_N "(cached) $ECHO_C" >&6
35282 else
35286 ac_ext=cc
35287 ac_cpp='$CXXCPP $CPPFLAGS'
35288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35292 cat >conftest.$ac_ext <<_ACEOF
35293 #line $LINENO "configure"
35294 /* confdefs.h. */
35295 _ACEOF
35296 cat confdefs.h >>conftest.$ac_ext
35297 cat >>conftest.$ac_ext <<_ACEOF
35298 /* end confdefs.h. */
35299 #include <math.h>
35301 main ()
35303 _sincosf(0, 0, 0);
35305 return 0;
35307 _ACEOF
35308 rm -f conftest.$ac_objext
35309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35310 (eval $ac_compile) 2>&5
35311 ac_status=$?
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); } &&
35314 { ac_try='test -s conftest.$ac_objext'
35315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316 (eval $ac_try) 2>&5
35317 ac_status=$?
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); }; }; then
35320 glibcxx_cv_func__sincosf_use=yes
35321 else
35322 echo "$as_me: failed program was:" >&5
35323 sed 's/^/| /' conftest.$ac_ext >&5
35325 glibcxx_cv_func__sincosf_use=no
35327 rm -f conftest.$ac_objext conftest.$ac_ext
35328 ac_ext=c
35329 ac_cpp='$CPP $CPPFLAGS'
35330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35338 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
35339 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
35341 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
35343 for ac_func in _sincosf
35345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35346 echo "$as_me:$LINENO: checking for $ac_func" >&5
35347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35348 if eval "test \"\${$as_ac_var+set}\" = set"; then
35349 echo $ECHO_N "(cached) $ECHO_C" >&6
35350 else
35351 if test x$gcc_no_link = xyes; then
35352 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35353 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35354 { (exit 1); exit 1; }; }
35356 cat >conftest.$ac_ext <<_ACEOF
35357 #line $LINENO "configure"
35358 /* confdefs.h. */
35359 _ACEOF
35360 cat confdefs.h >>conftest.$ac_ext
35361 cat >>conftest.$ac_ext <<_ACEOF
35362 /* end confdefs.h. */
35363 /* System header to define __stub macros and hopefully few prototypes,
35364 which can conflict with char $ac_func (); below.
35365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35366 <limits.h> exists even on freestanding compilers. */
35367 #ifdef __STDC__
35368 # include <limits.h>
35369 #else
35370 # include <assert.h>
35371 #endif
35372 /* Override any gcc2 internal prototype to avoid an error. */
35373 #ifdef __cplusplus
35374 extern "C"
35376 #endif
35377 /* We use char because int might match the return type of a gcc2
35378 builtin and then its argument prototype would still apply. */
35379 char $ac_func ();
35380 /* The GNU C library defines this for functions which it implements
35381 to always fail with ENOSYS. Some functions are actually named
35382 something starting with __ and the normal name is an alias. */
35383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35384 choke me
35385 #else
35386 char (*f) () = $ac_func;
35387 #endif
35388 #ifdef __cplusplus
35390 #endif
35393 main ()
35395 return f != $ac_func;
35397 return 0;
35399 _ACEOF
35400 rm -f conftest.$ac_objext conftest$ac_exeext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35402 (eval $ac_link) 2>&5
35403 ac_status=$?
35404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); } &&
35406 { ac_try='test -s conftest$ac_exeext'
35407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35408 (eval $ac_try) 2>&5
35409 ac_status=$?
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); }; }; then
35412 eval "$as_ac_var=yes"
35413 else
35414 echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35417 eval "$as_ac_var=no"
35419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35423 if test `eval echo '${'$as_ac_var'}'` = yes; then
35424 cat >>confdefs.h <<_ACEOF
35425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35426 _ACEOF
35429 done
35436 echo "$as_me:$LINENO: checking for finitef declaration" >&5
35437 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
35438 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
35439 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
35440 echo $ECHO_N "(cached) $ECHO_C" >&6
35441 else
35445 ac_ext=cc
35446 ac_cpp='$CXXCPP $CPPFLAGS'
35447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35451 cat >conftest.$ac_ext <<_ACEOF
35452 #line $LINENO "configure"
35453 /* confdefs.h. */
35454 _ACEOF
35455 cat confdefs.h >>conftest.$ac_ext
35456 cat >>conftest.$ac_ext <<_ACEOF
35457 /* end confdefs.h. */
35458 #include <math.h>
35459 #ifdef HAVE_IEEEFP_H
35460 #include <ieeefp.h>
35461 #endif
35464 main ()
35466 finitef(0);
35468 return 0;
35470 _ACEOF
35471 rm -f conftest.$ac_objext
35472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35473 (eval $ac_compile) 2>&5
35474 ac_status=$?
35475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35476 (exit $ac_status); } &&
35477 { ac_try='test -s conftest.$ac_objext'
35478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35479 (eval $ac_try) 2>&5
35480 ac_status=$?
35481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 (exit $ac_status); }; }; then
35483 glibcxx_cv_func_finitef_use=yes
35484 else
35485 echo "$as_me: failed program was:" >&5
35486 sed 's/^/| /' conftest.$ac_ext >&5
35488 glibcxx_cv_func_finitef_use=no
35490 rm -f conftest.$ac_objext conftest.$ac_ext
35491 ac_ext=c
35492 ac_cpp='$CPP $CPPFLAGS'
35493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35501 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
35502 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
35504 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
35506 for ac_func in finitef
35508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35509 echo "$as_me:$LINENO: checking for $ac_func" >&5
35510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35511 if eval "test \"\${$as_ac_var+set}\" = set"; then
35512 echo $ECHO_N "(cached) $ECHO_C" >&6
35513 else
35514 if test x$gcc_no_link = xyes; then
35515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35517 { (exit 1); exit 1; }; }
35519 cat >conftest.$ac_ext <<_ACEOF
35520 #line $LINENO "configure"
35521 /* confdefs.h. */
35522 _ACEOF
35523 cat confdefs.h >>conftest.$ac_ext
35524 cat >>conftest.$ac_ext <<_ACEOF
35525 /* end confdefs.h. */
35526 /* System header to define __stub macros and hopefully few prototypes,
35527 which can conflict with char $ac_func (); below.
35528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35529 <limits.h> exists even on freestanding compilers. */
35530 #ifdef __STDC__
35531 # include <limits.h>
35532 #else
35533 # include <assert.h>
35534 #endif
35535 /* Override any gcc2 internal prototype to avoid an error. */
35536 #ifdef __cplusplus
35537 extern "C"
35539 #endif
35540 /* We use char because int might match the return type of a gcc2
35541 builtin and then its argument prototype would still apply. */
35542 char $ac_func ();
35543 /* The GNU C library defines this for functions which it implements
35544 to always fail with ENOSYS. Some functions are actually named
35545 something starting with __ and the normal name is an alias. */
35546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35547 choke me
35548 #else
35549 char (*f) () = $ac_func;
35550 #endif
35551 #ifdef __cplusplus
35553 #endif
35556 main ()
35558 return f != $ac_func;
35560 return 0;
35562 _ACEOF
35563 rm -f conftest.$ac_objext conftest$ac_exeext
35564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35565 (eval $ac_link) 2>&5
35566 ac_status=$?
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); } &&
35569 { ac_try='test -s conftest$ac_exeext'
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35572 ac_status=$?
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; }; then
35575 eval "$as_ac_var=yes"
35576 else
35577 echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35580 eval "$as_ac_var=no"
35582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35586 if test `eval echo '${'$as_ac_var'}'` = yes; then
35587 cat >>confdefs.h <<_ACEOF
35588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35589 _ACEOF
35592 done
35594 else
35596 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
35597 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
35598 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
35599 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
35600 echo $ECHO_N "(cached) $ECHO_C" >&6
35601 else
35605 ac_ext=cc
35606 ac_cpp='$CXXCPP $CPPFLAGS'
35607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35611 cat >conftest.$ac_ext <<_ACEOF
35612 #line $LINENO "configure"
35613 /* confdefs.h. */
35614 _ACEOF
35615 cat confdefs.h >>conftest.$ac_ext
35616 cat >>conftest.$ac_ext <<_ACEOF
35617 /* end confdefs.h. */
35618 #include <math.h>
35619 #ifdef HAVE_IEEEFP_H
35620 #include <ieeefp.h>
35621 #endif
35624 main ()
35626 _finitef(0);
35628 return 0;
35630 _ACEOF
35631 rm -f conftest.$ac_objext
35632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35633 (eval $ac_compile) 2>&5
35634 ac_status=$?
35635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636 (exit $ac_status); } &&
35637 { ac_try='test -s conftest.$ac_objext'
35638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35639 (eval $ac_try) 2>&5
35640 ac_status=$?
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); }; }; then
35643 glibcxx_cv_func__finitef_use=yes
35644 else
35645 echo "$as_me: failed program was:" >&5
35646 sed 's/^/| /' conftest.$ac_ext >&5
35648 glibcxx_cv_func__finitef_use=no
35650 rm -f conftest.$ac_objext conftest.$ac_ext
35651 ac_ext=c
35652 ac_cpp='$CPP $CPPFLAGS'
35653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35661 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
35662 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
35664 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
35666 for ac_func in _finitef
35668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35669 echo "$as_me:$LINENO: checking for $ac_func" >&5
35670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35671 if eval "test \"\${$as_ac_var+set}\" = set"; then
35672 echo $ECHO_N "(cached) $ECHO_C" >&6
35673 else
35674 if test x$gcc_no_link = xyes; then
35675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35677 { (exit 1); exit 1; }; }
35679 cat >conftest.$ac_ext <<_ACEOF
35680 #line $LINENO "configure"
35681 /* confdefs.h. */
35682 _ACEOF
35683 cat confdefs.h >>conftest.$ac_ext
35684 cat >>conftest.$ac_ext <<_ACEOF
35685 /* end confdefs.h. */
35686 /* System header to define __stub macros and hopefully few prototypes,
35687 which can conflict with char $ac_func (); below.
35688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35689 <limits.h> exists even on freestanding compilers. */
35690 #ifdef __STDC__
35691 # include <limits.h>
35692 #else
35693 # include <assert.h>
35694 #endif
35695 /* Override any gcc2 internal prototype to avoid an error. */
35696 #ifdef __cplusplus
35697 extern "C"
35699 #endif
35700 /* We use char because int might match the return type of a gcc2
35701 builtin and then its argument prototype would still apply. */
35702 char $ac_func ();
35703 /* The GNU C library defines this for functions which it implements
35704 to always fail with ENOSYS. Some functions are actually named
35705 something starting with __ and the normal name is an alias. */
35706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35707 choke me
35708 #else
35709 char (*f) () = $ac_func;
35710 #endif
35711 #ifdef __cplusplus
35713 #endif
35716 main ()
35718 return f != $ac_func;
35720 return 0;
35722 _ACEOF
35723 rm -f conftest.$ac_objext conftest$ac_exeext
35724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35725 (eval $ac_link) 2>&5
35726 ac_status=$?
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); } &&
35729 { ac_try='test -s conftest$ac_exeext'
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35732 ac_status=$?
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; }; then
35735 eval "$as_ac_var=yes"
35736 else
35737 echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35740 eval "$as_ac_var=no"
35742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35746 if test `eval echo '${'$as_ac_var'}'` = yes; then
35747 cat >>confdefs.h <<_ACEOF
35748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35749 _ACEOF
35752 done
35759 echo "$as_me:$LINENO: checking for long double trig functions" >&5
35760 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
35761 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
35762 echo $ECHO_N "(cached) $ECHO_C" >&6
35763 else
35767 ac_ext=cc
35768 ac_cpp='$CXXCPP $CPPFLAGS'
35769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35773 cat >conftest.$ac_ext <<_ACEOF
35774 #line $LINENO "configure"
35775 /* confdefs.h. */
35776 _ACEOF
35777 cat confdefs.h >>conftest.$ac_ext
35778 cat >>conftest.$ac_ext <<_ACEOF
35779 /* end confdefs.h. */
35780 #include <math.h>
35782 main ()
35784 `for x in acosl asinl atanl \
35785 cosl sinl tanl \
35786 coshl sinhl tanhl; do echo "$x (0);"; done`
35788 return 0;
35790 _ACEOF
35791 rm -f conftest.$ac_objext
35792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35793 (eval $ac_compile) 2>&5
35794 ac_status=$?
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); } &&
35797 { ac_try='test -s conftest.$ac_objext'
35798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799 (eval $ac_try) 2>&5
35800 ac_status=$?
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
35803 glibcxx_cv_func_long_double_trig_use=yes
35804 else
35805 echo "$as_me: failed program was:" >&5
35806 sed 's/^/| /' conftest.$ac_ext >&5
35808 glibcxx_cv_func_long_double_trig_use=no
35810 rm -f conftest.$ac_objext conftest.$ac_ext
35811 ac_ext=c
35812 ac_cpp='$CPP $CPPFLAGS'
35813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35819 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
35820 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
35821 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
35831 for ac_func in acosl asinl atanl \
35832 cosl sinl tanl \
35833 coshl sinhl tanhl
35835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35836 echo "$as_me:$LINENO: checking for $ac_func" >&5
35837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35838 if eval "test \"\${$as_ac_var+set}\" = set"; then
35839 echo $ECHO_N "(cached) $ECHO_C" >&6
35840 else
35841 if test x$gcc_no_link = xyes; then
35842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35844 { (exit 1); exit 1; }; }
35846 cat >conftest.$ac_ext <<_ACEOF
35847 #line $LINENO "configure"
35848 /* confdefs.h. */
35849 _ACEOF
35850 cat confdefs.h >>conftest.$ac_ext
35851 cat >>conftest.$ac_ext <<_ACEOF
35852 /* end confdefs.h. */
35853 /* System header to define __stub macros and hopefully few prototypes,
35854 which can conflict with char $ac_func (); below.
35855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35856 <limits.h> exists even on freestanding compilers. */
35857 #ifdef __STDC__
35858 # include <limits.h>
35859 #else
35860 # include <assert.h>
35861 #endif
35862 /* Override any gcc2 internal prototype to avoid an error. */
35863 #ifdef __cplusplus
35864 extern "C"
35866 #endif
35867 /* We use char because int might match the return type of a gcc2
35868 builtin and then its argument prototype would still apply. */
35869 char $ac_func ();
35870 /* The GNU C library defines this for functions which it implements
35871 to always fail with ENOSYS. Some functions are actually named
35872 something starting with __ and the normal name is an alias. */
35873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35874 choke me
35875 #else
35876 char (*f) () = $ac_func;
35877 #endif
35878 #ifdef __cplusplus
35880 #endif
35883 main ()
35885 return f != $ac_func;
35887 return 0;
35889 _ACEOF
35890 rm -f conftest.$ac_objext conftest$ac_exeext
35891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35892 (eval $ac_link) 2>&5
35893 ac_status=$?
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); } &&
35896 { ac_try='test -s conftest$ac_exeext'
35897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898 (eval $ac_try) 2>&5
35899 ac_status=$?
35900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901 (exit $ac_status); }; }; then
35902 eval "$as_ac_var=yes"
35903 else
35904 echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35907 eval "$as_ac_var=no"
35909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35913 if test `eval echo '${'$as_ac_var'}'` = yes; then
35914 cat >>confdefs.h <<_ACEOF
35915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35916 _ACEOF
35919 done
35924 echo "$as_me:$LINENO: checking for long double round functions" >&5
35925 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
35926 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
35927 echo $ECHO_N "(cached) $ECHO_C" >&6
35928 else
35932 ac_ext=cc
35933 ac_cpp='$CXXCPP $CPPFLAGS'
35934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35938 cat >conftest.$ac_ext <<_ACEOF
35939 #line $LINENO "configure"
35940 /* confdefs.h. */
35941 _ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h. */
35945 #include <math.h>
35947 main ()
35949 `for x in ceill floorl; do echo "$x (0);"; done`
35951 return 0;
35953 _ACEOF
35954 rm -f conftest.$ac_objext
35955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35956 (eval $ac_compile) 2>&5
35957 ac_status=$?
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); } &&
35960 { ac_try='test -s conftest.$ac_objext'
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35963 ac_status=$?
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; }; then
35966 glibcxx_cv_func_long_double_round_use=yes
35967 else
35968 echo "$as_me: failed program was:" >&5
35969 sed 's/^/| /' conftest.$ac_ext >&5
35971 glibcxx_cv_func_long_double_round_use=no
35973 rm -f conftest.$ac_objext conftest.$ac_ext
35974 ac_ext=c
35975 ac_cpp='$CPP $CPPFLAGS'
35976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35982 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
35983 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
35984 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
35987 for ac_func in ceill floorl
35989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35990 echo "$as_me:$LINENO: checking for $ac_func" >&5
35991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35992 if eval "test \"\${$as_ac_var+set}\" = set"; then
35993 echo $ECHO_N "(cached) $ECHO_C" >&6
35994 else
35995 if test x$gcc_no_link = xyes; then
35996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35998 { (exit 1); exit 1; }; }
36000 cat >conftest.$ac_ext <<_ACEOF
36001 #line $LINENO "configure"
36002 /* confdefs.h. */
36003 _ACEOF
36004 cat confdefs.h >>conftest.$ac_ext
36005 cat >>conftest.$ac_ext <<_ACEOF
36006 /* end confdefs.h. */
36007 /* System header to define __stub macros and hopefully few prototypes,
36008 which can conflict with char $ac_func (); below.
36009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36010 <limits.h> exists even on freestanding compilers. */
36011 #ifdef __STDC__
36012 # include <limits.h>
36013 #else
36014 # include <assert.h>
36015 #endif
36016 /* Override any gcc2 internal prototype to avoid an error. */
36017 #ifdef __cplusplus
36018 extern "C"
36020 #endif
36021 /* We use char because int might match the return type of a gcc2
36022 builtin and then its argument prototype would still apply. */
36023 char $ac_func ();
36024 /* The GNU C library defines this for functions which it implements
36025 to always fail with ENOSYS. Some functions are actually named
36026 something starting with __ and the normal name is an alias. */
36027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36028 choke me
36029 #else
36030 char (*f) () = $ac_func;
36031 #endif
36032 #ifdef __cplusplus
36034 #endif
36037 main ()
36039 return f != $ac_func;
36041 return 0;
36043 _ACEOF
36044 rm -f conftest.$ac_objext conftest$ac_exeext
36045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36046 (eval $ac_link) 2>&5
36047 ac_status=$?
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); } &&
36050 { ac_try='test -s conftest$ac_exeext'
36051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052 (eval $ac_try) 2>&5
36053 ac_status=$?
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); }; }; then
36056 eval "$as_ac_var=yes"
36057 else
36058 echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36061 eval "$as_ac_var=no"
36063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36067 if test `eval echo '${'$as_ac_var'}'` = yes; then
36068 cat >>confdefs.h <<_ACEOF
36069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36070 _ACEOF
36073 done
36079 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
36080 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
36081 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36082 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
36083 echo $ECHO_N "(cached) $ECHO_C" >&6
36084 else
36088 ac_ext=cc
36089 ac_cpp='$CXXCPP $CPPFLAGS'
36090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36094 cat >conftest.$ac_ext <<_ACEOF
36095 #line $LINENO "configure"
36096 /* confdefs.h. */
36097 _ACEOF
36098 cat confdefs.h >>conftest.$ac_ext
36099 cat >>conftest.$ac_ext <<_ACEOF
36100 /* end confdefs.h. */
36101 #include <math.h>
36102 #ifdef HAVE_IEEEFP_H
36103 #include <ieeefp.h>
36104 #endif
36107 main ()
36109 isnanl(0);
36111 return 0;
36113 _ACEOF
36114 rm -f conftest.$ac_objext
36115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36116 (eval $ac_compile) 2>&5
36117 ac_status=$?
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } &&
36120 { ac_try='test -s conftest.$ac_objext'
36121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36122 (eval $ac_try) 2>&5
36123 ac_status=$?
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); }; }; then
36126 glibcxx_cv_func_isnanl_use=yes
36127 else
36128 echo "$as_me: failed program was:" >&5
36129 sed 's/^/| /' conftest.$ac_ext >&5
36131 glibcxx_cv_func_isnanl_use=no
36133 rm -f conftest.$ac_objext conftest.$ac_ext
36134 ac_ext=c
36135 ac_cpp='$CPP $CPPFLAGS'
36136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36144 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
36145 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
36147 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36149 for ac_func in isnanl
36151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36152 echo "$as_me:$LINENO: checking for $ac_func" >&5
36153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36154 if eval "test \"\${$as_ac_var+set}\" = set"; then
36155 echo $ECHO_N "(cached) $ECHO_C" >&6
36156 else
36157 if test x$gcc_no_link = xyes; then
36158 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36160 { (exit 1); exit 1; }; }
36162 cat >conftest.$ac_ext <<_ACEOF
36163 #line $LINENO "configure"
36164 /* confdefs.h. */
36165 _ACEOF
36166 cat confdefs.h >>conftest.$ac_ext
36167 cat >>conftest.$ac_ext <<_ACEOF
36168 /* end confdefs.h. */
36169 /* System header to define __stub macros and hopefully few prototypes,
36170 which can conflict with char $ac_func (); below.
36171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36172 <limits.h> exists even on freestanding compilers. */
36173 #ifdef __STDC__
36174 # include <limits.h>
36175 #else
36176 # include <assert.h>
36177 #endif
36178 /* Override any gcc2 internal prototype to avoid an error. */
36179 #ifdef __cplusplus
36180 extern "C"
36182 #endif
36183 /* We use char because int might match the return type of a gcc2
36184 builtin and then its argument prototype would still apply. */
36185 char $ac_func ();
36186 /* The GNU C library defines this for functions which it implements
36187 to always fail with ENOSYS. Some functions are actually named
36188 something starting with __ and the normal name is an alias. */
36189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36190 choke me
36191 #else
36192 char (*f) () = $ac_func;
36193 #endif
36194 #ifdef __cplusplus
36196 #endif
36199 main ()
36201 return f != $ac_func;
36203 return 0;
36205 _ACEOF
36206 rm -f conftest.$ac_objext conftest$ac_exeext
36207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36208 (eval $ac_link) 2>&5
36209 ac_status=$?
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); } &&
36212 { ac_try='test -s conftest$ac_exeext'
36213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36214 (eval $ac_try) 2>&5
36215 ac_status=$?
36216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217 (exit $ac_status); }; }; then
36218 eval "$as_ac_var=yes"
36219 else
36220 echo "$as_me: failed program was:" >&5
36221 sed 's/^/| /' conftest.$ac_ext >&5
36223 eval "$as_ac_var=no"
36225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36229 if test `eval echo '${'$as_ac_var'}'` = yes; then
36230 cat >>confdefs.h <<_ACEOF
36231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36232 _ACEOF
36235 done
36237 else
36239 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
36240 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
36241 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
36242 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
36243 echo $ECHO_N "(cached) $ECHO_C" >&6
36244 else
36248 ac_ext=cc
36249 ac_cpp='$CXXCPP $CPPFLAGS'
36250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36254 cat >conftest.$ac_ext <<_ACEOF
36255 #line $LINENO "configure"
36256 /* confdefs.h. */
36257 _ACEOF
36258 cat confdefs.h >>conftest.$ac_ext
36259 cat >>conftest.$ac_ext <<_ACEOF
36260 /* end confdefs.h. */
36261 #include <math.h>
36262 #ifdef HAVE_IEEEFP_H
36263 #include <ieeefp.h>
36264 #endif
36267 main ()
36269 _isnanl(0);
36271 return 0;
36273 _ACEOF
36274 rm -f conftest.$ac_objext
36275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36276 (eval $ac_compile) 2>&5
36277 ac_status=$?
36278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279 (exit $ac_status); } &&
36280 { ac_try='test -s conftest.$ac_objext'
36281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36282 (eval $ac_try) 2>&5
36283 ac_status=$?
36284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285 (exit $ac_status); }; }; then
36286 glibcxx_cv_func__isnanl_use=yes
36287 else
36288 echo "$as_me: failed program was:" >&5
36289 sed 's/^/| /' conftest.$ac_ext >&5
36291 glibcxx_cv_func__isnanl_use=no
36293 rm -f conftest.$ac_objext conftest.$ac_ext
36294 ac_ext=c
36295 ac_cpp='$CPP $CPPFLAGS'
36296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36304 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
36305 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
36307 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
36309 for ac_func in _isnanl
36311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36312 echo "$as_me:$LINENO: checking for $ac_func" >&5
36313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36314 if eval "test \"\${$as_ac_var+set}\" = set"; then
36315 echo $ECHO_N "(cached) $ECHO_C" >&6
36316 else
36317 if test x$gcc_no_link = xyes; then
36318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36320 { (exit 1); exit 1; }; }
36322 cat >conftest.$ac_ext <<_ACEOF
36323 #line $LINENO "configure"
36324 /* confdefs.h. */
36325 _ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h. */
36329 /* System header to define __stub macros and hopefully few prototypes,
36330 which can conflict with char $ac_func (); below.
36331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36332 <limits.h> exists even on freestanding compilers. */
36333 #ifdef __STDC__
36334 # include <limits.h>
36335 #else
36336 # include <assert.h>
36337 #endif
36338 /* Override any gcc2 internal prototype to avoid an error. */
36339 #ifdef __cplusplus
36340 extern "C"
36342 #endif
36343 /* We use char because int might match the return type of a gcc2
36344 builtin and then its argument prototype would still apply. */
36345 char $ac_func ();
36346 /* The GNU C library defines this for functions which it implements
36347 to always fail with ENOSYS. Some functions are actually named
36348 something starting with __ and the normal name is an alias. */
36349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36350 choke me
36351 #else
36352 char (*f) () = $ac_func;
36353 #endif
36354 #ifdef __cplusplus
36356 #endif
36359 main ()
36361 return f != $ac_func;
36363 return 0;
36365 _ACEOF
36366 rm -f conftest.$ac_objext conftest$ac_exeext
36367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36368 (eval $ac_link) 2>&5
36369 ac_status=$?
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); } &&
36372 { ac_try='test -s conftest$ac_exeext'
36373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36374 (eval $ac_try) 2>&5
36375 ac_status=$?
36376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377 (exit $ac_status); }; }; then
36378 eval "$as_ac_var=yes"
36379 else
36380 echo "$as_me: failed program was:" >&5
36381 sed 's/^/| /' conftest.$ac_ext >&5
36383 eval "$as_ac_var=no"
36385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36389 if test `eval echo '${'$as_ac_var'}'` = yes; then
36390 cat >>confdefs.h <<_ACEOF
36391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36392 _ACEOF
36395 done
36402 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
36403 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
36404 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36405 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
36406 echo $ECHO_N "(cached) $ECHO_C" >&6
36407 else
36411 ac_ext=cc
36412 ac_cpp='$CXXCPP $CPPFLAGS'
36413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36417 cat >conftest.$ac_ext <<_ACEOF
36418 #line $LINENO "configure"
36419 /* confdefs.h. */
36420 _ACEOF
36421 cat confdefs.h >>conftest.$ac_ext
36422 cat >>conftest.$ac_ext <<_ACEOF
36423 /* end confdefs.h. */
36424 #include <math.h>
36425 #ifdef HAVE_IEEEFP_H
36426 #include <ieeefp.h>
36427 #endif
36430 main ()
36432 isinfl(0);
36434 return 0;
36436 _ACEOF
36437 rm -f conftest.$ac_objext
36438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36439 (eval $ac_compile) 2>&5
36440 ac_status=$?
36441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442 (exit $ac_status); } &&
36443 { ac_try='test -s conftest.$ac_objext'
36444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36445 (eval $ac_try) 2>&5
36446 ac_status=$?
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); }; }; then
36449 glibcxx_cv_func_isinfl_use=yes
36450 else
36451 echo "$as_me: failed program was:" >&5
36452 sed 's/^/| /' conftest.$ac_ext >&5
36454 glibcxx_cv_func_isinfl_use=no
36456 rm -f conftest.$ac_objext conftest.$ac_ext
36457 ac_ext=c
36458 ac_cpp='$CPP $CPPFLAGS'
36459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36467 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
36468 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
36470 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36472 for ac_func in isinfl
36474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36475 echo "$as_me:$LINENO: checking for $ac_func" >&5
36476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36477 if eval "test \"\${$as_ac_var+set}\" = set"; then
36478 echo $ECHO_N "(cached) $ECHO_C" >&6
36479 else
36480 if test x$gcc_no_link = xyes; then
36481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36483 { (exit 1); exit 1; }; }
36485 cat >conftest.$ac_ext <<_ACEOF
36486 #line $LINENO "configure"
36487 /* confdefs.h. */
36488 _ACEOF
36489 cat confdefs.h >>conftest.$ac_ext
36490 cat >>conftest.$ac_ext <<_ACEOF
36491 /* end confdefs.h. */
36492 /* System header to define __stub macros and hopefully few prototypes,
36493 which can conflict with char $ac_func (); below.
36494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36495 <limits.h> exists even on freestanding compilers. */
36496 #ifdef __STDC__
36497 # include <limits.h>
36498 #else
36499 # include <assert.h>
36500 #endif
36501 /* Override any gcc2 internal prototype to avoid an error. */
36502 #ifdef __cplusplus
36503 extern "C"
36505 #endif
36506 /* We use char because int might match the return type of a gcc2
36507 builtin and then its argument prototype would still apply. */
36508 char $ac_func ();
36509 /* The GNU C library defines this for functions which it implements
36510 to always fail with ENOSYS. Some functions are actually named
36511 something starting with __ and the normal name is an alias. */
36512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36513 choke me
36514 #else
36515 char (*f) () = $ac_func;
36516 #endif
36517 #ifdef __cplusplus
36519 #endif
36522 main ()
36524 return f != $ac_func;
36526 return 0;
36528 _ACEOF
36529 rm -f conftest.$ac_objext conftest$ac_exeext
36530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36531 (eval $ac_link) 2>&5
36532 ac_status=$?
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } &&
36535 { ac_try='test -s conftest$ac_exeext'
36536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36537 (eval $ac_try) 2>&5
36538 ac_status=$?
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; }; then
36541 eval "$as_ac_var=yes"
36542 else
36543 echo "$as_me: failed program was:" >&5
36544 sed 's/^/| /' conftest.$ac_ext >&5
36546 eval "$as_ac_var=no"
36548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36552 if test `eval echo '${'$as_ac_var'}'` = yes; then
36553 cat >>confdefs.h <<_ACEOF
36554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36555 _ACEOF
36558 done
36560 else
36562 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
36563 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
36564 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
36565 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
36566 echo $ECHO_N "(cached) $ECHO_C" >&6
36567 else
36571 ac_ext=cc
36572 ac_cpp='$CXXCPP $CPPFLAGS'
36573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36577 cat >conftest.$ac_ext <<_ACEOF
36578 #line $LINENO "configure"
36579 /* confdefs.h. */
36580 _ACEOF
36581 cat confdefs.h >>conftest.$ac_ext
36582 cat >>conftest.$ac_ext <<_ACEOF
36583 /* end confdefs.h. */
36584 #include <math.h>
36585 #ifdef HAVE_IEEEFP_H
36586 #include <ieeefp.h>
36587 #endif
36590 main ()
36592 _isinfl(0);
36594 return 0;
36596 _ACEOF
36597 rm -f conftest.$ac_objext
36598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36599 (eval $ac_compile) 2>&5
36600 ac_status=$?
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); } &&
36603 { ac_try='test -s conftest.$ac_objext'
36604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36605 (eval $ac_try) 2>&5
36606 ac_status=$?
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); }; }; then
36609 glibcxx_cv_func__isinfl_use=yes
36610 else
36611 echo "$as_me: failed program was:" >&5
36612 sed 's/^/| /' conftest.$ac_ext >&5
36614 glibcxx_cv_func__isinfl_use=no
36616 rm -f conftest.$ac_objext conftest.$ac_ext
36617 ac_ext=c
36618 ac_cpp='$CPP $CPPFLAGS'
36619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36627 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
36628 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
36630 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
36632 for ac_func in _isinfl
36634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36635 echo "$as_me:$LINENO: checking for $ac_func" >&5
36636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36637 if eval "test \"\${$as_ac_var+set}\" = set"; then
36638 echo $ECHO_N "(cached) $ECHO_C" >&6
36639 else
36640 if test x$gcc_no_link = xyes; then
36641 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36643 { (exit 1); exit 1; }; }
36645 cat >conftest.$ac_ext <<_ACEOF
36646 #line $LINENO "configure"
36647 /* confdefs.h. */
36648 _ACEOF
36649 cat confdefs.h >>conftest.$ac_ext
36650 cat >>conftest.$ac_ext <<_ACEOF
36651 /* end confdefs.h. */
36652 /* System header to define __stub macros and hopefully few prototypes,
36653 which can conflict with char $ac_func (); below.
36654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36655 <limits.h> exists even on freestanding compilers. */
36656 #ifdef __STDC__
36657 # include <limits.h>
36658 #else
36659 # include <assert.h>
36660 #endif
36661 /* Override any gcc2 internal prototype to avoid an error. */
36662 #ifdef __cplusplus
36663 extern "C"
36665 #endif
36666 /* We use char because int might match the return type of a gcc2
36667 builtin and then its argument prototype would still apply. */
36668 char $ac_func ();
36669 /* The GNU C library defines this for functions which it implements
36670 to always fail with ENOSYS. Some functions are actually named
36671 something starting with __ and the normal name is an alias. */
36672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36673 choke me
36674 #else
36675 char (*f) () = $ac_func;
36676 #endif
36677 #ifdef __cplusplus
36679 #endif
36682 main ()
36684 return f != $ac_func;
36686 return 0;
36688 _ACEOF
36689 rm -f conftest.$ac_objext conftest$ac_exeext
36690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36691 (eval $ac_link) 2>&5
36692 ac_status=$?
36693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694 (exit $ac_status); } &&
36695 { ac_try='test -s conftest$ac_exeext'
36696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36697 (eval $ac_try) 2>&5
36698 ac_status=$?
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); }; }; then
36701 eval "$as_ac_var=yes"
36702 else
36703 echo "$as_me: failed program was:" >&5
36704 sed 's/^/| /' conftest.$ac_ext >&5
36706 eval "$as_ac_var=no"
36708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36712 if test `eval echo '${'$as_ac_var'}'` = yes; then
36713 cat >>confdefs.h <<_ACEOF
36714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36715 _ACEOF
36718 done
36725 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
36726 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
36727 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
36728 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
36729 echo $ECHO_N "(cached) $ECHO_C" >&6
36730 else
36734 ac_ext=cc
36735 ac_cpp='$CXXCPP $CPPFLAGS'
36736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36740 cat >conftest.$ac_ext <<_ACEOF
36741 #line $LINENO "configure"
36742 /* confdefs.h. */
36743 _ACEOF
36744 cat confdefs.h >>conftest.$ac_ext
36745 cat >>conftest.$ac_ext <<_ACEOF
36746 /* end confdefs.h. */
36747 #include <math.h>
36749 main ()
36751 copysignl(0, 0);
36753 return 0;
36755 _ACEOF
36756 rm -f conftest.$ac_objext
36757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36758 (eval $ac_compile) 2>&5
36759 ac_status=$?
36760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761 (exit $ac_status); } &&
36762 { ac_try='test -s conftest.$ac_objext'
36763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36764 (eval $ac_try) 2>&5
36765 ac_status=$?
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); }; }; then
36768 glibcxx_cv_func_copysignl_use=yes
36769 else
36770 echo "$as_me: failed program was:" >&5
36771 sed 's/^/| /' conftest.$ac_ext >&5
36773 glibcxx_cv_func_copysignl_use=no
36775 rm -f conftest.$ac_objext conftest.$ac_ext
36776 ac_ext=c
36777 ac_cpp='$CPP $CPPFLAGS'
36778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36786 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
36787 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
36789 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
36791 for ac_func in copysignl
36793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36794 echo "$as_me:$LINENO: checking for $ac_func" >&5
36795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36796 if eval "test \"\${$as_ac_var+set}\" = set"; then
36797 echo $ECHO_N "(cached) $ECHO_C" >&6
36798 else
36799 if test x$gcc_no_link = xyes; then
36800 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36801 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36802 { (exit 1); exit 1; }; }
36804 cat >conftest.$ac_ext <<_ACEOF
36805 #line $LINENO "configure"
36806 /* confdefs.h. */
36807 _ACEOF
36808 cat confdefs.h >>conftest.$ac_ext
36809 cat >>conftest.$ac_ext <<_ACEOF
36810 /* end confdefs.h. */
36811 /* System header to define __stub macros and hopefully few prototypes,
36812 which can conflict with char $ac_func (); below.
36813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36814 <limits.h> exists even on freestanding compilers. */
36815 #ifdef __STDC__
36816 # include <limits.h>
36817 #else
36818 # include <assert.h>
36819 #endif
36820 /* Override any gcc2 internal prototype to avoid an error. */
36821 #ifdef __cplusplus
36822 extern "C"
36824 #endif
36825 /* We use char because int might match the return type of a gcc2
36826 builtin and then its argument prototype would still apply. */
36827 char $ac_func ();
36828 /* The GNU C library defines this for functions which it implements
36829 to always fail with ENOSYS. Some functions are actually named
36830 something starting with __ and the normal name is an alias. */
36831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36832 choke me
36833 #else
36834 char (*f) () = $ac_func;
36835 #endif
36836 #ifdef __cplusplus
36838 #endif
36841 main ()
36843 return f != $ac_func;
36845 return 0;
36847 _ACEOF
36848 rm -f conftest.$ac_objext conftest$ac_exeext
36849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36850 (eval $ac_link) 2>&5
36851 ac_status=$?
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); } &&
36854 { ac_try='test -s conftest$ac_exeext'
36855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36856 (eval $ac_try) 2>&5
36857 ac_status=$?
36858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); }; }; then
36860 eval "$as_ac_var=yes"
36861 else
36862 echo "$as_me: failed program was:" >&5
36863 sed 's/^/| /' conftest.$ac_ext >&5
36865 eval "$as_ac_var=no"
36867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36871 if test `eval echo '${'$as_ac_var'}'` = yes; then
36872 cat >>confdefs.h <<_ACEOF
36873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36874 _ACEOF
36877 done
36879 else
36881 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
36882 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
36883 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
36884 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
36885 echo $ECHO_N "(cached) $ECHO_C" >&6
36886 else
36890 ac_ext=cc
36891 ac_cpp='$CXXCPP $CPPFLAGS'
36892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36896 cat >conftest.$ac_ext <<_ACEOF
36897 #line $LINENO "configure"
36898 /* confdefs.h. */
36899 _ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h. */
36903 #include <math.h>
36905 main ()
36907 _copysignl(0, 0);
36909 return 0;
36911 _ACEOF
36912 rm -f conftest.$ac_objext
36913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36914 (eval $ac_compile) 2>&5
36915 ac_status=$?
36916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917 (exit $ac_status); } &&
36918 { ac_try='test -s conftest.$ac_objext'
36919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36920 (eval $ac_try) 2>&5
36921 ac_status=$?
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); }; }; then
36924 glibcxx_cv_func__copysignl_use=yes
36925 else
36926 echo "$as_me: failed program was:" >&5
36927 sed 's/^/| /' conftest.$ac_ext >&5
36929 glibcxx_cv_func__copysignl_use=no
36931 rm -f conftest.$ac_objext conftest.$ac_ext
36932 ac_ext=c
36933 ac_cpp='$CPP $CPPFLAGS'
36934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36942 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
36943 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
36945 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
36947 for ac_func in _copysignl
36949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36950 echo "$as_me:$LINENO: checking for $ac_func" >&5
36951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36952 if eval "test \"\${$as_ac_var+set}\" = set"; then
36953 echo $ECHO_N "(cached) $ECHO_C" >&6
36954 else
36955 if test x$gcc_no_link = xyes; then
36956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36958 { (exit 1); exit 1; }; }
36960 cat >conftest.$ac_ext <<_ACEOF
36961 #line $LINENO "configure"
36962 /* confdefs.h. */
36963 _ACEOF
36964 cat confdefs.h >>conftest.$ac_ext
36965 cat >>conftest.$ac_ext <<_ACEOF
36966 /* end confdefs.h. */
36967 /* System header to define __stub macros and hopefully few prototypes,
36968 which can conflict with char $ac_func (); below.
36969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36970 <limits.h> exists even on freestanding compilers. */
36971 #ifdef __STDC__
36972 # include <limits.h>
36973 #else
36974 # include <assert.h>
36975 #endif
36976 /* Override any gcc2 internal prototype to avoid an error. */
36977 #ifdef __cplusplus
36978 extern "C"
36980 #endif
36981 /* We use char because int might match the return type of a gcc2
36982 builtin and then its argument prototype would still apply. */
36983 char $ac_func ();
36984 /* The GNU C library defines this for functions which it implements
36985 to always fail with ENOSYS. Some functions are actually named
36986 something starting with __ and the normal name is an alias. */
36987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36988 choke me
36989 #else
36990 char (*f) () = $ac_func;
36991 #endif
36992 #ifdef __cplusplus
36994 #endif
36997 main ()
36999 return f != $ac_func;
37001 return 0;
37003 _ACEOF
37004 rm -f conftest.$ac_objext conftest$ac_exeext
37005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37006 (eval $ac_link) 2>&5
37007 ac_status=$?
37008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009 (exit $ac_status); } &&
37010 { ac_try='test -s conftest$ac_exeext'
37011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37012 (eval $ac_try) 2>&5
37013 ac_status=$?
37014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37015 (exit $ac_status); }; }; then
37016 eval "$as_ac_var=yes"
37017 else
37018 echo "$as_me: failed program was:" >&5
37019 sed 's/^/| /' conftest.$ac_ext >&5
37021 eval "$as_ac_var=no"
37023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37027 if test `eval echo '${'$as_ac_var'}'` = yes; then
37028 cat >>confdefs.h <<_ACEOF
37029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37030 _ACEOF
37033 done
37040 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
37041 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
37042 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
37043 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
37044 echo $ECHO_N "(cached) $ECHO_C" >&6
37045 else
37049 ac_ext=cc
37050 ac_cpp='$CXXCPP $CPPFLAGS'
37051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37055 cat >conftest.$ac_ext <<_ACEOF
37056 #line $LINENO "configure"
37057 /* confdefs.h. */
37058 _ACEOF
37059 cat confdefs.h >>conftest.$ac_ext
37060 cat >>conftest.$ac_ext <<_ACEOF
37061 /* end confdefs.h. */
37062 #include <math.h>
37064 main ()
37066 atan2l(0, 0);
37068 return 0;
37070 _ACEOF
37071 rm -f conftest.$ac_objext
37072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37073 (eval $ac_compile) 2>&5
37074 ac_status=$?
37075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076 (exit $ac_status); } &&
37077 { ac_try='test -s conftest.$ac_objext'
37078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37079 (eval $ac_try) 2>&5
37080 ac_status=$?
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); }; }; then
37083 glibcxx_cv_func_atan2l_use=yes
37084 else
37085 echo "$as_me: failed program was:" >&5
37086 sed 's/^/| /' conftest.$ac_ext >&5
37088 glibcxx_cv_func_atan2l_use=no
37090 rm -f conftest.$ac_objext conftest.$ac_ext
37091 ac_ext=c
37092 ac_cpp='$CPP $CPPFLAGS'
37093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37101 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
37102 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
37104 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37106 for ac_func in atan2l
37108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37109 echo "$as_me:$LINENO: checking for $ac_func" >&5
37110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37111 if eval "test \"\${$as_ac_var+set}\" = set"; then
37112 echo $ECHO_N "(cached) $ECHO_C" >&6
37113 else
37114 if test x$gcc_no_link = xyes; then
37115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37117 { (exit 1); exit 1; }; }
37119 cat >conftest.$ac_ext <<_ACEOF
37120 #line $LINENO "configure"
37121 /* confdefs.h. */
37122 _ACEOF
37123 cat confdefs.h >>conftest.$ac_ext
37124 cat >>conftest.$ac_ext <<_ACEOF
37125 /* end confdefs.h. */
37126 /* System header to define __stub macros and hopefully few prototypes,
37127 which can conflict with char $ac_func (); below.
37128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37129 <limits.h> exists even on freestanding compilers. */
37130 #ifdef __STDC__
37131 # include <limits.h>
37132 #else
37133 # include <assert.h>
37134 #endif
37135 /* Override any gcc2 internal prototype to avoid an error. */
37136 #ifdef __cplusplus
37137 extern "C"
37139 #endif
37140 /* We use char because int might match the return type of a gcc2
37141 builtin and then its argument prototype would still apply. */
37142 char $ac_func ();
37143 /* The GNU C library defines this for functions which it implements
37144 to always fail with ENOSYS. Some functions are actually named
37145 something starting with __ and the normal name is an alias. */
37146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37147 choke me
37148 #else
37149 char (*f) () = $ac_func;
37150 #endif
37151 #ifdef __cplusplus
37153 #endif
37156 main ()
37158 return f != $ac_func;
37160 return 0;
37162 _ACEOF
37163 rm -f conftest.$ac_objext conftest$ac_exeext
37164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37165 (eval $ac_link) 2>&5
37166 ac_status=$?
37167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); } &&
37169 { ac_try='test -s conftest$ac_exeext'
37170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37171 (eval $ac_try) 2>&5
37172 ac_status=$?
37173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174 (exit $ac_status); }; }; then
37175 eval "$as_ac_var=yes"
37176 else
37177 echo "$as_me: failed program was:" >&5
37178 sed 's/^/| /' conftest.$ac_ext >&5
37180 eval "$as_ac_var=no"
37182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37186 if test `eval echo '${'$as_ac_var'}'` = yes; then
37187 cat >>confdefs.h <<_ACEOF
37188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37189 _ACEOF
37192 done
37194 else
37196 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
37197 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
37198 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
37199 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
37200 echo $ECHO_N "(cached) $ECHO_C" >&6
37201 else
37205 ac_ext=cc
37206 ac_cpp='$CXXCPP $CPPFLAGS'
37207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37211 cat >conftest.$ac_ext <<_ACEOF
37212 #line $LINENO "configure"
37213 /* confdefs.h. */
37214 _ACEOF
37215 cat confdefs.h >>conftest.$ac_ext
37216 cat >>conftest.$ac_ext <<_ACEOF
37217 /* end confdefs.h. */
37218 #include <math.h>
37220 main ()
37222 _atan2l(0, 0);
37224 return 0;
37226 _ACEOF
37227 rm -f conftest.$ac_objext
37228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37229 (eval $ac_compile) 2>&5
37230 ac_status=$?
37231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232 (exit $ac_status); } &&
37233 { ac_try='test -s conftest.$ac_objext'
37234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37235 (eval $ac_try) 2>&5
37236 ac_status=$?
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; }; then
37239 glibcxx_cv_func__atan2l_use=yes
37240 else
37241 echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37244 glibcxx_cv_func__atan2l_use=no
37246 rm -f conftest.$ac_objext conftest.$ac_ext
37247 ac_ext=c
37248 ac_cpp='$CPP $CPPFLAGS'
37249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37257 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
37258 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
37260 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
37262 for ac_func in _atan2l
37264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37265 echo "$as_me:$LINENO: checking for $ac_func" >&5
37266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37267 if eval "test \"\${$as_ac_var+set}\" = set"; then
37268 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 else
37270 if test x$gcc_no_link = xyes; then
37271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37273 { (exit 1); exit 1; }; }
37275 cat >conftest.$ac_ext <<_ACEOF
37276 #line $LINENO "configure"
37277 /* confdefs.h. */
37278 _ACEOF
37279 cat confdefs.h >>conftest.$ac_ext
37280 cat >>conftest.$ac_ext <<_ACEOF
37281 /* end confdefs.h. */
37282 /* System header to define __stub macros and hopefully few prototypes,
37283 which can conflict with char $ac_func (); below.
37284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37285 <limits.h> exists even on freestanding compilers. */
37286 #ifdef __STDC__
37287 # include <limits.h>
37288 #else
37289 # include <assert.h>
37290 #endif
37291 /* Override any gcc2 internal prototype to avoid an error. */
37292 #ifdef __cplusplus
37293 extern "C"
37295 #endif
37296 /* We use char because int might match the return type of a gcc2
37297 builtin and then its argument prototype would still apply. */
37298 char $ac_func ();
37299 /* The GNU C library defines this for functions which it implements
37300 to always fail with ENOSYS. Some functions are actually named
37301 something starting with __ and the normal name is an alias. */
37302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37303 choke me
37304 #else
37305 char (*f) () = $ac_func;
37306 #endif
37307 #ifdef __cplusplus
37309 #endif
37312 main ()
37314 return f != $ac_func;
37316 return 0;
37318 _ACEOF
37319 rm -f conftest.$ac_objext conftest$ac_exeext
37320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37321 (eval $ac_link) 2>&5
37322 ac_status=$?
37323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324 (exit $ac_status); } &&
37325 { ac_try='test -s conftest$ac_exeext'
37326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327 (eval $ac_try) 2>&5
37328 ac_status=$?
37329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330 (exit $ac_status); }; }; then
37331 eval "$as_ac_var=yes"
37332 else
37333 echo "$as_me: failed program was:" >&5
37334 sed 's/^/| /' conftest.$ac_ext >&5
37336 eval "$as_ac_var=no"
37338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37342 if test `eval echo '${'$as_ac_var'}'` = yes; then
37343 cat >>confdefs.h <<_ACEOF
37344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37345 _ACEOF
37348 done
37355 echo "$as_me:$LINENO: checking for expl declaration" >&5
37356 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
37357 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37358 if test "${glibcxx_cv_func_expl_use+set}" = set; then
37359 echo $ECHO_N "(cached) $ECHO_C" >&6
37360 else
37364 ac_ext=cc
37365 ac_cpp='$CXXCPP $CPPFLAGS'
37366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37370 cat >conftest.$ac_ext <<_ACEOF
37371 #line $LINENO "configure"
37372 /* confdefs.h. */
37373 _ACEOF
37374 cat confdefs.h >>conftest.$ac_ext
37375 cat >>conftest.$ac_ext <<_ACEOF
37376 /* end confdefs.h. */
37377 #include <math.h>
37378 #ifdef HAVE_IEEEFP_H
37379 #include <ieeefp.h>
37380 #endif
37383 main ()
37385 expl(0);
37387 return 0;
37389 _ACEOF
37390 rm -f conftest.$ac_objext
37391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37392 (eval $ac_compile) 2>&5
37393 ac_status=$?
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); } &&
37396 { ac_try='test -s conftest.$ac_objext'
37397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37398 (eval $ac_try) 2>&5
37399 ac_status=$?
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); }; }; then
37402 glibcxx_cv_func_expl_use=yes
37403 else
37404 echo "$as_me: failed program was:" >&5
37405 sed 's/^/| /' conftest.$ac_ext >&5
37407 glibcxx_cv_func_expl_use=no
37409 rm -f conftest.$ac_objext conftest.$ac_ext
37410 ac_ext=c
37411 ac_cpp='$CPP $CPPFLAGS'
37412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37420 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
37421 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
37423 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37425 for ac_func in expl
37427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37428 echo "$as_me:$LINENO: checking for $ac_func" >&5
37429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37430 if eval "test \"\${$as_ac_var+set}\" = set"; then
37431 echo $ECHO_N "(cached) $ECHO_C" >&6
37432 else
37433 if test x$gcc_no_link = xyes; then
37434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37436 { (exit 1); exit 1; }; }
37438 cat >conftest.$ac_ext <<_ACEOF
37439 #line $LINENO "configure"
37440 /* confdefs.h. */
37441 _ACEOF
37442 cat confdefs.h >>conftest.$ac_ext
37443 cat >>conftest.$ac_ext <<_ACEOF
37444 /* end confdefs.h. */
37445 /* System header to define __stub macros and hopefully few prototypes,
37446 which can conflict with char $ac_func (); below.
37447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37448 <limits.h> exists even on freestanding compilers. */
37449 #ifdef __STDC__
37450 # include <limits.h>
37451 #else
37452 # include <assert.h>
37453 #endif
37454 /* Override any gcc2 internal prototype to avoid an error. */
37455 #ifdef __cplusplus
37456 extern "C"
37458 #endif
37459 /* We use char because int might match the return type of a gcc2
37460 builtin and then its argument prototype would still apply. */
37461 char $ac_func ();
37462 /* The GNU C library defines this for functions which it implements
37463 to always fail with ENOSYS. Some functions are actually named
37464 something starting with __ and the normal name is an alias. */
37465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37466 choke me
37467 #else
37468 char (*f) () = $ac_func;
37469 #endif
37470 #ifdef __cplusplus
37472 #endif
37475 main ()
37477 return f != $ac_func;
37479 return 0;
37481 _ACEOF
37482 rm -f conftest.$ac_objext conftest$ac_exeext
37483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37484 (eval $ac_link) 2>&5
37485 ac_status=$?
37486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487 (exit $ac_status); } &&
37488 { ac_try='test -s conftest$ac_exeext'
37489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490 (eval $ac_try) 2>&5
37491 ac_status=$?
37492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493 (exit $ac_status); }; }; then
37494 eval "$as_ac_var=yes"
37495 else
37496 echo "$as_me: failed program was:" >&5
37497 sed 's/^/| /' conftest.$ac_ext >&5
37499 eval "$as_ac_var=no"
37501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37505 if test `eval echo '${'$as_ac_var'}'` = yes; then
37506 cat >>confdefs.h <<_ACEOF
37507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37508 _ACEOF
37511 done
37513 else
37515 echo "$as_me:$LINENO: checking for _expl declaration" >&5
37516 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
37517 if test x${glibcxx_cv_func__expl_use+set} != xset; then
37518 if test "${glibcxx_cv_func__expl_use+set}" = set; then
37519 echo $ECHO_N "(cached) $ECHO_C" >&6
37520 else
37524 ac_ext=cc
37525 ac_cpp='$CXXCPP $CPPFLAGS'
37526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37530 cat >conftest.$ac_ext <<_ACEOF
37531 #line $LINENO "configure"
37532 /* confdefs.h. */
37533 _ACEOF
37534 cat confdefs.h >>conftest.$ac_ext
37535 cat >>conftest.$ac_ext <<_ACEOF
37536 /* end confdefs.h. */
37537 #include <math.h>
37538 #ifdef HAVE_IEEEFP_H
37539 #include <ieeefp.h>
37540 #endif
37543 main ()
37545 _expl(0);
37547 return 0;
37549 _ACEOF
37550 rm -f conftest.$ac_objext
37551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37552 (eval $ac_compile) 2>&5
37553 ac_status=$?
37554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555 (exit $ac_status); } &&
37556 { ac_try='test -s conftest.$ac_objext'
37557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558 (eval $ac_try) 2>&5
37559 ac_status=$?
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); }; }; then
37562 glibcxx_cv_func__expl_use=yes
37563 else
37564 echo "$as_me: failed program was:" >&5
37565 sed 's/^/| /' conftest.$ac_ext >&5
37567 glibcxx_cv_func__expl_use=no
37569 rm -f conftest.$ac_objext conftest.$ac_ext
37570 ac_ext=c
37571 ac_cpp='$CPP $CPPFLAGS'
37572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37580 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
37581 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
37583 if test x$glibcxx_cv_func__expl_use = x"yes"; then
37585 for ac_func in _expl
37587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37588 echo "$as_me:$LINENO: checking for $ac_func" >&5
37589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37590 if eval "test \"\${$as_ac_var+set}\" = set"; then
37591 echo $ECHO_N "(cached) $ECHO_C" >&6
37592 else
37593 if test x$gcc_no_link = xyes; then
37594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37596 { (exit 1); exit 1; }; }
37598 cat >conftest.$ac_ext <<_ACEOF
37599 #line $LINENO "configure"
37600 /* confdefs.h. */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h. */
37605 /* System header to define __stub macros and hopefully few prototypes,
37606 which can conflict with char $ac_func (); below.
37607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37608 <limits.h> exists even on freestanding compilers. */
37609 #ifdef __STDC__
37610 # include <limits.h>
37611 #else
37612 # include <assert.h>
37613 #endif
37614 /* Override any gcc2 internal prototype to avoid an error. */
37615 #ifdef __cplusplus
37616 extern "C"
37618 #endif
37619 /* We use char because int might match the return type of a gcc2
37620 builtin and then its argument prototype would still apply. */
37621 char $ac_func ();
37622 /* The GNU C library defines this for functions which it implements
37623 to always fail with ENOSYS. Some functions are actually named
37624 something starting with __ and the normal name is an alias. */
37625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37626 choke me
37627 #else
37628 char (*f) () = $ac_func;
37629 #endif
37630 #ifdef __cplusplus
37632 #endif
37635 main ()
37637 return f != $ac_func;
37639 return 0;
37641 _ACEOF
37642 rm -f conftest.$ac_objext conftest$ac_exeext
37643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37644 (eval $ac_link) 2>&5
37645 ac_status=$?
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); } &&
37648 { ac_try='test -s conftest$ac_exeext'
37649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37650 (eval $ac_try) 2>&5
37651 ac_status=$?
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); }; }; then
37654 eval "$as_ac_var=yes"
37655 else
37656 echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37659 eval "$as_ac_var=no"
37661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37665 if test `eval echo '${'$as_ac_var'}'` = yes; then
37666 cat >>confdefs.h <<_ACEOF
37667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37668 _ACEOF
37671 done
37678 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
37679 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
37680 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37681 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37683 else
37687 ac_ext=cc
37688 ac_cpp='$CXXCPP $CPPFLAGS'
37689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37693 cat >conftest.$ac_ext <<_ACEOF
37694 #line $LINENO "configure"
37695 /* confdefs.h. */
37696 _ACEOF
37697 cat confdefs.h >>conftest.$ac_ext
37698 cat >>conftest.$ac_ext <<_ACEOF
37699 /* end confdefs.h. */
37700 #include <math.h>
37701 #ifdef HAVE_IEEEFP_H
37702 #include <ieeefp.h>
37703 #endif
37706 main ()
37708 fabsl(0);
37710 return 0;
37712 _ACEOF
37713 rm -f conftest.$ac_objext
37714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37715 (eval $ac_compile) 2>&5
37716 ac_status=$?
37717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718 (exit $ac_status); } &&
37719 { ac_try='test -s conftest.$ac_objext'
37720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37721 (eval $ac_try) 2>&5
37722 ac_status=$?
37723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); }; }; then
37725 glibcxx_cv_func_fabsl_use=yes
37726 else
37727 echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37730 glibcxx_cv_func_fabsl_use=no
37732 rm -f conftest.$ac_objext conftest.$ac_ext
37733 ac_ext=c
37734 ac_cpp='$CPP $CPPFLAGS'
37735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37743 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
37744 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
37746 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
37748 for ac_func in fabsl
37750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37751 echo "$as_me:$LINENO: checking for $ac_func" >&5
37752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37753 if eval "test \"\${$as_ac_var+set}\" = set"; then
37754 echo $ECHO_N "(cached) $ECHO_C" >&6
37755 else
37756 if test x$gcc_no_link = xyes; then
37757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37759 { (exit 1); exit 1; }; }
37761 cat >conftest.$ac_ext <<_ACEOF
37762 #line $LINENO "configure"
37763 /* confdefs.h. */
37764 _ACEOF
37765 cat confdefs.h >>conftest.$ac_ext
37766 cat >>conftest.$ac_ext <<_ACEOF
37767 /* end confdefs.h. */
37768 /* System header to define __stub macros and hopefully few prototypes,
37769 which can conflict with char $ac_func (); below.
37770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37771 <limits.h> exists even on freestanding compilers. */
37772 #ifdef __STDC__
37773 # include <limits.h>
37774 #else
37775 # include <assert.h>
37776 #endif
37777 /* Override any gcc2 internal prototype to avoid an error. */
37778 #ifdef __cplusplus
37779 extern "C"
37781 #endif
37782 /* We use char because int might match the return type of a gcc2
37783 builtin and then its argument prototype would still apply. */
37784 char $ac_func ();
37785 /* The GNU C library defines this for functions which it implements
37786 to always fail with ENOSYS. Some functions are actually named
37787 something starting with __ and the normal name is an alias. */
37788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37789 choke me
37790 #else
37791 char (*f) () = $ac_func;
37792 #endif
37793 #ifdef __cplusplus
37795 #endif
37798 main ()
37800 return f != $ac_func;
37802 return 0;
37804 _ACEOF
37805 rm -f conftest.$ac_objext conftest$ac_exeext
37806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37807 (eval $ac_link) 2>&5
37808 ac_status=$?
37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810 (exit $ac_status); } &&
37811 { ac_try='test -s conftest$ac_exeext'
37812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37813 (eval $ac_try) 2>&5
37814 ac_status=$?
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); }; }; then
37817 eval "$as_ac_var=yes"
37818 else
37819 echo "$as_me: failed program was:" >&5
37820 sed 's/^/| /' conftest.$ac_ext >&5
37822 eval "$as_ac_var=no"
37824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37828 if test `eval echo '${'$as_ac_var'}'` = yes; then
37829 cat >>confdefs.h <<_ACEOF
37830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37831 _ACEOF
37834 done
37836 else
37838 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
37839 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
37840 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
37841 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
37842 echo $ECHO_N "(cached) $ECHO_C" >&6
37843 else
37847 ac_ext=cc
37848 ac_cpp='$CXXCPP $CPPFLAGS'
37849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37853 cat >conftest.$ac_ext <<_ACEOF
37854 #line $LINENO "configure"
37855 /* confdefs.h. */
37856 _ACEOF
37857 cat confdefs.h >>conftest.$ac_ext
37858 cat >>conftest.$ac_ext <<_ACEOF
37859 /* end confdefs.h. */
37860 #include <math.h>
37861 #ifdef HAVE_IEEEFP_H
37862 #include <ieeefp.h>
37863 #endif
37866 main ()
37868 _fabsl(0);
37870 return 0;
37872 _ACEOF
37873 rm -f conftest.$ac_objext
37874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37875 (eval $ac_compile) 2>&5
37876 ac_status=$?
37877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878 (exit $ac_status); } &&
37879 { ac_try='test -s conftest.$ac_objext'
37880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37881 (eval $ac_try) 2>&5
37882 ac_status=$?
37883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884 (exit $ac_status); }; }; then
37885 glibcxx_cv_func__fabsl_use=yes
37886 else
37887 echo "$as_me: failed program was:" >&5
37888 sed 's/^/| /' conftest.$ac_ext >&5
37890 glibcxx_cv_func__fabsl_use=no
37892 rm -f conftest.$ac_objext conftest.$ac_ext
37893 ac_ext=c
37894 ac_cpp='$CPP $CPPFLAGS'
37895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37903 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
37904 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
37906 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
37908 for ac_func in _fabsl
37910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37911 echo "$as_me:$LINENO: checking for $ac_func" >&5
37912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37913 if eval "test \"\${$as_ac_var+set}\" = set"; then
37914 echo $ECHO_N "(cached) $ECHO_C" >&6
37915 else
37916 if test x$gcc_no_link = xyes; then
37917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37919 { (exit 1); exit 1; }; }
37921 cat >conftest.$ac_ext <<_ACEOF
37922 #line $LINENO "configure"
37923 /* confdefs.h. */
37924 _ACEOF
37925 cat confdefs.h >>conftest.$ac_ext
37926 cat >>conftest.$ac_ext <<_ACEOF
37927 /* end confdefs.h. */
37928 /* System header to define __stub macros and hopefully few prototypes,
37929 which can conflict with char $ac_func (); below.
37930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37931 <limits.h> exists even on freestanding compilers. */
37932 #ifdef __STDC__
37933 # include <limits.h>
37934 #else
37935 # include <assert.h>
37936 #endif
37937 /* Override any gcc2 internal prototype to avoid an error. */
37938 #ifdef __cplusplus
37939 extern "C"
37941 #endif
37942 /* We use char because int might match the return type of a gcc2
37943 builtin and then its argument prototype would still apply. */
37944 char $ac_func ();
37945 /* The GNU C library defines this for functions which it implements
37946 to always fail with ENOSYS. Some functions are actually named
37947 something starting with __ and the normal name is an alias. */
37948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37949 choke me
37950 #else
37951 char (*f) () = $ac_func;
37952 #endif
37953 #ifdef __cplusplus
37955 #endif
37958 main ()
37960 return f != $ac_func;
37962 return 0;
37964 _ACEOF
37965 rm -f conftest.$ac_objext conftest$ac_exeext
37966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37967 (eval $ac_link) 2>&5
37968 ac_status=$?
37969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); } &&
37971 { ac_try='test -s conftest$ac_exeext'
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37974 ac_status=$?
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; }; then
37977 eval "$as_ac_var=yes"
37978 else
37979 echo "$as_me: failed program was:" >&5
37980 sed 's/^/| /' conftest.$ac_ext >&5
37982 eval "$as_ac_var=no"
37984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37988 if test `eval echo '${'$as_ac_var'}'` = yes; then
37989 cat >>confdefs.h <<_ACEOF
37990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37991 _ACEOF
37994 done
38001 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
38002 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
38003 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
38004 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
38005 echo $ECHO_N "(cached) $ECHO_C" >&6
38006 else
38010 ac_ext=cc
38011 ac_cpp='$CXXCPP $CPPFLAGS'
38012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38016 cat >conftest.$ac_ext <<_ACEOF
38017 #line $LINENO "configure"
38018 /* confdefs.h. */
38019 _ACEOF
38020 cat confdefs.h >>conftest.$ac_ext
38021 cat >>conftest.$ac_ext <<_ACEOF
38022 /* end confdefs.h. */
38023 #include <math.h>
38025 main ()
38027 fmodl(0, 0);
38029 return 0;
38031 _ACEOF
38032 rm -f conftest.$ac_objext
38033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38034 (eval $ac_compile) 2>&5
38035 ac_status=$?
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); } &&
38038 { ac_try='test -s conftest.$ac_objext'
38039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040 (eval $ac_try) 2>&5
38041 ac_status=$?
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); }; }; then
38044 glibcxx_cv_func_fmodl_use=yes
38045 else
38046 echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38049 glibcxx_cv_func_fmodl_use=no
38051 rm -f conftest.$ac_objext conftest.$ac_ext
38052 ac_ext=c
38053 ac_cpp='$CPP $CPPFLAGS'
38054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38062 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
38063 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
38065 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
38067 for ac_func in fmodl
38069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38070 echo "$as_me:$LINENO: checking for $ac_func" >&5
38071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38072 if eval "test \"\${$as_ac_var+set}\" = set"; then
38073 echo $ECHO_N "(cached) $ECHO_C" >&6
38074 else
38075 if test x$gcc_no_link = xyes; then
38076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38078 { (exit 1); exit 1; }; }
38080 cat >conftest.$ac_ext <<_ACEOF
38081 #line $LINENO "configure"
38082 /* confdefs.h. */
38083 _ACEOF
38084 cat confdefs.h >>conftest.$ac_ext
38085 cat >>conftest.$ac_ext <<_ACEOF
38086 /* end confdefs.h. */
38087 /* System header to define __stub macros and hopefully few prototypes,
38088 which can conflict with char $ac_func (); below.
38089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38090 <limits.h> exists even on freestanding compilers. */
38091 #ifdef __STDC__
38092 # include <limits.h>
38093 #else
38094 # include <assert.h>
38095 #endif
38096 /* Override any gcc2 internal prototype to avoid an error. */
38097 #ifdef __cplusplus
38098 extern "C"
38100 #endif
38101 /* We use char because int might match the return type of a gcc2
38102 builtin and then its argument prototype would still apply. */
38103 char $ac_func ();
38104 /* The GNU C library defines this for functions which it implements
38105 to always fail with ENOSYS. Some functions are actually named
38106 something starting with __ and the normal name is an alias. */
38107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38108 choke me
38109 #else
38110 char (*f) () = $ac_func;
38111 #endif
38112 #ifdef __cplusplus
38114 #endif
38117 main ()
38119 return f != $ac_func;
38121 return 0;
38123 _ACEOF
38124 rm -f conftest.$ac_objext conftest$ac_exeext
38125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38126 (eval $ac_link) 2>&5
38127 ac_status=$?
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); } &&
38130 { ac_try='test -s conftest$ac_exeext'
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38133 ac_status=$?
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; }; then
38136 eval "$as_ac_var=yes"
38137 else
38138 echo "$as_me: failed program was:" >&5
38139 sed 's/^/| /' conftest.$ac_ext >&5
38141 eval "$as_ac_var=no"
38143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38147 if test `eval echo '${'$as_ac_var'}'` = yes; then
38148 cat >>confdefs.h <<_ACEOF
38149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38150 _ACEOF
38153 done
38155 else
38157 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
38158 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
38159 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
38160 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
38161 echo $ECHO_N "(cached) $ECHO_C" >&6
38162 else
38166 ac_ext=cc
38167 ac_cpp='$CXXCPP $CPPFLAGS'
38168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38172 cat >conftest.$ac_ext <<_ACEOF
38173 #line $LINENO "configure"
38174 /* confdefs.h. */
38175 _ACEOF
38176 cat confdefs.h >>conftest.$ac_ext
38177 cat >>conftest.$ac_ext <<_ACEOF
38178 /* end confdefs.h. */
38179 #include <math.h>
38181 main ()
38183 _fmodl(0, 0);
38185 return 0;
38187 _ACEOF
38188 rm -f conftest.$ac_objext
38189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38190 (eval $ac_compile) 2>&5
38191 ac_status=$?
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); } &&
38194 { ac_try='test -s conftest.$ac_objext'
38195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38196 (eval $ac_try) 2>&5
38197 ac_status=$?
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); }; }; then
38200 glibcxx_cv_func__fmodl_use=yes
38201 else
38202 echo "$as_me: failed program was:" >&5
38203 sed 's/^/| /' conftest.$ac_ext >&5
38205 glibcxx_cv_func__fmodl_use=no
38207 rm -f conftest.$ac_objext conftest.$ac_ext
38208 ac_ext=c
38209 ac_cpp='$CPP $CPPFLAGS'
38210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38218 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
38219 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
38221 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
38223 for ac_func in _fmodl
38225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38226 echo "$as_me:$LINENO: checking for $ac_func" >&5
38227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38228 if eval "test \"\${$as_ac_var+set}\" = set"; then
38229 echo $ECHO_N "(cached) $ECHO_C" >&6
38230 else
38231 if test x$gcc_no_link = xyes; then
38232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38234 { (exit 1); exit 1; }; }
38236 cat >conftest.$ac_ext <<_ACEOF
38237 #line $LINENO "configure"
38238 /* confdefs.h. */
38239 _ACEOF
38240 cat confdefs.h >>conftest.$ac_ext
38241 cat >>conftest.$ac_ext <<_ACEOF
38242 /* end confdefs.h. */
38243 /* System header to define __stub macros and hopefully few prototypes,
38244 which can conflict with char $ac_func (); below.
38245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38246 <limits.h> exists even on freestanding compilers. */
38247 #ifdef __STDC__
38248 # include <limits.h>
38249 #else
38250 # include <assert.h>
38251 #endif
38252 /* Override any gcc2 internal prototype to avoid an error. */
38253 #ifdef __cplusplus
38254 extern "C"
38256 #endif
38257 /* We use char because int might match the return type of a gcc2
38258 builtin and then its argument prototype would still apply. */
38259 char $ac_func ();
38260 /* The GNU C library defines this for functions which it implements
38261 to always fail with ENOSYS. Some functions are actually named
38262 something starting with __ and the normal name is an alias. */
38263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38264 choke me
38265 #else
38266 char (*f) () = $ac_func;
38267 #endif
38268 #ifdef __cplusplus
38270 #endif
38273 main ()
38275 return f != $ac_func;
38277 return 0;
38279 _ACEOF
38280 rm -f conftest.$ac_objext conftest$ac_exeext
38281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38282 (eval $ac_link) 2>&5
38283 ac_status=$?
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); } &&
38286 { ac_try='test -s conftest$ac_exeext'
38287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288 (eval $ac_try) 2>&5
38289 ac_status=$?
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); }; }; then
38292 eval "$as_ac_var=yes"
38293 else
38294 echo "$as_me: failed program was:" >&5
38295 sed 's/^/| /' conftest.$ac_ext >&5
38297 eval "$as_ac_var=no"
38299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38303 if test `eval echo '${'$as_ac_var'}'` = yes; then
38304 cat >>confdefs.h <<_ACEOF
38305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38306 _ACEOF
38309 done
38316 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
38317 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
38318 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
38319 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
38320 echo $ECHO_N "(cached) $ECHO_C" >&6
38321 else
38325 ac_ext=cc
38326 ac_cpp='$CXXCPP $CPPFLAGS'
38327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38331 cat >conftest.$ac_ext <<_ACEOF
38332 #line $LINENO "configure"
38333 /* confdefs.h. */
38334 _ACEOF
38335 cat confdefs.h >>conftest.$ac_ext
38336 cat >>conftest.$ac_ext <<_ACEOF
38337 /* end confdefs.h. */
38338 #include <math.h>
38340 main ()
38342 frexpl(0, 0);
38344 return 0;
38346 _ACEOF
38347 rm -f conftest.$ac_objext
38348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38349 (eval $ac_compile) 2>&5
38350 ac_status=$?
38351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352 (exit $ac_status); } &&
38353 { ac_try='test -s conftest.$ac_objext'
38354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38355 (eval $ac_try) 2>&5
38356 ac_status=$?
38357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38358 (exit $ac_status); }; }; then
38359 glibcxx_cv_func_frexpl_use=yes
38360 else
38361 echo "$as_me: failed program was:" >&5
38362 sed 's/^/| /' conftest.$ac_ext >&5
38364 glibcxx_cv_func_frexpl_use=no
38366 rm -f conftest.$ac_objext conftest.$ac_ext
38367 ac_ext=c
38368 ac_cpp='$CPP $CPPFLAGS'
38369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38377 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
38378 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
38380 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
38382 for ac_func in frexpl
38384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38385 echo "$as_me:$LINENO: checking for $ac_func" >&5
38386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38387 if eval "test \"\${$as_ac_var+set}\" = set"; then
38388 echo $ECHO_N "(cached) $ECHO_C" >&6
38389 else
38390 if test x$gcc_no_link = xyes; then
38391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38393 { (exit 1); exit 1; }; }
38395 cat >conftest.$ac_ext <<_ACEOF
38396 #line $LINENO "configure"
38397 /* confdefs.h. */
38398 _ACEOF
38399 cat confdefs.h >>conftest.$ac_ext
38400 cat >>conftest.$ac_ext <<_ACEOF
38401 /* end confdefs.h. */
38402 /* System header to define __stub macros and hopefully few prototypes,
38403 which can conflict with char $ac_func (); below.
38404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38405 <limits.h> exists even on freestanding compilers. */
38406 #ifdef __STDC__
38407 # include <limits.h>
38408 #else
38409 # include <assert.h>
38410 #endif
38411 /* Override any gcc2 internal prototype to avoid an error. */
38412 #ifdef __cplusplus
38413 extern "C"
38415 #endif
38416 /* We use char because int might match the return type of a gcc2
38417 builtin and then its argument prototype would still apply. */
38418 char $ac_func ();
38419 /* The GNU C library defines this for functions which it implements
38420 to always fail with ENOSYS. Some functions are actually named
38421 something starting with __ and the normal name is an alias. */
38422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38423 choke me
38424 #else
38425 char (*f) () = $ac_func;
38426 #endif
38427 #ifdef __cplusplus
38429 #endif
38432 main ()
38434 return f != $ac_func;
38436 return 0;
38438 _ACEOF
38439 rm -f conftest.$ac_objext conftest$ac_exeext
38440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38441 (eval $ac_link) 2>&5
38442 ac_status=$?
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); } &&
38445 { ac_try='test -s conftest$ac_exeext'
38446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38447 (eval $ac_try) 2>&5
38448 ac_status=$?
38449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450 (exit $ac_status); }; }; then
38451 eval "$as_ac_var=yes"
38452 else
38453 echo "$as_me: failed program was:" >&5
38454 sed 's/^/| /' conftest.$ac_ext >&5
38456 eval "$as_ac_var=no"
38458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38462 if test `eval echo '${'$as_ac_var'}'` = yes; then
38463 cat >>confdefs.h <<_ACEOF
38464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38465 _ACEOF
38468 done
38470 else
38472 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
38473 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
38474 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
38475 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
38476 echo $ECHO_N "(cached) $ECHO_C" >&6
38477 else
38481 ac_ext=cc
38482 ac_cpp='$CXXCPP $CPPFLAGS'
38483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38487 cat >conftest.$ac_ext <<_ACEOF
38488 #line $LINENO "configure"
38489 /* confdefs.h. */
38490 _ACEOF
38491 cat confdefs.h >>conftest.$ac_ext
38492 cat >>conftest.$ac_ext <<_ACEOF
38493 /* end confdefs.h. */
38494 #include <math.h>
38496 main ()
38498 _frexpl(0, 0);
38500 return 0;
38502 _ACEOF
38503 rm -f conftest.$ac_objext
38504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38505 (eval $ac_compile) 2>&5
38506 ac_status=$?
38507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508 (exit $ac_status); } &&
38509 { ac_try='test -s conftest.$ac_objext'
38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511 (eval $ac_try) 2>&5
38512 ac_status=$?
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); }; }; then
38515 glibcxx_cv_func__frexpl_use=yes
38516 else
38517 echo "$as_me: failed program was:" >&5
38518 sed 's/^/| /' conftest.$ac_ext >&5
38520 glibcxx_cv_func__frexpl_use=no
38522 rm -f conftest.$ac_objext conftest.$ac_ext
38523 ac_ext=c
38524 ac_cpp='$CPP $CPPFLAGS'
38525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38533 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
38534 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
38536 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
38538 for ac_func in _frexpl
38540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38541 echo "$as_me:$LINENO: checking for $ac_func" >&5
38542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38543 if eval "test \"\${$as_ac_var+set}\" = set"; then
38544 echo $ECHO_N "(cached) $ECHO_C" >&6
38545 else
38546 if test x$gcc_no_link = xyes; then
38547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38549 { (exit 1); exit 1; }; }
38551 cat >conftest.$ac_ext <<_ACEOF
38552 #line $LINENO "configure"
38553 /* confdefs.h. */
38554 _ACEOF
38555 cat confdefs.h >>conftest.$ac_ext
38556 cat >>conftest.$ac_ext <<_ACEOF
38557 /* end confdefs.h. */
38558 /* System header to define __stub macros and hopefully few prototypes,
38559 which can conflict with char $ac_func (); below.
38560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38561 <limits.h> exists even on freestanding compilers. */
38562 #ifdef __STDC__
38563 # include <limits.h>
38564 #else
38565 # include <assert.h>
38566 #endif
38567 /* Override any gcc2 internal prototype to avoid an error. */
38568 #ifdef __cplusplus
38569 extern "C"
38571 #endif
38572 /* We use char because int might match the return type of a gcc2
38573 builtin and then its argument prototype would still apply. */
38574 char $ac_func ();
38575 /* The GNU C library defines this for functions which it implements
38576 to always fail with ENOSYS. Some functions are actually named
38577 something starting with __ and the normal name is an alias. */
38578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38579 choke me
38580 #else
38581 char (*f) () = $ac_func;
38582 #endif
38583 #ifdef __cplusplus
38585 #endif
38588 main ()
38590 return f != $ac_func;
38592 return 0;
38594 _ACEOF
38595 rm -f conftest.$ac_objext conftest$ac_exeext
38596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38597 (eval $ac_link) 2>&5
38598 ac_status=$?
38599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600 (exit $ac_status); } &&
38601 { ac_try='test -s conftest$ac_exeext'
38602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38603 (eval $ac_try) 2>&5
38604 ac_status=$?
38605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606 (exit $ac_status); }; }; then
38607 eval "$as_ac_var=yes"
38608 else
38609 echo "$as_me: failed program was:" >&5
38610 sed 's/^/| /' conftest.$ac_ext >&5
38612 eval "$as_ac_var=no"
38614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38618 if test `eval echo '${'$as_ac_var'}'` = yes; then
38619 cat >>confdefs.h <<_ACEOF
38620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38621 _ACEOF
38624 done
38631 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
38632 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
38633 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
38634 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
38635 echo $ECHO_N "(cached) $ECHO_C" >&6
38636 else
38640 ac_ext=cc
38641 ac_cpp='$CXXCPP $CPPFLAGS'
38642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38646 cat >conftest.$ac_ext <<_ACEOF
38647 #line $LINENO "configure"
38648 /* confdefs.h. */
38649 _ACEOF
38650 cat confdefs.h >>conftest.$ac_ext
38651 cat >>conftest.$ac_ext <<_ACEOF
38652 /* end confdefs.h. */
38653 #include <math.h>
38655 main ()
38657 hypotl(0, 0);
38659 return 0;
38661 _ACEOF
38662 rm -f conftest.$ac_objext
38663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38664 (eval $ac_compile) 2>&5
38665 ac_status=$?
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); } &&
38668 { ac_try='test -s conftest.$ac_objext'
38669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670 (eval $ac_try) 2>&5
38671 ac_status=$?
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); }; }; then
38674 glibcxx_cv_func_hypotl_use=yes
38675 else
38676 echo "$as_me: failed program was:" >&5
38677 sed 's/^/| /' conftest.$ac_ext >&5
38679 glibcxx_cv_func_hypotl_use=no
38681 rm -f conftest.$ac_objext conftest.$ac_ext
38682 ac_ext=c
38683 ac_cpp='$CPP $CPPFLAGS'
38684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38692 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
38693 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
38695 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
38697 for ac_func in hypotl
38699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38700 echo "$as_me:$LINENO: checking for $ac_func" >&5
38701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38702 if eval "test \"\${$as_ac_var+set}\" = set"; then
38703 echo $ECHO_N "(cached) $ECHO_C" >&6
38704 else
38705 if test x$gcc_no_link = xyes; then
38706 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38708 { (exit 1); exit 1; }; }
38710 cat >conftest.$ac_ext <<_ACEOF
38711 #line $LINENO "configure"
38712 /* confdefs.h. */
38713 _ACEOF
38714 cat confdefs.h >>conftest.$ac_ext
38715 cat >>conftest.$ac_ext <<_ACEOF
38716 /* end confdefs.h. */
38717 /* System header to define __stub macros and hopefully few prototypes,
38718 which can conflict with char $ac_func (); below.
38719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38720 <limits.h> exists even on freestanding compilers. */
38721 #ifdef __STDC__
38722 # include <limits.h>
38723 #else
38724 # include <assert.h>
38725 #endif
38726 /* Override any gcc2 internal prototype to avoid an error. */
38727 #ifdef __cplusplus
38728 extern "C"
38730 #endif
38731 /* We use char because int might match the return type of a gcc2
38732 builtin and then its argument prototype would still apply. */
38733 char $ac_func ();
38734 /* The GNU C library defines this for functions which it implements
38735 to always fail with ENOSYS. Some functions are actually named
38736 something starting with __ and the normal name is an alias. */
38737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38738 choke me
38739 #else
38740 char (*f) () = $ac_func;
38741 #endif
38742 #ifdef __cplusplus
38744 #endif
38747 main ()
38749 return f != $ac_func;
38751 return 0;
38753 _ACEOF
38754 rm -f conftest.$ac_objext conftest$ac_exeext
38755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38756 (eval $ac_link) 2>&5
38757 ac_status=$?
38758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759 (exit $ac_status); } &&
38760 { ac_try='test -s conftest$ac_exeext'
38761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38762 (eval $ac_try) 2>&5
38763 ac_status=$?
38764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765 (exit $ac_status); }; }; then
38766 eval "$as_ac_var=yes"
38767 else
38768 echo "$as_me: failed program was:" >&5
38769 sed 's/^/| /' conftest.$ac_ext >&5
38771 eval "$as_ac_var=no"
38773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38777 if test `eval echo '${'$as_ac_var'}'` = yes; then
38778 cat >>confdefs.h <<_ACEOF
38779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38780 _ACEOF
38783 done
38785 else
38787 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
38788 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
38789 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
38790 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
38791 echo $ECHO_N "(cached) $ECHO_C" >&6
38792 else
38796 ac_ext=cc
38797 ac_cpp='$CXXCPP $CPPFLAGS'
38798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38802 cat >conftest.$ac_ext <<_ACEOF
38803 #line $LINENO "configure"
38804 /* confdefs.h. */
38805 _ACEOF
38806 cat confdefs.h >>conftest.$ac_ext
38807 cat >>conftest.$ac_ext <<_ACEOF
38808 /* end confdefs.h. */
38809 #include <math.h>
38811 main ()
38813 _hypotl(0, 0);
38815 return 0;
38817 _ACEOF
38818 rm -f conftest.$ac_objext
38819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38820 (eval $ac_compile) 2>&5
38821 ac_status=$?
38822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823 (exit $ac_status); } &&
38824 { ac_try='test -s conftest.$ac_objext'
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38827 ac_status=$?
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; }; then
38830 glibcxx_cv_func__hypotl_use=yes
38831 else
38832 echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38835 glibcxx_cv_func__hypotl_use=no
38837 rm -f conftest.$ac_objext conftest.$ac_ext
38838 ac_ext=c
38839 ac_cpp='$CPP $CPPFLAGS'
38840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38848 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
38849 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
38851 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
38853 for ac_func in _hypotl
38855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38856 echo "$as_me:$LINENO: checking for $ac_func" >&5
38857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38858 if eval "test \"\${$as_ac_var+set}\" = set"; then
38859 echo $ECHO_N "(cached) $ECHO_C" >&6
38860 else
38861 if test x$gcc_no_link = xyes; then
38862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38864 { (exit 1); exit 1; }; }
38866 cat >conftest.$ac_ext <<_ACEOF
38867 #line $LINENO "configure"
38868 /* confdefs.h. */
38869 _ACEOF
38870 cat confdefs.h >>conftest.$ac_ext
38871 cat >>conftest.$ac_ext <<_ACEOF
38872 /* end confdefs.h. */
38873 /* System header to define __stub macros and hopefully few prototypes,
38874 which can conflict with char $ac_func (); below.
38875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38876 <limits.h> exists even on freestanding compilers. */
38877 #ifdef __STDC__
38878 # include <limits.h>
38879 #else
38880 # include <assert.h>
38881 #endif
38882 /* Override any gcc2 internal prototype to avoid an error. */
38883 #ifdef __cplusplus
38884 extern "C"
38886 #endif
38887 /* We use char because int might match the return type of a gcc2
38888 builtin and then its argument prototype would still apply. */
38889 char $ac_func ();
38890 /* The GNU C library defines this for functions which it implements
38891 to always fail with ENOSYS. Some functions are actually named
38892 something starting with __ and the normal name is an alias. */
38893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38894 choke me
38895 #else
38896 char (*f) () = $ac_func;
38897 #endif
38898 #ifdef __cplusplus
38900 #endif
38903 main ()
38905 return f != $ac_func;
38907 return 0;
38909 _ACEOF
38910 rm -f conftest.$ac_objext conftest$ac_exeext
38911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38912 (eval $ac_link) 2>&5
38913 ac_status=$?
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); } &&
38916 { ac_try='test -s conftest$ac_exeext'
38917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38918 (eval $ac_try) 2>&5
38919 ac_status=$?
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); }; }; then
38922 eval "$as_ac_var=yes"
38923 else
38924 echo "$as_me: failed program was:" >&5
38925 sed 's/^/| /' conftest.$ac_ext >&5
38927 eval "$as_ac_var=no"
38929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38933 if test `eval echo '${'$as_ac_var'}'` = yes; then
38934 cat >>confdefs.h <<_ACEOF
38935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38936 _ACEOF
38939 done
38946 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
38947 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
38948 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
38949 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
38950 echo $ECHO_N "(cached) $ECHO_C" >&6
38951 else
38955 ac_ext=cc
38956 ac_cpp='$CXXCPP $CPPFLAGS'
38957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38961 cat >conftest.$ac_ext <<_ACEOF
38962 #line $LINENO "configure"
38963 /* confdefs.h. */
38964 _ACEOF
38965 cat confdefs.h >>conftest.$ac_ext
38966 cat >>conftest.$ac_ext <<_ACEOF
38967 /* end confdefs.h. */
38968 #include <math.h>
38970 main ()
38972 ldexpl(0, 0);
38974 return 0;
38976 _ACEOF
38977 rm -f conftest.$ac_objext
38978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38979 (eval $ac_compile) 2>&5
38980 ac_status=$?
38981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38982 (exit $ac_status); } &&
38983 { ac_try='test -s conftest.$ac_objext'
38984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38985 (eval $ac_try) 2>&5
38986 ac_status=$?
38987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38988 (exit $ac_status); }; }; then
38989 glibcxx_cv_func_ldexpl_use=yes
38990 else
38991 echo "$as_me: failed program was:" >&5
38992 sed 's/^/| /' conftest.$ac_ext >&5
38994 glibcxx_cv_func_ldexpl_use=no
38996 rm -f conftest.$ac_objext conftest.$ac_ext
38997 ac_ext=c
38998 ac_cpp='$CPP $CPPFLAGS'
38999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39007 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
39008 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
39010 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
39012 for ac_func in ldexpl
39014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39015 echo "$as_me:$LINENO: checking for $ac_func" >&5
39016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39017 if eval "test \"\${$as_ac_var+set}\" = set"; then
39018 echo $ECHO_N "(cached) $ECHO_C" >&6
39019 else
39020 if test x$gcc_no_link = xyes; then
39021 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39022 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39023 { (exit 1); exit 1; }; }
39025 cat >conftest.$ac_ext <<_ACEOF
39026 #line $LINENO "configure"
39027 /* confdefs.h. */
39028 _ACEOF
39029 cat confdefs.h >>conftest.$ac_ext
39030 cat >>conftest.$ac_ext <<_ACEOF
39031 /* end confdefs.h. */
39032 /* System header to define __stub macros and hopefully few prototypes,
39033 which can conflict with char $ac_func (); below.
39034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39035 <limits.h> exists even on freestanding compilers. */
39036 #ifdef __STDC__
39037 # include <limits.h>
39038 #else
39039 # include <assert.h>
39040 #endif
39041 /* Override any gcc2 internal prototype to avoid an error. */
39042 #ifdef __cplusplus
39043 extern "C"
39045 #endif
39046 /* We use char because int might match the return type of a gcc2
39047 builtin and then its argument prototype would still apply. */
39048 char $ac_func ();
39049 /* The GNU C library defines this for functions which it implements
39050 to always fail with ENOSYS. Some functions are actually named
39051 something starting with __ and the normal name is an alias. */
39052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39053 choke me
39054 #else
39055 char (*f) () = $ac_func;
39056 #endif
39057 #ifdef __cplusplus
39059 #endif
39062 main ()
39064 return f != $ac_func;
39066 return 0;
39068 _ACEOF
39069 rm -f conftest.$ac_objext conftest$ac_exeext
39070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39071 (eval $ac_link) 2>&5
39072 ac_status=$?
39073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074 (exit $ac_status); } &&
39075 { ac_try='test -s conftest$ac_exeext'
39076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39077 (eval $ac_try) 2>&5
39078 ac_status=$?
39079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080 (exit $ac_status); }; }; then
39081 eval "$as_ac_var=yes"
39082 else
39083 echo "$as_me: failed program was:" >&5
39084 sed 's/^/| /' conftest.$ac_ext >&5
39086 eval "$as_ac_var=no"
39088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39092 if test `eval echo '${'$as_ac_var'}'` = yes; then
39093 cat >>confdefs.h <<_ACEOF
39094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39095 _ACEOF
39098 done
39100 else
39102 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
39103 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
39104 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
39105 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
39106 echo $ECHO_N "(cached) $ECHO_C" >&6
39107 else
39111 ac_ext=cc
39112 ac_cpp='$CXXCPP $CPPFLAGS'
39113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39117 cat >conftest.$ac_ext <<_ACEOF
39118 #line $LINENO "configure"
39119 /* confdefs.h. */
39120 _ACEOF
39121 cat confdefs.h >>conftest.$ac_ext
39122 cat >>conftest.$ac_ext <<_ACEOF
39123 /* end confdefs.h. */
39124 #include <math.h>
39126 main ()
39128 _ldexpl(0, 0);
39130 return 0;
39132 _ACEOF
39133 rm -f conftest.$ac_objext
39134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39135 (eval $ac_compile) 2>&5
39136 ac_status=$?
39137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138 (exit $ac_status); } &&
39139 { ac_try='test -s conftest.$ac_objext'
39140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39141 (eval $ac_try) 2>&5
39142 ac_status=$?
39143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39144 (exit $ac_status); }; }; then
39145 glibcxx_cv_func__ldexpl_use=yes
39146 else
39147 echo "$as_me: failed program was:" >&5
39148 sed 's/^/| /' conftest.$ac_ext >&5
39150 glibcxx_cv_func__ldexpl_use=no
39152 rm -f conftest.$ac_objext conftest.$ac_ext
39153 ac_ext=c
39154 ac_cpp='$CPP $CPPFLAGS'
39155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39163 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
39164 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
39166 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
39168 for ac_func in _ldexpl
39170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39171 echo "$as_me:$LINENO: checking for $ac_func" >&5
39172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39173 if eval "test \"\${$as_ac_var+set}\" = set"; then
39174 echo $ECHO_N "(cached) $ECHO_C" >&6
39175 else
39176 if test x$gcc_no_link = xyes; then
39177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39179 { (exit 1); exit 1; }; }
39181 cat >conftest.$ac_ext <<_ACEOF
39182 #line $LINENO "configure"
39183 /* confdefs.h. */
39184 _ACEOF
39185 cat confdefs.h >>conftest.$ac_ext
39186 cat >>conftest.$ac_ext <<_ACEOF
39187 /* end confdefs.h. */
39188 /* System header to define __stub macros and hopefully few prototypes,
39189 which can conflict with char $ac_func (); below.
39190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39191 <limits.h> exists even on freestanding compilers. */
39192 #ifdef __STDC__
39193 # include <limits.h>
39194 #else
39195 # include <assert.h>
39196 #endif
39197 /* Override any gcc2 internal prototype to avoid an error. */
39198 #ifdef __cplusplus
39199 extern "C"
39201 #endif
39202 /* We use char because int might match the return type of a gcc2
39203 builtin and then its argument prototype would still apply. */
39204 char $ac_func ();
39205 /* The GNU C library defines this for functions which it implements
39206 to always fail with ENOSYS. Some functions are actually named
39207 something starting with __ and the normal name is an alias. */
39208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39209 choke me
39210 #else
39211 char (*f) () = $ac_func;
39212 #endif
39213 #ifdef __cplusplus
39215 #endif
39218 main ()
39220 return f != $ac_func;
39222 return 0;
39224 _ACEOF
39225 rm -f conftest.$ac_objext conftest$ac_exeext
39226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39227 (eval $ac_link) 2>&5
39228 ac_status=$?
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); } &&
39231 { ac_try='test -s conftest$ac_exeext'
39232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39233 (eval $ac_try) 2>&5
39234 ac_status=$?
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); }; }; then
39237 eval "$as_ac_var=yes"
39238 else
39239 echo "$as_me: failed program was:" >&5
39240 sed 's/^/| /' conftest.$ac_ext >&5
39242 eval "$as_ac_var=no"
39244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39248 if test `eval echo '${'$as_ac_var'}'` = yes; then
39249 cat >>confdefs.h <<_ACEOF
39250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39251 _ACEOF
39254 done
39261 echo "$as_me:$LINENO: checking for logl declaration" >&5
39262 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
39263 if test x${glibcxx_cv_func_logl_use+set} != xset; then
39264 if test "${glibcxx_cv_func_logl_use+set}" = set; then
39265 echo $ECHO_N "(cached) $ECHO_C" >&6
39266 else
39270 ac_ext=cc
39271 ac_cpp='$CXXCPP $CPPFLAGS'
39272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39276 cat >conftest.$ac_ext <<_ACEOF
39277 #line $LINENO "configure"
39278 /* confdefs.h. */
39279 _ACEOF
39280 cat confdefs.h >>conftest.$ac_ext
39281 cat >>conftest.$ac_ext <<_ACEOF
39282 /* end confdefs.h. */
39283 #include <math.h>
39284 #ifdef HAVE_IEEEFP_H
39285 #include <ieeefp.h>
39286 #endif
39289 main ()
39291 logl(0);
39293 return 0;
39295 _ACEOF
39296 rm -f conftest.$ac_objext
39297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39298 (eval $ac_compile) 2>&5
39299 ac_status=$?
39300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301 (exit $ac_status); } &&
39302 { ac_try='test -s conftest.$ac_objext'
39303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39304 (eval $ac_try) 2>&5
39305 ac_status=$?
39306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39307 (exit $ac_status); }; }; then
39308 glibcxx_cv_func_logl_use=yes
39309 else
39310 echo "$as_me: failed program was:" >&5
39311 sed 's/^/| /' conftest.$ac_ext >&5
39313 glibcxx_cv_func_logl_use=no
39315 rm -f conftest.$ac_objext conftest.$ac_ext
39316 ac_ext=c
39317 ac_cpp='$CPP $CPPFLAGS'
39318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39326 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
39327 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
39329 if test x$glibcxx_cv_func_logl_use = x"yes"; then
39331 for ac_func in logl
39333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39334 echo "$as_me:$LINENO: checking for $ac_func" >&5
39335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39336 if eval "test \"\${$as_ac_var+set}\" = set"; then
39337 echo $ECHO_N "(cached) $ECHO_C" >&6
39338 else
39339 if test x$gcc_no_link = xyes; then
39340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39342 { (exit 1); exit 1; }; }
39344 cat >conftest.$ac_ext <<_ACEOF
39345 #line $LINENO "configure"
39346 /* confdefs.h. */
39347 _ACEOF
39348 cat confdefs.h >>conftest.$ac_ext
39349 cat >>conftest.$ac_ext <<_ACEOF
39350 /* end confdefs.h. */
39351 /* System header to define __stub macros and hopefully few prototypes,
39352 which can conflict with char $ac_func (); below.
39353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39354 <limits.h> exists even on freestanding compilers. */
39355 #ifdef __STDC__
39356 # include <limits.h>
39357 #else
39358 # include <assert.h>
39359 #endif
39360 /* Override any gcc2 internal prototype to avoid an error. */
39361 #ifdef __cplusplus
39362 extern "C"
39364 #endif
39365 /* We use char because int might match the return type of a gcc2
39366 builtin and then its argument prototype would still apply. */
39367 char $ac_func ();
39368 /* The GNU C library defines this for functions which it implements
39369 to always fail with ENOSYS. Some functions are actually named
39370 something starting with __ and the normal name is an alias. */
39371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39372 choke me
39373 #else
39374 char (*f) () = $ac_func;
39375 #endif
39376 #ifdef __cplusplus
39378 #endif
39381 main ()
39383 return f != $ac_func;
39385 return 0;
39387 _ACEOF
39388 rm -f conftest.$ac_objext conftest$ac_exeext
39389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39390 (eval $ac_link) 2>&5
39391 ac_status=$?
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); } &&
39394 { ac_try='test -s conftest$ac_exeext'
39395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39396 (eval $ac_try) 2>&5
39397 ac_status=$?
39398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39399 (exit $ac_status); }; }; then
39400 eval "$as_ac_var=yes"
39401 else
39402 echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39405 eval "$as_ac_var=no"
39407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39411 if test `eval echo '${'$as_ac_var'}'` = yes; then
39412 cat >>confdefs.h <<_ACEOF
39413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39414 _ACEOF
39417 done
39419 else
39421 echo "$as_me:$LINENO: checking for _logl declaration" >&5
39422 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
39423 if test x${glibcxx_cv_func__logl_use+set} != xset; then
39424 if test "${glibcxx_cv_func__logl_use+set}" = set; then
39425 echo $ECHO_N "(cached) $ECHO_C" >&6
39426 else
39430 ac_ext=cc
39431 ac_cpp='$CXXCPP $CPPFLAGS'
39432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39436 cat >conftest.$ac_ext <<_ACEOF
39437 #line $LINENO "configure"
39438 /* confdefs.h. */
39439 _ACEOF
39440 cat confdefs.h >>conftest.$ac_ext
39441 cat >>conftest.$ac_ext <<_ACEOF
39442 /* end confdefs.h. */
39443 #include <math.h>
39444 #ifdef HAVE_IEEEFP_H
39445 #include <ieeefp.h>
39446 #endif
39449 main ()
39451 _logl(0);
39453 return 0;
39455 _ACEOF
39456 rm -f conftest.$ac_objext
39457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39458 (eval $ac_compile) 2>&5
39459 ac_status=$?
39460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); } &&
39462 { ac_try='test -s conftest.$ac_objext'
39463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39464 (eval $ac_try) 2>&5
39465 ac_status=$?
39466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39467 (exit $ac_status); }; }; then
39468 glibcxx_cv_func__logl_use=yes
39469 else
39470 echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39473 glibcxx_cv_func__logl_use=no
39475 rm -f conftest.$ac_objext conftest.$ac_ext
39476 ac_ext=c
39477 ac_cpp='$CPP $CPPFLAGS'
39478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39486 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
39487 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
39489 if test x$glibcxx_cv_func__logl_use = x"yes"; then
39491 for ac_func in _logl
39493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39494 echo "$as_me:$LINENO: checking for $ac_func" >&5
39495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39496 if eval "test \"\${$as_ac_var+set}\" = set"; then
39497 echo $ECHO_N "(cached) $ECHO_C" >&6
39498 else
39499 if test x$gcc_no_link = xyes; then
39500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39502 { (exit 1); exit 1; }; }
39504 cat >conftest.$ac_ext <<_ACEOF
39505 #line $LINENO "configure"
39506 /* confdefs.h. */
39507 _ACEOF
39508 cat confdefs.h >>conftest.$ac_ext
39509 cat >>conftest.$ac_ext <<_ACEOF
39510 /* end confdefs.h. */
39511 /* System header to define __stub macros and hopefully few prototypes,
39512 which can conflict with char $ac_func (); below.
39513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39514 <limits.h> exists even on freestanding compilers. */
39515 #ifdef __STDC__
39516 # include <limits.h>
39517 #else
39518 # include <assert.h>
39519 #endif
39520 /* Override any gcc2 internal prototype to avoid an error. */
39521 #ifdef __cplusplus
39522 extern "C"
39524 #endif
39525 /* We use char because int might match the return type of a gcc2
39526 builtin and then its argument prototype would still apply. */
39527 char $ac_func ();
39528 /* The GNU C library defines this for functions which it implements
39529 to always fail with ENOSYS. Some functions are actually named
39530 something starting with __ and the normal name is an alias. */
39531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39532 choke me
39533 #else
39534 char (*f) () = $ac_func;
39535 #endif
39536 #ifdef __cplusplus
39538 #endif
39541 main ()
39543 return f != $ac_func;
39545 return 0;
39547 _ACEOF
39548 rm -f conftest.$ac_objext conftest$ac_exeext
39549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39550 (eval $ac_link) 2>&5
39551 ac_status=$?
39552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553 (exit $ac_status); } &&
39554 { ac_try='test -s conftest$ac_exeext'
39555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39556 (eval $ac_try) 2>&5
39557 ac_status=$?
39558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559 (exit $ac_status); }; }; then
39560 eval "$as_ac_var=yes"
39561 else
39562 echo "$as_me: failed program was:" >&5
39563 sed 's/^/| /' conftest.$ac_ext >&5
39565 eval "$as_ac_var=no"
39567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39571 if test `eval echo '${'$as_ac_var'}'` = yes; then
39572 cat >>confdefs.h <<_ACEOF
39573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39574 _ACEOF
39577 done
39584 echo "$as_me:$LINENO: checking for log10l declaration" >&5
39585 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
39586 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
39587 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
39588 echo $ECHO_N "(cached) $ECHO_C" >&6
39589 else
39593 ac_ext=cc
39594 ac_cpp='$CXXCPP $CPPFLAGS'
39595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39599 cat >conftest.$ac_ext <<_ACEOF
39600 #line $LINENO "configure"
39601 /* confdefs.h. */
39602 _ACEOF
39603 cat confdefs.h >>conftest.$ac_ext
39604 cat >>conftest.$ac_ext <<_ACEOF
39605 /* end confdefs.h. */
39606 #include <math.h>
39607 #ifdef HAVE_IEEEFP_H
39608 #include <ieeefp.h>
39609 #endif
39612 main ()
39614 log10l(0);
39616 return 0;
39618 _ACEOF
39619 rm -f conftest.$ac_objext
39620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39621 (eval $ac_compile) 2>&5
39622 ac_status=$?
39623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39624 (exit $ac_status); } &&
39625 { ac_try='test -s conftest.$ac_objext'
39626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39627 (eval $ac_try) 2>&5
39628 ac_status=$?
39629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39630 (exit $ac_status); }; }; then
39631 glibcxx_cv_func_log10l_use=yes
39632 else
39633 echo "$as_me: failed program was:" >&5
39634 sed 's/^/| /' conftest.$ac_ext >&5
39636 glibcxx_cv_func_log10l_use=no
39638 rm -f conftest.$ac_objext conftest.$ac_ext
39639 ac_ext=c
39640 ac_cpp='$CPP $CPPFLAGS'
39641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39649 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
39650 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
39652 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
39654 for ac_func in log10l
39656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39657 echo "$as_me:$LINENO: checking for $ac_func" >&5
39658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39659 if eval "test \"\${$as_ac_var+set}\" = set"; then
39660 echo $ECHO_N "(cached) $ECHO_C" >&6
39661 else
39662 if test x$gcc_no_link = xyes; then
39663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39665 { (exit 1); exit 1; }; }
39667 cat >conftest.$ac_ext <<_ACEOF
39668 #line $LINENO "configure"
39669 /* confdefs.h. */
39670 _ACEOF
39671 cat confdefs.h >>conftest.$ac_ext
39672 cat >>conftest.$ac_ext <<_ACEOF
39673 /* end confdefs.h. */
39674 /* System header to define __stub macros and hopefully few prototypes,
39675 which can conflict with char $ac_func (); below.
39676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39677 <limits.h> exists even on freestanding compilers. */
39678 #ifdef __STDC__
39679 # include <limits.h>
39680 #else
39681 # include <assert.h>
39682 #endif
39683 /* Override any gcc2 internal prototype to avoid an error. */
39684 #ifdef __cplusplus
39685 extern "C"
39687 #endif
39688 /* We use char because int might match the return type of a gcc2
39689 builtin and then its argument prototype would still apply. */
39690 char $ac_func ();
39691 /* The GNU C library defines this for functions which it implements
39692 to always fail with ENOSYS. Some functions are actually named
39693 something starting with __ and the normal name is an alias. */
39694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39695 choke me
39696 #else
39697 char (*f) () = $ac_func;
39698 #endif
39699 #ifdef __cplusplus
39701 #endif
39704 main ()
39706 return f != $ac_func;
39708 return 0;
39710 _ACEOF
39711 rm -f conftest.$ac_objext conftest$ac_exeext
39712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39713 (eval $ac_link) 2>&5
39714 ac_status=$?
39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716 (exit $ac_status); } &&
39717 { ac_try='test -s conftest$ac_exeext'
39718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39719 (eval $ac_try) 2>&5
39720 ac_status=$?
39721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722 (exit $ac_status); }; }; then
39723 eval "$as_ac_var=yes"
39724 else
39725 echo "$as_me: failed program was:" >&5
39726 sed 's/^/| /' conftest.$ac_ext >&5
39728 eval "$as_ac_var=no"
39730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39734 if test `eval echo '${'$as_ac_var'}'` = yes; then
39735 cat >>confdefs.h <<_ACEOF
39736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39737 _ACEOF
39740 done
39742 else
39744 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
39745 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
39746 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
39747 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
39748 echo $ECHO_N "(cached) $ECHO_C" >&6
39749 else
39753 ac_ext=cc
39754 ac_cpp='$CXXCPP $CPPFLAGS'
39755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39759 cat >conftest.$ac_ext <<_ACEOF
39760 #line $LINENO "configure"
39761 /* confdefs.h. */
39762 _ACEOF
39763 cat confdefs.h >>conftest.$ac_ext
39764 cat >>conftest.$ac_ext <<_ACEOF
39765 /* end confdefs.h. */
39766 #include <math.h>
39767 #ifdef HAVE_IEEEFP_H
39768 #include <ieeefp.h>
39769 #endif
39772 main ()
39774 _log10l(0);
39776 return 0;
39778 _ACEOF
39779 rm -f conftest.$ac_objext
39780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39781 (eval $ac_compile) 2>&5
39782 ac_status=$?
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); } &&
39785 { ac_try='test -s conftest.$ac_objext'
39786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787 (eval $ac_try) 2>&5
39788 ac_status=$?
39789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790 (exit $ac_status); }; }; then
39791 glibcxx_cv_func__log10l_use=yes
39792 else
39793 echo "$as_me: failed program was:" >&5
39794 sed 's/^/| /' conftest.$ac_ext >&5
39796 glibcxx_cv_func__log10l_use=no
39798 rm -f conftest.$ac_objext conftest.$ac_ext
39799 ac_ext=c
39800 ac_cpp='$CPP $CPPFLAGS'
39801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39809 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
39810 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
39812 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
39814 for ac_func in _log10l
39816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39817 echo "$as_me:$LINENO: checking for $ac_func" >&5
39818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39819 if eval "test \"\${$as_ac_var+set}\" = set"; then
39820 echo $ECHO_N "(cached) $ECHO_C" >&6
39821 else
39822 if test x$gcc_no_link = xyes; then
39823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39825 { (exit 1); exit 1; }; }
39827 cat >conftest.$ac_ext <<_ACEOF
39828 #line $LINENO "configure"
39829 /* confdefs.h. */
39830 _ACEOF
39831 cat confdefs.h >>conftest.$ac_ext
39832 cat >>conftest.$ac_ext <<_ACEOF
39833 /* end confdefs.h. */
39834 /* System header to define __stub macros and hopefully few prototypes,
39835 which can conflict with char $ac_func (); below.
39836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39837 <limits.h> exists even on freestanding compilers. */
39838 #ifdef __STDC__
39839 # include <limits.h>
39840 #else
39841 # include <assert.h>
39842 #endif
39843 /* Override any gcc2 internal prototype to avoid an error. */
39844 #ifdef __cplusplus
39845 extern "C"
39847 #endif
39848 /* We use char because int might match the return type of a gcc2
39849 builtin and then its argument prototype would still apply. */
39850 char $ac_func ();
39851 /* The GNU C library defines this for functions which it implements
39852 to always fail with ENOSYS. Some functions are actually named
39853 something starting with __ and the normal name is an alias. */
39854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39855 choke me
39856 #else
39857 char (*f) () = $ac_func;
39858 #endif
39859 #ifdef __cplusplus
39861 #endif
39864 main ()
39866 return f != $ac_func;
39868 return 0;
39870 _ACEOF
39871 rm -f conftest.$ac_objext conftest$ac_exeext
39872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39873 (eval $ac_link) 2>&5
39874 ac_status=$?
39875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39876 (exit $ac_status); } &&
39877 { ac_try='test -s conftest$ac_exeext'
39878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39879 (eval $ac_try) 2>&5
39880 ac_status=$?
39881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882 (exit $ac_status); }; }; then
39883 eval "$as_ac_var=yes"
39884 else
39885 echo "$as_me: failed program was:" >&5
39886 sed 's/^/| /' conftest.$ac_ext >&5
39888 eval "$as_ac_var=no"
39890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39894 if test `eval echo '${'$as_ac_var'}'` = yes; then
39895 cat >>confdefs.h <<_ACEOF
39896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39897 _ACEOF
39900 done
39907 echo "$as_me:$LINENO: checking for modfl declaration" >&5
39908 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
39909 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
39910 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
39911 echo $ECHO_N "(cached) $ECHO_C" >&6
39912 else
39916 ac_ext=cc
39917 ac_cpp='$CXXCPP $CPPFLAGS'
39918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39922 cat >conftest.$ac_ext <<_ACEOF
39923 #line $LINENO "configure"
39924 /* confdefs.h. */
39925 _ACEOF
39926 cat confdefs.h >>conftest.$ac_ext
39927 cat >>conftest.$ac_ext <<_ACEOF
39928 /* end confdefs.h. */
39929 #include <math.h>
39931 main ()
39933 modfl(0, 0);
39935 return 0;
39937 _ACEOF
39938 rm -f conftest.$ac_objext
39939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39940 (eval $ac_compile) 2>&5
39941 ac_status=$?
39942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943 (exit $ac_status); } &&
39944 { ac_try='test -s conftest.$ac_objext'
39945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39946 (eval $ac_try) 2>&5
39947 ac_status=$?
39948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); }; }; then
39950 glibcxx_cv_func_modfl_use=yes
39951 else
39952 echo "$as_me: failed program was:" >&5
39953 sed 's/^/| /' conftest.$ac_ext >&5
39955 glibcxx_cv_func_modfl_use=no
39957 rm -f conftest.$ac_objext conftest.$ac_ext
39958 ac_ext=c
39959 ac_cpp='$CPP $CPPFLAGS'
39960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39968 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
39969 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
39971 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
39973 for ac_func in modfl
39975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39976 echo "$as_me:$LINENO: checking for $ac_func" >&5
39977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39978 if eval "test \"\${$as_ac_var+set}\" = set"; then
39979 echo $ECHO_N "(cached) $ECHO_C" >&6
39980 else
39981 if test x$gcc_no_link = xyes; then
39982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39984 { (exit 1); exit 1; }; }
39986 cat >conftest.$ac_ext <<_ACEOF
39987 #line $LINENO "configure"
39988 /* confdefs.h. */
39989 _ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h. */
39993 /* System header to define __stub macros and hopefully few prototypes,
39994 which can conflict with char $ac_func (); below.
39995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39996 <limits.h> exists even on freestanding compilers. */
39997 #ifdef __STDC__
39998 # include <limits.h>
39999 #else
40000 # include <assert.h>
40001 #endif
40002 /* Override any gcc2 internal prototype to avoid an error. */
40003 #ifdef __cplusplus
40004 extern "C"
40006 #endif
40007 /* We use char because int might match the return type of a gcc2
40008 builtin and then its argument prototype would still apply. */
40009 char $ac_func ();
40010 /* The GNU C library defines this for functions which it implements
40011 to always fail with ENOSYS. Some functions are actually named
40012 something starting with __ and the normal name is an alias. */
40013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40014 choke me
40015 #else
40016 char (*f) () = $ac_func;
40017 #endif
40018 #ifdef __cplusplus
40020 #endif
40023 main ()
40025 return f != $ac_func;
40027 return 0;
40029 _ACEOF
40030 rm -f conftest.$ac_objext conftest$ac_exeext
40031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40032 (eval $ac_link) 2>&5
40033 ac_status=$?
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); } &&
40036 { ac_try='test -s conftest$ac_exeext'
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40039 ac_status=$?
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; }; then
40042 eval "$as_ac_var=yes"
40043 else
40044 echo "$as_me: failed program was:" >&5
40045 sed 's/^/| /' conftest.$ac_ext >&5
40047 eval "$as_ac_var=no"
40049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40053 if test `eval echo '${'$as_ac_var'}'` = yes; then
40054 cat >>confdefs.h <<_ACEOF
40055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40056 _ACEOF
40059 done
40061 else
40063 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
40064 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
40065 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
40066 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
40067 echo $ECHO_N "(cached) $ECHO_C" >&6
40068 else
40072 ac_ext=cc
40073 ac_cpp='$CXXCPP $CPPFLAGS'
40074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40078 cat >conftest.$ac_ext <<_ACEOF
40079 #line $LINENO "configure"
40080 /* confdefs.h. */
40081 _ACEOF
40082 cat confdefs.h >>conftest.$ac_ext
40083 cat >>conftest.$ac_ext <<_ACEOF
40084 /* end confdefs.h. */
40085 #include <math.h>
40087 main ()
40089 _modfl(0, 0);
40091 return 0;
40093 _ACEOF
40094 rm -f conftest.$ac_objext
40095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40096 (eval $ac_compile) 2>&5
40097 ac_status=$?
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); } &&
40100 { ac_try='test -s conftest.$ac_objext'
40101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102 (eval $ac_try) 2>&5
40103 ac_status=$?
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); }; }; then
40106 glibcxx_cv_func__modfl_use=yes
40107 else
40108 echo "$as_me: failed program was:" >&5
40109 sed 's/^/| /' conftest.$ac_ext >&5
40111 glibcxx_cv_func__modfl_use=no
40113 rm -f conftest.$ac_objext conftest.$ac_ext
40114 ac_ext=c
40115 ac_cpp='$CPP $CPPFLAGS'
40116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40124 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
40125 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
40127 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
40129 for ac_func in _modfl
40131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40132 echo "$as_me:$LINENO: checking for $ac_func" >&5
40133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40134 if eval "test \"\${$as_ac_var+set}\" = set"; then
40135 echo $ECHO_N "(cached) $ECHO_C" >&6
40136 else
40137 if test x$gcc_no_link = xyes; then
40138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40140 { (exit 1); exit 1; }; }
40142 cat >conftest.$ac_ext <<_ACEOF
40143 #line $LINENO "configure"
40144 /* confdefs.h. */
40145 _ACEOF
40146 cat confdefs.h >>conftest.$ac_ext
40147 cat >>conftest.$ac_ext <<_ACEOF
40148 /* end confdefs.h. */
40149 /* System header to define __stub macros and hopefully few prototypes,
40150 which can conflict with char $ac_func (); below.
40151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40152 <limits.h> exists even on freestanding compilers. */
40153 #ifdef __STDC__
40154 # include <limits.h>
40155 #else
40156 # include <assert.h>
40157 #endif
40158 /* Override any gcc2 internal prototype to avoid an error. */
40159 #ifdef __cplusplus
40160 extern "C"
40162 #endif
40163 /* We use char because int might match the return type of a gcc2
40164 builtin and then its argument prototype would still apply. */
40165 char $ac_func ();
40166 /* The GNU C library defines this for functions which it implements
40167 to always fail with ENOSYS. Some functions are actually named
40168 something starting with __ and the normal name is an alias. */
40169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40170 choke me
40171 #else
40172 char (*f) () = $ac_func;
40173 #endif
40174 #ifdef __cplusplus
40176 #endif
40179 main ()
40181 return f != $ac_func;
40183 return 0;
40185 _ACEOF
40186 rm -f conftest.$ac_objext conftest$ac_exeext
40187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40188 (eval $ac_link) 2>&5
40189 ac_status=$?
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); } &&
40192 { ac_try='test -s conftest$ac_exeext'
40193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40194 (eval $ac_try) 2>&5
40195 ac_status=$?
40196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40197 (exit $ac_status); }; }; then
40198 eval "$as_ac_var=yes"
40199 else
40200 echo "$as_me: failed program was:" >&5
40201 sed 's/^/| /' conftest.$ac_ext >&5
40203 eval "$as_ac_var=no"
40205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40209 if test `eval echo '${'$as_ac_var'}'` = yes; then
40210 cat >>confdefs.h <<_ACEOF
40211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40212 _ACEOF
40215 done
40222 echo "$as_me:$LINENO: checking for powl declaration" >&5
40223 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
40224 if test x${glibcxx_cv_func_powl_use+set} != xset; then
40225 if test "${glibcxx_cv_func_powl_use+set}" = set; then
40226 echo $ECHO_N "(cached) $ECHO_C" >&6
40227 else
40231 ac_ext=cc
40232 ac_cpp='$CXXCPP $CPPFLAGS'
40233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40237 cat >conftest.$ac_ext <<_ACEOF
40238 #line $LINENO "configure"
40239 /* confdefs.h. */
40240 _ACEOF
40241 cat confdefs.h >>conftest.$ac_ext
40242 cat >>conftest.$ac_ext <<_ACEOF
40243 /* end confdefs.h. */
40244 #include <math.h>
40246 main ()
40248 powl(0, 0);
40250 return 0;
40252 _ACEOF
40253 rm -f conftest.$ac_objext
40254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40255 (eval $ac_compile) 2>&5
40256 ac_status=$?
40257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258 (exit $ac_status); } &&
40259 { ac_try='test -s conftest.$ac_objext'
40260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40261 (eval $ac_try) 2>&5
40262 ac_status=$?
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); }; }; then
40265 glibcxx_cv_func_powl_use=yes
40266 else
40267 echo "$as_me: failed program was:" >&5
40268 sed 's/^/| /' conftest.$ac_ext >&5
40270 glibcxx_cv_func_powl_use=no
40272 rm -f conftest.$ac_objext conftest.$ac_ext
40273 ac_ext=c
40274 ac_cpp='$CPP $CPPFLAGS'
40275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40283 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
40284 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
40286 if test x$glibcxx_cv_func_powl_use = x"yes"; then
40288 for ac_func in powl
40290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40291 echo "$as_me:$LINENO: checking for $ac_func" >&5
40292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40293 if eval "test \"\${$as_ac_var+set}\" = set"; then
40294 echo $ECHO_N "(cached) $ECHO_C" >&6
40295 else
40296 if test x$gcc_no_link = xyes; then
40297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40299 { (exit 1); exit 1; }; }
40301 cat >conftest.$ac_ext <<_ACEOF
40302 #line $LINENO "configure"
40303 /* confdefs.h. */
40304 _ACEOF
40305 cat confdefs.h >>conftest.$ac_ext
40306 cat >>conftest.$ac_ext <<_ACEOF
40307 /* end confdefs.h. */
40308 /* System header to define __stub macros and hopefully few prototypes,
40309 which can conflict with char $ac_func (); below.
40310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40311 <limits.h> exists even on freestanding compilers. */
40312 #ifdef __STDC__
40313 # include <limits.h>
40314 #else
40315 # include <assert.h>
40316 #endif
40317 /* Override any gcc2 internal prototype to avoid an error. */
40318 #ifdef __cplusplus
40319 extern "C"
40321 #endif
40322 /* We use char because int might match the return type of a gcc2
40323 builtin and then its argument prototype would still apply. */
40324 char $ac_func ();
40325 /* The GNU C library defines this for functions which it implements
40326 to always fail with ENOSYS. Some functions are actually named
40327 something starting with __ and the normal name is an alias. */
40328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40329 choke me
40330 #else
40331 char (*f) () = $ac_func;
40332 #endif
40333 #ifdef __cplusplus
40335 #endif
40338 main ()
40340 return f != $ac_func;
40342 return 0;
40344 _ACEOF
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40347 (eval $ac_link) 2>&5
40348 ac_status=$?
40349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40350 (exit $ac_status); } &&
40351 { ac_try='test -s conftest$ac_exeext'
40352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40353 (eval $ac_try) 2>&5
40354 ac_status=$?
40355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356 (exit $ac_status); }; }; then
40357 eval "$as_ac_var=yes"
40358 else
40359 echo "$as_me: failed program was:" >&5
40360 sed 's/^/| /' conftest.$ac_ext >&5
40362 eval "$as_ac_var=no"
40364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40368 if test `eval echo '${'$as_ac_var'}'` = yes; then
40369 cat >>confdefs.h <<_ACEOF
40370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40371 _ACEOF
40374 done
40376 else
40378 echo "$as_me:$LINENO: checking for _powl declaration" >&5
40379 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
40380 if test x${glibcxx_cv_func__powl_use+set} != xset; then
40381 if test "${glibcxx_cv_func__powl_use+set}" = set; then
40382 echo $ECHO_N "(cached) $ECHO_C" >&6
40383 else
40387 ac_ext=cc
40388 ac_cpp='$CXXCPP $CPPFLAGS'
40389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40393 cat >conftest.$ac_ext <<_ACEOF
40394 #line $LINENO "configure"
40395 /* confdefs.h. */
40396 _ACEOF
40397 cat confdefs.h >>conftest.$ac_ext
40398 cat >>conftest.$ac_ext <<_ACEOF
40399 /* end confdefs.h. */
40400 #include <math.h>
40402 main ()
40404 _powl(0, 0);
40406 return 0;
40408 _ACEOF
40409 rm -f conftest.$ac_objext
40410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40411 (eval $ac_compile) 2>&5
40412 ac_status=$?
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); } &&
40415 { ac_try='test -s conftest.$ac_objext'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; }; then
40421 glibcxx_cv_func__powl_use=yes
40422 else
40423 echo "$as_me: failed program was:" >&5
40424 sed 's/^/| /' conftest.$ac_ext >&5
40426 glibcxx_cv_func__powl_use=no
40428 rm -f conftest.$ac_objext conftest.$ac_ext
40429 ac_ext=c
40430 ac_cpp='$CPP $CPPFLAGS'
40431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40439 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
40440 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
40442 if test x$glibcxx_cv_func__powl_use = x"yes"; then
40444 for ac_func in _powl
40446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40447 echo "$as_me:$LINENO: checking for $ac_func" >&5
40448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40449 if eval "test \"\${$as_ac_var+set}\" = set"; then
40450 echo $ECHO_N "(cached) $ECHO_C" >&6
40451 else
40452 if test x$gcc_no_link = xyes; then
40453 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40455 { (exit 1); exit 1; }; }
40457 cat >conftest.$ac_ext <<_ACEOF
40458 #line $LINENO "configure"
40459 /* confdefs.h. */
40460 _ACEOF
40461 cat confdefs.h >>conftest.$ac_ext
40462 cat >>conftest.$ac_ext <<_ACEOF
40463 /* end confdefs.h. */
40464 /* System header to define __stub macros and hopefully few prototypes,
40465 which can conflict with char $ac_func (); below.
40466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40467 <limits.h> exists even on freestanding compilers. */
40468 #ifdef __STDC__
40469 # include <limits.h>
40470 #else
40471 # include <assert.h>
40472 #endif
40473 /* Override any gcc2 internal prototype to avoid an error. */
40474 #ifdef __cplusplus
40475 extern "C"
40477 #endif
40478 /* We use char because int might match the return type of a gcc2
40479 builtin and then its argument prototype would still apply. */
40480 char $ac_func ();
40481 /* The GNU C library defines this for functions which it implements
40482 to always fail with ENOSYS. Some functions are actually named
40483 something starting with __ and the normal name is an alias. */
40484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40485 choke me
40486 #else
40487 char (*f) () = $ac_func;
40488 #endif
40489 #ifdef __cplusplus
40491 #endif
40494 main ()
40496 return f != $ac_func;
40498 return 0;
40500 _ACEOF
40501 rm -f conftest.$ac_objext conftest$ac_exeext
40502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40503 (eval $ac_link) 2>&5
40504 ac_status=$?
40505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40506 (exit $ac_status); } &&
40507 { ac_try='test -s conftest$ac_exeext'
40508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40509 (eval $ac_try) 2>&5
40510 ac_status=$?
40511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512 (exit $ac_status); }; }; then
40513 eval "$as_ac_var=yes"
40514 else
40515 echo "$as_me: failed program was:" >&5
40516 sed 's/^/| /' conftest.$ac_ext >&5
40518 eval "$as_ac_var=no"
40520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40524 if test `eval echo '${'$as_ac_var'}'` = yes; then
40525 cat >>confdefs.h <<_ACEOF
40526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40527 _ACEOF
40530 done
40537 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
40538 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
40539 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
40540 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
40541 echo $ECHO_N "(cached) $ECHO_C" >&6
40542 else
40546 ac_ext=cc
40547 ac_cpp='$CXXCPP $CPPFLAGS'
40548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40552 cat >conftest.$ac_ext <<_ACEOF
40553 #line $LINENO "configure"
40554 /* confdefs.h. */
40555 _ACEOF
40556 cat confdefs.h >>conftest.$ac_ext
40557 cat >>conftest.$ac_ext <<_ACEOF
40558 /* end confdefs.h. */
40559 #include <math.h>
40560 #ifdef HAVE_IEEEFP_H
40561 #include <ieeefp.h>
40562 #endif
40565 main ()
40567 sqrtl(0);
40569 return 0;
40571 _ACEOF
40572 rm -f conftest.$ac_objext
40573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40574 (eval $ac_compile) 2>&5
40575 ac_status=$?
40576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40577 (exit $ac_status); } &&
40578 { ac_try='test -s conftest.$ac_objext'
40579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40580 (eval $ac_try) 2>&5
40581 ac_status=$?
40582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40583 (exit $ac_status); }; }; then
40584 glibcxx_cv_func_sqrtl_use=yes
40585 else
40586 echo "$as_me: failed program was:" >&5
40587 sed 's/^/| /' conftest.$ac_ext >&5
40589 glibcxx_cv_func_sqrtl_use=no
40591 rm -f conftest.$ac_objext conftest.$ac_ext
40592 ac_ext=c
40593 ac_cpp='$CPP $CPPFLAGS'
40594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40602 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
40603 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
40605 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
40607 for ac_func in sqrtl
40609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40610 echo "$as_me:$LINENO: checking for $ac_func" >&5
40611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40612 if eval "test \"\${$as_ac_var+set}\" = set"; then
40613 echo $ECHO_N "(cached) $ECHO_C" >&6
40614 else
40615 if test x$gcc_no_link = xyes; then
40616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40618 { (exit 1); exit 1; }; }
40620 cat >conftest.$ac_ext <<_ACEOF
40621 #line $LINENO "configure"
40622 /* confdefs.h. */
40623 _ACEOF
40624 cat confdefs.h >>conftest.$ac_ext
40625 cat >>conftest.$ac_ext <<_ACEOF
40626 /* end confdefs.h. */
40627 /* System header to define __stub macros and hopefully few prototypes,
40628 which can conflict with char $ac_func (); below.
40629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40630 <limits.h> exists even on freestanding compilers. */
40631 #ifdef __STDC__
40632 # include <limits.h>
40633 #else
40634 # include <assert.h>
40635 #endif
40636 /* Override any gcc2 internal prototype to avoid an error. */
40637 #ifdef __cplusplus
40638 extern "C"
40640 #endif
40641 /* We use char because int might match the return type of a gcc2
40642 builtin and then its argument prototype would still apply. */
40643 char $ac_func ();
40644 /* The GNU C library defines this for functions which it implements
40645 to always fail with ENOSYS. Some functions are actually named
40646 something starting with __ and the normal name is an alias. */
40647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40648 choke me
40649 #else
40650 char (*f) () = $ac_func;
40651 #endif
40652 #ifdef __cplusplus
40654 #endif
40657 main ()
40659 return f != $ac_func;
40661 return 0;
40663 _ACEOF
40664 rm -f conftest.$ac_objext conftest$ac_exeext
40665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40666 (eval $ac_link) 2>&5
40667 ac_status=$?
40668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669 (exit $ac_status); } &&
40670 { ac_try='test -s conftest$ac_exeext'
40671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40672 (eval $ac_try) 2>&5
40673 ac_status=$?
40674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675 (exit $ac_status); }; }; then
40676 eval "$as_ac_var=yes"
40677 else
40678 echo "$as_me: failed program was:" >&5
40679 sed 's/^/| /' conftest.$ac_ext >&5
40681 eval "$as_ac_var=no"
40683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40687 if test `eval echo '${'$as_ac_var'}'` = yes; then
40688 cat >>confdefs.h <<_ACEOF
40689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40690 _ACEOF
40693 done
40695 else
40697 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
40698 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
40699 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
40700 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
40701 echo $ECHO_N "(cached) $ECHO_C" >&6
40702 else
40706 ac_ext=cc
40707 ac_cpp='$CXXCPP $CPPFLAGS'
40708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40712 cat >conftest.$ac_ext <<_ACEOF
40713 #line $LINENO "configure"
40714 /* confdefs.h. */
40715 _ACEOF
40716 cat confdefs.h >>conftest.$ac_ext
40717 cat >>conftest.$ac_ext <<_ACEOF
40718 /* end confdefs.h. */
40719 #include <math.h>
40720 #ifdef HAVE_IEEEFP_H
40721 #include <ieeefp.h>
40722 #endif
40725 main ()
40727 _sqrtl(0);
40729 return 0;
40731 _ACEOF
40732 rm -f conftest.$ac_objext
40733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40734 (eval $ac_compile) 2>&5
40735 ac_status=$?
40736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40737 (exit $ac_status); } &&
40738 { ac_try='test -s conftest.$ac_objext'
40739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40740 (eval $ac_try) 2>&5
40741 ac_status=$?
40742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743 (exit $ac_status); }; }; then
40744 glibcxx_cv_func__sqrtl_use=yes
40745 else
40746 echo "$as_me: failed program was:" >&5
40747 sed 's/^/| /' conftest.$ac_ext >&5
40749 glibcxx_cv_func__sqrtl_use=no
40751 rm -f conftest.$ac_objext conftest.$ac_ext
40752 ac_ext=c
40753 ac_cpp='$CPP $CPPFLAGS'
40754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40762 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
40763 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
40765 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
40767 for ac_func in _sqrtl
40769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40770 echo "$as_me:$LINENO: checking for $ac_func" >&5
40771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40772 if eval "test \"\${$as_ac_var+set}\" = set"; then
40773 echo $ECHO_N "(cached) $ECHO_C" >&6
40774 else
40775 if test x$gcc_no_link = xyes; then
40776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40778 { (exit 1); exit 1; }; }
40780 cat >conftest.$ac_ext <<_ACEOF
40781 #line $LINENO "configure"
40782 /* confdefs.h. */
40783 _ACEOF
40784 cat confdefs.h >>conftest.$ac_ext
40785 cat >>conftest.$ac_ext <<_ACEOF
40786 /* end confdefs.h. */
40787 /* System header to define __stub macros and hopefully few prototypes,
40788 which can conflict with char $ac_func (); below.
40789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40790 <limits.h> exists even on freestanding compilers. */
40791 #ifdef __STDC__
40792 # include <limits.h>
40793 #else
40794 # include <assert.h>
40795 #endif
40796 /* Override any gcc2 internal prototype to avoid an error. */
40797 #ifdef __cplusplus
40798 extern "C"
40800 #endif
40801 /* We use char because int might match the return type of a gcc2
40802 builtin and then its argument prototype would still apply. */
40803 char $ac_func ();
40804 /* The GNU C library defines this for functions which it implements
40805 to always fail with ENOSYS. Some functions are actually named
40806 something starting with __ and the normal name is an alias. */
40807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40808 choke me
40809 #else
40810 char (*f) () = $ac_func;
40811 #endif
40812 #ifdef __cplusplus
40814 #endif
40817 main ()
40819 return f != $ac_func;
40821 return 0;
40823 _ACEOF
40824 rm -f conftest.$ac_objext conftest$ac_exeext
40825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40826 (eval $ac_link) 2>&5
40827 ac_status=$?
40828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40829 (exit $ac_status); } &&
40830 { ac_try='test -s conftest$ac_exeext'
40831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832 (eval $ac_try) 2>&5
40833 ac_status=$?
40834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); }; }; then
40836 eval "$as_ac_var=yes"
40837 else
40838 echo "$as_me: failed program was:" >&5
40839 sed 's/^/| /' conftest.$ac_ext >&5
40841 eval "$as_ac_var=no"
40843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40847 if test `eval echo '${'$as_ac_var'}'` = yes; then
40848 cat >>confdefs.h <<_ACEOF
40849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40850 _ACEOF
40853 done
40860 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
40861 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
40862 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
40863 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
40864 echo $ECHO_N "(cached) $ECHO_C" >&6
40865 else
40869 ac_ext=cc
40870 ac_cpp='$CXXCPP $CPPFLAGS'
40871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40875 cat >conftest.$ac_ext <<_ACEOF
40876 #line $LINENO "configure"
40877 /* confdefs.h. */
40878 _ACEOF
40879 cat confdefs.h >>conftest.$ac_ext
40880 cat >>conftest.$ac_ext <<_ACEOF
40881 /* end confdefs.h. */
40882 #include <math.h>
40884 main ()
40886 sincosl(0, 0, 0);
40888 return 0;
40890 _ACEOF
40891 rm -f conftest.$ac_objext
40892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40893 (eval $ac_compile) 2>&5
40894 ac_status=$?
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); } &&
40897 { ac_try='test -s conftest.$ac_objext'
40898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40899 (eval $ac_try) 2>&5
40900 ac_status=$?
40901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902 (exit $ac_status); }; }; then
40903 glibcxx_cv_func_sincosl_use=yes
40904 else
40905 echo "$as_me: failed program was:" >&5
40906 sed 's/^/| /' conftest.$ac_ext >&5
40908 glibcxx_cv_func_sincosl_use=no
40910 rm -f conftest.$ac_objext conftest.$ac_ext
40911 ac_ext=c
40912 ac_cpp='$CPP $CPPFLAGS'
40913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40921 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
40922 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
40924 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
40926 for ac_func in sincosl
40928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40929 echo "$as_me:$LINENO: checking for $ac_func" >&5
40930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40931 if eval "test \"\${$as_ac_var+set}\" = set"; then
40932 echo $ECHO_N "(cached) $ECHO_C" >&6
40933 else
40934 if test x$gcc_no_link = xyes; then
40935 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40936 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40937 { (exit 1); exit 1; }; }
40939 cat >conftest.$ac_ext <<_ACEOF
40940 #line $LINENO "configure"
40941 /* confdefs.h. */
40942 _ACEOF
40943 cat confdefs.h >>conftest.$ac_ext
40944 cat >>conftest.$ac_ext <<_ACEOF
40945 /* end confdefs.h. */
40946 /* System header to define __stub macros and hopefully few prototypes,
40947 which can conflict with char $ac_func (); below.
40948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40949 <limits.h> exists even on freestanding compilers. */
40950 #ifdef __STDC__
40951 # include <limits.h>
40952 #else
40953 # include <assert.h>
40954 #endif
40955 /* Override any gcc2 internal prototype to avoid an error. */
40956 #ifdef __cplusplus
40957 extern "C"
40959 #endif
40960 /* We use char because int might match the return type of a gcc2
40961 builtin and then its argument prototype would still apply. */
40962 char $ac_func ();
40963 /* The GNU C library defines this for functions which it implements
40964 to always fail with ENOSYS. Some functions are actually named
40965 something starting with __ and the normal name is an alias. */
40966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40967 choke me
40968 #else
40969 char (*f) () = $ac_func;
40970 #endif
40971 #ifdef __cplusplus
40973 #endif
40976 main ()
40978 return f != $ac_func;
40980 return 0;
40982 _ACEOF
40983 rm -f conftest.$ac_objext conftest$ac_exeext
40984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40985 (eval $ac_link) 2>&5
40986 ac_status=$?
40987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988 (exit $ac_status); } &&
40989 { ac_try='test -s conftest$ac_exeext'
40990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40991 (eval $ac_try) 2>&5
40992 ac_status=$?
40993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40994 (exit $ac_status); }; }; then
40995 eval "$as_ac_var=yes"
40996 else
40997 echo "$as_me: failed program was:" >&5
40998 sed 's/^/| /' conftest.$ac_ext >&5
41000 eval "$as_ac_var=no"
41002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41006 if test `eval echo '${'$as_ac_var'}'` = yes; then
41007 cat >>confdefs.h <<_ACEOF
41008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41009 _ACEOF
41012 done
41014 else
41016 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
41017 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
41018 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
41019 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
41020 echo $ECHO_N "(cached) $ECHO_C" >&6
41021 else
41025 ac_ext=cc
41026 ac_cpp='$CXXCPP $CPPFLAGS'
41027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41031 cat >conftest.$ac_ext <<_ACEOF
41032 #line $LINENO "configure"
41033 /* confdefs.h. */
41034 _ACEOF
41035 cat confdefs.h >>conftest.$ac_ext
41036 cat >>conftest.$ac_ext <<_ACEOF
41037 /* end confdefs.h. */
41038 #include <math.h>
41040 main ()
41042 _sincosl(0, 0, 0);
41044 return 0;
41046 _ACEOF
41047 rm -f conftest.$ac_objext
41048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41049 (eval $ac_compile) 2>&5
41050 ac_status=$?
41051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052 (exit $ac_status); } &&
41053 { ac_try='test -s conftest.$ac_objext'
41054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41055 (eval $ac_try) 2>&5
41056 ac_status=$?
41057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41058 (exit $ac_status); }; }; then
41059 glibcxx_cv_func__sincosl_use=yes
41060 else
41061 echo "$as_me: failed program was:" >&5
41062 sed 's/^/| /' conftest.$ac_ext >&5
41064 glibcxx_cv_func__sincosl_use=no
41066 rm -f conftest.$ac_objext conftest.$ac_ext
41067 ac_ext=c
41068 ac_cpp='$CPP $CPPFLAGS'
41069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41077 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
41078 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
41080 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
41082 for ac_func in _sincosl
41084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41085 echo "$as_me:$LINENO: checking for $ac_func" >&5
41086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41087 if eval "test \"\${$as_ac_var+set}\" = set"; then
41088 echo $ECHO_N "(cached) $ECHO_C" >&6
41089 else
41090 if test x$gcc_no_link = xyes; then
41091 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41092 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41093 { (exit 1); exit 1; }; }
41095 cat >conftest.$ac_ext <<_ACEOF
41096 #line $LINENO "configure"
41097 /* confdefs.h. */
41098 _ACEOF
41099 cat confdefs.h >>conftest.$ac_ext
41100 cat >>conftest.$ac_ext <<_ACEOF
41101 /* end confdefs.h. */
41102 /* System header to define __stub macros and hopefully few prototypes,
41103 which can conflict with char $ac_func (); below.
41104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41105 <limits.h> exists even on freestanding compilers. */
41106 #ifdef __STDC__
41107 # include <limits.h>
41108 #else
41109 # include <assert.h>
41110 #endif
41111 /* Override any gcc2 internal prototype to avoid an error. */
41112 #ifdef __cplusplus
41113 extern "C"
41115 #endif
41116 /* We use char because int might match the return type of a gcc2
41117 builtin and then its argument prototype would still apply. */
41118 char $ac_func ();
41119 /* The GNU C library defines this for functions which it implements
41120 to always fail with ENOSYS. Some functions are actually named
41121 something starting with __ and the normal name is an alias. */
41122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41123 choke me
41124 #else
41125 char (*f) () = $ac_func;
41126 #endif
41127 #ifdef __cplusplus
41129 #endif
41132 main ()
41134 return f != $ac_func;
41136 return 0;
41138 _ACEOF
41139 rm -f conftest.$ac_objext conftest$ac_exeext
41140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41141 (eval $ac_link) 2>&5
41142 ac_status=$?
41143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 (exit $ac_status); } &&
41145 { ac_try='test -s conftest$ac_exeext'
41146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41147 (eval $ac_try) 2>&5
41148 ac_status=$?
41149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); }; }; then
41151 eval "$as_ac_var=yes"
41152 else
41153 echo "$as_me: failed program was:" >&5
41154 sed 's/^/| /' conftest.$ac_ext >&5
41156 eval "$as_ac_var=no"
41158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41162 if test `eval echo '${'$as_ac_var'}'` = yes; then
41163 cat >>confdefs.h <<_ACEOF
41164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41165 _ACEOF
41168 done
41175 echo "$as_me:$LINENO: checking for finitel declaration" >&5
41176 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
41177 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41178 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
41179 echo $ECHO_N "(cached) $ECHO_C" >&6
41180 else
41184 ac_ext=cc
41185 ac_cpp='$CXXCPP $CPPFLAGS'
41186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41190 cat >conftest.$ac_ext <<_ACEOF
41191 #line $LINENO "configure"
41192 /* confdefs.h. */
41193 _ACEOF
41194 cat confdefs.h >>conftest.$ac_ext
41195 cat >>conftest.$ac_ext <<_ACEOF
41196 /* end confdefs.h. */
41197 #include <math.h>
41198 #ifdef HAVE_IEEEFP_H
41199 #include <ieeefp.h>
41200 #endif
41203 main ()
41205 finitel(0);
41207 return 0;
41209 _ACEOF
41210 rm -f conftest.$ac_objext
41211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41212 (eval $ac_compile) 2>&5
41213 ac_status=$?
41214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41215 (exit $ac_status); } &&
41216 { ac_try='test -s conftest.$ac_objext'
41217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41218 (eval $ac_try) 2>&5
41219 ac_status=$?
41220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41221 (exit $ac_status); }; }; then
41222 glibcxx_cv_func_finitel_use=yes
41223 else
41224 echo "$as_me: failed program was:" >&5
41225 sed 's/^/| /' conftest.$ac_ext >&5
41227 glibcxx_cv_func_finitel_use=no
41229 rm -f conftest.$ac_objext conftest.$ac_ext
41230 ac_ext=c
41231 ac_cpp='$CPP $CPPFLAGS'
41232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41240 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
41241 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
41243 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41245 for ac_func in finitel
41247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41248 echo "$as_me:$LINENO: checking for $ac_func" >&5
41249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41250 if eval "test \"\${$as_ac_var+set}\" = set"; then
41251 echo $ECHO_N "(cached) $ECHO_C" >&6
41252 else
41253 if test x$gcc_no_link = xyes; then
41254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41256 { (exit 1); exit 1; }; }
41258 cat >conftest.$ac_ext <<_ACEOF
41259 #line $LINENO "configure"
41260 /* confdefs.h. */
41261 _ACEOF
41262 cat confdefs.h >>conftest.$ac_ext
41263 cat >>conftest.$ac_ext <<_ACEOF
41264 /* end confdefs.h. */
41265 /* System header to define __stub macros and hopefully few prototypes,
41266 which can conflict with char $ac_func (); below.
41267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41268 <limits.h> exists even on freestanding compilers. */
41269 #ifdef __STDC__
41270 # include <limits.h>
41271 #else
41272 # include <assert.h>
41273 #endif
41274 /* Override any gcc2 internal prototype to avoid an error. */
41275 #ifdef __cplusplus
41276 extern "C"
41278 #endif
41279 /* We use char because int might match the return type of a gcc2
41280 builtin and then its argument prototype would still apply. */
41281 char $ac_func ();
41282 /* The GNU C library defines this for functions which it implements
41283 to always fail with ENOSYS. Some functions are actually named
41284 something starting with __ and the normal name is an alias. */
41285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41286 choke me
41287 #else
41288 char (*f) () = $ac_func;
41289 #endif
41290 #ifdef __cplusplus
41292 #endif
41295 main ()
41297 return f != $ac_func;
41299 return 0;
41301 _ACEOF
41302 rm -f conftest.$ac_objext conftest$ac_exeext
41303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41304 (eval $ac_link) 2>&5
41305 ac_status=$?
41306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307 (exit $ac_status); } &&
41308 { ac_try='test -s conftest$ac_exeext'
41309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41310 (eval $ac_try) 2>&5
41311 ac_status=$?
41312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313 (exit $ac_status); }; }; then
41314 eval "$as_ac_var=yes"
41315 else
41316 echo "$as_me: failed program was:" >&5
41317 sed 's/^/| /' conftest.$ac_ext >&5
41319 eval "$as_ac_var=no"
41321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41325 if test `eval echo '${'$as_ac_var'}'` = yes; then
41326 cat >>confdefs.h <<_ACEOF
41327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41328 _ACEOF
41331 done
41333 else
41335 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
41336 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
41337 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
41338 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
41339 echo $ECHO_N "(cached) $ECHO_C" >&6
41340 else
41344 ac_ext=cc
41345 ac_cpp='$CXXCPP $CPPFLAGS'
41346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41350 cat >conftest.$ac_ext <<_ACEOF
41351 #line $LINENO "configure"
41352 /* confdefs.h. */
41353 _ACEOF
41354 cat confdefs.h >>conftest.$ac_ext
41355 cat >>conftest.$ac_ext <<_ACEOF
41356 /* end confdefs.h. */
41357 #include <math.h>
41358 #ifdef HAVE_IEEEFP_H
41359 #include <ieeefp.h>
41360 #endif
41363 main ()
41365 _finitel(0);
41367 return 0;
41369 _ACEOF
41370 rm -f conftest.$ac_objext
41371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41372 (eval $ac_compile) 2>&5
41373 ac_status=$?
41374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375 (exit $ac_status); } &&
41376 { ac_try='test -s conftest.$ac_objext'
41377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41378 (eval $ac_try) 2>&5
41379 ac_status=$?
41380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41381 (exit $ac_status); }; }; then
41382 glibcxx_cv_func__finitel_use=yes
41383 else
41384 echo "$as_me: failed program was:" >&5
41385 sed 's/^/| /' conftest.$ac_ext >&5
41387 glibcxx_cv_func__finitel_use=no
41389 rm -f conftest.$ac_objext conftest.$ac_ext
41390 ac_ext=c
41391 ac_cpp='$CPP $CPPFLAGS'
41392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41400 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
41401 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
41403 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
41405 for ac_func in _finitel
41407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41408 echo "$as_me:$LINENO: checking for $ac_func" >&5
41409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41410 if eval "test \"\${$as_ac_var+set}\" = set"; then
41411 echo $ECHO_N "(cached) $ECHO_C" >&6
41412 else
41413 if test x$gcc_no_link = xyes; then
41414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41416 { (exit 1); exit 1; }; }
41418 cat >conftest.$ac_ext <<_ACEOF
41419 #line $LINENO "configure"
41420 /* confdefs.h. */
41421 _ACEOF
41422 cat confdefs.h >>conftest.$ac_ext
41423 cat >>conftest.$ac_ext <<_ACEOF
41424 /* end confdefs.h. */
41425 /* System header to define __stub macros and hopefully few prototypes,
41426 which can conflict with char $ac_func (); below.
41427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41428 <limits.h> exists even on freestanding compilers. */
41429 #ifdef __STDC__
41430 # include <limits.h>
41431 #else
41432 # include <assert.h>
41433 #endif
41434 /* Override any gcc2 internal prototype to avoid an error. */
41435 #ifdef __cplusplus
41436 extern "C"
41438 #endif
41439 /* We use char because int might match the return type of a gcc2
41440 builtin and then its argument prototype would still apply. */
41441 char $ac_func ();
41442 /* The GNU C library defines this for functions which it implements
41443 to always fail with ENOSYS. Some functions are actually named
41444 something starting with __ and the normal name is an alias. */
41445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41446 choke me
41447 #else
41448 char (*f) () = $ac_func;
41449 #endif
41450 #ifdef __cplusplus
41452 #endif
41455 main ()
41457 return f != $ac_func;
41459 return 0;
41461 _ACEOF
41462 rm -f conftest.$ac_objext conftest$ac_exeext
41463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41464 (eval $ac_link) 2>&5
41465 ac_status=$?
41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467 (exit $ac_status); } &&
41468 { ac_try='test -s conftest$ac_exeext'
41469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470 (eval $ac_try) 2>&5
41471 ac_status=$?
41472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473 (exit $ac_status); }; }; then
41474 eval "$as_ac_var=yes"
41475 else
41476 echo "$as_me: failed program was:" >&5
41477 sed 's/^/| /' conftest.$ac_ext >&5
41479 eval "$as_ac_var=no"
41481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41485 if test `eval echo '${'$as_ac_var'}'` = yes; then
41486 cat >>confdefs.h <<_ACEOF
41487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41488 _ACEOF
41491 done
41499 echo "$as_me:$LINENO: checking for _float trig functions" >&5
41500 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
41501 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
41502 echo $ECHO_N "(cached) $ECHO_C" >&6
41503 else
41507 ac_ext=cc
41508 ac_cpp='$CXXCPP $CPPFLAGS'
41509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41513 cat >conftest.$ac_ext <<_ACEOF
41514 #line $LINENO "configure"
41515 /* confdefs.h. */
41516 _ACEOF
41517 cat confdefs.h >>conftest.$ac_ext
41518 cat >>conftest.$ac_ext <<_ACEOF
41519 /* end confdefs.h. */
41520 #include <math.h>
41522 main ()
41524 `for x in _acosf _asinf _atanf \
41525 _cosf _sinf _tanf \
41526 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
41528 return 0;
41530 _ACEOF
41531 rm -f conftest.$ac_objext
41532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41533 (eval $ac_compile) 2>&5
41534 ac_status=$?
41535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41536 (exit $ac_status); } &&
41537 { ac_try='test -s conftest.$ac_objext'
41538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539 (eval $ac_try) 2>&5
41540 ac_status=$?
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); }; }; then
41543 glibcxx_cv_func__float_trig_use=yes
41544 else
41545 echo "$as_me: failed program was:" >&5
41546 sed 's/^/| /' conftest.$ac_ext >&5
41548 glibcxx_cv_func__float_trig_use=no
41550 rm -f conftest.$ac_objext conftest.$ac_ext
41551 ac_ext=c
41552 ac_cpp='$CPP $CPPFLAGS'
41553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41559 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
41560 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
41561 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
41571 for ac_func in _acosf _asinf _atanf \
41572 _cosf _sinf _tanf \
41573 _coshf _sinhf _tanhf
41575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41576 echo "$as_me:$LINENO: checking for $ac_func" >&5
41577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41578 if eval "test \"\${$as_ac_var+set}\" = set"; then
41579 echo $ECHO_N "(cached) $ECHO_C" >&6
41580 else
41581 if test x$gcc_no_link = xyes; then
41582 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41583 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41584 { (exit 1); exit 1; }; }
41586 cat >conftest.$ac_ext <<_ACEOF
41587 #line $LINENO "configure"
41588 /* confdefs.h. */
41589 _ACEOF
41590 cat confdefs.h >>conftest.$ac_ext
41591 cat >>conftest.$ac_ext <<_ACEOF
41592 /* end confdefs.h. */
41593 /* System header to define __stub macros and hopefully few prototypes,
41594 which can conflict with char $ac_func (); below.
41595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41596 <limits.h> exists even on freestanding compilers. */
41597 #ifdef __STDC__
41598 # include <limits.h>
41599 #else
41600 # include <assert.h>
41601 #endif
41602 /* Override any gcc2 internal prototype to avoid an error. */
41603 #ifdef __cplusplus
41604 extern "C"
41606 #endif
41607 /* We use char because int might match the return type of a gcc2
41608 builtin and then its argument prototype would still apply. */
41609 char $ac_func ();
41610 /* The GNU C library defines this for functions which it implements
41611 to always fail with ENOSYS. Some functions are actually named
41612 something starting with __ and the normal name is an alias. */
41613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41614 choke me
41615 #else
41616 char (*f) () = $ac_func;
41617 #endif
41618 #ifdef __cplusplus
41620 #endif
41623 main ()
41625 return f != $ac_func;
41627 return 0;
41629 _ACEOF
41630 rm -f conftest.$ac_objext conftest$ac_exeext
41631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41632 (eval $ac_link) 2>&5
41633 ac_status=$?
41634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635 (exit $ac_status); } &&
41636 { ac_try='test -s conftest$ac_exeext'
41637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41638 (eval $ac_try) 2>&5
41639 ac_status=$?
41640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41641 (exit $ac_status); }; }; then
41642 eval "$as_ac_var=yes"
41643 else
41644 echo "$as_me: failed program was:" >&5
41645 sed 's/^/| /' conftest.$ac_ext >&5
41647 eval "$as_ac_var=no"
41649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41653 if test `eval echo '${'$as_ac_var'}'` = yes; then
41654 cat >>confdefs.h <<_ACEOF
41655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41656 _ACEOF
41659 done
41664 echo "$as_me:$LINENO: checking for _float round functions" >&5
41665 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
41666 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
41667 echo $ECHO_N "(cached) $ECHO_C" >&6
41668 else
41672 ac_ext=cc
41673 ac_cpp='$CXXCPP $CPPFLAGS'
41674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41678 cat >conftest.$ac_ext <<_ACEOF
41679 #line $LINENO "configure"
41680 /* confdefs.h. */
41681 _ACEOF
41682 cat confdefs.h >>conftest.$ac_ext
41683 cat >>conftest.$ac_ext <<_ACEOF
41684 /* end confdefs.h. */
41685 #include <math.h>
41687 main ()
41689 `for x in _ceilf _floorf; do echo "$x (0);"; done`
41691 return 0;
41693 _ACEOF
41694 rm -f conftest.$ac_objext
41695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41696 (eval $ac_compile) 2>&5
41697 ac_status=$?
41698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699 (exit $ac_status); } &&
41700 { ac_try='test -s conftest.$ac_objext'
41701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41702 (eval $ac_try) 2>&5
41703 ac_status=$?
41704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41705 (exit $ac_status); }; }; then
41706 glibcxx_cv_func__float_round_use=yes
41707 else
41708 echo "$as_me: failed program was:" >&5
41709 sed 's/^/| /' conftest.$ac_ext >&5
41711 glibcxx_cv_func__float_round_use=no
41713 rm -f conftest.$ac_objext conftest.$ac_ext
41714 ac_ext=c
41715 ac_cpp='$CPP $CPPFLAGS'
41716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41722 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
41723 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
41724 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
41727 for ac_func in _ceilf _floorf
41729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41730 echo "$as_me:$LINENO: checking for $ac_func" >&5
41731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41732 if eval "test \"\${$as_ac_var+set}\" = set"; then
41733 echo $ECHO_N "(cached) $ECHO_C" >&6
41734 else
41735 if test x$gcc_no_link = xyes; then
41736 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41738 { (exit 1); exit 1; }; }
41740 cat >conftest.$ac_ext <<_ACEOF
41741 #line $LINENO "configure"
41742 /* confdefs.h. */
41743 _ACEOF
41744 cat confdefs.h >>conftest.$ac_ext
41745 cat >>conftest.$ac_ext <<_ACEOF
41746 /* end confdefs.h. */
41747 /* System header to define __stub macros and hopefully few prototypes,
41748 which can conflict with char $ac_func (); below.
41749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41750 <limits.h> exists even on freestanding compilers. */
41751 #ifdef __STDC__
41752 # include <limits.h>
41753 #else
41754 # include <assert.h>
41755 #endif
41756 /* Override any gcc2 internal prototype to avoid an error. */
41757 #ifdef __cplusplus
41758 extern "C"
41760 #endif
41761 /* We use char because int might match the return type of a gcc2
41762 builtin and then its argument prototype would still apply. */
41763 char $ac_func ();
41764 /* The GNU C library defines this for functions which it implements
41765 to always fail with ENOSYS. Some functions are actually named
41766 something starting with __ and the normal name is an alias. */
41767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41768 choke me
41769 #else
41770 char (*f) () = $ac_func;
41771 #endif
41772 #ifdef __cplusplus
41774 #endif
41777 main ()
41779 return f != $ac_func;
41781 return 0;
41783 _ACEOF
41784 rm -f conftest.$ac_objext conftest$ac_exeext
41785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41786 (eval $ac_link) 2>&5
41787 ac_status=$?
41788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41789 (exit $ac_status); } &&
41790 { ac_try='test -s conftest$ac_exeext'
41791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41792 (eval $ac_try) 2>&5
41793 ac_status=$?
41794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41795 (exit $ac_status); }; }; then
41796 eval "$as_ac_var=yes"
41797 else
41798 echo "$as_me: failed program was:" >&5
41799 sed 's/^/| /' conftest.$ac_ext >&5
41801 eval "$as_ac_var=no"
41803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41807 if test `eval echo '${'$as_ac_var'}'` = yes; then
41808 cat >>confdefs.h <<_ACEOF
41809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41810 _ACEOF
41813 done
41819 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
41820 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
41821 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
41822 echo $ECHO_N "(cached) $ECHO_C" >&6
41823 else
41827 ac_ext=cc
41828 ac_cpp='$CXXCPP $CPPFLAGS'
41829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41833 cat >conftest.$ac_ext <<_ACEOF
41834 #line $LINENO "configure"
41835 /* confdefs.h. */
41836 _ACEOF
41837 cat confdefs.h >>conftest.$ac_ext
41838 cat >>conftest.$ac_ext <<_ACEOF
41839 /* end confdefs.h. */
41840 #include <math.h>
41842 main ()
41844 `for x in _acosl _asinl _atanl \
41845 _cosl _sinl _tanl \
41846 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
41848 return 0;
41850 _ACEOF
41851 rm -f conftest.$ac_objext
41852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41853 (eval $ac_compile) 2>&5
41854 ac_status=$?
41855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856 (exit $ac_status); } &&
41857 { ac_try='test -s conftest.$ac_objext'
41858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41859 (eval $ac_try) 2>&5
41860 ac_status=$?
41861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41862 (exit $ac_status); }; }; then
41863 glibcxx_cv_func__long_double_trig_use=yes
41864 else
41865 echo "$as_me: failed program was:" >&5
41866 sed 's/^/| /' conftest.$ac_ext >&5
41868 glibcxx_cv_func__long_double_trig_use=no
41870 rm -f conftest.$ac_objext conftest.$ac_ext
41871 ac_ext=c
41872 ac_cpp='$CPP $CPPFLAGS'
41873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41879 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
41880 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
41881 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
41891 for ac_func in _acosl _asinl _atanl \
41892 _cosl _sinl _tanl \
41893 _coshl _sinhl _tanhl
41895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41896 echo "$as_me:$LINENO: checking for $ac_func" >&5
41897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41898 if eval "test \"\${$as_ac_var+set}\" = set"; then
41899 echo $ECHO_N "(cached) $ECHO_C" >&6
41900 else
41901 if test x$gcc_no_link = xyes; then
41902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41904 { (exit 1); exit 1; }; }
41906 cat >conftest.$ac_ext <<_ACEOF
41907 #line $LINENO "configure"
41908 /* confdefs.h. */
41909 _ACEOF
41910 cat confdefs.h >>conftest.$ac_ext
41911 cat >>conftest.$ac_ext <<_ACEOF
41912 /* end confdefs.h. */
41913 /* System header to define __stub macros and hopefully few prototypes,
41914 which can conflict with char $ac_func (); below.
41915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41916 <limits.h> exists even on freestanding compilers. */
41917 #ifdef __STDC__
41918 # include <limits.h>
41919 #else
41920 # include <assert.h>
41921 #endif
41922 /* Override any gcc2 internal prototype to avoid an error. */
41923 #ifdef __cplusplus
41924 extern "C"
41926 #endif
41927 /* We use char because int might match the return type of a gcc2
41928 builtin and then its argument prototype would still apply. */
41929 char $ac_func ();
41930 /* The GNU C library defines this for functions which it implements
41931 to always fail with ENOSYS. Some functions are actually named
41932 something starting with __ and the normal name is an alias. */
41933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41934 choke me
41935 #else
41936 char (*f) () = $ac_func;
41937 #endif
41938 #ifdef __cplusplus
41940 #endif
41943 main ()
41945 return f != $ac_func;
41947 return 0;
41949 _ACEOF
41950 rm -f conftest.$ac_objext conftest$ac_exeext
41951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41952 (eval $ac_link) 2>&5
41953 ac_status=$?
41954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41955 (exit $ac_status); } &&
41956 { ac_try='test -s conftest$ac_exeext'
41957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41958 (eval $ac_try) 2>&5
41959 ac_status=$?
41960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41961 (exit $ac_status); }; }; then
41962 eval "$as_ac_var=yes"
41963 else
41964 echo "$as_me: failed program was:" >&5
41965 sed 's/^/| /' conftest.$ac_ext >&5
41967 eval "$as_ac_var=no"
41969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41973 if test `eval echo '${'$as_ac_var'}'` = yes; then
41974 cat >>confdefs.h <<_ACEOF
41975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41976 _ACEOF
41979 done
41984 echo "$as_me:$LINENO: checking for _long double round functions" >&5
41985 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
41986 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
41987 echo $ECHO_N "(cached) $ECHO_C" >&6
41988 else
41992 ac_ext=cc
41993 ac_cpp='$CXXCPP $CPPFLAGS'
41994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41998 cat >conftest.$ac_ext <<_ACEOF
41999 #line $LINENO "configure"
42000 /* confdefs.h. */
42001 _ACEOF
42002 cat confdefs.h >>conftest.$ac_ext
42003 cat >>conftest.$ac_ext <<_ACEOF
42004 /* end confdefs.h. */
42005 #include <math.h>
42007 main ()
42009 `for x in _ceill _floorl; do echo "$x (0);"; done`
42011 return 0;
42013 _ACEOF
42014 rm -f conftest.$ac_objext
42015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42016 (eval $ac_compile) 2>&5
42017 ac_status=$?
42018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42019 (exit $ac_status); } &&
42020 { ac_try='test -s conftest.$ac_objext'
42021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42022 (eval $ac_try) 2>&5
42023 ac_status=$?
42024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42025 (exit $ac_status); }; }; then
42026 glibcxx_cv_func__long_double_round_use=yes
42027 else
42028 echo "$as_me: failed program was:" >&5
42029 sed 's/^/| /' conftest.$ac_ext >&5
42031 glibcxx_cv_func__long_double_round_use=no
42033 rm -f conftest.$ac_objext conftest.$ac_ext
42034 ac_ext=c
42035 ac_cpp='$CPP $CPPFLAGS'
42036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42042 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
42043 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
42044 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
42047 for ac_func in _ceill _floorl
42049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42050 echo "$as_me:$LINENO: checking for $ac_func" >&5
42051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42052 if eval "test \"\${$as_ac_var+set}\" = set"; then
42053 echo $ECHO_N "(cached) $ECHO_C" >&6
42054 else
42055 if test x$gcc_no_link = xyes; then
42056 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42057 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42058 { (exit 1); exit 1; }; }
42060 cat >conftest.$ac_ext <<_ACEOF
42061 #line $LINENO "configure"
42062 /* confdefs.h. */
42063 _ACEOF
42064 cat confdefs.h >>conftest.$ac_ext
42065 cat >>conftest.$ac_ext <<_ACEOF
42066 /* end confdefs.h. */
42067 /* System header to define __stub macros and hopefully few prototypes,
42068 which can conflict with char $ac_func (); below.
42069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42070 <limits.h> exists even on freestanding compilers. */
42071 #ifdef __STDC__
42072 # include <limits.h>
42073 #else
42074 # include <assert.h>
42075 #endif
42076 /* Override any gcc2 internal prototype to avoid an error. */
42077 #ifdef __cplusplus
42078 extern "C"
42080 #endif
42081 /* We use char because int might match the return type of a gcc2
42082 builtin and then its argument prototype would still apply. */
42083 char $ac_func ();
42084 /* The GNU C library defines this for functions which it implements
42085 to always fail with ENOSYS. Some functions are actually named
42086 something starting with __ and the normal name is an alias. */
42087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42088 choke me
42089 #else
42090 char (*f) () = $ac_func;
42091 #endif
42092 #ifdef __cplusplus
42094 #endif
42097 main ()
42099 return f != $ac_func;
42101 return 0;
42103 _ACEOF
42104 rm -f conftest.$ac_objext conftest$ac_exeext
42105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42106 (eval $ac_link) 2>&5
42107 ac_status=$?
42108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42109 (exit $ac_status); } &&
42110 { ac_try='test -s conftest$ac_exeext'
42111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42112 (eval $ac_try) 2>&5
42113 ac_status=$?
42114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42115 (exit $ac_status); }; }; then
42116 eval "$as_ac_var=yes"
42117 else
42118 echo "$as_me: failed program was:" >&5
42119 sed 's/^/| /' conftest.$ac_ext >&5
42121 eval "$as_ac_var=no"
42123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42127 if test `eval echo '${'$as_ac_var'}'` = yes; then
42128 cat >>confdefs.h <<_ACEOF
42129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42130 _ACEOF
42133 done
42138 LIBS="$ac_save_LIBS"
42139 CXXFLAGS="$ac_save_CXXFLAGS"
42143 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
42144 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
42145 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
42146 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
42147 echo $ECHO_N "(cached) $ECHO_C" >&6
42148 else
42152 ac_ext=cc
42153 ac_cpp='$CXXCPP $CPPFLAGS'
42154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42158 cat >conftest.$ac_ext <<_ACEOF
42159 #line $LINENO "configure"
42160 /* confdefs.h. */
42161 _ACEOF
42162 cat confdefs.h >>conftest.$ac_ext
42163 cat >>conftest.$ac_ext <<_ACEOF
42164 /* end confdefs.h. */
42165 #include <math.h>
42167 main ()
42169 __builtin_abs(0);
42171 return 0;
42173 _ACEOF
42174 rm -f conftest.$ac_objext
42175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42176 (eval $ac_compile) 2>&5
42177 ac_status=$?
42178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42179 (exit $ac_status); } &&
42180 { ac_try='test -s conftest.$ac_objext'
42181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42182 (eval $ac_try) 2>&5
42183 ac_status=$?
42184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185 (exit $ac_status); }; }; then
42186 glibcxx_cv_func___builtin_abs_use=yes
42187 else
42188 echo "$as_me: failed program was:" >&5
42189 sed 's/^/| /' conftest.$ac_ext >&5
42191 glibcxx_cv_func___builtin_abs_use=no
42193 rm -f conftest.$ac_objext conftest.$ac_ext
42194 ac_ext=c
42195 ac_cpp='$CPP $CPPFLAGS'
42196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42204 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
42205 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
42206 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
42207 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
42208 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
42209 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
42210 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
42211 echo $ECHO_N "(cached) $ECHO_C" >&6
42212 else
42214 if test x$gcc_no_link = xyes; then
42215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42217 { (exit 1); exit 1; }; }
42219 cat >conftest.$ac_ext <<_ACEOF
42220 #line $LINENO "configure"
42221 /* confdefs.h. */
42222 _ACEOF
42223 cat confdefs.h >>conftest.$ac_ext
42224 cat >>conftest.$ac_ext <<_ACEOF
42225 /* end confdefs.h. */
42226 #include <math.h>
42228 main ()
42230 __builtin_abs(0);
42232 return 0;
42234 _ACEOF
42235 rm -f conftest.$ac_objext conftest$ac_exeext
42236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42237 (eval $ac_link) 2>&5
42238 ac_status=$?
42239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); } &&
42241 { ac_try='test -s conftest$ac_exeext'
42242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42243 (eval $ac_try) 2>&5
42244 ac_status=$?
42245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42246 (exit $ac_status); }; }; then
42247 glibcxx_cv_func___builtin_abs_link=yes
42248 else
42249 echo "$as_me: failed program was:" >&5
42250 sed 's/^/| /' conftest.$ac_ext >&5
42252 glibcxx_cv_func___builtin_abs_link=no
42254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42259 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
42260 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
42261 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
42262 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42263 cat >>confdefs.h <<_ACEOF
42264 #define ${ac_tr_func} 1
42265 _ACEOF
42271 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
42272 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
42273 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
42274 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
42275 echo $ECHO_N "(cached) $ECHO_C" >&6
42276 else
42280 ac_ext=cc
42281 ac_cpp='$CXXCPP $CPPFLAGS'
42282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42286 cat >conftest.$ac_ext <<_ACEOF
42287 #line $LINENO "configure"
42288 /* confdefs.h. */
42289 _ACEOF
42290 cat confdefs.h >>conftest.$ac_ext
42291 cat >>conftest.$ac_ext <<_ACEOF
42292 /* end confdefs.h. */
42293 #include <math.h>
42295 main ()
42297 __builtin_fabsf(0);
42299 return 0;
42301 _ACEOF
42302 rm -f conftest.$ac_objext
42303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42304 (eval $ac_compile) 2>&5
42305 ac_status=$?
42306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307 (exit $ac_status); } &&
42308 { ac_try='test -s conftest.$ac_objext'
42309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42310 (eval $ac_try) 2>&5
42311 ac_status=$?
42312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42313 (exit $ac_status); }; }; then
42314 glibcxx_cv_func___builtin_fabsf_use=yes
42315 else
42316 echo "$as_me: failed program was:" >&5
42317 sed 's/^/| /' conftest.$ac_ext >&5
42319 glibcxx_cv_func___builtin_fabsf_use=no
42321 rm -f conftest.$ac_objext conftest.$ac_ext
42322 ac_ext=c
42323 ac_cpp='$CPP $CPPFLAGS'
42324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42332 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
42333 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
42334 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
42335 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
42336 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
42337 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
42338 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
42339 echo $ECHO_N "(cached) $ECHO_C" >&6
42340 else
42342 if test x$gcc_no_link = xyes; then
42343 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42345 { (exit 1); exit 1; }; }
42347 cat >conftest.$ac_ext <<_ACEOF
42348 #line $LINENO "configure"
42349 /* confdefs.h. */
42350 _ACEOF
42351 cat confdefs.h >>conftest.$ac_ext
42352 cat >>conftest.$ac_ext <<_ACEOF
42353 /* end confdefs.h. */
42354 #include <math.h>
42356 main ()
42358 __builtin_fabsf(0);
42360 return 0;
42362 _ACEOF
42363 rm -f conftest.$ac_objext conftest$ac_exeext
42364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42365 (eval $ac_link) 2>&5
42366 ac_status=$?
42367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368 (exit $ac_status); } &&
42369 { ac_try='test -s conftest$ac_exeext'
42370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42371 (eval $ac_try) 2>&5
42372 ac_status=$?
42373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42374 (exit $ac_status); }; }; then
42375 glibcxx_cv_func___builtin_fabsf_link=yes
42376 else
42377 echo "$as_me: failed program was:" >&5
42378 sed 's/^/| /' conftest.$ac_ext >&5
42380 glibcxx_cv_func___builtin_fabsf_link=no
42382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42387 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
42388 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
42389 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
42390 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42391 cat >>confdefs.h <<_ACEOF
42392 #define ${ac_tr_func} 1
42393 _ACEOF
42399 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
42400 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
42401 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
42402 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
42403 echo $ECHO_N "(cached) $ECHO_C" >&6
42404 else
42408 ac_ext=cc
42409 ac_cpp='$CXXCPP $CPPFLAGS'
42410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42414 cat >conftest.$ac_ext <<_ACEOF
42415 #line $LINENO "configure"
42416 /* confdefs.h. */
42417 _ACEOF
42418 cat confdefs.h >>conftest.$ac_ext
42419 cat >>conftest.$ac_ext <<_ACEOF
42420 /* end confdefs.h. */
42421 #include <math.h>
42423 main ()
42425 __builtin_fabs(0);
42427 return 0;
42429 _ACEOF
42430 rm -f conftest.$ac_objext
42431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42432 (eval $ac_compile) 2>&5
42433 ac_status=$?
42434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435 (exit $ac_status); } &&
42436 { ac_try='test -s conftest.$ac_objext'
42437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42438 (eval $ac_try) 2>&5
42439 ac_status=$?
42440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42441 (exit $ac_status); }; }; then
42442 glibcxx_cv_func___builtin_fabs_use=yes
42443 else
42444 echo "$as_me: failed program was:" >&5
42445 sed 's/^/| /' conftest.$ac_ext >&5
42447 glibcxx_cv_func___builtin_fabs_use=no
42449 rm -f conftest.$ac_objext conftest.$ac_ext
42450 ac_ext=c
42451 ac_cpp='$CPP $CPPFLAGS'
42452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42460 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
42461 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
42462 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
42463 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
42464 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
42465 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
42466 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
42467 echo $ECHO_N "(cached) $ECHO_C" >&6
42468 else
42470 if test x$gcc_no_link = xyes; then
42471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42473 { (exit 1); exit 1; }; }
42475 cat >conftest.$ac_ext <<_ACEOF
42476 #line $LINENO "configure"
42477 /* confdefs.h. */
42478 _ACEOF
42479 cat confdefs.h >>conftest.$ac_ext
42480 cat >>conftest.$ac_ext <<_ACEOF
42481 /* end confdefs.h. */
42482 #include <math.h>
42484 main ()
42486 __builtin_fabs(0);
42488 return 0;
42490 _ACEOF
42491 rm -f conftest.$ac_objext conftest$ac_exeext
42492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42493 (eval $ac_link) 2>&5
42494 ac_status=$?
42495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42496 (exit $ac_status); } &&
42497 { ac_try='test -s conftest$ac_exeext'
42498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42499 (eval $ac_try) 2>&5
42500 ac_status=$?
42501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42502 (exit $ac_status); }; }; then
42503 glibcxx_cv_func___builtin_fabs_link=yes
42504 else
42505 echo "$as_me: failed program was:" >&5
42506 sed 's/^/| /' conftest.$ac_ext >&5
42508 glibcxx_cv_func___builtin_fabs_link=no
42510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42515 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
42516 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
42517 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
42518 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42519 cat >>confdefs.h <<_ACEOF
42520 #define ${ac_tr_func} 1
42521 _ACEOF
42527 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
42528 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
42529 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
42530 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
42531 echo $ECHO_N "(cached) $ECHO_C" >&6
42532 else
42536 ac_ext=cc
42537 ac_cpp='$CXXCPP $CPPFLAGS'
42538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42542 cat >conftest.$ac_ext <<_ACEOF
42543 #line $LINENO "configure"
42544 /* confdefs.h. */
42545 _ACEOF
42546 cat confdefs.h >>conftest.$ac_ext
42547 cat >>conftest.$ac_ext <<_ACEOF
42548 /* end confdefs.h. */
42549 #include <math.h>
42551 main ()
42553 __builtin_fabsl(0);
42555 return 0;
42557 _ACEOF
42558 rm -f conftest.$ac_objext
42559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42560 (eval $ac_compile) 2>&5
42561 ac_status=$?
42562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563 (exit $ac_status); } &&
42564 { ac_try='test -s conftest.$ac_objext'
42565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42566 (eval $ac_try) 2>&5
42567 ac_status=$?
42568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); }; }; then
42570 glibcxx_cv_func___builtin_fabsl_use=yes
42571 else
42572 echo "$as_me: failed program was:" >&5
42573 sed 's/^/| /' conftest.$ac_ext >&5
42575 glibcxx_cv_func___builtin_fabsl_use=no
42577 rm -f conftest.$ac_objext conftest.$ac_ext
42578 ac_ext=c
42579 ac_cpp='$CPP $CPPFLAGS'
42580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42588 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
42589 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
42590 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
42591 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
42592 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
42593 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
42594 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
42595 echo $ECHO_N "(cached) $ECHO_C" >&6
42596 else
42598 if test x$gcc_no_link = xyes; then
42599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42601 { (exit 1); exit 1; }; }
42603 cat >conftest.$ac_ext <<_ACEOF
42604 #line $LINENO "configure"
42605 /* confdefs.h. */
42606 _ACEOF
42607 cat confdefs.h >>conftest.$ac_ext
42608 cat >>conftest.$ac_ext <<_ACEOF
42609 /* end confdefs.h. */
42610 #include <math.h>
42612 main ()
42614 __builtin_fabsl(0);
42616 return 0;
42618 _ACEOF
42619 rm -f conftest.$ac_objext conftest$ac_exeext
42620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42621 (eval $ac_link) 2>&5
42622 ac_status=$?
42623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624 (exit $ac_status); } &&
42625 { ac_try='test -s conftest$ac_exeext'
42626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42627 (eval $ac_try) 2>&5
42628 ac_status=$?
42629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42630 (exit $ac_status); }; }; then
42631 glibcxx_cv_func___builtin_fabsl_link=yes
42632 else
42633 echo "$as_me: failed program was:" >&5
42634 sed 's/^/| /' conftest.$ac_ext >&5
42636 glibcxx_cv_func___builtin_fabsl_link=no
42638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42643 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
42644 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
42645 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
42646 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42647 cat >>confdefs.h <<_ACEOF
42648 #define ${ac_tr_func} 1
42649 _ACEOF
42655 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
42656 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
42657 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
42658 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
42659 echo $ECHO_N "(cached) $ECHO_C" >&6
42660 else
42664 ac_ext=cc
42665 ac_cpp='$CXXCPP $CPPFLAGS'
42666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42670 cat >conftest.$ac_ext <<_ACEOF
42671 #line $LINENO "configure"
42672 /* confdefs.h. */
42673 _ACEOF
42674 cat confdefs.h >>conftest.$ac_ext
42675 cat >>conftest.$ac_ext <<_ACEOF
42676 /* end confdefs.h. */
42677 #include <math.h>
42679 main ()
42681 __builtin_labs(0);
42683 return 0;
42685 _ACEOF
42686 rm -f conftest.$ac_objext
42687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42688 (eval $ac_compile) 2>&5
42689 ac_status=$?
42690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691 (exit $ac_status); } &&
42692 { ac_try='test -s conftest.$ac_objext'
42693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42694 (eval $ac_try) 2>&5
42695 ac_status=$?
42696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42697 (exit $ac_status); }; }; then
42698 glibcxx_cv_func___builtin_labs_use=yes
42699 else
42700 echo "$as_me: failed program was:" >&5
42701 sed 's/^/| /' conftest.$ac_ext >&5
42703 glibcxx_cv_func___builtin_labs_use=no
42705 rm -f conftest.$ac_objext conftest.$ac_ext
42706 ac_ext=c
42707 ac_cpp='$CPP $CPPFLAGS'
42708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42716 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
42717 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
42718 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
42719 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
42720 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
42721 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
42722 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
42723 echo $ECHO_N "(cached) $ECHO_C" >&6
42724 else
42726 if test x$gcc_no_link = xyes; then
42727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42729 { (exit 1); exit 1; }; }
42731 cat >conftest.$ac_ext <<_ACEOF
42732 #line $LINENO "configure"
42733 /* confdefs.h. */
42734 _ACEOF
42735 cat confdefs.h >>conftest.$ac_ext
42736 cat >>conftest.$ac_ext <<_ACEOF
42737 /* end confdefs.h. */
42738 #include <math.h>
42740 main ()
42742 __builtin_labs(0);
42744 return 0;
42746 _ACEOF
42747 rm -f conftest.$ac_objext conftest$ac_exeext
42748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42749 (eval $ac_link) 2>&5
42750 ac_status=$?
42751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752 (exit $ac_status); } &&
42753 { ac_try='test -s conftest$ac_exeext'
42754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42755 (eval $ac_try) 2>&5
42756 ac_status=$?
42757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42758 (exit $ac_status); }; }; then
42759 glibcxx_cv_func___builtin_labs_link=yes
42760 else
42761 echo "$as_me: failed program was:" >&5
42762 sed 's/^/| /' conftest.$ac_ext >&5
42764 glibcxx_cv_func___builtin_labs_link=no
42766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42771 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
42772 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
42773 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
42774 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42775 cat >>confdefs.h <<_ACEOF
42776 #define ${ac_tr_func} 1
42777 _ACEOF
42784 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
42785 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
42786 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
42787 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
42788 echo $ECHO_N "(cached) $ECHO_C" >&6
42789 else
42793 ac_ext=cc
42794 ac_cpp='$CXXCPP $CPPFLAGS'
42795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42799 cat >conftest.$ac_ext <<_ACEOF
42800 #line $LINENO "configure"
42801 /* confdefs.h. */
42802 _ACEOF
42803 cat confdefs.h >>conftest.$ac_ext
42804 cat >>conftest.$ac_ext <<_ACEOF
42805 /* end confdefs.h. */
42806 #include <math.h>
42808 main ()
42810 __builtin_sqrtf(0);
42812 return 0;
42814 _ACEOF
42815 rm -f conftest.$ac_objext
42816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42817 (eval $ac_compile) 2>&5
42818 ac_status=$?
42819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42820 (exit $ac_status); } &&
42821 { ac_try='test -s conftest.$ac_objext'
42822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42823 (eval $ac_try) 2>&5
42824 ac_status=$?
42825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826 (exit $ac_status); }; }; then
42827 glibcxx_cv_func___builtin_sqrtf_use=yes
42828 else
42829 echo "$as_me: failed program was:" >&5
42830 sed 's/^/| /' conftest.$ac_ext >&5
42832 glibcxx_cv_func___builtin_sqrtf_use=no
42834 rm -f conftest.$ac_objext conftest.$ac_ext
42835 ac_ext=c
42836 ac_cpp='$CPP $CPPFLAGS'
42837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42845 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
42846 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
42847 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
42848 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
42849 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
42850 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
42851 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
42852 echo $ECHO_N "(cached) $ECHO_C" >&6
42853 else
42855 if test x$gcc_no_link = xyes; then
42856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42858 { (exit 1); exit 1; }; }
42860 cat >conftest.$ac_ext <<_ACEOF
42861 #line $LINENO "configure"
42862 /* confdefs.h. */
42863 _ACEOF
42864 cat confdefs.h >>conftest.$ac_ext
42865 cat >>conftest.$ac_ext <<_ACEOF
42866 /* end confdefs.h. */
42867 #include <math.h>
42869 main ()
42871 __builtin_sqrtf(0);
42873 return 0;
42875 _ACEOF
42876 rm -f conftest.$ac_objext conftest$ac_exeext
42877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42878 (eval $ac_link) 2>&5
42879 ac_status=$?
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); } &&
42882 { ac_try='test -s conftest$ac_exeext'
42883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42884 (eval $ac_try) 2>&5
42885 ac_status=$?
42886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); }; }; then
42888 glibcxx_cv_func___builtin_sqrtf_link=yes
42889 else
42890 echo "$as_me: failed program was:" >&5
42891 sed 's/^/| /' conftest.$ac_ext >&5
42893 glibcxx_cv_func___builtin_sqrtf_link=no
42895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42900 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
42901 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
42902 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
42903 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42904 cat >>confdefs.h <<_ACEOF
42905 #define ${ac_tr_func} 1
42906 _ACEOF
42912 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
42913 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
42914 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
42915 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
42916 echo $ECHO_N "(cached) $ECHO_C" >&6
42917 else
42921 ac_ext=cc
42922 ac_cpp='$CXXCPP $CPPFLAGS'
42923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42927 cat >conftest.$ac_ext <<_ACEOF
42928 #line $LINENO "configure"
42929 /* confdefs.h. */
42930 _ACEOF
42931 cat confdefs.h >>conftest.$ac_ext
42932 cat >>conftest.$ac_ext <<_ACEOF
42933 /* end confdefs.h. */
42934 #include <math.h>
42936 main ()
42938 __builtin_sqrt(0);
42940 return 0;
42942 _ACEOF
42943 rm -f conftest.$ac_objext
42944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42945 (eval $ac_compile) 2>&5
42946 ac_status=$?
42947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42948 (exit $ac_status); } &&
42949 { ac_try='test -s conftest.$ac_objext'
42950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42951 (eval $ac_try) 2>&5
42952 ac_status=$?
42953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954 (exit $ac_status); }; }; then
42955 glibcxx_cv_func___builtin_sqrt_use=yes
42956 else
42957 echo "$as_me: failed program was:" >&5
42958 sed 's/^/| /' conftest.$ac_ext >&5
42960 glibcxx_cv_func___builtin_sqrt_use=no
42962 rm -f conftest.$ac_objext conftest.$ac_ext
42963 ac_ext=c
42964 ac_cpp='$CPP $CPPFLAGS'
42965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42973 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
42974 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
42975 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
42976 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
42977 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
42978 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
42979 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
42980 echo $ECHO_N "(cached) $ECHO_C" >&6
42981 else
42983 if test x$gcc_no_link = xyes; then
42984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42986 { (exit 1); exit 1; }; }
42988 cat >conftest.$ac_ext <<_ACEOF
42989 #line $LINENO "configure"
42990 /* confdefs.h. */
42991 _ACEOF
42992 cat confdefs.h >>conftest.$ac_ext
42993 cat >>conftest.$ac_ext <<_ACEOF
42994 /* end confdefs.h. */
42995 #include <math.h>
42997 main ()
42999 __builtin_sqrt(0);
43001 return 0;
43003 _ACEOF
43004 rm -f conftest.$ac_objext conftest$ac_exeext
43005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43006 (eval $ac_link) 2>&5
43007 ac_status=$?
43008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43009 (exit $ac_status); } &&
43010 { ac_try='test -s conftest$ac_exeext'
43011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43012 (eval $ac_try) 2>&5
43013 ac_status=$?
43014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43015 (exit $ac_status); }; }; then
43016 glibcxx_cv_func___builtin_sqrt_link=yes
43017 else
43018 echo "$as_me: failed program was:" >&5
43019 sed 's/^/| /' conftest.$ac_ext >&5
43021 glibcxx_cv_func___builtin_sqrt_link=no
43023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43028 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
43029 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
43030 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
43031 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43032 cat >>confdefs.h <<_ACEOF
43033 #define ${ac_tr_func} 1
43034 _ACEOF
43040 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
43041 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
43042 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
43043 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
43044 echo $ECHO_N "(cached) $ECHO_C" >&6
43045 else
43049 ac_ext=cc
43050 ac_cpp='$CXXCPP $CPPFLAGS'
43051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43055 cat >conftest.$ac_ext <<_ACEOF
43056 #line $LINENO "configure"
43057 /* confdefs.h. */
43058 _ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h. */
43062 #include <math.h>
43064 main ()
43066 __builtin_sqrtl(0);
43068 return 0;
43070 _ACEOF
43071 rm -f conftest.$ac_objext
43072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43073 (eval $ac_compile) 2>&5
43074 ac_status=$?
43075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076 (exit $ac_status); } &&
43077 { ac_try='test -s conftest.$ac_objext'
43078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43079 (eval $ac_try) 2>&5
43080 ac_status=$?
43081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43082 (exit $ac_status); }; }; then
43083 glibcxx_cv_func___builtin_sqrtl_use=yes
43084 else
43085 echo "$as_me: failed program was:" >&5
43086 sed 's/^/| /' conftest.$ac_ext >&5
43088 glibcxx_cv_func___builtin_sqrtl_use=no
43090 rm -f conftest.$ac_objext conftest.$ac_ext
43091 ac_ext=c
43092 ac_cpp='$CPP $CPPFLAGS'
43093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43101 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
43102 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
43103 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
43104 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
43105 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
43106 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
43107 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
43108 echo $ECHO_N "(cached) $ECHO_C" >&6
43109 else
43111 if test x$gcc_no_link = xyes; then
43112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43114 { (exit 1); exit 1; }; }
43116 cat >conftest.$ac_ext <<_ACEOF
43117 #line $LINENO "configure"
43118 /* confdefs.h. */
43119 _ACEOF
43120 cat confdefs.h >>conftest.$ac_ext
43121 cat >>conftest.$ac_ext <<_ACEOF
43122 /* end confdefs.h. */
43123 #include <math.h>
43125 main ()
43127 __builtin_sqrtl(0);
43129 return 0;
43131 _ACEOF
43132 rm -f conftest.$ac_objext conftest$ac_exeext
43133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43134 (eval $ac_link) 2>&5
43135 ac_status=$?
43136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43137 (exit $ac_status); } &&
43138 { ac_try='test -s conftest$ac_exeext'
43139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43140 (eval $ac_try) 2>&5
43141 ac_status=$?
43142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43143 (exit $ac_status); }; }; then
43144 glibcxx_cv_func___builtin_sqrtl_link=yes
43145 else
43146 echo "$as_me: failed program was:" >&5
43147 sed 's/^/| /' conftest.$ac_ext >&5
43149 glibcxx_cv_func___builtin_sqrtl_link=no
43151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43156 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
43157 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
43158 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
43159 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43160 cat >>confdefs.h <<_ACEOF
43161 #define ${ac_tr_func} 1
43162 _ACEOF
43169 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
43170 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
43171 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
43172 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
43173 echo $ECHO_N "(cached) $ECHO_C" >&6
43174 else
43178 ac_ext=cc
43179 ac_cpp='$CXXCPP $CPPFLAGS'
43180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43184 cat >conftest.$ac_ext <<_ACEOF
43185 #line $LINENO "configure"
43186 /* confdefs.h. */
43187 _ACEOF
43188 cat confdefs.h >>conftest.$ac_ext
43189 cat >>conftest.$ac_ext <<_ACEOF
43190 /* end confdefs.h. */
43191 #include <math.h>
43193 main ()
43195 __builtin_sinf(0);
43197 return 0;
43199 _ACEOF
43200 rm -f conftest.$ac_objext
43201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43202 (eval $ac_compile) 2>&5
43203 ac_status=$?
43204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43205 (exit $ac_status); } &&
43206 { ac_try='test -s conftest.$ac_objext'
43207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43208 (eval $ac_try) 2>&5
43209 ac_status=$?
43210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43211 (exit $ac_status); }; }; then
43212 glibcxx_cv_func___builtin_sinf_use=yes
43213 else
43214 echo "$as_me: failed program was:" >&5
43215 sed 's/^/| /' conftest.$ac_ext >&5
43217 glibcxx_cv_func___builtin_sinf_use=no
43219 rm -f conftest.$ac_objext conftest.$ac_ext
43220 ac_ext=c
43221 ac_cpp='$CPP $CPPFLAGS'
43222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43230 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
43231 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
43232 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
43233 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
43234 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
43235 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
43236 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
43237 echo $ECHO_N "(cached) $ECHO_C" >&6
43238 else
43240 if test x$gcc_no_link = xyes; then
43241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43243 { (exit 1); exit 1; }; }
43245 cat >conftest.$ac_ext <<_ACEOF
43246 #line $LINENO "configure"
43247 /* confdefs.h. */
43248 _ACEOF
43249 cat confdefs.h >>conftest.$ac_ext
43250 cat >>conftest.$ac_ext <<_ACEOF
43251 /* end confdefs.h. */
43252 #include <math.h>
43254 main ()
43256 __builtin_sinf(0);
43258 return 0;
43260 _ACEOF
43261 rm -f conftest.$ac_objext conftest$ac_exeext
43262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43263 (eval $ac_link) 2>&5
43264 ac_status=$?
43265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43266 (exit $ac_status); } &&
43267 { ac_try='test -s conftest$ac_exeext'
43268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43269 (eval $ac_try) 2>&5
43270 ac_status=$?
43271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272 (exit $ac_status); }; }; then
43273 glibcxx_cv_func___builtin_sinf_link=yes
43274 else
43275 echo "$as_me: failed program was:" >&5
43276 sed 's/^/| /' conftest.$ac_ext >&5
43278 glibcxx_cv_func___builtin_sinf_link=no
43280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43285 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
43286 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
43287 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
43288 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43289 cat >>confdefs.h <<_ACEOF
43290 #define ${ac_tr_func} 1
43291 _ACEOF
43297 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
43298 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
43299 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
43300 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
43301 echo $ECHO_N "(cached) $ECHO_C" >&6
43302 else
43306 ac_ext=cc
43307 ac_cpp='$CXXCPP $CPPFLAGS'
43308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43312 cat >conftest.$ac_ext <<_ACEOF
43313 #line $LINENO "configure"
43314 /* confdefs.h. */
43315 _ACEOF
43316 cat confdefs.h >>conftest.$ac_ext
43317 cat >>conftest.$ac_ext <<_ACEOF
43318 /* end confdefs.h. */
43319 #include <math.h>
43321 main ()
43323 __builtin_sin(0);
43325 return 0;
43327 _ACEOF
43328 rm -f conftest.$ac_objext
43329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43330 (eval $ac_compile) 2>&5
43331 ac_status=$?
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); } &&
43334 { ac_try='test -s conftest.$ac_objext'
43335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336 (eval $ac_try) 2>&5
43337 ac_status=$?
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); }; }; then
43340 glibcxx_cv_func___builtin_sin_use=yes
43341 else
43342 echo "$as_me: failed program was:" >&5
43343 sed 's/^/| /' conftest.$ac_ext >&5
43345 glibcxx_cv_func___builtin_sin_use=no
43347 rm -f conftest.$ac_objext conftest.$ac_ext
43348 ac_ext=c
43349 ac_cpp='$CPP $CPPFLAGS'
43350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43358 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
43359 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
43360 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
43361 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
43362 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
43363 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
43364 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
43365 echo $ECHO_N "(cached) $ECHO_C" >&6
43366 else
43368 if test x$gcc_no_link = xyes; then
43369 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43371 { (exit 1); exit 1; }; }
43373 cat >conftest.$ac_ext <<_ACEOF
43374 #line $LINENO "configure"
43375 /* confdefs.h. */
43376 _ACEOF
43377 cat confdefs.h >>conftest.$ac_ext
43378 cat >>conftest.$ac_ext <<_ACEOF
43379 /* end confdefs.h. */
43380 #include <math.h>
43382 main ()
43384 __builtin_sin(0);
43386 return 0;
43388 _ACEOF
43389 rm -f conftest.$ac_objext conftest$ac_exeext
43390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43391 (eval $ac_link) 2>&5
43392 ac_status=$?
43393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43394 (exit $ac_status); } &&
43395 { ac_try='test -s conftest$ac_exeext'
43396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43397 (eval $ac_try) 2>&5
43398 ac_status=$?
43399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43400 (exit $ac_status); }; }; then
43401 glibcxx_cv_func___builtin_sin_link=yes
43402 else
43403 echo "$as_me: failed program was:" >&5
43404 sed 's/^/| /' conftest.$ac_ext >&5
43406 glibcxx_cv_func___builtin_sin_link=no
43408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43413 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
43414 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
43415 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
43416 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43417 cat >>confdefs.h <<_ACEOF
43418 #define ${ac_tr_func} 1
43419 _ACEOF
43425 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
43426 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
43427 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
43428 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
43429 echo $ECHO_N "(cached) $ECHO_C" >&6
43430 else
43434 ac_ext=cc
43435 ac_cpp='$CXXCPP $CPPFLAGS'
43436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43440 cat >conftest.$ac_ext <<_ACEOF
43441 #line $LINENO "configure"
43442 /* confdefs.h. */
43443 _ACEOF
43444 cat confdefs.h >>conftest.$ac_ext
43445 cat >>conftest.$ac_ext <<_ACEOF
43446 /* end confdefs.h. */
43447 #include <math.h>
43449 main ()
43451 __builtin_sinl(0);
43453 return 0;
43455 _ACEOF
43456 rm -f conftest.$ac_objext
43457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43458 (eval $ac_compile) 2>&5
43459 ac_status=$?
43460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43461 (exit $ac_status); } &&
43462 { ac_try='test -s conftest.$ac_objext'
43463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43464 (eval $ac_try) 2>&5
43465 ac_status=$?
43466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43467 (exit $ac_status); }; }; then
43468 glibcxx_cv_func___builtin_sinl_use=yes
43469 else
43470 echo "$as_me: failed program was:" >&5
43471 sed 's/^/| /' conftest.$ac_ext >&5
43473 glibcxx_cv_func___builtin_sinl_use=no
43475 rm -f conftest.$ac_objext conftest.$ac_ext
43476 ac_ext=c
43477 ac_cpp='$CPP $CPPFLAGS'
43478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43486 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
43487 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
43488 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
43489 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
43490 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
43491 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
43492 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
43493 echo $ECHO_N "(cached) $ECHO_C" >&6
43494 else
43496 if test x$gcc_no_link = xyes; then
43497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43499 { (exit 1); exit 1; }; }
43501 cat >conftest.$ac_ext <<_ACEOF
43502 #line $LINENO "configure"
43503 /* confdefs.h. */
43504 _ACEOF
43505 cat confdefs.h >>conftest.$ac_ext
43506 cat >>conftest.$ac_ext <<_ACEOF
43507 /* end confdefs.h. */
43508 #include <math.h>
43510 main ()
43512 __builtin_sinl(0);
43514 return 0;
43516 _ACEOF
43517 rm -f conftest.$ac_objext conftest$ac_exeext
43518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43519 (eval $ac_link) 2>&5
43520 ac_status=$?
43521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43522 (exit $ac_status); } &&
43523 { ac_try='test -s conftest$ac_exeext'
43524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43525 (eval $ac_try) 2>&5
43526 ac_status=$?
43527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43528 (exit $ac_status); }; }; then
43529 glibcxx_cv_func___builtin_sinl_link=yes
43530 else
43531 echo "$as_me: failed program was:" >&5
43532 sed 's/^/| /' conftest.$ac_ext >&5
43534 glibcxx_cv_func___builtin_sinl_link=no
43536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43541 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
43542 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
43543 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
43544 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43545 cat >>confdefs.h <<_ACEOF
43546 #define ${ac_tr_func} 1
43547 _ACEOF
43554 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
43555 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
43556 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
43557 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
43558 echo $ECHO_N "(cached) $ECHO_C" >&6
43559 else
43563 ac_ext=cc
43564 ac_cpp='$CXXCPP $CPPFLAGS'
43565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43569 cat >conftest.$ac_ext <<_ACEOF
43570 #line $LINENO "configure"
43571 /* confdefs.h. */
43572 _ACEOF
43573 cat confdefs.h >>conftest.$ac_ext
43574 cat >>conftest.$ac_ext <<_ACEOF
43575 /* end confdefs.h. */
43576 #include <math.h>
43578 main ()
43580 __builtin_cosf(0);
43582 return 0;
43584 _ACEOF
43585 rm -f conftest.$ac_objext
43586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43587 (eval $ac_compile) 2>&5
43588 ac_status=$?
43589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43590 (exit $ac_status); } &&
43591 { ac_try='test -s conftest.$ac_objext'
43592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43593 (eval $ac_try) 2>&5
43594 ac_status=$?
43595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43596 (exit $ac_status); }; }; then
43597 glibcxx_cv_func___builtin_cosf_use=yes
43598 else
43599 echo "$as_me: failed program was:" >&5
43600 sed 's/^/| /' conftest.$ac_ext >&5
43602 glibcxx_cv_func___builtin_cosf_use=no
43604 rm -f conftest.$ac_objext conftest.$ac_ext
43605 ac_ext=c
43606 ac_cpp='$CPP $CPPFLAGS'
43607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43615 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
43616 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
43617 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
43618 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
43619 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
43620 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
43621 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
43622 echo $ECHO_N "(cached) $ECHO_C" >&6
43623 else
43625 if test x$gcc_no_link = xyes; then
43626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43628 { (exit 1); exit 1; }; }
43630 cat >conftest.$ac_ext <<_ACEOF
43631 #line $LINENO "configure"
43632 /* confdefs.h. */
43633 _ACEOF
43634 cat confdefs.h >>conftest.$ac_ext
43635 cat >>conftest.$ac_ext <<_ACEOF
43636 /* end confdefs.h. */
43637 #include <math.h>
43639 main ()
43641 __builtin_cosf(0);
43643 return 0;
43645 _ACEOF
43646 rm -f conftest.$ac_objext conftest$ac_exeext
43647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43648 (eval $ac_link) 2>&5
43649 ac_status=$?
43650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43651 (exit $ac_status); } &&
43652 { ac_try='test -s conftest$ac_exeext'
43653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43654 (eval $ac_try) 2>&5
43655 ac_status=$?
43656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43657 (exit $ac_status); }; }; then
43658 glibcxx_cv_func___builtin_cosf_link=yes
43659 else
43660 echo "$as_me: failed program was:" >&5
43661 sed 's/^/| /' conftest.$ac_ext >&5
43663 glibcxx_cv_func___builtin_cosf_link=no
43665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43670 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
43671 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
43672 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
43673 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43674 cat >>confdefs.h <<_ACEOF
43675 #define ${ac_tr_func} 1
43676 _ACEOF
43682 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
43683 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
43684 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
43685 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
43686 echo $ECHO_N "(cached) $ECHO_C" >&6
43687 else
43691 ac_ext=cc
43692 ac_cpp='$CXXCPP $CPPFLAGS'
43693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43697 cat >conftest.$ac_ext <<_ACEOF
43698 #line $LINENO "configure"
43699 /* confdefs.h. */
43700 _ACEOF
43701 cat confdefs.h >>conftest.$ac_ext
43702 cat >>conftest.$ac_ext <<_ACEOF
43703 /* end confdefs.h. */
43704 #include <math.h>
43706 main ()
43708 __builtin_cos(0);
43710 return 0;
43712 _ACEOF
43713 rm -f conftest.$ac_objext
43714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43715 (eval $ac_compile) 2>&5
43716 ac_status=$?
43717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); } &&
43719 { ac_try='test -s conftest.$ac_objext'
43720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43721 (eval $ac_try) 2>&5
43722 ac_status=$?
43723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43724 (exit $ac_status); }; }; then
43725 glibcxx_cv_func___builtin_cos_use=yes
43726 else
43727 echo "$as_me: failed program was:" >&5
43728 sed 's/^/| /' conftest.$ac_ext >&5
43730 glibcxx_cv_func___builtin_cos_use=no
43732 rm -f conftest.$ac_objext conftest.$ac_ext
43733 ac_ext=c
43734 ac_cpp='$CPP $CPPFLAGS'
43735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43743 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
43744 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
43745 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
43746 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
43747 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
43748 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
43749 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
43750 echo $ECHO_N "(cached) $ECHO_C" >&6
43751 else
43753 if test x$gcc_no_link = xyes; then
43754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43756 { (exit 1); exit 1; }; }
43758 cat >conftest.$ac_ext <<_ACEOF
43759 #line $LINENO "configure"
43760 /* confdefs.h. */
43761 _ACEOF
43762 cat confdefs.h >>conftest.$ac_ext
43763 cat >>conftest.$ac_ext <<_ACEOF
43764 /* end confdefs.h. */
43765 #include <math.h>
43767 main ()
43769 __builtin_cos(0);
43771 return 0;
43773 _ACEOF
43774 rm -f conftest.$ac_objext conftest$ac_exeext
43775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43776 (eval $ac_link) 2>&5
43777 ac_status=$?
43778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43779 (exit $ac_status); } &&
43780 { ac_try='test -s conftest$ac_exeext'
43781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43782 (eval $ac_try) 2>&5
43783 ac_status=$?
43784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785 (exit $ac_status); }; }; then
43786 glibcxx_cv_func___builtin_cos_link=yes
43787 else
43788 echo "$as_me: failed program was:" >&5
43789 sed 's/^/| /' conftest.$ac_ext >&5
43791 glibcxx_cv_func___builtin_cos_link=no
43793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43798 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
43799 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
43800 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
43801 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43802 cat >>confdefs.h <<_ACEOF
43803 #define ${ac_tr_func} 1
43804 _ACEOF
43810 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
43811 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
43812 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
43813 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
43814 echo $ECHO_N "(cached) $ECHO_C" >&6
43815 else
43819 ac_ext=cc
43820 ac_cpp='$CXXCPP $CPPFLAGS'
43821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43825 cat >conftest.$ac_ext <<_ACEOF
43826 #line $LINENO "configure"
43827 /* confdefs.h. */
43828 _ACEOF
43829 cat confdefs.h >>conftest.$ac_ext
43830 cat >>conftest.$ac_ext <<_ACEOF
43831 /* end confdefs.h. */
43832 #include <math.h>
43834 main ()
43836 __builtin_cosl(0);
43838 return 0;
43840 _ACEOF
43841 rm -f conftest.$ac_objext
43842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43843 (eval $ac_compile) 2>&5
43844 ac_status=$?
43845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43846 (exit $ac_status); } &&
43847 { ac_try='test -s conftest.$ac_objext'
43848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43849 (eval $ac_try) 2>&5
43850 ac_status=$?
43851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43852 (exit $ac_status); }; }; then
43853 glibcxx_cv_func___builtin_cosl_use=yes
43854 else
43855 echo "$as_me: failed program was:" >&5
43856 sed 's/^/| /' conftest.$ac_ext >&5
43858 glibcxx_cv_func___builtin_cosl_use=no
43860 rm -f conftest.$ac_objext conftest.$ac_ext
43861 ac_ext=c
43862 ac_cpp='$CPP $CPPFLAGS'
43863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43871 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
43872 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
43873 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
43874 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
43875 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
43876 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
43877 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
43878 echo $ECHO_N "(cached) $ECHO_C" >&6
43879 else
43881 if test x$gcc_no_link = xyes; then
43882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43884 { (exit 1); exit 1; }; }
43886 cat >conftest.$ac_ext <<_ACEOF
43887 #line $LINENO "configure"
43888 /* confdefs.h. */
43889 _ACEOF
43890 cat confdefs.h >>conftest.$ac_ext
43891 cat >>conftest.$ac_ext <<_ACEOF
43892 /* end confdefs.h. */
43893 #include <math.h>
43895 main ()
43897 __builtin_cosl(0);
43899 return 0;
43901 _ACEOF
43902 rm -f conftest.$ac_objext conftest$ac_exeext
43903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43904 (eval $ac_link) 2>&5
43905 ac_status=$?
43906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43907 (exit $ac_status); } &&
43908 { ac_try='test -s conftest$ac_exeext'
43909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43910 (eval $ac_try) 2>&5
43911 ac_status=$?
43912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913 (exit $ac_status); }; }; then
43914 glibcxx_cv_func___builtin_cosl_link=yes
43915 else
43916 echo "$as_me: failed program was:" >&5
43917 sed 's/^/| /' conftest.$ac_ext >&5
43919 glibcxx_cv_func___builtin_cosl_link=no
43921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43926 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
43927 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
43928 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
43929 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43930 cat >>confdefs.h <<_ACEOF
43931 #define ${ac_tr_func} 1
43932 _ACEOF
43938 dummyvar=no
43939 if test x$dummyvar = x"yes"; then
43940 cat >>confdefs.h <<\_ACEOF
43941 #define HAVE___BUILTIN_ABS 1
43942 _ACEOF
43944 cat >>confdefs.h <<\_ACEOF
43945 #define HAVE___BUILTIN_LABS 1
43946 _ACEOF
43948 cat >>confdefs.h <<\_ACEOF
43949 #define HAVE___BUILTIN_COS 1
43950 _ACEOF
43952 cat >>confdefs.h <<\_ACEOF
43953 #define HAVE___BUILTIN_COSF 1
43954 _ACEOF
43956 cat >>confdefs.h <<\_ACEOF
43957 #define HAVE___BUILTIN_COSL 1
43958 _ACEOF
43960 cat >>confdefs.h <<\_ACEOF
43961 #define HAVE___BUILTIN_FABS 1
43962 _ACEOF
43964 cat >>confdefs.h <<\_ACEOF
43965 #define HAVE___BUILTIN_FABSF 1
43966 _ACEOF
43968 cat >>confdefs.h <<\_ACEOF
43969 #define HAVE___BUILTIN_FABSL 1
43970 _ACEOF
43972 cat >>confdefs.h <<\_ACEOF
43973 #define HAVE___BUILTIN_SIN 1
43974 _ACEOF
43976 cat >>confdefs.h <<\_ACEOF
43977 #define HAVE___BUILTIN_SINF 1
43978 _ACEOF
43980 cat >>confdefs.h <<\_ACEOF
43981 #define HAVE___BUILTIN_SINL 1
43982 _ACEOF
43984 cat >>confdefs.h <<\_ACEOF
43985 #define HAVE___BUILTIN_SQRT 1
43986 _ACEOF
43988 cat >>confdefs.h <<\_ACEOF
43989 #define HAVE___BUILTIN_SQRTF 1
43990 _ACEOF
43992 cat >>confdefs.h <<\_ACEOF
43993 #define HAVE___BUILTIN_SQRTL 1
43994 _ACEOF
44000 echo "$as_me:$LINENO: checking for main in -lm" >&5
44001 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
44002 if test "${ac_cv_lib_m_main+set}" = set; then
44003 echo $ECHO_N "(cached) $ECHO_C" >&6
44004 else
44005 ac_check_lib_save_LIBS=$LIBS
44006 LIBS="-lm $LIBS"
44007 if test x$gcc_no_link = xyes; then
44008 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44009 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44010 { (exit 1); exit 1; }; }
44012 cat >conftest.$ac_ext <<_ACEOF
44013 #line $LINENO "configure"
44014 /* confdefs.h. */
44015 _ACEOF
44016 cat confdefs.h >>conftest.$ac_ext
44017 cat >>conftest.$ac_ext <<_ACEOF
44018 /* end confdefs.h. */
44022 main ()
44024 main ();
44026 return 0;
44028 _ACEOF
44029 rm -f conftest.$ac_objext conftest$ac_exeext
44030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44031 (eval $ac_link) 2>&5
44032 ac_status=$?
44033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44034 (exit $ac_status); } &&
44035 { ac_try='test -s conftest$ac_exeext'
44036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44037 (eval $ac_try) 2>&5
44038 ac_status=$?
44039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040 (exit $ac_status); }; }; then
44041 ac_cv_lib_m_main=yes
44042 else
44043 echo "$as_me: failed program was:" >&5
44044 sed 's/^/| /' conftest.$ac_ext >&5
44046 ac_cv_lib_m_main=no
44048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44049 LIBS=$ac_check_lib_save_LIBS
44051 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
44052 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
44053 if test $ac_cv_lib_m_main = yes; then
44054 cat >>confdefs.h <<_ACEOF
44055 #define HAVE_LIBM 1
44056 _ACEOF
44058 LIBS="-lm $LIBS"
44064 for ac_func in nan copysignf
44066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44067 echo "$as_me:$LINENO: checking for $ac_func" >&5
44068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44069 if eval "test \"\${$as_ac_var+set}\" = set"; then
44070 echo $ECHO_N "(cached) $ECHO_C" >&6
44071 else
44072 if test x$gcc_no_link = xyes; then
44073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44075 { (exit 1); exit 1; }; }
44077 cat >conftest.$ac_ext <<_ACEOF
44078 #line $LINENO "configure"
44079 /* confdefs.h. */
44080 _ACEOF
44081 cat confdefs.h >>conftest.$ac_ext
44082 cat >>conftest.$ac_ext <<_ACEOF
44083 /* end confdefs.h. */
44084 /* System header to define __stub macros and hopefully few prototypes,
44085 which can conflict with char $ac_func (); below.
44086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44087 <limits.h> exists even on freestanding compilers. */
44088 #ifdef __STDC__
44089 # include <limits.h>
44090 #else
44091 # include <assert.h>
44092 #endif
44093 /* Override any gcc2 internal prototype to avoid an error. */
44094 #ifdef __cplusplus
44095 extern "C"
44097 #endif
44098 /* We use char because int might match the return type of a gcc2
44099 builtin and then its argument prototype would still apply. */
44100 char $ac_func ();
44101 /* The GNU C library defines this for functions which it implements
44102 to always fail with ENOSYS. Some functions are actually named
44103 something starting with __ and the normal name is an alias. */
44104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44105 choke me
44106 #else
44107 char (*f) () = $ac_func;
44108 #endif
44109 #ifdef __cplusplus
44111 #endif
44114 main ()
44116 return f != $ac_func;
44118 return 0;
44120 _ACEOF
44121 rm -f conftest.$ac_objext conftest$ac_exeext
44122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44123 (eval $ac_link) 2>&5
44124 ac_status=$?
44125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44126 (exit $ac_status); } &&
44127 { ac_try='test -s conftest$ac_exeext'
44128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44129 (eval $ac_try) 2>&5
44130 ac_status=$?
44131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44132 (exit $ac_status); }; }; then
44133 eval "$as_ac_var=yes"
44134 else
44135 echo "$as_me: failed program was:" >&5
44136 sed 's/^/| /' conftest.$ac_ext >&5
44138 eval "$as_ac_var=no"
44140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44144 if test `eval echo '${'$as_ac_var'}'` = yes; then
44145 cat >>confdefs.h <<_ACEOF
44146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44147 _ACEOF
44149 else
44150 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
44152 done
44156 for ac_func in __signbit
44158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44159 echo "$as_me:$LINENO: checking for $ac_func" >&5
44160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44161 if eval "test \"\${$as_ac_var+set}\" = set"; then
44162 echo $ECHO_N "(cached) $ECHO_C" >&6
44163 else
44164 if test x$gcc_no_link = xyes; then
44165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44167 { (exit 1); exit 1; }; }
44169 cat >conftest.$ac_ext <<_ACEOF
44170 #line $LINENO "configure"
44171 /* confdefs.h. */
44172 _ACEOF
44173 cat confdefs.h >>conftest.$ac_ext
44174 cat >>conftest.$ac_ext <<_ACEOF
44175 /* end confdefs.h. */
44176 /* System header to define __stub macros and hopefully few prototypes,
44177 which can conflict with char $ac_func (); below.
44178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44179 <limits.h> exists even on freestanding compilers. */
44180 #ifdef __STDC__
44181 # include <limits.h>
44182 #else
44183 # include <assert.h>
44184 #endif
44185 /* Override any gcc2 internal prototype to avoid an error. */
44186 #ifdef __cplusplus
44187 extern "C"
44189 #endif
44190 /* We use char because int might match the return type of a gcc2
44191 builtin and then its argument prototype would still apply. */
44192 char $ac_func ();
44193 /* The GNU C library defines this for functions which it implements
44194 to always fail with ENOSYS. Some functions are actually named
44195 something starting with __ and the normal name is an alias. */
44196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44197 choke me
44198 #else
44199 char (*f) () = $ac_func;
44200 #endif
44201 #ifdef __cplusplus
44203 #endif
44206 main ()
44208 return f != $ac_func;
44210 return 0;
44212 _ACEOF
44213 rm -f conftest.$ac_objext conftest$ac_exeext
44214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44215 (eval $ac_link) 2>&5
44216 ac_status=$?
44217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218 (exit $ac_status); } &&
44219 { ac_try='test -s conftest$ac_exeext'
44220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44221 (eval $ac_try) 2>&5
44222 ac_status=$?
44223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44224 (exit $ac_status); }; }; then
44225 eval "$as_ac_var=yes"
44226 else
44227 echo "$as_me: failed program was:" >&5
44228 sed 's/^/| /' conftest.$ac_ext >&5
44230 eval "$as_ac_var=no"
44232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44236 if test `eval echo '${'$as_ac_var'}'` = yes; then
44237 cat >>confdefs.h <<_ACEOF
44238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44239 _ACEOF
44241 else
44242 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
44244 done
44247 for ac_func in __signbitf
44249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44250 echo "$as_me:$LINENO: checking for $ac_func" >&5
44251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44252 if eval "test \"\${$as_ac_var+set}\" = set"; then
44253 echo $ECHO_N "(cached) $ECHO_C" >&6
44254 else
44255 if test x$gcc_no_link = xyes; then
44256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44258 { (exit 1); exit 1; }; }
44260 cat >conftest.$ac_ext <<_ACEOF
44261 #line $LINENO "configure"
44262 /* confdefs.h. */
44263 _ACEOF
44264 cat confdefs.h >>conftest.$ac_ext
44265 cat >>conftest.$ac_ext <<_ACEOF
44266 /* end confdefs.h. */
44267 /* System header to define __stub macros and hopefully few prototypes,
44268 which can conflict with char $ac_func (); below.
44269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44270 <limits.h> exists even on freestanding compilers. */
44271 #ifdef __STDC__
44272 # include <limits.h>
44273 #else
44274 # include <assert.h>
44275 #endif
44276 /* Override any gcc2 internal prototype to avoid an error. */
44277 #ifdef __cplusplus
44278 extern "C"
44280 #endif
44281 /* We use char because int might match the return type of a gcc2
44282 builtin and then its argument prototype would still apply. */
44283 char $ac_func ();
44284 /* The GNU C library defines this for functions which it implements
44285 to always fail with ENOSYS. Some functions are actually named
44286 something starting with __ and the normal name is an alias. */
44287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44288 choke me
44289 #else
44290 char (*f) () = $ac_func;
44291 #endif
44292 #ifdef __cplusplus
44294 #endif
44297 main ()
44299 return f != $ac_func;
44301 return 0;
44303 _ACEOF
44304 rm -f conftest.$ac_objext conftest$ac_exeext
44305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44306 (eval $ac_link) 2>&5
44307 ac_status=$?
44308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44309 (exit $ac_status); } &&
44310 { ac_try='test -s conftest$ac_exeext'
44311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44312 (eval $ac_try) 2>&5
44313 ac_status=$?
44314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44315 (exit $ac_status); }; }; then
44316 eval "$as_ac_var=yes"
44317 else
44318 echo "$as_me: failed program was:" >&5
44319 sed 's/^/| /' conftest.$ac_ext >&5
44321 eval "$as_ac_var=no"
44323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44327 if test `eval echo '${'$as_ac_var'}'` = yes; then
44328 cat >>confdefs.h <<_ACEOF
44329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44330 _ACEOF
44332 else
44333 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
44335 done
44338 if test x$ac_cv_func_copysignl = x"yes"; then
44340 for ac_func in __signbitl
44342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44343 echo "$as_me:$LINENO: checking for $ac_func" >&5
44344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44345 if eval "test \"\${$as_ac_var+set}\" = set"; then
44346 echo $ECHO_N "(cached) $ECHO_C" >&6
44347 else
44348 if test x$gcc_no_link = xyes; then
44349 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44351 { (exit 1); exit 1; }; }
44353 cat >conftest.$ac_ext <<_ACEOF
44354 #line $LINENO "configure"
44355 /* confdefs.h. */
44356 _ACEOF
44357 cat confdefs.h >>conftest.$ac_ext
44358 cat >>conftest.$ac_ext <<_ACEOF
44359 /* end confdefs.h. */
44360 /* System header to define __stub macros and hopefully few prototypes,
44361 which can conflict with char $ac_func (); below.
44362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44363 <limits.h> exists even on freestanding compilers. */
44364 #ifdef __STDC__
44365 # include <limits.h>
44366 #else
44367 # include <assert.h>
44368 #endif
44369 /* Override any gcc2 internal prototype to avoid an error. */
44370 #ifdef __cplusplus
44371 extern "C"
44373 #endif
44374 /* We use char because int might match the return type of a gcc2
44375 builtin and then its argument prototype would still apply. */
44376 char $ac_func ();
44377 /* The GNU C library defines this for functions which it implements
44378 to always fail with ENOSYS. Some functions are actually named
44379 something starting with __ and the normal name is an alias. */
44380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44381 choke me
44382 #else
44383 char (*f) () = $ac_func;
44384 #endif
44385 #ifdef __cplusplus
44387 #endif
44390 main ()
44392 return f != $ac_func;
44394 return 0;
44396 _ACEOF
44397 rm -f conftest.$ac_objext conftest$ac_exeext
44398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44399 (eval $ac_link) 2>&5
44400 ac_status=$?
44401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402 (exit $ac_status); } &&
44403 { ac_try='test -s conftest$ac_exeext'
44404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44405 (eval $ac_try) 2>&5
44406 ac_status=$?
44407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408 (exit $ac_status); }; }; then
44409 eval "$as_ac_var=yes"
44410 else
44411 echo "$as_me: failed program was:" >&5
44412 sed 's/^/| /' conftest.$ac_ext >&5
44414 eval "$as_ac_var=no"
44416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44420 if test `eval echo '${'$as_ac_var'}'` = yes; then
44421 cat >>confdefs.h <<_ACEOF
44422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44423 _ACEOF
44425 else
44426 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
44428 done
44432 # XXX Review this. Nothing uses it.
44433 if test -n "$LIBMATHOBJS"; then
44434 need_libmath=yes
44439 # Test wchar.h for mbstate_t, which is needed for char_traits and
44440 # others even if wchar_t support is not on.
44441 echo "$as_me:$LINENO: checking for mbstate_t" >&5
44442 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
44443 cat >conftest.$ac_ext <<_ACEOF
44444 #line $LINENO "configure"
44445 /* confdefs.h. */
44446 _ACEOF
44447 cat confdefs.h >>conftest.$ac_ext
44448 cat >>conftest.$ac_ext <<_ACEOF
44449 /* end confdefs.h. */
44450 #include <wchar.h>
44452 main ()
44454 mbstate_t teststate;
44456 return 0;
44458 _ACEOF
44459 rm -f conftest.$ac_objext
44460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44461 (eval $ac_compile) 2>&5
44462 ac_status=$?
44463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44464 (exit $ac_status); } &&
44465 { ac_try='test -s conftest.$ac_objext'
44466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44467 (eval $ac_try) 2>&5
44468 ac_status=$?
44469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44470 (exit $ac_status); }; }; then
44471 have_mbstate_t=yes
44472 else
44473 echo "$as_me: failed program was:" >&5
44474 sed 's/^/| /' conftest.$ac_ext >&5
44476 have_mbstate_t=no
44478 rm -f conftest.$ac_objext conftest.$ac_ext
44479 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
44480 echo "${ECHO_T}$have_mbstate_t" >&6
44481 if test x"$have_mbstate_t" = xyes; then
44482 cat >>confdefs.h <<\_ACEOF
44483 #define HAVE_MBSTATE_T 1
44484 _ACEOF
44488 # Sanity check for existence of ISO C99 headers for extended encoding.
44490 for ac_header in wchar.h
44492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44494 echo "$as_me:$LINENO: checking for $ac_header" >&5
44495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44497 echo $ECHO_N "(cached) $ECHO_C" >&6
44499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44501 else
44502 # Is the header compilable?
44503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44505 cat >conftest.$ac_ext <<_ACEOF
44506 #line $LINENO "configure"
44507 /* confdefs.h. */
44508 _ACEOF
44509 cat confdefs.h >>conftest.$ac_ext
44510 cat >>conftest.$ac_ext <<_ACEOF
44511 /* end confdefs.h. */
44512 $ac_includes_default
44513 #include <$ac_header>
44514 _ACEOF
44515 rm -f conftest.$ac_objext
44516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44517 (eval $ac_compile) 2>&5
44518 ac_status=$?
44519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44520 (exit $ac_status); } &&
44521 { ac_try='test -s conftest.$ac_objext'
44522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44523 (eval $ac_try) 2>&5
44524 ac_status=$?
44525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44526 (exit $ac_status); }; }; then
44527 ac_header_compiler=yes
44528 else
44529 echo "$as_me: failed program was:" >&5
44530 sed 's/^/| /' conftest.$ac_ext >&5
44532 ac_header_compiler=no
44534 rm -f conftest.$ac_objext conftest.$ac_ext
44535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44536 echo "${ECHO_T}$ac_header_compiler" >&6
44538 # Is the header present?
44539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44541 cat >conftest.$ac_ext <<_ACEOF
44542 #line $LINENO "configure"
44543 /* confdefs.h. */
44544 _ACEOF
44545 cat confdefs.h >>conftest.$ac_ext
44546 cat >>conftest.$ac_ext <<_ACEOF
44547 /* end confdefs.h. */
44548 #include <$ac_header>
44549 _ACEOF
44550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44552 ac_status=$?
44553 grep -v '^ *+' conftest.er1 >conftest.err
44554 rm -f conftest.er1
44555 cat conftest.err >&5
44556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44557 (exit $ac_status); } >/dev/null; then
44558 if test -s conftest.err; then
44559 ac_cpp_err=$ac_c_preproc_warn_flag
44560 else
44561 ac_cpp_err=
44563 else
44564 ac_cpp_err=yes
44566 if test -z "$ac_cpp_err"; then
44567 ac_header_preproc=yes
44568 else
44569 echo "$as_me: failed program was:" >&5
44570 sed 's/^/| /' conftest.$ac_ext >&5
44572 ac_header_preproc=no
44574 rm -f conftest.err conftest.$ac_ext
44575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44576 echo "${ECHO_T}$ac_header_preproc" >&6
44578 # So? What about this header?
44579 case $ac_header_compiler:$ac_header_preproc in
44580 yes:no )
44581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44586 cat <<\_ASBOX
44587 ## ------------------------------------ ##
44588 ## Report this to bug-autoconf@gnu.org. ##
44589 ## ------------------------------------ ##
44590 _ASBOX
44592 sed "s/^/$as_me: WARNING: /" >&2
44594 no:yes )
44595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44602 cat <<\_ASBOX
44603 ## ------------------------------------ ##
44604 ## Report this to bug-autoconf@gnu.org. ##
44605 ## ------------------------------------ ##
44606 _ASBOX
44608 sed "s/^/$as_me: WARNING: /" >&2
44610 esac
44611 echo "$as_me:$LINENO: checking for $ac_header" >&5
44612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44614 echo $ECHO_N "(cached) $ECHO_C" >&6
44615 else
44616 eval "$as_ac_Header=$ac_header_preproc"
44618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44623 cat >>confdefs.h <<_ACEOF
44624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44625 _ACEOF
44626 ac_has_wchar_h=yes
44627 else
44628 ac_has_wchar_h=no
44631 done
44634 for ac_header in wctype.h
44636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44638 echo "$as_me:$LINENO: checking for $ac_header" >&5
44639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44641 echo $ECHO_N "(cached) $ECHO_C" >&6
44643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44645 else
44646 # Is the header compilable?
44647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44649 cat >conftest.$ac_ext <<_ACEOF
44650 #line $LINENO "configure"
44651 /* confdefs.h. */
44652 _ACEOF
44653 cat confdefs.h >>conftest.$ac_ext
44654 cat >>conftest.$ac_ext <<_ACEOF
44655 /* end confdefs.h. */
44656 $ac_includes_default
44657 #include <$ac_header>
44658 _ACEOF
44659 rm -f conftest.$ac_objext
44660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44661 (eval $ac_compile) 2>&5
44662 ac_status=$?
44663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44664 (exit $ac_status); } &&
44665 { ac_try='test -s conftest.$ac_objext'
44666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44667 (eval $ac_try) 2>&5
44668 ac_status=$?
44669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44670 (exit $ac_status); }; }; then
44671 ac_header_compiler=yes
44672 else
44673 echo "$as_me: failed program was:" >&5
44674 sed 's/^/| /' conftest.$ac_ext >&5
44676 ac_header_compiler=no
44678 rm -f conftest.$ac_objext conftest.$ac_ext
44679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44680 echo "${ECHO_T}$ac_header_compiler" >&6
44682 # Is the header present?
44683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44685 cat >conftest.$ac_ext <<_ACEOF
44686 #line $LINENO "configure"
44687 /* confdefs.h. */
44688 _ACEOF
44689 cat confdefs.h >>conftest.$ac_ext
44690 cat >>conftest.$ac_ext <<_ACEOF
44691 /* end confdefs.h. */
44692 #include <$ac_header>
44693 _ACEOF
44694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44696 ac_status=$?
44697 grep -v '^ *+' conftest.er1 >conftest.err
44698 rm -f conftest.er1
44699 cat conftest.err >&5
44700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701 (exit $ac_status); } >/dev/null; then
44702 if test -s conftest.err; then
44703 ac_cpp_err=$ac_c_preproc_warn_flag
44704 else
44705 ac_cpp_err=
44707 else
44708 ac_cpp_err=yes
44710 if test -z "$ac_cpp_err"; then
44711 ac_header_preproc=yes
44712 else
44713 echo "$as_me: failed program was:" >&5
44714 sed 's/^/| /' conftest.$ac_ext >&5
44716 ac_header_preproc=no
44718 rm -f conftest.err conftest.$ac_ext
44719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44720 echo "${ECHO_T}$ac_header_preproc" >&6
44722 # So? What about this header?
44723 case $ac_header_compiler:$ac_header_preproc in
44724 yes:no )
44725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44730 cat <<\_ASBOX
44731 ## ------------------------------------ ##
44732 ## Report this to bug-autoconf@gnu.org. ##
44733 ## ------------------------------------ ##
44734 _ASBOX
44736 sed "s/^/$as_me: WARNING: /" >&2
44738 no:yes )
44739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44746 cat <<\_ASBOX
44747 ## ------------------------------------ ##
44748 ## Report this to bug-autoconf@gnu.org. ##
44749 ## ------------------------------------ ##
44750 _ASBOX
44752 sed "s/^/$as_me: WARNING: /" >&2
44754 esac
44755 echo "$as_me:$LINENO: checking for $ac_header" >&5
44756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44758 echo $ECHO_N "(cached) $ECHO_C" >&6
44759 else
44760 eval "$as_ac_Header=$ac_header_preproc"
44762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44767 cat >>confdefs.h <<_ACEOF
44768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44769 _ACEOF
44770 ac_has_wctype_h=yes
44771 else
44772 ac_has_wctype_h=no
44775 done
44778 # Only continue checking if the ISO C99 headers exist and support is on.
44779 if test x"$ac_has_wchar_h" = xyes &&
44780 test x"$ac_has_wctype_h" = xyes &&
44781 test x"$enable_c_mbchar" != xno; then
44783 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
44784 # numeric_limits can instantiate type_traits<wchar_t>
44785 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
44786 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
44787 cat >conftest.$ac_ext <<_ACEOF
44788 #line $LINENO "configure"
44789 /* confdefs.h. */
44790 _ACEOF
44791 cat confdefs.h >>conftest.$ac_ext
44792 cat >>conftest.$ac_ext <<_ACEOF
44793 /* end confdefs.h. */
44794 #include <wchar.h>
44796 main ()
44798 int i = WCHAR_MIN; int j = WCHAR_MAX;
44800 return 0;
44802 _ACEOF
44803 rm -f conftest.$ac_objext
44804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44805 (eval $ac_compile) 2>&5
44806 ac_status=$?
44807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44808 (exit $ac_status); } &&
44809 { ac_try='test -s conftest.$ac_objext'
44810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44811 (eval $ac_try) 2>&5
44812 ac_status=$?
44813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44814 (exit $ac_status); }; }; then
44815 has_wchar_minmax=yes
44816 else
44817 echo "$as_me: failed program was:" >&5
44818 sed 's/^/| /' conftest.$ac_ext >&5
44820 has_wchar_minmax=no
44822 rm -f conftest.$ac_objext conftest.$ac_ext
44823 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
44824 echo "${ECHO_T}$has_wchar_minmax" >&6
44826 # Test wchar.h for WEOF, which is what we use to determine whether
44827 # to specialize for char_traits<wchar_t> or not.
44828 echo "$as_me:$LINENO: checking for WEOF" >&5
44829 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
44830 cat >conftest.$ac_ext <<_ACEOF
44831 #line $LINENO "configure"
44832 /* confdefs.h. */
44833 _ACEOF
44834 cat confdefs.h >>conftest.$ac_ext
44835 cat >>conftest.$ac_ext <<_ACEOF
44836 /* end confdefs.h. */
44838 #include <wchar.h>
44839 #include <stddef.h>
44841 main ()
44843 wint_t i = WEOF;
44845 return 0;
44847 _ACEOF
44848 rm -f conftest.$ac_objext
44849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44850 (eval $ac_compile) 2>&5
44851 ac_status=$?
44852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44853 (exit $ac_status); } &&
44854 { ac_try='test -s conftest.$ac_objext'
44855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44856 (eval $ac_try) 2>&5
44857 ac_status=$?
44858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44859 (exit $ac_status); }; }; then
44860 has_weof=yes
44861 else
44862 echo "$as_me: failed program was:" >&5
44863 sed 's/^/| /' conftest.$ac_ext >&5
44865 has_weof=no
44867 rm -f conftest.$ac_objext conftest.$ac_ext
44868 echo "$as_me:$LINENO: result: $has_weof" >&5
44869 echo "${ECHO_T}$has_weof" >&6
44871 # Tests for wide character functions used in char_traits<wchar_t>.
44872 ac_wfuncs=yes
44879 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
44881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44882 echo "$as_me:$LINENO: checking for $ac_func" >&5
44883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44884 if eval "test \"\${$as_ac_var+set}\" = set"; then
44885 echo $ECHO_N "(cached) $ECHO_C" >&6
44886 else
44887 if test x$gcc_no_link = xyes; then
44888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44890 { (exit 1); exit 1; }; }
44892 cat >conftest.$ac_ext <<_ACEOF
44893 #line $LINENO "configure"
44894 /* confdefs.h. */
44895 _ACEOF
44896 cat confdefs.h >>conftest.$ac_ext
44897 cat >>conftest.$ac_ext <<_ACEOF
44898 /* end confdefs.h. */
44899 /* System header to define __stub macros and hopefully few prototypes,
44900 which can conflict with char $ac_func (); below.
44901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44902 <limits.h> exists even on freestanding compilers. */
44903 #ifdef __STDC__
44904 # include <limits.h>
44905 #else
44906 # include <assert.h>
44907 #endif
44908 /* Override any gcc2 internal prototype to avoid an error. */
44909 #ifdef __cplusplus
44910 extern "C"
44912 #endif
44913 /* We use char because int might match the return type of a gcc2
44914 builtin and then its argument prototype would still apply. */
44915 char $ac_func ();
44916 /* The GNU C library defines this for functions which it implements
44917 to always fail with ENOSYS. Some functions are actually named
44918 something starting with __ and the normal name is an alias. */
44919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44920 choke me
44921 #else
44922 char (*f) () = $ac_func;
44923 #endif
44924 #ifdef __cplusplus
44926 #endif
44929 main ()
44931 return f != $ac_func;
44933 return 0;
44935 _ACEOF
44936 rm -f conftest.$ac_objext conftest$ac_exeext
44937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44938 (eval $ac_link) 2>&5
44939 ac_status=$?
44940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44941 (exit $ac_status); } &&
44942 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
44949 else
44950 echo "$as_me: failed program was:" >&5
44951 sed 's/^/| /' conftest.$ac_ext >&5
44953 eval "$as_ac_var=no"
44955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44959 if test `eval echo '${'$as_ac_var'}'` = yes; then
44960 cat >>confdefs.h <<_ACEOF
44961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44962 _ACEOF
44964 else
44965 ac_wfuncs=no
44967 done
44970 # Checks for names injected into std:: by the c_std headers.
45021 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
45022 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
45023 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
45024 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
45025 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
45026 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
45028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45029 echo "$as_me:$LINENO: checking for $ac_func" >&5
45030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45031 if eval "test \"\${$as_ac_var+set}\" = set"; then
45032 echo $ECHO_N "(cached) $ECHO_C" >&6
45033 else
45034 if test x$gcc_no_link = xyes; then
45035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45037 { (exit 1); exit 1; }; }
45039 cat >conftest.$ac_ext <<_ACEOF
45040 #line $LINENO "configure"
45041 /* confdefs.h. */
45042 _ACEOF
45043 cat confdefs.h >>conftest.$ac_ext
45044 cat >>conftest.$ac_ext <<_ACEOF
45045 /* end confdefs.h. */
45046 /* System header to define __stub macros and hopefully few prototypes,
45047 which can conflict with char $ac_func (); below.
45048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45049 <limits.h> exists even on freestanding compilers. */
45050 #ifdef __STDC__
45051 # include <limits.h>
45052 #else
45053 # include <assert.h>
45054 #endif
45055 /* Override any gcc2 internal prototype to avoid an error. */
45056 #ifdef __cplusplus
45057 extern "C"
45059 #endif
45060 /* We use char because int might match the return type of a gcc2
45061 builtin and then its argument prototype would still apply. */
45062 char $ac_func ();
45063 /* The GNU C library defines this for functions which it implements
45064 to always fail with ENOSYS. Some functions are actually named
45065 something starting with __ and the normal name is an alias. */
45066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45067 choke me
45068 #else
45069 char (*f) () = $ac_func;
45070 #endif
45071 #ifdef __cplusplus
45073 #endif
45076 main ()
45078 return f != $ac_func;
45080 return 0;
45082 _ACEOF
45083 rm -f conftest.$ac_objext conftest$ac_exeext
45084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45085 (eval $ac_link) 2>&5
45086 ac_status=$?
45087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45088 (exit $ac_status); } &&
45089 { ac_try='test -s conftest$ac_exeext'
45090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45091 (eval $ac_try) 2>&5
45092 ac_status=$?
45093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45094 (exit $ac_status); }; }; then
45095 eval "$as_ac_var=yes"
45096 else
45097 echo "$as_me: failed program was:" >&5
45098 sed 's/^/| /' conftest.$ac_ext >&5
45100 eval "$as_ac_var=no"
45102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45106 if test `eval echo '${'$as_ac_var'}'` = yes; then
45107 cat >>confdefs.h <<_ACEOF
45108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45109 _ACEOF
45111 else
45112 ac_wfuncs=no
45114 done
45117 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
45118 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
45119 if test x"$has_weof" = xyes &&
45120 test x"$has_wchar_minmax" = xyes &&
45121 test x"$ac_wfuncs" = xyes;
45122 then
45123 ac_isoC99_wchar_t=yes
45124 else
45125 ac_isoC99_wchar_t=no
45127 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
45128 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
45130 # Use iconv for wchar_t to char conversions. As such, check for
45131 # X/Open Portability Guide, version 2 features (XPG2).
45132 if test "${ac_cv_header_iconv_h+set}" = set; then
45133 echo "$as_me:$LINENO: checking for iconv.h" >&5
45134 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45135 if test "${ac_cv_header_iconv_h+set}" = set; then
45136 echo $ECHO_N "(cached) $ECHO_C" >&6
45138 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45139 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45140 else
45141 # Is the header compilable?
45142 echo "$as_me:$LINENO: checking iconv.h usability" >&5
45143 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
45144 cat >conftest.$ac_ext <<_ACEOF
45145 #line $LINENO "configure"
45146 /* confdefs.h. */
45147 _ACEOF
45148 cat confdefs.h >>conftest.$ac_ext
45149 cat >>conftest.$ac_ext <<_ACEOF
45150 /* end confdefs.h. */
45151 $ac_includes_default
45152 #include <iconv.h>
45153 _ACEOF
45154 rm -f conftest.$ac_objext
45155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45156 (eval $ac_compile) 2>&5
45157 ac_status=$?
45158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45159 (exit $ac_status); } &&
45160 { ac_try='test -s conftest.$ac_objext'
45161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45162 (eval $ac_try) 2>&5
45163 ac_status=$?
45164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45165 (exit $ac_status); }; }; then
45166 ac_header_compiler=yes
45167 else
45168 echo "$as_me: failed program was:" >&5
45169 sed 's/^/| /' conftest.$ac_ext >&5
45171 ac_header_compiler=no
45173 rm -f conftest.$ac_objext conftest.$ac_ext
45174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45175 echo "${ECHO_T}$ac_header_compiler" >&6
45177 # Is the header present?
45178 echo "$as_me:$LINENO: checking iconv.h presence" >&5
45179 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
45180 cat >conftest.$ac_ext <<_ACEOF
45181 #line $LINENO "configure"
45182 /* confdefs.h. */
45183 _ACEOF
45184 cat confdefs.h >>conftest.$ac_ext
45185 cat >>conftest.$ac_ext <<_ACEOF
45186 /* end confdefs.h. */
45187 #include <iconv.h>
45188 _ACEOF
45189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45191 ac_status=$?
45192 grep -v '^ *+' conftest.er1 >conftest.err
45193 rm -f conftest.er1
45194 cat conftest.err >&5
45195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45196 (exit $ac_status); } >/dev/null; then
45197 if test -s conftest.err; then
45198 ac_cpp_err=$ac_c_preproc_warn_flag
45199 else
45200 ac_cpp_err=
45202 else
45203 ac_cpp_err=yes
45205 if test -z "$ac_cpp_err"; then
45206 ac_header_preproc=yes
45207 else
45208 echo "$as_me: failed program was:" >&5
45209 sed 's/^/| /' conftest.$ac_ext >&5
45211 ac_header_preproc=no
45213 rm -f conftest.err conftest.$ac_ext
45214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45215 echo "${ECHO_T}$ac_header_preproc" >&6
45217 # So? What about this header?
45218 case $ac_header_compiler:$ac_header_preproc in
45219 yes:no )
45220 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
45221 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45222 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45223 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45225 cat <<\_ASBOX
45226 ## ------------------------------------ ##
45227 ## Report this to bug-autoconf@gnu.org. ##
45228 ## ------------------------------------ ##
45229 _ASBOX
45231 sed "s/^/$as_me: WARNING: /" >&2
45233 no:yes )
45234 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
45235 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
45236 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
45237 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
45238 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45239 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45241 cat <<\_ASBOX
45242 ## ------------------------------------ ##
45243 ## Report this to bug-autoconf@gnu.org. ##
45244 ## ------------------------------------ ##
45245 _ASBOX
45247 sed "s/^/$as_me: WARNING: /" >&2
45249 esac
45250 echo "$as_me:$LINENO: checking for iconv.h" >&5
45251 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45252 if test "${ac_cv_header_iconv_h+set}" = set; then
45253 echo $ECHO_N "(cached) $ECHO_C" >&6
45254 else
45255 ac_cv_header_iconv_h=$ac_header_preproc
45257 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45258 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45261 if test $ac_cv_header_iconv_h = yes; then
45262 ac_has_iconv_h=yes
45263 else
45264 ac_has_iconv_h=no
45268 if test "${ac_cv_header_langinfo_h+set}" = set; then
45269 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45270 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45271 if test "${ac_cv_header_langinfo_h+set}" = set; then
45272 echo $ECHO_N "(cached) $ECHO_C" >&6
45274 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45275 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45276 else
45277 # Is the header compilable?
45278 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
45279 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
45280 cat >conftest.$ac_ext <<_ACEOF
45281 #line $LINENO "configure"
45282 /* confdefs.h. */
45283 _ACEOF
45284 cat confdefs.h >>conftest.$ac_ext
45285 cat >>conftest.$ac_ext <<_ACEOF
45286 /* end confdefs.h. */
45287 $ac_includes_default
45288 #include <langinfo.h>
45289 _ACEOF
45290 rm -f conftest.$ac_objext
45291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45292 (eval $ac_compile) 2>&5
45293 ac_status=$?
45294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45295 (exit $ac_status); } &&
45296 { ac_try='test -s conftest.$ac_objext'
45297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45298 (eval $ac_try) 2>&5
45299 ac_status=$?
45300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45301 (exit $ac_status); }; }; then
45302 ac_header_compiler=yes
45303 else
45304 echo "$as_me: failed program was:" >&5
45305 sed 's/^/| /' conftest.$ac_ext >&5
45307 ac_header_compiler=no
45309 rm -f conftest.$ac_objext conftest.$ac_ext
45310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45311 echo "${ECHO_T}$ac_header_compiler" >&6
45313 # Is the header present?
45314 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
45315 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
45316 cat >conftest.$ac_ext <<_ACEOF
45317 #line $LINENO "configure"
45318 /* confdefs.h. */
45319 _ACEOF
45320 cat confdefs.h >>conftest.$ac_ext
45321 cat >>conftest.$ac_ext <<_ACEOF
45322 /* end confdefs.h. */
45323 #include <langinfo.h>
45324 _ACEOF
45325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45327 ac_status=$?
45328 grep -v '^ *+' conftest.er1 >conftest.err
45329 rm -f conftest.er1
45330 cat conftest.err >&5
45331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332 (exit $ac_status); } >/dev/null; then
45333 if test -s conftest.err; then
45334 ac_cpp_err=$ac_c_preproc_warn_flag
45335 else
45336 ac_cpp_err=
45338 else
45339 ac_cpp_err=yes
45341 if test -z "$ac_cpp_err"; then
45342 ac_header_preproc=yes
45343 else
45344 echo "$as_me: failed program was:" >&5
45345 sed 's/^/| /' conftest.$ac_ext >&5
45347 ac_header_preproc=no
45349 rm -f conftest.err conftest.$ac_ext
45350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45351 echo "${ECHO_T}$ac_header_preproc" >&6
45353 # So? What about this header?
45354 case $ac_header_compiler:$ac_header_preproc in
45355 yes:no )
45356 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
45357 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45358 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45359 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45361 cat <<\_ASBOX
45362 ## ------------------------------------ ##
45363 ## Report this to bug-autoconf@gnu.org. ##
45364 ## ------------------------------------ ##
45365 _ASBOX
45367 sed "s/^/$as_me: WARNING: /" >&2
45369 no:yes )
45370 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
45371 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
45372 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
45373 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
45374 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45375 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45377 cat <<\_ASBOX
45378 ## ------------------------------------ ##
45379 ## Report this to bug-autoconf@gnu.org. ##
45380 ## ------------------------------------ ##
45381 _ASBOX
45383 sed "s/^/$as_me: WARNING: /" >&2
45385 esac
45386 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45387 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45388 if test "${ac_cv_header_langinfo_h+set}" = set; then
45389 echo $ECHO_N "(cached) $ECHO_C" >&6
45390 else
45391 ac_cv_header_langinfo_h=$ac_header_preproc
45393 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45394 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45397 if test $ac_cv_header_langinfo_h = yes; then
45398 ac_has_langinfo_h=yes
45399 else
45400 ac_has_langinfo_h=no
45405 # Check for existence of libiconv.a providing XPG2 wchar_t support.
45406 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
45407 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
45408 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
45409 echo $ECHO_N "(cached) $ECHO_C" >&6
45410 else
45411 ac_check_lib_save_LIBS=$LIBS
45412 LIBS="-liconv $LIBS"
45413 if test x$gcc_no_link = xyes; then
45414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45416 { (exit 1); exit 1; }; }
45418 cat >conftest.$ac_ext <<_ACEOF
45419 #line $LINENO "configure"
45420 /* confdefs.h. */
45421 _ACEOF
45422 cat confdefs.h >>conftest.$ac_ext
45423 cat >>conftest.$ac_ext <<_ACEOF
45424 /* end confdefs.h. */
45426 /* Override any gcc2 internal prototype to avoid an error. */
45427 #ifdef __cplusplus
45428 extern "C"
45429 #endif
45430 /* We use char because int might match the return type of a gcc2
45431 builtin and then its argument prototype would still apply. */
45432 char iconv ();
45434 main ()
45436 iconv ();
45438 return 0;
45440 _ACEOF
45441 rm -f conftest.$ac_objext conftest$ac_exeext
45442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45443 (eval $ac_link) 2>&5
45444 ac_status=$?
45445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45446 (exit $ac_status); } &&
45447 { ac_try='test -s conftest$ac_exeext'
45448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45449 (eval $ac_try) 2>&5
45450 ac_status=$?
45451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45452 (exit $ac_status); }; }; then
45453 ac_cv_lib_iconv_iconv=yes
45454 else
45455 echo "$as_me: failed program was:" >&5
45456 sed 's/^/| /' conftest.$ac_ext >&5
45458 ac_cv_lib_iconv_iconv=no
45460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45461 LIBS=$ac_check_lib_save_LIBS
45463 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
45464 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
45465 if test $ac_cv_lib_iconv_iconv = yes; then
45466 libiconv="-liconv"
45469 ac_save_LIBS="$LIBS"
45470 LIBS="$LIBS $libiconv"
45476 for ac_func in iconv_open iconv_close iconv nl_langinfo
45478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45479 echo "$as_me:$LINENO: checking for $ac_func" >&5
45480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45481 if eval "test \"\${$as_ac_var+set}\" = set"; then
45482 echo $ECHO_N "(cached) $ECHO_C" >&6
45483 else
45484 if test x$gcc_no_link = xyes; then
45485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45487 { (exit 1); exit 1; }; }
45489 cat >conftest.$ac_ext <<_ACEOF
45490 #line $LINENO "configure"
45491 /* confdefs.h. */
45492 _ACEOF
45493 cat confdefs.h >>conftest.$ac_ext
45494 cat >>conftest.$ac_ext <<_ACEOF
45495 /* end confdefs.h. */
45496 /* System header to define __stub macros and hopefully few prototypes,
45497 which can conflict with char $ac_func (); below.
45498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45499 <limits.h> exists even on freestanding compilers. */
45500 #ifdef __STDC__
45501 # include <limits.h>
45502 #else
45503 # include <assert.h>
45504 #endif
45505 /* Override any gcc2 internal prototype to avoid an error. */
45506 #ifdef __cplusplus
45507 extern "C"
45509 #endif
45510 /* We use char because int might match the return type of a gcc2
45511 builtin and then its argument prototype would still apply. */
45512 char $ac_func ();
45513 /* The GNU C library defines this for functions which it implements
45514 to always fail with ENOSYS. Some functions are actually named
45515 something starting with __ and the normal name is an alias. */
45516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45517 choke me
45518 #else
45519 char (*f) () = $ac_func;
45520 #endif
45521 #ifdef __cplusplus
45523 #endif
45526 main ()
45528 return f != $ac_func;
45530 return 0;
45532 _ACEOF
45533 rm -f conftest.$ac_objext conftest$ac_exeext
45534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45535 (eval $ac_link) 2>&5
45536 ac_status=$?
45537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45538 (exit $ac_status); } &&
45539 { ac_try='test -s conftest$ac_exeext'
45540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45541 (eval $ac_try) 2>&5
45542 ac_status=$?
45543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45544 (exit $ac_status); }; }; then
45545 eval "$as_ac_var=yes"
45546 else
45547 echo "$as_me: failed program was:" >&5
45548 sed 's/^/| /' conftest.$ac_ext >&5
45550 eval "$as_ac_var=no"
45552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45556 if test `eval echo '${'$as_ac_var'}'` = yes; then
45557 cat >>confdefs.h <<_ACEOF
45558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45559 _ACEOF
45560 ac_XPG2funcs=yes
45561 else
45562 ac_XPG2funcs=no
45564 done
45567 LIBS="$ac_save_LIBS"
45569 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
45570 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
45571 if test x"$ac_has_iconv_h" = xyes &&
45572 test x"$ac_has_langinfo_h" = xyes &&
45573 test x"$ac_XPG2funcs" = xyes;
45574 then
45575 ac_XPG2_wchar_t=yes
45576 else
45577 ac_XPG2_wchar_t=no
45579 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
45580 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
45582 # At the moment, only enable wchar_t specializations if all the
45583 # above support is present.
45584 if test x"$ac_isoC99_wchar_t" = xyes &&
45585 test x"$ac_XPG2_wchar_t" = xyes;
45586 then
45587 cat >>confdefs.h <<\_ACEOF
45588 #define _GLIBCXX_USE_WCHAR_T 1
45589 _ACEOF
45591 enable_wchar_t=yes
45594 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
45595 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
45596 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
45597 echo "${ECHO_T}$enable_wchar_t" >&6
45600 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45601 ac_save_CXXFLAGS="$CXXFLAGS"
45602 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45605 echo "$as_me:$LINENO: checking for strtold declaration" >&5
45606 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
45607 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45608 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
45609 echo $ECHO_N "(cached) $ECHO_C" >&6
45610 else
45614 ac_ext=cc
45615 ac_cpp='$CXXCPP $CPPFLAGS'
45616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45620 cat >conftest.$ac_ext <<_ACEOF
45621 #line $LINENO "configure"
45622 /* confdefs.h. */
45623 _ACEOF
45624 cat confdefs.h >>conftest.$ac_ext
45625 cat >>conftest.$ac_ext <<_ACEOF
45626 /* end confdefs.h. */
45627 #include <stdlib.h>
45629 main ()
45631 strtold(0, 0);
45633 return 0;
45635 _ACEOF
45636 rm -f conftest.$ac_objext
45637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45638 (eval $ac_compile) 2>&5
45639 ac_status=$?
45640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45641 (exit $ac_status); } &&
45642 { ac_try='test -s conftest.$ac_objext'
45643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45644 (eval $ac_try) 2>&5
45645 ac_status=$?
45646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45647 (exit $ac_status); }; }; then
45648 glibcxx_cv_func_strtold_use=yes
45649 else
45650 echo "$as_me: failed program was:" >&5
45651 sed 's/^/| /' conftest.$ac_ext >&5
45653 glibcxx_cv_func_strtold_use=no
45655 rm -f conftest.$ac_objext conftest.$ac_ext
45656 ac_ext=c
45657 ac_cpp='$CPP $CPPFLAGS'
45658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45666 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
45667 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
45668 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
45670 for ac_func in strtold
45672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45673 echo "$as_me:$LINENO: checking for $ac_func" >&5
45674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45675 if eval "test \"\${$as_ac_var+set}\" = set"; then
45676 echo $ECHO_N "(cached) $ECHO_C" >&6
45677 else
45678 if test x$gcc_no_link = xyes; then
45679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45681 { (exit 1); exit 1; }; }
45683 cat >conftest.$ac_ext <<_ACEOF
45684 #line $LINENO "configure"
45685 /* confdefs.h. */
45686 _ACEOF
45687 cat confdefs.h >>conftest.$ac_ext
45688 cat >>conftest.$ac_ext <<_ACEOF
45689 /* end confdefs.h. */
45690 /* System header to define __stub macros and hopefully few prototypes,
45691 which can conflict with char $ac_func (); below.
45692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45693 <limits.h> exists even on freestanding compilers. */
45694 #ifdef __STDC__
45695 # include <limits.h>
45696 #else
45697 # include <assert.h>
45698 #endif
45699 /* Override any gcc2 internal prototype to avoid an error. */
45700 #ifdef __cplusplus
45701 extern "C"
45703 #endif
45704 /* We use char because int might match the return type of a gcc2
45705 builtin and then its argument prototype would still apply. */
45706 char $ac_func ();
45707 /* The GNU C library defines this for functions which it implements
45708 to always fail with ENOSYS. Some functions are actually named
45709 something starting with __ and the normal name is an alias. */
45710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45711 choke me
45712 #else
45713 char (*f) () = $ac_func;
45714 #endif
45715 #ifdef __cplusplus
45717 #endif
45720 main ()
45722 return f != $ac_func;
45724 return 0;
45726 _ACEOF
45727 rm -f conftest.$ac_objext conftest$ac_exeext
45728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45729 (eval $ac_link) 2>&5
45730 ac_status=$?
45731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45732 (exit $ac_status); } &&
45733 { ac_try='test -s conftest$ac_exeext'
45734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45735 (eval $ac_try) 2>&5
45736 ac_status=$?
45737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45738 (exit $ac_status); }; }; then
45739 eval "$as_ac_var=yes"
45740 else
45741 echo "$as_me: failed program was:" >&5
45742 sed 's/^/| /' conftest.$ac_ext >&5
45744 eval "$as_ac_var=no"
45746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45750 if test `eval echo '${'$as_ac_var'}'` = yes; then
45751 cat >>confdefs.h <<_ACEOF
45752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45753 _ACEOF
45756 done
45761 echo "$as_me:$LINENO: checking for strtof declaration" >&5
45762 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
45763 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
45764 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
45765 echo $ECHO_N "(cached) $ECHO_C" >&6
45766 else
45770 ac_ext=cc
45771 ac_cpp='$CXXCPP $CPPFLAGS'
45772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45776 cat >conftest.$ac_ext <<_ACEOF
45777 #line $LINENO "configure"
45778 /* confdefs.h. */
45779 _ACEOF
45780 cat confdefs.h >>conftest.$ac_ext
45781 cat >>conftest.$ac_ext <<_ACEOF
45782 /* end confdefs.h. */
45783 #include <stdlib.h>
45785 main ()
45787 strtof(0, 0);
45789 return 0;
45791 _ACEOF
45792 rm -f conftest.$ac_objext
45793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45794 (eval $ac_compile) 2>&5
45795 ac_status=$?
45796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45797 (exit $ac_status); } &&
45798 { ac_try='test -s conftest.$ac_objext'
45799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45800 (eval $ac_try) 2>&5
45801 ac_status=$?
45802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45803 (exit $ac_status); }; }; then
45804 glibcxx_cv_func_strtof_use=yes
45805 else
45806 echo "$as_me: failed program was:" >&5
45807 sed 's/^/| /' conftest.$ac_ext >&5
45809 glibcxx_cv_func_strtof_use=no
45811 rm -f conftest.$ac_objext conftest.$ac_ext
45812 ac_ext=c
45813 ac_cpp='$CPP $CPPFLAGS'
45814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45822 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
45823 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
45824 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
45826 for ac_func in strtof
45828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45829 echo "$as_me:$LINENO: checking for $ac_func" >&5
45830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45831 if eval "test \"\${$as_ac_var+set}\" = set"; then
45832 echo $ECHO_N "(cached) $ECHO_C" >&6
45833 else
45834 if test x$gcc_no_link = xyes; then
45835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45837 { (exit 1); exit 1; }; }
45839 cat >conftest.$ac_ext <<_ACEOF
45840 #line $LINENO "configure"
45841 /* confdefs.h. */
45842 _ACEOF
45843 cat confdefs.h >>conftest.$ac_ext
45844 cat >>conftest.$ac_ext <<_ACEOF
45845 /* end confdefs.h. */
45846 /* System header to define __stub macros and hopefully few prototypes,
45847 which can conflict with char $ac_func (); below.
45848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45849 <limits.h> exists even on freestanding compilers. */
45850 #ifdef __STDC__
45851 # include <limits.h>
45852 #else
45853 # include <assert.h>
45854 #endif
45855 /* Override any gcc2 internal prototype to avoid an error. */
45856 #ifdef __cplusplus
45857 extern "C"
45859 #endif
45860 /* We use char because int might match the return type of a gcc2
45861 builtin and then its argument prototype would still apply. */
45862 char $ac_func ();
45863 /* The GNU C library defines this for functions which it implements
45864 to always fail with ENOSYS. Some functions are actually named
45865 something starting with __ and the normal name is an alias. */
45866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45867 choke me
45868 #else
45869 char (*f) () = $ac_func;
45870 #endif
45871 #ifdef __cplusplus
45873 #endif
45876 main ()
45878 return f != $ac_func;
45880 return 0;
45882 _ACEOF
45883 rm -f conftest.$ac_objext conftest$ac_exeext
45884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45885 (eval $ac_link) 2>&5
45886 ac_status=$?
45887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45888 (exit $ac_status); } &&
45889 { ac_try='test -s conftest$ac_exeext'
45890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45891 (eval $ac_try) 2>&5
45892 ac_status=$?
45893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45894 (exit $ac_status); }; }; then
45895 eval "$as_ac_var=yes"
45896 else
45897 echo "$as_me: failed program was:" >&5
45898 sed 's/^/| /' conftest.$ac_ext >&5
45900 eval "$as_ac_var=no"
45902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45906 if test `eval echo '${'$as_ac_var'}'` = yes; then
45907 cat >>confdefs.h <<_ACEOF
45908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45909 _ACEOF
45912 done
45917 for ac_func in drand48
45919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45920 echo "$as_me:$LINENO: checking for $ac_func" >&5
45921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45922 if eval "test \"\${$as_ac_var+set}\" = set"; then
45923 echo $ECHO_N "(cached) $ECHO_C" >&6
45924 else
45925 if test x$gcc_no_link = xyes; then
45926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45928 { (exit 1); exit 1; }; }
45930 cat >conftest.$ac_ext <<_ACEOF
45931 #line $LINENO "configure"
45932 /* confdefs.h. */
45933 _ACEOF
45934 cat confdefs.h >>conftest.$ac_ext
45935 cat >>conftest.$ac_ext <<_ACEOF
45936 /* end confdefs.h. */
45937 /* System header to define __stub macros and hopefully few prototypes,
45938 which can conflict with char $ac_func (); below.
45939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45940 <limits.h> exists even on freestanding compilers. */
45941 #ifdef __STDC__
45942 # include <limits.h>
45943 #else
45944 # include <assert.h>
45945 #endif
45946 /* Override any gcc2 internal prototype to avoid an error. */
45947 #ifdef __cplusplus
45948 extern "C"
45950 #endif
45951 /* We use char because int might match the return type of a gcc2
45952 builtin and then its argument prototype would still apply. */
45953 char $ac_func ();
45954 /* The GNU C library defines this for functions which it implements
45955 to always fail with ENOSYS. Some functions are actually named
45956 something starting with __ and the normal name is an alias. */
45957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45958 choke me
45959 #else
45960 char (*f) () = $ac_func;
45961 #endif
45962 #ifdef __cplusplus
45964 #endif
45967 main ()
45969 return f != $ac_func;
45971 return 0;
45973 _ACEOF
45974 rm -f conftest.$ac_objext conftest$ac_exeext
45975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45976 (eval $ac_link) 2>&5
45977 ac_status=$?
45978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45979 (exit $ac_status); } &&
45980 { ac_try='test -s conftest$ac_exeext'
45981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45982 (eval $ac_try) 2>&5
45983 ac_status=$?
45984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45985 (exit $ac_status); }; }; then
45986 eval "$as_ac_var=yes"
45987 else
45988 echo "$as_me: failed program was:" >&5
45989 sed 's/^/| /' conftest.$ac_ext >&5
45991 eval "$as_ac_var=no"
45993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45997 if test `eval echo '${'$as_ac_var'}'` = yes; then
45998 cat >>confdefs.h <<_ACEOF
45999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46000 _ACEOF
46003 done
46006 CXXFLAGS="$ac_save_CXXFLAGS"
46009 # For showmanyc_helper().
46012 for ac_header in sys/ioctl.h sys/filio.h
46014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46016 echo "$as_me:$LINENO: checking for $ac_header" >&5
46017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46019 echo $ECHO_N "(cached) $ECHO_C" >&6
46021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46023 else
46024 # Is the header compilable?
46025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46027 cat >conftest.$ac_ext <<_ACEOF
46028 #line $LINENO "configure"
46029 /* confdefs.h. */
46030 _ACEOF
46031 cat confdefs.h >>conftest.$ac_ext
46032 cat >>conftest.$ac_ext <<_ACEOF
46033 /* end confdefs.h. */
46034 $ac_includes_default
46035 #include <$ac_header>
46036 _ACEOF
46037 rm -f conftest.$ac_objext
46038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46039 (eval $ac_compile) 2>&5
46040 ac_status=$?
46041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46042 (exit $ac_status); } &&
46043 { ac_try='test -s conftest.$ac_objext'
46044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46045 (eval $ac_try) 2>&5
46046 ac_status=$?
46047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46048 (exit $ac_status); }; }; then
46049 ac_header_compiler=yes
46050 else
46051 echo "$as_me: failed program was:" >&5
46052 sed 's/^/| /' conftest.$ac_ext >&5
46054 ac_header_compiler=no
46056 rm -f conftest.$ac_objext conftest.$ac_ext
46057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46058 echo "${ECHO_T}$ac_header_compiler" >&6
46060 # Is the header present?
46061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46063 cat >conftest.$ac_ext <<_ACEOF
46064 #line $LINENO "configure"
46065 /* confdefs.h. */
46066 _ACEOF
46067 cat confdefs.h >>conftest.$ac_ext
46068 cat >>conftest.$ac_ext <<_ACEOF
46069 /* end confdefs.h. */
46070 #include <$ac_header>
46071 _ACEOF
46072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46074 ac_status=$?
46075 grep -v '^ *+' conftest.er1 >conftest.err
46076 rm -f conftest.er1
46077 cat conftest.err >&5
46078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46079 (exit $ac_status); } >/dev/null; then
46080 if test -s conftest.err; then
46081 ac_cpp_err=$ac_c_preproc_warn_flag
46082 else
46083 ac_cpp_err=
46085 else
46086 ac_cpp_err=yes
46088 if test -z "$ac_cpp_err"; then
46089 ac_header_preproc=yes
46090 else
46091 echo "$as_me: failed program was:" >&5
46092 sed 's/^/| /' conftest.$ac_ext >&5
46094 ac_header_preproc=no
46096 rm -f conftest.err conftest.$ac_ext
46097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46098 echo "${ECHO_T}$ac_header_preproc" >&6
46100 # So? What about this header?
46101 case $ac_header_compiler:$ac_header_preproc in
46102 yes:no )
46103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46108 cat <<\_ASBOX
46109 ## ------------------------------------ ##
46110 ## Report this to bug-autoconf@gnu.org. ##
46111 ## ------------------------------------ ##
46112 _ASBOX
46114 sed "s/^/$as_me: WARNING: /" >&2
46116 no:yes )
46117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46124 cat <<\_ASBOX
46125 ## ------------------------------------ ##
46126 ## Report this to bug-autoconf@gnu.org. ##
46127 ## ------------------------------------ ##
46128 _ASBOX
46130 sed "s/^/$as_me: WARNING: /" >&2
46132 esac
46133 echo "$as_me:$LINENO: checking for $ac_header" >&5
46134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46136 echo $ECHO_N "(cached) $ECHO_C" >&6
46137 else
46138 eval "$as_ac_Header=$ac_header_preproc"
46140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46145 cat >>confdefs.h <<_ACEOF
46146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46147 _ACEOF
46151 done
46154 if test "${glibcxx_cv_POLL+set}" = set; then
46155 echo $ECHO_N "(cached) $ECHO_C" >&6
46156 else
46158 cat >conftest.$ac_ext <<_ACEOF
46159 #line $LINENO "configure"
46160 /* confdefs.h. */
46161 _ACEOF
46162 cat confdefs.h >>conftest.$ac_ext
46163 cat >>conftest.$ac_ext <<_ACEOF
46164 /* end confdefs.h. */
46165 #include <poll.h>
46167 main ()
46169 struct pollfd pfd[1];
46170 pfd[0].events = POLLIN;
46171 poll(pfd, 1, 0);
46173 return 0;
46175 _ACEOF
46176 rm -f conftest.$ac_objext
46177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46178 (eval $ac_compile) 2>&5
46179 ac_status=$?
46180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46181 (exit $ac_status); } &&
46182 { ac_try='test -s conftest.$ac_objext'
46183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46184 (eval $ac_try) 2>&5
46185 ac_status=$?
46186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46187 (exit $ac_status); }; }; then
46188 glibcxx_cv_POLL=yes
46189 else
46190 echo "$as_me: failed program was:" >&5
46191 sed 's/^/| /' conftest.$ac_ext >&5
46193 glibcxx_cv_POLL=no
46195 rm -f conftest.$ac_objext conftest.$ac_ext
46199 if test $glibcxx_cv_POLL = yes; then
46200 cat >>confdefs.h <<\_ACEOF
46201 #define HAVE_POLL 1
46202 _ACEOF
46207 if test "${glibcxx_cv_S_ISREG+set}" = set; then
46208 echo $ECHO_N "(cached) $ECHO_C" >&6
46209 else
46211 if test x$gcc_no_link = xyes; then
46212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46214 { (exit 1); exit 1; }; }
46216 cat >conftest.$ac_ext <<_ACEOF
46217 #line $LINENO "configure"
46218 /* confdefs.h. */
46219 _ACEOF
46220 cat confdefs.h >>conftest.$ac_ext
46221 cat >>conftest.$ac_ext <<_ACEOF
46222 /* end confdefs.h. */
46223 #include <sys/stat.h>
46225 main ()
46227 struct stat buffer;
46228 fstat(0, &buffer);
46229 S_ISREG(buffer.st_mode);
46231 return 0;
46233 _ACEOF
46234 rm -f conftest.$ac_objext conftest$ac_exeext
46235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46236 (eval $ac_link) 2>&5
46237 ac_status=$?
46238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239 (exit $ac_status); } &&
46240 { ac_try='test -s conftest$ac_exeext'
46241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46242 (eval $ac_try) 2>&5
46243 ac_status=$?
46244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46245 (exit $ac_status); }; }; then
46246 glibcxx_cv_S_ISREG=yes
46247 else
46248 echo "$as_me: failed program was:" >&5
46249 sed 's/^/| /' conftest.$ac_ext >&5
46251 glibcxx_cv_S_ISREG=no
46253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46257 if test "${glibcxx_cv_S_IFREG+set}" = set; then
46258 echo $ECHO_N "(cached) $ECHO_C" >&6
46259 else
46261 if test x$gcc_no_link = xyes; then
46262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46264 { (exit 1); exit 1; }; }
46266 cat >conftest.$ac_ext <<_ACEOF
46267 #line $LINENO "configure"
46268 /* confdefs.h. */
46269 _ACEOF
46270 cat confdefs.h >>conftest.$ac_ext
46271 cat >>conftest.$ac_ext <<_ACEOF
46272 /* end confdefs.h. */
46273 #include <sys/stat.h>
46275 main ()
46277 struct stat buffer;
46278 fstat(0, &buffer);
46279 S_IFREG & buffer.st_mode;
46281 return 0;
46283 _ACEOF
46284 rm -f conftest.$ac_objext conftest$ac_exeext
46285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46286 (eval $ac_link) 2>&5
46287 ac_status=$?
46288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46289 (exit $ac_status); } &&
46290 { ac_try='test -s conftest$ac_exeext'
46291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46292 (eval $ac_try) 2>&5
46293 ac_status=$?
46294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46295 (exit $ac_status); }; }; then
46296 glibcxx_cv_S_IFREG=yes
46297 else
46298 echo "$as_me: failed program was:" >&5
46299 sed 's/^/| /' conftest.$ac_ext >&5
46301 glibcxx_cv_S_IFREG=no
46303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46307 if test $glibcxx_cv_S_ISREG = yes; then
46308 cat >>confdefs.h <<\_ACEOF
46309 #define HAVE_S_ISREG 1
46310 _ACEOF
46312 elif test $glibcxx_cv_S_IFREG = yes; then
46313 cat >>confdefs.h <<\_ACEOF
46314 #define HAVE_S_IFREG 1
46315 _ACEOF
46320 # For xsputn_2().
46322 for ac_header in sys/uio.h
46324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46326 echo "$as_me:$LINENO: checking for $ac_header" >&5
46327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46329 echo $ECHO_N "(cached) $ECHO_C" >&6
46331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46333 else
46334 # Is the header compilable?
46335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46337 cat >conftest.$ac_ext <<_ACEOF
46338 #line $LINENO "configure"
46339 /* confdefs.h. */
46340 _ACEOF
46341 cat confdefs.h >>conftest.$ac_ext
46342 cat >>conftest.$ac_ext <<_ACEOF
46343 /* end confdefs.h. */
46344 $ac_includes_default
46345 #include <$ac_header>
46346 _ACEOF
46347 rm -f conftest.$ac_objext
46348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46349 (eval $ac_compile) 2>&5
46350 ac_status=$?
46351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46352 (exit $ac_status); } &&
46353 { ac_try='test -s conftest.$ac_objext'
46354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46355 (eval $ac_try) 2>&5
46356 ac_status=$?
46357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46358 (exit $ac_status); }; }; then
46359 ac_header_compiler=yes
46360 else
46361 echo "$as_me: failed program was:" >&5
46362 sed 's/^/| /' conftest.$ac_ext >&5
46364 ac_header_compiler=no
46366 rm -f conftest.$ac_objext conftest.$ac_ext
46367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46368 echo "${ECHO_T}$ac_header_compiler" >&6
46370 # Is the header present?
46371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46373 cat >conftest.$ac_ext <<_ACEOF
46374 #line $LINENO "configure"
46375 /* confdefs.h. */
46376 _ACEOF
46377 cat confdefs.h >>conftest.$ac_ext
46378 cat >>conftest.$ac_ext <<_ACEOF
46379 /* end confdefs.h. */
46380 #include <$ac_header>
46381 _ACEOF
46382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46384 ac_status=$?
46385 grep -v '^ *+' conftest.er1 >conftest.err
46386 rm -f conftest.er1
46387 cat conftest.err >&5
46388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46389 (exit $ac_status); } >/dev/null; then
46390 if test -s conftest.err; then
46391 ac_cpp_err=$ac_c_preproc_warn_flag
46392 else
46393 ac_cpp_err=
46395 else
46396 ac_cpp_err=yes
46398 if test -z "$ac_cpp_err"; then
46399 ac_header_preproc=yes
46400 else
46401 echo "$as_me: failed program was:" >&5
46402 sed 's/^/| /' conftest.$ac_ext >&5
46404 ac_header_preproc=no
46406 rm -f conftest.err conftest.$ac_ext
46407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46408 echo "${ECHO_T}$ac_header_preproc" >&6
46410 # So? What about this header?
46411 case $ac_header_compiler:$ac_header_preproc in
46412 yes:no )
46413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46418 cat <<\_ASBOX
46419 ## ------------------------------------ ##
46420 ## Report this to bug-autoconf@gnu.org. ##
46421 ## ------------------------------------ ##
46422 _ASBOX
46424 sed "s/^/$as_me: WARNING: /" >&2
46426 no:yes )
46427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46434 cat <<\_ASBOX
46435 ## ------------------------------------ ##
46436 ## Report this to bug-autoconf@gnu.org. ##
46437 ## ------------------------------------ ##
46438 _ASBOX
46440 sed "s/^/$as_me: WARNING: /" >&2
46442 esac
46443 echo "$as_me:$LINENO: checking for $ac_header" >&5
46444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46446 echo $ECHO_N "(cached) $ECHO_C" >&6
46447 else
46448 eval "$as_ac_Header=$ac_header_preproc"
46450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46455 cat >>confdefs.h <<_ACEOF
46456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46457 _ACEOF
46461 done
46464 if test "${glibcxx_cv_WRITEV+set}" = set; then
46465 echo $ECHO_N "(cached) $ECHO_C" >&6
46466 else
46468 cat >conftest.$ac_ext <<_ACEOF
46469 #line $LINENO "configure"
46470 /* confdefs.h. */
46471 _ACEOF
46472 cat confdefs.h >>conftest.$ac_ext
46473 cat >>conftest.$ac_ext <<_ACEOF
46474 /* end confdefs.h. */
46475 #include <sys/uio.h>
46477 main ()
46479 struct iovec iov[2];
46480 writev(0, iov, 0);
46482 return 0;
46484 _ACEOF
46485 rm -f conftest.$ac_objext
46486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46487 (eval $ac_compile) 2>&5
46488 ac_status=$?
46489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46490 (exit $ac_status); } &&
46491 { ac_try='test -s conftest.$ac_objext'
46492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46493 (eval $ac_try) 2>&5
46494 ac_status=$?
46495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46496 (exit $ac_status); }; }; then
46497 glibcxx_cv_WRITEV=yes
46498 else
46499 echo "$as_me: failed program was:" >&5
46500 sed 's/^/| /' conftest.$ac_ext >&5
46502 glibcxx_cv_WRITEV=no
46504 rm -f conftest.$ac_objext conftest.$ac_ext
46508 if test $glibcxx_cv_WRITEV = yes; then
46509 cat >>confdefs.h <<\_ACEOF
46510 #define HAVE_WRITEV 1
46511 _ACEOF
46516 cat >>confdefs.h <<\_ACEOF
46517 #define HAVE_LC_MESSAGES 1
46518 _ACEOF
46521 cat >conftest.$ac_ext <<_ACEOF
46522 #line $LINENO "configure"
46523 /* confdefs.h. */
46524 _ACEOF
46525 cat confdefs.h >>conftest.$ac_ext
46526 cat >>conftest.$ac_ext <<_ACEOF
46527 /* end confdefs.h. */
46528 #include <setjmp.h>
46530 main ()
46532 sigjmp_buf env;
46533 while (! sigsetjmp (env, 1))
46534 siglongjmp (env, 1);
46537 return 0;
46539 _ACEOF
46540 rm -f conftest.$ac_objext
46541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46542 (eval $ac_compile) 2>&5
46543 ac_status=$?
46544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46545 (exit $ac_status); } &&
46546 { ac_try='test -s conftest.$ac_objext'
46547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46548 (eval $ac_try) 2>&5
46549 ac_status=$?
46550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46551 (exit $ac_status); }; }; then
46553 cat >>confdefs.h <<\_ACEOF
46554 #define HAVE_SIGSETJMP 1
46555 _ACEOF
46557 else
46558 echo "$as_me: failed program was:" >&5
46559 sed 's/^/| /' conftest.$ac_ext >&5
46562 rm -f conftest.$ac_objext conftest.$ac_ext
46564 cat >>confdefs.h <<\_ACEOF
46565 #define HAVE_MMAP 1
46566 _ACEOF
46570 *-freebsd*)
46571 #os_include_dir="os/bsd/freebsd"
46588 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
46589 machine/endian.h machine/param.h sys/machine.h sys/types.h \
46590 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
46591 sys/time.h unistd.h
46593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46595 echo "$as_me:$LINENO: checking for $ac_header" >&5
46596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46598 echo $ECHO_N "(cached) $ECHO_C" >&6
46600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46602 else
46603 # Is the header compilable?
46604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46606 cat >conftest.$ac_ext <<_ACEOF
46607 #line $LINENO "configure"
46608 /* confdefs.h. */
46609 _ACEOF
46610 cat confdefs.h >>conftest.$ac_ext
46611 cat >>conftest.$ac_ext <<_ACEOF
46612 /* end confdefs.h. */
46613 $ac_includes_default
46614 #include <$ac_header>
46615 _ACEOF
46616 rm -f conftest.$ac_objext
46617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46618 (eval $ac_compile) 2>&5
46619 ac_status=$?
46620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46621 (exit $ac_status); } &&
46622 { ac_try='test -s conftest.$ac_objext'
46623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46624 (eval $ac_try) 2>&5
46625 ac_status=$?
46626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46627 (exit $ac_status); }; }; then
46628 ac_header_compiler=yes
46629 else
46630 echo "$as_me: failed program was:" >&5
46631 sed 's/^/| /' conftest.$ac_ext >&5
46633 ac_header_compiler=no
46635 rm -f conftest.$ac_objext conftest.$ac_ext
46636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46637 echo "${ECHO_T}$ac_header_compiler" >&6
46639 # Is the header present?
46640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46642 cat >conftest.$ac_ext <<_ACEOF
46643 #line $LINENO "configure"
46644 /* confdefs.h. */
46645 _ACEOF
46646 cat confdefs.h >>conftest.$ac_ext
46647 cat >>conftest.$ac_ext <<_ACEOF
46648 /* end confdefs.h. */
46649 #include <$ac_header>
46650 _ACEOF
46651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46653 ac_status=$?
46654 grep -v '^ *+' conftest.er1 >conftest.err
46655 rm -f conftest.er1
46656 cat conftest.err >&5
46657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46658 (exit $ac_status); } >/dev/null; then
46659 if test -s conftest.err; then
46660 ac_cpp_err=$ac_c_preproc_warn_flag
46661 else
46662 ac_cpp_err=
46664 else
46665 ac_cpp_err=yes
46667 if test -z "$ac_cpp_err"; then
46668 ac_header_preproc=yes
46669 else
46670 echo "$as_me: failed program was:" >&5
46671 sed 's/^/| /' conftest.$ac_ext >&5
46673 ac_header_preproc=no
46675 rm -f conftest.err conftest.$ac_ext
46676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46677 echo "${ECHO_T}$ac_header_preproc" >&6
46679 # So? What about this header?
46680 case $ac_header_compiler:$ac_header_preproc in
46681 yes:no )
46682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46687 cat <<\_ASBOX
46688 ## ------------------------------------ ##
46689 ## Report this to bug-autoconf@gnu.org. ##
46690 ## ------------------------------------ ##
46691 _ASBOX
46693 sed "s/^/$as_me: WARNING: /" >&2
46695 no:yes )
46696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46703 cat <<\_ASBOX
46704 ## ------------------------------------ ##
46705 ## Report this to bug-autoconf@gnu.org. ##
46706 ## ------------------------------------ ##
46707 _ASBOX
46709 sed "s/^/$as_me: WARNING: /" >&2
46711 esac
46712 echo "$as_me:$LINENO: checking for $ac_header" >&5
46713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46715 echo $ECHO_N "(cached) $ECHO_C" >&6
46716 else
46717 eval "$as_ac_Header=$ac_header_preproc"
46719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46724 cat >>confdefs.h <<_ACEOF
46725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46726 _ACEOF
46730 done
46732 SECTION_FLAGS='-ffunction-sections -fdata-sections'
46735 # If we're not using GNU ld, then there's no point in even trying these
46736 # tests. Check for that first. We should have already tested for gld
46737 # by now (in libtool), but require it now just to be safe...
46738 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
46739 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
46743 # The name set by libtool depends on the version of libtool. Shame on us
46744 # for depending on an impl detail, but c'est la vie. Older versions used
46745 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
46746 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
46747 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
46748 # set (hence we're using an older libtool), then set it.
46749 if test x${with_gnu_ld+set} != xset; then
46750 if test x${ac_cv_prog_gnu_ld+set} != xset; then
46751 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
46752 with_gnu_ld=no
46753 else
46754 with_gnu_ld=$ac_cv_prog_gnu_ld
46758 # Start by getting the version number. I think the libtool test already
46759 # does some of this, but throws away the result.
46761 ldver=`$LD --version 2>/dev/null | head -1 | \
46762 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
46764 glibcxx_gnu_ld_version=`echo $ldver | \
46765 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
46767 # Set --gc-sections.
46768 if test "$with_gnu_ld" = "notbroken"; then
46769 # GNU ld it is! Joy and bunny rabbits!
46771 # All these tests are for C++; save the language and the compiler flags.
46772 # Need to do this so that g++ won't try to link in libstdc++
46773 ac_test_CFLAGS="${CFLAGS+set}"
46774 ac_save_CFLAGS="$CFLAGS"
46775 CFLAGS='-x c++ -Wl,--gc-sections'
46777 # Check for -Wl,--gc-sections
46778 # XXX This test is broken at the moment, as symbols required for linking
46779 # are now in libsupc++ (not built yet). In addition, this test has
46780 # cored on solaris in the past. In addition, --gc-sections doesn't
46781 # really work at the moment (keeps on discarding used sections, first
46782 # .eh_frame and now some of the glibc sections for iconv).
46783 # Bzzzzt. Thanks for playing, maybe next time.
46784 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
46785 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
46786 if test "$cross_compiling" = yes; then
46787 ac_sectionLDflags=yes
46788 else
46789 cat >conftest.$ac_ext <<_ACEOF
46790 #line $LINENO "configure"
46791 /* confdefs.h. */
46792 _ACEOF
46793 cat confdefs.h >>conftest.$ac_ext
46794 cat >>conftest.$ac_ext <<_ACEOF
46795 /* end confdefs.h. */
46797 int main(void)
46799 try { throw 1; }
46800 catch (...) { };
46801 return 0;
46804 _ACEOF
46805 rm -f conftest$ac_exeext
46806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46807 (eval $ac_link) 2>&5
46808 ac_status=$?
46809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46812 (eval $ac_try) 2>&5
46813 ac_status=$?
46814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46815 (exit $ac_status); }; }; then
46816 ac_sectionLDflags=yes
46817 else
46818 echo "$as_me: program exited with status $ac_status" >&5
46819 echo "$as_me: failed program was:" >&5
46820 sed 's/^/| /' conftest.$ac_ext >&5
46822 ( exit $ac_status )
46823 ac_sectionLDflags=no
46825 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46827 if test "$ac_test_CFLAGS" = set; then
46828 CFLAGS="$ac_save_CFLAGS"
46829 else
46830 # this is the suspicious part
46831 CFLAGS=''
46833 if test "$ac_sectionLDflags" = "yes"; then
46834 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
46836 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
46837 echo "${ECHO_T}$ac_sectionLDflags" >&6
46840 # Set linker optimization flags.
46841 if test x"$with_gnu_ld" = x"yes"; then
46842 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
46850 echo "$as_me:$LINENO: checking for main in -lm" >&5
46851 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
46852 if test "${ac_cv_lib_m_main+set}" = set; then
46853 echo $ECHO_N "(cached) $ECHO_C" >&6
46854 else
46855 ac_check_lib_save_LIBS=$LIBS
46856 LIBS="-lm $LIBS"
46857 if test x$gcc_no_link = xyes; then
46858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46860 { (exit 1); exit 1; }; }
46862 cat >conftest.$ac_ext <<_ACEOF
46863 #line $LINENO "configure"
46864 /* confdefs.h. */
46865 _ACEOF
46866 cat confdefs.h >>conftest.$ac_ext
46867 cat >>conftest.$ac_ext <<_ACEOF
46868 /* end confdefs.h. */
46872 main ()
46874 main ();
46876 return 0;
46878 _ACEOF
46879 rm -f conftest.$ac_objext conftest$ac_exeext
46880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46881 (eval $ac_link) 2>&5
46882 ac_status=$?
46883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46884 (exit $ac_status); } &&
46885 { ac_try='test -s conftest$ac_exeext'
46886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46887 (eval $ac_try) 2>&5
46888 ac_status=$?
46889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46890 (exit $ac_status); }; }; then
46891 ac_cv_lib_m_main=yes
46892 else
46893 echo "$as_me: failed program was:" >&5
46894 sed 's/^/| /' conftest.$ac_ext >&5
46896 ac_cv_lib_m_main=no
46898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46899 LIBS=$ac_check_lib_save_LIBS
46901 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
46902 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
46903 if test $ac_cv_lib_m_main = yes; then
46904 cat >>confdefs.h <<_ACEOF
46905 #define HAVE_LIBM 1
46906 _ACEOF
46908 LIBS="-lm $LIBS"
46914 for ac_func in nan copysignf
46916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46917 echo "$as_me:$LINENO: checking for $ac_func" >&5
46918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46919 if eval "test \"\${$as_ac_var+set}\" = set"; then
46920 echo $ECHO_N "(cached) $ECHO_C" >&6
46921 else
46922 if test x$gcc_no_link = xyes; then
46923 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46924 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46925 { (exit 1); exit 1; }; }
46927 cat >conftest.$ac_ext <<_ACEOF
46928 #line $LINENO "configure"
46929 /* confdefs.h. */
46930 _ACEOF
46931 cat confdefs.h >>conftest.$ac_ext
46932 cat >>conftest.$ac_ext <<_ACEOF
46933 /* end confdefs.h. */
46934 /* System header to define __stub macros and hopefully few prototypes,
46935 which can conflict with char $ac_func (); below.
46936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46937 <limits.h> exists even on freestanding compilers. */
46938 #ifdef __STDC__
46939 # include <limits.h>
46940 #else
46941 # include <assert.h>
46942 #endif
46943 /* Override any gcc2 internal prototype to avoid an error. */
46944 #ifdef __cplusplus
46945 extern "C"
46947 #endif
46948 /* We use char because int might match the return type of a gcc2
46949 builtin and then its argument prototype would still apply. */
46950 char $ac_func ();
46951 /* The GNU C library defines this for functions which it implements
46952 to always fail with ENOSYS. Some functions are actually named
46953 something starting with __ and the normal name is an alias. */
46954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46955 choke me
46956 #else
46957 char (*f) () = $ac_func;
46958 #endif
46959 #ifdef __cplusplus
46961 #endif
46964 main ()
46966 return f != $ac_func;
46968 return 0;
46970 _ACEOF
46971 rm -f conftest.$ac_objext conftest$ac_exeext
46972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46973 (eval $ac_link) 2>&5
46974 ac_status=$?
46975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46976 (exit $ac_status); } &&
46977 { ac_try='test -s conftest$ac_exeext'
46978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46979 (eval $ac_try) 2>&5
46980 ac_status=$?
46981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46982 (exit $ac_status); }; }; then
46983 eval "$as_ac_var=yes"
46984 else
46985 echo "$as_me: failed program was:" >&5
46986 sed 's/^/| /' conftest.$ac_ext >&5
46988 eval "$as_ac_var=no"
46990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46994 if test `eval echo '${'$as_ac_var'}'` = yes; then
46995 cat >>confdefs.h <<_ACEOF
46996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46997 _ACEOF
46999 else
47000 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
47002 done
47006 for ac_func in __signbit
47008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47009 echo "$as_me:$LINENO: checking for $ac_func" >&5
47010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47011 if eval "test \"\${$as_ac_var+set}\" = set"; then
47012 echo $ECHO_N "(cached) $ECHO_C" >&6
47013 else
47014 if test x$gcc_no_link = xyes; then
47015 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47016 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47017 { (exit 1); exit 1; }; }
47019 cat >conftest.$ac_ext <<_ACEOF
47020 #line $LINENO "configure"
47021 /* confdefs.h. */
47022 _ACEOF
47023 cat confdefs.h >>conftest.$ac_ext
47024 cat >>conftest.$ac_ext <<_ACEOF
47025 /* end confdefs.h. */
47026 /* System header to define __stub macros and hopefully few prototypes,
47027 which can conflict with char $ac_func (); below.
47028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47029 <limits.h> exists even on freestanding compilers. */
47030 #ifdef __STDC__
47031 # include <limits.h>
47032 #else
47033 # include <assert.h>
47034 #endif
47035 /* Override any gcc2 internal prototype to avoid an error. */
47036 #ifdef __cplusplus
47037 extern "C"
47039 #endif
47040 /* We use char because int might match the return type of a gcc2
47041 builtin and then its argument prototype would still apply. */
47042 char $ac_func ();
47043 /* The GNU C library defines this for functions which it implements
47044 to always fail with ENOSYS. Some functions are actually named
47045 something starting with __ and the normal name is an alias. */
47046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47047 choke me
47048 #else
47049 char (*f) () = $ac_func;
47050 #endif
47051 #ifdef __cplusplus
47053 #endif
47056 main ()
47058 return f != $ac_func;
47060 return 0;
47062 _ACEOF
47063 rm -f conftest.$ac_objext conftest$ac_exeext
47064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47065 (eval $ac_link) 2>&5
47066 ac_status=$?
47067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47068 (exit $ac_status); } &&
47069 { ac_try='test -s conftest$ac_exeext'
47070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47071 (eval $ac_try) 2>&5
47072 ac_status=$?
47073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47074 (exit $ac_status); }; }; then
47075 eval "$as_ac_var=yes"
47076 else
47077 echo "$as_me: failed program was:" >&5
47078 sed 's/^/| /' conftest.$ac_ext >&5
47080 eval "$as_ac_var=no"
47082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47086 if test `eval echo '${'$as_ac_var'}'` = yes; then
47087 cat >>confdefs.h <<_ACEOF
47088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47089 _ACEOF
47091 else
47092 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
47094 done
47097 for ac_func in __signbitf
47099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47100 echo "$as_me:$LINENO: checking for $ac_func" >&5
47101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47102 if eval "test \"\${$as_ac_var+set}\" = set"; then
47103 echo $ECHO_N "(cached) $ECHO_C" >&6
47104 else
47105 if test x$gcc_no_link = xyes; then
47106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47108 { (exit 1); exit 1; }; }
47110 cat >conftest.$ac_ext <<_ACEOF
47111 #line $LINENO "configure"
47112 /* confdefs.h. */
47113 _ACEOF
47114 cat confdefs.h >>conftest.$ac_ext
47115 cat >>conftest.$ac_ext <<_ACEOF
47116 /* end confdefs.h. */
47117 /* System header to define __stub macros and hopefully few prototypes,
47118 which can conflict with char $ac_func (); below.
47119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47120 <limits.h> exists even on freestanding compilers. */
47121 #ifdef __STDC__
47122 # include <limits.h>
47123 #else
47124 # include <assert.h>
47125 #endif
47126 /* Override any gcc2 internal prototype to avoid an error. */
47127 #ifdef __cplusplus
47128 extern "C"
47130 #endif
47131 /* We use char because int might match the return type of a gcc2
47132 builtin and then its argument prototype would still apply. */
47133 char $ac_func ();
47134 /* The GNU C library defines this for functions which it implements
47135 to always fail with ENOSYS. Some functions are actually named
47136 something starting with __ and the normal name is an alias. */
47137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47138 choke me
47139 #else
47140 char (*f) () = $ac_func;
47141 #endif
47142 #ifdef __cplusplus
47144 #endif
47147 main ()
47149 return f != $ac_func;
47151 return 0;
47153 _ACEOF
47154 rm -f conftest.$ac_objext conftest$ac_exeext
47155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47156 (eval $ac_link) 2>&5
47157 ac_status=$?
47158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47159 (exit $ac_status); } &&
47160 { ac_try='test -s conftest$ac_exeext'
47161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47162 (eval $ac_try) 2>&5
47163 ac_status=$?
47164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47165 (exit $ac_status); }; }; then
47166 eval "$as_ac_var=yes"
47167 else
47168 echo "$as_me: failed program was:" >&5
47169 sed 's/^/| /' conftest.$ac_ext >&5
47171 eval "$as_ac_var=no"
47173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47177 if test `eval echo '${'$as_ac_var'}'` = yes; then
47178 cat >>confdefs.h <<_ACEOF
47179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47180 _ACEOF
47182 else
47183 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
47185 done
47188 if test x$ac_cv_func_copysignl = x"yes"; then
47190 for ac_func in __signbitl
47192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47193 echo "$as_me:$LINENO: checking for $ac_func" >&5
47194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47195 if eval "test \"\${$as_ac_var+set}\" = set"; then
47196 echo $ECHO_N "(cached) $ECHO_C" >&6
47197 else
47198 if test x$gcc_no_link = xyes; then
47199 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47201 { (exit 1); exit 1; }; }
47203 cat >conftest.$ac_ext <<_ACEOF
47204 #line $LINENO "configure"
47205 /* confdefs.h. */
47206 _ACEOF
47207 cat confdefs.h >>conftest.$ac_ext
47208 cat >>conftest.$ac_ext <<_ACEOF
47209 /* end confdefs.h. */
47210 /* System header to define __stub macros and hopefully few prototypes,
47211 which can conflict with char $ac_func (); below.
47212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47213 <limits.h> exists even on freestanding compilers. */
47214 #ifdef __STDC__
47215 # include <limits.h>
47216 #else
47217 # include <assert.h>
47218 #endif
47219 /* Override any gcc2 internal prototype to avoid an error. */
47220 #ifdef __cplusplus
47221 extern "C"
47223 #endif
47224 /* We use char because int might match the return type of a gcc2
47225 builtin and then its argument prototype would still apply. */
47226 char $ac_func ();
47227 /* The GNU C library defines this for functions which it implements
47228 to always fail with ENOSYS. Some functions are actually named
47229 something starting with __ and the normal name is an alias. */
47230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47231 choke me
47232 #else
47233 char (*f) () = $ac_func;
47234 #endif
47235 #ifdef __cplusplus
47237 #endif
47240 main ()
47242 return f != $ac_func;
47244 return 0;
47246 _ACEOF
47247 rm -f conftest.$ac_objext conftest$ac_exeext
47248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47249 (eval $ac_link) 2>&5
47250 ac_status=$?
47251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47252 (exit $ac_status); } &&
47253 { ac_try='test -s conftest$ac_exeext'
47254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47255 (eval $ac_try) 2>&5
47256 ac_status=$?
47257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47258 (exit $ac_status); }; }; then
47259 eval "$as_ac_var=yes"
47260 else
47261 echo "$as_me: failed program was:" >&5
47262 sed 's/^/| /' conftest.$ac_ext >&5
47264 eval "$as_ac_var=no"
47266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47270 if test `eval echo '${'$as_ac_var'}'` = yes; then
47271 cat >>confdefs.h <<_ACEOF
47272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47273 _ACEOF
47275 else
47276 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
47278 done
47282 # XXX Review this. Nothing uses it.
47283 if test -n "$LIBMATHOBJS"; then
47284 need_libmath=yes
47289 # Test wchar.h for mbstate_t, which is needed for char_traits and
47290 # others even if wchar_t support is not on.
47291 echo "$as_me:$LINENO: checking for mbstate_t" >&5
47292 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
47293 cat >conftest.$ac_ext <<_ACEOF
47294 #line $LINENO "configure"
47295 /* confdefs.h. */
47296 _ACEOF
47297 cat confdefs.h >>conftest.$ac_ext
47298 cat >>conftest.$ac_ext <<_ACEOF
47299 /* end confdefs.h. */
47300 #include <wchar.h>
47302 main ()
47304 mbstate_t teststate;
47306 return 0;
47308 _ACEOF
47309 rm -f conftest.$ac_objext
47310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47311 (eval $ac_compile) 2>&5
47312 ac_status=$?
47313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47314 (exit $ac_status); } &&
47315 { ac_try='test -s conftest.$ac_objext'
47316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47317 (eval $ac_try) 2>&5
47318 ac_status=$?
47319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47320 (exit $ac_status); }; }; then
47321 have_mbstate_t=yes
47322 else
47323 echo "$as_me: failed program was:" >&5
47324 sed 's/^/| /' conftest.$ac_ext >&5
47326 have_mbstate_t=no
47328 rm -f conftest.$ac_objext conftest.$ac_ext
47329 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
47330 echo "${ECHO_T}$have_mbstate_t" >&6
47331 if test x"$have_mbstate_t" = xyes; then
47332 cat >>confdefs.h <<\_ACEOF
47333 #define HAVE_MBSTATE_T 1
47334 _ACEOF
47338 # Sanity check for existence of ISO C99 headers for extended encoding.
47340 for ac_header in wchar.h
47342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47344 echo "$as_me:$LINENO: checking for $ac_header" >&5
47345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47347 echo $ECHO_N "(cached) $ECHO_C" >&6
47349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47351 else
47352 # Is the header compilable?
47353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47355 cat >conftest.$ac_ext <<_ACEOF
47356 #line $LINENO "configure"
47357 /* confdefs.h. */
47358 _ACEOF
47359 cat confdefs.h >>conftest.$ac_ext
47360 cat >>conftest.$ac_ext <<_ACEOF
47361 /* end confdefs.h. */
47362 $ac_includes_default
47363 #include <$ac_header>
47364 _ACEOF
47365 rm -f conftest.$ac_objext
47366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47367 (eval $ac_compile) 2>&5
47368 ac_status=$?
47369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47370 (exit $ac_status); } &&
47371 { ac_try='test -s conftest.$ac_objext'
47372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47373 (eval $ac_try) 2>&5
47374 ac_status=$?
47375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47376 (exit $ac_status); }; }; then
47377 ac_header_compiler=yes
47378 else
47379 echo "$as_me: failed program was:" >&5
47380 sed 's/^/| /' conftest.$ac_ext >&5
47382 ac_header_compiler=no
47384 rm -f conftest.$ac_objext conftest.$ac_ext
47385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47386 echo "${ECHO_T}$ac_header_compiler" >&6
47388 # Is the header present?
47389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47391 cat >conftest.$ac_ext <<_ACEOF
47392 #line $LINENO "configure"
47393 /* confdefs.h. */
47394 _ACEOF
47395 cat confdefs.h >>conftest.$ac_ext
47396 cat >>conftest.$ac_ext <<_ACEOF
47397 /* end confdefs.h. */
47398 #include <$ac_header>
47399 _ACEOF
47400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47402 ac_status=$?
47403 grep -v '^ *+' conftest.er1 >conftest.err
47404 rm -f conftest.er1
47405 cat conftest.err >&5
47406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47407 (exit $ac_status); } >/dev/null; then
47408 if test -s conftest.err; then
47409 ac_cpp_err=$ac_c_preproc_warn_flag
47410 else
47411 ac_cpp_err=
47413 else
47414 ac_cpp_err=yes
47416 if test -z "$ac_cpp_err"; then
47417 ac_header_preproc=yes
47418 else
47419 echo "$as_me: failed program was:" >&5
47420 sed 's/^/| /' conftest.$ac_ext >&5
47422 ac_header_preproc=no
47424 rm -f conftest.err conftest.$ac_ext
47425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47426 echo "${ECHO_T}$ac_header_preproc" >&6
47428 # So? What about this header?
47429 case $ac_header_compiler:$ac_header_preproc in
47430 yes:no )
47431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47436 cat <<\_ASBOX
47437 ## ------------------------------------ ##
47438 ## Report this to bug-autoconf@gnu.org. ##
47439 ## ------------------------------------ ##
47440 _ASBOX
47442 sed "s/^/$as_me: WARNING: /" >&2
47444 no:yes )
47445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47452 cat <<\_ASBOX
47453 ## ------------------------------------ ##
47454 ## Report this to bug-autoconf@gnu.org. ##
47455 ## ------------------------------------ ##
47456 _ASBOX
47458 sed "s/^/$as_me: WARNING: /" >&2
47460 esac
47461 echo "$as_me:$LINENO: checking for $ac_header" >&5
47462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47464 echo $ECHO_N "(cached) $ECHO_C" >&6
47465 else
47466 eval "$as_ac_Header=$ac_header_preproc"
47468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47473 cat >>confdefs.h <<_ACEOF
47474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47475 _ACEOF
47476 ac_has_wchar_h=yes
47477 else
47478 ac_has_wchar_h=no
47481 done
47484 for ac_header in wctype.h
47486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47488 echo "$as_me:$LINENO: checking for $ac_header" >&5
47489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47491 echo $ECHO_N "(cached) $ECHO_C" >&6
47493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47495 else
47496 # Is the header compilable?
47497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47499 cat >conftest.$ac_ext <<_ACEOF
47500 #line $LINENO "configure"
47501 /* confdefs.h. */
47502 _ACEOF
47503 cat confdefs.h >>conftest.$ac_ext
47504 cat >>conftest.$ac_ext <<_ACEOF
47505 /* end confdefs.h. */
47506 $ac_includes_default
47507 #include <$ac_header>
47508 _ACEOF
47509 rm -f conftest.$ac_objext
47510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47511 (eval $ac_compile) 2>&5
47512 ac_status=$?
47513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514 (exit $ac_status); } &&
47515 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
47522 else
47523 echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47526 ac_header_compiler=no
47528 rm -f conftest.$ac_objext conftest.$ac_ext
47529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47530 echo "${ECHO_T}$ac_header_compiler" >&6
47532 # Is the header present?
47533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47535 cat >conftest.$ac_ext <<_ACEOF
47536 #line $LINENO "configure"
47537 /* confdefs.h. */
47538 _ACEOF
47539 cat confdefs.h >>conftest.$ac_ext
47540 cat >>conftest.$ac_ext <<_ACEOF
47541 /* end confdefs.h. */
47542 #include <$ac_header>
47543 _ACEOF
47544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47546 ac_status=$?
47547 grep -v '^ *+' conftest.er1 >conftest.err
47548 rm -f conftest.er1
47549 cat conftest.err >&5
47550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551 (exit $ac_status); } >/dev/null; then
47552 if test -s conftest.err; then
47553 ac_cpp_err=$ac_c_preproc_warn_flag
47554 else
47555 ac_cpp_err=
47557 else
47558 ac_cpp_err=yes
47560 if test -z "$ac_cpp_err"; then
47561 ac_header_preproc=yes
47562 else
47563 echo "$as_me: failed program was:" >&5
47564 sed 's/^/| /' conftest.$ac_ext >&5
47566 ac_header_preproc=no
47568 rm -f conftest.err conftest.$ac_ext
47569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47570 echo "${ECHO_T}$ac_header_preproc" >&6
47572 # So? What about this header?
47573 case $ac_header_compiler:$ac_header_preproc in
47574 yes:no )
47575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47580 cat <<\_ASBOX
47581 ## ------------------------------------ ##
47582 ## Report this to bug-autoconf@gnu.org. ##
47583 ## ------------------------------------ ##
47584 _ASBOX
47586 sed "s/^/$as_me: WARNING: /" >&2
47588 no:yes )
47589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47596 cat <<\_ASBOX
47597 ## ------------------------------------ ##
47598 ## Report this to bug-autoconf@gnu.org. ##
47599 ## ------------------------------------ ##
47600 _ASBOX
47602 sed "s/^/$as_me: WARNING: /" >&2
47604 esac
47605 echo "$as_me:$LINENO: checking for $ac_header" >&5
47606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47608 echo $ECHO_N "(cached) $ECHO_C" >&6
47609 else
47610 eval "$as_ac_Header=$ac_header_preproc"
47612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47617 cat >>confdefs.h <<_ACEOF
47618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47619 _ACEOF
47620 ac_has_wctype_h=yes
47621 else
47622 ac_has_wctype_h=no
47625 done
47628 # Only continue checking if the ISO C99 headers exist and support is on.
47629 if test x"$ac_has_wchar_h" = xyes &&
47630 test x"$ac_has_wctype_h" = xyes &&
47631 test x"$enable_c_mbchar" != xno; then
47633 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
47634 # numeric_limits can instantiate type_traits<wchar_t>
47635 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
47636 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
47637 cat >conftest.$ac_ext <<_ACEOF
47638 #line $LINENO "configure"
47639 /* confdefs.h. */
47640 _ACEOF
47641 cat confdefs.h >>conftest.$ac_ext
47642 cat >>conftest.$ac_ext <<_ACEOF
47643 /* end confdefs.h. */
47644 #include <wchar.h>
47646 main ()
47648 int i = WCHAR_MIN; int j = WCHAR_MAX;
47650 return 0;
47652 _ACEOF
47653 rm -f conftest.$ac_objext
47654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47655 (eval $ac_compile) 2>&5
47656 ac_status=$?
47657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47658 (exit $ac_status); } &&
47659 { ac_try='test -s conftest.$ac_objext'
47660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47661 (eval $ac_try) 2>&5
47662 ac_status=$?
47663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47664 (exit $ac_status); }; }; then
47665 has_wchar_minmax=yes
47666 else
47667 echo "$as_me: failed program was:" >&5
47668 sed 's/^/| /' conftest.$ac_ext >&5
47670 has_wchar_minmax=no
47672 rm -f conftest.$ac_objext conftest.$ac_ext
47673 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
47674 echo "${ECHO_T}$has_wchar_minmax" >&6
47676 # Test wchar.h for WEOF, which is what we use to determine whether
47677 # to specialize for char_traits<wchar_t> or not.
47678 echo "$as_me:$LINENO: checking for WEOF" >&5
47679 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
47680 cat >conftest.$ac_ext <<_ACEOF
47681 #line $LINENO "configure"
47682 /* confdefs.h. */
47683 _ACEOF
47684 cat confdefs.h >>conftest.$ac_ext
47685 cat >>conftest.$ac_ext <<_ACEOF
47686 /* end confdefs.h. */
47688 #include <wchar.h>
47689 #include <stddef.h>
47691 main ()
47693 wint_t i = WEOF;
47695 return 0;
47697 _ACEOF
47698 rm -f conftest.$ac_objext
47699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47700 (eval $ac_compile) 2>&5
47701 ac_status=$?
47702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47703 (exit $ac_status); } &&
47704 { ac_try='test -s conftest.$ac_objext'
47705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47706 (eval $ac_try) 2>&5
47707 ac_status=$?
47708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47709 (exit $ac_status); }; }; then
47710 has_weof=yes
47711 else
47712 echo "$as_me: failed program was:" >&5
47713 sed 's/^/| /' conftest.$ac_ext >&5
47715 has_weof=no
47717 rm -f conftest.$ac_objext conftest.$ac_ext
47718 echo "$as_me:$LINENO: result: $has_weof" >&5
47719 echo "${ECHO_T}$has_weof" >&6
47721 # Tests for wide character functions used in char_traits<wchar_t>.
47722 ac_wfuncs=yes
47729 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
47731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47732 echo "$as_me:$LINENO: checking for $ac_func" >&5
47733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47734 if eval "test \"\${$as_ac_var+set}\" = set"; then
47735 echo $ECHO_N "(cached) $ECHO_C" >&6
47736 else
47737 if test x$gcc_no_link = xyes; then
47738 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47740 { (exit 1); exit 1; }; }
47742 cat >conftest.$ac_ext <<_ACEOF
47743 #line $LINENO "configure"
47744 /* confdefs.h. */
47745 _ACEOF
47746 cat confdefs.h >>conftest.$ac_ext
47747 cat >>conftest.$ac_ext <<_ACEOF
47748 /* end confdefs.h. */
47749 /* System header to define __stub macros and hopefully few prototypes,
47750 which can conflict with char $ac_func (); below.
47751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47752 <limits.h> exists even on freestanding compilers. */
47753 #ifdef __STDC__
47754 # include <limits.h>
47755 #else
47756 # include <assert.h>
47757 #endif
47758 /* Override any gcc2 internal prototype to avoid an error. */
47759 #ifdef __cplusplus
47760 extern "C"
47762 #endif
47763 /* We use char because int might match the return type of a gcc2
47764 builtin and then its argument prototype would still apply. */
47765 char $ac_func ();
47766 /* The GNU C library defines this for functions which it implements
47767 to always fail with ENOSYS. Some functions are actually named
47768 something starting with __ and the normal name is an alias. */
47769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47770 choke me
47771 #else
47772 char (*f) () = $ac_func;
47773 #endif
47774 #ifdef __cplusplus
47776 #endif
47779 main ()
47781 return f != $ac_func;
47783 return 0;
47785 _ACEOF
47786 rm -f conftest.$ac_objext conftest$ac_exeext
47787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47788 (eval $ac_link) 2>&5
47789 ac_status=$?
47790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47791 (exit $ac_status); } &&
47792 { ac_try='test -s conftest$ac_exeext'
47793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47794 (eval $ac_try) 2>&5
47795 ac_status=$?
47796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47797 (exit $ac_status); }; }; then
47798 eval "$as_ac_var=yes"
47799 else
47800 echo "$as_me: failed program was:" >&5
47801 sed 's/^/| /' conftest.$ac_ext >&5
47803 eval "$as_ac_var=no"
47805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47809 if test `eval echo '${'$as_ac_var'}'` = yes; then
47810 cat >>confdefs.h <<_ACEOF
47811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47812 _ACEOF
47814 else
47815 ac_wfuncs=no
47817 done
47820 # Checks for names injected into std:: by the c_std headers.
47871 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
47872 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
47873 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
47874 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
47875 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
47876 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
47878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47879 echo "$as_me:$LINENO: checking for $ac_func" >&5
47880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47881 if eval "test \"\${$as_ac_var+set}\" = set"; then
47882 echo $ECHO_N "(cached) $ECHO_C" >&6
47883 else
47884 if test x$gcc_no_link = xyes; then
47885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47887 { (exit 1); exit 1; }; }
47889 cat >conftest.$ac_ext <<_ACEOF
47890 #line $LINENO "configure"
47891 /* confdefs.h. */
47892 _ACEOF
47893 cat confdefs.h >>conftest.$ac_ext
47894 cat >>conftest.$ac_ext <<_ACEOF
47895 /* end confdefs.h. */
47896 /* System header to define __stub macros and hopefully few prototypes,
47897 which can conflict with char $ac_func (); below.
47898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47899 <limits.h> exists even on freestanding compilers. */
47900 #ifdef __STDC__
47901 # include <limits.h>
47902 #else
47903 # include <assert.h>
47904 #endif
47905 /* Override any gcc2 internal prototype to avoid an error. */
47906 #ifdef __cplusplus
47907 extern "C"
47909 #endif
47910 /* We use char because int might match the return type of a gcc2
47911 builtin and then its argument prototype would still apply. */
47912 char $ac_func ();
47913 /* The GNU C library defines this for functions which it implements
47914 to always fail with ENOSYS. Some functions are actually named
47915 something starting with __ and the normal name is an alias. */
47916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47917 choke me
47918 #else
47919 char (*f) () = $ac_func;
47920 #endif
47921 #ifdef __cplusplus
47923 #endif
47926 main ()
47928 return f != $ac_func;
47930 return 0;
47932 _ACEOF
47933 rm -f conftest.$ac_objext conftest$ac_exeext
47934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47935 (eval $ac_link) 2>&5
47936 ac_status=$?
47937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47938 (exit $ac_status); } &&
47939 { ac_try='test -s conftest$ac_exeext'
47940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47941 (eval $ac_try) 2>&5
47942 ac_status=$?
47943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47944 (exit $ac_status); }; }; then
47945 eval "$as_ac_var=yes"
47946 else
47947 echo "$as_me: failed program was:" >&5
47948 sed 's/^/| /' conftest.$ac_ext >&5
47950 eval "$as_ac_var=no"
47952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47956 if test `eval echo '${'$as_ac_var'}'` = yes; then
47957 cat >>confdefs.h <<_ACEOF
47958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47959 _ACEOF
47961 else
47962 ac_wfuncs=no
47964 done
47967 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
47968 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
47969 if test x"$has_weof" = xyes &&
47970 test x"$has_wchar_minmax" = xyes &&
47971 test x"$ac_wfuncs" = xyes;
47972 then
47973 ac_isoC99_wchar_t=yes
47974 else
47975 ac_isoC99_wchar_t=no
47977 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
47978 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
47980 # Use iconv for wchar_t to char conversions. As such, check for
47981 # X/Open Portability Guide, version 2 features (XPG2).
47982 if test "${ac_cv_header_iconv_h+set}" = set; then
47983 echo "$as_me:$LINENO: checking for iconv.h" >&5
47984 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
47985 if test "${ac_cv_header_iconv_h+set}" = set; then
47986 echo $ECHO_N "(cached) $ECHO_C" >&6
47988 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
47989 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
47990 else
47991 # Is the header compilable?
47992 echo "$as_me:$LINENO: checking iconv.h usability" >&5
47993 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
47994 cat >conftest.$ac_ext <<_ACEOF
47995 #line $LINENO "configure"
47996 /* confdefs.h. */
47997 _ACEOF
47998 cat confdefs.h >>conftest.$ac_ext
47999 cat >>conftest.$ac_ext <<_ACEOF
48000 /* end confdefs.h. */
48001 $ac_includes_default
48002 #include <iconv.h>
48003 _ACEOF
48004 rm -f conftest.$ac_objext
48005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48006 (eval $ac_compile) 2>&5
48007 ac_status=$?
48008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48009 (exit $ac_status); } &&
48010 { ac_try='test -s conftest.$ac_objext'
48011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48012 (eval $ac_try) 2>&5
48013 ac_status=$?
48014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48015 (exit $ac_status); }; }; then
48016 ac_header_compiler=yes
48017 else
48018 echo "$as_me: failed program was:" >&5
48019 sed 's/^/| /' conftest.$ac_ext >&5
48021 ac_header_compiler=no
48023 rm -f conftest.$ac_objext conftest.$ac_ext
48024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48025 echo "${ECHO_T}$ac_header_compiler" >&6
48027 # Is the header present?
48028 echo "$as_me:$LINENO: checking iconv.h presence" >&5
48029 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
48030 cat >conftest.$ac_ext <<_ACEOF
48031 #line $LINENO "configure"
48032 /* confdefs.h. */
48033 _ACEOF
48034 cat confdefs.h >>conftest.$ac_ext
48035 cat >>conftest.$ac_ext <<_ACEOF
48036 /* end confdefs.h. */
48037 #include <iconv.h>
48038 _ACEOF
48039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48041 ac_status=$?
48042 grep -v '^ *+' conftest.er1 >conftest.err
48043 rm -f conftest.er1
48044 cat conftest.err >&5
48045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48046 (exit $ac_status); } >/dev/null; then
48047 if test -s conftest.err; then
48048 ac_cpp_err=$ac_c_preproc_warn_flag
48049 else
48050 ac_cpp_err=
48052 else
48053 ac_cpp_err=yes
48055 if test -z "$ac_cpp_err"; then
48056 ac_header_preproc=yes
48057 else
48058 echo "$as_me: failed program was:" >&5
48059 sed 's/^/| /' conftest.$ac_ext >&5
48061 ac_header_preproc=no
48063 rm -f conftest.err conftest.$ac_ext
48064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48065 echo "${ECHO_T}$ac_header_preproc" >&6
48067 # So? What about this header?
48068 case $ac_header_compiler:$ac_header_preproc in
48069 yes:no )
48070 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
48071 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48072 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48073 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48075 cat <<\_ASBOX
48076 ## ------------------------------------ ##
48077 ## Report this to bug-autoconf@gnu.org. ##
48078 ## ------------------------------------ ##
48079 _ASBOX
48081 sed "s/^/$as_me: WARNING: /" >&2
48083 no:yes )
48084 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
48085 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
48086 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
48087 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
48088 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48089 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48091 cat <<\_ASBOX
48092 ## ------------------------------------ ##
48093 ## Report this to bug-autoconf@gnu.org. ##
48094 ## ------------------------------------ ##
48095 _ASBOX
48097 sed "s/^/$as_me: WARNING: /" >&2
48099 esac
48100 echo "$as_me:$LINENO: checking for iconv.h" >&5
48101 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48102 if test "${ac_cv_header_iconv_h+set}" = set; then
48103 echo $ECHO_N "(cached) $ECHO_C" >&6
48104 else
48105 ac_cv_header_iconv_h=$ac_header_preproc
48107 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48108 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48111 if test $ac_cv_header_iconv_h = yes; then
48112 ac_has_iconv_h=yes
48113 else
48114 ac_has_iconv_h=no
48118 if test "${ac_cv_header_langinfo_h+set}" = set; then
48119 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48120 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48121 if test "${ac_cv_header_langinfo_h+set}" = set; then
48122 echo $ECHO_N "(cached) $ECHO_C" >&6
48124 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48125 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48126 else
48127 # Is the header compilable?
48128 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
48129 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
48130 cat >conftest.$ac_ext <<_ACEOF
48131 #line $LINENO "configure"
48132 /* confdefs.h. */
48133 _ACEOF
48134 cat confdefs.h >>conftest.$ac_ext
48135 cat >>conftest.$ac_ext <<_ACEOF
48136 /* end confdefs.h. */
48137 $ac_includes_default
48138 #include <langinfo.h>
48139 _ACEOF
48140 rm -f conftest.$ac_objext
48141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48142 (eval $ac_compile) 2>&5
48143 ac_status=$?
48144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48145 (exit $ac_status); } &&
48146 { ac_try='test -s conftest.$ac_objext'
48147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48148 (eval $ac_try) 2>&5
48149 ac_status=$?
48150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48151 (exit $ac_status); }; }; then
48152 ac_header_compiler=yes
48153 else
48154 echo "$as_me: failed program was:" >&5
48155 sed 's/^/| /' conftest.$ac_ext >&5
48157 ac_header_compiler=no
48159 rm -f conftest.$ac_objext conftest.$ac_ext
48160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48161 echo "${ECHO_T}$ac_header_compiler" >&6
48163 # Is the header present?
48164 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
48165 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
48166 cat >conftest.$ac_ext <<_ACEOF
48167 #line $LINENO "configure"
48168 /* confdefs.h. */
48169 _ACEOF
48170 cat confdefs.h >>conftest.$ac_ext
48171 cat >>conftest.$ac_ext <<_ACEOF
48172 /* end confdefs.h. */
48173 #include <langinfo.h>
48174 _ACEOF
48175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48177 ac_status=$?
48178 grep -v '^ *+' conftest.er1 >conftest.err
48179 rm -f conftest.er1
48180 cat conftest.err >&5
48181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48182 (exit $ac_status); } >/dev/null; then
48183 if test -s conftest.err; then
48184 ac_cpp_err=$ac_c_preproc_warn_flag
48185 else
48186 ac_cpp_err=
48188 else
48189 ac_cpp_err=yes
48191 if test -z "$ac_cpp_err"; then
48192 ac_header_preproc=yes
48193 else
48194 echo "$as_me: failed program was:" >&5
48195 sed 's/^/| /' conftest.$ac_ext >&5
48197 ac_header_preproc=no
48199 rm -f conftest.err conftest.$ac_ext
48200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48201 echo "${ECHO_T}$ac_header_preproc" >&6
48203 # So? What about this header?
48204 case $ac_header_compiler:$ac_header_preproc in
48205 yes:no )
48206 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
48207 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48208 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48209 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48211 cat <<\_ASBOX
48212 ## ------------------------------------ ##
48213 ## Report this to bug-autoconf@gnu.org. ##
48214 ## ------------------------------------ ##
48215 _ASBOX
48217 sed "s/^/$as_me: WARNING: /" >&2
48219 no:yes )
48220 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
48221 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
48222 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
48223 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
48224 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48225 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48227 cat <<\_ASBOX
48228 ## ------------------------------------ ##
48229 ## Report this to bug-autoconf@gnu.org. ##
48230 ## ------------------------------------ ##
48231 _ASBOX
48233 sed "s/^/$as_me: WARNING: /" >&2
48235 esac
48236 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48237 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48238 if test "${ac_cv_header_langinfo_h+set}" = set; then
48239 echo $ECHO_N "(cached) $ECHO_C" >&6
48240 else
48241 ac_cv_header_langinfo_h=$ac_header_preproc
48243 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48244 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48247 if test $ac_cv_header_langinfo_h = yes; then
48248 ac_has_langinfo_h=yes
48249 else
48250 ac_has_langinfo_h=no
48255 # Check for existence of libiconv.a providing XPG2 wchar_t support.
48256 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
48257 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
48258 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
48259 echo $ECHO_N "(cached) $ECHO_C" >&6
48260 else
48261 ac_check_lib_save_LIBS=$LIBS
48262 LIBS="-liconv $LIBS"
48263 if test x$gcc_no_link = xyes; then
48264 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48265 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48266 { (exit 1); exit 1; }; }
48268 cat >conftest.$ac_ext <<_ACEOF
48269 #line $LINENO "configure"
48270 /* confdefs.h. */
48271 _ACEOF
48272 cat confdefs.h >>conftest.$ac_ext
48273 cat >>conftest.$ac_ext <<_ACEOF
48274 /* end confdefs.h. */
48276 /* Override any gcc2 internal prototype to avoid an error. */
48277 #ifdef __cplusplus
48278 extern "C"
48279 #endif
48280 /* We use char because int might match the return type of a gcc2
48281 builtin and then its argument prototype would still apply. */
48282 char iconv ();
48284 main ()
48286 iconv ();
48288 return 0;
48290 _ACEOF
48291 rm -f conftest.$ac_objext conftest$ac_exeext
48292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48293 (eval $ac_link) 2>&5
48294 ac_status=$?
48295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48296 (exit $ac_status); } &&
48297 { ac_try='test -s conftest$ac_exeext'
48298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48299 (eval $ac_try) 2>&5
48300 ac_status=$?
48301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48302 (exit $ac_status); }; }; then
48303 ac_cv_lib_iconv_iconv=yes
48304 else
48305 echo "$as_me: failed program was:" >&5
48306 sed 's/^/| /' conftest.$ac_ext >&5
48308 ac_cv_lib_iconv_iconv=no
48310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48311 LIBS=$ac_check_lib_save_LIBS
48313 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
48314 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
48315 if test $ac_cv_lib_iconv_iconv = yes; then
48316 libiconv="-liconv"
48319 ac_save_LIBS="$LIBS"
48320 LIBS="$LIBS $libiconv"
48326 for ac_func in iconv_open iconv_close iconv nl_langinfo
48328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48329 echo "$as_me:$LINENO: checking for $ac_func" >&5
48330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48331 if eval "test \"\${$as_ac_var+set}\" = set"; then
48332 echo $ECHO_N "(cached) $ECHO_C" >&6
48333 else
48334 if test x$gcc_no_link = xyes; then
48335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48337 { (exit 1); exit 1; }; }
48339 cat >conftest.$ac_ext <<_ACEOF
48340 #line $LINENO "configure"
48341 /* confdefs.h. */
48342 _ACEOF
48343 cat confdefs.h >>conftest.$ac_ext
48344 cat >>conftest.$ac_ext <<_ACEOF
48345 /* end confdefs.h. */
48346 /* System header to define __stub macros and hopefully few prototypes,
48347 which can conflict with char $ac_func (); below.
48348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48349 <limits.h> exists even on freestanding compilers. */
48350 #ifdef __STDC__
48351 # include <limits.h>
48352 #else
48353 # include <assert.h>
48354 #endif
48355 /* Override any gcc2 internal prototype to avoid an error. */
48356 #ifdef __cplusplus
48357 extern "C"
48359 #endif
48360 /* We use char because int might match the return type of a gcc2
48361 builtin and then its argument prototype would still apply. */
48362 char $ac_func ();
48363 /* The GNU C library defines this for functions which it implements
48364 to always fail with ENOSYS. Some functions are actually named
48365 something starting with __ and the normal name is an alias. */
48366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48367 choke me
48368 #else
48369 char (*f) () = $ac_func;
48370 #endif
48371 #ifdef __cplusplus
48373 #endif
48376 main ()
48378 return f != $ac_func;
48380 return 0;
48382 _ACEOF
48383 rm -f conftest.$ac_objext conftest$ac_exeext
48384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48385 (eval $ac_link) 2>&5
48386 ac_status=$?
48387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48388 (exit $ac_status); } &&
48389 { ac_try='test -s conftest$ac_exeext'
48390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48391 (eval $ac_try) 2>&5
48392 ac_status=$?
48393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48394 (exit $ac_status); }; }; then
48395 eval "$as_ac_var=yes"
48396 else
48397 echo "$as_me: failed program was:" >&5
48398 sed 's/^/| /' conftest.$ac_ext >&5
48400 eval "$as_ac_var=no"
48402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48406 if test `eval echo '${'$as_ac_var'}'` = yes; then
48407 cat >>confdefs.h <<_ACEOF
48408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48409 _ACEOF
48410 ac_XPG2funcs=yes
48411 else
48412 ac_XPG2funcs=no
48414 done
48417 LIBS="$ac_save_LIBS"
48419 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
48420 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
48421 if test x"$ac_has_iconv_h" = xyes &&
48422 test x"$ac_has_langinfo_h" = xyes &&
48423 test x"$ac_XPG2funcs" = xyes;
48424 then
48425 ac_XPG2_wchar_t=yes
48426 else
48427 ac_XPG2_wchar_t=no
48429 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
48430 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
48432 # At the moment, only enable wchar_t specializations if all the
48433 # above support is present.
48434 if test x"$ac_isoC99_wchar_t" = xyes &&
48435 test x"$ac_XPG2_wchar_t" = xyes;
48436 then
48437 cat >>confdefs.h <<\_ACEOF
48438 #define _GLIBCXX_USE_WCHAR_T 1
48439 _ACEOF
48441 enable_wchar_t=yes
48444 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
48445 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
48446 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
48447 echo "${ECHO_T}$enable_wchar_t" >&6
48449 cat >>confdefs.h <<\_ACEOF
48450 #define HAVE_LC_MESSAGES 1
48451 _ACEOF
48453 cat >>confdefs.h <<\_ACEOF
48454 #define HAVE_DRAND48 1
48455 _ACEOF
48457 cat >>confdefs.h <<\_ACEOF
48458 #define HAVE_GETPAGESIZE 1
48459 _ACEOF
48461 cat >>confdefs.h <<\_ACEOF
48462 #define HAVE_SETENV 1
48463 _ACEOF
48465 cat >>confdefs.h <<\_ACEOF
48466 #define HAVE_SIGSETJMP 1
48467 _ACEOF
48469 cat >>confdefs.h <<\_ACEOF
48470 #define HAVE_COPYSIGN 1
48471 _ACEOF
48473 cat >>confdefs.h <<\_ACEOF
48474 #define HAVE_COPYSIGNF 1
48475 _ACEOF
48477 cat >>confdefs.h <<\_ACEOF
48478 #define HAVE_FINITEF 1
48479 _ACEOF
48481 cat >>confdefs.h <<\_ACEOF
48482 #define HAVE_FINITE 1
48483 _ACEOF
48485 cat >>confdefs.h <<\_ACEOF
48486 #define HAVE_FREXPF 1
48487 _ACEOF
48489 cat >>confdefs.h <<\_ACEOF
48490 #define HAVE_HYPOT 1
48491 _ACEOF
48493 cat >>confdefs.h <<\_ACEOF
48494 #define HAVE_HYPOTF 1
48495 _ACEOF
48497 cat >>confdefs.h <<\_ACEOF
48498 #define HAVE_ISINF 1
48499 _ACEOF
48501 cat >>confdefs.h <<\_ACEOF
48502 #define HAVE_ISNAN 1
48503 _ACEOF
48505 cat >>confdefs.h <<\_ACEOF
48506 #define HAVE_ISNANF 1
48507 _ACEOF
48510 cat >>confdefs.h <<\_ACEOF
48511 #define HAVE_MMAP 1
48512 _ACEOF
48514 cat >>confdefs.h <<\_ACEOF
48515 #define HAVE_ACOSF 1
48516 _ACEOF
48518 cat >>confdefs.h <<\_ACEOF
48519 #define HAVE_ASINF 1
48520 _ACEOF
48522 cat >>confdefs.h <<\_ACEOF
48523 #define HAVE_ATAN2F 1
48524 _ACEOF
48526 cat >>confdefs.h <<\_ACEOF
48527 #define HAVE_ATANF 1
48528 _ACEOF
48530 cat >>confdefs.h <<\_ACEOF
48531 #define HAVE_CEILF 1
48532 _ACEOF
48534 cat >>confdefs.h <<\_ACEOF
48535 #define HAVE_COPYSIGN 1
48536 _ACEOF
48538 cat >>confdefs.h <<\_ACEOF
48539 #define HAVE_COPYSIGNF 1
48540 _ACEOF
48542 cat >>confdefs.h <<\_ACEOF
48543 #define HAVE_COSF 1
48544 _ACEOF
48546 cat >>confdefs.h <<\_ACEOF
48547 #define HAVE_COSHF 1
48548 _ACEOF
48550 cat >>confdefs.h <<\_ACEOF
48551 #define HAVE_EXPF 1
48552 _ACEOF
48554 cat >>confdefs.h <<\_ACEOF
48555 #define HAVE_FABSF 1
48556 _ACEOF
48558 cat >>confdefs.h <<\_ACEOF
48559 #define HAVE_FLOORF 1
48560 _ACEOF
48562 cat >>confdefs.h <<\_ACEOF
48563 #define HAVE_FMODF 1
48564 _ACEOF
48566 cat >>confdefs.h <<\_ACEOF
48567 #define HAVE_FREXPF 1
48568 _ACEOF
48570 cat >>confdefs.h <<\_ACEOF
48571 #define HAVE_LDEXPF 1
48572 _ACEOF
48574 cat >>confdefs.h <<\_ACEOF
48575 #define HAVE_LOG10F 1
48576 _ACEOF
48578 cat >>confdefs.h <<\_ACEOF
48579 #define HAVE_LOGF 1
48580 _ACEOF
48582 cat >>confdefs.h <<\_ACEOF
48583 #define HAVE_MODFF 1
48584 _ACEOF
48586 cat >>confdefs.h <<\_ACEOF
48587 #define HAVE_POWF 1
48588 _ACEOF
48590 cat >>confdefs.h <<\_ACEOF
48591 #define HAVE_SINF 1
48592 _ACEOF
48594 cat >>confdefs.h <<\_ACEOF
48595 #define HAVE_SINHF 1
48596 _ACEOF
48598 cat >>confdefs.h <<\_ACEOF
48599 #define HAVE_SQRTF 1
48600 _ACEOF
48602 cat >>confdefs.h <<\_ACEOF
48603 #define HAVE_TANF 1
48604 _ACEOF
48606 cat >>confdefs.h <<\_ACEOF
48607 #define HAVE_TANHF 1
48608 _ACEOF
48610 if test x"long_double_math_on_this_cpu" = x"yes"; then
48611 cat >>confdefs.h <<\_ACEOF
48612 #define HAVE_FINITEL 1
48613 _ACEOF
48615 cat >>confdefs.h <<\_ACEOF
48616 #define HAVE_ISINFL 1
48617 _ACEOF
48619 cat >>confdefs.h <<\_ACEOF
48620 #define HAVE_ISNANL 1
48621 _ACEOF
48625 *-hpux*)
48626 #os_include_dir="os/hpux"
48639 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
48640 machine/endian.h machine/param.h sys/machine.h sys/types.h \
48641 fp.h locale.h float.h inttypes.h
48643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48645 echo "$as_me:$LINENO: checking for $ac_header" >&5
48646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48648 echo $ECHO_N "(cached) $ECHO_C" >&6
48650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48652 else
48653 # Is the header compilable?
48654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48656 cat >conftest.$ac_ext <<_ACEOF
48657 #line $LINENO "configure"
48658 /* confdefs.h. */
48659 _ACEOF
48660 cat confdefs.h >>conftest.$ac_ext
48661 cat >>conftest.$ac_ext <<_ACEOF
48662 /* end confdefs.h. */
48663 $ac_includes_default
48664 #include <$ac_header>
48665 _ACEOF
48666 rm -f conftest.$ac_objext
48667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48668 (eval $ac_compile) 2>&5
48669 ac_status=$?
48670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48671 (exit $ac_status); } &&
48672 { ac_try='test -s conftest.$ac_objext'
48673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48674 (eval $ac_try) 2>&5
48675 ac_status=$?
48676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48677 (exit $ac_status); }; }; then
48678 ac_header_compiler=yes
48679 else
48680 echo "$as_me: failed program was:" >&5
48681 sed 's/^/| /' conftest.$ac_ext >&5
48683 ac_header_compiler=no
48685 rm -f conftest.$ac_objext conftest.$ac_ext
48686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48687 echo "${ECHO_T}$ac_header_compiler" >&6
48689 # Is the header present?
48690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48692 cat >conftest.$ac_ext <<_ACEOF
48693 #line $LINENO "configure"
48694 /* confdefs.h. */
48695 _ACEOF
48696 cat confdefs.h >>conftest.$ac_ext
48697 cat >>conftest.$ac_ext <<_ACEOF
48698 /* end confdefs.h. */
48699 #include <$ac_header>
48700 _ACEOF
48701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48703 ac_status=$?
48704 grep -v '^ *+' conftest.er1 >conftest.err
48705 rm -f conftest.er1
48706 cat conftest.err >&5
48707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48708 (exit $ac_status); } >/dev/null; then
48709 if test -s conftest.err; then
48710 ac_cpp_err=$ac_c_preproc_warn_flag
48711 else
48712 ac_cpp_err=
48714 else
48715 ac_cpp_err=yes
48717 if test -z "$ac_cpp_err"; then
48718 ac_header_preproc=yes
48719 else
48720 echo "$as_me: failed program was:" >&5
48721 sed 's/^/| /' conftest.$ac_ext >&5
48723 ac_header_preproc=no
48725 rm -f conftest.err conftest.$ac_ext
48726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48727 echo "${ECHO_T}$ac_header_preproc" >&6
48729 # So? What about this header?
48730 case $ac_header_compiler:$ac_header_preproc in
48731 yes:no )
48732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48737 cat <<\_ASBOX
48738 ## ------------------------------------ ##
48739 ## Report this to bug-autoconf@gnu.org. ##
48740 ## ------------------------------------ ##
48741 _ASBOX
48743 sed "s/^/$as_me: WARNING: /" >&2
48745 no:yes )
48746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48753 cat <<\_ASBOX
48754 ## ------------------------------------ ##
48755 ## Report this to bug-autoconf@gnu.org. ##
48756 ## ------------------------------------ ##
48757 _ASBOX
48759 sed "s/^/$as_me: WARNING: /" >&2
48761 esac
48762 echo "$as_me:$LINENO: checking for $ac_header" >&5
48763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48765 echo $ECHO_N "(cached) $ECHO_C" >&6
48766 else
48767 eval "$as_ac_Header=$ac_header_preproc"
48769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48774 cat >>confdefs.h <<_ACEOF
48775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48776 _ACEOF
48780 done
48782 SECTION_FLAGS='-ffunction-sections -fdata-sections'
48785 # If we're not using GNU ld, then there's no point in even trying these
48786 # tests. Check for that first. We should have already tested for gld
48787 # by now (in libtool), but require it now just to be safe...
48788 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
48789 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
48793 # The name set by libtool depends on the version of libtool. Shame on us
48794 # for depending on an impl detail, but c'est la vie. Older versions used
48795 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
48796 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
48797 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
48798 # set (hence we're using an older libtool), then set it.
48799 if test x${with_gnu_ld+set} != xset; then
48800 if test x${ac_cv_prog_gnu_ld+set} != xset; then
48801 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
48802 with_gnu_ld=no
48803 else
48804 with_gnu_ld=$ac_cv_prog_gnu_ld
48808 # Start by getting the version number. I think the libtool test already
48809 # does some of this, but throws away the result.
48811 ldver=`$LD --version 2>/dev/null | head -1 | \
48812 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
48814 glibcxx_gnu_ld_version=`echo $ldver | \
48815 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
48817 # Set --gc-sections.
48818 if test "$with_gnu_ld" = "notbroken"; then
48819 # GNU ld it is! Joy and bunny rabbits!
48821 # All these tests are for C++; save the language and the compiler flags.
48822 # Need to do this so that g++ won't try to link in libstdc++
48823 ac_test_CFLAGS="${CFLAGS+set}"
48824 ac_save_CFLAGS="$CFLAGS"
48825 CFLAGS='-x c++ -Wl,--gc-sections'
48827 # Check for -Wl,--gc-sections
48828 # XXX This test is broken at the moment, as symbols required for linking
48829 # are now in libsupc++ (not built yet). In addition, this test has
48830 # cored on solaris in the past. In addition, --gc-sections doesn't
48831 # really work at the moment (keeps on discarding used sections, first
48832 # .eh_frame and now some of the glibc sections for iconv).
48833 # Bzzzzt. Thanks for playing, maybe next time.
48834 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
48835 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
48836 if test "$cross_compiling" = yes; then
48837 ac_sectionLDflags=yes
48838 else
48839 cat >conftest.$ac_ext <<_ACEOF
48840 #line $LINENO "configure"
48841 /* confdefs.h. */
48842 _ACEOF
48843 cat confdefs.h >>conftest.$ac_ext
48844 cat >>conftest.$ac_ext <<_ACEOF
48845 /* end confdefs.h. */
48847 int main(void)
48849 try { throw 1; }
48850 catch (...) { };
48851 return 0;
48854 _ACEOF
48855 rm -f conftest$ac_exeext
48856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48857 (eval $ac_link) 2>&5
48858 ac_status=$?
48859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48862 (eval $ac_try) 2>&5
48863 ac_status=$?
48864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48865 (exit $ac_status); }; }; then
48866 ac_sectionLDflags=yes
48867 else
48868 echo "$as_me: program exited with status $ac_status" >&5
48869 echo "$as_me: failed program was:" >&5
48870 sed 's/^/| /' conftest.$ac_ext >&5
48872 ( exit $ac_status )
48873 ac_sectionLDflags=no
48875 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48877 if test "$ac_test_CFLAGS" = set; then
48878 CFLAGS="$ac_save_CFLAGS"
48879 else
48880 # this is the suspicious part
48881 CFLAGS=''
48883 if test "$ac_sectionLDflags" = "yes"; then
48884 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
48886 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
48887 echo "${ECHO_T}$ac_sectionLDflags" >&6
48890 # Set linker optimization flags.
48891 if test x"$with_gnu_ld" = x"yes"; then
48892 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
48900 echo "$as_me:$LINENO: checking for main in -lm" >&5
48901 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
48902 if test "${ac_cv_lib_m_main+set}" = set; then
48903 echo $ECHO_N "(cached) $ECHO_C" >&6
48904 else
48905 ac_check_lib_save_LIBS=$LIBS
48906 LIBS="-lm $LIBS"
48907 if test x$gcc_no_link = xyes; then
48908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48910 { (exit 1); exit 1; }; }
48912 cat >conftest.$ac_ext <<_ACEOF
48913 #line $LINENO "configure"
48914 /* confdefs.h. */
48915 _ACEOF
48916 cat confdefs.h >>conftest.$ac_ext
48917 cat >>conftest.$ac_ext <<_ACEOF
48918 /* end confdefs.h. */
48922 main ()
48924 main ();
48926 return 0;
48928 _ACEOF
48929 rm -f conftest.$ac_objext conftest$ac_exeext
48930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48931 (eval $ac_link) 2>&5
48932 ac_status=$?
48933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48934 (exit $ac_status); } &&
48935 { ac_try='test -s conftest$ac_exeext'
48936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48937 (eval $ac_try) 2>&5
48938 ac_status=$?
48939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48940 (exit $ac_status); }; }; then
48941 ac_cv_lib_m_main=yes
48942 else
48943 echo "$as_me: failed program was:" >&5
48944 sed 's/^/| /' conftest.$ac_ext >&5
48946 ac_cv_lib_m_main=no
48948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48949 LIBS=$ac_check_lib_save_LIBS
48951 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
48952 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
48953 if test $ac_cv_lib_m_main = yes; then
48954 cat >>confdefs.h <<_ACEOF
48955 #define HAVE_LIBM 1
48956 _ACEOF
48958 LIBS="-lm $LIBS"
48964 for ac_func in nan copysignf
48966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48967 echo "$as_me:$LINENO: checking for $ac_func" >&5
48968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48969 if eval "test \"\${$as_ac_var+set}\" = set"; then
48970 echo $ECHO_N "(cached) $ECHO_C" >&6
48971 else
48972 if test x$gcc_no_link = xyes; then
48973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48975 { (exit 1); exit 1; }; }
48977 cat >conftest.$ac_ext <<_ACEOF
48978 #line $LINENO "configure"
48979 /* confdefs.h. */
48980 _ACEOF
48981 cat confdefs.h >>conftest.$ac_ext
48982 cat >>conftest.$ac_ext <<_ACEOF
48983 /* end confdefs.h. */
48984 /* System header to define __stub macros and hopefully few prototypes,
48985 which can conflict with char $ac_func (); below.
48986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48987 <limits.h> exists even on freestanding compilers. */
48988 #ifdef __STDC__
48989 # include <limits.h>
48990 #else
48991 # include <assert.h>
48992 #endif
48993 /* Override any gcc2 internal prototype to avoid an error. */
48994 #ifdef __cplusplus
48995 extern "C"
48997 #endif
48998 /* We use char because int might match the return type of a gcc2
48999 builtin and then its argument prototype would still apply. */
49000 char $ac_func ();
49001 /* The GNU C library defines this for functions which it implements
49002 to always fail with ENOSYS. Some functions are actually named
49003 something starting with __ and the normal name is an alias. */
49004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49005 choke me
49006 #else
49007 char (*f) () = $ac_func;
49008 #endif
49009 #ifdef __cplusplus
49011 #endif
49014 main ()
49016 return f != $ac_func;
49018 return 0;
49020 _ACEOF
49021 rm -f conftest.$ac_objext conftest$ac_exeext
49022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49023 (eval $ac_link) 2>&5
49024 ac_status=$?
49025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49026 (exit $ac_status); } &&
49027 { ac_try='test -s conftest$ac_exeext'
49028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49029 (eval $ac_try) 2>&5
49030 ac_status=$?
49031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49032 (exit $ac_status); }; }; then
49033 eval "$as_ac_var=yes"
49034 else
49035 echo "$as_me: failed program was:" >&5
49036 sed 's/^/| /' conftest.$ac_ext >&5
49038 eval "$as_ac_var=no"
49040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49044 if test `eval echo '${'$as_ac_var'}'` = yes; then
49045 cat >>confdefs.h <<_ACEOF
49046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49047 _ACEOF
49049 else
49050 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
49052 done
49056 for ac_func in __signbit
49058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49059 echo "$as_me:$LINENO: checking for $ac_func" >&5
49060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49061 if eval "test \"\${$as_ac_var+set}\" = set"; then
49062 echo $ECHO_N "(cached) $ECHO_C" >&6
49063 else
49064 if test x$gcc_no_link = xyes; then
49065 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49067 { (exit 1); exit 1; }; }
49069 cat >conftest.$ac_ext <<_ACEOF
49070 #line $LINENO "configure"
49071 /* confdefs.h. */
49072 _ACEOF
49073 cat confdefs.h >>conftest.$ac_ext
49074 cat >>conftest.$ac_ext <<_ACEOF
49075 /* end confdefs.h. */
49076 /* System header to define __stub macros and hopefully few prototypes,
49077 which can conflict with char $ac_func (); below.
49078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49079 <limits.h> exists even on freestanding compilers. */
49080 #ifdef __STDC__
49081 # include <limits.h>
49082 #else
49083 # include <assert.h>
49084 #endif
49085 /* Override any gcc2 internal prototype to avoid an error. */
49086 #ifdef __cplusplus
49087 extern "C"
49089 #endif
49090 /* We use char because int might match the return type of a gcc2
49091 builtin and then its argument prototype would still apply. */
49092 char $ac_func ();
49093 /* The GNU C library defines this for functions which it implements
49094 to always fail with ENOSYS. Some functions are actually named
49095 something starting with __ and the normal name is an alias. */
49096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49097 choke me
49098 #else
49099 char (*f) () = $ac_func;
49100 #endif
49101 #ifdef __cplusplus
49103 #endif
49106 main ()
49108 return f != $ac_func;
49110 return 0;
49112 _ACEOF
49113 rm -f conftest.$ac_objext conftest$ac_exeext
49114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49115 (eval $ac_link) 2>&5
49116 ac_status=$?
49117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49118 (exit $ac_status); } &&
49119 { ac_try='test -s conftest$ac_exeext'
49120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49121 (eval $ac_try) 2>&5
49122 ac_status=$?
49123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49124 (exit $ac_status); }; }; then
49125 eval "$as_ac_var=yes"
49126 else
49127 echo "$as_me: failed program was:" >&5
49128 sed 's/^/| /' conftest.$ac_ext >&5
49130 eval "$as_ac_var=no"
49132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49136 if test `eval echo '${'$as_ac_var'}'` = yes; then
49137 cat >>confdefs.h <<_ACEOF
49138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49139 _ACEOF
49141 else
49142 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
49144 done
49147 for ac_func in __signbitf
49149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49150 echo "$as_me:$LINENO: checking for $ac_func" >&5
49151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49152 if eval "test \"\${$as_ac_var+set}\" = set"; then
49153 echo $ECHO_N "(cached) $ECHO_C" >&6
49154 else
49155 if test x$gcc_no_link = xyes; then
49156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49158 { (exit 1); exit 1; }; }
49160 cat >conftest.$ac_ext <<_ACEOF
49161 #line $LINENO "configure"
49162 /* confdefs.h. */
49163 _ACEOF
49164 cat confdefs.h >>conftest.$ac_ext
49165 cat >>conftest.$ac_ext <<_ACEOF
49166 /* end confdefs.h. */
49167 /* System header to define __stub macros and hopefully few prototypes,
49168 which can conflict with char $ac_func (); below.
49169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49170 <limits.h> exists even on freestanding compilers. */
49171 #ifdef __STDC__
49172 # include <limits.h>
49173 #else
49174 # include <assert.h>
49175 #endif
49176 /* Override any gcc2 internal prototype to avoid an error. */
49177 #ifdef __cplusplus
49178 extern "C"
49180 #endif
49181 /* We use char because int might match the return type of a gcc2
49182 builtin and then its argument prototype would still apply. */
49183 char $ac_func ();
49184 /* The GNU C library defines this for functions which it implements
49185 to always fail with ENOSYS. Some functions are actually named
49186 something starting with __ and the normal name is an alias. */
49187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49188 choke me
49189 #else
49190 char (*f) () = $ac_func;
49191 #endif
49192 #ifdef __cplusplus
49194 #endif
49197 main ()
49199 return f != $ac_func;
49201 return 0;
49203 _ACEOF
49204 rm -f conftest.$ac_objext conftest$ac_exeext
49205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49206 (eval $ac_link) 2>&5
49207 ac_status=$?
49208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49209 (exit $ac_status); } &&
49210 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
49217 else
49218 echo "$as_me: failed program was:" >&5
49219 sed 's/^/| /' conftest.$ac_ext >&5
49221 eval "$as_ac_var=no"
49223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49227 if test `eval echo '${'$as_ac_var'}'` = yes; then
49228 cat >>confdefs.h <<_ACEOF
49229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49230 _ACEOF
49232 else
49233 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
49235 done
49238 if test x$ac_cv_func_copysignl = x"yes"; then
49240 for ac_func in __signbitl
49242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49243 echo "$as_me:$LINENO: checking for $ac_func" >&5
49244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49245 if eval "test \"\${$as_ac_var+set}\" = set"; then
49246 echo $ECHO_N "(cached) $ECHO_C" >&6
49247 else
49248 if test x$gcc_no_link = xyes; then
49249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49251 { (exit 1); exit 1; }; }
49253 cat >conftest.$ac_ext <<_ACEOF
49254 #line $LINENO "configure"
49255 /* confdefs.h. */
49256 _ACEOF
49257 cat confdefs.h >>conftest.$ac_ext
49258 cat >>conftest.$ac_ext <<_ACEOF
49259 /* end confdefs.h. */
49260 /* System header to define __stub macros and hopefully few prototypes,
49261 which can conflict with char $ac_func (); below.
49262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49263 <limits.h> exists even on freestanding compilers. */
49264 #ifdef __STDC__
49265 # include <limits.h>
49266 #else
49267 # include <assert.h>
49268 #endif
49269 /* Override any gcc2 internal prototype to avoid an error. */
49270 #ifdef __cplusplus
49271 extern "C"
49273 #endif
49274 /* We use char because int might match the return type of a gcc2
49275 builtin and then its argument prototype would still apply. */
49276 char $ac_func ();
49277 /* The GNU C library defines this for functions which it implements
49278 to always fail with ENOSYS. Some functions are actually named
49279 something starting with __ and the normal name is an alias. */
49280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49281 choke me
49282 #else
49283 char (*f) () = $ac_func;
49284 #endif
49285 #ifdef __cplusplus
49287 #endif
49290 main ()
49292 return f != $ac_func;
49294 return 0;
49296 _ACEOF
49297 rm -f conftest.$ac_objext conftest$ac_exeext
49298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49299 (eval $ac_link) 2>&5
49300 ac_status=$?
49301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49302 (exit $ac_status); } &&
49303 { ac_try='test -s conftest$ac_exeext'
49304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49305 (eval $ac_try) 2>&5
49306 ac_status=$?
49307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49308 (exit $ac_status); }; }; then
49309 eval "$as_ac_var=yes"
49310 else
49311 echo "$as_me: failed program was:" >&5
49312 sed 's/^/| /' conftest.$ac_ext >&5
49314 eval "$as_ac_var=no"
49316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49320 if test `eval echo '${'$as_ac_var'}'` = yes; then
49321 cat >>confdefs.h <<_ACEOF
49322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49323 _ACEOF
49325 else
49326 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
49328 done
49332 # XXX Review this. Nothing uses it.
49333 if test -n "$LIBMATHOBJS"; then
49334 need_libmath=yes
49339 # Test wchar.h for mbstate_t, which is needed for char_traits and
49340 # others even if wchar_t support is not on.
49341 echo "$as_me:$LINENO: checking for mbstate_t" >&5
49342 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
49343 cat >conftest.$ac_ext <<_ACEOF
49344 #line $LINENO "configure"
49345 /* confdefs.h. */
49346 _ACEOF
49347 cat confdefs.h >>conftest.$ac_ext
49348 cat >>conftest.$ac_ext <<_ACEOF
49349 /* end confdefs.h. */
49350 #include <wchar.h>
49352 main ()
49354 mbstate_t teststate;
49356 return 0;
49358 _ACEOF
49359 rm -f conftest.$ac_objext
49360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49361 (eval $ac_compile) 2>&5
49362 ac_status=$?
49363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49364 (exit $ac_status); } &&
49365 { ac_try='test -s conftest.$ac_objext'
49366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49367 (eval $ac_try) 2>&5
49368 ac_status=$?
49369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49370 (exit $ac_status); }; }; then
49371 have_mbstate_t=yes
49372 else
49373 echo "$as_me: failed program was:" >&5
49374 sed 's/^/| /' conftest.$ac_ext >&5
49376 have_mbstate_t=no
49378 rm -f conftest.$ac_objext conftest.$ac_ext
49379 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
49380 echo "${ECHO_T}$have_mbstate_t" >&6
49381 if test x"$have_mbstate_t" = xyes; then
49382 cat >>confdefs.h <<\_ACEOF
49383 #define HAVE_MBSTATE_T 1
49384 _ACEOF
49388 # Sanity check for existence of ISO C99 headers for extended encoding.
49390 for ac_header in wchar.h
49392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49394 echo "$as_me:$LINENO: checking for $ac_header" >&5
49395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49397 echo $ECHO_N "(cached) $ECHO_C" >&6
49399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49401 else
49402 # Is the header compilable?
49403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49405 cat >conftest.$ac_ext <<_ACEOF
49406 #line $LINENO "configure"
49407 /* confdefs.h. */
49408 _ACEOF
49409 cat confdefs.h >>conftest.$ac_ext
49410 cat >>conftest.$ac_ext <<_ACEOF
49411 /* end confdefs.h. */
49412 $ac_includes_default
49413 #include <$ac_header>
49414 _ACEOF
49415 rm -f conftest.$ac_objext
49416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49417 (eval $ac_compile) 2>&5
49418 ac_status=$?
49419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49420 (exit $ac_status); } &&
49421 { ac_try='test -s conftest.$ac_objext'
49422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49423 (eval $ac_try) 2>&5
49424 ac_status=$?
49425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49426 (exit $ac_status); }; }; then
49427 ac_header_compiler=yes
49428 else
49429 echo "$as_me: failed program was:" >&5
49430 sed 's/^/| /' conftest.$ac_ext >&5
49432 ac_header_compiler=no
49434 rm -f conftest.$ac_objext conftest.$ac_ext
49435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49436 echo "${ECHO_T}$ac_header_compiler" >&6
49438 # Is the header present?
49439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49441 cat >conftest.$ac_ext <<_ACEOF
49442 #line $LINENO "configure"
49443 /* confdefs.h. */
49444 _ACEOF
49445 cat confdefs.h >>conftest.$ac_ext
49446 cat >>conftest.$ac_ext <<_ACEOF
49447 /* end confdefs.h. */
49448 #include <$ac_header>
49449 _ACEOF
49450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49452 ac_status=$?
49453 grep -v '^ *+' conftest.er1 >conftest.err
49454 rm -f conftest.er1
49455 cat conftest.err >&5
49456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49457 (exit $ac_status); } >/dev/null; then
49458 if test -s conftest.err; then
49459 ac_cpp_err=$ac_c_preproc_warn_flag
49460 else
49461 ac_cpp_err=
49463 else
49464 ac_cpp_err=yes
49466 if test -z "$ac_cpp_err"; then
49467 ac_header_preproc=yes
49468 else
49469 echo "$as_me: failed program was:" >&5
49470 sed 's/^/| /' conftest.$ac_ext >&5
49472 ac_header_preproc=no
49474 rm -f conftest.err conftest.$ac_ext
49475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49476 echo "${ECHO_T}$ac_header_preproc" >&6
49478 # So? What about this header?
49479 case $ac_header_compiler:$ac_header_preproc in
49480 yes:no )
49481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49486 cat <<\_ASBOX
49487 ## ------------------------------------ ##
49488 ## Report this to bug-autoconf@gnu.org. ##
49489 ## ------------------------------------ ##
49490 _ASBOX
49492 sed "s/^/$as_me: WARNING: /" >&2
49494 no:yes )
49495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49502 cat <<\_ASBOX
49503 ## ------------------------------------ ##
49504 ## Report this to bug-autoconf@gnu.org. ##
49505 ## ------------------------------------ ##
49506 _ASBOX
49508 sed "s/^/$as_me: WARNING: /" >&2
49510 esac
49511 echo "$as_me:$LINENO: checking for $ac_header" >&5
49512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49514 echo $ECHO_N "(cached) $ECHO_C" >&6
49515 else
49516 eval "$as_ac_Header=$ac_header_preproc"
49518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49523 cat >>confdefs.h <<_ACEOF
49524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49525 _ACEOF
49526 ac_has_wchar_h=yes
49527 else
49528 ac_has_wchar_h=no
49531 done
49534 for ac_header in wctype.h
49536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49538 echo "$as_me:$LINENO: checking for $ac_header" >&5
49539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49541 echo $ECHO_N "(cached) $ECHO_C" >&6
49543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49545 else
49546 # Is the header compilable?
49547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49549 cat >conftest.$ac_ext <<_ACEOF
49550 #line $LINENO "configure"
49551 /* confdefs.h. */
49552 _ACEOF
49553 cat confdefs.h >>conftest.$ac_ext
49554 cat >>conftest.$ac_ext <<_ACEOF
49555 /* end confdefs.h. */
49556 $ac_includes_default
49557 #include <$ac_header>
49558 _ACEOF
49559 rm -f conftest.$ac_objext
49560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49561 (eval $ac_compile) 2>&5
49562 ac_status=$?
49563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564 (exit $ac_status); } &&
49565 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
49572 else
49573 echo "$as_me: failed program was:" >&5
49574 sed 's/^/| /' conftest.$ac_ext >&5
49576 ac_header_compiler=no
49578 rm -f conftest.$ac_objext conftest.$ac_ext
49579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49580 echo "${ECHO_T}$ac_header_compiler" >&6
49582 # Is the header present?
49583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49585 cat >conftest.$ac_ext <<_ACEOF
49586 #line $LINENO "configure"
49587 /* confdefs.h. */
49588 _ACEOF
49589 cat confdefs.h >>conftest.$ac_ext
49590 cat >>conftest.$ac_ext <<_ACEOF
49591 /* end confdefs.h. */
49592 #include <$ac_header>
49593 _ACEOF
49594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49596 ac_status=$?
49597 grep -v '^ *+' conftest.er1 >conftest.err
49598 rm -f conftest.er1
49599 cat conftest.err >&5
49600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49601 (exit $ac_status); } >/dev/null; then
49602 if test -s conftest.err; then
49603 ac_cpp_err=$ac_c_preproc_warn_flag
49604 else
49605 ac_cpp_err=
49607 else
49608 ac_cpp_err=yes
49610 if test -z "$ac_cpp_err"; then
49611 ac_header_preproc=yes
49612 else
49613 echo "$as_me: failed program was:" >&5
49614 sed 's/^/| /' conftest.$ac_ext >&5
49616 ac_header_preproc=no
49618 rm -f conftest.err conftest.$ac_ext
49619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49620 echo "${ECHO_T}$ac_header_preproc" >&6
49622 # So? What about this header?
49623 case $ac_header_compiler:$ac_header_preproc in
49624 yes:no )
49625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49630 cat <<\_ASBOX
49631 ## ------------------------------------ ##
49632 ## Report this to bug-autoconf@gnu.org. ##
49633 ## ------------------------------------ ##
49634 _ASBOX
49636 sed "s/^/$as_me: WARNING: /" >&2
49638 no:yes )
49639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49646 cat <<\_ASBOX
49647 ## ------------------------------------ ##
49648 ## Report this to bug-autoconf@gnu.org. ##
49649 ## ------------------------------------ ##
49650 _ASBOX
49652 sed "s/^/$as_me: WARNING: /" >&2
49654 esac
49655 echo "$as_me:$LINENO: checking for $ac_header" >&5
49656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49658 echo $ECHO_N "(cached) $ECHO_C" >&6
49659 else
49660 eval "$as_ac_Header=$ac_header_preproc"
49662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49667 cat >>confdefs.h <<_ACEOF
49668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49669 _ACEOF
49670 ac_has_wctype_h=yes
49671 else
49672 ac_has_wctype_h=no
49675 done
49678 # Only continue checking if the ISO C99 headers exist and support is on.
49679 if test x"$ac_has_wchar_h" = xyes &&
49680 test x"$ac_has_wctype_h" = xyes &&
49681 test x"$enable_c_mbchar" != xno; then
49683 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
49684 # numeric_limits can instantiate type_traits<wchar_t>
49685 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
49686 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
49687 cat >conftest.$ac_ext <<_ACEOF
49688 #line $LINENO "configure"
49689 /* confdefs.h. */
49690 _ACEOF
49691 cat confdefs.h >>conftest.$ac_ext
49692 cat >>conftest.$ac_ext <<_ACEOF
49693 /* end confdefs.h. */
49694 #include <wchar.h>
49696 main ()
49698 int i = WCHAR_MIN; int j = WCHAR_MAX;
49700 return 0;
49702 _ACEOF
49703 rm -f conftest.$ac_objext
49704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49705 (eval $ac_compile) 2>&5
49706 ac_status=$?
49707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49708 (exit $ac_status); } &&
49709 { ac_try='test -s conftest.$ac_objext'
49710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49711 (eval $ac_try) 2>&5
49712 ac_status=$?
49713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49714 (exit $ac_status); }; }; then
49715 has_wchar_minmax=yes
49716 else
49717 echo "$as_me: failed program was:" >&5
49718 sed 's/^/| /' conftest.$ac_ext >&5
49720 has_wchar_minmax=no
49722 rm -f conftest.$ac_objext conftest.$ac_ext
49723 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
49724 echo "${ECHO_T}$has_wchar_minmax" >&6
49726 # Test wchar.h for WEOF, which is what we use to determine whether
49727 # to specialize for char_traits<wchar_t> or not.
49728 echo "$as_me:$LINENO: checking for WEOF" >&5
49729 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
49730 cat >conftest.$ac_ext <<_ACEOF
49731 #line $LINENO "configure"
49732 /* confdefs.h. */
49733 _ACEOF
49734 cat confdefs.h >>conftest.$ac_ext
49735 cat >>conftest.$ac_ext <<_ACEOF
49736 /* end confdefs.h. */
49738 #include <wchar.h>
49739 #include <stddef.h>
49741 main ()
49743 wint_t i = WEOF;
49745 return 0;
49747 _ACEOF
49748 rm -f conftest.$ac_objext
49749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49750 (eval $ac_compile) 2>&5
49751 ac_status=$?
49752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49753 (exit $ac_status); } &&
49754 { ac_try='test -s conftest.$ac_objext'
49755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49756 (eval $ac_try) 2>&5
49757 ac_status=$?
49758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759 (exit $ac_status); }; }; then
49760 has_weof=yes
49761 else
49762 echo "$as_me: failed program was:" >&5
49763 sed 's/^/| /' conftest.$ac_ext >&5
49765 has_weof=no
49767 rm -f conftest.$ac_objext conftest.$ac_ext
49768 echo "$as_me:$LINENO: result: $has_weof" >&5
49769 echo "${ECHO_T}$has_weof" >&6
49771 # Tests for wide character functions used in char_traits<wchar_t>.
49772 ac_wfuncs=yes
49779 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
49781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49782 echo "$as_me:$LINENO: checking for $ac_func" >&5
49783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49784 if eval "test \"\${$as_ac_var+set}\" = set"; then
49785 echo $ECHO_N "(cached) $ECHO_C" >&6
49786 else
49787 if test x$gcc_no_link = xyes; then
49788 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49790 { (exit 1); exit 1; }; }
49792 cat >conftest.$ac_ext <<_ACEOF
49793 #line $LINENO "configure"
49794 /* confdefs.h. */
49795 _ACEOF
49796 cat confdefs.h >>conftest.$ac_ext
49797 cat >>conftest.$ac_ext <<_ACEOF
49798 /* end confdefs.h. */
49799 /* System header to define __stub macros and hopefully few prototypes,
49800 which can conflict with char $ac_func (); below.
49801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49802 <limits.h> exists even on freestanding compilers. */
49803 #ifdef __STDC__
49804 # include <limits.h>
49805 #else
49806 # include <assert.h>
49807 #endif
49808 /* Override any gcc2 internal prototype to avoid an error. */
49809 #ifdef __cplusplus
49810 extern "C"
49812 #endif
49813 /* We use char because int might match the return type of a gcc2
49814 builtin and then its argument prototype would still apply. */
49815 char $ac_func ();
49816 /* The GNU C library defines this for functions which it implements
49817 to always fail with ENOSYS. Some functions are actually named
49818 something starting with __ and the normal name is an alias. */
49819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49820 choke me
49821 #else
49822 char (*f) () = $ac_func;
49823 #endif
49824 #ifdef __cplusplus
49826 #endif
49829 main ()
49831 return f != $ac_func;
49833 return 0;
49835 _ACEOF
49836 rm -f conftest.$ac_objext conftest$ac_exeext
49837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49838 (eval $ac_link) 2>&5
49839 ac_status=$?
49840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49841 (exit $ac_status); } &&
49842 { ac_try='test -s conftest$ac_exeext'
49843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49844 (eval $ac_try) 2>&5
49845 ac_status=$?
49846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49847 (exit $ac_status); }; }; then
49848 eval "$as_ac_var=yes"
49849 else
49850 echo "$as_me: failed program was:" >&5
49851 sed 's/^/| /' conftest.$ac_ext >&5
49853 eval "$as_ac_var=no"
49855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49859 if test `eval echo '${'$as_ac_var'}'` = yes; then
49860 cat >>confdefs.h <<_ACEOF
49861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49862 _ACEOF
49864 else
49865 ac_wfuncs=no
49867 done
49870 # Checks for names injected into std:: by the c_std headers.
49921 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
49922 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
49923 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
49924 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
49925 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
49926 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
49928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49929 echo "$as_me:$LINENO: checking for $ac_func" >&5
49930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49931 if eval "test \"\${$as_ac_var+set}\" = set"; then
49932 echo $ECHO_N "(cached) $ECHO_C" >&6
49933 else
49934 if test x$gcc_no_link = xyes; then
49935 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49936 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49937 { (exit 1); exit 1; }; }
49939 cat >conftest.$ac_ext <<_ACEOF
49940 #line $LINENO "configure"
49941 /* confdefs.h. */
49942 _ACEOF
49943 cat confdefs.h >>conftest.$ac_ext
49944 cat >>conftest.$ac_ext <<_ACEOF
49945 /* end confdefs.h. */
49946 /* System header to define __stub macros and hopefully few prototypes,
49947 which can conflict with char $ac_func (); below.
49948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49949 <limits.h> exists even on freestanding compilers. */
49950 #ifdef __STDC__
49951 # include <limits.h>
49952 #else
49953 # include <assert.h>
49954 #endif
49955 /* Override any gcc2 internal prototype to avoid an error. */
49956 #ifdef __cplusplus
49957 extern "C"
49959 #endif
49960 /* We use char because int might match the return type of a gcc2
49961 builtin and then its argument prototype would still apply. */
49962 char $ac_func ();
49963 /* The GNU C library defines this for functions which it implements
49964 to always fail with ENOSYS. Some functions are actually named
49965 something starting with __ and the normal name is an alias. */
49966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49967 choke me
49968 #else
49969 char (*f) () = $ac_func;
49970 #endif
49971 #ifdef __cplusplus
49973 #endif
49976 main ()
49978 return f != $ac_func;
49980 return 0;
49982 _ACEOF
49983 rm -f conftest.$ac_objext conftest$ac_exeext
49984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49985 (eval $ac_link) 2>&5
49986 ac_status=$?
49987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49988 (exit $ac_status); } &&
49989 { ac_try='test -s conftest$ac_exeext'
49990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991 (eval $ac_try) 2>&5
49992 ac_status=$?
49993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994 (exit $ac_status); }; }; then
49995 eval "$as_ac_var=yes"
49996 else
49997 echo "$as_me: failed program was:" >&5
49998 sed 's/^/| /' conftest.$ac_ext >&5
50000 eval "$as_ac_var=no"
50002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50006 if test `eval echo '${'$as_ac_var'}'` = yes; then
50007 cat >>confdefs.h <<_ACEOF
50008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50009 _ACEOF
50011 else
50012 ac_wfuncs=no
50014 done
50017 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
50018 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
50019 if test x"$has_weof" = xyes &&
50020 test x"$has_wchar_minmax" = xyes &&
50021 test x"$ac_wfuncs" = xyes;
50022 then
50023 ac_isoC99_wchar_t=yes
50024 else
50025 ac_isoC99_wchar_t=no
50027 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
50028 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
50030 # Use iconv for wchar_t to char conversions. As such, check for
50031 # X/Open Portability Guide, version 2 features (XPG2).
50032 if test "${ac_cv_header_iconv_h+set}" = set; then
50033 echo "$as_me:$LINENO: checking for iconv.h" >&5
50034 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50035 if test "${ac_cv_header_iconv_h+set}" = set; then
50036 echo $ECHO_N "(cached) $ECHO_C" >&6
50038 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50039 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50040 else
50041 # Is the header compilable?
50042 echo "$as_me:$LINENO: checking iconv.h usability" >&5
50043 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
50044 cat >conftest.$ac_ext <<_ACEOF
50045 #line $LINENO "configure"
50046 /* confdefs.h. */
50047 _ACEOF
50048 cat confdefs.h >>conftest.$ac_ext
50049 cat >>conftest.$ac_ext <<_ACEOF
50050 /* end confdefs.h. */
50051 $ac_includes_default
50052 #include <iconv.h>
50053 _ACEOF
50054 rm -f conftest.$ac_objext
50055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50056 (eval $ac_compile) 2>&5
50057 ac_status=$?
50058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50059 (exit $ac_status); } &&
50060 { ac_try='test -s conftest.$ac_objext'
50061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50062 (eval $ac_try) 2>&5
50063 ac_status=$?
50064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50065 (exit $ac_status); }; }; then
50066 ac_header_compiler=yes
50067 else
50068 echo "$as_me: failed program was:" >&5
50069 sed 's/^/| /' conftest.$ac_ext >&5
50071 ac_header_compiler=no
50073 rm -f conftest.$ac_objext conftest.$ac_ext
50074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50075 echo "${ECHO_T}$ac_header_compiler" >&6
50077 # Is the header present?
50078 echo "$as_me:$LINENO: checking iconv.h presence" >&5
50079 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
50080 cat >conftest.$ac_ext <<_ACEOF
50081 #line $LINENO "configure"
50082 /* confdefs.h. */
50083 _ACEOF
50084 cat confdefs.h >>conftest.$ac_ext
50085 cat >>conftest.$ac_ext <<_ACEOF
50086 /* end confdefs.h. */
50087 #include <iconv.h>
50088 _ACEOF
50089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50091 ac_status=$?
50092 grep -v '^ *+' conftest.er1 >conftest.err
50093 rm -f conftest.er1
50094 cat conftest.err >&5
50095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50096 (exit $ac_status); } >/dev/null; then
50097 if test -s conftest.err; then
50098 ac_cpp_err=$ac_c_preproc_warn_flag
50099 else
50100 ac_cpp_err=
50102 else
50103 ac_cpp_err=yes
50105 if test -z "$ac_cpp_err"; then
50106 ac_header_preproc=yes
50107 else
50108 echo "$as_me: failed program was:" >&5
50109 sed 's/^/| /' conftest.$ac_ext >&5
50111 ac_header_preproc=no
50113 rm -f conftest.err conftest.$ac_ext
50114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50115 echo "${ECHO_T}$ac_header_preproc" >&6
50117 # So? What about this header?
50118 case $ac_header_compiler:$ac_header_preproc in
50119 yes:no )
50120 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
50121 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50122 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50123 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50125 cat <<\_ASBOX
50126 ## ------------------------------------ ##
50127 ## Report this to bug-autoconf@gnu.org. ##
50128 ## ------------------------------------ ##
50129 _ASBOX
50131 sed "s/^/$as_me: WARNING: /" >&2
50133 no:yes )
50134 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
50135 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
50136 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
50137 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
50138 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50139 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50141 cat <<\_ASBOX
50142 ## ------------------------------------ ##
50143 ## Report this to bug-autoconf@gnu.org. ##
50144 ## ------------------------------------ ##
50145 _ASBOX
50147 sed "s/^/$as_me: WARNING: /" >&2
50149 esac
50150 echo "$as_me:$LINENO: checking for iconv.h" >&5
50151 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50152 if test "${ac_cv_header_iconv_h+set}" = set; then
50153 echo $ECHO_N "(cached) $ECHO_C" >&6
50154 else
50155 ac_cv_header_iconv_h=$ac_header_preproc
50157 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50158 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50161 if test $ac_cv_header_iconv_h = yes; then
50162 ac_has_iconv_h=yes
50163 else
50164 ac_has_iconv_h=no
50168 if test "${ac_cv_header_langinfo_h+set}" = set; then
50169 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50170 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50171 if test "${ac_cv_header_langinfo_h+set}" = set; then
50172 echo $ECHO_N "(cached) $ECHO_C" >&6
50174 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50175 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50176 else
50177 # Is the header compilable?
50178 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
50179 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
50180 cat >conftest.$ac_ext <<_ACEOF
50181 #line $LINENO "configure"
50182 /* confdefs.h. */
50183 _ACEOF
50184 cat confdefs.h >>conftest.$ac_ext
50185 cat >>conftest.$ac_ext <<_ACEOF
50186 /* end confdefs.h. */
50187 $ac_includes_default
50188 #include <langinfo.h>
50189 _ACEOF
50190 rm -f conftest.$ac_objext
50191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50192 (eval $ac_compile) 2>&5
50193 ac_status=$?
50194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50195 (exit $ac_status); } &&
50196 { ac_try='test -s conftest.$ac_objext'
50197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50198 (eval $ac_try) 2>&5
50199 ac_status=$?
50200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50201 (exit $ac_status); }; }; then
50202 ac_header_compiler=yes
50203 else
50204 echo "$as_me: failed program was:" >&5
50205 sed 's/^/| /' conftest.$ac_ext >&5
50207 ac_header_compiler=no
50209 rm -f conftest.$ac_objext conftest.$ac_ext
50210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50211 echo "${ECHO_T}$ac_header_compiler" >&6
50213 # Is the header present?
50214 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
50215 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
50216 cat >conftest.$ac_ext <<_ACEOF
50217 #line $LINENO "configure"
50218 /* confdefs.h. */
50219 _ACEOF
50220 cat confdefs.h >>conftest.$ac_ext
50221 cat >>conftest.$ac_ext <<_ACEOF
50222 /* end confdefs.h. */
50223 #include <langinfo.h>
50224 _ACEOF
50225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50227 ac_status=$?
50228 grep -v '^ *+' conftest.er1 >conftest.err
50229 rm -f conftest.er1
50230 cat conftest.err >&5
50231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50232 (exit $ac_status); } >/dev/null; then
50233 if test -s conftest.err; then
50234 ac_cpp_err=$ac_c_preproc_warn_flag
50235 else
50236 ac_cpp_err=
50238 else
50239 ac_cpp_err=yes
50241 if test -z "$ac_cpp_err"; then
50242 ac_header_preproc=yes
50243 else
50244 echo "$as_me: failed program was:" >&5
50245 sed 's/^/| /' conftest.$ac_ext >&5
50247 ac_header_preproc=no
50249 rm -f conftest.err conftest.$ac_ext
50250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50251 echo "${ECHO_T}$ac_header_preproc" >&6
50253 # So? What about this header?
50254 case $ac_header_compiler:$ac_header_preproc in
50255 yes:no )
50256 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
50257 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50258 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50259 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50261 cat <<\_ASBOX
50262 ## ------------------------------------ ##
50263 ## Report this to bug-autoconf@gnu.org. ##
50264 ## ------------------------------------ ##
50265 _ASBOX
50267 sed "s/^/$as_me: WARNING: /" >&2
50269 no:yes )
50270 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
50271 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
50272 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
50273 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
50274 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50275 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50277 cat <<\_ASBOX
50278 ## ------------------------------------ ##
50279 ## Report this to bug-autoconf@gnu.org. ##
50280 ## ------------------------------------ ##
50281 _ASBOX
50283 sed "s/^/$as_me: WARNING: /" >&2
50285 esac
50286 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50287 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50288 if test "${ac_cv_header_langinfo_h+set}" = set; then
50289 echo $ECHO_N "(cached) $ECHO_C" >&6
50290 else
50291 ac_cv_header_langinfo_h=$ac_header_preproc
50293 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50294 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50297 if test $ac_cv_header_langinfo_h = yes; then
50298 ac_has_langinfo_h=yes
50299 else
50300 ac_has_langinfo_h=no
50305 # Check for existence of libiconv.a providing XPG2 wchar_t support.
50306 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
50307 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
50308 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
50309 echo $ECHO_N "(cached) $ECHO_C" >&6
50310 else
50311 ac_check_lib_save_LIBS=$LIBS
50312 LIBS="-liconv $LIBS"
50313 if test x$gcc_no_link = xyes; then
50314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50316 { (exit 1); exit 1; }; }
50318 cat >conftest.$ac_ext <<_ACEOF
50319 #line $LINENO "configure"
50320 /* confdefs.h. */
50321 _ACEOF
50322 cat confdefs.h >>conftest.$ac_ext
50323 cat >>conftest.$ac_ext <<_ACEOF
50324 /* end confdefs.h. */
50326 /* Override any gcc2 internal prototype to avoid an error. */
50327 #ifdef __cplusplus
50328 extern "C"
50329 #endif
50330 /* We use char because int might match the return type of a gcc2
50331 builtin and then its argument prototype would still apply. */
50332 char iconv ();
50334 main ()
50336 iconv ();
50338 return 0;
50340 _ACEOF
50341 rm -f conftest.$ac_objext conftest$ac_exeext
50342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50343 (eval $ac_link) 2>&5
50344 ac_status=$?
50345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50346 (exit $ac_status); } &&
50347 { ac_try='test -s conftest$ac_exeext'
50348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50349 (eval $ac_try) 2>&5
50350 ac_status=$?
50351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50352 (exit $ac_status); }; }; then
50353 ac_cv_lib_iconv_iconv=yes
50354 else
50355 echo "$as_me: failed program was:" >&5
50356 sed 's/^/| /' conftest.$ac_ext >&5
50358 ac_cv_lib_iconv_iconv=no
50360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50361 LIBS=$ac_check_lib_save_LIBS
50363 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
50364 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
50365 if test $ac_cv_lib_iconv_iconv = yes; then
50366 libiconv="-liconv"
50369 ac_save_LIBS="$LIBS"
50370 LIBS="$LIBS $libiconv"
50376 for ac_func in iconv_open iconv_close iconv nl_langinfo
50378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50379 echo "$as_me:$LINENO: checking for $ac_func" >&5
50380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50381 if eval "test \"\${$as_ac_var+set}\" = set"; then
50382 echo $ECHO_N "(cached) $ECHO_C" >&6
50383 else
50384 if test x$gcc_no_link = xyes; then
50385 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50386 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50387 { (exit 1); exit 1; }; }
50389 cat >conftest.$ac_ext <<_ACEOF
50390 #line $LINENO "configure"
50391 /* confdefs.h. */
50392 _ACEOF
50393 cat confdefs.h >>conftest.$ac_ext
50394 cat >>conftest.$ac_ext <<_ACEOF
50395 /* end confdefs.h. */
50396 /* System header to define __stub macros and hopefully few prototypes,
50397 which can conflict with char $ac_func (); below.
50398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50399 <limits.h> exists even on freestanding compilers. */
50400 #ifdef __STDC__
50401 # include <limits.h>
50402 #else
50403 # include <assert.h>
50404 #endif
50405 /* Override any gcc2 internal prototype to avoid an error. */
50406 #ifdef __cplusplus
50407 extern "C"
50409 #endif
50410 /* We use char because int might match the return type of a gcc2
50411 builtin and then its argument prototype would still apply. */
50412 char $ac_func ();
50413 /* The GNU C library defines this for functions which it implements
50414 to always fail with ENOSYS. Some functions are actually named
50415 something starting with __ and the normal name is an alias. */
50416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50417 choke me
50418 #else
50419 char (*f) () = $ac_func;
50420 #endif
50421 #ifdef __cplusplus
50423 #endif
50426 main ()
50428 return f != $ac_func;
50430 return 0;
50432 _ACEOF
50433 rm -f conftest.$ac_objext conftest$ac_exeext
50434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50435 (eval $ac_link) 2>&5
50436 ac_status=$?
50437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50438 (exit $ac_status); } &&
50439 { ac_try='test -s conftest$ac_exeext'
50440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50441 (eval $ac_try) 2>&5
50442 ac_status=$?
50443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50444 (exit $ac_status); }; }; then
50445 eval "$as_ac_var=yes"
50446 else
50447 echo "$as_me: failed program was:" >&5
50448 sed 's/^/| /' conftest.$ac_ext >&5
50450 eval "$as_ac_var=no"
50452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50456 if test `eval echo '${'$as_ac_var'}'` = yes; then
50457 cat >>confdefs.h <<_ACEOF
50458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50459 _ACEOF
50460 ac_XPG2funcs=yes
50461 else
50462 ac_XPG2funcs=no
50464 done
50467 LIBS="$ac_save_LIBS"
50469 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
50470 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
50471 if test x"$ac_has_iconv_h" = xyes &&
50472 test x"$ac_has_langinfo_h" = xyes &&
50473 test x"$ac_XPG2funcs" = xyes;
50474 then
50475 ac_XPG2_wchar_t=yes
50476 else
50477 ac_XPG2_wchar_t=no
50479 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
50480 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
50482 # At the moment, only enable wchar_t specializations if all the
50483 # above support is present.
50484 if test x"$ac_isoC99_wchar_t" = xyes &&
50485 test x"$ac_XPG2_wchar_t" = xyes;
50486 then
50487 cat >>confdefs.h <<\_ACEOF
50488 #define _GLIBCXX_USE_WCHAR_T 1
50489 _ACEOF
50491 enable_wchar_t=yes
50494 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
50495 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
50496 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
50497 echo "${ECHO_T}$enable_wchar_t" >&6
50499 cat >>confdefs.h <<\_ACEOF
50500 #define HAVE_COPYSIGN 1
50501 _ACEOF
50503 cat >>confdefs.h <<\_ACEOF
50504 #define HAVE_COPYSIGNF 1
50505 _ACEOF
50507 cat >>confdefs.h <<\_ACEOF
50508 #define HAVE_FREXPF 1
50509 _ACEOF
50511 cat >>confdefs.h <<\_ACEOF
50512 #define HAVE_HYPOT 1
50513 _ACEOF
50515 case "$target" in
50516 *-hpux10*)
50517 cat >>confdefs.h <<\_ACEOF
50518 #define HAVE_FINITE 1
50519 _ACEOF
50521 cat >>confdefs.h <<\_ACEOF
50522 #define HAVE_FINITEF 1
50523 _ACEOF
50525 cat >>confdefs.h <<\_ACEOF
50526 #define HAVE_ISINF 1
50527 _ACEOF
50529 cat >>confdefs.h <<\_ACEOF
50530 #define HAVE_ISINFF 1
50531 _ACEOF
50533 cat >>confdefs.h <<\_ACEOF
50534 #define HAVE_ISNAN 1
50535 _ACEOF
50537 cat >>confdefs.h <<\_ACEOF
50538 #define HAVE_ISNANF 1
50539 _ACEOF
50542 esac
50544 *-linux*)
50545 #os_include_dir="os/gnu-linux"
50558 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
50559 machine/endian.h machine/param.h sys/machine.h sys/types.h \
50560 fp.h locale.h float.h inttypes.h
50562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50564 echo "$as_me:$LINENO: checking for $ac_header" >&5
50565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50567 echo $ECHO_N "(cached) $ECHO_C" >&6
50569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50571 else
50572 # Is the header compilable?
50573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50575 cat >conftest.$ac_ext <<_ACEOF
50576 #line $LINENO "configure"
50577 /* confdefs.h. */
50578 _ACEOF
50579 cat confdefs.h >>conftest.$ac_ext
50580 cat >>conftest.$ac_ext <<_ACEOF
50581 /* end confdefs.h. */
50582 $ac_includes_default
50583 #include <$ac_header>
50584 _ACEOF
50585 rm -f conftest.$ac_objext
50586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50587 (eval $ac_compile) 2>&5
50588 ac_status=$?
50589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50590 (exit $ac_status); } &&
50591 { ac_try='test -s conftest.$ac_objext'
50592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50593 (eval $ac_try) 2>&5
50594 ac_status=$?
50595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50596 (exit $ac_status); }; }; then
50597 ac_header_compiler=yes
50598 else
50599 echo "$as_me: failed program was:" >&5
50600 sed 's/^/| /' conftest.$ac_ext >&5
50602 ac_header_compiler=no
50604 rm -f conftest.$ac_objext conftest.$ac_ext
50605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50606 echo "${ECHO_T}$ac_header_compiler" >&6
50608 # Is the header present?
50609 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50611 cat >conftest.$ac_ext <<_ACEOF
50612 #line $LINENO "configure"
50613 /* confdefs.h. */
50614 _ACEOF
50615 cat confdefs.h >>conftest.$ac_ext
50616 cat >>conftest.$ac_ext <<_ACEOF
50617 /* end confdefs.h. */
50618 #include <$ac_header>
50619 _ACEOF
50620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50622 ac_status=$?
50623 grep -v '^ *+' conftest.er1 >conftest.err
50624 rm -f conftest.er1
50625 cat conftest.err >&5
50626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50627 (exit $ac_status); } >/dev/null; then
50628 if test -s conftest.err; then
50629 ac_cpp_err=$ac_c_preproc_warn_flag
50630 else
50631 ac_cpp_err=
50633 else
50634 ac_cpp_err=yes
50636 if test -z "$ac_cpp_err"; then
50637 ac_header_preproc=yes
50638 else
50639 echo "$as_me: failed program was:" >&5
50640 sed 's/^/| /' conftest.$ac_ext >&5
50642 ac_header_preproc=no
50644 rm -f conftest.err conftest.$ac_ext
50645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50646 echo "${ECHO_T}$ac_header_preproc" >&6
50648 # So? What about this header?
50649 case $ac_header_compiler:$ac_header_preproc in
50650 yes:no )
50651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50656 cat <<\_ASBOX
50657 ## ------------------------------------ ##
50658 ## Report this to bug-autoconf@gnu.org. ##
50659 ## ------------------------------------ ##
50660 _ASBOX
50662 sed "s/^/$as_me: WARNING: /" >&2
50664 no:yes )
50665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50672 cat <<\_ASBOX
50673 ## ------------------------------------ ##
50674 ## Report this to bug-autoconf@gnu.org. ##
50675 ## ------------------------------------ ##
50676 _ASBOX
50678 sed "s/^/$as_me: WARNING: /" >&2
50680 esac
50681 echo "$as_me:$LINENO: checking for $ac_header" >&5
50682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50684 echo $ECHO_N "(cached) $ECHO_C" >&6
50685 else
50686 eval "$as_ac_Header=$ac_header_preproc"
50688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50693 cat >>confdefs.h <<_ACEOF
50694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50695 _ACEOF
50699 done
50701 SECTION_FLAGS='-ffunction-sections -fdata-sections'
50704 # If we're not using GNU ld, then there's no point in even trying these
50705 # tests. Check for that first. We should have already tested for gld
50706 # by now (in libtool), but require it now just to be safe...
50707 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
50708 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
50712 # The name set by libtool depends on the version of libtool. Shame on us
50713 # for depending on an impl detail, but c'est la vie. Older versions used
50714 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
50715 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
50716 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
50717 # set (hence we're using an older libtool), then set it.
50718 if test x${with_gnu_ld+set} != xset; then
50719 if test x${ac_cv_prog_gnu_ld+set} != xset; then
50720 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
50721 with_gnu_ld=no
50722 else
50723 with_gnu_ld=$ac_cv_prog_gnu_ld
50727 # Start by getting the version number. I think the libtool test already
50728 # does some of this, but throws away the result.
50730 ldver=`$LD --version 2>/dev/null | head -1 | \
50731 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
50733 glibcxx_gnu_ld_version=`echo $ldver | \
50734 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
50736 # Set --gc-sections.
50737 if test "$with_gnu_ld" = "notbroken"; then
50738 # GNU ld it is! Joy and bunny rabbits!
50740 # All these tests are for C++; save the language and the compiler flags.
50741 # Need to do this so that g++ won't try to link in libstdc++
50742 ac_test_CFLAGS="${CFLAGS+set}"
50743 ac_save_CFLAGS="$CFLAGS"
50744 CFLAGS='-x c++ -Wl,--gc-sections'
50746 # Check for -Wl,--gc-sections
50747 # XXX This test is broken at the moment, as symbols required for linking
50748 # are now in libsupc++ (not built yet). In addition, this test has
50749 # cored on solaris in the past. In addition, --gc-sections doesn't
50750 # really work at the moment (keeps on discarding used sections, first
50751 # .eh_frame and now some of the glibc sections for iconv).
50752 # Bzzzzt. Thanks for playing, maybe next time.
50753 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
50754 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
50755 if test "$cross_compiling" = yes; then
50756 ac_sectionLDflags=yes
50757 else
50758 cat >conftest.$ac_ext <<_ACEOF
50759 #line $LINENO "configure"
50760 /* confdefs.h. */
50761 _ACEOF
50762 cat confdefs.h >>conftest.$ac_ext
50763 cat >>conftest.$ac_ext <<_ACEOF
50764 /* end confdefs.h. */
50766 int main(void)
50768 try { throw 1; }
50769 catch (...) { };
50770 return 0;
50773 _ACEOF
50774 rm -f conftest$ac_exeext
50775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50776 (eval $ac_link) 2>&5
50777 ac_status=$?
50778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50781 (eval $ac_try) 2>&5
50782 ac_status=$?
50783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50784 (exit $ac_status); }; }; then
50785 ac_sectionLDflags=yes
50786 else
50787 echo "$as_me: program exited with status $ac_status" >&5
50788 echo "$as_me: failed program was:" >&5
50789 sed 's/^/| /' conftest.$ac_ext >&5
50791 ( exit $ac_status )
50792 ac_sectionLDflags=no
50794 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50796 if test "$ac_test_CFLAGS" = set; then
50797 CFLAGS="$ac_save_CFLAGS"
50798 else
50799 # this is the suspicious part
50800 CFLAGS=''
50802 if test "$ac_sectionLDflags" = "yes"; then
50803 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
50805 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
50806 echo "${ECHO_T}$ac_sectionLDflags" >&6
50809 # Set linker optimization flags.
50810 if test x"$with_gnu_ld" = x"yes"; then
50811 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
50819 echo "$as_me:$LINENO: checking for main in -lm" >&5
50820 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50821 if test "${ac_cv_lib_m_main+set}" = set; then
50822 echo $ECHO_N "(cached) $ECHO_C" >&6
50823 else
50824 ac_check_lib_save_LIBS=$LIBS
50825 LIBS="-lm $LIBS"
50826 if test x$gcc_no_link = xyes; then
50827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50829 { (exit 1); exit 1; }; }
50831 cat >conftest.$ac_ext <<_ACEOF
50832 #line $LINENO "configure"
50833 /* confdefs.h. */
50834 _ACEOF
50835 cat confdefs.h >>conftest.$ac_ext
50836 cat >>conftest.$ac_ext <<_ACEOF
50837 /* end confdefs.h. */
50841 main ()
50843 main ();
50845 return 0;
50847 _ACEOF
50848 rm -f conftest.$ac_objext conftest$ac_exeext
50849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50850 (eval $ac_link) 2>&5
50851 ac_status=$?
50852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50853 (exit $ac_status); } &&
50854 { ac_try='test -s conftest$ac_exeext'
50855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50856 (eval $ac_try) 2>&5
50857 ac_status=$?
50858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50859 (exit $ac_status); }; }; then
50860 ac_cv_lib_m_main=yes
50861 else
50862 echo "$as_me: failed program was:" >&5
50863 sed 's/^/| /' conftest.$ac_ext >&5
50865 ac_cv_lib_m_main=no
50867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50868 LIBS=$ac_check_lib_save_LIBS
50870 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50871 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50872 if test $ac_cv_lib_m_main = yes; then
50873 cat >>confdefs.h <<_ACEOF
50874 #define HAVE_LIBM 1
50875 _ACEOF
50877 LIBS="-lm $LIBS"
50883 for ac_func in nan copysignf
50885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50886 echo "$as_me:$LINENO: checking for $ac_func" >&5
50887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50888 if eval "test \"\${$as_ac_var+set}\" = set"; then
50889 echo $ECHO_N "(cached) $ECHO_C" >&6
50890 else
50891 if test x$gcc_no_link = xyes; then
50892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50894 { (exit 1); exit 1; }; }
50896 cat >conftest.$ac_ext <<_ACEOF
50897 #line $LINENO "configure"
50898 /* confdefs.h. */
50899 _ACEOF
50900 cat confdefs.h >>conftest.$ac_ext
50901 cat >>conftest.$ac_ext <<_ACEOF
50902 /* end confdefs.h. */
50903 /* System header to define __stub macros and hopefully few prototypes,
50904 which can conflict with char $ac_func (); below.
50905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50906 <limits.h> exists even on freestanding compilers. */
50907 #ifdef __STDC__
50908 # include <limits.h>
50909 #else
50910 # include <assert.h>
50911 #endif
50912 /* Override any gcc2 internal prototype to avoid an error. */
50913 #ifdef __cplusplus
50914 extern "C"
50916 #endif
50917 /* We use char because int might match the return type of a gcc2
50918 builtin and then its argument prototype would still apply. */
50919 char $ac_func ();
50920 /* The GNU C library defines this for functions which it implements
50921 to always fail with ENOSYS. Some functions are actually named
50922 something starting with __ and the normal name is an alias. */
50923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50924 choke me
50925 #else
50926 char (*f) () = $ac_func;
50927 #endif
50928 #ifdef __cplusplus
50930 #endif
50933 main ()
50935 return f != $ac_func;
50937 return 0;
50939 _ACEOF
50940 rm -f conftest.$ac_objext conftest$ac_exeext
50941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50942 (eval $ac_link) 2>&5
50943 ac_status=$?
50944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50945 (exit $ac_status); } &&
50946 { ac_try='test -s conftest$ac_exeext'
50947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50948 (eval $ac_try) 2>&5
50949 ac_status=$?
50950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50951 (exit $ac_status); }; }; then
50952 eval "$as_ac_var=yes"
50953 else
50954 echo "$as_me: failed program was:" >&5
50955 sed 's/^/| /' conftest.$ac_ext >&5
50957 eval "$as_ac_var=no"
50959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50963 if test `eval echo '${'$as_ac_var'}'` = yes; then
50964 cat >>confdefs.h <<_ACEOF
50965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50966 _ACEOF
50968 else
50969 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50971 done
50975 for ac_func in __signbit
50977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50978 echo "$as_me:$LINENO: checking for $ac_func" >&5
50979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50980 if eval "test \"\${$as_ac_var+set}\" = set"; then
50981 echo $ECHO_N "(cached) $ECHO_C" >&6
50982 else
50983 if test x$gcc_no_link = xyes; then
50984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50986 { (exit 1); exit 1; }; }
50988 cat >conftest.$ac_ext <<_ACEOF
50989 #line $LINENO "configure"
50990 /* confdefs.h. */
50991 _ACEOF
50992 cat confdefs.h >>conftest.$ac_ext
50993 cat >>conftest.$ac_ext <<_ACEOF
50994 /* end confdefs.h. */
50995 /* System header to define __stub macros and hopefully few prototypes,
50996 which can conflict with char $ac_func (); below.
50997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50998 <limits.h> exists even on freestanding compilers. */
50999 #ifdef __STDC__
51000 # include <limits.h>
51001 #else
51002 # include <assert.h>
51003 #endif
51004 /* Override any gcc2 internal prototype to avoid an error. */
51005 #ifdef __cplusplus
51006 extern "C"
51008 #endif
51009 /* We use char because int might match the return type of a gcc2
51010 builtin and then its argument prototype would still apply. */
51011 char $ac_func ();
51012 /* The GNU C library defines this for functions which it implements
51013 to always fail with ENOSYS. Some functions are actually named
51014 something starting with __ and the normal name is an alias. */
51015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51016 choke me
51017 #else
51018 char (*f) () = $ac_func;
51019 #endif
51020 #ifdef __cplusplus
51022 #endif
51025 main ()
51027 return f != $ac_func;
51029 return 0;
51031 _ACEOF
51032 rm -f conftest.$ac_objext conftest$ac_exeext
51033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51034 (eval $ac_link) 2>&5
51035 ac_status=$?
51036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51037 (exit $ac_status); } &&
51038 { ac_try='test -s conftest$ac_exeext'
51039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51040 (eval $ac_try) 2>&5
51041 ac_status=$?
51042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51043 (exit $ac_status); }; }; then
51044 eval "$as_ac_var=yes"
51045 else
51046 echo "$as_me: failed program was:" >&5
51047 sed 's/^/| /' conftest.$ac_ext >&5
51049 eval "$as_ac_var=no"
51051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51055 if test `eval echo '${'$as_ac_var'}'` = yes; then
51056 cat >>confdefs.h <<_ACEOF
51057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51058 _ACEOF
51060 else
51061 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
51063 done
51066 for ac_func in __signbitf
51068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51069 echo "$as_me:$LINENO: checking for $ac_func" >&5
51070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51071 if eval "test \"\${$as_ac_var+set}\" = set"; then
51072 echo $ECHO_N "(cached) $ECHO_C" >&6
51073 else
51074 if test x$gcc_no_link = xyes; then
51075 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51077 { (exit 1); exit 1; }; }
51079 cat >conftest.$ac_ext <<_ACEOF
51080 #line $LINENO "configure"
51081 /* confdefs.h. */
51082 _ACEOF
51083 cat confdefs.h >>conftest.$ac_ext
51084 cat >>conftest.$ac_ext <<_ACEOF
51085 /* end confdefs.h. */
51086 /* System header to define __stub macros and hopefully few prototypes,
51087 which can conflict with char $ac_func (); below.
51088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51089 <limits.h> exists even on freestanding compilers. */
51090 #ifdef __STDC__
51091 # include <limits.h>
51092 #else
51093 # include <assert.h>
51094 #endif
51095 /* Override any gcc2 internal prototype to avoid an error. */
51096 #ifdef __cplusplus
51097 extern "C"
51099 #endif
51100 /* We use char because int might match the return type of a gcc2
51101 builtin and then its argument prototype would still apply. */
51102 char $ac_func ();
51103 /* The GNU C library defines this for functions which it implements
51104 to always fail with ENOSYS. Some functions are actually named
51105 something starting with __ and the normal name is an alias. */
51106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51107 choke me
51108 #else
51109 char (*f) () = $ac_func;
51110 #endif
51111 #ifdef __cplusplus
51113 #endif
51116 main ()
51118 return f != $ac_func;
51120 return 0;
51122 _ACEOF
51123 rm -f conftest.$ac_objext conftest$ac_exeext
51124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51125 (eval $ac_link) 2>&5
51126 ac_status=$?
51127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51128 (exit $ac_status); } &&
51129 { ac_try='test -s conftest$ac_exeext'
51130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51131 (eval $ac_try) 2>&5
51132 ac_status=$?
51133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51134 (exit $ac_status); }; }; then
51135 eval "$as_ac_var=yes"
51136 else
51137 echo "$as_me: failed program was:" >&5
51138 sed 's/^/| /' conftest.$ac_ext >&5
51140 eval "$as_ac_var=no"
51142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51146 if test `eval echo '${'$as_ac_var'}'` = yes; then
51147 cat >>confdefs.h <<_ACEOF
51148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51149 _ACEOF
51151 else
51152 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51154 done
51157 if test x$ac_cv_func_copysignl = x"yes"; then
51159 for ac_func in __signbitl
51161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51162 echo "$as_me:$LINENO: checking for $ac_func" >&5
51163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51164 if eval "test \"\${$as_ac_var+set}\" = set"; then
51165 echo $ECHO_N "(cached) $ECHO_C" >&6
51166 else
51167 if test x$gcc_no_link = xyes; then
51168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51170 { (exit 1); exit 1; }; }
51172 cat >conftest.$ac_ext <<_ACEOF
51173 #line $LINENO "configure"
51174 /* confdefs.h. */
51175 _ACEOF
51176 cat confdefs.h >>conftest.$ac_ext
51177 cat >>conftest.$ac_ext <<_ACEOF
51178 /* end confdefs.h. */
51179 /* System header to define __stub macros and hopefully few prototypes,
51180 which can conflict with char $ac_func (); below.
51181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51182 <limits.h> exists even on freestanding compilers. */
51183 #ifdef __STDC__
51184 # include <limits.h>
51185 #else
51186 # include <assert.h>
51187 #endif
51188 /* Override any gcc2 internal prototype to avoid an error. */
51189 #ifdef __cplusplus
51190 extern "C"
51192 #endif
51193 /* We use char because int might match the return type of a gcc2
51194 builtin and then its argument prototype would still apply. */
51195 char $ac_func ();
51196 /* The GNU C library defines this for functions which it implements
51197 to always fail with ENOSYS. Some functions are actually named
51198 something starting with __ and the normal name is an alias. */
51199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51200 choke me
51201 #else
51202 char (*f) () = $ac_func;
51203 #endif
51204 #ifdef __cplusplus
51206 #endif
51209 main ()
51211 return f != $ac_func;
51213 return 0;
51215 _ACEOF
51216 rm -f conftest.$ac_objext conftest$ac_exeext
51217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51218 (eval $ac_link) 2>&5
51219 ac_status=$?
51220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51221 (exit $ac_status); } &&
51222 { ac_try='test -s conftest$ac_exeext'
51223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51224 (eval $ac_try) 2>&5
51225 ac_status=$?
51226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51227 (exit $ac_status); }; }; then
51228 eval "$as_ac_var=yes"
51229 else
51230 echo "$as_me: failed program was:" >&5
51231 sed 's/^/| /' conftest.$ac_ext >&5
51233 eval "$as_ac_var=no"
51235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51239 if test `eval echo '${'$as_ac_var'}'` = yes; then
51240 cat >>confdefs.h <<_ACEOF
51241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51242 _ACEOF
51244 else
51245 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51247 done
51251 # XXX Review this. Nothing uses it.
51252 if test -n "$LIBMATHOBJS"; then
51253 need_libmath=yes
51258 # Test wchar.h for mbstate_t, which is needed for char_traits and
51259 # others even if wchar_t support is not on.
51260 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51261 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51262 cat >conftest.$ac_ext <<_ACEOF
51263 #line $LINENO "configure"
51264 /* confdefs.h. */
51265 _ACEOF
51266 cat confdefs.h >>conftest.$ac_ext
51267 cat >>conftest.$ac_ext <<_ACEOF
51268 /* end confdefs.h. */
51269 #include <wchar.h>
51271 main ()
51273 mbstate_t teststate;
51275 return 0;
51277 _ACEOF
51278 rm -f conftest.$ac_objext
51279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51280 (eval $ac_compile) 2>&5
51281 ac_status=$?
51282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51283 (exit $ac_status); } &&
51284 { ac_try='test -s conftest.$ac_objext'
51285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51286 (eval $ac_try) 2>&5
51287 ac_status=$?
51288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51289 (exit $ac_status); }; }; then
51290 have_mbstate_t=yes
51291 else
51292 echo "$as_me: failed program was:" >&5
51293 sed 's/^/| /' conftest.$ac_ext >&5
51295 have_mbstate_t=no
51297 rm -f conftest.$ac_objext conftest.$ac_ext
51298 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51299 echo "${ECHO_T}$have_mbstate_t" >&6
51300 if test x"$have_mbstate_t" = xyes; then
51301 cat >>confdefs.h <<\_ACEOF
51302 #define HAVE_MBSTATE_T 1
51303 _ACEOF
51307 # Sanity check for existence of ISO C99 headers for extended encoding.
51309 for ac_header in wchar.h
51311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51313 echo "$as_me:$LINENO: checking for $ac_header" >&5
51314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51316 echo $ECHO_N "(cached) $ECHO_C" >&6
51318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51320 else
51321 # Is the header compilable?
51322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51324 cat >conftest.$ac_ext <<_ACEOF
51325 #line $LINENO "configure"
51326 /* confdefs.h. */
51327 _ACEOF
51328 cat confdefs.h >>conftest.$ac_ext
51329 cat >>conftest.$ac_ext <<_ACEOF
51330 /* end confdefs.h. */
51331 $ac_includes_default
51332 #include <$ac_header>
51333 _ACEOF
51334 rm -f conftest.$ac_objext
51335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51336 (eval $ac_compile) 2>&5
51337 ac_status=$?
51338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51339 (exit $ac_status); } &&
51340 { ac_try='test -s conftest.$ac_objext'
51341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51342 (eval $ac_try) 2>&5
51343 ac_status=$?
51344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51345 (exit $ac_status); }; }; then
51346 ac_header_compiler=yes
51347 else
51348 echo "$as_me: failed program was:" >&5
51349 sed 's/^/| /' conftest.$ac_ext >&5
51351 ac_header_compiler=no
51353 rm -f conftest.$ac_objext conftest.$ac_ext
51354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51355 echo "${ECHO_T}$ac_header_compiler" >&6
51357 # Is the header present?
51358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51360 cat >conftest.$ac_ext <<_ACEOF
51361 #line $LINENO "configure"
51362 /* confdefs.h. */
51363 _ACEOF
51364 cat confdefs.h >>conftest.$ac_ext
51365 cat >>conftest.$ac_ext <<_ACEOF
51366 /* end confdefs.h. */
51367 #include <$ac_header>
51368 _ACEOF
51369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51371 ac_status=$?
51372 grep -v '^ *+' conftest.er1 >conftest.err
51373 rm -f conftest.er1
51374 cat conftest.err >&5
51375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51376 (exit $ac_status); } >/dev/null; then
51377 if test -s conftest.err; then
51378 ac_cpp_err=$ac_c_preproc_warn_flag
51379 else
51380 ac_cpp_err=
51382 else
51383 ac_cpp_err=yes
51385 if test -z "$ac_cpp_err"; then
51386 ac_header_preproc=yes
51387 else
51388 echo "$as_me: failed program was:" >&5
51389 sed 's/^/| /' conftest.$ac_ext >&5
51391 ac_header_preproc=no
51393 rm -f conftest.err conftest.$ac_ext
51394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51395 echo "${ECHO_T}$ac_header_preproc" >&6
51397 # So? What about this header?
51398 case $ac_header_compiler:$ac_header_preproc in
51399 yes:no )
51400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51405 cat <<\_ASBOX
51406 ## ------------------------------------ ##
51407 ## Report this to bug-autoconf@gnu.org. ##
51408 ## ------------------------------------ ##
51409 _ASBOX
51411 sed "s/^/$as_me: WARNING: /" >&2
51413 no:yes )
51414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51421 cat <<\_ASBOX
51422 ## ------------------------------------ ##
51423 ## Report this to bug-autoconf@gnu.org. ##
51424 ## ------------------------------------ ##
51425 _ASBOX
51427 sed "s/^/$as_me: WARNING: /" >&2
51429 esac
51430 echo "$as_me:$LINENO: checking for $ac_header" >&5
51431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51433 echo $ECHO_N "(cached) $ECHO_C" >&6
51434 else
51435 eval "$as_ac_Header=$ac_header_preproc"
51437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51442 cat >>confdefs.h <<_ACEOF
51443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51444 _ACEOF
51445 ac_has_wchar_h=yes
51446 else
51447 ac_has_wchar_h=no
51450 done
51453 for ac_header in wctype.h
51455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51457 echo "$as_me:$LINENO: checking for $ac_header" >&5
51458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51460 echo $ECHO_N "(cached) $ECHO_C" >&6
51462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51464 else
51465 # Is the header compilable?
51466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51468 cat >conftest.$ac_ext <<_ACEOF
51469 #line $LINENO "configure"
51470 /* confdefs.h. */
51471 _ACEOF
51472 cat confdefs.h >>conftest.$ac_ext
51473 cat >>conftest.$ac_ext <<_ACEOF
51474 /* end confdefs.h. */
51475 $ac_includes_default
51476 #include <$ac_header>
51477 _ACEOF
51478 rm -f conftest.$ac_objext
51479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51480 (eval $ac_compile) 2>&5
51481 ac_status=$?
51482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51483 (exit $ac_status); } &&
51484 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
51491 else
51492 echo "$as_me: failed program was:" >&5
51493 sed 's/^/| /' conftest.$ac_ext >&5
51495 ac_header_compiler=no
51497 rm -f conftest.$ac_objext conftest.$ac_ext
51498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51499 echo "${ECHO_T}$ac_header_compiler" >&6
51501 # Is the header present?
51502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51504 cat >conftest.$ac_ext <<_ACEOF
51505 #line $LINENO "configure"
51506 /* confdefs.h. */
51507 _ACEOF
51508 cat confdefs.h >>conftest.$ac_ext
51509 cat >>conftest.$ac_ext <<_ACEOF
51510 /* end confdefs.h. */
51511 #include <$ac_header>
51512 _ACEOF
51513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51515 ac_status=$?
51516 grep -v '^ *+' conftest.er1 >conftest.err
51517 rm -f conftest.er1
51518 cat conftest.err >&5
51519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51520 (exit $ac_status); } >/dev/null; then
51521 if test -s conftest.err; then
51522 ac_cpp_err=$ac_c_preproc_warn_flag
51523 else
51524 ac_cpp_err=
51526 else
51527 ac_cpp_err=yes
51529 if test -z "$ac_cpp_err"; then
51530 ac_header_preproc=yes
51531 else
51532 echo "$as_me: failed program was:" >&5
51533 sed 's/^/| /' conftest.$ac_ext >&5
51535 ac_header_preproc=no
51537 rm -f conftest.err conftest.$ac_ext
51538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51539 echo "${ECHO_T}$ac_header_preproc" >&6
51541 # So? What about this header?
51542 case $ac_header_compiler:$ac_header_preproc in
51543 yes:no )
51544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51549 cat <<\_ASBOX
51550 ## ------------------------------------ ##
51551 ## Report this to bug-autoconf@gnu.org. ##
51552 ## ------------------------------------ ##
51553 _ASBOX
51555 sed "s/^/$as_me: WARNING: /" >&2
51557 no:yes )
51558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51565 cat <<\_ASBOX
51566 ## ------------------------------------ ##
51567 ## Report this to bug-autoconf@gnu.org. ##
51568 ## ------------------------------------ ##
51569 _ASBOX
51571 sed "s/^/$as_me: WARNING: /" >&2
51573 esac
51574 echo "$as_me:$LINENO: checking for $ac_header" >&5
51575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51577 echo $ECHO_N "(cached) $ECHO_C" >&6
51578 else
51579 eval "$as_ac_Header=$ac_header_preproc"
51581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51586 cat >>confdefs.h <<_ACEOF
51587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51588 _ACEOF
51589 ac_has_wctype_h=yes
51590 else
51591 ac_has_wctype_h=no
51594 done
51597 # Only continue checking if the ISO C99 headers exist and support is on.
51598 if test x"$ac_has_wchar_h" = xyes &&
51599 test x"$ac_has_wctype_h" = xyes &&
51600 test x"$enable_c_mbchar" != xno; then
51602 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51603 # numeric_limits can instantiate type_traits<wchar_t>
51604 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51605 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51606 cat >conftest.$ac_ext <<_ACEOF
51607 #line $LINENO "configure"
51608 /* confdefs.h. */
51609 _ACEOF
51610 cat confdefs.h >>conftest.$ac_ext
51611 cat >>conftest.$ac_ext <<_ACEOF
51612 /* end confdefs.h. */
51613 #include <wchar.h>
51615 main ()
51617 int i = WCHAR_MIN; int j = WCHAR_MAX;
51619 return 0;
51621 _ACEOF
51622 rm -f conftest.$ac_objext
51623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51624 (eval $ac_compile) 2>&5
51625 ac_status=$?
51626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51627 (exit $ac_status); } &&
51628 { ac_try='test -s conftest.$ac_objext'
51629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51630 (eval $ac_try) 2>&5
51631 ac_status=$?
51632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51633 (exit $ac_status); }; }; then
51634 has_wchar_minmax=yes
51635 else
51636 echo "$as_me: failed program was:" >&5
51637 sed 's/^/| /' conftest.$ac_ext >&5
51639 has_wchar_minmax=no
51641 rm -f conftest.$ac_objext conftest.$ac_ext
51642 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51643 echo "${ECHO_T}$has_wchar_minmax" >&6
51645 # Test wchar.h for WEOF, which is what we use to determine whether
51646 # to specialize for char_traits<wchar_t> or not.
51647 echo "$as_me:$LINENO: checking for WEOF" >&5
51648 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51649 cat >conftest.$ac_ext <<_ACEOF
51650 #line $LINENO "configure"
51651 /* confdefs.h. */
51652 _ACEOF
51653 cat confdefs.h >>conftest.$ac_ext
51654 cat >>conftest.$ac_ext <<_ACEOF
51655 /* end confdefs.h. */
51657 #include <wchar.h>
51658 #include <stddef.h>
51660 main ()
51662 wint_t i = WEOF;
51664 return 0;
51666 _ACEOF
51667 rm -f conftest.$ac_objext
51668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51669 (eval $ac_compile) 2>&5
51670 ac_status=$?
51671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51672 (exit $ac_status); } &&
51673 { ac_try='test -s conftest.$ac_objext'
51674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51675 (eval $ac_try) 2>&5
51676 ac_status=$?
51677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51678 (exit $ac_status); }; }; then
51679 has_weof=yes
51680 else
51681 echo "$as_me: failed program was:" >&5
51682 sed 's/^/| /' conftest.$ac_ext >&5
51684 has_weof=no
51686 rm -f conftest.$ac_objext conftest.$ac_ext
51687 echo "$as_me:$LINENO: result: $has_weof" >&5
51688 echo "${ECHO_T}$has_weof" >&6
51690 # Tests for wide character functions used in char_traits<wchar_t>.
51691 ac_wfuncs=yes
51698 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51701 echo "$as_me:$LINENO: checking for $ac_func" >&5
51702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51703 if eval "test \"\${$as_ac_var+set}\" = set"; then
51704 echo $ECHO_N "(cached) $ECHO_C" >&6
51705 else
51706 if test x$gcc_no_link = xyes; then
51707 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51709 { (exit 1); exit 1; }; }
51711 cat >conftest.$ac_ext <<_ACEOF
51712 #line $LINENO "configure"
51713 /* confdefs.h. */
51714 _ACEOF
51715 cat confdefs.h >>conftest.$ac_ext
51716 cat >>conftest.$ac_ext <<_ACEOF
51717 /* end confdefs.h. */
51718 /* System header to define __stub macros and hopefully few prototypes,
51719 which can conflict with char $ac_func (); below.
51720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51721 <limits.h> exists even on freestanding compilers. */
51722 #ifdef __STDC__
51723 # include <limits.h>
51724 #else
51725 # include <assert.h>
51726 #endif
51727 /* Override any gcc2 internal prototype to avoid an error. */
51728 #ifdef __cplusplus
51729 extern "C"
51731 #endif
51732 /* We use char because int might match the return type of a gcc2
51733 builtin and then its argument prototype would still apply. */
51734 char $ac_func ();
51735 /* The GNU C library defines this for functions which it implements
51736 to always fail with ENOSYS. Some functions are actually named
51737 something starting with __ and the normal name is an alias. */
51738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51739 choke me
51740 #else
51741 char (*f) () = $ac_func;
51742 #endif
51743 #ifdef __cplusplus
51745 #endif
51748 main ()
51750 return f != $ac_func;
51752 return 0;
51754 _ACEOF
51755 rm -f conftest.$ac_objext conftest$ac_exeext
51756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51757 (eval $ac_link) 2>&5
51758 ac_status=$?
51759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51760 (exit $ac_status); } &&
51761 { ac_try='test -s conftest$ac_exeext'
51762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51763 (eval $ac_try) 2>&5
51764 ac_status=$?
51765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51766 (exit $ac_status); }; }; then
51767 eval "$as_ac_var=yes"
51768 else
51769 echo "$as_me: failed program was:" >&5
51770 sed 's/^/| /' conftest.$ac_ext >&5
51772 eval "$as_ac_var=no"
51774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51778 if test `eval echo '${'$as_ac_var'}'` = yes; then
51779 cat >>confdefs.h <<_ACEOF
51780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51781 _ACEOF
51783 else
51784 ac_wfuncs=no
51786 done
51789 # Checks for names injected into std:: by the c_std headers.
51840 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51841 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
51842 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51843 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
51844 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51845 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51848 echo "$as_me:$LINENO: checking for $ac_func" >&5
51849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51850 if eval "test \"\${$as_ac_var+set}\" = set"; then
51851 echo $ECHO_N "(cached) $ECHO_C" >&6
51852 else
51853 if test x$gcc_no_link = xyes; then
51854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51856 { (exit 1); exit 1; }; }
51858 cat >conftest.$ac_ext <<_ACEOF
51859 #line $LINENO "configure"
51860 /* confdefs.h. */
51861 _ACEOF
51862 cat confdefs.h >>conftest.$ac_ext
51863 cat >>conftest.$ac_ext <<_ACEOF
51864 /* end confdefs.h. */
51865 /* System header to define __stub macros and hopefully few prototypes,
51866 which can conflict with char $ac_func (); below.
51867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51868 <limits.h> exists even on freestanding compilers. */
51869 #ifdef __STDC__
51870 # include <limits.h>
51871 #else
51872 # include <assert.h>
51873 #endif
51874 /* Override any gcc2 internal prototype to avoid an error. */
51875 #ifdef __cplusplus
51876 extern "C"
51878 #endif
51879 /* We use char because int might match the return type of a gcc2
51880 builtin and then its argument prototype would still apply. */
51881 char $ac_func ();
51882 /* The GNU C library defines this for functions which it implements
51883 to always fail with ENOSYS. Some functions are actually named
51884 something starting with __ and the normal name is an alias. */
51885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51886 choke me
51887 #else
51888 char (*f) () = $ac_func;
51889 #endif
51890 #ifdef __cplusplus
51892 #endif
51895 main ()
51897 return f != $ac_func;
51899 return 0;
51901 _ACEOF
51902 rm -f conftest.$ac_objext conftest$ac_exeext
51903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51904 (eval $ac_link) 2>&5
51905 ac_status=$?
51906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51907 (exit $ac_status); } &&
51908 { ac_try='test -s conftest$ac_exeext'
51909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51910 (eval $ac_try) 2>&5
51911 ac_status=$?
51912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51913 (exit $ac_status); }; }; then
51914 eval "$as_ac_var=yes"
51915 else
51916 echo "$as_me: failed program was:" >&5
51917 sed 's/^/| /' conftest.$ac_ext >&5
51919 eval "$as_ac_var=no"
51921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51925 if test `eval echo '${'$as_ac_var'}'` = yes; then
51926 cat >>confdefs.h <<_ACEOF
51927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51928 _ACEOF
51930 else
51931 ac_wfuncs=no
51933 done
51936 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51937 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51938 if test x"$has_weof" = xyes &&
51939 test x"$has_wchar_minmax" = xyes &&
51940 test x"$ac_wfuncs" = xyes;
51941 then
51942 ac_isoC99_wchar_t=yes
51943 else
51944 ac_isoC99_wchar_t=no
51946 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51947 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51949 # Use iconv for wchar_t to char conversions. As such, check for
51950 # X/Open Portability Guide, version 2 features (XPG2).
51951 if test "${ac_cv_header_iconv_h+set}" = set; then
51952 echo "$as_me:$LINENO: checking for iconv.h" >&5
51953 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51954 if test "${ac_cv_header_iconv_h+set}" = set; then
51955 echo $ECHO_N "(cached) $ECHO_C" >&6
51957 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51958 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51959 else
51960 # Is the header compilable?
51961 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51962 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51963 cat >conftest.$ac_ext <<_ACEOF
51964 #line $LINENO "configure"
51965 /* confdefs.h. */
51966 _ACEOF
51967 cat confdefs.h >>conftest.$ac_ext
51968 cat >>conftest.$ac_ext <<_ACEOF
51969 /* end confdefs.h. */
51970 $ac_includes_default
51971 #include <iconv.h>
51972 _ACEOF
51973 rm -f conftest.$ac_objext
51974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51975 (eval $ac_compile) 2>&5
51976 ac_status=$?
51977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51978 (exit $ac_status); } &&
51979 { ac_try='test -s conftest.$ac_objext'
51980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51981 (eval $ac_try) 2>&5
51982 ac_status=$?
51983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51984 (exit $ac_status); }; }; then
51985 ac_header_compiler=yes
51986 else
51987 echo "$as_me: failed program was:" >&5
51988 sed 's/^/| /' conftest.$ac_ext >&5
51990 ac_header_compiler=no
51992 rm -f conftest.$ac_objext conftest.$ac_ext
51993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51994 echo "${ECHO_T}$ac_header_compiler" >&6
51996 # Is the header present?
51997 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51998 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51999 cat >conftest.$ac_ext <<_ACEOF
52000 #line $LINENO "configure"
52001 /* confdefs.h. */
52002 _ACEOF
52003 cat confdefs.h >>conftest.$ac_ext
52004 cat >>conftest.$ac_ext <<_ACEOF
52005 /* end confdefs.h. */
52006 #include <iconv.h>
52007 _ACEOF
52008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52010 ac_status=$?
52011 grep -v '^ *+' conftest.er1 >conftest.err
52012 rm -f conftest.er1
52013 cat conftest.err >&5
52014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52015 (exit $ac_status); } >/dev/null; then
52016 if test -s conftest.err; then
52017 ac_cpp_err=$ac_c_preproc_warn_flag
52018 else
52019 ac_cpp_err=
52021 else
52022 ac_cpp_err=yes
52024 if test -z "$ac_cpp_err"; then
52025 ac_header_preproc=yes
52026 else
52027 echo "$as_me: failed program was:" >&5
52028 sed 's/^/| /' conftest.$ac_ext >&5
52030 ac_header_preproc=no
52032 rm -f conftest.err conftest.$ac_ext
52033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52034 echo "${ECHO_T}$ac_header_preproc" >&6
52036 # So? What about this header?
52037 case $ac_header_compiler:$ac_header_preproc in
52038 yes:no )
52039 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52040 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52041 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52042 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52044 cat <<\_ASBOX
52045 ## ------------------------------------ ##
52046 ## Report this to bug-autoconf@gnu.org. ##
52047 ## ------------------------------------ ##
52048 _ASBOX
52050 sed "s/^/$as_me: WARNING: /" >&2
52052 no:yes )
52053 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52054 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52055 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52056 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52057 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52058 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52060 cat <<\_ASBOX
52061 ## ------------------------------------ ##
52062 ## Report this to bug-autoconf@gnu.org. ##
52063 ## ------------------------------------ ##
52064 _ASBOX
52066 sed "s/^/$as_me: WARNING: /" >&2
52068 esac
52069 echo "$as_me:$LINENO: checking for iconv.h" >&5
52070 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52071 if test "${ac_cv_header_iconv_h+set}" = set; then
52072 echo $ECHO_N "(cached) $ECHO_C" >&6
52073 else
52074 ac_cv_header_iconv_h=$ac_header_preproc
52076 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52077 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52080 if test $ac_cv_header_iconv_h = yes; then
52081 ac_has_iconv_h=yes
52082 else
52083 ac_has_iconv_h=no
52087 if test "${ac_cv_header_langinfo_h+set}" = set; then
52088 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52089 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52090 if test "${ac_cv_header_langinfo_h+set}" = set; then
52091 echo $ECHO_N "(cached) $ECHO_C" >&6
52093 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52094 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52095 else
52096 # Is the header compilable?
52097 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52098 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52099 cat >conftest.$ac_ext <<_ACEOF
52100 #line $LINENO "configure"
52101 /* confdefs.h. */
52102 _ACEOF
52103 cat confdefs.h >>conftest.$ac_ext
52104 cat >>conftest.$ac_ext <<_ACEOF
52105 /* end confdefs.h. */
52106 $ac_includes_default
52107 #include <langinfo.h>
52108 _ACEOF
52109 rm -f conftest.$ac_objext
52110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52111 (eval $ac_compile) 2>&5
52112 ac_status=$?
52113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52114 (exit $ac_status); } &&
52115 { ac_try='test -s conftest.$ac_objext'
52116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52117 (eval $ac_try) 2>&5
52118 ac_status=$?
52119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52120 (exit $ac_status); }; }; then
52121 ac_header_compiler=yes
52122 else
52123 echo "$as_me: failed program was:" >&5
52124 sed 's/^/| /' conftest.$ac_ext >&5
52126 ac_header_compiler=no
52128 rm -f conftest.$ac_objext conftest.$ac_ext
52129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52130 echo "${ECHO_T}$ac_header_compiler" >&6
52132 # Is the header present?
52133 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52134 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52135 cat >conftest.$ac_ext <<_ACEOF
52136 #line $LINENO "configure"
52137 /* confdefs.h. */
52138 _ACEOF
52139 cat confdefs.h >>conftest.$ac_ext
52140 cat >>conftest.$ac_ext <<_ACEOF
52141 /* end confdefs.h. */
52142 #include <langinfo.h>
52143 _ACEOF
52144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52146 ac_status=$?
52147 grep -v '^ *+' conftest.er1 >conftest.err
52148 rm -f conftest.er1
52149 cat conftest.err >&5
52150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52151 (exit $ac_status); } >/dev/null; then
52152 if test -s conftest.err; then
52153 ac_cpp_err=$ac_c_preproc_warn_flag
52154 else
52155 ac_cpp_err=
52157 else
52158 ac_cpp_err=yes
52160 if test -z "$ac_cpp_err"; then
52161 ac_header_preproc=yes
52162 else
52163 echo "$as_me: failed program was:" >&5
52164 sed 's/^/| /' conftest.$ac_ext >&5
52166 ac_header_preproc=no
52168 rm -f conftest.err conftest.$ac_ext
52169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52170 echo "${ECHO_T}$ac_header_preproc" >&6
52172 # So? What about this header?
52173 case $ac_header_compiler:$ac_header_preproc in
52174 yes:no )
52175 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52176 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52177 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52178 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52180 cat <<\_ASBOX
52181 ## ------------------------------------ ##
52182 ## Report this to bug-autoconf@gnu.org. ##
52183 ## ------------------------------------ ##
52184 _ASBOX
52186 sed "s/^/$as_me: WARNING: /" >&2
52188 no:yes )
52189 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52190 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52191 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52192 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52193 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52194 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52196 cat <<\_ASBOX
52197 ## ------------------------------------ ##
52198 ## Report this to bug-autoconf@gnu.org. ##
52199 ## ------------------------------------ ##
52200 _ASBOX
52202 sed "s/^/$as_me: WARNING: /" >&2
52204 esac
52205 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52206 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52207 if test "${ac_cv_header_langinfo_h+set}" = set; then
52208 echo $ECHO_N "(cached) $ECHO_C" >&6
52209 else
52210 ac_cv_header_langinfo_h=$ac_header_preproc
52212 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52213 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52216 if test $ac_cv_header_langinfo_h = yes; then
52217 ac_has_langinfo_h=yes
52218 else
52219 ac_has_langinfo_h=no
52224 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52225 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52226 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52227 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52228 echo $ECHO_N "(cached) $ECHO_C" >&6
52229 else
52230 ac_check_lib_save_LIBS=$LIBS
52231 LIBS="-liconv $LIBS"
52232 if test x$gcc_no_link = xyes; then
52233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52235 { (exit 1); exit 1; }; }
52237 cat >conftest.$ac_ext <<_ACEOF
52238 #line $LINENO "configure"
52239 /* confdefs.h. */
52240 _ACEOF
52241 cat confdefs.h >>conftest.$ac_ext
52242 cat >>conftest.$ac_ext <<_ACEOF
52243 /* end confdefs.h. */
52245 /* Override any gcc2 internal prototype to avoid an error. */
52246 #ifdef __cplusplus
52247 extern "C"
52248 #endif
52249 /* We use char because int might match the return type of a gcc2
52250 builtin and then its argument prototype would still apply. */
52251 char iconv ();
52253 main ()
52255 iconv ();
52257 return 0;
52259 _ACEOF
52260 rm -f conftest.$ac_objext conftest$ac_exeext
52261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52262 (eval $ac_link) 2>&5
52263 ac_status=$?
52264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52265 (exit $ac_status); } &&
52266 { ac_try='test -s conftest$ac_exeext'
52267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52268 (eval $ac_try) 2>&5
52269 ac_status=$?
52270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52271 (exit $ac_status); }; }; then
52272 ac_cv_lib_iconv_iconv=yes
52273 else
52274 echo "$as_me: failed program was:" >&5
52275 sed 's/^/| /' conftest.$ac_ext >&5
52277 ac_cv_lib_iconv_iconv=no
52279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52280 LIBS=$ac_check_lib_save_LIBS
52282 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52283 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52284 if test $ac_cv_lib_iconv_iconv = yes; then
52285 libiconv="-liconv"
52288 ac_save_LIBS="$LIBS"
52289 LIBS="$LIBS $libiconv"
52295 for ac_func in iconv_open iconv_close iconv nl_langinfo
52297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52298 echo "$as_me:$LINENO: checking for $ac_func" >&5
52299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52300 if eval "test \"\${$as_ac_var+set}\" = set"; then
52301 echo $ECHO_N "(cached) $ECHO_C" >&6
52302 else
52303 if test x$gcc_no_link = xyes; then
52304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52306 { (exit 1); exit 1; }; }
52308 cat >conftest.$ac_ext <<_ACEOF
52309 #line $LINENO "configure"
52310 /* confdefs.h. */
52311 _ACEOF
52312 cat confdefs.h >>conftest.$ac_ext
52313 cat >>conftest.$ac_ext <<_ACEOF
52314 /* end confdefs.h. */
52315 /* System header to define __stub macros and hopefully few prototypes,
52316 which can conflict with char $ac_func (); below.
52317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52318 <limits.h> exists even on freestanding compilers. */
52319 #ifdef __STDC__
52320 # include <limits.h>
52321 #else
52322 # include <assert.h>
52323 #endif
52324 /* Override any gcc2 internal prototype to avoid an error. */
52325 #ifdef __cplusplus
52326 extern "C"
52328 #endif
52329 /* We use char because int might match the return type of a gcc2
52330 builtin and then its argument prototype would still apply. */
52331 char $ac_func ();
52332 /* The GNU C library defines this for functions which it implements
52333 to always fail with ENOSYS. Some functions are actually named
52334 something starting with __ and the normal name is an alias. */
52335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52336 choke me
52337 #else
52338 char (*f) () = $ac_func;
52339 #endif
52340 #ifdef __cplusplus
52342 #endif
52345 main ()
52347 return f != $ac_func;
52349 return 0;
52351 _ACEOF
52352 rm -f conftest.$ac_objext conftest$ac_exeext
52353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52354 (eval $ac_link) 2>&5
52355 ac_status=$?
52356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52357 (exit $ac_status); } &&
52358 { ac_try='test -s conftest$ac_exeext'
52359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52360 (eval $ac_try) 2>&5
52361 ac_status=$?
52362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52363 (exit $ac_status); }; }; then
52364 eval "$as_ac_var=yes"
52365 else
52366 echo "$as_me: failed program was:" >&5
52367 sed 's/^/| /' conftest.$ac_ext >&5
52369 eval "$as_ac_var=no"
52371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52375 if test `eval echo '${'$as_ac_var'}'` = yes; then
52376 cat >>confdefs.h <<_ACEOF
52377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52378 _ACEOF
52379 ac_XPG2funcs=yes
52380 else
52381 ac_XPG2funcs=no
52383 done
52386 LIBS="$ac_save_LIBS"
52388 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52389 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52390 if test x"$ac_has_iconv_h" = xyes &&
52391 test x"$ac_has_langinfo_h" = xyes &&
52392 test x"$ac_XPG2funcs" = xyes;
52393 then
52394 ac_XPG2_wchar_t=yes
52395 else
52396 ac_XPG2_wchar_t=no
52398 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52399 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52401 # At the moment, only enable wchar_t specializations if all the
52402 # above support is present.
52403 if test x"$ac_isoC99_wchar_t" = xyes &&
52404 test x"$ac_XPG2_wchar_t" = xyes;
52405 then
52406 cat >>confdefs.h <<\_ACEOF
52407 #define _GLIBCXX_USE_WCHAR_T 1
52408 _ACEOF
52410 enable_wchar_t=yes
52413 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52414 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52415 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52416 echo "${ECHO_T}$enable_wchar_t" >&6
52418 cat >>confdefs.h <<\_ACEOF
52419 #define HAVE_COPYSIGN 1
52420 _ACEOF
52422 cat >>confdefs.h <<\_ACEOF
52423 #define HAVE_COPYSIGNF 1
52424 _ACEOF
52426 cat >>confdefs.h <<\_ACEOF
52427 #define HAVE_FINITE 1
52428 _ACEOF
52430 cat >>confdefs.h <<\_ACEOF
52431 #define HAVE_FINITEF 1
52432 _ACEOF
52434 cat >>confdefs.h <<\_ACEOF
52435 #define HAVE_FREXPF 1
52436 _ACEOF
52438 cat >>confdefs.h <<\_ACEOF
52439 #define HAVE_HYPOTF 1
52440 _ACEOF
52442 cat >>confdefs.h <<\_ACEOF
52443 #define HAVE_ISINF 1
52444 _ACEOF
52446 cat >>confdefs.h <<\_ACEOF
52447 #define HAVE_ISINFF 1
52448 _ACEOF
52450 cat >>confdefs.h <<\_ACEOF
52451 #define HAVE_ISNAN 1
52452 _ACEOF
52454 cat >>confdefs.h <<\_ACEOF
52455 #define HAVE_ISNANF 1
52456 _ACEOF
52458 cat >>confdefs.h <<\_ACEOF
52459 #define HAVE_SINCOS 1
52460 _ACEOF
52462 cat >>confdefs.h <<\_ACEOF
52463 #define HAVE_SINCOSF 1
52464 _ACEOF
52466 if test x"long_double_math_on_this_cpu" = x"yes"; then
52467 cat >>confdefs.h <<\_ACEOF
52468 #define HAVE_FINITEL 1
52469 _ACEOF
52471 cat >>confdefs.h <<\_ACEOF
52472 #define HAVE_HYPOTL 1
52473 _ACEOF
52475 cat >>confdefs.h <<\_ACEOF
52476 #define HAVE_ISINFL 1
52477 _ACEOF
52479 cat >>confdefs.h <<\_ACEOF
52480 #define HAVE_ISNANL 1
52481 _ACEOF
52485 *-mingw32*)
52486 #os_include_dir="os/mingw32"
52490 for ac_header in sys/types.h locale.h float.h
52492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52494 echo "$as_me:$LINENO: checking for $ac_header" >&5
52495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52497 echo $ECHO_N "(cached) $ECHO_C" >&6
52499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52501 else
52502 # Is the header compilable?
52503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52505 cat >conftest.$ac_ext <<_ACEOF
52506 #line $LINENO "configure"
52507 /* confdefs.h. */
52508 _ACEOF
52509 cat confdefs.h >>conftest.$ac_ext
52510 cat >>conftest.$ac_ext <<_ACEOF
52511 /* end confdefs.h. */
52512 $ac_includes_default
52513 #include <$ac_header>
52514 _ACEOF
52515 rm -f conftest.$ac_objext
52516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52517 (eval $ac_compile) 2>&5
52518 ac_status=$?
52519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52520 (exit $ac_status); } &&
52521 { ac_try='test -s conftest.$ac_objext'
52522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52523 (eval $ac_try) 2>&5
52524 ac_status=$?
52525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52526 (exit $ac_status); }; }; then
52527 ac_header_compiler=yes
52528 else
52529 echo "$as_me: failed program was:" >&5
52530 sed 's/^/| /' conftest.$ac_ext >&5
52532 ac_header_compiler=no
52534 rm -f conftest.$ac_objext conftest.$ac_ext
52535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52536 echo "${ECHO_T}$ac_header_compiler" >&6
52538 # Is the header present?
52539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52541 cat >conftest.$ac_ext <<_ACEOF
52542 #line $LINENO "configure"
52543 /* confdefs.h. */
52544 _ACEOF
52545 cat confdefs.h >>conftest.$ac_ext
52546 cat >>conftest.$ac_ext <<_ACEOF
52547 /* end confdefs.h. */
52548 #include <$ac_header>
52549 _ACEOF
52550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52552 ac_status=$?
52553 grep -v '^ *+' conftest.er1 >conftest.err
52554 rm -f conftest.er1
52555 cat conftest.err >&5
52556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52557 (exit $ac_status); } >/dev/null; then
52558 if test -s conftest.err; then
52559 ac_cpp_err=$ac_c_preproc_warn_flag
52560 else
52561 ac_cpp_err=
52563 else
52564 ac_cpp_err=yes
52566 if test -z "$ac_cpp_err"; then
52567 ac_header_preproc=yes
52568 else
52569 echo "$as_me: failed program was:" >&5
52570 sed 's/^/| /' conftest.$ac_ext >&5
52572 ac_header_preproc=no
52574 rm -f conftest.err conftest.$ac_ext
52575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52576 echo "${ECHO_T}$ac_header_preproc" >&6
52578 # So? What about this header?
52579 case $ac_header_compiler:$ac_header_preproc in
52580 yes:no )
52581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52586 cat <<\_ASBOX
52587 ## ------------------------------------ ##
52588 ## Report this to bug-autoconf@gnu.org. ##
52589 ## ------------------------------------ ##
52590 _ASBOX
52592 sed "s/^/$as_me: WARNING: /" >&2
52594 no:yes )
52595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52602 cat <<\_ASBOX
52603 ## ------------------------------------ ##
52604 ## Report this to bug-autoconf@gnu.org. ##
52605 ## ------------------------------------ ##
52606 _ASBOX
52608 sed "s/^/$as_me: WARNING: /" >&2
52610 esac
52611 echo "$as_me:$LINENO: checking for $ac_header" >&5
52612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52614 echo $ECHO_N "(cached) $ECHO_C" >&6
52615 else
52616 eval "$as_ac_Header=$ac_header_preproc"
52618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52623 cat >>confdefs.h <<_ACEOF
52624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52625 _ACEOF
52629 done
52632 # If we're not using GNU ld, then there's no point in even trying these
52633 # tests. Check for that first. We should have already tested for gld
52634 # by now (in libtool), but require it now just to be safe...
52635 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
52636 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
52640 # The name set by libtool depends on the version of libtool. Shame on us
52641 # for depending on an impl detail, but c'est la vie. Older versions used
52642 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
52643 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
52644 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
52645 # set (hence we're using an older libtool), then set it.
52646 if test x${with_gnu_ld+set} != xset; then
52647 if test x${ac_cv_prog_gnu_ld+set} != xset; then
52648 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
52649 with_gnu_ld=no
52650 else
52651 with_gnu_ld=$ac_cv_prog_gnu_ld
52655 # Start by getting the version number. I think the libtool test already
52656 # does some of this, but throws away the result.
52658 ldver=`$LD --version 2>/dev/null | head -1 | \
52659 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
52661 glibcxx_gnu_ld_version=`echo $ldver | \
52662 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
52664 # Set --gc-sections.
52665 if test "$with_gnu_ld" = "notbroken"; then
52666 # GNU ld it is! Joy and bunny rabbits!
52668 # All these tests are for C++; save the language and the compiler flags.
52669 # Need to do this so that g++ won't try to link in libstdc++
52670 ac_test_CFLAGS="${CFLAGS+set}"
52671 ac_save_CFLAGS="$CFLAGS"
52672 CFLAGS='-x c++ -Wl,--gc-sections'
52674 # Check for -Wl,--gc-sections
52675 # XXX This test is broken at the moment, as symbols required for linking
52676 # are now in libsupc++ (not built yet). In addition, this test has
52677 # cored on solaris in the past. In addition, --gc-sections doesn't
52678 # really work at the moment (keeps on discarding used sections, first
52679 # .eh_frame and now some of the glibc sections for iconv).
52680 # Bzzzzt. Thanks for playing, maybe next time.
52681 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
52682 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
52683 if test "$cross_compiling" = yes; then
52684 ac_sectionLDflags=yes
52685 else
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. */
52694 int main(void)
52696 try { throw 1; }
52697 catch (...) { };
52698 return 0;
52701 _ACEOF
52702 rm -f conftest$ac_exeext
52703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52704 (eval $ac_link) 2>&5
52705 ac_status=$?
52706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52709 (eval $ac_try) 2>&5
52710 ac_status=$?
52711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52712 (exit $ac_status); }; }; then
52713 ac_sectionLDflags=yes
52714 else
52715 echo "$as_me: program exited with status $ac_status" >&5
52716 echo "$as_me: failed program was:" >&5
52717 sed 's/^/| /' conftest.$ac_ext >&5
52719 ( exit $ac_status )
52720 ac_sectionLDflags=no
52722 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52724 if test "$ac_test_CFLAGS" = set; then
52725 CFLAGS="$ac_save_CFLAGS"
52726 else
52727 # this is the suspicious part
52728 CFLAGS=''
52730 if test "$ac_sectionLDflags" = "yes"; then
52731 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
52733 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
52734 echo "${ECHO_T}$ac_sectionLDflags" >&6
52737 # Set linker optimization flags.
52738 if test x"$with_gnu_ld" = x"yes"; then
52739 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
52747 echo "$as_me:$LINENO: checking for main in -lm" >&5
52748 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
52749 if test "${ac_cv_lib_m_main+set}" = set; then
52750 echo $ECHO_N "(cached) $ECHO_C" >&6
52751 else
52752 ac_check_lib_save_LIBS=$LIBS
52753 LIBS="-lm $LIBS"
52754 if test x$gcc_no_link = xyes; then
52755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52757 { (exit 1); exit 1; }; }
52759 cat >conftest.$ac_ext <<_ACEOF
52760 #line $LINENO "configure"
52761 /* confdefs.h. */
52762 _ACEOF
52763 cat confdefs.h >>conftest.$ac_ext
52764 cat >>conftest.$ac_ext <<_ACEOF
52765 /* end confdefs.h. */
52769 main ()
52771 main ();
52773 return 0;
52775 _ACEOF
52776 rm -f conftest.$ac_objext conftest$ac_exeext
52777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52778 (eval $ac_link) 2>&5
52779 ac_status=$?
52780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52781 (exit $ac_status); } &&
52782 { ac_try='test -s conftest$ac_exeext'
52783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52784 (eval $ac_try) 2>&5
52785 ac_status=$?
52786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52787 (exit $ac_status); }; }; then
52788 ac_cv_lib_m_main=yes
52789 else
52790 echo "$as_me: failed program was:" >&5
52791 sed 's/^/| /' conftest.$ac_ext >&5
52793 ac_cv_lib_m_main=no
52795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52796 LIBS=$ac_check_lib_save_LIBS
52798 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
52799 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
52800 if test $ac_cv_lib_m_main = yes; then
52801 cat >>confdefs.h <<_ACEOF
52802 #define HAVE_LIBM 1
52803 _ACEOF
52805 LIBS="-lm $LIBS"
52811 for ac_func in nan copysignf
52813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52814 echo "$as_me:$LINENO: checking for $ac_func" >&5
52815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52816 if eval "test \"\${$as_ac_var+set}\" = set"; then
52817 echo $ECHO_N "(cached) $ECHO_C" >&6
52818 else
52819 if test x$gcc_no_link = xyes; then
52820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52822 { (exit 1); exit 1; }; }
52824 cat >conftest.$ac_ext <<_ACEOF
52825 #line $LINENO "configure"
52826 /* confdefs.h. */
52827 _ACEOF
52828 cat confdefs.h >>conftest.$ac_ext
52829 cat >>conftest.$ac_ext <<_ACEOF
52830 /* end confdefs.h. */
52831 /* System header to define __stub macros and hopefully few prototypes,
52832 which can conflict with char $ac_func (); below.
52833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52834 <limits.h> exists even on freestanding compilers. */
52835 #ifdef __STDC__
52836 # include <limits.h>
52837 #else
52838 # include <assert.h>
52839 #endif
52840 /* Override any gcc2 internal prototype to avoid an error. */
52841 #ifdef __cplusplus
52842 extern "C"
52844 #endif
52845 /* We use char because int might match the return type of a gcc2
52846 builtin and then its argument prototype would still apply. */
52847 char $ac_func ();
52848 /* The GNU C library defines this for functions which it implements
52849 to always fail with ENOSYS. Some functions are actually named
52850 something starting with __ and the normal name is an alias. */
52851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52852 choke me
52853 #else
52854 char (*f) () = $ac_func;
52855 #endif
52856 #ifdef __cplusplus
52858 #endif
52861 main ()
52863 return f != $ac_func;
52865 return 0;
52867 _ACEOF
52868 rm -f conftest.$ac_objext conftest$ac_exeext
52869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52870 (eval $ac_link) 2>&5
52871 ac_status=$?
52872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52873 (exit $ac_status); } &&
52874 { ac_try='test -s conftest$ac_exeext'
52875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52876 (eval $ac_try) 2>&5
52877 ac_status=$?
52878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52879 (exit $ac_status); }; }; then
52880 eval "$as_ac_var=yes"
52881 else
52882 echo "$as_me: failed program was:" >&5
52883 sed 's/^/| /' conftest.$ac_ext >&5
52885 eval "$as_ac_var=no"
52887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52891 if test `eval echo '${'$as_ac_var'}'` = yes; then
52892 cat >>confdefs.h <<_ACEOF
52893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52894 _ACEOF
52896 else
52897 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
52899 done
52903 for ac_func in __signbit
52905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52906 echo "$as_me:$LINENO: checking for $ac_func" >&5
52907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52908 if eval "test \"\${$as_ac_var+set}\" = set"; then
52909 echo $ECHO_N "(cached) $ECHO_C" >&6
52910 else
52911 if test x$gcc_no_link = xyes; then
52912 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52913 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52914 { (exit 1); exit 1; }; }
52916 cat >conftest.$ac_ext <<_ACEOF
52917 #line $LINENO "configure"
52918 /* confdefs.h. */
52919 _ACEOF
52920 cat confdefs.h >>conftest.$ac_ext
52921 cat >>conftest.$ac_ext <<_ACEOF
52922 /* end confdefs.h. */
52923 /* System header to define __stub macros and hopefully few prototypes,
52924 which can conflict with char $ac_func (); below.
52925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52926 <limits.h> exists even on freestanding compilers. */
52927 #ifdef __STDC__
52928 # include <limits.h>
52929 #else
52930 # include <assert.h>
52931 #endif
52932 /* Override any gcc2 internal prototype to avoid an error. */
52933 #ifdef __cplusplus
52934 extern "C"
52936 #endif
52937 /* We use char because int might match the return type of a gcc2
52938 builtin and then its argument prototype would still apply. */
52939 char $ac_func ();
52940 /* The GNU C library defines this for functions which it implements
52941 to always fail with ENOSYS. Some functions are actually named
52942 something starting with __ and the normal name is an alias. */
52943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52944 choke me
52945 #else
52946 char (*f) () = $ac_func;
52947 #endif
52948 #ifdef __cplusplus
52950 #endif
52953 main ()
52955 return f != $ac_func;
52957 return 0;
52959 _ACEOF
52960 rm -f conftest.$ac_objext conftest$ac_exeext
52961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52962 (eval $ac_link) 2>&5
52963 ac_status=$?
52964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52965 (exit $ac_status); } &&
52966 { ac_try='test -s conftest$ac_exeext'
52967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52968 (eval $ac_try) 2>&5
52969 ac_status=$?
52970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52971 (exit $ac_status); }; }; then
52972 eval "$as_ac_var=yes"
52973 else
52974 echo "$as_me: failed program was:" >&5
52975 sed 's/^/| /' conftest.$ac_ext >&5
52977 eval "$as_ac_var=no"
52979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52983 if test `eval echo '${'$as_ac_var'}'` = yes; then
52984 cat >>confdefs.h <<_ACEOF
52985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52986 _ACEOF
52988 else
52989 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
52991 done
52994 for ac_func in __signbitf
52996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52997 echo "$as_me:$LINENO: checking for $ac_func" >&5
52998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52999 if eval "test \"\${$as_ac_var+set}\" = set"; then
53000 echo $ECHO_N "(cached) $ECHO_C" >&6
53001 else
53002 if test x$gcc_no_link = xyes; then
53003 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53004 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53005 { (exit 1); exit 1; }; }
53007 cat >conftest.$ac_ext <<_ACEOF
53008 #line $LINENO "configure"
53009 /* confdefs.h. */
53010 _ACEOF
53011 cat confdefs.h >>conftest.$ac_ext
53012 cat >>conftest.$ac_ext <<_ACEOF
53013 /* end confdefs.h. */
53014 /* System header to define __stub macros and hopefully few prototypes,
53015 which can conflict with char $ac_func (); below.
53016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53017 <limits.h> exists even on freestanding compilers. */
53018 #ifdef __STDC__
53019 # include <limits.h>
53020 #else
53021 # include <assert.h>
53022 #endif
53023 /* Override any gcc2 internal prototype to avoid an error. */
53024 #ifdef __cplusplus
53025 extern "C"
53027 #endif
53028 /* We use char because int might match the return type of a gcc2
53029 builtin and then its argument prototype would still apply. */
53030 char $ac_func ();
53031 /* The GNU C library defines this for functions which it implements
53032 to always fail with ENOSYS. Some functions are actually named
53033 something starting with __ and the normal name is an alias. */
53034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53035 choke me
53036 #else
53037 char (*f) () = $ac_func;
53038 #endif
53039 #ifdef __cplusplus
53041 #endif
53044 main ()
53046 return f != $ac_func;
53048 return 0;
53050 _ACEOF
53051 rm -f conftest.$ac_objext conftest$ac_exeext
53052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53053 (eval $ac_link) 2>&5
53054 ac_status=$?
53055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53056 (exit $ac_status); } &&
53057 { ac_try='test -s conftest$ac_exeext'
53058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53059 (eval $ac_try) 2>&5
53060 ac_status=$?
53061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53062 (exit $ac_status); }; }; then
53063 eval "$as_ac_var=yes"
53064 else
53065 echo "$as_me: failed program was:" >&5
53066 sed 's/^/| /' conftest.$ac_ext >&5
53068 eval "$as_ac_var=no"
53070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53074 if test `eval echo '${'$as_ac_var'}'` = yes; then
53075 cat >>confdefs.h <<_ACEOF
53076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53077 _ACEOF
53079 else
53080 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53082 done
53085 if test x$ac_cv_func_copysignl = x"yes"; then
53087 for ac_func in __signbitl
53089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53090 echo "$as_me:$LINENO: checking for $ac_func" >&5
53091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53092 if eval "test \"\${$as_ac_var+set}\" = set"; then
53093 echo $ECHO_N "(cached) $ECHO_C" >&6
53094 else
53095 if test x$gcc_no_link = xyes; then
53096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53098 { (exit 1); exit 1; }; }
53100 cat >conftest.$ac_ext <<_ACEOF
53101 #line $LINENO "configure"
53102 /* confdefs.h. */
53103 _ACEOF
53104 cat confdefs.h >>conftest.$ac_ext
53105 cat >>conftest.$ac_ext <<_ACEOF
53106 /* end confdefs.h. */
53107 /* System header to define __stub macros and hopefully few prototypes,
53108 which can conflict with char $ac_func (); below.
53109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53110 <limits.h> exists even on freestanding compilers. */
53111 #ifdef __STDC__
53112 # include <limits.h>
53113 #else
53114 # include <assert.h>
53115 #endif
53116 /* Override any gcc2 internal prototype to avoid an error. */
53117 #ifdef __cplusplus
53118 extern "C"
53120 #endif
53121 /* We use char because int might match the return type of a gcc2
53122 builtin and then its argument prototype would still apply. */
53123 char $ac_func ();
53124 /* The GNU C library defines this for functions which it implements
53125 to always fail with ENOSYS. Some functions are actually named
53126 something starting with __ and the normal name is an alias. */
53127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53128 choke me
53129 #else
53130 char (*f) () = $ac_func;
53131 #endif
53132 #ifdef __cplusplus
53134 #endif
53137 main ()
53139 return f != $ac_func;
53141 return 0;
53143 _ACEOF
53144 rm -f conftest.$ac_objext conftest$ac_exeext
53145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53146 (eval $ac_link) 2>&5
53147 ac_status=$?
53148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53149 (exit $ac_status); } &&
53150 { ac_try='test -s conftest$ac_exeext'
53151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53152 (eval $ac_try) 2>&5
53153 ac_status=$?
53154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53155 (exit $ac_status); }; }; then
53156 eval "$as_ac_var=yes"
53157 else
53158 echo "$as_me: failed program was:" >&5
53159 sed 's/^/| /' conftest.$ac_ext >&5
53161 eval "$as_ac_var=no"
53163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53167 if test `eval echo '${'$as_ac_var'}'` = yes; then
53168 cat >>confdefs.h <<_ACEOF
53169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53170 _ACEOF
53172 else
53173 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53175 done
53179 # XXX Review this. Nothing uses it.
53180 if test -n "$LIBMATHOBJS"; then
53181 need_libmath=yes
53186 # Test wchar.h for mbstate_t, which is needed for char_traits and
53187 # others even if wchar_t support is not on.
53188 echo "$as_me:$LINENO: checking for mbstate_t" >&5
53189 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
53190 cat >conftest.$ac_ext <<_ACEOF
53191 #line $LINENO "configure"
53192 /* confdefs.h. */
53193 _ACEOF
53194 cat confdefs.h >>conftest.$ac_ext
53195 cat >>conftest.$ac_ext <<_ACEOF
53196 /* end confdefs.h. */
53197 #include <wchar.h>
53199 main ()
53201 mbstate_t teststate;
53203 return 0;
53205 _ACEOF
53206 rm -f conftest.$ac_objext
53207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53208 (eval $ac_compile) 2>&5
53209 ac_status=$?
53210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53211 (exit $ac_status); } &&
53212 { ac_try='test -s conftest.$ac_objext'
53213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53214 (eval $ac_try) 2>&5
53215 ac_status=$?
53216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53217 (exit $ac_status); }; }; then
53218 have_mbstate_t=yes
53219 else
53220 echo "$as_me: failed program was:" >&5
53221 sed 's/^/| /' conftest.$ac_ext >&5
53223 have_mbstate_t=no
53225 rm -f conftest.$ac_objext conftest.$ac_ext
53226 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
53227 echo "${ECHO_T}$have_mbstate_t" >&6
53228 if test x"$have_mbstate_t" = xyes; then
53229 cat >>confdefs.h <<\_ACEOF
53230 #define HAVE_MBSTATE_T 1
53231 _ACEOF
53235 # Sanity check for existence of ISO C99 headers for extended encoding.
53237 for ac_header in wchar.h
53239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53241 echo "$as_me:$LINENO: checking for $ac_header" >&5
53242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53244 echo $ECHO_N "(cached) $ECHO_C" >&6
53246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53248 else
53249 # Is the header compilable?
53250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53252 cat >conftest.$ac_ext <<_ACEOF
53253 #line $LINENO "configure"
53254 /* confdefs.h. */
53255 _ACEOF
53256 cat confdefs.h >>conftest.$ac_ext
53257 cat >>conftest.$ac_ext <<_ACEOF
53258 /* end confdefs.h. */
53259 $ac_includes_default
53260 #include <$ac_header>
53261 _ACEOF
53262 rm -f conftest.$ac_objext
53263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53264 (eval $ac_compile) 2>&5
53265 ac_status=$?
53266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53267 (exit $ac_status); } &&
53268 { ac_try='test -s conftest.$ac_objext'
53269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53270 (eval $ac_try) 2>&5
53271 ac_status=$?
53272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53273 (exit $ac_status); }; }; then
53274 ac_header_compiler=yes
53275 else
53276 echo "$as_me: failed program was:" >&5
53277 sed 's/^/| /' conftest.$ac_ext >&5
53279 ac_header_compiler=no
53281 rm -f conftest.$ac_objext conftest.$ac_ext
53282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53283 echo "${ECHO_T}$ac_header_compiler" >&6
53285 # Is the header present?
53286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53288 cat >conftest.$ac_ext <<_ACEOF
53289 #line $LINENO "configure"
53290 /* confdefs.h. */
53291 _ACEOF
53292 cat confdefs.h >>conftest.$ac_ext
53293 cat >>conftest.$ac_ext <<_ACEOF
53294 /* end confdefs.h. */
53295 #include <$ac_header>
53296 _ACEOF
53297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53299 ac_status=$?
53300 grep -v '^ *+' conftest.er1 >conftest.err
53301 rm -f conftest.er1
53302 cat conftest.err >&5
53303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53304 (exit $ac_status); } >/dev/null; then
53305 if test -s conftest.err; then
53306 ac_cpp_err=$ac_c_preproc_warn_flag
53307 else
53308 ac_cpp_err=
53310 else
53311 ac_cpp_err=yes
53313 if test -z "$ac_cpp_err"; then
53314 ac_header_preproc=yes
53315 else
53316 echo "$as_me: failed program was:" >&5
53317 sed 's/^/| /' conftest.$ac_ext >&5
53319 ac_header_preproc=no
53321 rm -f conftest.err conftest.$ac_ext
53322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53323 echo "${ECHO_T}$ac_header_preproc" >&6
53325 # So? What about this header?
53326 case $ac_header_compiler:$ac_header_preproc in
53327 yes:no )
53328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53333 cat <<\_ASBOX
53334 ## ------------------------------------ ##
53335 ## Report this to bug-autoconf@gnu.org. ##
53336 ## ------------------------------------ ##
53337 _ASBOX
53339 sed "s/^/$as_me: WARNING: /" >&2
53341 no:yes )
53342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53349 cat <<\_ASBOX
53350 ## ------------------------------------ ##
53351 ## Report this to bug-autoconf@gnu.org. ##
53352 ## ------------------------------------ ##
53353 _ASBOX
53355 sed "s/^/$as_me: WARNING: /" >&2
53357 esac
53358 echo "$as_me:$LINENO: checking for $ac_header" >&5
53359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53361 echo $ECHO_N "(cached) $ECHO_C" >&6
53362 else
53363 eval "$as_ac_Header=$ac_header_preproc"
53365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53370 cat >>confdefs.h <<_ACEOF
53371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53372 _ACEOF
53373 ac_has_wchar_h=yes
53374 else
53375 ac_has_wchar_h=no
53378 done
53381 for ac_header in wctype.h
53383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53385 echo "$as_me:$LINENO: checking for $ac_header" >&5
53386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53388 echo $ECHO_N "(cached) $ECHO_C" >&6
53390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53392 else
53393 # Is the header compilable?
53394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53396 cat >conftest.$ac_ext <<_ACEOF
53397 #line $LINENO "configure"
53398 /* confdefs.h. */
53399 _ACEOF
53400 cat confdefs.h >>conftest.$ac_ext
53401 cat >>conftest.$ac_ext <<_ACEOF
53402 /* end confdefs.h. */
53403 $ac_includes_default
53404 #include <$ac_header>
53405 _ACEOF
53406 rm -f conftest.$ac_objext
53407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53408 (eval $ac_compile) 2>&5
53409 ac_status=$?
53410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53411 (exit $ac_status); } &&
53412 { ac_try='test -s conftest.$ac_objext'
53413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53414 (eval $ac_try) 2>&5
53415 ac_status=$?
53416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53417 (exit $ac_status); }; }; then
53418 ac_header_compiler=yes
53419 else
53420 echo "$as_me: failed program was:" >&5
53421 sed 's/^/| /' conftest.$ac_ext >&5
53423 ac_header_compiler=no
53425 rm -f conftest.$ac_objext conftest.$ac_ext
53426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53427 echo "${ECHO_T}$ac_header_compiler" >&6
53429 # Is the header present?
53430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53432 cat >conftest.$ac_ext <<_ACEOF
53433 #line $LINENO "configure"
53434 /* confdefs.h. */
53435 _ACEOF
53436 cat confdefs.h >>conftest.$ac_ext
53437 cat >>conftest.$ac_ext <<_ACEOF
53438 /* end confdefs.h. */
53439 #include <$ac_header>
53440 _ACEOF
53441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53443 ac_status=$?
53444 grep -v '^ *+' conftest.er1 >conftest.err
53445 rm -f conftest.er1
53446 cat conftest.err >&5
53447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53448 (exit $ac_status); } >/dev/null; then
53449 if test -s conftest.err; then
53450 ac_cpp_err=$ac_c_preproc_warn_flag
53451 else
53452 ac_cpp_err=
53454 else
53455 ac_cpp_err=yes
53457 if test -z "$ac_cpp_err"; then
53458 ac_header_preproc=yes
53459 else
53460 echo "$as_me: failed program was:" >&5
53461 sed 's/^/| /' conftest.$ac_ext >&5
53463 ac_header_preproc=no
53465 rm -f conftest.err conftest.$ac_ext
53466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53467 echo "${ECHO_T}$ac_header_preproc" >&6
53469 # So? What about this header?
53470 case $ac_header_compiler:$ac_header_preproc in
53471 yes:no )
53472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53477 cat <<\_ASBOX
53478 ## ------------------------------------ ##
53479 ## Report this to bug-autoconf@gnu.org. ##
53480 ## ------------------------------------ ##
53481 _ASBOX
53483 sed "s/^/$as_me: WARNING: /" >&2
53485 no:yes )
53486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53493 cat <<\_ASBOX
53494 ## ------------------------------------ ##
53495 ## Report this to bug-autoconf@gnu.org. ##
53496 ## ------------------------------------ ##
53497 _ASBOX
53499 sed "s/^/$as_me: WARNING: /" >&2
53501 esac
53502 echo "$as_me:$LINENO: checking for $ac_header" >&5
53503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53505 echo $ECHO_N "(cached) $ECHO_C" >&6
53506 else
53507 eval "$as_ac_Header=$ac_header_preproc"
53509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53514 cat >>confdefs.h <<_ACEOF
53515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53516 _ACEOF
53517 ac_has_wctype_h=yes
53518 else
53519 ac_has_wctype_h=no
53522 done
53525 # Only continue checking if the ISO C99 headers exist and support is on.
53526 if test x"$ac_has_wchar_h" = xyes &&
53527 test x"$ac_has_wctype_h" = xyes &&
53528 test x"$enable_c_mbchar" != xno; then
53530 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
53531 # numeric_limits can instantiate type_traits<wchar_t>
53532 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
53533 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
53534 cat >conftest.$ac_ext <<_ACEOF
53535 #line $LINENO "configure"
53536 /* confdefs.h. */
53537 _ACEOF
53538 cat confdefs.h >>conftest.$ac_ext
53539 cat >>conftest.$ac_ext <<_ACEOF
53540 /* end confdefs.h. */
53541 #include <wchar.h>
53543 main ()
53545 int i = WCHAR_MIN; int j = WCHAR_MAX;
53547 return 0;
53549 _ACEOF
53550 rm -f conftest.$ac_objext
53551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53552 (eval $ac_compile) 2>&5
53553 ac_status=$?
53554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53555 (exit $ac_status); } &&
53556 { ac_try='test -s conftest.$ac_objext'
53557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53558 (eval $ac_try) 2>&5
53559 ac_status=$?
53560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53561 (exit $ac_status); }; }; then
53562 has_wchar_minmax=yes
53563 else
53564 echo "$as_me: failed program was:" >&5
53565 sed 's/^/| /' conftest.$ac_ext >&5
53567 has_wchar_minmax=no
53569 rm -f conftest.$ac_objext conftest.$ac_ext
53570 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
53571 echo "${ECHO_T}$has_wchar_minmax" >&6
53573 # Test wchar.h for WEOF, which is what we use to determine whether
53574 # to specialize for char_traits<wchar_t> or not.
53575 echo "$as_me:$LINENO: checking for WEOF" >&5
53576 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
53577 cat >conftest.$ac_ext <<_ACEOF
53578 #line $LINENO "configure"
53579 /* confdefs.h. */
53580 _ACEOF
53581 cat confdefs.h >>conftest.$ac_ext
53582 cat >>conftest.$ac_ext <<_ACEOF
53583 /* end confdefs.h. */
53585 #include <wchar.h>
53586 #include <stddef.h>
53588 main ()
53590 wint_t i = WEOF;
53592 return 0;
53594 _ACEOF
53595 rm -f conftest.$ac_objext
53596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53597 (eval $ac_compile) 2>&5
53598 ac_status=$?
53599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53600 (exit $ac_status); } &&
53601 { ac_try='test -s conftest.$ac_objext'
53602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53603 (eval $ac_try) 2>&5
53604 ac_status=$?
53605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53606 (exit $ac_status); }; }; then
53607 has_weof=yes
53608 else
53609 echo "$as_me: failed program was:" >&5
53610 sed 's/^/| /' conftest.$ac_ext >&5
53612 has_weof=no
53614 rm -f conftest.$ac_objext conftest.$ac_ext
53615 echo "$as_me:$LINENO: result: $has_weof" >&5
53616 echo "${ECHO_T}$has_weof" >&6
53618 # Tests for wide character functions used in char_traits<wchar_t>.
53619 ac_wfuncs=yes
53626 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
53628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53629 echo "$as_me:$LINENO: checking for $ac_func" >&5
53630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53631 if eval "test \"\${$as_ac_var+set}\" = set"; then
53632 echo $ECHO_N "(cached) $ECHO_C" >&6
53633 else
53634 if test x$gcc_no_link = xyes; then
53635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53637 { (exit 1); exit 1; }; }
53639 cat >conftest.$ac_ext <<_ACEOF
53640 #line $LINENO "configure"
53641 /* confdefs.h. */
53642 _ACEOF
53643 cat confdefs.h >>conftest.$ac_ext
53644 cat >>conftest.$ac_ext <<_ACEOF
53645 /* end confdefs.h. */
53646 /* System header to define __stub macros and hopefully few prototypes,
53647 which can conflict with char $ac_func (); below.
53648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53649 <limits.h> exists even on freestanding compilers. */
53650 #ifdef __STDC__
53651 # include <limits.h>
53652 #else
53653 # include <assert.h>
53654 #endif
53655 /* Override any gcc2 internal prototype to avoid an error. */
53656 #ifdef __cplusplus
53657 extern "C"
53659 #endif
53660 /* We use char because int might match the return type of a gcc2
53661 builtin and then its argument prototype would still apply. */
53662 char $ac_func ();
53663 /* The GNU C library defines this for functions which it implements
53664 to always fail with ENOSYS. Some functions are actually named
53665 something starting with __ and the normal name is an alias. */
53666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53667 choke me
53668 #else
53669 char (*f) () = $ac_func;
53670 #endif
53671 #ifdef __cplusplus
53673 #endif
53676 main ()
53678 return f != $ac_func;
53680 return 0;
53682 _ACEOF
53683 rm -f conftest.$ac_objext conftest$ac_exeext
53684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53685 (eval $ac_link) 2>&5
53686 ac_status=$?
53687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53688 (exit $ac_status); } &&
53689 { ac_try='test -s conftest$ac_exeext'
53690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53691 (eval $ac_try) 2>&5
53692 ac_status=$?
53693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53694 (exit $ac_status); }; }; then
53695 eval "$as_ac_var=yes"
53696 else
53697 echo "$as_me: failed program was:" >&5
53698 sed 's/^/| /' conftest.$ac_ext >&5
53700 eval "$as_ac_var=no"
53702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53706 if test `eval echo '${'$as_ac_var'}'` = yes; then
53707 cat >>confdefs.h <<_ACEOF
53708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53709 _ACEOF
53711 else
53712 ac_wfuncs=no
53714 done
53717 # Checks for names injected into std:: by the c_std headers.
53768 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
53769 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
53770 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
53771 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
53772 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
53773 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
53775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53776 echo "$as_me:$LINENO: checking for $ac_func" >&5
53777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53778 if eval "test \"\${$as_ac_var+set}\" = set"; then
53779 echo $ECHO_N "(cached) $ECHO_C" >&6
53780 else
53781 if test x$gcc_no_link = xyes; then
53782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53784 { (exit 1); exit 1; }; }
53786 cat >conftest.$ac_ext <<_ACEOF
53787 #line $LINENO "configure"
53788 /* confdefs.h. */
53789 _ACEOF
53790 cat confdefs.h >>conftest.$ac_ext
53791 cat >>conftest.$ac_ext <<_ACEOF
53792 /* end confdefs.h. */
53793 /* System header to define __stub macros and hopefully few prototypes,
53794 which can conflict with char $ac_func (); below.
53795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53796 <limits.h> exists even on freestanding compilers. */
53797 #ifdef __STDC__
53798 # include <limits.h>
53799 #else
53800 # include <assert.h>
53801 #endif
53802 /* Override any gcc2 internal prototype to avoid an error. */
53803 #ifdef __cplusplus
53804 extern "C"
53806 #endif
53807 /* We use char because int might match the return type of a gcc2
53808 builtin and then its argument prototype would still apply. */
53809 char $ac_func ();
53810 /* The GNU C library defines this for functions which it implements
53811 to always fail with ENOSYS. Some functions are actually named
53812 something starting with __ and the normal name is an alias. */
53813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53814 choke me
53815 #else
53816 char (*f) () = $ac_func;
53817 #endif
53818 #ifdef __cplusplus
53820 #endif
53823 main ()
53825 return f != $ac_func;
53827 return 0;
53829 _ACEOF
53830 rm -f conftest.$ac_objext conftest$ac_exeext
53831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53832 (eval $ac_link) 2>&5
53833 ac_status=$?
53834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53835 (exit $ac_status); } &&
53836 { ac_try='test -s conftest$ac_exeext'
53837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53838 (eval $ac_try) 2>&5
53839 ac_status=$?
53840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53841 (exit $ac_status); }; }; then
53842 eval "$as_ac_var=yes"
53843 else
53844 echo "$as_me: failed program was:" >&5
53845 sed 's/^/| /' conftest.$ac_ext >&5
53847 eval "$as_ac_var=no"
53849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53853 if test `eval echo '${'$as_ac_var'}'` = yes; then
53854 cat >>confdefs.h <<_ACEOF
53855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53856 _ACEOF
53858 else
53859 ac_wfuncs=no
53861 done
53864 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
53865 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
53866 if test x"$has_weof" = xyes &&
53867 test x"$has_wchar_minmax" = xyes &&
53868 test x"$ac_wfuncs" = xyes;
53869 then
53870 ac_isoC99_wchar_t=yes
53871 else
53872 ac_isoC99_wchar_t=no
53874 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
53875 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
53877 # Use iconv for wchar_t to char conversions. As such, check for
53878 # X/Open Portability Guide, version 2 features (XPG2).
53879 if test "${ac_cv_header_iconv_h+set}" = set; then
53880 echo "$as_me:$LINENO: checking for iconv.h" >&5
53881 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
53882 if test "${ac_cv_header_iconv_h+set}" = set; then
53883 echo $ECHO_N "(cached) $ECHO_C" >&6
53885 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
53886 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
53887 else
53888 # Is the header compilable?
53889 echo "$as_me:$LINENO: checking iconv.h usability" >&5
53890 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
53891 cat >conftest.$ac_ext <<_ACEOF
53892 #line $LINENO "configure"
53893 /* confdefs.h. */
53894 _ACEOF
53895 cat confdefs.h >>conftest.$ac_ext
53896 cat >>conftest.$ac_ext <<_ACEOF
53897 /* end confdefs.h. */
53898 $ac_includes_default
53899 #include <iconv.h>
53900 _ACEOF
53901 rm -f conftest.$ac_objext
53902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53903 (eval $ac_compile) 2>&5
53904 ac_status=$?
53905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53906 (exit $ac_status); } &&
53907 { ac_try='test -s conftest.$ac_objext'
53908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53909 (eval $ac_try) 2>&5
53910 ac_status=$?
53911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53912 (exit $ac_status); }; }; then
53913 ac_header_compiler=yes
53914 else
53915 echo "$as_me: failed program was:" >&5
53916 sed 's/^/| /' conftest.$ac_ext >&5
53918 ac_header_compiler=no
53920 rm -f conftest.$ac_objext conftest.$ac_ext
53921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53922 echo "${ECHO_T}$ac_header_compiler" >&6
53924 # Is the header present?
53925 echo "$as_me:$LINENO: checking iconv.h presence" >&5
53926 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
53927 cat >conftest.$ac_ext <<_ACEOF
53928 #line $LINENO "configure"
53929 /* confdefs.h. */
53930 _ACEOF
53931 cat confdefs.h >>conftest.$ac_ext
53932 cat >>conftest.$ac_ext <<_ACEOF
53933 /* end confdefs.h. */
53934 #include <iconv.h>
53935 _ACEOF
53936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53938 ac_status=$?
53939 grep -v '^ *+' conftest.er1 >conftest.err
53940 rm -f conftest.er1
53941 cat conftest.err >&5
53942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53943 (exit $ac_status); } >/dev/null; then
53944 if test -s conftest.err; then
53945 ac_cpp_err=$ac_c_preproc_warn_flag
53946 else
53947 ac_cpp_err=
53949 else
53950 ac_cpp_err=yes
53952 if test -z "$ac_cpp_err"; then
53953 ac_header_preproc=yes
53954 else
53955 echo "$as_me: failed program was:" >&5
53956 sed 's/^/| /' conftest.$ac_ext >&5
53958 ac_header_preproc=no
53960 rm -f conftest.err conftest.$ac_ext
53961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53962 echo "${ECHO_T}$ac_header_preproc" >&6
53964 # So? What about this header?
53965 case $ac_header_compiler:$ac_header_preproc in
53966 yes:no )
53967 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
53968 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53969 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
53970 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
53972 cat <<\_ASBOX
53973 ## ------------------------------------ ##
53974 ## Report this to bug-autoconf@gnu.org. ##
53975 ## ------------------------------------ ##
53976 _ASBOX
53978 sed "s/^/$as_me: WARNING: /" >&2
53980 no:yes )
53981 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
53982 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
53983 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
53984 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
53985 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
53986 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
53988 cat <<\_ASBOX
53989 ## ------------------------------------ ##
53990 ## Report this to bug-autoconf@gnu.org. ##
53991 ## ------------------------------------ ##
53992 _ASBOX
53994 sed "s/^/$as_me: WARNING: /" >&2
53996 esac
53997 echo "$as_me:$LINENO: checking for iconv.h" >&5
53998 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
53999 if test "${ac_cv_header_iconv_h+set}" = set; then
54000 echo $ECHO_N "(cached) $ECHO_C" >&6
54001 else
54002 ac_cv_header_iconv_h=$ac_header_preproc
54004 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54005 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54008 if test $ac_cv_header_iconv_h = yes; then
54009 ac_has_iconv_h=yes
54010 else
54011 ac_has_iconv_h=no
54015 if test "${ac_cv_header_langinfo_h+set}" = set; then
54016 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54017 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54018 if test "${ac_cv_header_langinfo_h+set}" = set; then
54019 echo $ECHO_N "(cached) $ECHO_C" >&6
54021 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54022 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54023 else
54024 # Is the header compilable?
54025 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
54026 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
54027 cat >conftest.$ac_ext <<_ACEOF
54028 #line $LINENO "configure"
54029 /* confdefs.h. */
54030 _ACEOF
54031 cat confdefs.h >>conftest.$ac_ext
54032 cat >>conftest.$ac_ext <<_ACEOF
54033 /* end confdefs.h. */
54034 $ac_includes_default
54035 #include <langinfo.h>
54036 _ACEOF
54037 rm -f conftest.$ac_objext
54038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54039 (eval $ac_compile) 2>&5
54040 ac_status=$?
54041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54042 (exit $ac_status); } &&
54043 { ac_try='test -s conftest.$ac_objext'
54044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54045 (eval $ac_try) 2>&5
54046 ac_status=$?
54047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54048 (exit $ac_status); }; }; then
54049 ac_header_compiler=yes
54050 else
54051 echo "$as_me: failed program was:" >&5
54052 sed 's/^/| /' conftest.$ac_ext >&5
54054 ac_header_compiler=no
54056 rm -f conftest.$ac_objext conftest.$ac_ext
54057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54058 echo "${ECHO_T}$ac_header_compiler" >&6
54060 # Is the header present?
54061 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
54062 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
54063 cat >conftest.$ac_ext <<_ACEOF
54064 #line $LINENO "configure"
54065 /* confdefs.h. */
54066 _ACEOF
54067 cat confdefs.h >>conftest.$ac_ext
54068 cat >>conftest.$ac_ext <<_ACEOF
54069 /* end confdefs.h. */
54070 #include <langinfo.h>
54071 _ACEOF
54072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54074 ac_status=$?
54075 grep -v '^ *+' conftest.er1 >conftest.err
54076 rm -f conftest.er1
54077 cat conftest.err >&5
54078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54079 (exit $ac_status); } >/dev/null; then
54080 if test -s conftest.err; then
54081 ac_cpp_err=$ac_c_preproc_warn_flag
54082 else
54083 ac_cpp_err=
54085 else
54086 ac_cpp_err=yes
54088 if test -z "$ac_cpp_err"; then
54089 ac_header_preproc=yes
54090 else
54091 echo "$as_me: failed program was:" >&5
54092 sed 's/^/| /' conftest.$ac_ext >&5
54094 ac_header_preproc=no
54096 rm -f conftest.err conftest.$ac_ext
54097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54098 echo "${ECHO_T}$ac_header_preproc" >&6
54100 # So? What about this header?
54101 case $ac_header_compiler:$ac_header_preproc in
54102 yes:no )
54103 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54104 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54105 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54106 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54108 cat <<\_ASBOX
54109 ## ------------------------------------ ##
54110 ## Report this to bug-autoconf@gnu.org. ##
54111 ## ------------------------------------ ##
54112 _ASBOX
54114 sed "s/^/$as_me: WARNING: /" >&2
54116 no:yes )
54117 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
54118 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
54119 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
54120 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
54121 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54122 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54124 cat <<\_ASBOX
54125 ## ------------------------------------ ##
54126 ## Report this to bug-autoconf@gnu.org. ##
54127 ## ------------------------------------ ##
54128 _ASBOX
54130 sed "s/^/$as_me: WARNING: /" >&2
54132 esac
54133 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54134 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54135 if test "${ac_cv_header_langinfo_h+set}" = set; then
54136 echo $ECHO_N "(cached) $ECHO_C" >&6
54137 else
54138 ac_cv_header_langinfo_h=$ac_header_preproc
54140 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54141 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54144 if test $ac_cv_header_langinfo_h = yes; then
54145 ac_has_langinfo_h=yes
54146 else
54147 ac_has_langinfo_h=no
54152 # Check for existence of libiconv.a providing XPG2 wchar_t support.
54153 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
54154 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
54155 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
54156 echo $ECHO_N "(cached) $ECHO_C" >&6
54157 else
54158 ac_check_lib_save_LIBS=$LIBS
54159 LIBS="-liconv $LIBS"
54160 if test x$gcc_no_link = xyes; then
54161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54163 { (exit 1); exit 1; }; }
54165 cat >conftest.$ac_ext <<_ACEOF
54166 #line $LINENO "configure"
54167 /* confdefs.h. */
54168 _ACEOF
54169 cat confdefs.h >>conftest.$ac_ext
54170 cat >>conftest.$ac_ext <<_ACEOF
54171 /* end confdefs.h. */
54173 /* Override any gcc2 internal prototype to avoid an error. */
54174 #ifdef __cplusplus
54175 extern "C"
54176 #endif
54177 /* We use char because int might match the return type of a gcc2
54178 builtin and then its argument prototype would still apply. */
54179 char iconv ();
54181 main ()
54183 iconv ();
54185 return 0;
54187 _ACEOF
54188 rm -f conftest.$ac_objext conftest$ac_exeext
54189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54190 (eval $ac_link) 2>&5
54191 ac_status=$?
54192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54193 (exit $ac_status); } &&
54194 { ac_try='test -s conftest$ac_exeext'
54195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54196 (eval $ac_try) 2>&5
54197 ac_status=$?
54198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54199 (exit $ac_status); }; }; then
54200 ac_cv_lib_iconv_iconv=yes
54201 else
54202 echo "$as_me: failed program was:" >&5
54203 sed 's/^/| /' conftest.$ac_ext >&5
54205 ac_cv_lib_iconv_iconv=no
54207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54208 LIBS=$ac_check_lib_save_LIBS
54210 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
54211 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
54212 if test $ac_cv_lib_iconv_iconv = yes; then
54213 libiconv="-liconv"
54216 ac_save_LIBS="$LIBS"
54217 LIBS="$LIBS $libiconv"
54223 for ac_func in iconv_open iconv_close iconv nl_langinfo
54225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54226 echo "$as_me:$LINENO: checking for $ac_func" >&5
54227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54228 if eval "test \"\${$as_ac_var+set}\" = set"; then
54229 echo $ECHO_N "(cached) $ECHO_C" >&6
54230 else
54231 if test x$gcc_no_link = xyes; then
54232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54234 { (exit 1); exit 1; }; }
54236 cat >conftest.$ac_ext <<_ACEOF
54237 #line $LINENO "configure"
54238 /* confdefs.h. */
54239 _ACEOF
54240 cat confdefs.h >>conftest.$ac_ext
54241 cat >>conftest.$ac_ext <<_ACEOF
54242 /* end confdefs.h. */
54243 /* System header to define __stub macros and hopefully few prototypes,
54244 which can conflict with char $ac_func (); below.
54245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54246 <limits.h> exists even on freestanding compilers. */
54247 #ifdef __STDC__
54248 # include <limits.h>
54249 #else
54250 # include <assert.h>
54251 #endif
54252 /* Override any gcc2 internal prototype to avoid an error. */
54253 #ifdef __cplusplus
54254 extern "C"
54256 #endif
54257 /* We use char because int might match the return type of a gcc2
54258 builtin and then its argument prototype would still apply. */
54259 char $ac_func ();
54260 /* The GNU C library defines this for functions which it implements
54261 to always fail with ENOSYS. Some functions are actually named
54262 something starting with __ and the normal name is an alias. */
54263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54264 choke me
54265 #else
54266 char (*f) () = $ac_func;
54267 #endif
54268 #ifdef __cplusplus
54270 #endif
54273 main ()
54275 return f != $ac_func;
54277 return 0;
54279 _ACEOF
54280 rm -f conftest.$ac_objext conftest$ac_exeext
54281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54282 (eval $ac_link) 2>&5
54283 ac_status=$?
54284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54285 (exit $ac_status); } &&
54286 { ac_try='test -s conftest$ac_exeext'
54287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54288 (eval $ac_try) 2>&5
54289 ac_status=$?
54290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54291 (exit $ac_status); }; }; then
54292 eval "$as_ac_var=yes"
54293 else
54294 echo "$as_me: failed program was:" >&5
54295 sed 's/^/| /' conftest.$ac_ext >&5
54297 eval "$as_ac_var=no"
54299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54303 if test `eval echo '${'$as_ac_var'}'` = yes; then
54304 cat >>confdefs.h <<_ACEOF
54305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54306 _ACEOF
54307 ac_XPG2funcs=yes
54308 else
54309 ac_XPG2funcs=no
54311 done
54314 LIBS="$ac_save_LIBS"
54316 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
54317 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
54318 if test x"$ac_has_iconv_h" = xyes &&
54319 test x"$ac_has_langinfo_h" = xyes &&
54320 test x"$ac_XPG2funcs" = xyes;
54321 then
54322 ac_XPG2_wchar_t=yes
54323 else
54324 ac_XPG2_wchar_t=no
54326 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
54327 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
54329 # At the moment, only enable wchar_t specializations if all the
54330 # above support is present.
54331 if test x"$ac_isoC99_wchar_t" = xyes &&
54332 test x"$ac_XPG2_wchar_t" = xyes;
54333 then
54334 cat >>confdefs.h <<\_ACEOF
54335 #define _GLIBCXX_USE_WCHAR_T 1
54336 _ACEOF
54338 enable_wchar_t=yes
54341 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
54342 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
54343 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
54344 echo "${ECHO_T}$enable_wchar_t" >&6
54347 *-netbsd*)
54348 #os_include_dir="os/bsd/netbsd"
54361 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
54362 machine/endian.h machine/param.h sys/machine.h sys/types.h \
54363 fp.h locale.h float.h inttypes.h
54365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54367 echo "$as_me:$LINENO: checking for $ac_header" >&5
54368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54370 echo $ECHO_N "(cached) $ECHO_C" >&6
54372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54374 else
54375 # Is the header compilable?
54376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54378 cat >conftest.$ac_ext <<_ACEOF
54379 #line $LINENO "configure"
54380 /* confdefs.h. */
54381 _ACEOF
54382 cat confdefs.h >>conftest.$ac_ext
54383 cat >>conftest.$ac_ext <<_ACEOF
54384 /* end confdefs.h. */
54385 $ac_includes_default
54386 #include <$ac_header>
54387 _ACEOF
54388 rm -f conftest.$ac_objext
54389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54390 (eval $ac_compile) 2>&5
54391 ac_status=$?
54392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54393 (exit $ac_status); } &&
54394 { ac_try='test -s conftest.$ac_objext'
54395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54396 (eval $ac_try) 2>&5
54397 ac_status=$?
54398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54399 (exit $ac_status); }; }; then
54400 ac_header_compiler=yes
54401 else
54402 echo "$as_me: failed program was:" >&5
54403 sed 's/^/| /' conftest.$ac_ext >&5
54405 ac_header_compiler=no
54407 rm -f conftest.$ac_objext conftest.$ac_ext
54408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54409 echo "${ECHO_T}$ac_header_compiler" >&6
54411 # Is the header present?
54412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54414 cat >conftest.$ac_ext <<_ACEOF
54415 #line $LINENO "configure"
54416 /* confdefs.h. */
54417 _ACEOF
54418 cat confdefs.h >>conftest.$ac_ext
54419 cat >>conftest.$ac_ext <<_ACEOF
54420 /* end confdefs.h. */
54421 #include <$ac_header>
54422 _ACEOF
54423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54425 ac_status=$?
54426 grep -v '^ *+' conftest.er1 >conftest.err
54427 rm -f conftest.er1
54428 cat conftest.err >&5
54429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54430 (exit $ac_status); } >/dev/null; then
54431 if test -s conftest.err; then
54432 ac_cpp_err=$ac_c_preproc_warn_flag
54433 else
54434 ac_cpp_err=
54436 else
54437 ac_cpp_err=yes
54439 if test -z "$ac_cpp_err"; then
54440 ac_header_preproc=yes
54441 else
54442 echo "$as_me: failed program was:" >&5
54443 sed 's/^/| /' conftest.$ac_ext >&5
54445 ac_header_preproc=no
54447 rm -f conftest.err conftest.$ac_ext
54448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54449 echo "${ECHO_T}$ac_header_preproc" >&6
54451 # So? What about this header?
54452 case $ac_header_compiler:$ac_header_preproc in
54453 yes:no )
54454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54459 cat <<\_ASBOX
54460 ## ------------------------------------ ##
54461 ## Report this to bug-autoconf@gnu.org. ##
54462 ## ------------------------------------ ##
54463 _ASBOX
54465 sed "s/^/$as_me: WARNING: /" >&2
54467 no:yes )
54468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54475 cat <<\_ASBOX
54476 ## ------------------------------------ ##
54477 ## Report this to bug-autoconf@gnu.org. ##
54478 ## ------------------------------------ ##
54479 _ASBOX
54481 sed "s/^/$as_me: WARNING: /" >&2
54483 esac
54484 echo "$as_me:$LINENO: checking for $ac_header" >&5
54485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54487 echo $ECHO_N "(cached) $ECHO_C" >&6
54488 else
54489 eval "$as_ac_Header=$ac_header_preproc"
54491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54496 cat >>confdefs.h <<_ACEOF
54497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54498 _ACEOF
54502 done
54504 SECTION_FLAGS='-ffunction-sections -fdata-sections'
54507 # If we're not using GNU ld, then there's no point in even trying these
54508 # tests. Check for that first. We should have already tested for gld
54509 # by now (in libtool), but require it now just to be safe...
54510 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
54511 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
54515 # The name set by libtool depends on the version of libtool. Shame on us
54516 # for depending on an impl detail, but c'est la vie. Older versions used
54517 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
54518 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
54519 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
54520 # set (hence we're using an older libtool), then set it.
54521 if test x${with_gnu_ld+set} != xset; then
54522 if test x${ac_cv_prog_gnu_ld+set} != xset; then
54523 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
54524 with_gnu_ld=no
54525 else
54526 with_gnu_ld=$ac_cv_prog_gnu_ld
54530 # Start by getting the version number. I think the libtool test already
54531 # does some of this, but throws away the result.
54533 ldver=`$LD --version 2>/dev/null | head -1 | \
54534 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
54536 glibcxx_gnu_ld_version=`echo $ldver | \
54537 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
54539 # Set --gc-sections.
54540 if test "$with_gnu_ld" = "notbroken"; then
54541 # GNU ld it is! Joy and bunny rabbits!
54543 # All these tests are for C++; save the language and the compiler flags.
54544 # Need to do this so that g++ won't try to link in libstdc++
54545 ac_test_CFLAGS="${CFLAGS+set}"
54546 ac_save_CFLAGS="$CFLAGS"
54547 CFLAGS='-x c++ -Wl,--gc-sections'
54549 # Check for -Wl,--gc-sections
54550 # XXX This test is broken at the moment, as symbols required for linking
54551 # are now in libsupc++ (not built yet). In addition, this test has
54552 # cored on solaris in the past. In addition, --gc-sections doesn't
54553 # really work at the moment (keeps on discarding used sections, first
54554 # .eh_frame and now some of the glibc sections for iconv).
54555 # Bzzzzt. Thanks for playing, maybe next time.
54556 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
54557 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
54558 if test "$cross_compiling" = yes; then
54559 ac_sectionLDflags=yes
54560 else
54561 cat >conftest.$ac_ext <<_ACEOF
54562 #line $LINENO "configure"
54563 /* confdefs.h. */
54564 _ACEOF
54565 cat confdefs.h >>conftest.$ac_ext
54566 cat >>conftest.$ac_ext <<_ACEOF
54567 /* end confdefs.h. */
54569 int main(void)
54571 try { throw 1; }
54572 catch (...) { };
54573 return 0;
54576 _ACEOF
54577 rm -f conftest$ac_exeext
54578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54579 (eval $ac_link) 2>&5
54580 ac_status=$?
54581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54584 (eval $ac_try) 2>&5
54585 ac_status=$?
54586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54587 (exit $ac_status); }; }; then
54588 ac_sectionLDflags=yes
54589 else
54590 echo "$as_me: program exited with status $ac_status" >&5
54591 echo "$as_me: failed program was:" >&5
54592 sed 's/^/| /' conftest.$ac_ext >&5
54594 ( exit $ac_status )
54595 ac_sectionLDflags=no
54597 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54599 if test "$ac_test_CFLAGS" = set; then
54600 CFLAGS="$ac_save_CFLAGS"
54601 else
54602 # this is the suspicious part
54603 CFLAGS=''
54605 if test "$ac_sectionLDflags" = "yes"; then
54606 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
54608 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
54609 echo "${ECHO_T}$ac_sectionLDflags" >&6
54612 # Set linker optimization flags.
54613 if test x"$with_gnu_ld" = x"yes"; then
54614 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
54622 echo "$as_me:$LINENO: checking for main in -lm" >&5
54623 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
54624 if test "${ac_cv_lib_m_main+set}" = set; then
54625 echo $ECHO_N "(cached) $ECHO_C" >&6
54626 else
54627 ac_check_lib_save_LIBS=$LIBS
54628 LIBS="-lm $LIBS"
54629 if test x$gcc_no_link = xyes; then
54630 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54632 { (exit 1); exit 1; }; }
54634 cat >conftest.$ac_ext <<_ACEOF
54635 #line $LINENO "configure"
54636 /* confdefs.h. */
54637 _ACEOF
54638 cat confdefs.h >>conftest.$ac_ext
54639 cat >>conftest.$ac_ext <<_ACEOF
54640 /* end confdefs.h. */
54644 main ()
54646 main ();
54648 return 0;
54650 _ACEOF
54651 rm -f conftest.$ac_objext conftest$ac_exeext
54652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54653 (eval $ac_link) 2>&5
54654 ac_status=$?
54655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54656 (exit $ac_status); } &&
54657 { ac_try='test -s conftest$ac_exeext'
54658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54659 (eval $ac_try) 2>&5
54660 ac_status=$?
54661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54662 (exit $ac_status); }; }; then
54663 ac_cv_lib_m_main=yes
54664 else
54665 echo "$as_me: failed program was:" >&5
54666 sed 's/^/| /' conftest.$ac_ext >&5
54668 ac_cv_lib_m_main=no
54670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54671 LIBS=$ac_check_lib_save_LIBS
54673 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
54674 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
54675 if test $ac_cv_lib_m_main = yes; then
54676 cat >>confdefs.h <<_ACEOF
54677 #define HAVE_LIBM 1
54678 _ACEOF
54680 LIBS="-lm $LIBS"
54686 for ac_func in nan copysignf
54688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54689 echo "$as_me:$LINENO: checking for $ac_func" >&5
54690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54691 if eval "test \"\${$as_ac_var+set}\" = set"; then
54692 echo $ECHO_N "(cached) $ECHO_C" >&6
54693 else
54694 if test x$gcc_no_link = xyes; then
54695 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54697 { (exit 1); exit 1; }; }
54699 cat >conftest.$ac_ext <<_ACEOF
54700 #line $LINENO "configure"
54701 /* confdefs.h. */
54702 _ACEOF
54703 cat confdefs.h >>conftest.$ac_ext
54704 cat >>conftest.$ac_ext <<_ACEOF
54705 /* end confdefs.h. */
54706 /* System header to define __stub macros and hopefully few prototypes,
54707 which can conflict with char $ac_func (); below.
54708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54709 <limits.h> exists even on freestanding compilers. */
54710 #ifdef __STDC__
54711 # include <limits.h>
54712 #else
54713 # include <assert.h>
54714 #endif
54715 /* Override any gcc2 internal prototype to avoid an error. */
54716 #ifdef __cplusplus
54717 extern "C"
54719 #endif
54720 /* We use char because int might match the return type of a gcc2
54721 builtin and then its argument prototype would still apply. */
54722 char $ac_func ();
54723 /* The GNU C library defines this for functions which it implements
54724 to always fail with ENOSYS. Some functions are actually named
54725 something starting with __ and the normal name is an alias. */
54726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54727 choke me
54728 #else
54729 char (*f) () = $ac_func;
54730 #endif
54731 #ifdef __cplusplus
54733 #endif
54736 main ()
54738 return f != $ac_func;
54740 return 0;
54742 _ACEOF
54743 rm -f conftest.$ac_objext conftest$ac_exeext
54744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54745 (eval $ac_link) 2>&5
54746 ac_status=$?
54747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54748 (exit $ac_status); } &&
54749 { ac_try='test -s conftest$ac_exeext'
54750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54751 (eval $ac_try) 2>&5
54752 ac_status=$?
54753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54754 (exit $ac_status); }; }; then
54755 eval "$as_ac_var=yes"
54756 else
54757 echo "$as_me: failed program was:" >&5
54758 sed 's/^/| /' conftest.$ac_ext >&5
54760 eval "$as_ac_var=no"
54762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54766 if test `eval echo '${'$as_ac_var'}'` = yes; then
54767 cat >>confdefs.h <<_ACEOF
54768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54769 _ACEOF
54771 else
54772 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
54774 done
54778 for ac_func in __signbit
54780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54781 echo "$as_me:$LINENO: checking for $ac_func" >&5
54782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54783 if eval "test \"\${$as_ac_var+set}\" = set"; then
54784 echo $ECHO_N "(cached) $ECHO_C" >&6
54785 else
54786 if test x$gcc_no_link = xyes; then
54787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54789 { (exit 1); exit 1; }; }
54791 cat >conftest.$ac_ext <<_ACEOF
54792 #line $LINENO "configure"
54793 /* confdefs.h. */
54794 _ACEOF
54795 cat confdefs.h >>conftest.$ac_ext
54796 cat >>conftest.$ac_ext <<_ACEOF
54797 /* end confdefs.h. */
54798 /* System header to define __stub macros and hopefully few prototypes,
54799 which can conflict with char $ac_func (); below.
54800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54801 <limits.h> exists even on freestanding compilers. */
54802 #ifdef __STDC__
54803 # include <limits.h>
54804 #else
54805 # include <assert.h>
54806 #endif
54807 /* Override any gcc2 internal prototype to avoid an error. */
54808 #ifdef __cplusplus
54809 extern "C"
54811 #endif
54812 /* We use char because int might match the return type of a gcc2
54813 builtin and then its argument prototype would still apply. */
54814 char $ac_func ();
54815 /* The GNU C library defines this for functions which it implements
54816 to always fail with ENOSYS. Some functions are actually named
54817 something starting with __ and the normal name is an alias. */
54818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54819 choke me
54820 #else
54821 char (*f) () = $ac_func;
54822 #endif
54823 #ifdef __cplusplus
54825 #endif
54828 main ()
54830 return f != $ac_func;
54832 return 0;
54834 _ACEOF
54835 rm -f conftest.$ac_objext conftest$ac_exeext
54836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54837 (eval $ac_link) 2>&5
54838 ac_status=$?
54839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54840 (exit $ac_status); } &&
54841 { ac_try='test -s conftest$ac_exeext'
54842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54843 (eval $ac_try) 2>&5
54844 ac_status=$?
54845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54846 (exit $ac_status); }; }; then
54847 eval "$as_ac_var=yes"
54848 else
54849 echo "$as_me: failed program was:" >&5
54850 sed 's/^/| /' conftest.$ac_ext >&5
54852 eval "$as_ac_var=no"
54854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54858 if test `eval echo '${'$as_ac_var'}'` = yes; then
54859 cat >>confdefs.h <<_ACEOF
54860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54861 _ACEOF
54863 else
54864 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54866 done
54869 for ac_func in __signbitf
54871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54872 echo "$as_me:$LINENO: checking for $ac_func" >&5
54873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54874 if eval "test \"\${$as_ac_var+set}\" = set"; then
54875 echo $ECHO_N "(cached) $ECHO_C" >&6
54876 else
54877 if test x$gcc_no_link = xyes; then
54878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54880 { (exit 1); exit 1; }; }
54882 cat >conftest.$ac_ext <<_ACEOF
54883 #line $LINENO "configure"
54884 /* confdefs.h. */
54885 _ACEOF
54886 cat confdefs.h >>conftest.$ac_ext
54887 cat >>conftest.$ac_ext <<_ACEOF
54888 /* end confdefs.h. */
54889 /* System header to define __stub macros and hopefully few prototypes,
54890 which can conflict with char $ac_func (); below.
54891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54892 <limits.h> exists even on freestanding compilers. */
54893 #ifdef __STDC__
54894 # include <limits.h>
54895 #else
54896 # include <assert.h>
54897 #endif
54898 /* Override any gcc2 internal prototype to avoid an error. */
54899 #ifdef __cplusplus
54900 extern "C"
54902 #endif
54903 /* We use char because int might match the return type of a gcc2
54904 builtin and then its argument prototype would still apply. */
54905 char $ac_func ();
54906 /* The GNU C library defines this for functions which it implements
54907 to always fail with ENOSYS. Some functions are actually named
54908 something starting with __ and the normal name is an alias. */
54909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54910 choke me
54911 #else
54912 char (*f) () = $ac_func;
54913 #endif
54914 #ifdef __cplusplus
54916 #endif
54919 main ()
54921 return f != $ac_func;
54923 return 0;
54925 _ACEOF
54926 rm -f conftest.$ac_objext conftest$ac_exeext
54927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54928 (eval $ac_link) 2>&5
54929 ac_status=$?
54930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54931 (exit $ac_status); } &&
54932 { ac_try='test -s conftest$ac_exeext'
54933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54934 (eval $ac_try) 2>&5
54935 ac_status=$?
54936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54937 (exit $ac_status); }; }; then
54938 eval "$as_ac_var=yes"
54939 else
54940 echo "$as_me: failed program was:" >&5
54941 sed 's/^/| /' conftest.$ac_ext >&5
54943 eval "$as_ac_var=no"
54945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54949 if test `eval echo '${'$as_ac_var'}'` = yes; then
54950 cat >>confdefs.h <<_ACEOF
54951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54952 _ACEOF
54954 else
54955 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54957 done
54960 if test x$ac_cv_func_copysignl = x"yes"; then
54962 for ac_func in __signbitl
54964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54965 echo "$as_me:$LINENO: checking for $ac_func" >&5
54966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54967 if eval "test \"\${$as_ac_var+set}\" = set"; then
54968 echo $ECHO_N "(cached) $ECHO_C" >&6
54969 else
54970 if test x$gcc_no_link = xyes; then
54971 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54973 { (exit 1); exit 1; }; }
54975 cat >conftest.$ac_ext <<_ACEOF
54976 #line $LINENO "configure"
54977 /* confdefs.h. */
54978 _ACEOF
54979 cat confdefs.h >>conftest.$ac_ext
54980 cat >>conftest.$ac_ext <<_ACEOF
54981 /* end confdefs.h. */
54982 /* System header to define __stub macros and hopefully few prototypes,
54983 which can conflict with char $ac_func (); below.
54984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54985 <limits.h> exists even on freestanding compilers. */
54986 #ifdef __STDC__
54987 # include <limits.h>
54988 #else
54989 # include <assert.h>
54990 #endif
54991 /* Override any gcc2 internal prototype to avoid an error. */
54992 #ifdef __cplusplus
54993 extern "C"
54995 #endif
54996 /* We use char because int might match the return type of a gcc2
54997 builtin and then its argument prototype would still apply. */
54998 char $ac_func ();
54999 /* The GNU C library defines this for functions which it implements
55000 to always fail with ENOSYS. Some functions are actually named
55001 something starting with __ and the normal name is an alias. */
55002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55003 choke me
55004 #else
55005 char (*f) () = $ac_func;
55006 #endif
55007 #ifdef __cplusplus
55009 #endif
55012 main ()
55014 return f != $ac_func;
55016 return 0;
55018 _ACEOF
55019 rm -f conftest.$ac_objext conftest$ac_exeext
55020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55021 (eval $ac_link) 2>&5
55022 ac_status=$?
55023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55024 (exit $ac_status); } &&
55025 { ac_try='test -s conftest$ac_exeext'
55026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55027 (eval $ac_try) 2>&5
55028 ac_status=$?
55029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55030 (exit $ac_status); }; }; then
55031 eval "$as_ac_var=yes"
55032 else
55033 echo "$as_me: failed program was:" >&5
55034 sed 's/^/| /' conftest.$ac_ext >&5
55036 eval "$as_ac_var=no"
55038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55042 if test `eval echo '${'$as_ac_var'}'` = yes; then
55043 cat >>confdefs.h <<_ACEOF
55044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55045 _ACEOF
55047 else
55048 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
55050 done
55054 # XXX Review this. Nothing uses it.
55055 if test -n "$LIBMATHOBJS"; then
55056 need_libmath=yes
55061 # Test wchar.h for mbstate_t, which is needed for char_traits and
55062 # others even if wchar_t support is not on.
55063 echo "$as_me:$LINENO: checking for mbstate_t" >&5
55064 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
55065 cat >conftest.$ac_ext <<_ACEOF
55066 #line $LINENO "configure"
55067 /* confdefs.h. */
55068 _ACEOF
55069 cat confdefs.h >>conftest.$ac_ext
55070 cat >>conftest.$ac_ext <<_ACEOF
55071 /* end confdefs.h. */
55072 #include <wchar.h>
55074 main ()
55076 mbstate_t teststate;
55078 return 0;
55080 _ACEOF
55081 rm -f conftest.$ac_objext
55082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55083 (eval $ac_compile) 2>&5
55084 ac_status=$?
55085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55086 (exit $ac_status); } &&
55087 { ac_try='test -s conftest.$ac_objext'
55088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55089 (eval $ac_try) 2>&5
55090 ac_status=$?
55091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55092 (exit $ac_status); }; }; then
55093 have_mbstate_t=yes
55094 else
55095 echo "$as_me: failed program was:" >&5
55096 sed 's/^/| /' conftest.$ac_ext >&5
55098 have_mbstate_t=no
55100 rm -f conftest.$ac_objext conftest.$ac_ext
55101 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
55102 echo "${ECHO_T}$have_mbstate_t" >&6
55103 if test x"$have_mbstate_t" = xyes; then
55104 cat >>confdefs.h <<\_ACEOF
55105 #define HAVE_MBSTATE_T 1
55106 _ACEOF
55110 # Sanity check for existence of ISO C99 headers for extended encoding.
55112 for ac_header in wchar.h
55114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55116 echo "$as_me:$LINENO: checking for $ac_header" >&5
55117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55119 echo $ECHO_N "(cached) $ECHO_C" >&6
55121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55123 else
55124 # Is the header compilable?
55125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55127 cat >conftest.$ac_ext <<_ACEOF
55128 #line $LINENO "configure"
55129 /* confdefs.h. */
55130 _ACEOF
55131 cat confdefs.h >>conftest.$ac_ext
55132 cat >>conftest.$ac_ext <<_ACEOF
55133 /* end confdefs.h. */
55134 $ac_includes_default
55135 #include <$ac_header>
55136 _ACEOF
55137 rm -f conftest.$ac_objext
55138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55139 (eval $ac_compile) 2>&5
55140 ac_status=$?
55141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55142 (exit $ac_status); } &&
55143 { ac_try='test -s conftest.$ac_objext'
55144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55145 (eval $ac_try) 2>&5
55146 ac_status=$?
55147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55148 (exit $ac_status); }; }; then
55149 ac_header_compiler=yes
55150 else
55151 echo "$as_me: failed program was:" >&5
55152 sed 's/^/| /' conftest.$ac_ext >&5
55154 ac_header_compiler=no
55156 rm -f conftest.$ac_objext conftest.$ac_ext
55157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55158 echo "${ECHO_T}$ac_header_compiler" >&6
55160 # Is the header present?
55161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55163 cat >conftest.$ac_ext <<_ACEOF
55164 #line $LINENO "configure"
55165 /* confdefs.h. */
55166 _ACEOF
55167 cat confdefs.h >>conftest.$ac_ext
55168 cat >>conftest.$ac_ext <<_ACEOF
55169 /* end confdefs.h. */
55170 #include <$ac_header>
55171 _ACEOF
55172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55174 ac_status=$?
55175 grep -v '^ *+' conftest.er1 >conftest.err
55176 rm -f conftest.er1
55177 cat conftest.err >&5
55178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55179 (exit $ac_status); } >/dev/null; then
55180 if test -s conftest.err; then
55181 ac_cpp_err=$ac_c_preproc_warn_flag
55182 else
55183 ac_cpp_err=
55185 else
55186 ac_cpp_err=yes
55188 if test -z "$ac_cpp_err"; then
55189 ac_header_preproc=yes
55190 else
55191 echo "$as_me: failed program was:" >&5
55192 sed 's/^/| /' conftest.$ac_ext >&5
55194 ac_header_preproc=no
55196 rm -f conftest.err conftest.$ac_ext
55197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55198 echo "${ECHO_T}$ac_header_preproc" >&6
55200 # So? What about this header?
55201 case $ac_header_compiler:$ac_header_preproc in
55202 yes:no )
55203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55208 cat <<\_ASBOX
55209 ## ------------------------------------ ##
55210 ## Report this to bug-autoconf@gnu.org. ##
55211 ## ------------------------------------ ##
55212 _ASBOX
55214 sed "s/^/$as_me: WARNING: /" >&2
55216 no:yes )
55217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55224 cat <<\_ASBOX
55225 ## ------------------------------------ ##
55226 ## Report this to bug-autoconf@gnu.org. ##
55227 ## ------------------------------------ ##
55228 _ASBOX
55230 sed "s/^/$as_me: WARNING: /" >&2
55232 esac
55233 echo "$as_me:$LINENO: checking for $ac_header" >&5
55234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55236 echo $ECHO_N "(cached) $ECHO_C" >&6
55237 else
55238 eval "$as_ac_Header=$ac_header_preproc"
55240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55245 cat >>confdefs.h <<_ACEOF
55246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55247 _ACEOF
55248 ac_has_wchar_h=yes
55249 else
55250 ac_has_wchar_h=no
55253 done
55256 for ac_header in wctype.h
55258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55260 echo "$as_me:$LINENO: checking for $ac_header" >&5
55261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55263 echo $ECHO_N "(cached) $ECHO_C" >&6
55265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55267 else
55268 # Is the header compilable?
55269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55271 cat >conftest.$ac_ext <<_ACEOF
55272 #line $LINENO "configure"
55273 /* confdefs.h. */
55274 _ACEOF
55275 cat confdefs.h >>conftest.$ac_ext
55276 cat >>conftest.$ac_ext <<_ACEOF
55277 /* end confdefs.h. */
55278 $ac_includes_default
55279 #include <$ac_header>
55280 _ACEOF
55281 rm -f conftest.$ac_objext
55282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55283 (eval $ac_compile) 2>&5
55284 ac_status=$?
55285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55286 (exit $ac_status); } &&
55287 { ac_try='test -s conftest.$ac_objext'
55288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55289 (eval $ac_try) 2>&5
55290 ac_status=$?
55291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55292 (exit $ac_status); }; }; then
55293 ac_header_compiler=yes
55294 else
55295 echo "$as_me: failed program was:" >&5
55296 sed 's/^/| /' conftest.$ac_ext >&5
55298 ac_header_compiler=no
55300 rm -f conftest.$ac_objext conftest.$ac_ext
55301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55302 echo "${ECHO_T}$ac_header_compiler" >&6
55304 # Is the header present?
55305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55307 cat >conftest.$ac_ext <<_ACEOF
55308 #line $LINENO "configure"
55309 /* confdefs.h. */
55310 _ACEOF
55311 cat confdefs.h >>conftest.$ac_ext
55312 cat >>conftest.$ac_ext <<_ACEOF
55313 /* end confdefs.h. */
55314 #include <$ac_header>
55315 _ACEOF
55316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55318 ac_status=$?
55319 grep -v '^ *+' conftest.er1 >conftest.err
55320 rm -f conftest.er1
55321 cat conftest.err >&5
55322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55323 (exit $ac_status); } >/dev/null; then
55324 if test -s conftest.err; then
55325 ac_cpp_err=$ac_c_preproc_warn_flag
55326 else
55327 ac_cpp_err=
55329 else
55330 ac_cpp_err=yes
55332 if test -z "$ac_cpp_err"; then
55333 ac_header_preproc=yes
55334 else
55335 echo "$as_me: failed program was:" >&5
55336 sed 's/^/| /' conftest.$ac_ext >&5
55338 ac_header_preproc=no
55340 rm -f conftest.err conftest.$ac_ext
55341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55342 echo "${ECHO_T}$ac_header_preproc" >&6
55344 # So? What about this header?
55345 case $ac_header_compiler:$ac_header_preproc in
55346 yes:no )
55347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55352 cat <<\_ASBOX
55353 ## ------------------------------------ ##
55354 ## Report this to bug-autoconf@gnu.org. ##
55355 ## ------------------------------------ ##
55356 _ASBOX
55358 sed "s/^/$as_me: WARNING: /" >&2
55360 no:yes )
55361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55368 cat <<\_ASBOX
55369 ## ------------------------------------ ##
55370 ## Report this to bug-autoconf@gnu.org. ##
55371 ## ------------------------------------ ##
55372 _ASBOX
55374 sed "s/^/$as_me: WARNING: /" >&2
55376 esac
55377 echo "$as_me:$LINENO: checking for $ac_header" >&5
55378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55380 echo $ECHO_N "(cached) $ECHO_C" >&6
55381 else
55382 eval "$as_ac_Header=$ac_header_preproc"
55384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55389 cat >>confdefs.h <<_ACEOF
55390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55391 _ACEOF
55392 ac_has_wctype_h=yes
55393 else
55394 ac_has_wctype_h=no
55397 done
55400 # Only continue checking if the ISO C99 headers exist and support is on.
55401 if test x"$ac_has_wchar_h" = xyes &&
55402 test x"$ac_has_wctype_h" = xyes &&
55403 test x"$enable_c_mbchar" != xno; then
55405 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
55406 # numeric_limits can instantiate type_traits<wchar_t>
55407 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
55408 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
55409 cat >conftest.$ac_ext <<_ACEOF
55410 #line $LINENO "configure"
55411 /* confdefs.h. */
55412 _ACEOF
55413 cat confdefs.h >>conftest.$ac_ext
55414 cat >>conftest.$ac_ext <<_ACEOF
55415 /* end confdefs.h. */
55416 #include <wchar.h>
55418 main ()
55420 int i = WCHAR_MIN; int j = WCHAR_MAX;
55422 return 0;
55424 _ACEOF
55425 rm -f conftest.$ac_objext
55426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55427 (eval $ac_compile) 2>&5
55428 ac_status=$?
55429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55430 (exit $ac_status); } &&
55431 { ac_try='test -s conftest.$ac_objext'
55432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55433 (eval $ac_try) 2>&5
55434 ac_status=$?
55435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55436 (exit $ac_status); }; }; then
55437 has_wchar_minmax=yes
55438 else
55439 echo "$as_me: failed program was:" >&5
55440 sed 's/^/| /' conftest.$ac_ext >&5
55442 has_wchar_minmax=no
55444 rm -f conftest.$ac_objext conftest.$ac_ext
55445 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
55446 echo "${ECHO_T}$has_wchar_minmax" >&6
55448 # Test wchar.h for WEOF, which is what we use to determine whether
55449 # to specialize for char_traits<wchar_t> or not.
55450 echo "$as_me:$LINENO: checking for WEOF" >&5
55451 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
55452 cat >conftest.$ac_ext <<_ACEOF
55453 #line $LINENO "configure"
55454 /* confdefs.h. */
55455 _ACEOF
55456 cat confdefs.h >>conftest.$ac_ext
55457 cat >>conftest.$ac_ext <<_ACEOF
55458 /* end confdefs.h. */
55460 #include <wchar.h>
55461 #include <stddef.h>
55463 main ()
55465 wint_t i = WEOF;
55467 return 0;
55469 _ACEOF
55470 rm -f conftest.$ac_objext
55471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55472 (eval $ac_compile) 2>&5
55473 ac_status=$?
55474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55475 (exit $ac_status); } &&
55476 { ac_try='test -s conftest.$ac_objext'
55477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55478 (eval $ac_try) 2>&5
55479 ac_status=$?
55480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55481 (exit $ac_status); }; }; then
55482 has_weof=yes
55483 else
55484 echo "$as_me: failed program was:" >&5
55485 sed 's/^/| /' conftest.$ac_ext >&5
55487 has_weof=no
55489 rm -f conftest.$ac_objext conftest.$ac_ext
55490 echo "$as_me:$LINENO: result: $has_weof" >&5
55491 echo "${ECHO_T}$has_weof" >&6
55493 # Tests for wide character functions used in char_traits<wchar_t>.
55494 ac_wfuncs=yes
55501 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
55503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55504 echo "$as_me:$LINENO: checking for $ac_func" >&5
55505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55506 if eval "test \"\${$as_ac_var+set}\" = set"; then
55507 echo $ECHO_N "(cached) $ECHO_C" >&6
55508 else
55509 if test x$gcc_no_link = xyes; then
55510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55512 { (exit 1); exit 1; }; }
55514 cat >conftest.$ac_ext <<_ACEOF
55515 #line $LINENO "configure"
55516 /* confdefs.h. */
55517 _ACEOF
55518 cat confdefs.h >>conftest.$ac_ext
55519 cat >>conftest.$ac_ext <<_ACEOF
55520 /* end confdefs.h. */
55521 /* System header to define __stub macros and hopefully few prototypes,
55522 which can conflict with char $ac_func (); below.
55523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55524 <limits.h> exists even on freestanding compilers. */
55525 #ifdef __STDC__
55526 # include <limits.h>
55527 #else
55528 # include <assert.h>
55529 #endif
55530 /* Override any gcc2 internal prototype to avoid an error. */
55531 #ifdef __cplusplus
55532 extern "C"
55534 #endif
55535 /* We use char because int might match the return type of a gcc2
55536 builtin and then its argument prototype would still apply. */
55537 char $ac_func ();
55538 /* The GNU C library defines this for functions which it implements
55539 to always fail with ENOSYS. Some functions are actually named
55540 something starting with __ and the normal name is an alias. */
55541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55542 choke me
55543 #else
55544 char (*f) () = $ac_func;
55545 #endif
55546 #ifdef __cplusplus
55548 #endif
55551 main ()
55553 return f != $ac_func;
55555 return 0;
55557 _ACEOF
55558 rm -f conftest.$ac_objext conftest$ac_exeext
55559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55560 (eval $ac_link) 2>&5
55561 ac_status=$?
55562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55563 (exit $ac_status); } &&
55564 { ac_try='test -s conftest$ac_exeext'
55565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55566 (eval $ac_try) 2>&5
55567 ac_status=$?
55568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55569 (exit $ac_status); }; }; then
55570 eval "$as_ac_var=yes"
55571 else
55572 echo "$as_me: failed program was:" >&5
55573 sed 's/^/| /' conftest.$ac_ext >&5
55575 eval "$as_ac_var=no"
55577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55581 if test `eval echo '${'$as_ac_var'}'` = yes; then
55582 cat >>confdefs.h <<_ACEOF
55583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55584 _ACEOF
55586 else
55587 ac_wfuncs=no
55589 done
55592 # Checks for names injected into std:: by the c_std headers.
55643 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
55644 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
55645 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
55646 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
55647 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
55648 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
55650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55651 echo "$as_me:$LINENO: checking for $ac_func" >&5
55652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55653 if eval "test \"\${$as_ac_var+set}\" = set"; then
55654 echo $ECHO_N "(cached) $ECHO_C" >&6
55655 else
55656 if test x$gcc_no_link = xyes; then
55657 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55659 { (exit 1); exit 1; }; }
55661 cat >conftest.$ac_ext <<_ACEOF
55662 #line $LINENO "configure"
55663 /* confdefs.h. */
55664 _ACEOF
55665 cat confdefs.h >>conftest.$ac_ext
55666 cat >>conftest.$ac_ext <<_ACEOF
55667 /* end confdefs.h. */
55668 /* System header to define __stub macros and hopefully few prototypes,
55669 which can conflict with char $ac_func (); below.
55670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55671 <limits.h> exists even on freestanding compilers. */
55672 #ifdef __STDC__
55673 # include <limits.h>
55674 #else
55675 # include <assert.h>
55676 #endif
55677 /* Override any gcc2 internal prototype to avoid an error. */
55678 #ifdef __cplusplus
55679 extern "C"
55681 #endif
55682 /* We use char because int might match the return type of a gcc2
55683 builtin and then its argument prototype would still apply. */
55684 char $ac_func ();
55685 /* The GNU C library defines this for functions which it implements
55686 to always fail with ENOSYS. Some functions are actually named
55687 something starting with __ and the normal name is an alias. */
55688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55689 choke me
55690 #else
55691 char (*f) () = $ac_func;
55692 #endif
55693 #ifdef __cplusplus
55695 #endif
55698 main ()
55700 return f != $ac_func;
55702 return 0;
55704 _ACEOF
55705 rm -f conftest.$ac_objext conftest$ac_exeext
55706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55707 (eval $ac_link) 2>&5
55708 ac_status=$?
55709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55710 (exit $ac_status); } &&
55711 { ac_try='test -s conftest$ac_exeext'
55712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55713 (eval $ac_try) 2>&5
55714 ac_status=$?
55715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55716 (exit $ac_status); }; }; then
55717 eval "$as_ac_var=yes"
55718 else
55719 echo "$as_me: failed program was:" >&5
55720 sed 's/^/| /' conftest.$ac_ext >&5
55722 eval "$as_ac_var=no"
55724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55728 if test `eval echo '${'$as_ac_var'}'` = yes; then
55729 cat >>confdefs.h <<_ACEOF
55730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55731 _ACEOF
55733 else
55734 ac_wfuncs=no
55736 done
55739 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55740 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55741 if test x"$has_weof" = xyes &&
55742 test x"$has_wchar_minmax" = xyes &&
55743 test x"$ac_wfuncs" = xyes;
55744 then
55745 ac_isoC99_wchar_t=yes
55746 else
55747 ac_isoC99_wchar_t=no
55749 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55750 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55752 # Use iconv for wchar_t to char conversions. As such, check for
55753 # X/Open Portability Guide, version 2 features (XPG2).
55754 if test "${ac_cv_header_iconv_h+set}" = set; then
55755 echo "$as_me:$LINENO: checking for iconv.h" >&5
55756 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55757 if test "${ac_cv_header_iconv_h+set}" = set; then
55758 echo $ECHO_N "(cached) $ECHO_C" >&6
55760 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55761 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55762 else
55763 # Is the header compilable?
55764 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55765 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55766 cat >conftest.$ac_ext <<_ACEOF
55767 #line $LINENO "configure"
55768 /* confdefs.h. */
55769 _ACEOF
55770 cat confdefs.h >>conftest.$ac_ext
55771 cat >>conftest.$ac_ext <<_ACEOF
55772 /* end confdefs.h. */
55773 $ac_includes_default
55774 #include <iconv.h>
55775 _ACEOF
55776 rm -f conftest.$ac_objext
55777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55778 (eval $ac_compile) 2>&5
55779 ac_status=$?
55780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55781 (exit $ac_status); } &&
55782 { ac_try='test -s conftest.$ac_objext'
55783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55784 (eval $ac_try) 2>&5
55785 ac_status=$?
55786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55787 (exit $ac_status); }; }; then
55788 ac_header_compiler=yes
55789 else
55790 echo "$as_me: failed program was:" >&5
55791 sed 's/^/| /' conftest.$ac_ext >&5
55793 ac_header_compiler=no
55795 rm -f conftest.$ac_objext conftest.$ac_ext
55796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55797 echo "${ECHO_T}$ac_header_compiler" >&6
55799 # Is the header present?
55800 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55801 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55802 cat >conftest.$ac_ext <<_ACEOF
55803 #line $LINENO "configure"
55804 /* confdefs.h. */
55805 _ACEOF
55806 cat confdefs.h >>conftest.$ac_ext
55807 cat >>conftest.$ac_ext <<_ACEOF
55808 /* end confdefs.h. */
55809 #include <iconv.h>
55810 _ACEOF
55811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55813 ac_status=$?
55814 grep -v '^ *+' conftest.er1 >conftest.err
55815 rm -f conftest.er1
55816 cat conftest.err >&5
55817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55818 (exit $ac_status); } >/dev/null; then
55819 if test -s conftest.err; then
55820 ac_cpp_err=$ac_c_preproc_warn_flag
55821 else
55822 ac_cpp_err=
55824 else
55825 ac_cpp_err=yes
55827 if test -z "$ac_cpp_err"; then
55828 ac_header_preproc=yes
55829 else
55830 echo "$as_me: failed program was:" >&5
55831 sed 's/^/| /' conftest.$ac_ext >&5
55833 ac_header_preproc=no
55835 rm -f conftest.err conftest.$ac_ext
55836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55837 echo "${ECHO_T}$ac_header_preproc" >&6
55839 # So? What about this header?
55840 case $ac_header_compiler:$ac_header_preproc in
55841 yes:no )
55842 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55843 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55844 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55845 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55847 cat <<\_ASBOX
55848 ## ------------------------------------ ##
55849 ## Report this to bug-autoconf@gnu.org. ##
55850 ## ------------------------------------ ##
55851 _ASBOX
55853 sed "s/^/$as_me: WARNING: /" >&2
55855 no:yes )
55856 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55857 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55858 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55859 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55860 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55861 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55863 cat <<\_ASBOX
55864 ## ------------------------------------ ##
55865 ## Report this to bug-autoconf@gnu.org. ##
55866 ## ------------------------------------ ##
55867 _ASBOX
55869 sed "s/^/$as_me: WARNING: /" >&2
55871 esac
55872 echo "$as_me:$LINENO: checking for iconv.h" >&5
55873 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55874 if test "${ac_cv_header_iconv_h+set}" = set; then
55875 echo $ECHO_N "(cached) $ECHO_C" >&6
55876 else
55877 ac_cv_header_iconv_h=$ac_header_preproc
55879 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55880 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55883 if test $ac_cv_header_iconv_h = yes; then
55884 ac_has_iconv_h=yes
55885 else
55886 ac_has_iconv_h=no
55890 if test "${ac_cv_header_langinfo_h+set}" = set; then
55891 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55892 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55893 if test "${ac_cv_header_langinfo_h+set}" = set; then
55894 echo $ECHO_N "(cached) $ECHO_C" >&6
55896 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55897 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55898 else
55899 # Is the header compilable?
55900 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55901 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55902 cat >conftest.$ac_ext <<_ACEOF
55903 #line $LINENO "configure"
55904 /* confdefs.h. */
55905 _ACEOF
55906 cat confdefs.h >>conftest.$ac_ext
55907 cat >>conftest.$ac_ext <<_ACEOF
55908 /* end confdefs.h. */
55909 $ac_includes_default
55910 #include <langinfo.h>
55911 _ACEOF
55912 rm -f conftest.$ac_objext
55913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55914 (eval $ac_compile) 2>&5
55915 ac_status=$?
55916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55917 (exit $ac_status); } &&
55918 { ac_try='test -s conftest.$ac_objext'
55919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55920 (eval $ac_try) 2>&5
55921 ac_status=$?
55922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55923 (exit $ac_status); }; }; then
55924 ac_header_compiler=yes
55925 else
55926 echo "$as_me: failed program was:" >&5
55927 sed 's/^/| /' conftest.$ac_ext >&5
55929 ac_header_compiler=no
55931 rm -f conftest.$ac_objext conftest.$ac_ext
55932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55933 echo "${ECHO_T}$ac_header_compiler" >&6
55935 # Is the header present?
55936 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55937 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55938 cat >conftest.$ac_ext <<_ACEOF
55939 #line $LINENO "configure"
55940 /* confdefs.h. */
55941 _ACEOF
55942 cat confdefs.h >>conftest.$ac_ext
55943 cat >>conftest.$ac_ext <<_ACEOF
55944 /* end confdefs.h. */
55945 #include <langinfo.h>
55946 _ACEOF
55947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55949 ac_status=$?
55950 grep -v '^ *+' conftest.er1 >conftest.err
55951 rm -f conftest.er1
55952 cat conftest.err >&5
55953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55954 (exit $ac_status); } >/dev/null; then
55955 if test -s conftest.err; then
55956 ac_cpp_err=$ac_c_preproc_warn_flag
55957 else
55958 ac_cpp_err=
55960 else
55961 ac_cpp_err=yes
55963 if test -z "$ac_cpp_err"; then
55964 ac_header_preproc=yes
55965 else
55966 echo "$as_me: failed program was:" >&5
55967 sed 's/^/| /' conftest.$ac_ext >&5
55969 ac_header_preproc=no
55971 rm -f conftest.err conftest.$ac_ext
55972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55973 echo "${ECHO_T}$ac_header_preproc" >&6
55975 # So? What about this header?
55976 case $ac_header_compiler:$ac_header_preproc in
55977 yes:no )
55978 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55979 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55980 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55981 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55983 cat <<\_ASBOX
55984 ## ------------------------------------ ##
55985 ## Report this to bug-autoconf@gnu.org. ##
55986 ## ------------------------------------ ##
55987 _ASBOX
55989 sed "s/^/$as_me: WARNING: /" >&2
55991 no:yes )
55992 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55993 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55994 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55995 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55996 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55997 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55999 cat <<\_ASBOX
56000 ## ------------------------------------ ##
56001 ## Report this to bug-autoconf@gnu.org. ##
56002 ## ------------------------------------ ##
56003 _ASBOX
56005 sed "s/^/$as_me: WARNING: /" >&2
56007 esac
56008 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56009 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56010 if test "${ac_cv_header_langinfo_h+set}" = set; then
56011 echo $ECHO_N "(cached) $ECHO_C" >&6
56012 else
56013 ac_cv_header_langinfo_h=$ac_header_preproc
56015 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56016 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56019 if test $ac_cv_header_langinfo_h = yes; then
56020 ac_has_langinfo_h=yes
56021 else
56022 ac_has_langinfo_h=no
56027 # Check for existence of libiconv.a providing XPG2 wchar_t support.
56028 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
56029 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
56030 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
56031 echo $ECHO_N "(cached) $ECHO_C" >&6
56032 else
56033 ac_check_lib_save_LIBS=$LIBS
56034 LIBS="-liconv $LIBS"
56035 if test x$gcc_no_link = xyes; then
56036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56038 { (exit 1); exit 1; }; }
56040 cat >conftest.$ac_ext <<_ACEOF
56041 #line $LINENO "configure"
56042 /* confdefs.h. */
56043 _ACEOF
56044 cat confdefs.h >>conftest.$ac_ext
56045 cat >>conftest.$ac_ext <<_ACEOF
56046 /* end confdefs.h. */
56048 /* Override any gcc2 internal prototype to avoid an error. */
56049 #ifdef __cplusplus
56050 extern "C"
56051 #endif
56052 /* We use char because int might match the return type of a gcc2
56053 builtin and then its argument prototype would still apply. */
56054 char iconv ();
56056 main ()
56058 iconv ();
56060 return 0;
56062 _ACEOF
56063 rm -f conftest.$ac_objext conftest$ac_exeext
56064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56065 (eval $ac_link) 2>&5
56066 ac_status=$?
56067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56068 (exit $ac_status); } &&
56069 { ac_try='test -s conftest$ac_exeext'
56070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56071 (eval $ac_try) 2>&5
56072 ac_status=$?
56073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56074 (exit $ac_status); }; }; then
56075 ac_cv_lib_iconv_iconv=yes
56076 else
56077 echo "$as_me: failed program was:" >&5
56078 sed 's/^/| /' conftest.$ac_ext >&5
56080 ac_cv_lib_iconv_iconv=no
56082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56083 LIBS=$ac_check_lib_save_LIBS
56085 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
56086 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
56087 if test $ac_cv_lib_iconv_iconv = yes; then
56088 libiconv="-liconv"
56091 ac_save_LIBS="$LIBS"
56092 LIBS="$LIBS $libiconv"
56098 for ac_func in iconv_open iconv_close iconv nl_langinfo
56100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56101 echo "$as_me:$LINENO: checking for $ac_func" >&5
56102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56103 if eval "test \"\${$as_ac_var+set}\" = set"; then
56104 echo $ECHO_N "(cached) $ECHO_C" >&6
56105 else
56106 if test x$gcc_no_link = xyes; then
56107 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56108 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56109 { (exit 1); exit 1; }; }
56111 cat >conftest.$ac_ext <<_ACEOF
56112 #line $LINENO "configure"
56113 /* confdefs.h. */
56114 _ACEOF
56115 cat confdefs.h >>conftest.$ac_ext
56116 cat >>conftest.$ac_ext <<_ACEOF
56117 /* end confdefs.h. */
56118 /* System header to define __stub macros and hopefully few prototypes,
56119 which can conflict with char $ac_func (); below.
56120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56121 <limits.h> exists even on freestanding compilers. */
56122 #ifdef __STDC__
56123 # include <limits.h>
56124 #else
56125 # include <assert.h>
56126 #endif
56127 /* Override any gcc2 internal prototype to avoid an error. */
56128 #ifdef __cplusplus
56129 extern "C"
56131 #endif
56132 /* We use char because int might match the return type of a gcc2
56133 builtin and then its argument prototype would still apply. */
56134 char $ac_func ();
56135 /* The GNU C library defines this for functions which it implements
56136 to always fail with ENOSYS. Some functions are actually named
56137 something starting with __ and the normal name is an alias. */
56138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56139 choke me
56140 #else
56141 char (*f) () = $ac_func;
56142 #endif
56143 #ifdef __cplusplus
56145 #endif
56148 main ()
56150 return f != $ac_func;
56152 return 0;
56154 _ACEOF
56155 rm -f conftest.$ac_objext conftest$ac_exeext
56156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56157 (eval $ac_link) 2>&5
56158 ac_status=$?
56159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56160 (exit $ac_status); } &&
56161 { ac_try='test -s conftest$ac_exeext'
56162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56163 (eval $ac_try) 2>&5
56164 ac_status=$?
56165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56166 (exit $ac_status); }; }; then
56167 eval "$as_ac_var=yes"
56168 else
56169 echo "$as_me: failed program was:" >&5
56170 sed 's/^/| /' conftest.$ac_ext >&5
56172 eval "$as_ac_var=no"
56174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56178 if test `eval echo '${'$as_ac_var'}'` = yes; then
56179 cat >>confdefs.h <<_ACEOF
56180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56181 _ACEOF
56182 ac_XPG2funcs=yes
56183 else
56184 ac_XPG2funcs=no
56186 done
56189 LIBS="$ac_save_LIBS"
56191 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
56192 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
56193 if test x"$ac_has_iconv_h" = xyes &&
56194 test x"$ac_has_langinfo_h" = xyes &&
56195 test x"$ac_XPG2funcs" = xyes;
56196 then
56197 ac_XPG2_wchar_t=yes
56198 else
56199 ac_XPG2_wchar_t=no
56201 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
56202 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
56204 # At the moment, only enable wchar_t specializations if all the
56205 # above support is present.
56206 if test x"$ac_isoC99_wchar_t" = xyes &&
56207 test x"$ac_XPG2_wchar_t" = xyes;
56208 then
56209 cat >>confdefs.h <<\_ACEOF
56210 #define _GLIBCXX_USE_WCHAR_T 1
56211 _ACEOF
56213 enable_wchar_t=yes
56216 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
56217 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
56218 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
56219 echo "${ECHO_T}$enable_wchar_t" >&6
56221 cat >>confdefs.h <<\_ACEOF
56222 #define HAVE_COPYSIGN 1
56223 _ACEOF
56225 cat >>confdefs.h <<\_ACEOF
56226 #define HAVE_COPYSIGNF 1
56227 _ACEOF
56229 cat >>confdefs.h <<\_ACEOF
56230 #define HAVE_FINITEF 1
56231 _ACEOF
56233 cat >>confdefs.h <<\_ACEOF
56234 #define HAVE_FINITE 1
56235 _ACEOF
56237 cat >>confdefs.h <<\_ACEOF
56238 #define HAVE_FREXPF 1
56239 _ACEOF
56241 cat >>confdefs.h <<\_ACEOF
56242 #define HAVE_HYPOTF 1
56243 _ACEOF
56245 cat >>confdefs.h <<\_ACEOF
56246 #define HAVE_ISINF 1
56247 _ACEOF
56249 cat >>confdefs.h <<\_ACEOF
56250 #define HAVE_ISINFF 1
56251 _ACEOF
56253 cat >>confdefs.h <<\_ACEOF
56254 #define HAVE_ISNAN 1
56255 _ACEOF
56257 cat >>confdefs.h <<\_ACEOF
56258 #define HAVE_ISNANF 1
56259 _ACEOF
56261 if test x"long_double_math_on_this_cpu" = x"yes"; then
56262 cat >>confdefs.h <<\_ACEOF
56263 #define HAVE_FINITEL 1
56264 _ACEOF
56266 cat >>confdefs.h <<\_ACEOF
56267 #define HAVE_ISINFL 1
56268 _ACEOF
56270 cat >>confdefs.h <<\_ACEOF
56271 #define HAVE_ISNANL 1
56272 _ACEOF
56276 *-qnx6.1* | *-qnx6.2*)
56277 #os_include_dir="os/qnx/qnx6.1"
56278 SECTION_FLAGS='-ffunction-sections -fdata-sections'
56281 # If we're not using GNU ld, then there's no point in even trying these
56282 # tests. Check for that first. We should have already tested for gld
56283 # by now (in libtool), but require it now just to be safe...
56284 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
56285 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
56289 # The name set by libtool depends on the version of libtool. Shame on us
56290 # for depending on an impl detail, but c'est la vie. Older versions used
56291 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
56292 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
56293 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
56294 # set (hence we're using an older libtool), then set it.
56295 if test x${with_gnu_ld+set} != xset; then
56296 if test x${ac_cv_prog_gnu_ld+set} != xset; then
56297 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
56298 with_gnu_ld=no
56299 else
56300 with_gnu_ld=$ac_cv_prog_gnu_ld
56304 # Start by getting the version number. I think the libtool test already
56305 # does some of this, but throws away the result.
56307 ldver=`$LD --version 2>/dev/null | head -1 | \
56308 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56310 glibcxx_gnu_ld_version=`echo $ldver | \
56311 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56313 # Set --gc-sections.
56314 if test "$with_gnu_ld" = "notbroken"; then
56315 # GNU ld it is! Joy and bunny rabbits!
56317 # All these tests are for C++; save the language and the compiler flags.
56318 # Need to do this so that g++ won't try to link in libstdc++
56319 ac_test_CFLAGS="${CFLAGS+set}"
56320 ac_save_CFLAGS="$CFLAGS"
56321 CFLAGS='-x c++ -Wl,--gc-sections'
56323 # Check for -Wl,--gc-sections
56324 # XXX This test is broken at the moment, as symbols required for linking
56325 # are now in libsupc++ (not built yet). In addition, this test has
56326 # cored on solaris in the past. In addition, --gc-sections doesn't
56327 # really work at the moment (keeps on discarding used sections, first
56328 # .eh_frame and now some of the glibc sections for iconv).
56329 # Bzzzzt. Thanks for playing, maybe next time.
56330 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56331 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56332 if test "$cross_compiling" = yes; then
56333 ac_sectionLDflags=yes
56334 else
56335 cat >conftest.$ac_ext <<_ACEOF
56336 #line $LINENO "configure"
56337 /* confdefs.h. */
56338 _ACEOF
56339 cat confdefs.h >>conftest.$ac_ext
56340 cat >>conftest.$ac_ext <<_ACEOF
56341 /* end confdefs.h. */
56343 int main(void)
56345 try { throw 1; }
56346 catch (...) { };
56347 return 0;
56350 _ACEOF
56351 rm -f conftest$ac_exeext
56352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56353 (eval $ac_link) 2>&5
56354 ac_status=$?
56355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56358 (eval $ac_try) 2>&5
56359 ac_status=$?
56360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56361 (exit $ac_status); }; }; then
56362 ac_sectionLDflags=yes
56363 else
56364 echo "$as_me: program exited with status $ac_status" >&5
56365 echo "$as_me: failed program was:" >&5
56366 sed 's/^/| /' conftest.$ac_ext >&5
56368 ( exit $ac_status )
56369 ac_sectionLDflags=no
56371 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56373 if test "$ac_test_CFLAGS" = set; then
56374 CFLAGS="$ac_save_CFLAGS"
56375 else
56376 # this is the suspicious part
56377 CFLAGS=''
56379 if test "$ac_sectionLDflags" = "yes"; then
56380 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56382 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56383 echo "${ECHO_T}$ac_sectionLDflags" >&6
56386 # Set linker optimization flags.
56387 if test x"$with_gnu_ld" = x"yes"; then
56388 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56396 echo "$as_me:$LINENO: checking for main in -lm" >&5
56397 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56398 if test "${ac_cv_lib_m_main+set}" = set; then
56399 echo $ECHO_N "(cached) $ECHO_C" >&6
56400 else
56401 ac_check_lib_save_LIBS=$LIBS
56402 LIBS="-lm $LIBS"
56403 if test x$gcc_no_link = xyes; then
56404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56406 { (exit 1); exit 1; }; }
56408 cat >conftest.$ac_ext <<_ACEOF
56409 #line $LINENO "configure"
56410 /* confdefs.h. */
56411 _ACEOF
56412 cat confdefs.h >>conftest.$ac_ext
56413 cat >>conftest.$ac_ext <<_ACEOF
56414 /* end confdefs.h. */
56418 main ()
56420 main ();
56422 return 0;
56424 _ACEOF
56425 rm -f conftest.$ac_objext conftest$ac_exeext
56426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56427 (eval $ac_link) 2>&5
56428 ac_status=$?
56429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56430 (exit $ac_status); } &&
56431 { ac_try='test -s conftest$ac_exeext'
56432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56433 (eval $ac_try) 2>&5
56434 ac_status=$?
56435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56436 (exit $ac_status); }; }; then
56437 ac_cv_lib_m_main=yes
56438 else
56439 echo "$as_me: failed program was:" >&5
56440 sed 's/^/| /' conftest.$ac_ext >&5
56442 ac_cv_lib_m_main=no
56444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56445 LIBS=$ac_check_lib_save_LIBS
56447 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56448 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56449 if test $ac_cv_lib_m_main = yes; then
56450 cat >>confdefs.h <<_ACEOF
56451 #define HAVE_LIBM 1
56452 _ACEOF
56454 LIBS="-lm $LIBS"
56460 for ac_func in nan copysignf
56462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56463 echo "$as_me:$LINENO: checking for $ac_func" >&5
56464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56465 if eval "test \"\${$as_ac_var+set}\" = set"; then
56466 echo $ECHO_N "(cached) $ECHO_C" >&6
56467 else
56468 if test x$gcc_no_link = xyes; then
56469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56471 { (exit 1); exit 1; }; }
56473 cat >conftest.$ac_ext <<_ACEOF
56474 #line $LINENO "configure"
56475 /* confdefs.h. */
56476 _ACEOF
56477 cat confdefs.h >>conftest.$ac_ext
56478 cat >>conftest.$ac_ext <<_ACEOF
56479 /* end confdefs.h. */
56480 /* System header to define __stub macros and hopefully few prototypes,
56481 which can conflict with char $ac_func (); below.
56482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56483 <limits.h> exists even on freestanding compilers. */
56484 #ifdef __STDC__
56485 # include <limits.h>
56486 #else
56487 # include <assert.h>
56488 #endif
56489 /* Override any gcc2 internal prototype to avoid an error. */
56490 #ifdef __cplusplus
56491 extern "C"
56493 #endif
56494 /* We use char because int might match the return type of a gcc2
56495 builtin and then its argument prototype would still apply. */
56496 char $ac_func ();
56497 /* The GNU C library defines this for functions which it implements
56498 to always fail with ENOSYS. Some functions are actually named
56499 something starting with __ and the normal name is an alias. */
56500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56501 choke me
56502 #else
56503 char (*f) () = $ac_func;
56504 #endif
56505 #ifdef __cplusplus
56507 #endif
56510 main ()
56512 return f != $ac_func;
56514 return 0;
56516 _ACEOF
56517 rm -f conftest.$ac_objext conftest$ac_exeext
56518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56519 (eval $ac_link) 2>&5
56520 ac_status=$?
56521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56522 (exit $ac_status); } &&
56523 { ac_try='test -s conftest$ac_exeext'
56524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56525 (eval $ac_try) 2>&5
56526 ac_status=$?
56527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56528 (exit $ac_status); }; }; then
56529 eval "$as_ac_var=yes"
56530 else
56531 echo "$as_me: failed program was:" >&5
56532 sed 's/^/| /' conftest.$ac_ext >&5
56534 eval "$as_ac_var=no"
56536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56540 if test `eval echo '${'$as_ac_var'}'` = yes; then
56541 cat >>confdefs.h <<_ACEOF
56542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56543 _ACEOF
56545 else
56546 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56548 done
56552 for ac_func in __signbit
56554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56555 echo "$as_me:$LINENO: checking for $ac_func" >&5
56556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56557 if eval "test \"\${$as_ac_var+set}\" = set"; then
56558 echo $ECHO_N "(cached) $ECHO_C" >&6
56559 else
56560 if test x$gcc_no_link = xyes; then
56561 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56563 { (exit 1); exit 1; }; }
56565 cat >conftest.$ac_ext <<_ACEOF
56566 #line $LINENO "configure"
56567 /* confdefs.h. */
56568 _ACEOF
56569 cat confdefs.h >>conftest.$ac_ext
56570 cat >>conftest.$ac_ext <<_ACEOF
56571 /* end confdefs.h. */
56572 /* System header to define __stub macros and hopefully few prototypes,
56573 which can conflict with char $ac_func (); below.
56574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56575 <limits.h> exists even on freestanding compilers. */
56576 #ifdef __STDC__
56577 # include <limits.h>
56578 #else
56579 # include <assert.h>
56580 #endif
56581 /* Override any gcc2 internal prototype to avoid an error. */
56582 #ifdef __cplusplus
56583 extern "C"
56585 #endif
56586 /* We use char because int might match the return type of a gcc2
56587 builtin and then its argument prototype would still apply. */
56588 char $ac_func ();
56589 /* The GNU C library defines this for functions which it implements
56590 to always fail with ENOSYS. Some functions are actually named
56591 something starting with __ and the normal name is an alias. */
56592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56593 choke me
56594 #else
56595 char (*f) () = $ac_func;
56596 #endif
56597 #ifdef __cplusplus
56599 #endif
56602 main ()
56604 return f != $ac_func;
56606 return 0;
56608 _ACEOF
56609 rm -f conftest.$ac_objext conftest$ac_exeext
56610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56611 (eval $ac_link) 2>&5
56612 ac_status=$?
56613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56614 (exit $ac_status); } &&
56615 { ac_try='test -s conftest$ac_exeext'
56616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56617 (eval $ac_try) 2>&5
56618 ac_status=$?
56619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56620 (exit $ac_status); }; }; then
56621 eval "$as_ac_var=yes"
56622 else
56623 echo "$as_me: failed program was:" >&5
56624 sed 's/^/| /' conftest.$ac_ext >&5
56626 eval "$as_ac_var=no"
56628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56632 if test `eval echo '${'$as_ac_var'}'` = yes; then
56633 cat >>confdefs.h <<_ACEOF
56634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56635 _ACEOF
56637 else
56638 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56640 done
56643 for ac_func in __signbitf
56645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56646 echo "$as_me:$LINENO: checking for $ac_func" >&5
56647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56648 if eval "test \"\${$as_ac_var+set}\" = set"; then
56649 echo $ECHO_N "(cached) $ECHO_C" >&6
56650 else
56651 if test x$gcc_no_link = xyes; then
56652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56654 { (exit 1); exit 1; }; }
56656 cat >conftest.$ac_ext <<_ACEOF
56657 #line $LINENO "configure"
56658 /* confdefs.h. */
56659 _ACEOF
56660 cat confdefs.h >>conftest.$ac_ext
56661 cat >>conftest.$ac_ext <<_ACEOF
56662 /* end confdefs.h. */
56663 /* System header to define __stub macros and hopefully few prototypes,
56664 which can conflict with char $ac_func (); below.
56665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56666 <limits.h> exists even on freestanding compilers. */
56667 #ifdef __STDC__
56668 # include <limits.h>
56669 #else
56670 # include <assert.h>
56671 #endif
56672 /* Override any gcc2 internal prototype to avoid an error. */
56673 #ifdef __cplusplus
56674 extern "C"
56676 #endif
56677 /* We use char because int might match the return type of a gcc2
56678 builtin and then its argument prototype would still apply. */
56679 char $ac_func ();
56680 /* The GNU C library defines this for functions which it implements
56681 to always fail with ENOSYS. Some functions are actually named
56682 something starting with __ and the normal name is an alias. */
56683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56684 choke me
56685 #else
56686 char (*f) () = $ac_func;
56687 #endif
56688 #ifdef __cplusplus
56690 #endif
56693 main ()
56695 return f != $ac_func;
56697 return 0;
56699 _ACEOF
56700 rm -f conftest.$ac_objext conftest$ac_exeext
56701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56702 (eval $ac_link) 2>&5
56703 ac_status=$?
56704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56705 (exit $ac_status); } &&
56706 { ac_try='test -s conftest$ac_exeext'
56707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56708 (eval $ac_try) 2>&5
56709 ac_status=$?
56710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56711 (exit $ac_status); }; }; then
56712 eval "$as_ac_var=yes"
56713 else
56714 echo "$as_me: failed program was:" >&5
56715 sed 's/^/| /' conftest.$ac_ext >&5
56717 eval "$as_ac_var=no"
56719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56723 if test `eval echo '${'$as_ac_var'}'` = yes; then
56724 cat >>confdefs.h <<_ACEOF
56725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56726 _ACEOF
56728 else
56729 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56731 done
56734 if test x$ac_cv_func_copysignl = x"yes"; then
56736 for ac_func in __signbitl
56738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56739 echo "$as_me:$LINENO: checking for $ac_func" >&5
56740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56741 if eval "test \"\${$as_ac_var+set}\" = set"; then
56742 echo $ECHO_N "(cached) $ECHO_C" >&6
56743 else
56744 if test x$gcc_no_link = xyes; then
56745 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56746 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56747 { (exit 1); exit 1; }; }
56749 cat >conftest.$ac_ext <<_ACEOF
56750 #line $LINENO "configure"
56751 /* confdefs.h. */
56752 _ACEOF
56753 cat confdefs.h >>conftest.$ac_ext
56754 cat >>conftest.$ac_ext <<_ACEOF
56755 /* end confdefs.h. */
56756 /* System header to define __stub macros and hopefully few prototypes,
56757 which can conflict with char $ac_func (); below.
56758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56759 <limits.h> exists even on freestanding compilers. */
56760 #ifdef __STDC__
56761 # include <limits.h>
56762 #else
56763 # include <assert.h>
56764 #endif
56765 /* Override any gcc2 internal prototype to avoid an error. */
56766 #ifdef __cplusplus
56767 extern "C"
56769 #endif
56770 /* We use char because int might match the return type of a gcc2
56771 builtin and then its argument prototype would still apply. */
56772 char $ac_func ();
56773 /* The GNU C library defines this for functions which it implements
56774 to always fail with ENOSYS. Some functions are actually named
56775 something starting with __ and the normal name is an alias. */
56776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56777 choke me
56778 #else
56779 char (*f) () = $ac_func;
56780 #endif
56781 #ifdef __cplusplus
56783 #endif
56786 main ()
56788 return f != $ac_func;
56790 return 0;
56792 _ACEOF
56793 rm -f conftest.$ac_objext conftest$ac_exeext
56794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56795 (eval $ac_link) 2>&5
56796 ac_status=$?
56797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56798 (exit $ac_status); } &&
56799 { ac_try='test -s conftest$ac_exeext'
56800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56801 (eval $ac_try) 2>&5
56802 ac_status=$?
56803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56804 (exit $ac_status); }; }; then
56805 eval "$as_ac_var=yes"
56806 else
56807 echo "$as_me: failed program was:" >&5
56808 sed 's/^/| /' conftest.$ac_ext >&5
56810 eval "$as_ac_var=no"
56812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56816 if test `eval echo '${'$as_ac_var'}'` = yes; then
56817 cat >>confdefs.h <<_ACEOF
56818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56819 _ACEOF
56821 else
56822 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56824 done
56828 # XXX Review this. Nothing uses it.
56829 if test -n "$LIBMATHOBJS"; then
56830 need_libmath=yes
56835 # Test wchar.h for mbstate_t, which is needed for char_traits and
56836 # others even if wchar_t support is not on.
56837 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56838 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56839 cat >conftest.$ac_ext <<_ACEOF
56840 #line $LINENO "configure"
56841 /* confdefs.h. */
56842 _ACEOF
56843 cat confdefs.h >>conftest.$ac_ext
56844 cat >>conftest.$ac_ext <<_ACEOF
56845 /* end confdefs.h. */
56846 #include <wchar.h>
56848 main ()
56850 mbstate_t teststate;
56852 return 0;
56854 _ACEOF
56855 rm -f conftest.$ac_objext
56856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56857 (eval $ac_compile) 2>&5
56858 ac_status=$?
56859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56860 (exit $ac_status); } &&
56861 { ac_try='test -s conftest.$ac_objext'
56862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56863 (eval $ac_try) 2>&5
56864 ac_status=$?
56865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56866 (exit $ac_status); }; }; then
56867 have_mbstate_t=yes
56868 else
56869 echo "$as_me: failed program was:" >&5
56870 sed 's/^/| /' conftest.$ac_ext >&5
56872 have_mbstate_t=no
56874 rm -f conftest.$ac_objext conftest.$ac_ext
56875 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56876 echo "${ECHO_T}$have_mbstate_t" >&6
56877 if test x"$have_mbstate_t" = xyes; then
56878 cat >>confdefs.h <<\_ACEOF
56879 #define HAVE_MBSTATE_T 1
56880 _ACEOF
56884 # Sanity check for existence of ISO C99 headers for extended encoding.
56886 for ac_header in wchar.h
56888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56890 echo "$as_me:$LINENO: checking for $ac_header" >&5
56891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56893 echo $ECHO_N "(cached) $ECHO_C" >&6
56895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56897 else
56898 # Is the header compilable?
56899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56901 cat >conftest.$ac_ext <<_ACEOF
56902 #line $LINENO "configure"
56903 /* confdefs.h. */
56904 _ACEOF
56905 cat confdefs.h >>conftest.$ac_ext
56906 cat >>conftest.$ac_ext <<_ACEOF
56907 /* end confdefs.h. */
56908 $ac_includes_default
56909 #include <$ac_header>
56910 _ACEOF
56911 rm -f conftest.$ac_objext
56912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56913 (eval $ac_compile) 2>&5
56914 ac_status=$?
56915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56916 (exit $ac_status); } &&
56917 { ac_try='test -s conftest.$ac_objext'
56918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56919 (eval $ac_try) 2>&5
56920 ac_status=$?
56921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56922 (exit $ac_status); }; }; then
56923 ac_header_compiler=yes
56924 else
56925 echo "$as_me: failed program was:" >&5
56926 sed 's/^/| /' conftest.$ac_ext >&5
56928 ac_header_compiler=no
56930 rm -f conftest.$ac_objext conftest.$ac_ext
56931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56932 echo "${ECHO_T}$ac_header_compiler" >&6
56934 # Is the header present?
56935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56937 cat >conftest.$ac_ext <<_ACEOF
56938 #line $LINENO "configure"
56939 /* confdefs.h. */
56940 _ACEOF
56941 cat confdefs.h >>conftest.$ac_ext
56942 cat >>conftest.$ac_ext <<_ACEOF
56943 /* end confdefs.h. */
56944 #include <$ac_header>
56945 _ACEOF
56946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56948 ac_status=$?
56949 grep -v '^ *+' conftest.er1 >conftest.err
56950 rm -f conftest.er1
56951 cat conftest.err >&5
56952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56953 (exit $ac_status); } >/dev/null; then
56954 if test -s conftest.err; then
56955 ac_cpp_err=$ac_c_preproc_warn_flag
56956 else
56957 ac_cpp_err=
56959 else
56960 ac_cpp_err=yes
56962 if test -z "$ac_cpp_err"; then
56963 ac_header_preproc=yes
56964 else
56965 echo "$as_me: failed program was:" >&5
56966 sed 's/^/| /' conftest.$ac_ext >&5
56968 ac_header_preproc=no
56970 rm -f conftest.err conftest.$ac_ext
56971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56972 echo "${ECHO_T}$ac_header_preproc" >&6
56974 # So? What about this header?
56975 case $ac_header_compiler:$ac_header_preproc in
56976 yes:no )
56977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56982 cat <<\_ASBOX
56983 ## ------------------------------------ ##
56984 ## Report this to bug-autoconf@gnu.org. ##
56985 ## ------------------------------------ ##
56986 _ASBOX
56988 sed "s/^/$as_me: WARNING: /" >&2
56990 no:yes )
56991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56998 cat <<\_ASBOX
56999 ## ------------------------------------ ##
57000 ## Report this to bug-autoconf@gnu.org. ##
57001 ## ------------------------------------ ##
57002 _ASBOX
57004 sed "s/^/$as_me: WARNING: /" >&2
57006 esac
57007 echo "$as_me:$LINENO: checking for $ac_header" >&5
57008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57010 echo $ECHO_N "(cached) $ECHO_C" >&6
57011 else
57012 eval "$as_ac_Header=$ac_header_preproc"
57014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57019 cat >>confdefs.h <<_ACEOF
57020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57021 _ACEOF
57022 ac_has_wchar_h=yes
57023 else
57024 ac_has_wchar_h=no
57027 done
57030 for ac_header in wctype.h
57032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57034 echo "$as_me:$LINENO: checking for $ac_header" >&5
57035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57037 echo $ECHO_N "(cached) $ECHO_C" >&6
57039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57041 else
57042 # Is the header compilable?
57043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57045 cat >conftest.$ac_ext <<_ACEOF
57046 #line $LINENO "configure"
57047 /* confdefs.h. */
57048 _ACEOF
57049 cat confdefs.h >>conftest.$ac_ext
57050 cat >>conftest.$ac_ext <<_ACEOF
57051 /* end confdefs.h. */
57052 $ac_includes_default
57053 #include <$ac_header>
57054 _ACEOF
57055 rm -f conftest.$ac_objext
57056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57057 (eval $ac_compile) 2>&5
57058 ac_status=$?
57059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57060 (exit $ac_status); } &&
57061 { ac_try='test -s conftest.$ac_objext'
57062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57063 (eval $ac_try) 2>&5
57064 ac_status=$?
57065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57066 (exit $ac_status); }; }; then
57067 ac_header_compiler=yes
57068 else
57069 echo "$as_me: failed program was:" >&5
57070 sed 's/^/| /' conftest.$ac_ext >&5
57072 ac_header_compiler=no
57074 rm -f conftest.$ac_objext conftest.$ac_ext
57075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57076 echo "${ECHO_T}$ac_header_compiler" >&6
57078 # Is the header present?
57079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57081 cat >conftest.$ac_ext <<_ACEOF
57082 #line $LINENO "configure"
57083 /* confdefs.h. */
57084 _ACEOF
57085 cat confdefs.h >>conftest.$ac_ext
57086 cat >>conftest.$ac_ext <<_ACEOF
57087 /* end confdefs.h. */
57088 #include <$ac_header>
57089 _ACEOF
57090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57092 ac_status=$?
57093 grep -v '^ *+' conftest.er1 >conftest.err
57094 rm -f conftest.er1
57095 cat conftest.err >&5
57096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57097 (exit $ac_status); } >/dev/null; then
57098 if test -s conftest.err; then
57099 ac_cpp_err=$ac_c_preproc_warn_flag
57100 else
57101 ac_cpp_err=
57103 else
57104 ac_cpp_err=yes
57106 if test -z "$ac_cpp_err"; then
57107 ac_header_preproc=yes
57108 else
57109 echo "$as_me: failed program was:" >&5
57110 sed 's/^/| /' conftest.$ac_ext >&5
57112 ac_header_preproc=no
57114 rm -f conftest.err conftest.$ac_ext
57115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57116 echo "${ECHO_T}$ac_header_preproc" >&6
57118 # So? What about this header?
57119 case $ac_header_compiler:$ac_header_preproc in
57120 yes:no )
57121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57126 cat <<\_ASBOX
57127 ## ------------------------------------ ##
57128 ## Report this to bug-autoconf@gnu.org. ##
57129 ## ------------------------------------ ##
57130 _ASBOX
57132 sed "s/^/$as_me: WARNING: /" >&2
57134 no:yes )
57135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57142 cat <<\_ASBOX
57143 ## ------------------------------------ ##
57144 ## Report this to bug-autoconf@gnu.org. ##
57145 ## ------------------------------------ ##
57146 _ASBOX
57148 sed "s/^/$as_me: WARNING: /" >&2
57150 esac
57151 echo "$as_me:$LINENO: checking for $ac_header" >&5
57152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57154 echo $ECHO_N "(cached) $ECHO_C" >&6
57155 else
57156 eval "$as_ac_Header=$ac_header_preproc"
57158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57163 cat >>confdefs.h <<_ACEOF
57164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57165 _ACEOF
57166 ac_has_wctype_h=yes
57167 else
57168 ac_has_wctype_h=no
57171 done
57174 # Only continue checking if the ISO C99 headers exist and support is on.
57175 if test x"$ac_has_wchar_h" = xyes &&
57176 test x"$ac_has_wctype_h" = xyes &&
57177 test x"$enable_c_mbchar" != xno; then
57179 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
57180 # numeric_limits can instantiate type_traits<wchar_t>
57181 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
57182 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
57183 cat >conftest.$ac_ext <<_ACEOF
57184 #line $LINENO "configure"
57185 /* confdefs.h. */
57186 _ACEOF
57187 cat confdefs.h >>conftest.$ac_ext
57188 cat >>conftest.$ac_ext <<_ACEOF
57189 /* end confdefs.h. */
57190 #include <wchar.h>
57192 main ()
57194 int i = WCHAR_MIN; int j = WCHAR_MAX;
57196 return 0;
57198 _ACEOF
57199 rm -f conftest.$ac_objext
57200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57201 (eval $ac_compile) 2>&5
57202 ac_status=$?
57203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57204 (exit $ac_status); } &&
57205 { ac_try='test -s conftest.$ac_objext'
57206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57207 (eval $ac_try) 2>&5
57208 ac_status=$?
57209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57210 (exit $ac_status); }; }; then
57211 has_wchar_minmax=yes
57212 else
57213 echo "$as_me: failed program was:" >&5
57214 sed 's/^/| /' conftest.$ac_ext >&5
57216 has_wchar_minmax=no
57218 rm -f conftest.$ac_objext conftest.$ac_ext
57219 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57220 echo "${ECHO_T}$has_wchar_minmax" >&6
57222 # Test wchar.h for WEOF, which is what we use to determine whether
57223 # to specialize for char_traits<wchar_t> or not.
57224 echo "$as_me:$LINENO: checking for WEOF" >&5
57225 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57226 cat >conftest.$ac_ext <<_ACEOF
57227 #line $LINENO "configure"
57228 /* confdefs.h. */
57229 _ACEOF
57230 cat confdefs.h >>conftest.$ac_ext
57231 cat >>conftest.$ac_ext <<_ACEOF
57232 /* end confdefs.h. */
57234 #include <wchar.h>
57235 #include <stddef.h>
57237 main ()
57239 wint_t i = WEOF;
57241 return 0;
57243 _ACEOF
57244 rm -f conftest.$ac_objext
57245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57246 (eval $ac_compile) 2>&5
57247 ac_status=$?
57248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57249 (exit $ac_status); } &&
57250 { ac_try='test -s conftest.$ac_objext'
57251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57252 (eval $ac_try) 2>&5
57253 ac_status=$?
57254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57255 (exit $ac_status); }; }; then
57256 has_weof=yes
57257 else
57258 echo "$as_me: failed program was:" >&5
57259 sed 's/^/| /' conftest.$ac_ext >&5
57261 has_weof=no
57263 rm -f conftest.$ac_objext conftest.$ac_ext
57264 echo "$as_me:$LINENO: result: $has_weof" >&5
57265 echo "${ECHO_T}$has_weof" >&6
57267 # Tests for wide character functions used in char_traits<wchar_t>.
57268 ac_wfuncs=yes
57275 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57278 echo "$as_me:$LINENO: checking for $ac_func" >&5
57279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57280 if eval "test \"\${$as_ac_var+set}\" = set"; then
57281 echo $ECHO_N "(cached) $ECHO_C" >&6
57282 else
57283 if test x$gcc_no_link = xyes; then
57284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57285 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57286 { (exit 1); exit 1; }; }
57288 cat >conftest.$ac_ext <<_ACEOF
57289 #line $LINENO "configure"
57290 /* confdefs.h. */
57291 _ACEOF
57292 cat confdefs.h >>conftest.$ac_ext
57293 cat >>conftest.$ac_ext <<_ACEOF
57294 /* end confdefs.h. */
57295 /* System header to define __stub macros and hopefully few prototypes,
57296 which can conflict with char $ac_func (); below.
57297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57298 <limits.h> exists even on freestanding compilers. */
57299 #ifdef __STDC__
57300 # include <limits.h>
57301 #else
57302 # include <assert.h>
57303 #endif
57304 /* Override any gcc2 internal prototype to avoid an error. */
57305 #ifdef __cplusplus
57306 extern "C"
57308 #endif
57309 /* We use char because int might match the return type of a gcc2
57310 builtin and then its argument prototype would still apply. */
57311 char $ac_func ();
57312 /* The GNU C library defines this for functions which it implements
57313 to always fail with ENOSYS. Some functions are actually named
57314 something starting with __ and the normal name is an alias. */
57315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57316 choke me
57317 #else
57318 char (*f) () = $ac_func;
57319 #endif
57320 #ifdef __cplusplus
57322 #endif
57325 main ()
57327 return f != $ac_func;
57329 return 0;
57331 _ACEOF
57332 rm -f conftest.$ac_objext conftest$ac_exeext
57333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57334 (eval $ac_link) 2>&5
57335 ac_status=$?
57336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57337 (exit $ac_status); } &&
57338 { ac_try='test -s conftest$ac_exeext'
57339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57340 (eval $ac_try) 2>&5
57341 ac_status=$?
57342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57343 (exit $ac_status); }; }; then
57344 eval "$as_ac_var=yes"
57345 else
57346 echo "$as_me: failed program was:" >&5
57347 sed 's/^/| /' conftest.$ac_ext >&5
57349 eval "$as_ac_var=no"
57351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57355 if test `eval echo '${'$as_ac_var'}'` = yes; then
57356 cat >>confdefs.h <<_ACEOF
57357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57358 _ACEOF
57360 else
57361 ac_wfuncs=no
57363 done
57366 # Checks for names injected into std:: by the c_std headers.
57417 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57418 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
57419 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57420 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
57421 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57422 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57425 echo "$as_me:$LINENO: checking for $ac_func" >&5
57426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57427 if eval "test \"\${$as_ac_var+set}\" = set"; then
57428 echo $ECHO_N "(cached) $ECHO_C" >&6
57429 else
57430 if test x$gcc_no_link = xyes; then
57431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57433 { (exit 1); exit 1; }; }
57435 cat >conftest.$ac_ext <<_ACEOF
57436 #line $LINENO "configure"
57437 /* confdefs.h. */
57438 _ACEOF
57439 cat confdefs.h >>conftest.$ac_ext
57440 cat >>conftest.$ac_ext <<_ACEOF
57441 /* end confdefs.h. */
57442 /* System header to define __stub macros and hopefully few prototypes,
57443 which can conflict with char $ac_func (); below.
57444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57445 <limits.h> exists even on freestanding compilers. */
57446 #ifdef __STDC__
57447 # include <limits.h>
57448 #else
57449 # include <assert.h>
57450 #endif
57451 /* Override any gcc2 internal prototype to avoid an error. */
57452 #ifdef __cplusplus
57453 extern "C"
57455 #endif
57456 /* We use char because int might match the return type of a gcc2
57457 builtin and then its argument prototype would still apply. */
57458 char $ac_func ();
57459 /* The GNU C library defines this for functions which it implements
57460 to always fail with ENOSYS. Some functions are actually named
57461 something starting with __ and the normal name is an alias. */
57462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57463 choke me
57464 #else
57465 char (*f) () = $ac_func;
57466 #endif
57467 #ifdef __cplusplus
57469 #endif
57472 main ()
57474 return f != $ac_func;
57476 return 0;
57478 _ACEOF
57479 rm -f conftest.$ac_objext conftest$ac_exeext
57480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57481 (eval $ac_link) 2>&5
57482 ac_status=$?
57483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57484 (exit $ac_status); } &&
57485 { ac_try='test -s conftest$ac_exeext'
57486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57487 (eval $ac_try) 2>&5
57488 ac_status=$?
57489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57490 (exit $ac_status); }; }; then
57491 eval "$as_ac_var=yes"
57492 else
57493 echo "$as_me: failed program was:" >&5
57494 sed 's/^/| /' conftest.$ac_ext >&5
57496 eval "$as_ac_var=no"
57498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57502 if test `eval echo '${'$as_ac_var'}'` = yes; then
57503 cat >>confdefs.h <<_ACEOF
57504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57505 _ACEOF
57507 else
57508 ac_wfuncs=no
57510 done
57513 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57514 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57515 if test x"$has_weof" = xyes &&
57516 test x"$has_wchar_minmax" = xyes &&
57517 test x"$ac_wfuncs" = xyes;
57518 then
57519 ac_isoC99_wchar_t=yes
57520 else
57521 ac_isoC99_wchar_t=no
57523 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57524 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57526 # Use iconv for wchar_t to char conversions. As such, check for
57527 # X/Open Portability Guide, version 2 features (XPG2).
57528 if test "${ac_cv_header_iconv_h+set}" = set; then
57529 echo "$as_me:$LINENO: checking for iconv.h" >&5
57530 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57531 if test "${ac_cv_header_iconv_h+set}" = set; then
57532 echo $ECHO_N "(cached) $ECHO_C" >&6
57534 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57535 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57536 else
57537 # Is the header compilable?
57538 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57539 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57540 cat >conftest.$ac_ext <<_ACEOF
57541 #line $LINENO "configure"
57542 /* confdefs.h. */
57543 _ACEOF
57544 cat confdefs.h >>conftest.$ac_ext
57545 cat >>conftest.$ac_ext <<_ACEOF
57546 /* end confdefs.h. */
57547 $ac_includes_default
57548 #include <iconv.h>
57549 _ACEOF
57550 rm -f conftest.$ac_objext
57551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57552 (eval $ac_compile) 2>&5
57553 ac_status=$?
57554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57555 (exit $ac_status); } &&
57556 { ac_try='test -s conftest.$ac_objext'
57557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57558 (eval $ac_try) 2>&5
57559 ac_status=$?
57560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57561 (exit $ac_status); }; }; then
57562 ac_header_compiler=yes
57563 else
57564 echo "$as_me: failed program was:" >&5
57565 sed 's/^/| /' conftest.$ac_ext >&5
57567 ac_header_compiler=no
57569 rm -f conftest.$ac_objext conftest.$ac_ext
57570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57571 echo "${ECHO_T}$ac_header_compiler" >&6
57573 # Is the header present?
57574 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57575 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57576 cat >conftest.$ac_ext <<_ACEOF
57577 #line $LINENO "configure"
57578 /* confdefs.h. */
57579 _ACEOF
57580 cat confdefs.h >>conftest.$ac_ext
57581 cat >>conftest.$ac_ext <<_ACEOF
57582 /* end confdefs.h. */
57583 #include <iconv.h>
57584 _ACEOF
57585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57587 ac_status=$?
57588 grep -v '^ *+' conftest.er1 >conftest.err
57589 rm -f conftest.er1
57590 cat conftest.err >&5
57591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57592 (exit $ac_status); } >/dev/null; then
57593 if test -s conftest.err; then
57594 ac_cpp_err=$ac_c_preproc_warn_flag
57595 else
57596 ac_cpp_err=
57598 else
57599 ac_cpp_err=yes
57601 if test -z "$ac_cpp_err"; then
57602 ac_header_preproc=yes
57603 else
57604 echo "$as_me: failed program was:" >&5
57605 sed 's/^/| /' conftest.$ac_ext >&5
57607 ac_header_preproc=no
57609 rm -f conftest.err conftest.$ac_ext
57610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57611 echo "${ECHO_T}$ac_header_preproc" >&6
57613 # So? What about this header?
57614 case $ac_header_compiler:$ac_header_preproc in
57615 yes:no )
57616 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57617 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57618 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57619 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57621 cat <<\_ASBOX
57622 ## ------------------------------------ ##
57623 ## Report this to bug-autoconf@gnu.org. ##
57624 ## ------------------------------------ ##
57625 _ASBOX
57627 sed "s/^/$as_me: WARNING: /" >&2
57629 no:yes )
57630 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57631 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57632 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57633 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57634 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57635 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57637 cat <<\_ASBOX
57638 ## ------------------------------------ ##
57639 ## Report this to bug-autoconf@gnu.org. ##
57640 ## ------------------------------------ ##
57641 _ASBOX
57643 sed "s/^/$as_me: WARNING: /" >&2
57645 esac
57646 echo "$as_me:$LINENO: checking for iconv.h" >&5
57647 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57648 if test "${ac_cv_header_iconv_h+set}" = set; then
57649 echo $ECHO_N "(cached) $ECHO_C" >&6
57650 else
57651 ac_cv_header_iconv_h=$ac_header_preproc
57653 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57654 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57657 if test $ac_cv_header_iconv_h = yes; then
57658 ac_has_iconv_h=yes
57659 else
57660 ac_has_iconv_h=no
57664 if test "${ac_cv_header_langinfo_h+set}" = set; then
57665 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57666 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57667 if test "${ac_cv_header_langinfo_h+set}" = set; then
57668 echo $ECHO_N "(cached) $ECHO_C" >&6
57670 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57671 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57672 else
57673 # Is the header compilable?
57674 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57675 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57676 cat >conftest.$ac_ext <<_ACEOF
57677 #line $LINENO "configure"
57678 /* confdefs.h. */
57679 _ACEOF
57680 cat confdefs.h >>conftest.$ac_ext
57681 cat >>conftest.$ac_ext <<_ACEOF
57682 /* end confdefs.h. */
57683 $ac_includes_default
57684 #include <langinfo.h>
57685 _ACEOF
57686 rm -f conftest.$ac_objext
57687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57688 (eval $ac_compile) 2>&5
57689 ac_status=$?
57690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57691 (exit $ac_status); } &&
57692 { ac_try='test -s conftest.$ac_objext'
57693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57694 (eval $ac_try) 2>&5
57695 ac_status=$?
57696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57697 (exit $ac_status); }; }; then
57698 ac_header_compiler=yes
57699 else
57700 echo "$as_me: failed program was:" >&5
57701 sed 's/^/| /' conftest.$ac_ext >&5
57703 ac_header_compiler=no
57705 rm -f conftest.$ac_objext conftest.$ac_ext
57706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57707 echo "${ECHO_T}$ac_header_compiler" >&6
57709 # Is the header present?
57710 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57711 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57712 cat >conftest.$ac_ext <<_ACEOF
57713 #line $LINENO "configure"
57714 /* confdefs.h. */
57715 _ACEOF
57716 cat confdefs.h >>conftest.$ac_ext
57717 cat >>conftest.$ac_ext <<_ACEOF
57718 /* end confdefs.h. */
57719 #include <langinfo.h>
57720 _ACEOF
57721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57723 ac_status=$?
57724 grep -v '^ *+' conftest.er1 >conftest.err
57725 rm -f conftest.er1
57726 cat conftest.err >&5
57727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57728 (exit $ac_status); } >/dev/null; then
57729 if test -s conftest.err; then
57730 ac_cpp_err=$ac_c_preproc_warn_flag
57731 else
57732 ac_cpp_err=
57734 else
57735 ac_cpp_err=yes
57737 if test -z "$ac_cpp_err"; then
57738 ac_header_preproc=yes
57739 else
57740 echo "$as_me: failed program was:" >&5
57741 sed 's/^/| /' conftest.$ac_ext >&5
57743 ac_header_preproc=no
57745 rm -f conftest.err conftest.$ac_ext
57746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57747 echo "${ECHO_T}$ac_header_preproc" >&6
57749 # So? What about this header?
57750 case $ac_header_compiler:$ac_header_preproc in
57751 yes:no )
57752 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57753 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57754 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57755 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57757 cat <<\_ASBOX
57758 ## ------------------------------------ ##
57759 ## Report this to bug-autoconf@gnu.org. ##
57760 ## ------------------------------------ ##
57761 _ASBOX
57763 sed "s/^/$as_me: WARNING: /" >&2
57765 no:yes )
57766 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57767 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57768 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57769 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57770 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57771 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57773 cat <<\_ASBOX
57774 ## ------------------------------------ ##
57775 ## Report this to bug-autoconf@gnu.org. ##
57776 ## ------------------------------------ ##
57777 _ASBOX
57779 sed "s/^/$as_me: WARNING: /" >&2
57781 esac
57782 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57783 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57784 if test "${ac_cv_header_langinfo_h+set}" = set; then
57785 echo $ECHO_N "(cached) $ECHO_C" >&6
57786 else
57787 ac_cv_header_langinfo_h=$ac_header_preproc
57789 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57790 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57793 if test $ac_cv_header_langinfo_h = yes; then
57794 ac_has_langinfo_h=yes
57795 else
57796 ac_has_langinfo_h=no
57801 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57802 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57803 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57804 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57805 echo $ECHO_N "(cached) $ECHO_C" >&6
57806 else
57807 ac_check_lib_save_LIBS=$LIBS
57808 LIBS="-liconv $LIBS"
57809 if test x$gcc_no_link = xyes; then
57810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57812 { (exit 1); exit 1; }; }
57814 cat >conftest.$ac_ext <<_ACEOF
57815 #line $LINENO "configure"
57816 /* confdefs.h. */
57817 _ACEOF
57818 cat confdefs.h >>conftest.$ac_ext
57819 cat >>conftest.$ac_ext <<_ACEOF
57820 /* end confdefs.h. */
57822 /* Override any gcc2 internal prototype to avoid an error. */
57823 #ifdef __cplusplus
57824 extern "C"
57825 #endif
57826 /* We use char because int might match the return type of a gcc2
57827 builtin and then its argument prototype would still apply. */
57828 char iconv ();
57830 main ()
57832 iconv ();
57834 return 0;
57836 _ACEOF
57837 rm -f conftest.$ac_objext conftest$ac_exeext
57838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57839 (eval $ac_link) 2>&5
57840 ac_status=$?
57841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57842 (exit $ac_status); } &&
57843 { ac_try='test -s conftest$ac_exeext'
57844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57845 (eval $ac_try) 2>&5
57846 ac_status=$?
57847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57848 (exit $ac_status); }; }; then
57849 ac_cv_lib_iconv_iconv=yes
57850 else
57851 echo "$as_me: failed program was:" >&5
57852 sed 's/^/| /' conftest.$ac_ext >&5
57854 ac_cv_lib_iconv_iconv=no
57856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57857 LIBS=$ac_check_lib_save_LIBS
57859 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57860 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57861 if test $ac_cv_lib_iconv_iconv = yes; then
57862 libiconv="-liconv"
57865 ac_save_LIBS="$LIBS"
57866 LIBS="$LIBS $libiconv"
57872 for ac_func in iconv_open iconv_close iconv nl_langinfo
57874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57875 echo "$as_me:$LINENO: checking for $ac_func" >&5
57876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57877 if eval "test \"\${$as_ac_var+set}\" = set"; then
57878 echo $ECHO_N "(cached) $ECHO_C" >&6
57879 else
57880 if test x$gcc_no_link = xyes; then
57881 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57882 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57883 { (exit 1); exit 1; }; }
57885 cat >conftest.$ac_ext <<_ACEOF
57886 #line $LINENO "configure"
57887 /* confdefs.h. */
57888 _ACEOF
57889 cat confdefs.h >>conftest.$ac_ext
57890 cat >>conftest.$ac_ext <<_ACEOF
57891 /* end confdefs.h. */
57892 /* System header to define __stub macros and hopefully few prototypes,
57893 which can conflict with char $ac_func (); below.
57894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57895 <limits.h> exists even on freestanding compilers. */
57896 #ifdef __STDC__
57897 # include <limits.h>
57898 #else
57899 # include <assert.h>
57900 #endif
57901 /* Override any gcc2 internal prototype to avoid an error. */
57902 #ifdef __cplusplus
57903 extern "C"
57905 #endif
57906 /* We use char because int might match the return type of a gcc2
57907 builtin and then its argument prototype would still apply. */
57908 char $ac_func ();
57909 /* The GNU C library defines this for functions which it implements
57910 to always fail with ENOSYS. Some functions are actually named
57911 something starting with __ and the normal name is an alias. */
57912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57913 choke me
57914 #else
57915 char (*f) () = $ac_func;
57916 #endif
57917 #ifdef __cplusplus
57919 #endif
57922 main ()
57924 return f != $ac_func;
57926 return 0;
57928 _ACEOF
57929 rm -f conftest.$ac_objext conftest$ac_exeext
57930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57931 (eval $ac_link) 2>&5
57932 ac_status=$?
57933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57934 (exit $ac_status); } &&
57935 { ac_try='test -s conftest$ac_exeext'
57936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57937 (eval $ac_try) 2>&5
57938 ac_status=$?
57939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57940 (exit $ac_status); }; }; then
57941 eval "$as_ac_var=yes"
57942 else
57943 echo "$as_me: failed program was:" >&5
57944 sed 's/^/| /' conftest.$ac_ext >&5
57946 eval "$as_ac_var=no"
57948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57952 if test `eval echo '${'$as_ac_var'}'` = yes; then
57953 cat >>confdefs.h <<_ACEOF
57954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57955 _ACEOF
57956 ac_XPG2funcs=yes
57957 else
57958 ac_XPG2funcs=no
57960 done
57963 LIBS="$ac_save_LIBS"
57965 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57966 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57967 if test x"$ac_has_iconv_h" = xyes &&
57968 test x"$ac_has_langinfo_h" = xyes &&
57969 test x"$ac_XPG2funcs" = xyes;
57970 then
57971 ac_XPG2_wchar_t=yes
57972 else
57973 ac_XPG2_wchar_t=no
57975 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57976 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57978 # At the moment, only enable wchar_t specializations if all the
57979 # above support is present.
57980 if test x"$ac_isoC99_wchar_t" = xyes &&
57981 test x"$ac_XPG2_wchar_t" = xyes;
57982 then
57983 cat >>confdefs.h <<\_ACEOF
57984 #define _GLIBCXX_USE_WCHAR_T 1
57985 _ACEOF
57987 enable_wchar_t=yes
57990 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57991 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57992 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57993 echo "${ECHO_T}$enable_wchar_t" >&6
57995 cat >>confdefs.h <<\_ACEOF
57996 #define HAVE_COSF 1
57997 _ACEOF
57999 cat >>confdefs.h <<\_ACEOF
58000 #define HAVE_COSL 1
58001 _ACEOF
58003 cat >>confdefs.h <<\_ACEOF
58004 #define HAVE_COSHF 1
58005 _ACEOF
58007 cat >>confdefs.h <<\_ACEOF
58008 #define HAVE_COSHL 1
58009 _ACEOF
58011 cat >>confdefs.h <<\_ACEOF
58012 #define HAVE_LOGF 1
58013 _ACEOF
58015 cat >>confdefs.h <<\_ACEOF
58016 #define HAVE_LOGL 1
58017 _ACEOF
58019 cat >>confdefs.h <<\_ACEOF
58020 #define HAVE_LOG10F 1
58021 _ACEOF
58023 cat >>confdefs.h <<\_ACEOF
58024 #define HAVE_LOG10L 1
58025 _ACEOF
58027 cat >>confdefs.h <<\_ACEOF
58028 #define HAVE_SINF 1
58029 _ACEOF
58031 cat >>confdefs.h <<\_ACEOF
58032 #define HAVE_SINL 1
58033 _ACEOF
58035 cat >>confdefs.h <<\_ACEOF
58036 #define HAVE_SINHF 1
58037 _ACEOF
58039 cat >>confdefs.h <<\_ACEOF
58040 #define HAVE_SINHL 1
58041 _ACEOF
58044 *-solaris*)
58045 #case "$target" in
58046 # *-solaris2.5)
58047 # os_include_dir="os/solaris/solaris2.5"
58048 # ;;
58049 # *-solaris2.6)
58050 # os_include_dir="os/solaris/solaris2.6"
58051 # ;;
58052 # *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
58053 # os_include_dir="os/solaris/solaris2.7"
58054 # ;;
58055 #esac
58056 cat >>confdefs.h <<\_ACEOF
58057 #define HAVE_STRTOF 1
58058 _ACEOF
58060 cat >>confdefs.h <<\_ACEOF
58061 #define HAVE_STRTOLD 1
58062 _ACEOF
58064 cat >>confdefs.h <<\_ACEOF
58065 #define HAVE_MMAP 1
58066 _ACEOF
58068 cat >>confdefs.h <<\_ACEOF
58069 #define HAVE_COPYSIGN 1
58070 _ACEOF
58072 cat >>confdefs.h <<\_ACEOF
58073 #define HAVE_ISNAN 1
58074 _ACEOF
58076 cat >>confdefs.h <<\_ACEOF
58077 #define HAVE_ISNANF 1
58078 _ACEOF
58080 cat >>confdefs.h <<\_ACEOF
58081 #define HAVE_MODFF 1
58082 _ACEOF
58084 cat >>confdefs.h <<\_ACEOF
58085 #define HAVE_HYPOT 1
58086 _ACEOF
58089 *-windiss*)
58090 #os_include_dir="os/windiss"
58091 cat >>confdefs.h <<\_ACEOF
58092 #define HAVE_ACOSF 1
58093 _ACEOF
58095 cat >>confdefs.h <<\_ACEOF
58096 #define HAVE_ASINF 1
58097 _ACEOF
58099 cat >>confdefs.h <<\_ACEOF
58100 #define HAVE_ATAN2F 1
58101 _ACEOF
58103 cat >>confdefs.h <<\_ACEOF
58104 #define HAVE_ATANF 1
58105 _ACEOF
58107 cat >>confdefs.h <<\_ACEOF
58108 #define HAVE_CEILF 1
58109 _ACEOF
58111 cat >>confdefs.h <<\_ACEOF
58112 #define HAVE_COPYSIGN 1
58113 _ACEOF
58115 cat >>confdefs.h <<\_ACEOF
58116 #define HAVE_COPYSIGNF 1
58117 _ACEOF
58119 cat >>confdefs.h <<\_ACEOF
58120 #define HAVE_COSF 1
58121 _ACEOF
58123 cat >>confdefs.h <<\_ACEOF
58124 #define HAVE_COSHF 1
58125 _ACEOF
58127 cat >>confdefs.h <<\_ACEOF
58128 #define HAVE_EXPF 1
58129 _ACEOF
58131 cat >>confdefs.h <<\_ACEOF
58132 #define HAVE_FABSF 1
58133 _ACEOF
58135 cat >>confdefs.h <<\_ACEOF
58136 #define HAVE_FLOORF 1
58137 _ACEOF
58139 cat >>confdefs.h <<\_ACEOF
58140 #define HAVE_FMODF 1
58141 _ACEOF
58143 cat >>confdefs.h <<\_ACEOF
58144 #define HAVE_FREXPF 1
58145 _ACEOF
58147 cat >>confdefs.h <<\_ACEOF
58148 #define HAVE_LDEXPF 1
58149 _ACEOF
58151 cat >>confdefs.h <<\_ACEOF
58152 #define HAVE_LOG10F 1
58153 _ACEOF
58155 cat >>confdefs.h <<\_ACEOF
58156 #define HAVE_LOGF 1
58157 _ACEOF
58159 cat >>confdefs.h <<\_ACEOF
58160 #define HAVE_MODFF 1
58161 _ACEOF
58163 cat >>confdefs.h <<\_ACEOF
58164 #define HAVE_POWF 1
58165 _ACEOF
58167 cat >>confdefs.h <<\_ACEOF
58168 #define HAVE_SINF 1
58169 _ACEOF
58171 cat >>confdefs.h <<\_ACEOF
58172 #define HAVE_SINHF 1
58173 _ACEOF
58175 cat >>confdefs.h <<\_ACEOF
58176 #define HAVE_SQRTF 1
58177 _ACEOF
58179 cat >>confdefs.h <<\_ACEOF
58180 #define HAVE_TANF 1
58181 _ACEOF
58183 cat >>confdefs.h <<\_ACEOF
58184 #define HAVE_TANHF 1
58185 _ACEOF
58189 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
58190 echo "$as_me: error: No support for this host/target combination." >&2;}
58191 { (exit 1); exit 1; }; }
58193 esac
58198 # At some point, we should differentiate between architectures
58199 # like x86, which have long double versions, and alpha/powerpc/etc.,
58200 # which don't. For the time being, punt.
58201 if test x"long_double_math_on_this_cpu" = x"yes"; then
58202 cat >>confdefs.h <<\_ACEOF
58203 #define HAVE_ACOSL 1
58204 _ACEOF
58206 cat >>confdefs.h <<\_ACEOF
58207 #define HAVE_ASINL 1
58208 _ACEOF
58210 cat >>confdefs.h <<\_ACEOF
58211 #define HAVE_ATAN2L 1
58212 _ACEOF
58214 cat >>confdefs.h <<\_ACEOF
58215 #define HAVE_ATANL 1
58216 _ACEOF
58218 cat >>confdefs.h <<\_ACEOF
58219 #define HAVE_CEILL 1
58220 _ACEOF
58222 cat >>confdefs.h <<\_ACEOF
58223 #define HAVE_COPYSIGNL 1
58224 _ACEOF
58226 cat >>confdefs.h <<\_ACEOF
58227 #define HAVE_COSL 1
58228 _ACEOF
58230 cat >>confdefs.h <<\_ACEOF
58231 #define HAVE_COSHL 1
58232 _ACEOF
58234 cat >>confdefs.h <<\_ACEOF
58235 #define HAVE_EXPL 1
58236 _ACEOF
58238 cat >>confdefs.h <<\_ACEOF
58239 #define HAVE_FABSL 1
58240 _ACEOF
58242 cat >>confdefs.h <<\_ACEOF
58243 #define HAVE_FLOORL 1
58244 _ACEOF
58246 cat >>confdefs.h <<\_ACEOF
58247 #define HAVE_FMODL 1
58248 _ACEOF
58250 cat >>confdefs.h <<\_ACEOF
58251 #define HAVE_FREXPL 1
58252 _ACEOF
58254 cat >>confdefs.h <<\_ACEOF
58255 #define HAVE_LDEXPL 1
58256 _ACEOF
58258 cat >>confdefs.h <<\_ACEOF
58259 #define HAVE_LOG10L 1
58260 _ACEOF
58262 cat >>confdefs.h <<\_ACEOF
58263 #define HAVE_LOGL 1
58264 _ACEOF
58266 cat >>confdefs.h <<\_ACEOF
58267 #define HAVE_MODFL 1
58268 _ACEOF
58270 cat >>confdefs.h <<\_ACEOF
58271 #define HAVE_POWL 1
58272 _ACEOF
58274 cat >>confdefs.h <<\_ACEOF
58275 #define HAVE_SINCOSL 1
58276 _ACEOF
58278 cat >>confdefs.h <<\_ACEOF
58279 #define HAVE_SINL 1
58280 _ACEOF
58282 cat >>confdefs.h <<\_ACEOF
58283 #define HAVE_SINHL 1
58284 _ACEOF
58286 cat >>confdefs.h <<\_ACEOF
58287 #define HAVE_SQRTL 1
58288 _ACEOF
58290 cat >>confdefs.h <<\_ACEOF
58291 #define HAVE_TANL 1
58292 _ACEOF
58294 cat >>confdefs.h <<\_ACEOF
58295 #define HAVE_TANHL 1
58296 _ACEOF
58302 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
58305 # Check whether --enable-symvers or --disable-symvers was given.
58306 if test "${enable_symvers+set}" = set; then
58307 enableval="$enable_symvers"
58309 case "$enableval" in
58310 yes|no|gnu) ;;
58311 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
58312 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
58313 { (exit 1); exit 1; }; } ;;
58314 esac
58316 else
58317 enable_symvers=yes
58321 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
58322 # don't know enough about $LD to do tricks...
58324 # FIXME The following test is too strict, in theory.
58325 if test $enable_shared = no ||
58326 test "x$LD" = x ||
58327 test x$glibcxx_gnu_ld_version = x; then
58328 enable_symvers=no
58331 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
58332 if test $enable_symvers != no; then
58333 echo "$as_me:$LINENO: checking for shared libgcc" >&5
58334 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
58335 ac_save_CFLAGS="$CFLAGS"
58336 CFLAGS=' -lgcc_s'
58337 if test x$gcc_no_link = xyes; then
58338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58340 { (exit 1); exit 1; }; }
58342 cat >conftest.$ac_ext <<_ACEOF
58343 #line $LINENO "configure"
58344 /* confdefs.h. */
58345 _ACEOF
58346 cat confdefs.h >>conftest.$ac_ext
58347 cat >>conftest.$ac_ext <<_ACEOF
58348 /* end confdefs.h. */
58351 main ()
58353 return 0;
58355 return 0;
58357 _ACEOF
58358 rm -f conftest.$ac_objext conftest$ac_exeext
58359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58360 (eval $ac_link) 2>&5
58361 ac_status=$?
58362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58363 (exit $ac_status); } &&
58364 { ac_try='test -s conftest$ac_exeext'
58365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58366 (eval $ac_try) 2>&5
58367 ac_status=$?
58368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58369 (exit $ac_status); }; }; then
58370 glibcxx_shared_libgcc=yes
58371 else
58372 echo "$as_me: failed program was:" >&5
58373 sed 's/^/| /' conftest.$ac_ext >&5
58375 glibcxx_shared_libgcc=no
58377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58378 CFLAGS="$ac_save_CFLAGS"
58379 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
58380 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
58383 # For GNU ld, we need at least this version. The format is described in
58384 # GLIBCXX_CHECK_LINKER_FEATURES above.
58385 glibcxx_min_gnu_ld_version=21400
58386 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
58388 # Check to see if unspecified "yes" value can win, given results above.
58389 # Change "yes" into either "no" or a style name.
58390 if test $enable_symvers = yes; then
58391 if test $with_gnu_ld = yes &&
58392 test $glibcxx_shared_libgcc = yes;
58393 then
58394 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
58395 enable_symvers=gnu
58396 else
58397 # The right tools, the right setup, but too old. Fallbacks?
58398 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
58399 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
58400 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
58401 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
58402 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
58403 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
58404 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
58405 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
58406 if test $glibcxx_gnu_ld_version -ge 21200 ; then
58407 # Globbing fix is present, proper block support is not.
58408 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58409 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58410 enable_symvers=no
58411 else
58412 # 2.11 or older.
58413 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58414 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58415 enable_symvers=no
58418 else
58419 # just fail for now
58420 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
58421 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
58422 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
58423 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
58424 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
58425 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
58426 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58427 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58428 enable_symvers=no
58432 # Everything parsed; figure out what file to use.
58433 case $enable_symvers in
58435 SYMVER_MAP=config/linker-map.dummy
58437 gnu)
58438 SYMVER_MAP=config/linker-map.gnu
58439 cat >>confdefs.h <<\_ACEOF
58440 #define _GLIBCXX_SYMVER 1
58441 _ACEOF
58444 esac
58449 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
58450 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
58453 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
58455 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
58456 # Do checks for memory limit functions.
58458 setrlimit_have_headers=yes
58462 for ac_header in unistd.h sys/time.h sys/resource.h
58464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58466 echo "$as_me:$LINENO: checking for $ac_header" >&5
58467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58469 echo $ECHO_N "(cached) $ECHO_C" >&6
58471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58473 else
58474 # Is the header compilable?
58475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58477 cat >conftest.$ac_ext <<_ACEOF
58478 #line $LINENO "configure"
58479 /* confdefs.h. */
58480 _ACEOF
58481 cat confdefs.h >>conftest.$ac_ext
58482 cat >>conftest.$ac_ext <<_ACEOF
58483 /* end confdefs.h. */
58484 $ac_includes_default
58485 #include <$ac_header>
58486 _ACEOF
58487 rm -f conftest.$ac_objext
58488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58489 (eval $ac_compile) 2>&5
58490 ac_status=$?
58491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58492 (exit $ac_status); } &&
58493 { ac_try='test -s conftest.$ac_objext'
58494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58495 (eval $ac_try) 2>&5
58496 ac_status=$?
58497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58498 (exit $ac_status); }; }; then
58499 ac_header_compiler=yes
58500 else
58501 echo "$as_me: failed program was:" >&5
58502 sed 's/^/| /' conftest.$ac_ext >&5
58504 ac_header_compiler=no
58506 rm -f conftest.$ac_objext conftest.$ac_ext
58507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58508 echo "${ECHO_T}$ac_header_compiler" >&6
58510 # Is the header present?
58511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58513 cat >conftest.$ac_ext <<_ACEOF
58514 #line $LINENO "configure"
58515 /* confdefs.h. */
58516 _ACEOF
58517 cat confdefs.h >>conftest.$ac_ext
58518 cat >>conftest.$ac_ext <<_ACEOF
58519 /* end confdefs.h. */
58520 #include <$ac_header>
58521 _ACEOF
58522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58524 ac_status=$?
58525 grep -v '^ *+' conftest.er1 >conftest.err
58526 rm -f conftest.er1
58527 cat conftest.err >&5
58528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58529 (exit $ac_status); } >/dev/null; then
58530 if test -s conftest.err; then
58531 ac_cpp_err=$ac_c_preproc_warn_flag
58532 else
58533 ac_cpp_err=
58535 else
58536 ac_cpp_err=yes
58538 if test -z "$ac_cpp_err"; then
58539 ac_header_preproc=yes
58540 else
58541 echo "$as_me: failed program was:" >&5
58542 sed 's/^/| /' conftest.$ac_ext >&5
58544 ac_header_preproc=no
58546 rm -f conftest.err conftest.$ac_ext
58547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58548 echo "${ECHO_T}$ac_header_preproc" >&6
58550 # So? What about this header?
58551 case $ac_header_compiler:$ac_header_preproc in
58552 yes:no )
58553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58558 cat <<\_ASBOX
58559 ## ------------------------------------ ##
58560 ## Report this to bug-autoconf@gnu.org. ##
58561 ## ------------------------------------ ##
58562 _ASBOX
58564 sed "s/^/$as_me: WARNING: /" >&2
58566 no:yes )
58567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58574 cat <<\_ASBOX
58575 ## ------------------------------------ ##
58576 ## Report this to bug-autoconf@gnu.org. ##
58577 ## ------------------------------------ ##
58578 _ASBOX
58580 sed "s/^/$as_me: WARNING: /" >&2
58582 esac
58583 echo "$as_me:$LINENO: checking for $ac_header" >&5
58584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58586 echo $ECHO_N "(cached) $ECHO_C" >&6
58587 else
58588 eval "$as_ac_Header=$ac_header_preproc"
58590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58595 cat >>confdefs.h <<_ACEOF
58596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58597 _ACEOF
58599 else
58600 setrlimit_have_headers=no
58603 done
58605 # If don't have the headers, then we can't run the tests now, and we
58606 # won't be seeing any of these during testsuite compilation.
58607 if test $setrlimit_have_headers = yes; then
58608 # Can't do these in a loop, else the resulting syntax is wrong.
58610 cat >conftest.$ac_ext <<_ACEOF
58611 #line $LINENO "configure"
58612 /* confdefs.h. */
58613 _ACEOF
58614 cat confdefs.h >>conftest.$ac_ext
58615 cat >>conftest.$ac_ext <<_ACEOF
58616 /* end confdefs.h. */
58617 #include <unistd.h>
58618 #include <sys/time.h>
58619 #include <sys/resource.h>
58622 main ()
58624 int f = RLIMIT_DATA ;
58626 return 0;
58628 _ACEOF
58629 rm -f conftest.$ac_objext
58630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58631 (eval $ac_compile) 2>&5
58632 ac_status=$?
58633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58634 (exit $ac_status); } &&
58635 { ac_try='test -s conftest.$ac_objext'
58636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58637 (eval $ac_try) 2>&5
58638 ac_status=$?
58639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58640 (exit $ac_status); }; }; then
58641 glibcxx_mresult=1
58642 else
58643 echo "$as_me: failed program was:" >&5
58644 sed 's/^/| /' conftest.$ac_ext >&5
58646 glibcxx_mresult=0
58648 rm -f conftest.$ac_objext conftest.$ac_ext
58650 cat >>confdefs.h <<_ACEOF
58651 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
58652 _ACEOF
58656 cat >conftest.$ac_ext <<_ACEOF
58657 #line $LINENO "configure"
58658 /* confdefs.h. */
58659 _ACEOF
58660 cat confdefs.h >>conftest.$ac_ext
58661 cat >>conftest.$ac_ext <<_ACEOF
58662 /* end confdefs.h. */
58663 #include <unistd.h>
58664 #include <sys/time.h>
58665 #include <sys/resource.h>
58668 main ()
58670 int f = RLIMIT_RSS ;
58672 return 0;
58674 _ACEOF
58675 rm -f conftest.$ac_objext
58676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58677 (eval $ac_compile) 2>&5
58678 ac_status=$?
58679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58680 (exit $ac_status); } &&
58681 { ac_try='test -s conftest.$ac_objext'
58682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58683 (eval $ac_try) 2>&5
58684 ac_status=$?
58685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58686 (exit $ac_status); }; }; then
58687 glibcxx_mresult=1
58688 else
58689 echo "$as_me: failed program was:" >&5
58690 sed 's/^/| /' conftest.$ac_ext >&5
58692 glibcxx_mresult=0
58694 rm -f conftest.$ac_objext conftest.$ac_ext
58696 cat >>confdefs.h <<_ACEOF
58697 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
58698 _ACEOF
58702 cat >conftest.$ac_ext <<_ACEOF
58703 #line $LINENO "configure"
58704 /* confdefs.h. */
58705 _ACEOF
58706 cat confdefs.h >>conftest.$ac_ext
58707 cat >>conftest.$ac_ext <<_ACEOF
58708 /* end confdefs.h. */
58709 #include <unistd.h>
58710 #include <sys/time.h>
58711 #include <sys/resource.h>
58714 main ()
58716 int f = RLIMIT_VMEM ;
58718 return 0;
58720 _ACEOF
58721 rm -f conftest.$ac_objext
58722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58723 (eval $ac_compile) 2>&5
58724 ac_status=$?
58725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58726 (exit $ac_status); } &&
58727 { ac_try='test -s conftest.$ac_objext'
58728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58729 (eval $ac_try) 2>&5
58730 ac_status=$?
58731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58732 (exit $ac_status); }; }; then
58733 glibcxx_mresult=1
58734 else
58735 echo "$as_me: failed program was:" >&5
58736 sed 's/^/| /' conftest.$ac_ext >&5
58738 glibcxx_mresult=0
58740 rm -f conftest.$ac_objext conftest.$ac_ext
58742 cat >>confdefs.h <<_ACEOF
58743 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
58744 _ACEOF
58748 cat >conftest.$ac_ext <<_ACEOF
58749 #line $LINENO "configure"
58750 /* confdefs.h. */
58751 _ACEOF
58752 cat confdefs.h >>conftest.$ac_ext
58753 cat >>conftest.$ac_ext <<_ACEOF
58754 /* end confdefs.h. */
58755 #include <unistd.h>
58756 #include <sys/time.h>
58757 #include <sys/resource.h>
58760 main ()
58762 int f = RLIMIT_AS ;
58764 return 0;
58766 _ACEOF
58767 rm -f conftest.$ac_objext
58768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58769 (eval $ac_compile) 2>&5
58770 ac_status=$?
58771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58772 (exit $ac_status); } &&
58773 { ac_try='test -s conftest.$ac_objext'
58774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58775 (eval $ac_try) 2>&5
58776 ac_status=$?
58777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58778 (exit $ac_status); }; }; then
58779 glibcxx_mresult=1
58780 else
58781 echo "$as_me: failed program was:" >&5
58782 sed 's/^/| /' conftest.$ac_ext >&5
58784 glibcxx_mresult=0
58786 rm -f conftest.$ac_objext conftest.$ac_ext
58788 cat >>confdefs.h <<_ACEOF
58789 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
58790 _ACEOF
58794 # Check for rlimit, setrlimit.
58795 if test "${ac_setrlimit+set}" = set; then
58796 echo $ECHO_N "(cached) $ECHO_C" >&6
58797 else
58799 cat >conftest.$ac_ext <<_ACEOF
58800 #line $LINENO "configure"
58801 /* confdefs.h. */
58802 _ACEOF
58803 cat confdefs.h >>conftest.$ac_ext
58804 cat >>conftest.$ac_ext <<_ACEOF
58805 /* end confdefs.h. */
58806 #include <unistd.h>
58807 #include <sys/time.h>
58808 #include <sys/resource.h>
58811 main ()
58813 struct rlimit r;
58814 setrlimit(0, &r);
58816 return 0;
58818 _ACEOF
58819 rm -f conftest.$ac_objext
58820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58821 (eval $ac_compile) 2>&5
58822 ac_status=$?
58823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58824 (exit $ac_status); } &&
58825 { ac_try='test -s conftest.$ac_objext'
58826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58827 (eval $ac_try) 2>&5
58828 ac_status=$?
58829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58830 (exit $ac_status); }; }; then
58831 ac_setrlimit=yes
58832 else
58833 echo "$as_me: failed program was:" >&5
58834 sed 's/^/| /' conftest.$ac_ext >&5
58836 ac_setrlimit=no
58838 rm -f conftest.$ac_objext conftest.$ac_ext
58844 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
58845 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
58846 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
58847 ac_mem_limits=yes
58848 cat >>confdefs.h <<\_ACEOF
58849 #define _GLIBCXX_MEM_LIMITS 1
58850 _ACEOF
58852 else
58853 ac_mem_limits=no
58855 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
58856 echo "${ECHO_T}$ac_mem_limits" >&6
58859 # Look for setenv, so that extended locale tests can be performed.
58861 echo "$as_me:$LINENO: checking for setenv declaration" >&5
58862 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
58863 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
58864 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
58865 echo $ECHO_N "(cached) $ECHO_C" >&6
58866 else
58870 ac_ext=cc
58871 ac_cpp='$CXXCPP $CPPFLAGS'
58872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
58876 cat >conftest.$ac_ext <<_ACEOF
58877 #line $LINENO "configure"
58878 /* confdefs.h. */
58879 _ACEOF
58880 cat confdefs.h >>conftest.$ac_ext
58881 cat >>conftest.$ac_ext <<_ACEOF
58882 /* end confdefs.h. */
58883 #include <stdlib.h>
58885 main ()
58887 setenv(0, 0, 0);
58889 return 0;
58891 _ACEOF
58892 rm -f conftest.$ac_objext
58893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58894 (eval $ac_compile) 2>&5
58895 ac_status=$?
58896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58897 (exit $ac_status); } &&
58898 { ac_try='test -s conftest.$ac_objext'
58899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58900 (eval $ac_try) 2>&5
58901 ac_status=$?
58902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58903 (exit $ac_status); }; }; then
58904 glibcxx_cv_func_setenv_use=yes
58905 else
58906 echo "$as_me: failed program was:" >&5
58907 sed 's/^/| /' conftest.$ac_ext >&5
58909 glibcxx_cv_func_setenv_use=no
58911 rm -f conftest.$ac_objext conftest.$ac_ext
58912 ac_ext=c
58913 ac_cpp='$CPP $CPPFLAGS'
58914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
58922 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
58923 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
58924 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
58926 for ac_func in setenv
58928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58929 echo "$as_me:$LINENO: checking for $ac_func" >&5
58930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58931 if eval "test \"\${$as_ac_var+set}\" = set"; then
58932 echo $ECHO_N "(cached) $ECHO_C" >&6
58933 else
58934 if test x$gcc_no_link = xyes; then
58935 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58936 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58937 { (exit 1); exit 1; }; }
58939 cat >conftest.$ac_ext <<_ACEOF
58940 #line $LINENO "configure"
58941 /* confdefs.h. */
58942 _ACEOF
58943 cat confdefs.h >>conftest.$ac_ext
58944 cat >>conftest.$ac_ext <<_ACEOF
58945 /* end confdefs.h. */
58946 /* System header to define __stub macros and hopefully few prototypes,
58947 which can conflict with char $ac_func (); below.
58948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58949 <limits.h> exists even on freestanding compilers. */
58950 #ifdef __STDC__
58951 # include <limits.h>
58952 #else
58953 # include <assert.h>
58954 #endif
58955 /* Override any gcc2 internal prototype to avoid an error. */
58956 #ifdef __cplusplus
58957 extern "C"
58959 #endif
58960 /* We use char because int might match the return type of a gcc2
58961 builtin and then its argument prototype would still apply. */
58962 char $ac_func ();
58963 /* The GNU C library defines this for functions which it implements
58964 to always fail with ENOSYS. Some functions are actually named
58965 something starting with __ and the normal name is an alias. */
58966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58967 choke me
58968 #else
58969 char (*f) () = $ac_func;
58970 #endif
58971 #ifdef __cplusplus
58973 #endif
58976 main ()
58978 return f != $ac_func;
58980 return 0;
58982 _ACEOF
58983 rm -f conftest.$ac_objext conftest$ac_exeext
58984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58985 (eval $ac_link) 2>&5
58986 ac_status=$?
58987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58988 (exit $ac_status); } &&
58989 { ac_try='test -s conftest$ac_exeext'
58990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58991 (eval $ac_try) 2>&5
58992 ac_status=$?
58993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58994 (exit $ac_status); }; }; then
58995 eval "$as_ac_var=yes"
58996 else
58997 echo "$as_me: failed program was:" >&5
58998 sed 's/^/| /' conftest.$ac_ext >&5
59000 eval "$as_ac_var=no"
59002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59006 if test `eval echo '${'$as_ac_var'}'` = yes; then
59007 cat >>confdefs.h <<_ACEOF
59008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59009 _ACEOF
59012 done
59017 if test $enable_symvers = no; then
59018 enable_abi_check=no
59019 else
59020 case "$host" in
59021 *-*-cygwin*)
59022 enable_abi_check=no ;;
59024 enable_abi_check=yes ;;
59025 esac
59027 else
59028 # Only build this as native, since automake does not understand
59029 # CXX_FOR_BUILD.
59030 enable_abi_check=no
59033 # Export file names for ABI checking.
59034 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
59041 # Propagate the target-specific source directories through the build chain.
59042 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
59043 # uses it, and it only gets used in this file.)
59044 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
59045 OS_INC_SRCDIR=config/${os_include_dir}
59046 FPOS_INC_SRCDIR=config/${fpos_include_dir}
59051 # Determine cross-compile flags and AM_CONDITIONALs.
59052 #AC_SUBST(GLIBCXX_IS_NATIVE)
59053 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
59054 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
59055 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
59058 if test $is_hosted = yes; then
59059 GLIBCXX_HOSTED_TRUE=
59060 GLIBCXX_HOSTED_FALSE='#'
59061 else
59062 GLIBCXX_HOSTED_TRUE='#'
59063 GLIBCXX_HOSTED_FALSE=
59069 if test $enable_libstdcxx_pch = yes; then
59070 GLIBCXX_BUILD_PCH_TRUE=
59071 GLIBCXX_BUILD_PCH_FALSE='#'
59072 else
59073 GLIBCXX_BUILD_PCH_TRUE='#'
59074 GLIBCXX_BUILD_PCH_FALSE=
59080 if test $enable_cheaders = c; then
59081 GLIBCXX_C_HEADERS_C_TRUE=
59082 GLIBCXX_C_HEADERS_C_FALSE='#'
59083 else
59084 GLIBCXX_C_HEADERS_C_TRUE='#'
59085 GLIBCXX_C_HEADERS_C_FALSE=
59091 if test $enable_cheaders = c_std; then
59092 GLIBCXX_C_HEADERS_C_STD_TRUE=
59093 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
59094 else
59095 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
59096 GLIBCXX_C_HEADERS_C_STD_FALSE=
59102 if test $c_compatibility = yes; then
59103 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
59104 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
59105 else
59106 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
59107 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
59113 if test $enable_libstdcxx_debug = yes; then
59114 GLIBCXX_BUILD_DEBUG_TRUE=
59115 GLIBCXX_BUILD_DEBUG_FALSE='#'
59116 else
59117 GLIBCXX_BUILD_DEBUG_TRUE='#'
59118 GLIBCXX_BUILD_DEBUG_FALSE=
59124 if test $enable_symvers != no; then
59125 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
59126 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
59127 else
59128 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
59129 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
59135 if test $enable_wchar_t = yes; then
59136 GLIBCXX_TEST_WCHAR_T_TRUE=
59137 GLIBCXX_TEST_WCHAR_T_FALSE='#'
59138 else
59139 GLIBCXX_TEST_WCHAR_T_TRUE='#'
59140 GLIBCXX_TEST_WCHAR_T_FALSE=
59146 if test $enable_abi_check = yes; then
59147 GLIBCXX_TEST_ABI_TRUE=
59148 GLIBCXX_TEST_ABI_FALSE='#'
59149 else
59150 GLIBCXX_TEST_ABI_TRUE='#'
59151 GLIBCXX_TEST_ABI_FALSE=
59157 cat >confcache <<\_ACEOF
59158 # This file is a shell script that caches the results of configure
59159 # tests run on this system so they can be shared between configure
59160 # scripts and configure runs, see configure's option --config-cache.
59161 # It is not useful on other systems. If it contains results you don't
59162 # want to keep, you may remove or edit it.
59164 # config.status only pays attention to the cache file if you give it
59165 # the --recheck option to rerun configure.
59167 # `ac_cv_env_foo' variables (set or unset) will be overridden when
59168 # loading this file, other *unset* `ac_cv_foo' will be assigned the
59169 # following values.
59171 _ACEOF
59173 # The following way of writing the cache mishandles newlines in values,
59174 # but we know of no workaround that is simple, portable, and efficient.
59175 # So, don't put newlines in cache variables' values.
59176 # Ultrix sh set writes to stderr and can't be redirected directly,
59177 # and sets the high bit in the cache file unless we assign to the vars.
59179 (set) 2>&1 |
59180 case `(ac_space=' '; set | grep ac_space) 2>&1` in
59181 *ac_space=\ *)
59182 # `set' does not quote correctly, so add quotes (double-quote
59183 # substitution turns \\\\ into \\, and sed turns \\ into \).
59184 sed -n \
59185 "s/'/'\\\\''/g;
59186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59189 # `set' quotes correctly as required by POSIX, so do not add quotes.
59190 sed -n \
59191 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59193 esac;
59195 sed '
59196 t clear
59197 : clear
59198 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59199 t end
59200 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59201 : end' >>confcache
59202 if diff $cache_file confcache >/dev/null 2>&1; then :; else
59203 if test -w $cache_file; then
59204 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59205 cat confcache >$cache_file
59206 else
59207 echo "not updating unwritable cache $cache_file"
59210 rm -f confcache
59212 if test ${multilib} = yes; then
59213 multilib_arg="--enable-multilib"
59214 else
59215 multilib_arg=
59218 # Export all the install information.
59220 glibcxx_toolexecdir=no
59221 glibcxx_toolexeclibdir=no
59222 glibcxx_prefixdir=$prefix
59224 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
59225 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
59227 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
59228 if test "${with_gxx_include_dir+set}" = set; then
59229 withval="$with_gxx_include_dir"
59230 case "$withval" in
59231 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
59232 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
59233 { (exit 1); exit 1; }; } ;;
59234 no) gxx_include_dir=no ;;
59235 *) gxx_include_dir=$withval ;;
59236 esac
59237 else
59238 gxx_include_dir=no
59240 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
59241 echo "${ECHO_T}$gxx_include_dir" >&6
59243 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
59244 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
59245 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
59246 if test "${enable_version_specific_runtime_libs+set}" = set; then
59247 enableval="$enable_version_specific_runtime_libs"
59248 case "$enableval" in
59249 yes) version_specific_libs=yes ;;
59250 no) version_specific_libs=no ;;
59251 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
59252 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
59253 { (exit 1); exit 1; }; };;
59254 esac
59255 else
59256 version_specific_libs=no
59258 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
59259 echo "${ECHO_T}$version_specific_libs" >&6
59261 # Default case for install directory for include files.
59262 if test $version_specific_libs = no && test $gxx_include_dir = no; then
59263 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
59266 # Version-specific runtime libs processing.
59267 if test $version_specific_libs = yes; then
59268 # Need the gcc compiler version to know where to install libraries
59269 # and header files if --enable-version-specific-runtime-libs option
59270 # is selected.
59271 if test x"$gxx_include_dir" = x"no"; then
59272 gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
59274 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
59275 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
59278 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
59279 # Install a library built with a cross compiler in tooldir, not libdir.
59280 if test x"$glibcxx_toolexecdir" = x"no"; then
59281 if test -n "$with_cross_host" &&
59282 test x"$with_cross_host" != x"no"; then
59283 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
59284 glibcxx_toolexeclibdir='${toolexecdir}/lib'
59285 else
59286 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
59287 glibcxx_toolexeclibdir='${libdir}'
59289 multi_os_directory=`$CXX -print-multi-os-directory`
59290 case $multi_os_directory in
59291 .) ;; # Avoid trailing /.
59292 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
59293 esac
59296 echo "$as_me:$LINENO: checking for install location" >&5
59297 echo $ECHO_N "checking for install location... $ECHO_C" >&6
59298 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
59299 echo "${ECHO_T}$gxx_include_dir" >&6
59307 # Export all the include and flag information to Makefiles.
59309 # Used for every C++ compile we perform.
59310 GLIBCXX_INCLUDES="\
59311 -I$glibcxx_builddir/include/$host_alias \
59312 -I$glibcxx_builddir/include \
59313 -I$glibcxx_srcdir/libsupc++"
59315 # For Canadian crosses, pick this up too.
59316 if test $CANADIAN = yes; then
59317 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
59320 # Stuff in the actual top level. Currently only used by libsupc++ to
59321 # get unwind* headers from the gcc dir.
59322 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
59323 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
59325 # Now, export this to all the little Makefiles....
59330 # Optimization flags that are probably a good idea for thrill-seekers. Just
59331 # uncomment the lines below and make, everything else is ready to go...
59332 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
59333 OPTIMIZE_CXXFLAGS=
59336 WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
59340 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
59341 grep "enable shared" > /dev/null;
59342 then
59343 LIBSUPCXX_PICFLAGS=-prefer-pic
59344 else
59345 LIBSUPCXX_PICFLAGS=
59349 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
59351 ac_config_files="$ac_config_files scripts/check_survey"
59353 ac_config_files="$ac_config_files scripts/testsuite_flags"
59356 ac_config_commands="$ac_config_commands default"
59359 cat >confcache <<\_ACEOF
59360 # This file is a shell script that caches the results of configure
59361 # tests run on this system so they can be shared between configure
59362 # scripts and configure runs, see configure's option --config-cache.
59363 # It is not useful on other systems. If it contains results you don't
59364 # want to keep, you may remove or edit it.
59366 # config.status only pays attention to the cache file if you give it
59367 # the --recheck option to rerun configure.
59369 # `ac_cv_env_foo' variables (set or unset) will be overridden when
59370 # loading this file, other *unset* `ac_cv_foo' will be assigned the
59371 # following values.
59373 _ACEOF
59375 # The following way of writing the cache mishandles newlines in values,
59376 # but we know of no workaround that is simple, portable, and efficient.
59377 # So, don't put newlines in cache variables' values.
59378 # Ultrix sh set writes to stderr and can't be redirected directly,
59379 # and sets the high bit in the cache file unless we assign to the vars.
59381 (set) 2>&1 |
59382 case `(ac_space=' '; set | grep ac_space) 2>&1` in
59383 *ac_space=\ *)
59384 # `set' does not quote correctly, so add quotes (double-quote
59385 # substitution turns \\\\ into \\, and sed turns \\ into \).
59386 sed -n \
59387 "s/'/'\\\\''/g;
59388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59391 # `set' quotes correctly as required by POSIX, so do not add quotes.
59392 sed -n \
59393 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59395 esac;
59397 sed '
59398 t clear
59399 : clear
59400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59401 t end
59402 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59403 : end' >>confcache
59404 if diff $cache_file confcache >/dev/null 2>&1; then :; else
59405 if test -w $cache_file; then
59406 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59407 cat confcache >$cache_file
59408 else
59409 echo "not updating unwritable cache $cache_file"
59412 rm -f confcache
59414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
59415 # Let make expand exec_prefix.
59416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
59418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
59419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
59420 # trailing colons and then remove the whole line if VPATH becomes empty
59421 # (actually we leave an empty line to preserve line numbers).
59422 if test "x$srcdir" = x.; then
59423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
59424 s/:*\$(srcdir):*/:/;
59425 s/:*\${srcdir}:*/:/;
59426 s/:*@srcdir@:*/:/;
59427 s/^\([^=]*=[ ]*\):*/\1/;
59428 s/:*$//;
59429 s/^[^=]*=[ ]*$//;
59433 DEFS=-DHAVE_CONFIG_H
59435 ac_libobjs=
59436 ac_ltlibobjs=
59437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
59438 # 1. Remove the extension, and $U if already installed.
59439 ac_i=`echo "$ac_i" |
59440 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
59441 # 2. Add them.
59442 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
59443 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
59444 done
59445 LIBOBJS=$ac_libobjs
59447 LTLIBOBJS=$ac_ltlibobjs
59450 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
59451 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
59452 Usually this means the macro was only invoked conditionally." >&5
59453 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
59454 Usually this means the macro was only invoked conditionally." >&2;}
59455 { (exit 1); exit 1; }; }
59457 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
59458 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
59459 Usually this means the macro was only invoked conditionally." >&5
59460 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
59461 Usually this means the macro was only invoked conditionally." >&2;}
59462 { (exit 1); exit 1; }; }
59464 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
59465 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
59466 Usually this means the macro was only invoked conditionally." >&5
59467 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
59468 Usually this means the macro was only invoked conditionally." >&2;}
59469 { (exit 1); exit 1; }; }
59471 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
59472 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
59473 Usually this means the macro was only invoked conditionally." >&5
59474 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
59475 Usually this means the macro was only invoked conditionally." >&2;}
59476 { (exit 1); exit 1; }; }
59478 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
59479 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
59480 Usually this means the macro was only invoked conditionally." >&5
59481 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
59482 Usually this means the macro was only invoked conditionally." >&2;}
59483 { (exit 1); exit 1; }; }
59485 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
59486 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
59487 Usually this means the macro was only invoked conditionally." >&5
59488 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
59489 Usually this means the macro was only invoked conditionally." >&2;}
59490 { (exit 1); exit 1; }; }
59492 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
59493 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
59494 Usually this means the macro was only invoked conditionally." >&5
59495 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
59496 Usually this means the macro was only invoked conditionally." >&2;}
59497 { (exit 1); exit 1; }; }
59499 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
59500 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
59501 Usually this means the macro was only invoked conditionally." >&5
59502 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
59503 Usually this means the macro was only invoked conditionally." >&2;}
59504 { (exit 1); exit 1; }; }
59506 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
59507 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
59508 Usually this means the macro was only invoked conditionally." >&5
59509 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
59510 Usually this means the macro was only invoked conditionally." >&2;}
59511 { (exit 1); exit 1; }; }
59513 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
59514 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
59515 Usually this means the macro was only invoked conditionally." >&5
59516 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
59517 Usually this means the macro was only invoked conditionally." >&2;}
59518 { (exit 1); exit 1; }; }
59521 : ${CONFIG_STATUS=./config.status}
59522 ac_clean_files_save=$ac_clean_files
59523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
59524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
59525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
59526 cat >$CONFIG_STATUS <<_ACEOF
59527 #! $SHELL
59528 # Generated by $as_me.
59529 # Run this file to recreate the current configuration.
59530 # Compiler output produced by configure, useful for debugging
59531 # configure, is in config.log if it exists.
59533 debug=false
59534 ac_cs_recheck=false
59535 ac_cs_silent=false
59536 SHELL=\${CONFIG_SHELL-$SHELL}
59537 _ACEOF
59539 cat >>$CONFIG_STATUS <<\_ACEOF
59540 ## --------------------- ##
59541 ## M4sh Initialization. ##
59542 ## --------------------- ##
59544 # Be Bourne compatible
59545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
59546 emulate sh
59547 NULLCMD=:
59548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
59549 # is contrary to our usage. Disable this feature.
59550 alias -g '${1+"$@"}'='"$@"'
59551 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
59552 set -o posix
59555 # Support unset when possible.
59556 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
59557 as_unset=unset
59558 else
59559 as_unset=false
59563 # Work around bugs in pre-3.0 UWIN ksh.
59564 $as_unset ENV MAIL MAILPATH
59565 PS1='$ '
59566 PS2='> '
59567 PS4='+ '
59569 # NLS nuisances.
59570 for as_var in \
59571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
59572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
59573 LC_TELEPHONE LC_TIME
59575 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
59576 eval $as_var=C; export $as_var
59577 else
59578 $as_unset $as_var
59580 done
59582 # Required to use basename.
59583 if expr a : '\(a\)' >/dev/null 2>&1; then
59584 as_expr=expr
59585 else
59586 as_expr=false
59589 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59590 as_basename=basename
59591 else
59592 as_basename=false
59596 # Name of the executable.
59597 as_me=`$as_basename "$0" ||
59598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
59599 X"$0" : 'X\(//\)$' \| \
59600 X"$0" : 'X\(/\)$' \| \
59601 . : '\(.\)' 2>/dev/null ||
59602 echo X/"$0" |
59603 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
59604 /^X\/\(\/\/\)$/{ s//\1/; q; }
59605 /^X\/\(\/\).*/{ s//\1/; q; }
59606 s/.*/./; q'`
59609 # PATH needs CR, and LINENO needs CR and PATH.
59610 # Avoid depending upon Character Ranges.
59611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
59612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59614 as_cr_digits='0123456789'
59615 as_cr_alnum=$as_cr_Letters$as_cr_digits
59617 # The user is always right.
59618 if test "${PATH_SEPARATOR+set}" != set; then
59619 echo "#! /bin/sh" >conf$$.sh
59620 echo "exit 0" >>conf$$.sh
59621 chmod +x conf$$.sh
59622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59623 PATH_SEPARATOR=';'
59624 else
59625 PATH_SEPARATOR=:
59627 rm -f conf$$.sh
59631 as_lineno_1=$LINENO
59632 as_lineno_2=$LINENO
59633 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
59634 test "x$as_lineno_1" != "x$as_lineno_2" &&
59635 test "x$as_lineno_3" = "x$as_lineno_2" || {
59636 # Find who we are. Look in the path if we contain no path at all
59637 # relative or not.
59638 case $0 in
59639 *[\\/]* ) as_myself=$0 ;;
59640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59641 for as_dir in $PATH
59643 IFS=$as_save_IFS
59644 test -z "$as_dir" && as_dir=.
59645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
59646 done
59649 esac
59650 # We did not find ourselves, most probably we were run as `sh COMMAND'
59651 # in which case we are not to be found in the path.
59652 if test "x$as_myself" = x; then
59653 as_myself=$0
59655 if test ! -f "$as_myself"; then
59656 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
59657 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
59658 { (exit 1); exit 1; }; }
59660 case $CONFIG_SHELL in
59662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59663 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
59665 IFS=$as_save_IFS
59666 test -z "$as_dir" && as_dir=.
59667 for as_base in sh bash ksh sh5; do
59668 case $as_dir in
59670 if ("$as_dir/$as_base" -c '
59671 as_lineno_1=$LINENO
59672 as_lineno_2=$LINENO
59673 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
59674 test "x$as_lineno_1" != "x$as_lineno_2" &&
59675 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
59676 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
59677 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
59678 CONFIG_SHELL=$as_dir/$as_base
59679 export CONFIG_SHELL
59680 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
59681 fi;;
59682 esac
59683 done
59684 done
59686 esac
59688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
59689 # uniformly replaced by the line number. The first 'sed' inserts a
59690 # line-number line before each line; the second 'sed' does the real
59691 # work. The second script uses 'N' to pair each line-number line
59692 # with the numbered line, and appends trailing '-' during
59693 # substitution so that $LINENO is not a special case at line end.
59694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
59695 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
59696 sed '=' <$as_myself |
59697 sed '
59699 s,$,-,
59700 : loop
59701 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
59702 t loop
59703 s,-$,,
59704 s,^['$as_cr_digits']*\n,,
59705 ' >$as_me.lineno &&
59706 chmod +x $as_me.lineno ||
59707 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
59708 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
59709 { (exit 1); exit 1; }; }
59711 # Don't try to exec as it changes $[0], causing all sort of problems
59712 # (the dirname of $[0] is not the place where we might find the
59713 # original and so on. Autoconf is especially sensible to this).
59714 . ./$as_me.lineno
59715 # Exit status is that of the last command.
59716 exit
59720 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
59721 *c*,-n*) ECHO_N= ECHO_C='
59722 ' ECHO_T=' ' ;;
59723 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
59724 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
59725 esac
59727 if expr a : '\(a\)' >/dev/null 2>&1; then
59728 as_expr=expr
59729 else
59730 as_expr=false
59733 rm -f conf$$ conf$$.exe conf$$.file
59734 echo >conf$$.file
59735 if ln -s conf$$.file conf$$ 2>/dev/null; then
59736 # We could just check for DJGPP; but this test a) works b) is more generic
59737 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
59738 if test -f conf$$.exe; then
59739 # Don't use ln at all; we don't have any links
59740 as_ln_s='cp -p'
59741 else
59742 as_ln_s='ln -s'
59744 elif ln conf$$.file conf$$ 2>/dev/null; then
59745 as_ln_s=ln
59746 else
59747 as_ln_s='cp -p'
59749 rm -f conf$$ conf$$.exe conf$$.file
59751 if mkdir -p . 2>/dev/null; then
59752 as_mkdir_p=:
59753 else
59754 as_mkdir_p=false
59757 as_executable_p="test -f"
59759 # Sed expression to map a string onto a valid CPP name.
59760 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
59762 # Sed expression to map a string onto a valid variable name.
59763 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
59766 # IFS
59767 # We need space, tab and new line, in precisely that order.
59768 as_nl='
59770 IFS=" $as_nl"
59772 # CDPATH.
59773 $as_unset CDPATH
59775 exec 6>&1
59777 # Open the log real soon, to keep \$[0] and so on meaningful, and to
59778 # report actual input values of CONFIG_FILES etc. instead of their
59779 # values after options handling. Logging --version etc. is OK.
59780 exec 5>>config.log
59782 echo
59783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
59784 ## Running $as_me. ##
59785 _ASBOX
59786 } >&5
59787 cat >&5 <<_CSEOF
59789 This file was extended by package-unused $as_me version-unused, which was
59790 generated by GNU Autoconf 2.57. Invocation command line was
59792 CONFIG_FILES = $CONFIG_FILES
59793 CONFIG_HEADERS = $CONFIG_HEADERS
59794 CONFIG_LINKS = $CONFIG_LINKS
59795 CONFIG_COMMANDS = $CONFIG_COMMANDS
59796 $ $0 $@
59798 _CSEOF
59799 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
59800 echo >&5
59801 _ACEOF
59803 # Files that config.status was made for.
59804 if test -n "$ac_config_files"; then
59805 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
59808 if test -n "$ac_config_headers"; then
59809 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
59812 if test -n "$ac_config_links"; then
59813 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
59816 if test -n "$ac_config_commands"; then
59817 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
59820 cat >>$CONFIG_STATUS <<\_ACEOF
59822 ac_cs_usage="\
59823 \`$as_me' instantiates files from templates according to the
59824 current configuration.
59826 Usage: $0 [OPTIONS] [FILE]...
59828 -h, --help print this help, then exit
59829 -V, --version print version number, then exit
59830 -q, --quiet do not print progress messages
59831 -d, --debug don't remove temporary files
59832 --recheck update $as_me by reconfiguring in the same conditions
59833 --file=FILE[:TEMPLATE]
59834 instantiate the configuration file FILE
59835 --header=FILE[:TEMPLATE]
59836 instantiate the configuration header FILE
59838 Configuration files:
59839 $config_files
59841 Configuration headers:
59842 $config_headers
59844 Configuration commands:
59845 $config_commands
59847 Report bugs to <bug-autoconf@gnu.org>."
59848 _ACEOF
59850 cat >>$CONFIG_STATUS <<_ACEOF
59851 ac_cs_version="\\
59852 package-unused config.status version-unused
59853 configured by $0, generated by GNU Autoconf 2.57,
59854 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
59856 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
59857 Free Software Foundation, Inc.
59858 This config.status script is free software; the Free Software Foundation
59859 gives unlimited permission to copy, distribute and modify it."
59860 srcdir=$srcdir
59861 INSTALL="$INSTALL"
59862 _ACEOF
59864 cat >>$CONFIG_STATUS <<\_ACEOF
59865 # If no file are specified by the user, then we need to provide default
59866 # value. By we need to know if files were specified by the user.
59867 ac_need_defaults=:
59868 while test $# != 0
59870 case $1 in
59871 --*=*)
59872 ac_option=`expr "x$1" : 'x\([^=]*\)='`
59873 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
59874 ac_shift=:
59877 ac_option=$1
59878 ac_optarg=$2
59879 ac_shift=shift
59881 *) # This is not an option, so the user has probably given explicit
59882 # arguments.
59883 ac_option=$1
59884 ac_need_defaults=false;;
59885 esac
59887 case $ac_option in
59888 # Handling of the options.
59889 _ACEOF
59890 cat >>$CONFIG_STATUS <<\_ACEOF
59891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
59892 ac_cs_recheck=: ;;
59893 --version | --vers* | -V )
59894 echo "$ac_cs_version"; exit 0 ;;
59895 --he | --h)
59896 # Conflict between --help and --header
59897 { { echo "$as_me:$LINENO: error: ambiguous option: $1
59898 Try \`$0 --help' for more information." >&5
59899 echo "$as_me: error: ambiguous option: $1
59900 Try \`$0 --help' for more information." >&2;}
59901 { (exit 1); exit 1; }; };;
59902 --help | --hel | -h )
59903 echo "$ac_cs_usage"; exit 0 ;;
59904 --debug | --d* | -d )
59905 debug=: ;;
59906 --file | --fil | --fi | --f )
59907 $ac_shift
59908 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
59909 ac_need_defaults=false;;
59910 --header | --heade | --head | --hea )
59911 $ac_shift
59912 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
59913 ac_need_defaults=false;;
59914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
59915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
59916 ac_cs_silent=: ;;
59918 # This is an error.
59919 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
59920 Try \`$0 --help' for more information." >&5
59921 echo "$as_me: error: unrecognized option: $1
59922 Try \`$0 --help' for more information." >&2;}
59923 { (exit 1); exit 1; }; } ;;
59925 *) ac_config_targets="$ac_config_targets $1" ;;
59927 esac
59928 shift
59929 done
59931 ac_configure_extra_args=
59933 if $ac_cs_silent; then
59934 exec 6>/dev/null
59935 ac_configure_extra_args="$ac_configure_extra_args --silent"
59938 _ACEOF
59939 cat >>$CONFIG_STATUS <<_ACEOF
59940 if \$ac_cs_recheck; then
59941 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
59942 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
59945 _ACEOF
59947 cat >>$CONFIG_STATUS <<_ACEOF
59949 # INIT-COMMANDS section.
59953 srcdir="$srcdir"
59954 host="$host"
59955 target="$target"
59956 with_multisubdir="$with_multisubdir"
59957 with_multisrctop="$with_multisrctop"
59958 with_target_subdir="$with_target_subdir"
59959 ac_configure_args="${multilib_arg} ${ac_configure_args}"
59960 multi_basedir="$multi_basedir"
59961 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
59962 CC="$CC"
59964 # Variables needed in config.status (file generation) which aren't already
59965 # passed by autoconf.
59966 SUBDIRS="$SUBDIRS"
59969 _ACEOF
59973 cat >>$CONFIG_STATUS <<\_ACEOF
59974 for ac_config_target in $ac_config_targets
59976 case "$ac_config_target" in
59977 # Handling of arguments.
59978 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
59979 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
59980 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
59981 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
59982 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
59983 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
59984 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
59985 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
59986 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
59987 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
59988 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
59989 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
59990 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
59991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
59992 { (exit 1); exit 1; }; };;
59993 esac
59994 done
59996 # If the user did not use the arguments to specify the items to instantiate,
59997 # then the envvar interface is used. Set only those that are not.
59998 # We use the long form for the default assignment because of an extremely
59999 # bizarre bug on SunOS 4.1.3.
60000 if $ac_need_defaults; then
60001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
60002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
60003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
60006 # Have a temporary directory for convenience. Make it in the build tree
60007 # simply because there is no reason to put it here, and in addition,
60008 # creating and moving files from /tmp can sometimes cause problems.
60009 # Create a temporary directory, and hook for its removal unless debugging.
60010 $debug ||
60012 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
60013 trap '{ (exit 1); exit 1; }' 1 2 13 15
60016 # Create a (secure) tmp directory for tmp files.
60019 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
60020 test -n "$tmp" && test -d "$tmp"
60021 } ||
60023 tmp=./confstat$$-$RANDOM
60024 (umask 077 && mkdir $tmp)
60025 } ||
60027 echo "$me: cannot create a temporary directory in ." >&2
60028 { (exit 1); exit 1; }
60031 _ACEOF
60033 cat >>$CONFIG_STATUS <<_ACEOF
60036 # CONFIG_FILES section.
60039 # No need to generate the scripts if there are no CONFIG_FILES.
60040 # This happens for instance when ./config.status config.h
60041 if test -n "\$CONFIG_FILES"; then
60042 # Protect against being on the right side of a sed subst in config.status.
60043 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
60044 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
60045 s,@SHELL@,$SHELL,;t t
60046 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
60047 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
60048 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
60049 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
60050 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
60051 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
60052 s,@exec_prefix@,$exec_prefix,;t t
60053 s,@prefix@,$prefix,;t t
60054 s,@program_transform_name@,$program_transform_name,;t t
60055 s,@bindir@,$bindir,;t t
60056 s,@sbindir@,$sbindir,;t t
60057 s,@libexecdir@,$libexecdir,;t t
60058 s,@datadir@,$datadir,;t t
60059 s,@sysconfdir@,$sysconfdir,;t t
60060 s,@sharedstatedir@,$sharedstatedir,;t t
60061 s,@localstatedir@,$localstatedir,;t t
60062 s,@libdir@,$libdir,;t t
60063 s,@includedir@,$includedir,;t t
60064 s,@oldincludedir@,$oldincludedir,;t t
60065 s,@infodir@,$infodir,;t t
60066 s,@mandir@,$mandir,;t t
60067 s,@build_alias@,$build_alias,;t t
60068 s,@host_alias@,$host_alias,;t t
60069 s,@target_alias@,$target_alias,;t t
60070 s,@DEFS@,$DEFS,;t t
60071 s,@ECHO_C@,$ECHO_C,;t t
60072 s,@ECHO_N@,$ECHO_N,;t t
60073 s,@ECHO_T@,$ECHO_T,;t t
60074 s,@LIBS@,$LIBS,;t t
60075 s,@libtool_VERSION@,$libtool_VERSION,;t t
60076 s,@multi_basedir@,$multi_basedir,;t t
60077 s,@build@,$build,;t t
60078 s,@build_cpu@,$build_cpu,;t t
60079 s,@build_vendor@,$build_vendor,;t t
60080 s,@build_os@,$build_os,;t t
60081 s,@host@,$host,;t t
60082 s,@host_cpu@,$host_cpu,;t t
60083 s,@host_vendor@,$host_vendor,;t t
60084 s,@host_os@,$host_os,;t t
60085 s,@target@,$target,;t t
60086 s,@target_cpu@,$target_cpu,;t t
60087 s,@target_vendor@,$target_vendor,;t t
60088 s,@target_os@,$target_os,;t t
60089 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
60090 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
60091 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
60092 s,@CYGPATH_W@,$CYGPATH_W,;t t
60093 s,@PACKAGE@,$PACKAGE,;t t
60094 s,@VERSION@,$VERSION,;t t
60095 s,@ACLOCAL@,$ACLOCAL,;t t
60096 s,@AUTOCONF@,$AUTOCONF,;t t
60097 s,@AUTOMAKE@,$AUTOMAKE,;t t
60098 s,@AUTOHEADER@,$AUTOHEADER,;t t
60099 s,@MAKEINFO@,$MAKEINFO,;t t
60100 s,@AMTAR@,$AMTAR,;t t
60101 s,@install_sh@,$install_sh,;t t
60102 s,@STRIP@,$STRIP,;t t
60103 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
60104 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
60105 s,@AWK@,$AWK,;t t
60106 s,@SET_MAKE@,$SET_MAKE,;t t
60107 s,@am__leading_dot@,$am__leading_dot,;t t
60108 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
60109 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
60110 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
60111 s,@CC@,$CC,;t t
60112 s,@ac_ct_CC@,$ac_ct_CC,;t t
60113 s,@EXEEXT@,$EXEEXT,;t t
60114 s,@OBJEXT@,$OBJEXT,;t t
60115 s,@CXX@,$CXX,;t t
60116 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
60117 s,@CFLAGS@,$CFLAGS,;t t
60118 s,@CXXFLAGS@,$CXXFLAGS,;t t
60119 s,@LN_S@,$LN_S,;t t
60120 s,@AS@,$AS,;t t
60121 s,@ac_ct_AS@,$ac_ct_AS,;t t
60122 s,@AR@,$AR,;t t
60123 s,@ac_ct_AR@,$ac_ct_AR,;t t
60124 s,@RANLIB@,$RANLIB,;t t
60125 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
60126 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
60127 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
60128 s,@MAINT@,$MAINT,;t t
60129 s,@LIBTOOL@,$LIBTOOL,;t t
60130 s,@CXXCPP@,$CXXCPP,;t t
60131 s,@CPPFLAGS@,$CPPFLAGS,;t t
60132 s,@enable_shared@,$enable_shared,;t t
60133 s,@enable_static@,$enable_static,;t t
60134 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
60135 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
60136 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
60137 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
60138 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
60139 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
60140 s,@CSTDIO_H@,$CSTDIO_H,;t t
60141 s,@FPOS_H@,$FPOS_H,;t t
60142 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
60143 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
60144 s,@CPP@,$CPP,;t t
60145 s,@EGREP@,$EGREP,;t t
60146 s,@check_msgfmt@,$check_msgfmt,;t t
60147 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
60148 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
60149 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
60150 s,@USE_NLS@,$USE_NLS,;t t
60151 s,@CLOCALE_H@,$CLOCALE_H,;t t
60152 s,@CCODECVT_H@,$CCODECVT_H,;t t
60153 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
60154 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
60155 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
60156 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
60157 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
60158 s,@CMONEY_CC@,$CMONEY_CC,;t t
60159 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
60160 s,@CTIME_H@,$CTIME_H,;t t
60161 s,@CTIME_CC@,$CTIME_CC,;t t
60162 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
60163 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
60164 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
60165 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
60166 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
60167 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
60168 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
60169 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
60170 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
60171 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
60172 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
60173 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
60174 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
60175 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
60176 s,@WERROR@,$WERROR,;t t
60177 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
60178 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
60179 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
60180 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
60181 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
60182 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
60183 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
60184 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
60185 s,@baseline_dir@,$baseline_dir,;t t
60186 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
60187 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
60188 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
60189 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
60190 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
60191 s,@FPOS_INC_SRCDIR@,$FPOS_INC_SRCDIR,;t t
60192 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
60193 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
60194 s,@gxx_include_dir@,$gxx_include_dir,;t t
60195 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
60196 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
60197 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
60198 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
60199 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
60200 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
60201 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
60202 s,@LIBOBJS@,$LIBOBJS,;t t
60203 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
60204 CEOF
60206 _ACEOF
60208 cat >>$CONFIG_STATUS <<\_ACEOF
60209 # Split the substitutions into bite-sized pieces for seds with
60210 # small command number limits, like on Digital OSF/1 and HP-UX.
60211 ac_max_sed_lines=48
60212 ac_sed_frag=1 # Number of current file.
60213 ac_beg=1 # First line for current file.
60214 ac_end=$ac_max_sed_lines # Line after last line for current file.
60215 ac_more_lines=:
60216 ac_sed_cmds=
60217 while $ac_more_lines; do
60218 if test $ac_beg -gt 1; then
60219 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
60220 else
60221 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
60223 if test ! -s $tmp/subs.frag; then
60224 ac_more_lines=false
60225 else
60226 # The purpose of the label and of the branching condition is to
60227 # speed up the sed processing (if there are no `@' at all, there
60228 # is no need to browse any of the substitutions).
60229 # These are the two extra sed commands mentioned above.
60230 (echo ':t
60231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
60232 if test -z "$ac_sed_cmds"; then
60233 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
60234 else
60235 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
60237 ac_sed_frag=`expr $ac_sed_frag + 1`
60238 ac_beg=$ac_end
60239 ac_end=`expr $ac_end + $ac_max_sed_lines`
60241 done
60242 if test -z "$ac_sed_cmds"; then
60243 ac_sed_cmds=cat
60245 fi # test -n "$CONFIG_FILES"
60247 _ACEOF
60248 cat >>$CONFIG_STATUS <<\_ACEOF
60249 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
60250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
60251 case $ac_file in
60252 - | *:- | *:-:* ) # input from stdin
60253 cat >$tmp/stdin
60254 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60256 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60258 * ) ac_file_in=$ac_file.in ;;
60259 esac
60261 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
60262 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
60263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60264 X"$ac_file" : 'X\(//\)[^/]' \| \
60265 X"$ac_file" : 'X\(//\)$' \| \
60266 X"$ac_file" : 'X\(/\)' \| \
60267 . : '\(.\)' 2>/dev/null ||
60268 echo X"$ac_file" |
60269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60271 /^X\(\/\/\)$/{ s//\1/; q; }
60272 /^X\(\/\).*/{ s//\1/; q; }
60273 s/.*/./; q'`
60274 { if $as_mkdir_p; then
60275 mkdir -p "$ac_dir"
60276 else
60277 as_dir="$ac_dir"
60278 as_dirs=
60279 while test ! -d "$as_dir"; do
60280 as_dirs="$as_dir $as_dirs"
60281 as_dir=`(dirname "$as_dir") 2>/dev/null ||
60282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60283 X"$as_dir" : 'X\(//\)[^/]' \| \
60284 X"$as_dir" : 'X\(//\)$' \| \
60285 X"$as_dir" : 'X\(/\)' \| \
60286 . : '\(.\)' 2>/dev/null ||
60287 echo X"$as_dir" |
60288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60290 /^X\(\/\/\)$/{ s//\1/; q; }
60291 /^X\(\/\).*/{ s//\1/; q; }
60292 s/.*/./; q'`
60293 done
60294 test ! -n "$as_dirs" || mkdir $as_dirs
60295 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
60296 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
60297 { (exit 1); exit 1; }; }; }
60299 ac_builddir=.
60301 if test "$ac_dir" != .; then
60302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
60303 # A "../" for each directory in $ac_dir_suffix.
60304 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
60305 else
60306 ac_dir_suffix= ac_top_builddir=
60309 case $srcdir in
60310 .) # No --srcdir option. We are building in place.
60311 ac_srcdir=.
60312 if test -z "$ac_top_builddir"; then
60313 ac_top_srcdir=.
60314 else
60315 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
60316 fi ;;
60317 [\\/]* | ?:[\\/]* ) # Absolute path.
60318 ac_srcdir=$srcdir$ac_dir_suffix;
60319 ac_top_srcdir=$srcdir ;;
60320 *) # Relative path.
60321 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
60322 ac_top_srcdir=$ac_top_builddir$srcdir ;;
60323 esac
60324 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
60325 # absolute.
60326 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
60327 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
60328 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
60329 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
60332 case $INSTALL in
60333 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60334 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
60335 esac
60337 if test x"$ac_file" != x-; then
60338 { echo "$as_me:$LINENO: creating $ac_file" >&5
60339 echo "$as_me: creating $ac_file" >&6;}
60340 rm -f "$ac_file"
60342 # Let's still pretend it is `configure' which instantiates (i.e., don't
60343 # use $as_me), people would be surprised to read:
60344 # /* config.h. Generated by config.status. */
60345 if test x"$ac_file" = x-; then
60346 configure_input=
60347 else
60348 configure_input="$ac_file. "
60350 configure_input=$configure_input"Generated from `echo $ac_file_in |
60351 sed 's,.*/,,'` by configure."
60353 # First look for the input files in the build tree, otherwise in the
60354 # src tree.
60355 ac_file_inputs=`IFS=:
60356 for f in $ac_file_in; do
60357 case $f in
60358 -) echo $tmp/stdin ;;
60359 [\\/$]*)
60360 # Absolute (can't be DOS-style, as IFS=:)
60361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60362 echo "$as_me: error: cannot find input file: $f" >&2;}
60363 { (exit 1); exit 1; }; }
60364 echo $f;;
60365 *) # Relative
60366 if test -f "$f"; then
60367 # Build tree
60368 echo $f
60369 elif test -f "$srcdir/$f"; then
60370 # Source tree
60371 echo $srcdir/$f
60372 else
60373 # /dev/null tree
60374 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60375 echo "$as_me: error: cannot find input file: $f" >&2;}
60376 { (exit 1); exit 1; }; }
60377 fi;;
60378 esac
60379 done` || { (exit 1); exit 1; }
60380 _ACEOF
60381 cat >>$CONFIG_STATUS <<_ACEOF
60382 sed "$ac_vpsub
60383 $extrasub
60384 _ACEOF
60385 cat >>$CONFIG_STATUS <<\_ACEOF
60387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
60388 s,@configure_input@,$configure_input,;t t
60389 s,@srcdir@,$ac_srcdir,;t t
60390 s,@abs_srcdir@,$ac_abs_srcdir,;t t
60391 s,@top_srcdir@,$ac_top_srcdir,;t t
60392 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
60393 s,@builddir@,$ac_builddir,;t t
60394 s,@abs_builddir@,$ac_abs_builddir,;t t
60395 s,@top_builddir@,$ac_top_builddir,;t t
60396 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
60397 s,@INSTALL@,$ac_INSTALL,;t t
60398 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
60399 rm -f $tmp/stdin
60400 if test x"$ac_file" != x-; then
60401 mv $tmp/out $ac_file
60402 else
60403 cat $tmp/out
60404 rm -f $tmp/out
60407 # Run the commands associated with the file.
60408 case $ac_file in
60409 scripts/check_survey ) chmod +x scripts/check_survey ;;
60410 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
60411 esac
60412 done
60413 _ACEOF
60414 cat >>$CONFIG_STATUS <<\_ACEOF
60417 # CONFIG_HEADER section.
60420 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
60421 # NAME is the cpp macro being defined and VALUE is the value it is being given.
60423 # ac_d sets the value in "#define NAME VALUE" lines.
60424 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
60425 ac_dB='[ ].*$,\1#\2'
60426 ac_dC=' '
60427 ac_dD=',;t'
60428 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
60429 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
60430 ac_uB='$,\1#\2define\3'
60431 ac_uC=' '
60432 ac_uD=',;t'
60434 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
60435 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
60436 case $ac_file in
60437 - | *:- | *:-:* ) # input from stdin
60438 cat >$tmp/stdin
60439 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60440 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60441 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60442 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60443 * ) ac_file_in=$ac_file.in ;;
60444 esac
60446 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
60447 echo "$as_me: creating $ac_file" >&6;}
60449 # First look for the input files in the build tree, otherwise in the
60450 # src tree.
60451 ac_file_inputs=`IFS=:
60452 for f in $ac_file_in; do
60453 case $f in
60454 -) echo $tmp/stdin ;;
60455 [\\/$]*)
60456 # Absolute (can't be DOS-style, as IFS=:)
60457 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60458 echo "$as_me: error: cannot find input file: $f" >&2;}
60459 { (exit 1); exit 1; }; }
60460 echo $f;;
60461 *) # Relative
60462 if test -f "$f"; then
60463 # Build tree
60464 echo $f
60465 elif test -f "$srcdir/$f"; then
60466 # Source tree
60467 echo $srcdir/$f
60468 else
60469 # /dev/null tree
60470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60471 echo "$as_me: error: cannot find input file: $f" >&2;}
60472 { (exit 1); exit 1; }; }
60473 fi;;
60474 esac
60475 done` || { (exit 1); exit 1; }
60476 # Remove the trailing spaces.
60477 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
60479 _ACEOF
60481 # Transform confdefs.h into two sed scripts, `conftest.defines' and
60482 # `conftest.undefs', that substitutes the proper values into
60483 # config.h.in to produce config.h. The first handles `#define'
60484 # templates, and the second `#undef' templates.
60485 # And first: Protect against being on the right side of a sed subst in
60486 # config.status. Protect against being in an unquoted here document
60487 # in config.status.
60488 rm -f conftest.defines conftest.undefs
60489 # Using a here document instead of a string reduces the quoting nightmare.
60490 # Putting comments in sed scripts is not portable.
60492 # `end' is used to avoid that the second main sed command (meant for
60493 # 0-ary CPP macros) applies to n-ary macro definitions.
60494 # See the Autoconf documentation for `clear'.
60495 cat >confdef2sed.sed <<\_ACEOF
60496 s/[\\&,]/\\&/g
60497 s,[\\$`],\\&,g
60498 t clear
60499 : clear
60500 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
60501 t end
60502 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
60503 : end
60504 _ACEOF
60505 # If some macros were called several times there might be several times
60506 # the same #defines, which is useless. Nevertheless, we may not want to
60507 # sort them, since we want the *last* AC-DEFINE to be honored.
60508 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
60509 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
60510 rm -f confdef2sed.sed
60512 # This sed command replaces #undef with comments. This is necessary, for
60513 # example, in the case of _POSIX_SOURCE, which is predefined and required
60514 # on some systems where configure will not decide to define it.
60515 cat >>conftest.undefs <<\_ACEOF
60516 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
60517 _ACEOF
60519 # Break up conftest.defines because some shells have a limit on the size
60520 # of here documents, and old seds have small limits too (100 cmds).
60521 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
60522 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
60523 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
60524 echo ' :' >>$CONFIG_STATUS
60525 rm -f conftest.tail
60526 while grep . conftest.defines >/dev/null
60528 # Write a limited-size here document to $tmp/defines.sed.
60529 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
60530 # Speed up: don't consider the non `#define' lines.
60531 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
60532 # Work around the forget-to-reset-the-flag bug.
60533 echo 't clr' >>$CONFIG_STATUS
60534 echo ': clr' >>$CONFIG_STATUS
60535 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
60536 echo 'CEOF
60537 sed -f $tmp/defines.sed $tmp/in >$tmp/out
60538 rm -f $tmp/in
60539 mv $tmp/out $tmp/in
60540 ' >>$CONFIG_STATUS
60541 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
60542 rm -f conftest.defines
60543 mv conftest.tail conftest.defines
60544 done
60545 rm -f conftest.defines
60546 echo ' fi # grep' >>$CONFIG_STATUS
60547 echo >>$CONFIG_STATUS
60549 # Break up conftest.undefs because some shells have a limit on the size
60550 # of here documents, and old seds have small limits too (100 cmds).
60551 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
60552 rm -f conftest.tail
60553 while grep . conftest.undefs >/dev/null
60555 # Write a limited-size here document to $tmp/undefs.sed.
60556 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
60557 # Speed up: don't consider the non `#undef'
60558 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
60559 # Work around the forget-to-reset-the-flag bug.
60560 echo 't clr' >>$CONFIG_STATUS
60561 echo ': clr' >>$CONFIG_STATUS
60562 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
60563 echo 'CEOF
60564 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
60565 rm -f $tmp/in
60566 mv $tmp/out $tmp/in
60567 ' >>$CONFIG_STATUS
60568 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
60569 rm -f conftest.undefs
60570 mv conftest.tail conftest.undefs
60571 done
60572 rm -f conftest.undefs
60574 cat >>$CONFIG_STATUS <<\_ACEOF
60575 # Let's still pretend it is `configure' which instantiates (i.e., don't
60576 # use $as_me), people would be surprised to read:
60577 # /* config.h. Generated by config.status. */
60578 if test x"$ac_file" = x-; then
60579 echo "/* Generated by configure. */" >$tmp/config.h
60580 else
60581 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
60583 cat $tmp/in >>$tmp/config.h
60584 rm -f $tmp/in
60585 if test x"$ac_file" != x-; then
60586 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
60587 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
60588 echo "$as_me: $ac_file is unchanged" >&6;}
60589 else
60590 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
60591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60592 X"$ac_file" : 'X\(//\)[^/]' \| \
60593 X"$ac_file" : 'X\(//\)$' \| \
60594 X"$ac_file" : 'X\(/\)' \| \
60595 . : '\(.\)' 2>/dev/null ||
60596 echo X"$ac_file" |
60597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60599 /^X\(\/\/\)$/{ s//\1/; q; }
60600 /^X\(\/\).*/{ s//\1/; q; }
60601 s/.*/./; q'`
60602 { if $as_mkdir_p; then
60603 mkdir -p "$ac_dir"
60604 else
60605 as_dir="$ac_dir"
60606 as_dirs=
60607 while test ! -d "$as_dir"; do
60608 as_dirs="$as_dir $as_dirs"
60609 as_dir=`(dirname "$as_dir") 2>/dev/null ||
60610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60611 X"$as_dir" : 'X\(//\)[^/]' \| \
60612 X"$as_dir" : 'X\(//\)$' \| \
60613 X"$as_dir" : 'X\(/\)' \| \
60614 . : '\(.\)' 2>/dev/null ||
60615 echo X"$as_dir" |
60616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60618 /^X\(\/\/\)$/{ s//\1/; q; }
60619 /^X\(\/\).*/{ s//\1/; q; }
60620 s/.*/./; q'`
60621 done
60622 test ! -n "$as_dirs" || mkdir $as_dirs
60623 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
60624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
60625 { (exit 1); exit 1; }; }; }
60627 rm -f $ac_file
60628 mv $tmp/config.h $ac_file
60630 else
60631 cat $tmp/config.h
60632 rm -f $tmp/config.h
60634 # Compute $ac_file's index in $config_headers.
60635 _am_stamp_count=1
60636 for _am_header in $config_headers :; do
60637 case $_am_header in
60638 $ac_file | $ac_file:* )
60639 break ;;
60641 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
60642 esac
60643 done
60644 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
60645 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60646 X$ac_file : 'X\(//\)[^/]' \| \
60647 X$ac_file : 'X\(//\)$' \| \
60648 X$ac_file : 'X\(/\)' \| \
60649 . : '\(.\)' 2>/dev/null ||
60650 echo X$ac_file |
60651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60653 /^X\(\/\/\)$/{ s//\1/; q; }
60654 /^X\(\/\).*/{ s//\1/; q; }
60655 s/.*/./; q'`/stamp-h$_am_stamp_count
60656 done
60657 _ACEOF
60658 cat >>$CONFIG_STATUS <<\_ACEOF
60661 # CONFIG_COMMANDS section.
60663 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
60664 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
60665 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
60666 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
60667 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60668 X"$ac_dest" : 'X\(//\)[^/]' \| \
60669 X"$ac_dest" : 'X\(//\)$' \| \
60670 X"$ac_dest" : 'X\(/\)' \| \
60671 . : '\(.\)' 2>/dev/null ||
60672 echo X"$ac_dest" |
60673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60675 /^X\(\/\/\)$/{ s//\1/; q; }
60676 /^X\(\/\).*/{ s//\1/; q; }
60677 s/.*/./; q'`
60678 ac_builddir=.
60680 if test "$ac_dir" != .; then
60681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
60682 # A "../" for each directory in $ac_dir_suffix.
60683 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
60684 else
60685 ac_dir_suffix= ac_top_builddir=
60688 case $srcdir in
60689 .) # No --srcdir option. We are building in place.
60690 ac_srcdir=.
60691 if test -z "$ac_top_builddir"; then
60692 ac_top_srcdir=.
60693 else
60694 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
60695 fi ;;
60696 [\\/]* | ?:[\\/]* ) # Absolute path.
60697 ac_srcdir=$srcdir$ac_dir_suffix;
60698 ac_top_srcdir=$srcdir ;;
60699 *) # Relative path.
60700 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
60701 ac_top_srcdir=$ac_top_builddir$srcdir ;;
60702 esac
60703 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
60704 # absolute.
60705 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
60706 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
60707 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
60708 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
60711 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
60712 echo "$as_me: executing $ac_dest commands" >&6;}
60713 case $ac_dest in
60714 default-1 )
60715 # Only add multilib support code if we just rebuilt the top-level
60716 # Makefile.
60717 case " $CONFIG_FILES " in
60718 *" Makefile "*)
60719 ac_file=Makefile . ${multi_basedir}/config-ml.in
60721 esac ;;
60722 default ) if test -n "$CONFIG_FILES"; then
60723 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
60724 # that multilib installs will end up installed in the correct place.
60725 # The testsuite needs it for multilib-aware ABI baseline files.
60726 # To work around this not being passed down from config-ml.in ->
60727 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
60728 # append it here. Only modify Makefiles that have just been created.
60730 # Also, get rid of this simulated-VPATH thing that automake does.
60731 cat > vpsed << \_EOF
60732 s!`test -f '$<' || echo '$(srcdir)/'`!!
60733 _EOF
60734 for i in $SUBDIRS; do
60735 case $CONFIG_FILES in
60736 *${i}/Makefile*)
60737 #echo "Adding MULTISUBDIR to $i/Makefile"
60738 sed -f vpsed $i/Makefile > tmp
60739 grep '^MULTISUBDIR =' Makefile >> tmp
60740 mv tmp $i/Makefile
60742 esac
60743 done
60744 rm vpsed
60746 (cd include && ${MAKE-make})
60748 esac
60749 done
60750 _ACEOF
60752 cat >>$CONFIG_STATUS <<\_ACEOF
60754 { (exit 0); exit 0; }
60755 _ACEOF
60756 chmod +x $CONFIG_STATUS
60757 ac_clean_files=$ac_clean_files_save
60760 # configure is writing to config.log, and then calls config.status.
60761 # config.status does its own redirection, appending to config.log.
60762 # Unfortunately, on DOS this fails, as config.log is still kept open
60763 # by configure, so config.status won't be able to write to it; its
60764 # output is simply discarded. So we exec the FD to /dev/null,
60765 # effectively closing config.log, so it can be properly (re)opened and
60766 # appended to by config.status. When coming back to configure, we
60767 # need to make the FD available again.
60768 if test "$no_create" != yes; then
60769 ac_cs_success=:
60770 ac_config_status_args=
60771 test "$silent" = yes &&
60772 ac_config_status_args="$ac_config_status_args --quiet"
60773 exec 5>/dev/null
60774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
60775 exec 5>>config.log
60776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
60777 # would make configure fail if this is the last instruction.
60778 $ac_cs_success || { (exit 1); exit 1; }