Handle TARGET_CPU_iwmmxt.
[official-gcc.git] / libstdc++-v3 / configure
blobe9e51e36ad612163afffc4bf65ef7afa800c4812
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 &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_headers="$ac_config_headers config.h"
1336 # This works around the fact that libtool configuration may change LD
1337 # for this particular configuration, but some shells, instead of
1338 # keeping the changes in LD private, export them just because LD is
1339 # exported. Only used at the end of this file.
1340 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1342 # For libtool versioning info, format is CURRENT:REVISION:AGE
1343 libtool_VERSION=6:0:0
1346 # Find the rest of the source tree framework.
1348 # Sets up multi_basedir, which is srcdir/.. plus the usual
1349 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1350 # Default to --enable-multilib
1351 # Check whether --enable-multilib or --disable-multilib was given.
1352 if test "${enable_multilib+set}" = set; then
1353 enableval="$enable_multilib"
1354 case "$enableval" in
1355 yes) multilib=yes ;;
1356 no) multilib=no ;;
1357 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1358 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1359 { (exit 1); exit 1; }; } ;;
1360 esac
1361 else
1362 multilib=yes
1365 # We may get other options which we leave undocumented:
1366 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1367 # See config-ml.in if you want the gory details.
1369 if test "$srcdir" = "."; then
1370 if test "$with_target_subdir" != "."; then
1371 multi_basedir="$srcdir/$with_multisrctop../.."
1372 else
1373 multi_basedir="$srcdir/$with_multisrctop.."
1375 else
1376 multi_basedir="$srcdir/.."
1380 ac_config_commands="$ac_config_commands default-1"
1383 # The generated code is exactly the same, except that automake's looks in
1384 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1385 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1386 # know what they are or what the other differences might be (and they keep
1387 # changing anyhow).
1389 # Looking in multi_basedir seems smarter, so actually execute that branch.
1390 if false; then
1391 # this is for automake
1392 ac_aux_dir=
1393 for ac_dir in .. $srcdir/..; do
1394 if test -f $ac_dir/install-sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1397 break
1398 elif test -f $ac_dir/install.sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1401 break
1402 elif test -f $ac_dir/shtool; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 break
1407 done
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 else
1418 # this is for autoconf
1419 ac_aux_dir=
1420 for ac_dir in ${multi_basedir}; do
1421 if test -f $ac_dir/install-sh; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/install-sh -c"
1424 break
1425 elif test -f $ac_dir/install.sh; then
1426 ac_aux_dir=$ac_dir
1427 ac_install_sh="$ac_aux_dir/install.sh -c"
1428 break
1429 elif test -f $ac_dir/shtool; then
1430 ac_aux_dir=$ac_dir
1431 ac_install_sh="$ac_aux_dir/shtool install -c"
1432 break
1434 done
1435 if test -z "$ac_aux_dir"; then
1436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1437 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1438 { (exit 1); exit 1; }; }
1440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1448 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1450 # You will slowly go insane if you do not grok the following fact: when
1451 # building v3 as part of the compiler, the top-level /target/ becomes the
1452 # library's /host/. configure then causes --target to default to --host,
1453 # exactly like any other package using autoconf. Therefore, 'target' and
1454 # 'host' will always be the same. This makes sense both for native and
1455 # cross compilers, just think about it for a little while. :-)
1457 # Also, if v3 is being configured as part of a cross compiler, the top-level
1458 # configure script will pass the "real" host as $with_cross_host.
1460 # Do not delete or change the following two lines. For why, see
1461 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1462 # Make sure we can run config.sub.
1463 $ac_config_sub sun4 >/dev/null 2>&1 ||
1464 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1465 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1466 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: checking build system type" >&5
1469 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1470 if test "${ac_cv_build+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 ac_cv_build_alias=$build_alias
1474 test -z "$ac_cv_build_alias" &&
1475 ac_cv_build_alias=`$ac_config_guess`
1476 test -z "$ac_cv_build_alias" &&
1477 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1478 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1479 { (exit 1); exit 1; }; }
1480 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1487 echo "${ECHO_T}$ac_cv_build" >&6
1488 build=$ac_cv_build
1489 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 echo "$as_me:$LINENO: checking host system type" >&5
1495 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1496 if test "${ac_cv_host+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 ac_cv_host_alias=$host_alias
1500 test -z "$ac_cv_host_alias" &&
1501 ac_cv_host_alias=$ac_cv_build_alias
1502 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1509 echo "${ECHO_T}$ac_cv_host" >&6
1510 host=$ac_cv_host
1511 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516 echo "$as_me:$LINENO: checking target system type" >&5
1517 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1518 if test "${ac_cv_target+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 ac_cv_target_alias=$target_alias
1522 test "x$ac_cv_target_alias" = "x" &&
1523 ac_cv_target_alias=$ac_cv_host_alias
1524 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1525 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1526 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1527 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1531 echo "${ECHO_T}$ac_cv_target" >&6
1532 target=$ac_cv_target
1533 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538 # The aliases save the names the user supplied, while $host etc.
1539 # will get canonicalized.
1540 test -n "$target_alias" &&
1541 test "$program_prefix$program_suffix$program_transform_name" = \
1542 NONENONEs,x,x, &&
1543 program_prefix=${target_alias}-
1544 target_alias=${target_alias-$host_alias}
1546 # Handy for debugging:
1547 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1549 if test "$build" != "$host"; then
1550 # We are being configured with some form of cross compiler.
1551 GLIBCXX_IS_NATIVE=false
1553 else
1554 GLIBCXX_IS_NATIVE=true
1557 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1558 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1559 # 1.x: minimum required version
1560 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1561 # of other PACKAGE_* variables will, however, and there's nothing
1562 # we can do about that; they come from AC_INIT).
1563 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1564 # file in the top srcdir, etc, etc), so stop complaining.
1565 # no-dependencies: turns off auto dependency generation (just for now)
1566 # -Wall: turns on all automake warnings
1567 am__api_version="1.7"
1568 # Find a good install program. We prefer a C program (faster),
1569 # so one script is as good as another. But avoid the broken or
1570 # incompatible versions:
1571 # SysV /etc/install, /usr/sbin/install
1572 # SunOS /usr/etc/install
1573 # IRIX /sbin/install
1574 # AIX /bin/install
1575 # AmigaOS /C/install, which installs bootblocks on floppy discs
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 /usr/ucb/* ) ;;
1597 # OSF1 and SCO ODT 3.0 have their own names for install.
1598 # Don't use installbsd from OSF since it installs stuff as root
1599 # by default.
1600 for ac_prog in ginstall scoinst install; do
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603 if test $ac_prog = install &&
1604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605 # AIX install. It has an incompatible calling convention.
1607 elif test $ac_prog = install &&
1608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609 # program-specific install script used by HP pwplus--don't use.
1611 else
1612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613 break 3
1616 done
1617 done
1619 esac
1620 done
1624 if test "${ac_cv_path_install+set}" = set; then
1625 INSTALL=$ac_cv_path_install
1626 else
1627 # As a last resort, use the slow shell script. We don't cache a
1628 # path for INSTALL within a source directory, because that will
1629 # break other packages using the cache if that directory is
1630 # removed, or if the path is relative.
1631 INSTALL=$ac_install_sh
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments. Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657 if test "$*" = "X"; then
1658 # -L didn't work.
1659 set X `ls -t $srcdir/configure conftest.file`
1661 rm -f conftest.file
1662 if test "$*" != "X $srcdir/configure conftest.file" \
1663 && test "$*" != "X conftest.file $srcdir/configure"; then
1665 # If neither matched, then we have a broken ls. This can happen
1666 # if, for instance, CONFIG_SHELL is bash and it inherits a
1667 # broken ls alias from the environment. This has actually
1668 # happened. Such a system could not be considered "sane".
1669 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1672 alias in your environment" >&2;}
1673 { (exit 1); exit 1; }; }
1676 test "$2" = conftest.file
1678 then
1679 # Ok.
1681 else
1682 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686 { (exit 1); exit 1; }; }
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $. echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1711 else
1712 am_missing_run=
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1717 for ac_prog in gawk mawk nawk awk
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 if test -n "$AWK"; then
1727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_AWK="$ac_prog"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1740 done
1741 done
1745 AWK=$ac_cv_prog_AWK
1746 if test -n "$AWK"; then
1747 echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 test -n "$AWK" && break
1755 done
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 cat >conftest.make <<\_ACEOF
1764 all:
1765 @echo 'ac_maketemp="$(MAKE)"'
1766 _ACEOF
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770 eval ac_cv_prog_make_${ac_make}_set=yes
1771 else
1772 eval ac_cv_prog_make_${ac_make}_set=no
1774 rm -f conftest.make
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777 echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779 SET_MAKE=
1780 else
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 SET_MAKE="MAKE=${MAKE-make}"
1786 rm -rf .tst 2>/dev/null
1787 mkdir .tst 2>/dev/null
1788 if test -d .tst; then
1789 am__leading_dot=.
1790 else
1791 am__leading_dot=_
1793 rmdir .tst 2>/dev/null
1795 # test to see if srcdir already configured
1796 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797 test -f $srcdir/config.status; then
1798 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800 { (exit 1); exit 1; }; }
1803 # test whether we have cygpath
1804 if test -z "$CYGPATH_W"; then
1805 if (cygpath --version) >/dev/null 2>/dev/null; then
1806 CYGPATH_W='cygpath -w'
1807 else
1808 CYGPATH_W=echo
1813 # Define the identity of the package.
1814 PACKAGE='libstdc++'
1815 VERSION='version-unused'
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835 AMTAR=${AMTAR-"${am_missing_run}tar"}
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'. However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$STRIP"; then
1853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873 echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1881 if test -z "$ac_cv_prog_STRIP"; then
1882 ac_ct_STRIP=$STRIP
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$ac_ct_STRIP"; then
1891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_STRIP="strip"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1904 done
1905 done
1907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 STRIP=$ac_ct_STRIP
1920 else
1921 STRIP="$ac_cv_prog_STRIP"
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1927 # We need awk for the "check" target. The system "awk" is bad on
1928 # some platforms.
1933 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1934 # up critical shell variables.
1936 # Keep these sync'd with the list in Makefile.am. The first provides an
1937 # expandable list at autoconf time; the second provides an expandable list
1938 # (i.e., shell variable) at configure time.
1940 SUBDIRS='include libmath libsupc++ src po testsuite'
1942 # These need to be absolute paths, yet at the same time need to
1943 # canonicalize only relative paths, because then amd will not unmount
1944 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1945 glibcxx_builddir=`${PWDCMD-pwd}`
1946 case $srcdir in
1947 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1948 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1949 esac
1950 toplevel_srcdir=${glibcxx_srcdir}/..
1955 # We use these options to decide which functions to include. They are
1956 # set from the top level.
1958 # Check whether --with-target-subdir or --without-target-subdir was given.
1959 if test "${with_target_subdir+set}" = set; then
1960 withval="$with_target_subdir"
1965 # Check whether --with-cross-host or --without-cross-host was given.
1966 if test "${with_cross_host+set}" = set; then
1967 withval="$with_cross_host"
1972 # Check whether --with-newlib or --without-newlib was given.
1973 if test "${with_newlib+set}" = set; then
1974 withval="$with_newlib"
1978 # We're almost certainly being configured before anything else which uses
1979 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
1980 # we not cache the value of CXX that we "discover" here, because it's set
1981 # to something unique for us and libjava. Other target libraries need to
1982 # find CXX for themselves. We yank the rug out from under the normal AC_*
1983 # process by sneakily renaming the cache variable. This also lets us debug
1984 # the value of "our" CXX in postmortems.
1986 # We must also force CXX to /not/ be a precious variable, otherwise the
1987 # wrong (non-multilib-adjusted) value will be used in multilibs. This
1988 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
1989 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1990 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1992 # -fno-builtin must be present here so that a non-conflicting form of
1993 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1998 save_CXXFLAGS="$CXXFLAGS"
1999 CXXFLAGS="$CXXFLAGS -fno-builtin"
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$ac_cv_prog_CC"; then
2043 ac_ct_CC=$CC
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 CC=$ac_ct_CC
2080 else
2081 CC="$ac_cv_prog_CC"
2084 if test -z "$CC"; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2087 set dummy ${ac_tool_prefix}cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="${ac_tool_prefix}cc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2107 done
2108 done
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2122 if test -z "$ac_cv_prog_CC"; then
2123 ac_ct_CC=$CC
2124 # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC="cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2145 done
2146 done
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2159 CC=$ac_ct_CC
2160 else
2161 CC="$ac_cv_prog_CC"
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2195 if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2198 shift
2199 if test $# != 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2203 shift
2204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 for ac_prog in cl
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2244 done
2245 done
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251 echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2253 else
2254 echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2258 test -n "$CC" && break
2259 done
2261 if test -z "$CC"; then
2262 ac_ct_CC=$CC
2263 for ac_prog in cl
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2300 test -n "$ac_ct_CC" && break
2301 done
2303 CC=$ac_ct_CC
2309 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2315 # Provide some information about the compiler.
2316 echo "$as_me:$LINENO:" \
2317 "checking for C compiler version" >&5
2318 ac_compiler=`set X $ac_compile; echo $2`
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2320 (eval $ac_compiler --version </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2325 (eval $ac_compiler -v </dev/null >&5) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2330 (eval $ac_compiler -V </dev/null >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2344 main ()
2348 return 0;
2350 _ACEOF
2351 # FIXME: Cleanup?
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 gcc_no_link=no
2358 else
2359 gcc_no_link=yes
2362 if test x$gcc_no_link = xyes; then
2363 # Setting cross_compile will disable run tests; it will
2364 # also disable AC_CHECK_FILE but that's generally
2365 # correct if we can't link.
2366 cross_compiling=yes
2367 EXEEXT=
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 main ()
2382 return 0;
2384 _ACEOF
2385 ac_clean_files_save=$ac_clean_files
2386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2389 # of exeext.
2390 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2391 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2394 (eval $ac_link_default) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Find the output, starting from the most likely. This scheme is
2399 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2400 # resort.
2402 # Be careful to initialize this variable, since it used to be cached.
2403 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2404 ac_cv_exeext=
2405 # b.out is created by i960 compilers.
2406 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412 conftest.$ac_ext )
2413 # This is the source file.
2415 [ab].out )
2416 # We found the default executable, but exeext='' is most
2417 # certainly right.
2418 break;;
2419 *.* )
2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # FIXME: I believe we export ac_cv_exeext for Libtool,
2422 # but it would be cool to find out if it's true. Does anybody
2423 # maintain Libtool? --akim.
2424 export ac_cv_exeext
2425 break;;
2427 break;;
2428 esac
2429 done
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&2;}
2438 { (exit 77); exit 77; }; }
2441 ac_exeext=$ac_cv_exeext
2442 echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6
2445 # Check the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2448 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2449 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2450 # If not cross compiling, check that we can run a simple program.
2451 if test "$cross_compiling" != yes; then
2452 if { ac_try='./$ac_file'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 cross_compiling=no
2459 else
2460 if test "$cross_compiling" = maybe; then
2461 cross_compiling=yes
2462 else
2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2473 echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2482 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6
2485 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2488 (eval $ac_link) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; then
2492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2493 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2494 # work properly (i.e., refer to `conftest.exe'), while it won't with
2495 # `rm'.
2496 for ac_file in conftest.exe conftest conftest.*; do
2497 test -f "$ac_file" || continue
2498 case $ac_file in
2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 export ac_cv_exeext
2502 break;;
2503 * ) break;;
2504 esac
2505 done
2506 else
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2514 rm -f conftest$ac_cv_exeext
2515 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516 echo "${ECHO_T}$ac_cv_exeext" >&6
2518 rm -f conftest.$ac_ext
2519 EXEEXT=$ac_cv_exeext
2520 ac_exeext=$EXEEXT
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2536 main ()
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555 done
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2587 main ()
2589 #ifndef __GNUC__
2590 choke me
2591 #endif
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_compiler_gnu=yes
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 ac_compiler_gnu=no
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2625 CFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 main ()
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_cv_prog_cc_g=yes
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 ac_cv_prog_cc_g=no
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2674 CFLAGS="-g -O2"
2675 else
2676 CFLAGS="-g"
2678 else
2679 if test "$GCC" = yes; then
2680 CFLAGS="-O2"
2681 else
2682 CFLAGS=
2685 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2686 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 ac_cv_prog_cc_stdc=no
2691 ac_save_CC=$CC
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699 #include <stdarg.h>
2700 #include <stdio.h>
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2707 char **p;
2708 int i;
2710 return p[i];
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2714 char *s;
2715 va_list v;
2716 va_start (v,p);
2717 s = g (p, va_arg (v,int));
2718 va_end (v);
2719 return s;
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2728 main ()
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 return 0;
2734 _ACEOF
2735 # Don't try gcc -ansi; that turns off useful extensions and
2736 # breaks some systems' header files.
2737 # AIX -qlanglvl=ansi
2738 # Ultrix and OSF/1 -std1
2739 # HP-UX 10.20 and later -Ae
2740 # HP-UX older versions -Aa -D_HPUX_SOURCE
2741 # SVR4 -Xc -D__EXTENSIONS__
2742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2771 case "x$ac_cv_prog_cc_stdc" in
2772 x|xno)
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2781 # Some people use a C++ compiler to compile C. Since we use `exit',
2782 # in C++ we need to declare it. In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787 choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2803 '' \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2808 'void exit (int);'
2810 cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2817 $ac_declaration
2818 #include <stdlib.h>
2820 main ()
2822 exit (42);
2824 return 0;
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 continue
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 $ac_declaration
2856 main ()
2858 exit (42);
2860 return 0;
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 break
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 done
2883 rm -f conftest*
2884 if test -n "$ac_declaration"; then
2885 echo '#ifdef __cplusplus' >>confdefs.h
2886 echo $ac_declaration >>confdefs.h
2887 echo '#endif' >>confdefs.h
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2895 rm -f conftest.$ac_objext conftest.$ac_ext
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 ac_ext=cc
2903 ac_cpp='$CXXCPP $CPPFLAGS'
2904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$CXX"; then
2918 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2936 CXX=$glibcxx_cv_prog_CXX
2937 if test -n "$CXX"; then
2938 echo "$as_me:$LINENO: result: $CXX" >&5
2939 echo "${ECHO_T}$CXX" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2945 test -n "$CXX" && break
2946 done
2948 if test -z "$CXX"; then
2949 ac_ct_CXX=$CXX
2950 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 if test -n "$ac_ct_CXX"; then
2960 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_CXX="$ac_prog"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2978 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2979 if test -n "$ac_ct_CXX"; then
2980 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2981 echo "${ECHO_T}$ac_ct_CXX" >&6
2982 else
2983 echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6
2987 test -n "$ac_ct_CXX" && break
2988 done
2989 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2991 CXX=$ac_ct_CXX
2995 # Provide some information about the compiler.
2996 echo "$as_me:$LINENO:" \
2997 "checking for C++ compiler version" >&5
2998 ac_compiler=`set X $ac_compile; echo $2`
2999 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3000 (eval $ac_compiler --version </dev/null >&5) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3005 (eval $ac_compiler -v </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3010 (eval $ac_compiler -V </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3015 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3017 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 #line $LINENO "configure"
3022 /* confdefs.h. */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3029 main ()
3031 #ifndef __GNUC__
3032 choke me
3033 #endif
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_compiler_gnu=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 ac_compiler_gnu=no
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3059 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3062 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3063 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3064 GXX=`test $ac_compiler_gnu = yes && echo yes`
3065 ac_test_CXXFLAGS=${CXXFLAGS+set}
3066 ac_save_CXXFLAGS=$CXXFLAGS
3067 CXXFLAGS="-g"
3068 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3069 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3070 if test "${ac_cv_prog_cxx_g+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 cat >conftest.$ac_ext <<_ACEOF
3074 #line $LINENO "configure"
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3082 main ()
3086 return 0;
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 ac_cv_prog_cxx_g=yes
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 ac_cv_prog_cxx_g=no
3108 rm -f conftest.$ac_objext conftest.$ac_ext
3110 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3112 if test "$ac_test_CXXFLAGS" = set; then
3113 CXXFLAGS=$ac_save_CXXFLAGS
3114 elif test $ac_cv_prog_cxx_g = yes; then
3115 if test "$GXX" = yes; then
3116 CXXFLAGS="-g -O2"
3117 else
3118 CXXFLAGS="-g"
3120 else
3121 if test "$GXX" = yes; then
3122 CXXFLAGS="-O2"
3123 else
3124 CXXFLAGS=
3127 for ac_declaration in \
3128 '' \
3129 'extern "C" void std::exit (int) throw (); using std::exit;' \
3130 'extern "C" void std::exit (int); using std::exit;' \
3131 'extern "C" void exit (int) throw ();' \
3132 'extern "C" void exit (int);' \
3133 'void exit (int);'
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 $ac_declaration
3143 #include <stdlib.h>
3145 main ()
3147 exit (42);
3149 return 0;
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 continue
3171 rm -f conftest.$ac_objext conftest.$ac_ext
3172 cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 $ac_declaration
3181 main ()
3183 exit (42);
3185 return 0;
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 break
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f conftest.$ac_objext conftest.$ac_ext
3207 done
3208 rm -f conftest*
3209 if test -n "$ac_declaration"; then
3210 echo '#ifdef __cplusplus' >>confdefs.h
3211 echo $ac_declaration >>confdefs.h
3212 echo '#endif' >>confdefs.h
3215 ac_ext=c
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 CXXFLAGS="$save_CXXFLAGS"
3226 # For directory versioning (e.g., headers) and other variables.
3227 echo "$as_me:$LINENO: checking for GCC version number" >&5
3228 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3229 gcc_version=`$CXX -dumpversion`
3230 echo "$as_me:$LINENO: result: $gcc_version" >&5
3231 echo "${ECHO_T}$gcc_version" >&6
3233 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3234 # available). Uncomment the next line to force a particular method.
3235 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3237 LN_S=$as_ln_s
3238 if test "$LN_S" = "ln -s"; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240 echo "${ECHO_T}yes" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3243 echo "${ECHO_T}no, using $LN_S" >&6
3246 #LN_S='cp -p'
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}as; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_AS+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$AS"; then
3257 ac_cv_prog_AS="$AS" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_AS="${ac_tool_prefix}as"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3270 done
3271 done
3275 AS=$ac_cv_prog_AS
3276 if test -n "$AS"; then
3277 echo "$as_me:$LINENO: result: $AS" >&5
3278 echo "${ECHO_T}$AS" >&6
3279 else
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3285 if test -z "$ac_cv_prog_AS"; then
3286 ac_ct_AS=$AS
3287 # Extract the first word of "as", so it can be a program name with args.
3288 set dummy as; ac_word=$2
3289 echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 if test -n "$ac_ct_AS"; then
3295 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_ac_ct_AS="as"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3308 done
3309 done
3313 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3314 if test -n "$ac_ct_AS"; then
3315 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3316 echo "${ECHO_T}$ac_ct_AS" >&6
3317 else
3318 echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3322 AS=$ac_ct_AS
3323 else
3324 AS="$ac_cv_prog_AS"
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}ar; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_AR+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 if test -n "$AR"; then
3336 ac_cv_prog_AR="$AR" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_AR="${ac_tool_prefix}ar"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3354 AR=$ac_cv_prog_AR
3355 if test -n "$AR"; then
3356 echo "$as_me:$LINENO: result: $AR" >&5
3357 echo "${ECHO_T}$AR" >&6
3358 else
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3364 if test -z "$ac_cv_prog_AR"; then
3365 ac_ct_AR=$AR
3366 # Extract the first word of "ar", so it can be a program name with args.
3367 set dummy ar; ac_word=$2
3368 echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 if test -n "$ac_ct_AR"; then
3374 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_AR="ar"
3384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3387 done
3388 done
3392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3393 if test -n "$ac_ct_AR"; then
3394 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3395 echo "${ECHO_T}$ac_ct_AR" >&6
3396 else
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3401 AR=$ac_ct_AR
3402 else
3403 AR="$ac_cv_prog_AR"
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$RANLIB"; then
3415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3433 RANLIB=$ac_cv_prog_RANLIB
3434 if test -n "$RANLIB"; then
3435 echo "$as_me:$LINENO: result: $RANLIB" >&5
3436 echo "${ECHO_T}$RANLIB" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_RANLIB"; then
3444 ac_ct_RANLIB=$RANLIB
3445 # Extract the first word of "ranlib", so it can be a program name with args.
3446 set dummy ranlib; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_RANLIB"; then
3453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_RANLIB="ranlib"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473 if test -n "$ac_ct_RANLIB"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3476 else
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 RANLIB=$ac_ct_RANLIB
3482 else
3483 RANLIB="$ac_cv_prog_RANLIB"
3487 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3488 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3489 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3490 if test "${enable_maintainer_mode+set}" = set; then
3491 enableval="$enable_maintainer_mode"
3492 USE_MAINTAINER_MODE=$enableval
3493 else
3494 USE_MAINTAINER_MODE=no
3496 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3497 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3500 if test $USE_MAINTAINER_MODE = yes; then
3501 MAINTAINER_MODE_TRUE=
3502 MAINTAINER_MODE_FALSE='#'
3503 else
3504 MAINTAINER_MODE_TRUE='#'
3505 MAINTAINER_MODE_FALSE=
3508 MAINT=$MAINTAINER_MODE_TRUE
3512 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3513 # which are themselves conditionally expanded.
3514 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3515 ## other macros from doing the same. This should be automated.) -pme
3516 need_libmath=no
3517 enable_wchar_t=no
3518 #enable_libstdcxx_debug=no
3519 #enable_libstdcxx_pch=no
3520 #enable_cheaders=c
3521 #c_compatibility=no
3522 #enable_abi_check=no
3523 #enable_symvers=no
3524 #enable_hosted_libstdcxx=yes
3526 # Find platform-specific directories containing configuration info.
3527 # Also possibly modify flags used elsewhere, as needed by the platform.
3529 . $glibcxx_srcdir/configure.host
3530 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3531 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3532 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3533 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3537 #AC_MSG_NOTICE([====== Starting libtool configuration])
3539 # Check whether --enable-shared or --disable-shared was given.
3540 if test "${enable_shared+set}" = set; then
3541 enableval="$enable_shared"
3542 p=${PACKAGE-default}
3543 case $enableval in
3544 yes) enable_shared=yes ;;
3545 no) enable_shared=no ;;
3547 enable_shared=no
3548 # Look at the argument we got. We use all the common list separators.
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3550 for pkg in $enableval; do
3551 if test "X$pkg" = "X$p"; then
3552 enable_shared=yes
3554 done
3555 IFS="$ac_save_ifs"
3557 esac
3558 else
3559 enable_shared=yes
3561 # Check whether --enable-static or --disable-static was given.
3562 if test "${enable_static+set}" = set; then
3563 enableval="$enable_static"
3564 p=${PACKAGE-default}
3565 case $enableval in
3566 yes) enable_static=yes ;;
3567 no) enable_static=no ;;
3569 enable_static=no
3570 # Look at the argument we got. We use all the common list separators.
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3572 for pkg in $enableval; do
3573 if test "X$pkg" = "X$p"; then
3574 enable_static=yes
3576 done
3577 IFS="$ac_save_ifs"
3579 esac
3580 else
3581 enable_static=yes
3583 # Check whether --enable-fast-install or --disable-fast-install was given.
3584 if test "${enable_fast_install+set}" = set; then
3585 enableval="$enable_fast_install"
3586 p=${PACKAGE-default}
3587 case $enableval in
3588 yes) enable_fast_install=yes ;;
3589 no) enable_fast_install=no ;;
3591 enable_fast_install=no
3592 # Look at the argument we got. We use all the common list separators.
3593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3594 for pkg in $enableval; do
3595 if test "X$pkg" = "X$p"; then
3596 enable_fast_install=yes
3598 done
3599 IFS="$ac_save_ifs"
3601 esac
3602 else
3603 enable_fast_install=yes
3606 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3607 if test "${with_gnu_ld+set}" = set; then
3608 withval="$with_gnu_ld"
3609 test "$withval" = no || with_gnu_ld=yes
3610 else
3611 with_gnu_ld=no
3613 ac_prog=ld
3614 if test "$GCC" = yes; then
3615 # Check if gcc -print-prog-name=ld gives a path.
3616 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3617 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3618 case $host in
3619 *-*-mingw*)
3620 # gcc leaves a trailing carriage return which upsets mingw
3621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3624 esac
3625 case $ac_prog in
3626 # Accept absolute paths.
3627 [\\/]* | [A-Za-z]:[\\/]*)
3628 re_direlt='/[^/][^/]*/\.\./'
3629 # Canonicalize the path of ld
3630 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3631 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3632 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3633 done
3634 test -z "$LD" && LD="$ac_prog"
3637 # If it fails, then pretend we aren't using GCC.
3638 ac_prog=ld
3641 # If it is relative, then search for the first ld in PATH.
3642 with_gnu_ld=unknown
3644 esac
3645 elif test "$with_gnu_ld" = yes; then
3646 echo "$as_me:$LINENO: checking for GNU ld" >&5
3647 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3648 else
3649 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3650 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3652 if test "${lt_cv_path_LD+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -z "$LD"; then
3656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3657 for ac_dir in $PATH; do
3658 test -z "$ac_dir" && ac_dir=.
3659 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3660 lt_cv_path_LD="$ac_dir/$ac_prog"
3661 # Check to see if the program is GNU ld. I'd rather use --version,
3662 # but apparently some GNU ld's only accept -v.
3663 # Break only if it was the GNU/non-GNU ld that we prefer.
3664 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3665 test "$with_gnu_ld" != no && break
3666 else
3667 test "$with_gnu_ld" != yes && break
3670 done
3671 IFS="$ac_save_ifs"
3672 else
3673 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3677 LD="$lt_cv_path_LD"
3678 if test -n "$LD"; then
3679 echo "$as_me:$LINENO: result: $LD" >&5
3680 echo "${ECHO_T}$LD" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3685 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3686 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3687 { (exit 1); exit 1; }; }
3688 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3689 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3690 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3694 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3695 lt_cv_prog_gnu_ld=yes
3696 else
3697 lt_cv_prog_gnu_ld=no
3700 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3701 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3702 with_gnu_ld=$lt_cv_prog_gnu_ld
3705 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3706 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3707 if test "${lt_cv_ld_reload_flag+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 lt_cv_ld_reload_flag='-r'
3712 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3713 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3714 reload_flag=$lt_cv_ld_reload_flag
3715 test -n "$reload_flag" && reload_flag=" $reload_flag"
3717 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3718 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3719 if test "${lt_cv_path_NM+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$NM"; then
3723 # Let the user override the test.
3724 lt_cv_path_NM="$NM"
3725 else
3726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3727 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3728 test -z "$ac_dir" && ac_dir=.
3729 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3730 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3731 # Check to see if the nm accepts a BSD-compat flag.
3732 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3733 # nm: unknown option "B" ignored
3734 # Tru64's nm complains that /dev/null is an invalid object file
3735 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3736 lt_cv_path_NM="$tmp_nm -B"
3737 break
3738 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3739 lt_cv_path_NM="$tmp_nm -p"
3740 break
3741 else
3742 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3743 continue # so that we can try to find one that supports BSD flags
3746 done
3747 IFS="$ac_save_ifs"
3748 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3752 NM="$lt_cv_path_NM"
3753 echo "$as_me:$LINENO: result: $NM" >&5
3754 echo "${ECHO_T}$NM" >&6
3756 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3757 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3758 if test "${lt_cv_deplibs_check_method+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 lt_cv_file_magic_cmd='$MAGIC_CMD'
3762 lt_cv_file_magic_test_file=
3763 lt_cv_deplibs_check_method='unknown'
3764 # Need to set the preceding variable on all platforms that support
3765 # interlibrary dependencies.
3766 # 'none' -- dependencies not supported.
3767 # `unknown' -- same as none, but documents that we really don't know.
3768 # 'pass_all' -- all dependencies passed with no checks.
3769 # 'test_compile' -- check by making test program.
3770 # 'file_magic [regex]' -- check by looking for files in library path
3771 # which responds to the $file_magic_cmd with a given egrep regex.
3772 # If you have `file' or equivalent on your system and you're not sure
3773 # whether `pass_all' will *always* work, you probably want this one.
3775 case $host_os in
3776 aix*)
3777 lt_cv_deplibs_check_method=pass_all
3780 beos*)
3781 lt_cv_deplibs_check_method=pass_all
3784 bsdi4*)
3785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3786 lt_cv_file_magic_cmd='/usr/bin/file -L'
3787 lt_cv_file_magic_test_file=/shlib/libc.so
3790 cygwin* | mingw* |pw32*)
3791 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3792 lt_cv_file_magic_cmd='$OBJDUMP -f'
3795 darwin* | rhapsody*)
3796 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3797 lt_cv_file_magic_cmd='/usr/bin/file -L'
3798 case "$host_os" in
3799 rhapsody* | darwin1.012)
3800 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3802 *) # Darwin 1.3 on
3803 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3805 esac
3808 freebsd* )
3809 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3810 case $host_cpu in
3811 i*86 )
3812 # Not sure whether the presence of OpenBSD here was a mistake.
3813 # Let's accept both of them until this is cleared up.
3814 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3815 lt_cv_file_magic_cmd=/usr/bin/file
3816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3818 esac
3819 else
3820 lt_cv_deplibs_check_method=pass_all
3824 gnu*)
3825 lt_cv_deplibs_check_method=pass_all
3828 hpux10.20*|hpux11*)
3829 case $host_cpu in
3830 hppa*)
3831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3832 lt_cv_file_magic_cmd=/usr/bin/file
3833 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3835 ia64*)
3836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3840 esac
3843 irix5* | irix6*)
3844 case $host_os in
3845 irix5*)
3846 # this will be overridden with pass_all, but let us keep it just in case
3847 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3850 case $LD in
3851 *-32|*"-32 ") libmagic=32-bit;;
3852 *-n32|*"-n32 ") libmagic=N32;;
3853 *-64|*"-64 ") libmagic=64-bit;;
3854 *) libmagic=never-match;;
3855 esac
3856 # this will be overridden with pass_all, but let us keep it just in case
3857 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3859 esac
3860 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3861 lt_cv_deplibs_check_method=pass_all
3864 # This must be Linux ELF.
3865 linux-gnu*)
3866 case $host_cpu in
3867 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3868 lt_cv_deplibs_check_method=pass_all ;;
3870 # glibc up to 2.1.1 does not perform some relocations on ARM
3871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3872 esac
3873 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3876 netbsd*)
3877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3878 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3879 else
3880 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3884 newsos6)
3885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3886 lt_cv_file_magic_cmd=/usr/bin/file
3887 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3890 osf3* | osf4* | osf5*)
3891 # this will be overridden with pass_all, but let us keep it just in case
3892 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3893 lt_cv_file_magic_test_file=/shlib/libc.so
3894 lt_cv_deplibs_check_method=pass_all
3897 sco3.2v5*)
3898 lt_cv_deplibs_check_method=pass_all
3901 solaris*)
3902 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_file_magic_test_file=/lib/libc.so
3906 sysv5uw[78]* | sysv4*uw2*)
3907 lt_cv_deplibs_check_method=pass_all
3910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3911 case $host_vendor in
3912 ncr)
3913 lt_cv_deplibs_check_method=pass_all
3915 motorola)
3916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3917 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3919 esac
3921 esac
3924 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3925 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3926 file_magic_cmd=$lt_cv_file_magic_cmd
3927 deplibs_check_method=$lt_cv_deplibs_check_method
3933 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3935 # Only perform the check for file, if the check method requires it
3936 case $deplibs_check_method in
3937 file_magic*)
3938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3939 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 case $MAGIC_CMD in
3946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3948 ?:/*)
3949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3952 ac_save_MAGIC_CMD="$MAGIC_CMD"
3953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3954 ac_dummy="/usr/bin:$PATH"
3955 for ac_dir in $ac_dummy; do
3956 test -z "$ac_dir" && ac_dir=.
3957 if test -f $ac_dir/${ac_tool_prefix}file; then
3958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3959 if test -n "$file_magic_test_file"; then
3960 case $deplibs_check_method in
3961 "file_magic "*)
3962 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3965 egrep "$file_magic_regex" > /dev/null; then
3967 else
3968 cat <<EOF 1>&2
3970 *** Warning: the command libtool uses to detect shared libraries,
3971 *** $file_magic_cmd, produces output that libtool cannot recognize.
3972 *** The result is that libtool may fail to recognize shared libraries
3973 *** as such. This will affect the creation of libtool libraries that
3974 *** depend on shared libraries, but programs linked with such libtool
3975 *** libraries will work regardless of this problem. Nevertheless, you
3976 *** may want to report the problem to your system manager and/or to
3977 *** bug-libtool@gnu.org
3980 fi ;;
3981 esac
3983 break
3985 done
3986 IFS="$ac_save_ifs"
3987 MAGIC_CMD="$ac_save_MAGIC_CMD"
3989 esac
3992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3993 if test -n "$MAGIC_CMD"; then
3994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3995 echo "${ECHO_T}$MAGIC_CMD" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 if test -z "$lt_cv_path_MAGIC_CMD"; then
4002 if test -n "$ac_tool_prefix"; then
4003 echo "$as_me:$LINENO: checking for file" >&5
4004 echo $ECHO_N "checking for file... $ECHO_C" >&6
4005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 case $MAGIC_CMD in
4010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4012 ?:/*)
4013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4016 ac_save_MAGIC_CMD="$MAGIC_CMD"
4017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4018 ac_dummy="/usr/bin:$PATH"
4019 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 if test -f $ac_dir/file; then
4022 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4023 if test -n "$file_magic_test_file"; then
4024 case $deplibs_check_method in
4025 "file_magic "*)
4026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4029 egrep "$file_magic_regex" > /dev/null; then
4031 else
4032 cat <<EOF 1>&2
4034 *** Warning: the command libtool uses to detect shared libraries,
4035 *** $file_magic_cmd, produces output that libtool cannot recognize.
4036 *** The result is that libtool may fail to recognize shared libraries
4037 *** as such. This will affect the creation of libtool libraries that
4038 *** depend on shared libraries, but programs linked with such libtool
4039 *** libraries will work regardless of this problem. Nevertheless, you
4040 *** may want to report the problem to your system manager and/or to
4041 *** bug-libtool@gnu.org
4044 fi ;;
4045 esac
4047 break
4049 done
4050 IFS="$ac_save_ifs"
4051 MAGIC_CMD="$ac_save_MAGIC_CMD"
4053 esac
4056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4057 if test -n "$MAGIC_CMD"; then
4058 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4059 echo "${ECHO_T}$MAGIC_CMD" >&6
4060 else
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 else
4066 MAGIC_CMD=:
4072 esac
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_RANLIB+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if test -n "$RANLIB"; then
4083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4096 done
4097 done
4101 RANLIB=$ac_cv_prog_RANLIB
4102 if test -n "$RANLIB"; then
4103 echo "$as_me:$LINENO: result: $RANLIB" >&5
4104 echo "${ECHO_T}$RANLIB" >&6
4105 else
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4111 if test -z "$ac_cv_prog_RANLIB"; then
4112 ac_ct_RANLIB=$RANLIB
4113 # Extract the first word of "ranlib", so it can be a program name with args.
4114 set dummy ranlib; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$ac_ct_RANLIB"; then
4121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_ac_ct_RANLIB="ranlib"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4141 if test -n "$ac_ct_RANLIB"; then
4142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4143 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4144 else
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4149 RANLIB=$ac_ct_RANLIB
4150 else
4151 RANLIB="$ac_cv_prog_RANLIB"
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4156 set dummy ${ac_tool_prefix}strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_STRIP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -n "$STRIP"; then
4163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4181 STRIP=$ac_cv_prog_STRIP
4182 if test -n "$STRIP"; then
4183 echo "$as_me:$LINENO: result: $STRIP" >&5
4184 echo "${ECHO_T}$STRIP" >&6
4185 else
4186 echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4191 if test -z "$ac_cv_prog_STRIP"; then
4192 ac_ct_STRIP=$STRIP
4193 # Extract the first word of "strip", so it can be a program name with args.
4194 set dummy strip; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 if test -n "$ac_ct_STRIP"; then
4201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_ac_ct_STRIP="strip"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4214 done
4215 done
4217 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4221 if test -n "$ac_ct_STRIP"; then
4222 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4223 echo "${ECHO_T}$ac_ct_STRIP" >&6
4224 else
4225 echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4229 STRIP=$ac_ct_STRIP
4230 else
4231 STRIP="$ac_cv_prog_STRIP"
4235 # Check for any special flags to pass to ltconfig.
4236 libtool_flags="--cache-file=$cache_file"
4237 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4238 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4239 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4240 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4241 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4244 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4245 if test "${enable_libtool_lock+set}" = set; then
4246 enableval="$enable_libtool_lock"
4249 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4250 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4253 # Check whether --with-pic or --without-pic was given.
4254 if test "${with_pic+set}" = set; then
4255 withval="$with_pic"
4256 pic_mode="$withval"
4257 else
4258 pic_mode=default
4260 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4261 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4263 # Some flags need to be propagated to the compiler or linker for good
4264 # libtool support.
4265 case $host in
4266 *-*-irix6*)
4267 # Find out which ABI we are using.
4268 echo '#line 4268 "configure"' > conftest.$ac_ext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; then
4274 if test "$lt_cv_prog_gnu_ld" = yes; then
4275 case `/usr/bin/file conftest.$ac_objext` in
4276 *32-bit*)
4277 LD="${LD-ld} -melf32bsmip"
4279 *N32*)
4280 LD="${LD-ld} -melf32bmipn32"
4282 *64-bit*)
4283 LD="${LD-ld} -melf64bmip"
4285 esac
4286 else
4287 case `/usr/bin/file conftest.$ac_objext` in
4288 *32-bit*)
4289 LD="${LD-ld} -32"
4291 *N32*)
4292 LD="${LD-ld} -n32"
4294 *64-bit*)
4295 LD="${LD-ld} -64"
4297 esac
4300 rm -rf conftest*
4303 ia64-*-hpux*)
4304 # Find out which ABI we are using.
4305 echo 'int i;' > conftest.$ac_ext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; then
4311 case "`/usr/bin/file conftest.o`" in
4312 *ELF-32*)
4313 HPUX_IA64_MODE="32"
4315 *ELF-64*)
4316 HPUX_IA64_MODE="64"
4318 esac
4320 rm -rf conftest*
4323 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4324 # Find out which ABI we are using.
4325 echo 'int i;' > conftest.$ac_ext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; then
4331 case "`/usr/bin/file conftest.o`" in
4332 *32-bit*)
4333 case $host in
4334 x86_64-*linux*)
4335 LD="${LD-ld} -m elf_i386"
4337 ppc64-*linux*)
4338 LD="${LD-ld} -m elf32ppclinux"
4340 s390x-*linux*)
4341 LD="${LD-ld} -m elf_s390"
4343 sparc64-*linux*)
4344 LD="${LD-ld} -m elf32_sparc"
4346 esac
4348 *64-bit*)
4349 case $host in
4350 x86_64-*linux*)
4351 LD="${LD-ld} -m elf_x86_64"
4353 ppc*-*linux*|powerpc*-*linux*)
4354 LD="${LD-ld} -m elf64ppc"
4356 s390*-*linux*)
4357 LD="${LD-ld} -m elf64_s390"
4359 sparc*-*linux*)
4360 LD="${LD-ld} -m elf64_sparc"
4362 esac
4364 esac
4366 rm -rf conftest*
4369 *-*-sco3.2v5*)
4370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4371 SAVE_CFLAGS="$CFLAGS"
4372 CFLAGS="$CFLAGS -belf"
4373 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4374 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4375 if test "${lt_cv_cc_needs_belf+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 if test x$gcc_no_link = xyes; then
4387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4389 { (exit 1); exit 1; }; }
4391 cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 rm -f conftest.$ac_objext conftest$ac_exeext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4409 (eval $ac_link) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -s conftest$ac_exeext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 lt_cv_cc_needs_belf=yes
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 lt_cv_cc_needs_belf=no
4426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4435 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4438 CFLAGS="$SAVE_CFLAGS"
4443 esac
4446 # Save cache, so that ltconfig can load it
4447 cat >confcache <<\_ACEOF
4448 # This file is a shell script that caches the results of configure
4449 # tests run on this system so they can be shared between configure
4450 # scripts and configure runs, see configure's option --config-cache.
4451 # It is not useful on other systems. If it contains results you don't
4452 # want to keep, you may remove or edit it.
4454 # config.status only pays attention to the cache file if you give it
4455 # the --recheck option to rerun configure.
4457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4459 # following values.
4461 _ACEOF
4463 # The following way of writing the cache mishandles newlines in values,
4464 # but we know of no workaround that is simple, portable, and efficient.
4465 # So, don't put newlines in cache variables' values.
4466 # Ultrix sh set writes to stderr and can't be redirected directly,
4467 # and sets the high bit in the cache file unless we assign to the vars.
4469 (set) 2>&1 |
4470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4471 *ac_space=\ *)
4472 # `set' does not quote correctly, so add quotes (double-quote
4473 # substitution turns \\\\ into \\, and sed turns \\ into \).
4474 sed -n \
4475 "s/'/'\\\\''/g;
4476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4479 # `set' quotes correctly as required by POSIX, so do not add quotes.
4480 sed -n \
4481 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4483 esac;
4485 sed '
4486 t clear
4487 : clear
4488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4489 t end
4490 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4491 : end' >>confcache
4492 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4493 if test -w $cache_file; then
4494 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4495 cat confcache >$cache_file
4496 else
4497 echo "not updating unwritable cache $cache_file"
4500 rm -f confcache
4502 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4503 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4504 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4505 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4506 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4507 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4508 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4509 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4510 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4511 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4512 echo "$as_me: error: libtool configure failed" >&2;}
4513 { (exit 1); exit 1; }; }
4515 # Reload cache, that may have been modified by ltconfig
4516 if test -r "$cache_file"; then
4517 # Some versions of bash will fail to source /dev/null (special
4518 # files actually), so we avoid doing that.
4519 if test -f "$cache_file"; then
4520 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4521 echo "$as_me: loading cache $cache_file" >&6;}
4522 case $cache_file in
4523 [\\/]* | ?:[\\/]* ) . $cache_file;;
4524 *) . ./$cache_file;;
4525 esac
4527 else
4528 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4529 echo "$as_me: creating cache $cache_file" >&6;}
4530 >$cache_file
4534 # This can be used to rebuild libtool when needed
4535 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4537 # Always use our own libtool.
4538 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4540 # Redirect the config.log output again, so that the ltconfig log is not
4541 # clobbered by the next message.
4542 exec 5>>./config.log
4544 ac_ext=cc
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4550 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4551 if test -z "$CXXCPP"; then
4552 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 # Double quotes because CXXCPP needs to be expanded
4556 for CXXCPP in "$CXX -E" "/lib/cpp"
4558 ac_preproc_ok=false
4559 for ac_cxx_preproc_warn_flag in '' yes
4561 # Use a header file that comes with gcc, so configuring glibc
4562 # with a fresh cross-compiler works.
4563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 # <limits.h> exists even on freestanding compilers.
4565 # On the NeXT, cc -E runs the code through the compiler's parser,
4566 # not just through cpp. "Syntax error" is here to catch this case.
4567 cat >conftest.$ac_ext <<_ACEOF
4568 #line $LINENO "configure"
4569 /* confdefs.h. */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579 Syntax error
4580 _ACEOF
4581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null; then
4589 if test -s conftest.err; then
4590 ac_cpp_err=$ac_cxx_preproc_warn_flag
4591 else
4592 ac_cpp_err=
4594 else
4595 ac_cpp_err=yes
4597 if test -z "$ac_cpp_err"; then
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 # Broken: fails on valid input.
4604 continue
4606 rm -f conftest.err conftest.$ac_ext
4608 # OK, works on sane cases. Now check whether non-existent headers
4609 # can be detected and how.
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #include <ac_nonexistent.h>
4618 _ACEOF
4619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } >/dev/null; then
4627 if test -s conftest.err; then
4628 ac_cpp_err=$ac_cxx_preproc_warn_flag
4629 else
4630 ac_cpp_err=
4632 else
4633 ac_cpp_err=yes
4635 if test -z "$ac_cpp_err"; then
4636 # Broken: success on invalid input.
4637 continue
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 # Passes both tests.
4643 ac_preproc_ok=:
4644 break
4646 rm -f conftest.err conftest.$ac_ext
4648 done
4649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4650 rm -f conftest.err conftest.$ac_ext
4651 if $ac_preproc_ok; then
4652 break
4655 done
4656 ac_cv_prog_CXXCPP=$CXXCPP
4659 CXXCPP=$ac_cv_prog_CXXCPP
4660 else
4661 ac_cv_prog_CXXCPP=$CXXCPP
4663 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4664 echo "${ECHO_T}$CXXCPP" >&6
4665 ac_preproc_ok=false
4666 for ac_cxx_preproc_warn_flag in '' yes
4668 # Use a header file that comes with gcc, so configuring glibc
4669 # with a fresh cross-compiler works.
4670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4671 # <limits.h> exists even on freestanding compilers.
4672 # On the NeXT, cc -E runs the code through the compiler's parser,
4673 # not just through cpp. "Syntax error" is here to catch this case.
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #ifdef __STDC__
4682 # include <limits.h>
4683 #else
4684 # include <assert.h>
4685 #endif
4686 Syntax error
4687 _ACEOF
4688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } >/dev/null; then
4696 if test -s conftest.err; then
4697 ac_cpp_err=$ac_cxx_preproc_warn_flag
4698 else
4699 ac_cpp_err=
4701 else
4702 ac_cpp_err=yes
4704 if test -z "$ac_cpp_err"; then
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 # Broken: fails on valid input.
4711 continue
4713 rm -f conftest.err conftest.$ac_ext
4715 # OK, works on sane cases. Now check whether non-existent headers
4716 # can be detected and how.
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <ac_nonexistent.h>
4725 _ACEOF
4726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev/null; then
4734 if test -s conftest.err; then
4735 ac_cpp_err=$ac_cxx_preproc_warn_flag
4736 else
4737 ac_cpp_err=
4739 else
4740 ac_cpp_err=yes
4742 if test -z "$ac_cpp_err"; then
4743 # Broken: success on invalid input.
4744 continue
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 # Passes both tests.
4750 ac_preproc_ok=:
4751 break
4753 rm -f conftest.err conftest.$ac_ext
4755 done
4756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4757 rm -f conftest.err conftest.$ac_ext
4758 if $ac_preproc_ok; then
4760 else
4761 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4762 See \`config.log' for more details." >&5
4763 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4764 See \`config.log' for more details." >&2;}
4765 { (exit 1); exit 1; }; }
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4777 lt_save_CC="$CC"
4778 lt_save_CFLAGS="$CFLAGS"
4779 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4780 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4781 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4782 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4783 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4784 deplibs_check_method="$deplibs_check_method" \
4785 file_magic_cmd="$file_magic_cmd" \
4786 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4787 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4788 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4789 echo "$as_me: error: libtool tag configuration failed" >&2;}
4790 { (exit 1); exit 1; }; }
4791 CC="$lt_save_CC"
4792 CFLAGS="$lt_save_CFLAGS"
4794 # Redirect the config.log output again, so that the ltconfig log is not
4795 # clobbered by the next message.
4796 exec 5>>./config.log
4805 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4807 # Possibly disable most of the library.
4808 ## XXX Consider skipping unncessary tests altogether in this case, rather
4809 ## than just ignoring the results. Faster /and/ more correct, win win.
4811 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4812 if test "${enable_hosted_libstdcxx+set}" = set; then
4813 enableval="$enable_hosted_libstdcxx"
4815 else
4816 enable_hosted_libstdcxx=yes
4818 if test "$enable_hosted_libstdcxx" = no; then
4819 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4820 echo "$as_me: Only freestanding libraries will be built" >&6;}
4821 is_hosted=no
4822 hosted_define=0
4823 enable_abi_check=no
4824 enable_libstdcxx_pch=no
4825 else
4826 is_hosted=yes
4827 hosted_define=1
4831 cat >>confdefs.h <<_ACEOF
4832 #define _GLIBCXX_HOSTED $hosted_define
4833 _ACEOF
4837 # Check for support bits and g++ features that don't require linking.
4839 echo "$as_me:$LINENO: checking for exception model to use" >&5
4840 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4843 ac_ext=cc
4844 ac_cpp='$CXXCPP $CPPFLAGS'
4845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4849 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4850 if test "${enable_sjlj_exceptions+set}" = set; then
4851 enableval="$enable_sjlj_exceptions"
4853 case "$enableval" in
4854 yes|no|auto) ;;
4855 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4856 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4858 esac
4860 else
4861 enable_sjlj_exceptions=auto
4865 if test $enable_sjlj_exceptions = auto; then
4866 # Botheration. Now we've got to detect the exception model. Link tests
4867 # against libgcc.a are problematic since we've not been given proper -L
4868 # bits for single-tree newlib and libgloss.
4870 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4871 cat > conftest.$ac_ext << EOF
4872 #line 4872 "configure"
4873 struct S { ~S(); };
4874 void bar();
4875 void foo()
4877 S s;
4878 bar();
4881 old_CXXFLAGS="$CXXFLAGS"
4882 CXXFLAGS=-S
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; then
4888 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4889 enable_sjlj_exceptions=yes
4890 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4891 enable_sjlj_exceptions=no
4894 CXXFLAGS="$old_CXXFLAGS"
4895 rm -f conftest*
4898 # This is a tad weird, for hysterical raisins. We have to map enable/disable
4899 # to two different models.
4900 case $enable_sjlj_exceptions in
4901 yes)
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4905 _ACEOF
4907 ac_exception_model_name=sjlj
4910 ac_exception_model_name="call frame"
4913 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4914 echo "$as_me: error: unable to detect exception model" >&2;}
4915 { (exit 1); exit 1; }; }
4917 esac
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4925 echo "${ECHO_T}$ac_exception_model_name" >&6
4928 echo "$as_me:$LINENO: checking for use of libunwind" >&5
4929 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4930 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4931 if test "${enable_libunwind_exceptions+set}" = set; then
4932 enableval="$enable_libunwind_exceptions"
4934 case "$enableval" in
4935 yes|no) ;;
4936 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4937 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939 esac
4941 else
4942 enable_libunwind_exceptions=no
4945 echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4946 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4947 if test $enable_libunwind_exceptions = yes; then
4948 LIBUNWIND_FLAG="-lunwind"
4949 else
4950 LIBUNWIND_FLAG=""
4955 echo "$as_me:$LINENO: checking for enabled PCH" >&5
4956 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4957 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4958 if test "${enable_libstdcxx_pch+set}" = set; then
4959 enableval="$enable_libstdcxx_pch"
4961 case "$enableval" in
4962 yes|no) ;;
4963 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4964 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966 esac
4968 else
4969 enable_libstdcxx_pch=$is_hosted
4972 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4973 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4975 if test $enable_libstdcxx_pch = yes; then
4976 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4977 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4978 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 ac_save_CXXFLAGS="$CXXFLAGS"
4982 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4985 ac_ext=cc
4986 ac_cpp='$CXXCPP $CPPFLAGS'
4987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 echo '#include <math.h>' > conftest.h
4992 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4993 -o conftest.h.gch 1>&5 2>&1 &&
4994 echo '#error "pch failed"' > conftest.h &&
4995 echo '#include "conftest.h"' > conftest.cc &&
4996 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4997 then
4998 glibcxx_cv_prog_CXX_pch=yes
4999 else
5000 glibcxx_cv_prog_CXX_pch=no
5002 rm -f conftest*
5003 CXXFLAGS=$ac_save_CXXFLAGS
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5013 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5014 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5018 if test $enable_libstdcxx_pch = yes; then
5019 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5020 else
5021 glibcxx_PCHFLAGS=""
5026 # Enable all the variable C++ runtime options.
5027 # NB: C_MBCHAR must come early.
5029 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5030 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5031 # Check whether --enable-cstdio or --disable-cstdio was given.
5032 if test "${enable_cstdio+set}" = set; then
5033 enableval="$enable_cstdio"
5035 case "$enableval" in
5036 stdio) ;;
5037 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5038 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5039 { (exit 1); exit 1; }; } ;;
5040 esac
5042 else
5043 enable_cstdio=stdio
5047 # Now that libio has been removed, you can have any color you want as long
5048 # as it's black. This is one big no-op until other packages are added, but
5049 # showing the framework never hurts.
5050 case ${enable_cstdio} in
5051 stdio)
5052 CSTDIO_H=config/io/c_io_stdio.h
5053 BASIC_FILE_H=config/io/basic_file_stdio.h
5054 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5055 echo "$as_me:$LINENO: result: stdio" >&5
5056 echo "${ECHO_T}stdio" >&6
5058 esac
5060 FPOS_H=$fpos_include_dir
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5074 # On Suns, sometimes $CPP names a directory.
5075 if test -n "$CPP" && test -d "$CPP"; then
5076 CPP=
5078 if test -z "$CPP"; then
5079 if test "${ac_cv_prog_CPP+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082 # Double quotes because CPP needs to be expanded
5083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5085 ac_preproc_ok=false
5086 for ac_c_preproc_warn_flag in '' yes
5088 # Use a header file that comes with gcc, so configuring glibc
5089 # with a fresh cross-compiler works.
5090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5091 # <limits.h> exists even on freestanding compilers.
5092 # On the NeXT, cc -E runs the code through the compiler's parser,
5093 # not just through cpp. "Syntax error" is here to catch this case.
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #ifdef __STDC__
5102 # include <limits.h>
5103 #else
5104 # include <assert.h>
5105 #endif
5106 Syntax error
5107 _ACEOF
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null; then
5116 if test -s conftest.err; then
5117 ac_cpp_err=$ac_c_preproc_warn_flag
5118 else
5119 ac_cpp_err=
5121 else
5122 ac_cpp_err=yes
5124 if test -z "$ac_cpp_err"; then
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 # Broken: fails on valid input.
5131 continue
5133 rm -f conftest.err conftest.$ac_ext
5135 # OK, works on sane cases. Now check whether non-existent headers
5136 # can be detected and how.
5137 cat >conftest.$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <ac_nonexistent.h>
5145 _ACEOF
5146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } >/dev/null; then
5154 if test -s conftest.err; then
5155 ac_cpp_err=$ac_c_preproc_warn_flag
5156 else
5157 ac_cpp_err=
5159 else
5160 ac_cpp_err=yes
5162 if test -z "$ac_cpp_err"; then
5163 # Broken: success on invalid input.
5164 continue
5165 else
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5169 # Passes both tests.
5170 ac_preproc_ok=:
5171 break
5173 rm -f conftest.err conftest.$ac_ext
5175 done
5176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5177 rm -f conftest.err conftest.$ac_ext
5178 if $ac_preproc_ok; then
5179 break
5182 done
5183 ac_cv_prog_CPP=$CPP
5186 CPP=$ac_cv_prog_CPP
5187 else
5188 ac_cv_prog_CPP=$CPP
5190 echo "$as_me:$LINENO: result: $CPP" >&5
5191 echo "${ECHO_T}$CPP" >&6
5192 ac_preproc_ok=false
5193 for ac_c_preproc_warn_flag in '' yes
5195 # Use a header file that comes with gcc, so configuring glibc
5196 # with a fresh cross-compiler works.
5197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 # <limits.h> exists even on freestanding compilers.
5199 # On the NeXT, cc -E runs the code through the compiler's parser,
5200 # not just through cpp. "Syntax error" is here to catch this case.
5201 cat >conftest.$ac_ext <<_ACEOF
5202 #line $LINENO "configure"
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 #ifdef __STDC__
5209 # include <limits.h>
5210 #else
5211 # include <assert.h>
5212 #endif
5213 Syntax error
5214 _ACEOF
5215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null; then
5223 if test -s conftest.err; then
5224 ac_cpp_err=$ac_c_preproc_warn_flag
5225 else
5226 ac_cpp_err=
5228 else
5229 ac_cpp_err=yes
5231 if test -z "$ac_cpp_err"; then
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 # Broken: fails on valid input.
5238 continue
5240 rm -f conftest.err conftest.$ac_ext
5242 # OK, works on sane cases. Now check whether non-existent headers
5243 # can be detected and how.
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #include <ac_nonexistent.h>
5252 _ACEOF
5253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } >/dev/null; then
5261 if test -s conftest.err; then
5262 ac_cpp_err=$ac_c_preproc_warn_flag
5263 else
5264 ac_cpp_err=
5266 else
5267 ac_cpp_err=yes
5269 if test -z "$ac_cpp_err"; then
5270 # Broken: success on invalid input.
5271 continue
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 # Passes both tests.
5277 ac_preproc_ok=:
5278 break
5280 rm -f conftest.err conftest.$ac_ext
5282 done
5283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5284 rm -f conftest.err conftest.$ac_ext
5285 if $ac_preproc_ok; then
5287 else
5288 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5289 See \`config.log' for more details." >&5
5290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5291 See \`config.log' for more details." >&2;}
5292 { (exit 1); exit 1; }; }
5295 ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302 echo "$as_me:$LINENO: checking for egrep" >&5
5303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5304 if test "${ac_cv_prog_egrep+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5308 then ac_cv_prog_egrep='grep -E'
5309 else ac_cv_prog_egrep='egrep'
5312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5314 EGREP=$ac_cv_prog_egrep
5317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5319 if test "${ac_cv_header_stdc+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <stdlib.h>
5330 #include <stdarg.h>
5331 #include <string.h>
5332 #include <float.h>
5335 main ()
5339 return 0;
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_header_stdc=yes
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_header_stdc=no
5361 rm -f conftest.$ac_objext conftest.$ac_ext
5363 if test $ac_cv_header_stdc = yes; then
5364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <string.h>
5374 _ACEOF
5375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376 $EGREP "memchr" >/dev/null 2>&1; then
5378 else
5379 ac_cv_header_stdc=no
5381 rm -f conftest*
5385 if test $ac_cv_header_stdc = yes; then
5386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line $LINENO "configure"
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <stdlib.h>
5396 _ACEOF
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "free" >/dev/null 2>&1; then
5400 else
5401 ac_cv_header_stdc=no
5403 rm -f conftest*
5407 if test $ac_cv_header_stdc = yes; then
5408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5409 if test "$cross_compiling" = yes; then
5411 else
5412 cat >conftest.$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 #include <ctype.h>
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5423 #else
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5429 #endif
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5433 main ()
5435 int i;
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5439 exit(2);
5440 exit (0);
5442 _ACEOF
5443 rm -f conftest$ac_exeext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5445 (eval $ac_link) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5455 else
5456 echo "$as_me: program exited with status $ac_status" >&5
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ( exit $ac_status )
5461 ac_cv_header_stdc=no
5463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5467 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5469 if test $ac_cv_header_stdc = yes; then
5471 cat >>confdefs.h <<\_ACEOF
5472 #define STDC_HEADERS 1
5473 _ACEOF
5477 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5487 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5488 inttypes.h stdint.h unistd.h
5490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 echo "$as_me:$LINENO: checking for $ac_header" >&5
5492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496 cat >conftest.$ac_ext <<_ACEOF
5497 #line $LINENO "configure"
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5505 #include <$ac_header>
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509 (eval $ac_compile) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -s conftest.$ac_objext'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 eval "$as_ac_Header=yes"
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 eval "$as_ac_Header=no"
5526 rm -f conftest.$ac_objext conftest.$ac_ext
5528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5531 cat >>confdefs.h <<_ACEOF
5532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 _ACEOF
5537 done
5541 echo "$as_me:$LINENO: checking for C locale to use" >&5
5542 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5543 # Check whether --enable-clocale or --disable-clocale was given.
5544 if test "${enable_clocale+set}" = set; then
5545 enableval="$enable_clocale"
5547 case "$enableval" in
5548 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5549 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5550 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5551 { (exit 1); exit 1; }; } ;;
5552 esac
5554 else
5555 enable_clocale=auto
5559 # If they didn't use this option switch, or if they specified --enable
5560 # with no specific model, we'll have to look for one. If they
5561 # specified --disable (???), do likewise.
5562 if test $enable_clocale = no || test $enable_clocale = yes; then
5563 enable_clocale=auto
5566 # Either a known package, or "auto"
5567 enable_clocale_flag=$enable_clocale
5569 # Probe for locale support if no specific model is specified.
5570 # Default to "generic".
5571 if test $enable_clocale_flag = auto; then
5572 case x${target_os} in
5573 xlinux* | xgnu*)
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5582 #include <features.h>
5583 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5584 _GLIBCXX_ok
5585 #endif
5587 _ACEOF
5588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5589 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5590 enable_clocale_flag=gnu
5591 else
5592 enable_clocale_flag=generic
5594 rm -f conftest*
5597 # Test for bugs early in glibc-2.2.x series
5598 if test x$enable_clocale_flag = xgnu; then
5599 if test "$cross_compiling" = yes; then
5600 enable_clocale_flag=generic
5601 else
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5610 #define _GNU_SOURCE 1
5611 #include <locale.h>
5612 #include <string.h>
5613 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5614 extern __typeof(newlocale) __newlocale;
5615 extern __typeof(duplocale) __duplocale;
5616 extern __typeof(strcoll_l) __strcoll_l;
5617 #endif
5618 int main()
5620 const char __one[] = "Äuglein Augmen";
5621 const char __two[] = "Äuglein";
5622 int i;
5623 int j;
5624 __locale_t loc;
5625 __locale_t loc_dup;
5626 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5627 loc_dup = __duplocale(loc);
5628 i = __strcoll_l(__one, __two, loc);
5629 j = __strcoll_l(__one, __two, loc_dup);
5630 return 0;
5633 _ACEOF
5634 rm -f conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 enable_clocale_flag=gnu
5646 else
5647 echo "$as_me: program exited with status $ac_status" >&5
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 ( exit $ac_status )
5652 enable_clocale_flag=generic
5654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5658 # ... at some point put __strxfrm_l tests in as well.
5661 enable_clocale_flag=generic
5663 esac
5666 # Deal with gettext issues. Default to not using it (=no) until we detect
5667 # support for it later. Let the user turn it off via --e/d, but let that
5668 # default to on for easier handling.
5669 USE_NLS=no
5670 # Check whether --enable-nls or --disable-nls was given.
5671 if test "${enable_nls+set}" = set; then
5672 enableval="$enable_nls"
5674 else
5675 enable_nls=yes
5678 # Set configure bits for specified locale package
5679 case ${enable_clocale_flag} in
5680 generic)
5681 echo "$as_me:$LINENO: result: generic" >&5
5682 echo "${ECHO_T}generic" >&6
5684 CLOCALE_H=config/locale/generic/c_locale.h
5685 CLOCALE_CC=config/locale/generic/c_locale.cc
5686 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5687 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5688 CCOLLATE_CC=config/locale/generic/collate_members.cc
5689 CCTYPE_CC=config/locale/generic/ctype_members.cc
5690 CMESSAGES_H=config/locale/generic/messages_members.h
5691 CMESSAGES_CC=config/locale/generic/messages_members.cc
5692 CMONEY_CC=config/locale/generic/monetary_members.cc
5693 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5694 CTIME_H=config/locale/generic/time_members.h
5695 CTIME_CC=config/locale/generic/time_members.cc
5696 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5698 gnu)
5699 echo "$as_me:$LINENO: result: gnu" >&5
5700 echo "${ECHO_T}gnu" >&6
5702 # Declare intention to use gettext, and add support for specific
5703 # languages.
5704 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5705 ALL_LINGUAS="de fr"
5707 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5708 # Extract the first word of "msgfmt", so it can be a program name with args.
5709 set dummy msgfmt; ac_word=$2
5710 echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5712 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 if test -n "$check_msgfmt"; then
5716 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_check_msgfmt="yes"
5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5732 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5735 check_msgfmt=$ac_cv_prog_check_msgfmt
5736 if test -n "$check_msgfmt"; then
5737 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5738 echo "${ECHO_T}$check_msgfmt" >&6
5739 else
5740 echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5744 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5745 USE_NLS=yes
5747 # Export the build objects.
5748 for ling in $ALL_LINGUAS; do \
5749 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5750 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5751 done
5755 CLOCALE_H=config/locale/gnu/c_locale.h
5756 CLOCALE_CC=config/locale/gnu/c_locale.cc
5757 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5758 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5759 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5760 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5761 CMESSAGES_H=config/locale/gnu/messages_members.h
5762 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5763 CMONEY_CC=config/locale/gnu/monetary_members.cc
5764 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5765 CTIME_H=config/locale/gnu/time_members.h
5766 CTIME_CC=config/locale/gnu/time_members.cc
5767 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5769 ieee_1003.1-2001)
5770 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5771 echo "${ECHO_T}IEEE 1003.1" >&6
5773 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5774 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5775 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5776 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5777 CCOLLATE_CC=config/locale/generic/collate_members.cc
5778 CCTYPE_CC=config/locale/generic/ctype_members.cc
5779 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5780 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5781 CMONEY_CC=config/locale/generic/monetary_members.cc
5782 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5783 CTIME_H=config/locale/generic/time_members.h
5784 CTIME_CC=config/locale/generic/time_members.cc
5785 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5787 esac
5789 # This is where the testsuite looks for locale catalogs, using the
5790 # -DLOCALEDIR define during testsuite compilation.
5791 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5794 # A standalone libintl (e.g., GNU libintl) may be in use.
5795 if test $USE_NLS = yes; then
5797 for ac_header in libintl.h
5799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801 echo "$as_me:$LINENO: checking for $ac_header" >&5
5802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5808 else
5809 # Is the header compilable?
5810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5812 cat >conftest.$ac_ext <<_ACEOF
5813 #line $LINENO "configure"
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 $ac_includes_default
5820 #include <$ac_header>
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 ac_header_compiler=yes
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 ac_header_compiler=no
5841 rm -f conftest.$ac_objext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5843 echo "${ECHO_T}$ac_header_compiler" >&6
5845 # Is the header present?
5846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <$ac_header>
5856 _ACEOF
5857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } >/dev/null; then
5865 if test -s conftest.err; then
5866 ac_cpp_err=$ac_c_preproc_warn_flag
5867 else
5868 ac_cpp_err=
5870 else
5871 ac_cpp_err=yes
5873 if test -z "$ac_cpp_err"; then
5874 ac_header_preproc=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_header_preproc=no
5881 rm -f conftest.err conftest.$ac_ext
5882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5883 echo "${ECHO_T}$ac_header_preproc" >&6
5885 # So? What about this header?
5886 case $ac_header_compiler:$ac_header_preproc in
5887 yes:no )
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5893 cat <<\_ASBOX
5894 ## ------------------------------------ ##
5895 ## Report this to bug-autoconf@gnu.org. ##
5896 ## ------------------------------------ ##
5897 _ASBOX
5899 sed "s/^/$as_me: WARNING: /" >&2
5901 no:yes )
5902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5909 cat <<\_ASBOX
5910 ## ------------------------------------ ##
5911 ## Report this to bug-autoconf@gnu.org. ##
5912 ## ------------------------------------ ##
5913 _ASBOX
5915 sed "s/^/$as_me: WARNING: /" >&2
5917 esac
5918 echo "$as_me:$LINENO: checking for $ac_header" >&5
5919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 eval "$as_ac_Header=$ac_header_preproc"
5925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5930 cat >>confdefs.h <<_ACEOF
5931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5932 _ACEOF
5934 else
5935 USE_NLS=no
5938 done
5940 echo "$as_me:$LINENO: checking for library containing gettext" >&5
5941 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5942 if test "${ac_cv_search_gettext+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 ac_func_search_save_LIBS=$LIBS
5946 ac_cv_search_gettext=no
5947 if test x$gcc_no_link = xyes; then
5948 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5950 { (exit 1); exit 1; }; }
5952 cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5960 /* Override any gcc2 internal prototype to avoid an error. */
5961 #ifdef __cplusplus
5962 extern "C"
5963 #endif
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5966 char gettext ();
5968 main ()
5970 gettext ();
5972 return 0;
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest$ac_exeext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_search_gettext="none required"
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5994 if test "$ac_cv_search_gettext" = no; then
5995 for ac_lib in intl; do
5996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5997 if test x$gcc_no_link = xyes; then
5998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6000 { (exit 1); exit 1; }; }
6002 cat >conftest.$ac_ext <<_ACEOF
6003 #line $LINENO "configure"
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 #ifdef __cplusplus
6012 extern "C"
6013 #endif
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6016 char gettext ();
6018 main ()
6020 gettext ();
6022 return 0;
6024 _ACEOF
6025 rm -f conftest.$ac_objext conftest$ac_exeext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try='test -s conftest$ac_exeext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 ac_cv_search_gettext="-l$ac_lib"
6038 break
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6045 done
6047 LIBS=$ac_func_search_save_LIBS
6049 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6050 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6051 if test "$ac_cv_search_gettext" != no; then
6052 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6054 else
6055 USE_NLS=no
6059 if test $USE_NLS = yes; then
6060 cat >>confdefs.h <<\_ACEOF
6061 #define _GLIBCXX_USE_NLS 1
6062 _ACEOF
6082 # Check whether --enable-cheaders or --disable-cheaders was given.
6083 if test "${enable_cheaders+set}" = set; then
6084 enableval="$enable_cheaders"
6086 case "$enableval" in
6087 c|c_std) ;;
6088 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6089 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6090 { (exit 1); exit 1; }; } ;;
6091 esac
6093 else
6094 enable_cheaders=$c_model
6097 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6098 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6100 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6107 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6108 if test "${enable_c_mbchar+set}" = set; then
6109 enableval="$enable_c_mbchar"
6111 case "$enableval" in
6112 yes|no) ;;
6113 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6114 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6115 { (exit 1); exit 1; }; } ;;
6116 esac
6118 else
6119 enable_c_mbchar=yes
6122 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6126 # Check whether --enable-c99 or --disable-c99 was given.
6127 if test "${enable_c99+set}" = set; then
6128 enableval="$enable_c99"
6130 case "$enableval" in
6131 yes|no) ;;
6132 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6133 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6134 { (exit 1); exit 1; }; } ;;
6135 esac
6137 else
6138 enable_c99=yes
6144 ac_ext=cc
6145 ac_cpp='$CXXCPP $CPPFLAGS'
6146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6151 # Check for the existence of <math.h> functions used if C99 is enabled.
6152 ac_c99_math=yes;
6153 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6154 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6155 cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <math.h>
6164 main ()
6166 fpclassify(0.0);
6168 return 0;
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6184 else
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6188 ac_c99_math=no
6190 rm -f conftest.$ac_objext conftest.$ac_ext
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <math.h>
6200 main ()
6202 isfinite(0.0);
6204 return 0;
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_c99_math=no
6226 rm -f conftest.$ac_objext conftest.$ac_ext
6227 cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <math.h>
6236 main ()
6238 isinf(0.0);
6240 return 0;
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_c99_math=no
6262 rm -f conftest.$ac_objext conftest.$ac_ext
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <math.h>
6272 main ()
6274 isnan(0.0);
6276 return 0;
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -s conftest.$ac_objext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 ac_c99_math=no
6298 rm -f conftest.$ac_objext conftest.$ac_ext
6299 cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <math.h>
6308 main ()
6310 isnormal(0.0);
6312 return 0;
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6328 else
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6332 ac_c99_math=no
6334 rm -f conftest.$ac_objext conftest.$ac_ext
6335 cat >conftest.$ac_ext <<_ACEOF
6336 #line $LINENO "configure"
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <math.h>
6344 main ()
6346 signbit(0.0);
6348 return 0;
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6364 else
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_c99_math=no
6370 rm -f conftest.$ac_objext conftest.$ac_ext
6371 cat >conftest.$ac_ext <<_ACEOF
6372 #line $LINENO "configure"
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <math.h>
6380 main ()
6382 isgreater(0.0,0.0);
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_c99_math=no
6406 rm -f conftest.$ac_objext conftest.$ac_ext
6407 cat >conftest.$ac_ext <<_ACEOF
6408 #line $LINENO "configure"
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <math.h>
6416 main ()
6418 isgreaterequal(0.0,0.0);
6420 return 0;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -s conftest.$ac_objext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 ac_c99_math=no
6442 rm -f conftest.$ac_objext conftest.$ac_ext
6443 cat >conftest.$ac_ext <<_ACEOF
6444 #line $LINENO "configure"
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include <math.h>
6452 main ()
6454 isless(0.0,0.0);
6456 return 0;
6458 _ACEOF
6459 rm -f conftest.$ac_objext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 ac_c99_math=no
6478 rm -f conftest.$ac_objext conftest.$ac_ext
6479 cat >conftest.$ac_ext <<_ACEOF
6480 #line $LINENO "configure"
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <math.h>
6488 main ()
6490 islessequal(0.0,0.0);
6492 return 0;
6494 _ACEOF
6495 rm -f conftest.$ac_objext
6496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -s conftest.$ac_objext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 (eval $ac_try) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6508 else
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 ac_c99_math=no
6514 rm -f conftest.$ac_objext conftest.$ac_ext
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 #include <math.h>
6524 main ()
6526 islessgreater(0.0,0.0);
6528 return 0;
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6533 (eval $ac_compile) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_c99_math=no
6550 rm -f conftest.$ac_objext conftest.$ac_ext
6551 cat >conftest.$ac_ext <<_ACEOF
6552 #line $LINENO "configure"
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 #include <math.h>
6560 main ()
6562 isunordered(0.0,0.0);
6564 return 0;
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 ac_c99_math=no
6586 rm -f conftest.$ac_objext conftest.$ac_ext
6587 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6588 echo "${ECHO_T}$ac_c99_math" >&6
6590 # Check for the existence in <stdio.h> of vscanf, et. al.
6591 ac_c99_stdio=yes;
6592 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6593 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <stdio.h>
6603 main ()
6605 snprintf("12", 0, "%i");
6607 return 0;
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -s conftest.$ac_objext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_c99_stdio=no
6629 rm -f conftest.$ac_objext conftest.$ac_ext
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line $LINENO "configure"
6632 /* confdefs.h. */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 #include <stdio.h>
6638 #include <stdarg.h>
6639 void foo(char* fmt, ...)
6640 {va_list args; va_start(args, fmt);
6641 vfscanf(stderr, "%i", args);}
6643 main ()
6647 return 0;
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_c99_stdio=no
6669 rm -f conftest.$ac_objext conftest.$ac_ext
6670 cat >conftest.$ac_ext <<_ACEOF
6671 #line $LINENO "configure"
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <stdio.h>
6678 #include <stdarg.h>
6679 void foo(char* fmt, ...)
6680 {va_list args; va_start(args, fmt);
6681 vscanf("%i", args);}
6683 main ()
6687 return 0;
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -s conftest.$ac_objext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6703 else
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6707 ac_c99_stdio=no
6709 rm -f conftest.$ac_objext conftest.$ac_ext
6710 cat >conftest.$ac_ext <<_ACEOF
6711 #line $LINENO "configure"
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <stdio.h>
6718 #include <stdarg.h>
6719 void foo(char* fmt, ...)
6720 {va_list args; va_start(args, fmt);
6721 vsnprintf(fmt, 0, "%i", args);}
6723 main ()
6727 return 0;
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732 (eval $ac_compile) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try='test -s conftest.$ac_objext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 ac_c99_stdio=no
6749 rm -f conftest.$ac_objext conftest.$ac_ext
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 #include <stdio.h>
6758 #include <stdarg.h>
6759 void foo(char* fmt, ...)
6760 {va_list args; va_start(args, fmt);
6761 vsscanf(fmt, "%i", args);}
6763 main ()
6767 return 0;
6769 _ACEOF
6770 rm -f conftest.$ac_objext
6771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6772 (eval $ac_compile) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -s conftest.$ac_objext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 ac_c99_stdio=no
6789 rm -f conftest.$ac_objext conftest.$ac_ext
6790 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6791 echo "${ECHO_T}$ac_c99_stdio" >&6
6793 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6794 ac_c99_stdlib=yes;
6795 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6796 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6797 if test "${ac_c99_lldiv_t+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 #line $LINENO "configure"
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 #include <stdlib.h>
6810 main ()
6812 lldiv_t mydivt;
6814 return 0;
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -s conftest.$ac_objext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_c99_lldiv_t=yes
6830 else
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6834 ac_c99_lldiv_t=no
6836 rm -f conftest.$ac_objext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6841 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6843 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6844 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6845 cat >conftest.$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <stdlib.h>
6854 main ()
6856 char* tmp; strtof("gnu", &tmp);
6858 return 0;
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -s conftest.$ac_objext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_c99_stdlib=no
6880 rm -f conftest.$ac_objext conftest.$ac_ext
6881 cat >conftest.$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <stdlib.h>
6890 main ()
6892 char* tmp; strtold("gnu", &tmp);
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_c99_stdlib=no
6916 rm -f conftest.$ac_objext conftest.$ac_ext
6917 cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 #include <stdlib.h>
6926 main ()
6928 llabs(10);
6930 return 0;
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 (eval $ac_compile) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -s conftest.$ac_objext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ac_c99_stdlib=no
6952 rm -f conftest.$ac_objext conftest.$ac_ext
6953 cat >conftest.$ac_ext <<_ACEOF
6954 #line $LINENO "configure"
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <stdlib.h>
6962 main ()
6964 lldiv(10,1);
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try='test -s conftest.$ac_objext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6982 else
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6986 ac_c99_stdlib=no
6988 rm -f conftest.$ac_objext conftest.$ac_ext
6989 cat >conftest.$ac_ext <<_ACEOF
6990 #line $LINENO "configure"
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 #include <stdlib.h>
6998 main ()
7000 atoll("10");
7002 return 0;
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_c99_stdlib=no
7024 rm -f conftest.$ac_objext conftest.$ac_ext
7025 cat >conftest.$ac_ext <<_ACEOF
7026 #line $LINENO "configure"
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <stdlib.h>
7034 main ()
7036 _Exit(0);
7038 return 0;
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -s conftest.$ac_objext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_c99_stdlib=no
7060 rm -f conftest.$ac_objext conftest.$ac_ext
7061 if test x"$ac_c99_lldiv_t" = x"no"; then
7062 ac_c99_stdlib=no;
7064 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7065 echo "${ECHO_T}$ac_c99_stdlib" >&6
7067 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7068 # XXX the wchar.h checks should be rolled into the general C99 bits.
7069 ac_c99_wchar=yes;
7070 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7071 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 #include <wchar.h>
7081 main ()
7083 wcstold(L"10.0", NULL);
7085 return 0;
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090 (eval $ac_compile) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -s conftest.$ac_objext'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7101 else
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_c99_wchar=no
7107 rm -f conftest.$ac_objext conftest.$ac_ext
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <wchar.h>
7117 main ()
7119 wcstoll(L"10", NULL, 10);
7121 return 0;
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_c99_wchar=no
7143 rm -f conftest.$ac_objext conftest.$ac_ext
7144 cat >conftest.$ac_ext <<_ACEOF
7145 #line $LINENO "configure"
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <wchar.h>
7153 main ()
7155 wcstoull(L"10", NULL, 10);
7157 return 0;
7159 _ACEOF
7160 rm -f conftest.$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ac_c99_wchar=no
7179 rm -f conftest.$ac_objext conftest.$ac_ext
7180 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7181 echo "${ECHO_T}$ac_c99_wchar" >&6
7183 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7184 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7185 if test x"$ac_c99_math" = x"no" ||
7186 test x"$ac_c99_stdio" = x"no" ||
7187 test x"$ac_c99_stdlib" = x"no" ||
7188 test x"$ac_c99_wchar" = x"no"; then
7189 enable_c99=no;
7191 echo "$as_me:$LINENO: result: $enable_c99" >&5
7192 echo "${ECHO_T}$enable_c99" >&6
7194 # Option parsed, now set things appropriately
7195 if test x"$enable_c99" = x"yes"; then
7196 cat >>confdefs.h <<\_ACEOF
7197 #define _GLIBCXX_USE_C99 1
7198 _ACEOF
7202 ac_ext=c
7203 ac_cpp='$CPP $CPPFLAGS'
7204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7210 # Check whether --enable-long-long or --disable-long-long was given.
7211 if test "${enable_long_long+set}" = set; then
7212 enableval="$enable_long_long"
7214 case "$enableval" in
7215 yes|no) ;;
7216 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7217 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7218 { (exit 1); exit 1; }; } ;;
7219 esac
7221 else
7222 enable_long_long=yes
7228 ac_ext=cc
7229 ac_cpp='$CXXCPP $CPPFLAGS'
7230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7235 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7236 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7237 # iostreams require strtoll, strtoull to compile
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line $LINENO "configure"
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #include <stdlib.h>
7247 main ()
7249 char* tmp; strtoll("gnu", &tmp, 10);
7251 return 0;
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 (eval $ac_try) 2>&5
7263 ac_status=$?
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7267 else
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 enable_long_long=no
7273 rm -f conftest.$ac_objext conftest.$ac_ext
7274 cat >conftest.$ac_ext <<_ACEOF
7275 #line $LINENO "configure"
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 #include <stdlib.h>
7283 main ()
7285 char* tmp; strtoull("gnu", &tmp, 10);
7287 return 0;
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 enable_long_long=no
7309 rm -f conftest.$ac_objext conftest.$ac_ext
7311 # Option parsed, now set things appropriately
7312 if test $enable_long_long = yes; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define _GLIBCXX_USE_LONG_LONG 1
7315 _ACEOF
7318 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7319 echo "${ECHO_T}$enable_long_long" >&6
7321 ac_ext=c
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7330 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7331 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7332 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7333 echo "${ECHO_T}$target_thread_file" >&6
7335 if test $target_thread_file != single; then
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_GTHR_DEFAULT 1
7338 _ACEOF
7340 cat >>confdefs.h <<\_ACEOF
7341 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7342 _ACEOF
7346 glibcxx_thread_h=gthr-$target_thread_file.h
7350 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7351 if test "${enable_concept_checks+set}" = set; then
7352 enableval="$enable_concept_checks"
7354 case "$enableval" in
7355 yes|no) ;;
7356 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7357 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7358 { (exit 1); exit 1; }; } ;;
7359 esac
7361 else
7362 enable_concept_checks=no
7365 if test $enable_concept_checks = yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define _GLIBCXX_CONCEPT_CHECKS 1
7368 _ACEOF
7373 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7374 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7375 enableval="$enable_libstdcxx_debug_flags"
7376 case "x$enable_libstdcxx_debug_flags" in
7377 xno | x) enable_libstdcxx_debug_flags= ;;
7378 x-*) ;;
7379 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7380 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7381 { (exit 1); exit 1; }; } ;;
7382 esac
7383 else
7384 enable_libstdcxx_debug_flags="-g3 -O0"
7388 # Option parsed, now set things appropriately
7389 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7392 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7393 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7396 echo "$as_me:$LINENO: checking for additional debug build" >&5
7397 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7398 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7399 if test "${enable_libstdcxx_debug+set}" = set; then
7400 enableval="$enable_libstdcxx_debug"
7402 case "$enableval" in
7403 yes|no) ;;
7404 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7405 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7406 { (exit 1); exit 1; }; } ;;
7407 esac
7409 else
7410 enable_libstdcxx_debug=no
7413 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7414 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7417 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7418 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7419 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7420 if test "${enable_cxx_flags+set}" = set; then
7421 enableval="$enable_cxx_flags"
7422 case "x$enable_cxx_flags" in
7423 xno | x) enable_cxx_flags= ;;
7424 x-*) ;;
7425 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7426 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7427 { (exit 1); exit 1; }; } ;;
7428 esac
7429 else
7430 enable_cxx_flags=
7434 # Run through flags (either default or command-line) and set anything
7435 # extra (e.g., #defines) that must accompany particular g++ options.
7436 if test -n "$enable_cxx_flags"; then
7437 for f in $enable_cxx_flags; do
7438 case "$f" in
7439 -fhonor-std) ;;
7440 -*) ;;
7441 *) # and we're trying to pass /what/ exactly?
7442 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7443 echo "$as_me: error: compiler flags start with a -" >&2;}
7444 { (exit 1); exit 1; }; } ;;
7445 esac
7446 done
7449 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7450 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7451 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7455 # No surprises, no surprises...
7456 if test $atomicity_include_dir = cpu/generic ; then
7457 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7458 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7459 if test $target_thread_file = single; then
7460 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7461 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7462 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7463 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7464 else
7465 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7466 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7467 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7468 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7473 if $GLIBCXX_IS_NATIVE; then
7475 # We can do more elaborate tests that assume a working linker.
7476 CANADIAN=no
7478 # Check for available headers.
7492 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7493 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7494 sys/types.h
7496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7498 echo "$as_me:$LINENO: checking for $ac_header" >&5
7499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7505 else
7506 # Is the header compilable?
7507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7509 cat >conftest.$ac_ext <<_ACEOF
7510 #line $LINENO "configure"
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 #include <$ac_header>
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -s conftest.$ac_objext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 ac_header_compiler=yes
7532 else
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 ac_header_compiler=no
7538 rm -f conftest.$ac_objext conftest.$ac_ext
7539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7540 echo "${ECHO_T}$ac_header_compiler" >&6
7542 # Is the header present?
7543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7545 cat >conftest.$ac_ext <<_ACEOF
7546 #line $LINENO "configure"
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 #include <$ac_header>
7553 _ACEOF
7554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } >/dev/null; then
7562 if test -s conftest.err; then
7563 ac_cpp_err=$ac_c_preproc_warn_flag
7564 else
7565 ac_cpp_err=
7567 else
7568 ac_cpp_err=yes
7570 if test -z "$ac_cpp_err"; then
7571 ac_header_preproc=yes
7572 else
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_header_preproc=no
7578 rm -f conftest.err conftest.$ac_ext
7579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7580 echo "${ECHO_T}$ac_header_preproc" >&6
7582 # So? What about this header?
7583 case $ac_header_compiler:$ac_header_preproc in
7584 yes:no )
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7590 cat <<\_ASBOX
7591 ## ------------------------------------ ##
7592 ## Report this to bug-autoconf@gnu.org. ##
7593 ## ------------------------------------ ##
7594 _ASBOX
7596 sed "s/^/$as_me: WARNING: /" >&2
7598 no:yes )
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7606 cat <<\_ASBOX
7607 ## ------------------------------------ ##
7608 ## Report this to bug-autoconf@gnu.org. ##
7609 ## ------------------------------------ ##
7610 _ASBOX
7612 sed "s/^/$as_me: WARNING: /" >&2
7614 esac
7615 echo "$as_me:$LINENO: checking for $ac_header" >&5
7616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 eval "$as_ac_Header=$ac_header_preproc"
7622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7627 cat >>confdefs.h <<_ACEOF
7628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7629 _ACEOF
7633 done
7637 # All these tests are for C++; save the language and the compiler flags.
7638 # The CXXFLAGS thing is suspicious, but based on similar bits previously
7639 # found in GLIBCXX_CONFIGURE.
7642 ac_ext=cc
7643 ac_cpp='$CXXCPP $CPPFLAGS'
7644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7648 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7649 ac_save_CXXFLAGS="$CXXFLAGS"
7651 # Check for maintainer-mode bits.
7652 if test x"$USE_MAINTAINER_MODE" = xno; then
7653 WERROR=''
7654 else
7655 WERROR='-Werror'
7658 # Check for -ffunction-sections -fdata-sections
7659 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7660 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7661 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7662 cat >conftest.$ac_ext <<_ACEOF
7663 #line $LINENO "configure"
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7671 main ()
7673 int foo;
7675 return 0;
7677 _ACEOF
7678 rm -f conftest.$ac_objext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680 (eval $ac_compile) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -s conftest.$ac_objext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_fdsections=yes
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_fdsections=no
7697 rm -f conftest.$ac_objext conftest.$ac_ext
7698 if test "$ac_test_CXXFLAGS" = set; then
7699 CXXFLAGS="$ac_save_CXXFLAGS"
7700 else
7701 # this is the suspicious part
7702 CXXFLAGS=''
7704 if test x"$ac_fdsections" = x"yes"; then
7705 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7707 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7708 echo "${ECHO_T}$ac_fdsections" >&6
7710 ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7720 # If we're not using GNU ld, then there's no point in even trying these
7721 # tests. Check for that first. We should have already tested for gld
7722 # by now (in libtool), but require it now just to be safe...
7723 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7724 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7728 # The name set by libtool depends on the version of libtool. Shame on us
7729 # for depending on an impl detail, but c'est la vie. Older versions used
7730 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7731 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7732 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7733 # set (hence we're using an older libtool), then set it.
7734 if test x${with_gnu_ld+set} != xset; then
7735 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7736 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7737 with_gnu_ld=no
7738 else
7739 with_gnu_ld=$ac_cv_prog_gnu_ld
7743 # Start by getting the version number. I think the libtool test already
7744 # does some of this, but throws away the result.
7746 ldver=`$LD --version 2>/dev/null | head -1 | \
7747 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7749 glibcxx_gnu_ld_version=`echo $ldver | \
7750 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7752 # Set --gc-sections.
7753 if test "$with_gnu_ld" = "notbroken"; then
7754 # GNU ld it is! Joy and bunny rabbits!
7756 # All these tests are for C++; save the language and the compiler flags.
7757 # Need to do this so that g++ won't try to link in libstdc++
7758 ac_test_CFLAGS="${CFLAGS+set}"
7759 ac_save_CFLAGS="$CFLAGS"
7760 CFLAGS='-x c++ -Wl,--gc-sections'
7762 # Check for -Wl,--gc-sections
7763 # XXX This test is broken at the moment, as symbols required for linking
7764 # are now in libsupc++ (not built yet). In addition, this test has
7765 # cored on solaris in the past. In addition, --gc-sections doesn't
7766 # really work at the moment (keeps on discarding used sections, first
7767 # .eh_frame and now some of the glibc sections for iconv).
7768 # Bzzzzt. Thanks for playing, maybe next time.
7769 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7770 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7771 if test "$cross_compiling" = yes; then
7772 ac_sectionLDflags=yes
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 /* confdefs.h. */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7782 int main(void)
7784 try { throw 1; }
7785 catch (...) { };
7786 return 0;
7789 _ACEOF
7790 rm -f conftest$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 (eval $ac_try) 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 ac_sectionLDflags=yes
7802 else
7803 echo "$as_me: program exited with status $ac_status" >&5
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ( exit $ac_status )
7808 ac_sectionLDflags=no
7810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7812 if test "$ac_test_CFLAGS" = set; then
7813 CFLAGS="$ac_save_CFLAGS"
7814 else
7815 # this is the suspicious part
7816 CFLAGS=''
7818 if test "$ac_sectionLDflags" = "yes"; then
7819 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7821 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7822 echo "${ECHO_T}$ac_sectionLDflags" >&6
7825 # Set linker optimization flags.
7826 if test x"$with_gnu_ld" = x"yes"; then
7827 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7834 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7835 ac_save_CXXFLAGS="$CXXFLAGS"
7836 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7838 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7839 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7840 if test "${ac_cv_lib_m_sin+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lm $LIBS"
7845 if test x$gcc_no_link = xyes; then
7846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7848 { (exit 1); exit 1; }; }
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line $LINENO "configure"
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864 char sin ();
7866 main ()
7868 sin ();
7870 return 0;
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_m_sin=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_lib_m_sin=no
7892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS
7895 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7896 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7897 if test $ac_cv_lib_m_sin = yes; then
7898 libm="-lm"
7901 ac_save_LIBS="$LIBS"
7902 LIBS="$LIBS $libm"
7906 echo "$as_me:$LINENO: checking for isinf declaration" >&5
7907 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7908 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7909 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7915 ac_ext=cc
7916 ac_cpp='$CXXCPP $CPPFLAGS'
7917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7921 cat >conftest.$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <math.h>
7929 #ifdef HAVE_IEEEFP_H
7930 #include <ieeefp.h>
7931 #endif
7934 main ()
7936 isinf(0);
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 glibcxx_cv_func_isinf_use=yes
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 glibcxx_cv_func_isinf_use=no
7960 rm -f conftest.$ac_objext conftest.$ac_ext
7961 ac_ext=c
7962 ac_cpp='$CPP $CPPFLAGS'
7963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7972 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7974 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7976 for ac_func in isinf
7978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7979 echo "$as_me:$LINENO: checking for $ac_func" >&5
7980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7981 if eval "test \"\${$as_ac_var+set}\" = set"; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 if test x$gcc_no_link = xyes; then
7985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7987 { (exit 1); exit 1; }; }
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line $LINENO "configure"
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 /* System header to define __stub macros and hopefully few prototypes,
7997 which can conflict with char $ac_func (); below.
7998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7999 <limits.h> exists even on freestanding compilers. */
8000 #ifdef __STDC__
8001 # include <limits.h>
8002 #else
8003 # include <assert.h>
8004 #endif
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 #ifdef __cplusplus
8007 extern "C"
8009 #endif
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8012 char $ac_func ();
8013 /* The GNU C library defines this for functions which it implements
8014 to always fail with ENOSYS. Some functions are actually named
8015 something starting with __ and the normal name is an alias. */
8016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8017 choke me
8018 #else
8019 char (*f) () = $ac_func;
8020 #endif
8021 #ifdef __cplusplus
8023 #endif
8026 main ()
8028 return f != $ac_func;
8030 return 0;
8032 _ACEOF
8033 rm -f conftest.$ac_objext conftest$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 eval "$as_ac_var=yes"
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 eval "$as_ac_var=no"
8052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8056 if test `eval echo '${'$as_ac_var'}'` = yes; then
8057 cat >>confdefs.h <<_ACEOF
8058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8059 _ACEOF
8062 done
8064 else
8066 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8067 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8068 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8069 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8075 ac_ext=cc
8076 ac_cpp='$CXXCPP $CPPFLAGS'
8077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <math.h>
8089 #ifdef HAVE_IEEEFP_H
8090 #include <ieeefp.h>
8091 #endif
8094 main ()
8096 _isinf(0);
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 glibcxx_cv_func__isinf_use=yes
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 glibcxx_cv_func__isinf_use=no
8120 rm -f conftest.$ac_objext conftest.$ac_ext
8121 ac_ext=c
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8132 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8134 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8136 for ac_func in _isinf
8138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139 echo "$as_me:$LINENO: checking for $ac_func" >&5
8140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8141 if eval "test \"\${$as_ac_var+set}\" = set"; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 if test x$gcc_no_link = xyes; then
8145 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8146 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8147 { (exit 1); exit 1; }; }
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 /* System header to define __stub macros and hopefully few prototypes,
8157 which can conflict with char $ac_func (); below.
8158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8159 <limits.h> exists even on freestanding compilers. */
8160 #ifdef __STDC__
8161 # include <limits.h>
8162 #else
8163 # include <assert.h>
8164 #endif
8165 /* Override any gcc2 internal prototype to avoid an error. */
8166 #ifdef __cplusplus
8167 extern "C"
8169 #endif
8170 /* We use char because int might match the return type of a gcc2
8171 builtin and then its argument prototype would still apply. */
8172 char $ac_func ();
8173 /* The GNU C library defines this for functions which it implements
8174 to always fail with ENOSYS. Some functions are actually named
8175 something starting with __ and the normal name is an alias. */
8176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8177 choke me
8178 #else
8179 char (*f) () = $ac_func;
8180 #endif
8181 #ifdef __cplusplus
8183 #endif
8186 main ()
8188 return f != $ac_func;
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8195 (eval $ac_link) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 eval "$as_ac_var=yes"
8206 else
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 eval "$as_ac_var=no"
8212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8216 if test `eval echo '${'$as_ac_var'}'` = yes; then
8217 cat >>confdefs.h <<_ACEOF
8218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8219 _ACEOF
8222 done
8229 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8230 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8231 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8232 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8238 ac_ext=cc
8239 ac_cpp='$CXXCPP $CPPFLAGS'
8240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8244 cat >conftest.$ac_ext <<_ACEOF
8245 #line $LINENO "configure"
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 #include <math.h>
8252 #ifdef HAVE_IEEEFP_H
8253 #include <ieeefp.h>
8254 #endif
8257 main ()
8259 isnan(0);
8261 return 0;
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8266 (eval $ac_compile) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest.$ac_objext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 glibcxx_cv_func_isnan_use=yes
8277 else
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8281 glibcxx_cv_func_isnan_use=no
8283 rm -f conftest.$ac_objext conftest.$ac_ext
8284 ac_ext=c
8285 ac_cpp='$CPP $CPPFLAGS'
8286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8295 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8297 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8299 for ac_func in isnan
8301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8302 echo "$as_me:$LINENO: checking for $ac_func" >&5
8303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8304 if eval "test \"\${$as_ac_var+set}\" = set"; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307 if test x$gcc_no_link = xyes; then
8308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8310 { (exit 1); exit 1; }; }
8312 cat >conftest.$ac_ext <<_ACEOF
8313 #line $LINENO "configure"
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 /* System header to define __stub macros and hopefully few prototypes,
8320 which can conflict with char $ac_func (); below.
8321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8322 <limits.h> exists even on freestanding compilers. */
8323 #ifdef __STDC__
8324 # include <limits.h>
8325 #else
8326 # include <assert.h>
8327 #endif
8328 /* Override any gcc2 internal prototype to avoid an error. */
8329 #ifdef __cplusplus
8330 extern "C"
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8335 char $ac_func ();
8336 /* The GNU C library defines this for functions which it implements
8337 to always fail with ENOSYS. Some functions are actually named
8338 something starting with __ and the normal name is an alias. */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8340 choke me
8341 #else
8342 char (*f) () = $ac_func;
8343 #endif
8344 #ifdef __cplusplus
8346 #endif
8349 main ()
8351 return f != $ac_func;
8353 return 0;
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 eval "$as_ac_var=yes"
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 eval "$as_ac_var=no"
8375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8379 if test `eval echo '${'$as_ac_var'}'` = yes; then
8380 cat >>confdefs.h <<_ACEOF
8381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8382 _ACEOF
8385 done
8387 else
8389 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8390 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8391 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8392 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8398 ac_ext=cc
8399 ac_cpp='$CXXCPP $CPPFLAGS'
8400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8404 cat >conftest.$ac_ext <<_ACEOF
8405 #line $LINENO "configure"
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 #include <math.h>
8412 #ifdef HAVE_IEEEFP_H
8413 #include <ieeefp.h>
8414 #endif
8417 main ()
8419 _isnan(0);
8421 return 0;
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426 (eval $ac_compile) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 glibcxx_cv_func__isnan_use=yes
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 glibcxx_cv_func__isnan_use=no
8443 rm -f conftest.$ac_objext conftest.$ac_ext
8444 ac_ext=c
8445 ac_cpp='$CPP $CPPFLAGS'
8446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8455 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8457 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8459 for ac_func in _isnan
8461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8462 echo "$as_me:$LINENO: checking for $ac_func" >&5
8463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_var+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467 if test x$gcc_no_link = xyes; then
8468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8470 { (exit 1); exit 1; }; }
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 /* System header to define __stub macros and hopefully few prototypes,
8480 which can conflict with char $ac_func (); below.
8481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8482 <limits.h> exists even on freestanding compilers. */
8483 #ifdef __STDC__
8484 # include <limits.h>
8485 #else
8486 # include <assert.h>
8487 #endif
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 #ifdef __cplusplus
8490 extern "C"
8492 #endif
8493 /* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
8495 char $ac_func ();
8496 /* The GNU C library defines this for functions which it implements
8497 to always fail with ENOSYS. Some functions are actually named
8498 something starting with __ and the normal name is an alias. */
8499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8500 choke me
8501 #else
8502 char (*f) () = $ac_func;
8503 #endif
8504 #ifdef __cplusplus
8506 #endif
8509 main ()
8511 return f != $ac_func;
8513 return 0;
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 eval "$as_ac_var=yes"
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 eval "$as_ac_var=no"
8535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8539 if test `eval echo '${'$as_ac_var'}'` = yes; then
8540 cat >>confdefs.h <<_ACEOF
8541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8542 _ACEOF
8545 done
8552 echo "$as_me:$LINENO: checking for finite declaration" >&5
8553 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8554 if test x${glibcxx_cv_func_finite_use+set} != xset; then
8555 if test "${glibcxx_cv_func_finite_use+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8561 ac_ext=cc
8562 ac_cpp='$CXXCPP $CPPFLAGS'
8563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8567 cat >conftest.$ac_ext <<_ACEOF
8568 #line $LINENO "configure"
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 #include <math.h>
8575 #ifdef HAVE_IEEEFP_H
8576 #include <ieeefp.h>
8577 #endif
8580 main ()
8582 finite(0);
8584 return 0;
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 glibcxx_cv_func_finite_use=yes
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 glibcxx_cv_func_finite_use=no
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 ac_ext=c
8608 ac_cpp='$CPP $CPPFLAGS'
8609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8617 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8618 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8620 if test x$glibcxx_cv_func_finite_use = x"yes"; then
8622 for ac_func in finite
8624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8625 echo "$as_me:$LINENO: checking for $ac_func" >&5
8626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8627 if eval "test \"\${$as_ac_var+set}\" = set"; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 if test x$gcc_no_link = xyes; then
8631 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8632 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8633 { (exit 1); exit 1; }; }
8635 cat >conftest.$ac_ext <<_ACEOF
8636 #line $LINENO "configure"
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 /* System header to define __stub macros and hopefully few prototypes,
8643 which can conflict with char $ac_func (); below.
8644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8645 <limits.h> exists even on freestanding compilers. */
8646 #ifdef __STDC__
8647 # include <limits.h>
8648 #else
8649 # include <assert.h>
8650 #endif
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 #ifdef __cplusplus
8653 extern "C"
8655 #endif
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658 char $ac_func ();
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8663 choke me
8664 #else
8665 char (*f) () = $ac_func;
8666 #endif
8667 #ifdef __cplusplus
8669 #endif
8672 main ()
8674 return f != $ac_func;
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -s conftest$ac_exeext'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 eval "$as_ac_var=yes"
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 eval "$as_ac_var=no"
8698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8702 if test `eval echo '${'$as_ac_var'}'` = yes; then
8703 cat >>confdefs.h <<_ACEOF
8704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8705 _ACEOF
8708 done
8710 else
8712 echo "$as_me:$LINENO: checking for _finite declaration" >&5
8713 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8714 if test x${glibcxx_cv_func__finite_use+set} != xset; then
8715 if test "${glibcxx_cv_func__finite_use+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8721 ac_ext=cc
8722 ac_cpp='$CXXCPP $CPPFLAGS'
8723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8727 cat >conftest.$ac_ext <<_ACEOF
8728 #line $LINENO "configure"
8729 /* confdefs.h. */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 #include <math.h>
8735 #ifdef HAVE_IEEEFP_H
8736 #include <ieeefp.h>
8737 #endif
8740 main ()
8742 _finite(0);
8744 return 0;
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -s conftest.$ac_objext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 (eval $ac_try) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 glibcxx_cv_func__finite_use=yes
8760 else
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8764 glibcxx_cv_func__finite_use=no
8766 rm -f conftest.$ac_objext conftest.$ac_ext
8767 ac_ext=c
8768 ac_cpp='$CPP $CPPFLAGS'
8769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8777 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8778 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8780 if test x$glibcxx_cv_func__finite_use = x"yes"; then
8782 for ac_func in _finite
8784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785 echo "$as_me:$LINENO: checking for $ac_func" >&5
8786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 if test x$gcc_no_link = xyes; then
8791 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8792 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8793 { (exit 1); exit 1; }; }
8795 cat >conftest.$ac_ext <<_ACEOF
8796 #line $LINENO "configure"
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char $ac_func (); below.
8804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8805 <limits.h> exists even on freestanding compilers. */
8806 #ifdef __STDC__
8807 # include <limits.h>
8808 #else
8809 # include <assert.h>
8810 #endif
8811 /* Override any gcc2 internal prototype to avoid an error. */
8812 #ifdef __cplusplus
8813 extern "C"
8815 #endif
8816 /* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8818 char $ac_func ();
8819 /* The GNU C library defines this for functions which it implements
8820 to always fail with ENOSYS. Some functions are actually named
8821 something starting with __ and the normal name is an alias. */
8822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8823 choke me
8824 #else
8825 char (*f) () = $ac_func;
8826 #endif
8827 #ifdef __cplusplus
8829 #endif
8832 main ()
8834 return f != $ac_func;
8836 return 0;
8838 _ACEOF
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -s conftest$ac_exeext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 eval "$as_ac_var=yes"
8852 else
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 eval "$as_ac_var=no"
8858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8862 if test `eval echo '${'$as_ac_var'}'` = yes; then
8863 cat >>confdefs.h <<_ACEOF
8864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8865 _ACEOF
8868 done
8875 echo "$as_me:$LINENO: checking for copysign declaration" >&5
8876 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8877 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8878 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8884 ac_ext=cc
8885 ac_cpp='$CXXCPP $CPPFLAGS'
8886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8890 cat >conftest.$ac_ext <<_ACEOF
8891 #line $LINENO "configure"
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 #include <math.h>
8899 main ()
8901 copysign(0, 0);
8903 return 0;
8905 _ACEOF
8906 rm -f conftest.$ac_objext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908 (eval $ac_compile) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest.$ac_objext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 glibcxx_cv_func_copysign_use=yes
8919 else
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 glibcxx_cv_func_copysign_use=no
8925 rm -f conftest.$ac_objext conftest.$ac_ext
8926 ac_ext=c
8927 ac_cpp='$CPP $CPPFLAGS'
8928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8937 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8939 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8941 for ac_func in copysign
8943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8944 echo "$as_me:$LINENO: checking for $ac_func" >&5
8945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8946 if eval "test \"\${$as_ac_var+set}\" = set"; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 if test x$gcc_no_link = xyes; then
8950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8952 { (exit 1); exit 1; }; }
8954 cat >conftest.$ac_ext <<_ACEOF
8955 #line $LINENO "configure"
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 /* System header to define __stub macros and hopefully few prototypes,
8962 which can conflict with char $ac_func (); below.
8963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8964 <limits.h> exists even on freestanding compilers. */
8965 #ifdef __STDC__
8966 # include <limits.h>
8967 #else
8968 # include <assert.h>
8969 #endif
8970 /* Override any gcc2 internal prototype to avoid an error. */
8971 #ifdef __cplusplus
8972 extern "C"
8974 #endif
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8977 char $ac_func ();
8978 /* The GNU C library defines this for functions which it implements
8979 to always fail with ENOSYS. Some functions are actually named
8980 something starting with __ and the normal name is an alias. */
8981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8982 choke me
8983 #else
8984 char (*f) () = $ac_func;
8985 #endif
8986 #ifdef __cplusplus
8988 #endif
8991 main ()
8993 return f != $ac_func;
8995 return 0;
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -s conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 eval "$as_ac_var=yes"
9011 else
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 eval "$as_ac_var=no"
9017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9021 if test `eval echo '${'$as_ac_var'}'` = yes; then
9022 cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9024 _ACEOF
9027 done
9029 else
9031 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9032 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9033 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9034 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9040 ac_ext=cc
9041 ac_cpp='$CXXCPP $CPPFLAGS'
9042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9046 cat >conftest.$ac_ext <<_ACEOF
9047 #line $LINENO "configure"
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 #include <math.h>
9055 main ()
9057 _copysign(0, 0);
9059 return 0;
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -s conftest.$ac_objext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 glibcxx_cv_func__copysign_use=yes
9075 else
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 glibcxx_cv_func__copysign_use=no
9081 rm -f conftest.$ac_objext conftest.$ac_ext
9082 ac_ext=c
9083 ac_cpp='$CPP $CPPFLAGS'
9084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9092 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9093 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9095 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9097 for ac_func in _copysign
9099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9100 echo "$as_me:$LINENO: checking for $ac_func" >&5
9101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9102 if eval "test \"\${$as_ac_var+set}\" = set"; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 if test x$gcc_no_link = xyes; then
9106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9108 { (exit 1); exit 1; }; }
9110 cat >conftest.$ac_ext <<_ACEOF
9111 #line $LINENO "configure"
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 /* System header to define __stub macros and hopefully few prototypes,
9118 which can conflict with char $ac_func (); below.
9119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9120 <limits.h> exists even on freestanding compilers. */
9121 #ifdef __STDC__
9122 # include <limits.h>
9123 #else
9124 # include <assert.h>
9125 #endif
9126 /* Override any gcc2 internal prototype to avoid an error. */
9127 #ifdef __cplusplus
9128 extern "C"
9130 #endif
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9133 char $ac_func ();
9134 /* The GNU C library defines this for functions which it implements
9135 to always fail with ENOSYS. Some functions are actually named
9136 something starting with __ and the normal name is an alias. */
9137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9138 choke me
9139 #else
9140 char (*f) () = $ac_func;
9141 #endif
9142 #ifdef __cplusplus
9144 #endif
9147 main ()
9149 return f != $ac_func;
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 eval "$as_ac_var=yes"
9167 else
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 eval "$as_ac_var=no"
9173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9177 if test `eval echo '${'$as_ac_var'}'` = yes; then
9178 cat >>confdefs.h <<_ACEOF
9179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9180 _ACEOF
9183 done
9190 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9191 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9192 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9193 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9199 ac_ext=cc
9200 ac_cpp='$CXXCPP $CPPFLAGS'
9201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9205 cat >conftest.$ac_ext <<_ACEOF
9206 #line $LINENO "configure"
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 #include <math.h>
9214 main ()
9216 sincos(0, 0, 0);
9218 return 0;
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223 (eval $ac_compile) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 glibcxx_cv_func_sincos_use=yes
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 glibcxx_cv_func_sincos_use=no
9240 rm -f conftest.$ac_objext conftest.$ac_ext
9241 ac_ext=c
9242 ac_cpp='$CPP $CPPFLAGS'
9243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9251 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9252 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9254 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9256 for ac_func in sincos
9258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259 echo "$as_me:$LINENO: checking for $ac_func" >&5
9260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9261 if eval "test \"\${$as_ac_var+set}\" = set"; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264 if test x$gcc_no_link = xyes; then
9265 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9266 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9267 { (exit 1); exit 1; }; }
9269 cat >conftest.$ac_ext <<_ACEOF
9270 #line $LINENO "configure"
9271 /* confdefs.h. */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276 /* System header to define __stub macros and hopefully few prototypes,
9277 which can conflict with char $ac_func (); below.
9278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9279 <limits.h> exists even on freestanding compilers. */
9280 #ifdef __STDC__
9281 # include <limits.h>
9282 #else
9283 # include <assert.h>
9284 #endif
9285 /* Override any gcc2 internal prototype to avoid an error. */
9286 #ifdef __cplusplus
9287 extern "C"
9289 #endif
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9292 char $ac_func ();
9293 /* The GNU C library defines this for functions which it implements
9294 to always fail with ENOSYS. Some functions are actually named
9295 something starting with __ and the normal name is an alias. */
9296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9297 choke me
9298 #else
9299 char (*f) () = $ac_func;
9300 #endif
9301 #ifdef __cplusplus
9303 #endif
9306 main ()
9308 return f != $ac_func;
9310 return 0;
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 eval "$as_ac_var=yes"
9326 else
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 eval "$as_ac_var=no"
9332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9336 if test `eval echo '${'$as_ac_var'}'` = yes; then
9337 cat >>confdefs.h <<_ACEOF
9338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9339 _ACEOF
9342 done
9344 else
9346 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9347 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9348 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9349 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9355 ac_ext=cc
9356 ac_cpp='$CXXCPP $CPPFLAGS'
9357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9361 cat >conftest.$ac_ext <<_ACEOF
9362 #line $LINENO "configure"
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <math.h>
9370 main ()
9372 _sincos(0, 0, 0);
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 glibcxx_cv_func__sincos_use=yes
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 glibcxx_cv_func__sincos_use=no
9396 rm -f conftest.$ac_objext conftest.$ac_ext
9397 ac_ext=c
9398 ac_cpp='$CPP $CPPFLAGS'
9399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9407 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9408 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9410 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9412 for ac_func in _sincos
9414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9415 echo "$as_me:$LINENO: checking for $ac_func" >&5
9416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_var+set}\" = set"; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420 if test x$gcc_no_link = xyes; then
9421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9423 { (exit 1); exit 1; }; }
9425 cat >conftest.$ac_ext <<_ACEOF
9426 #line $LINENO "configure"
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 /* System header to define __stub macros and hopefully few prototypes,
9433 which can conflict with char $ac_func (); below.
9434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9435 <limits.h> exists even on freestanding compilers. */
9436 #ifdef __STDC__
9437 # include <limits.h>
9438 #else
9439 # include <assert.h>
9440 #endif
9441 /* Override any gcc2 internal prototype to avoid an error. */
9442 #ifdef __cplusplus
9443 extern "C"
9445 #endif
9446 /* We use char because int might match the return type of a gcc2
9447 builtin and then its argument prototype would still apply. */
9448 char $ac_func ();
9449 /* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9453 choke me
9454 #else
9455 char (*f) () = $ac_func;
9456 #endif
9457 #ifdef __cplusplus
9459 #endif
9462 main ()
9464 return f != $ac_func;
9466 return 0;
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -s conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 eval "$as_ac_var=yes"
9482 else
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 eval "$as_ac_var=no"
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9492 if test `eval echo '${'$as_ac_var'}'` = yes; then
9493 cat >>confdefs.h <<_ACEOF
9494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9495 _ACEOF
9498 done
9505 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9506 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9507 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9508 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9514 ac_ext=cc
9515 ac_cpp='$CXXCPP $CPPFLAGS'
9516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9520 cat >conftest.$ac_ext <<_ACEOF
9521 #line $LINENO "configure"
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 #include <math.h>
9528 #ifdef HAVE_IEEEFP_H
9529 #include <ieeefp.h>
9530 #endif
9533 main ()
9535 fpclass(0);
9537 return 0;
9539 _ACEOF
9540 rm -f conftest.$ac_objext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542 (eval $ac_compile) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 glibcxx_cv_func_fpclass_use=yes
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9557 glibcxx_cv_func_fpclass_use=no
9559 rm -f conftest.$ac_objext conftest.$ac_ext
9560 ac_ext=c
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9570 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9571 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9573 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9575 for ac_func in fpclass
9577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9578 echo "$as_me:$LINENO: checking for $ac_func" >&5
9579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_var+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583 if test x$gcc_no_link = xyes; then
9584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9586 { (exit 1); exit 1; }; }
9588 cat >conftest.$ac_ext <<_ACEOF
9589 #line $LINENO "configure"
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 /* System header to define __stub macros and hopefully few prototypes,
9596 which can conflict with char $ac_func (); below.
9597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598 <limits.h> exists even on freestanding compilers. */
9599 #ifdef __STDC__
9600 # include <limits.h>
9601 #else
9602 # include <assert.h>
9603 #endif
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 #ifdef __cplusplus
9606 extern "C"
9608 #endif
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611 char $ac_func ();
9612 /* The GNU C library defines this for functions which it implements
9613 to always fail with ENOSYS. Some functions are actually named
9614 something starting with __ and the normal name is an alias. */
9615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9616 choke me
9617 #else
9618 char (*f) () = $ac_func;
9619 #endif
9620 #ifdef __cplusplus
9622 #endif
9625 main ()
9627 return f != $ac_func;
9629 return 0;
9631 _ACEOF
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9634 (eval $ac_link) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -s conftest$ac_exeext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 eval "$as_ac_var=yes"
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 eval "$as_ac_var=no"
9651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9655 if test `eval echo '${'$as_ac_var'}'` = yes; then
9656 cat >>confdefs.h <<_ACEOF
9657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9658 _ACEOF
9661 done
9663 else
9665 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9666 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9667 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9668 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9674 ac_ext=cc
9675 ac_cpp='$CXXCPP $CPPFLAGS'
9676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9680 cat >conftest.$ac_ext <<_ACEOF
9681 #line $LINENO "configure"
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <math.h>
9688 #ifdef HAVE_IEEEFP_H
9689 #include <ieeefp.h>
9690 #endif
9693 main ()
9695 _fpclass(0);
9697 return 0;
9699 _ACEOF
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 glibcxx_cv_func__fpclass_use=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 glibcxx_cv_func__fpclass_use=no
9719 rm -f conftest.$ac_objext conftest.$ac_ext
9720 ac_ext=c
9721 ac_cpp='$CPP $CPPFLAGS'
9722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9730 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9731 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9733 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9735 for ac_func in _fpclass
9737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9738 echo "$as_me:$LINENO: checking for $ac_func" >&5
9739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9740 if eval "test \"\${$as_ac_var+set}\" = set"; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 if test x$gcc_no_link = xyes; then
9744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9746 { (exit 1); exit 1; }; }
9748 cat >conftest.$ac_ext <<_ACEOF
9749 #line $LINENO "configure"
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 /* System header to define __stub macros and hopefully few prototypes,
9756 which can conflict with char $ac_func (); below.
9757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758 <limits.h> exists even on freestanding compilers. */
9759 #ifdef __STDC__
9760 # include <limits.h>
9761 #else
9762 # include <assert.h>
9763 #endif
9764 /* Override any gcc2 internal prototype to avoid an error. */
9765 #ifdef __cplusplus
9766 extern "C"
9768 #endif
9769 /* We use char because int might match the return type of a gcc2
9770 builtin and then its argument prototype would still apply. */
9771 char $ac_func ();
9772 /* The GNU C library defines this for functions which it implements
9773 to always fail with ENOSYS. Some functions are actually named
9774 something starting with __ and the normal name is an alias. */
9775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9776 choke me
9777 #else
9778 char (*f) () = $ac_func;
9779 #endif
9780 #ifdef __cplusplus
9782 #endif
9785 main ()
9787 return f != $ac_func;
9789 return 0;
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 eval "$as_ac_var=yes"
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 eval "$as_ac_var=no"
9811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9815 if test `eval echo '${'$as_ac_var'}'` = yes; then
9816 cat >>confdefs.h <<_ACEOF
9817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9818 _ACEOF
9821 done
9828 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9829 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9830 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9831 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9837 ac_ext=cc
9838 ac_cpp='$CXXCPP $CPPFLAGS'
9839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 #include <math.h>
9851 #ifdef HAVE_IEEEFP_H
9852 #include <ieeefp.h>
9853 #endif
9856 main ()
9858 qfpclass(0);
9860 return 0;
9862 _ACEOF
9863 rm -f conftest.$ac_objext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9865 (eval $ac_compile) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -s conftest.$ac_objext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 glibcxx_cv_func_qfpclass_use=yes
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 glibcxx_cv_func_qfpclass_use=no
9882 rm -f conftest.$ac_objext conftest.$ac_ext
9883 ac_ext=c
9884 ac_cpp='$CPP $CPPFLAGS'
9885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9893 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9894 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9896 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9898 for ac_func in qfpclass
9900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9901 echo "$as_me:$LINENO: checking for $ac_func" >&5
9902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9903 if eval "test \"\${$as_ac_var+set}\" = set"; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 if test x$gcc_no_link = xyes; then
9907 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9909 { (exit 1); exit 1; }; }
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 /* confdefs.h. */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 /* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char $ac_func (); below.
9920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9921 <limits.h> exists even on freestanding compilers. */
9922 #ifdef __STDC__
9923 # include <limits.h>
9924 #else
9925 # include <assert.h>
9926 #endif
9927 /* Override any gcc2 internal prototype to avoid an error. */
9928 #ifdef __cplusplus
9929 extern "C"
9931 #endif
9932 /* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9934 char $ac_func ();
9935 /* The GNU C library defines this for functions which it implements
9936 to always fail with ENOSYS. Some functions are actually named
9937 something starting with __ and the normal name is an alias. */
9938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9939 choke me
9940 #else
9941 char (*f) () = $ac_func;
9942 #endif
9943 #ifdef __cplusplus
9945 #endif
9948 main ()
9950 return f != $ac_func;
9952 return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 eval "$as_ac_var=yes"
9968 else
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 eval "$as_ac_var=no"
9974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9978 if test `eval echo '${'$as_ac_var'}'` = yes; then
9979 cat >>confdefs.h <<_ACEOF
9980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9981 _ACEOF
9984 done
9986 else
9988 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9989 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9990 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9991 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9997 ac_ext=cc
9998 ac_cpp='$CXXCPP $CPPFLAGS'
9999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <math.h>
10011 #ifdef HAVE_IEEEFP_H
10012 #include <ieeefp.h>
10013 #endif
10016 main ()
10018 _qfpclass(0);
10020 return 0;
10022 _ACEOF
10023 rm -f conftest.$ac_objext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -s conftest.$ac_objext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 glibcxx_cv_func__qfpclass_use=yes
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 glibcxx_cv_func__qfpclass_use=no
10042 rm -f conftest.$ac_objext conftest.$ac_ext
10043 ac_ext=c
10044 ac_cpp='$CPP $CPPFLAGS'
10045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10053 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10054 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10056 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10058 for ac_func in _qfpclass
10060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10061 echo "$as_me:$LINENO: checking for $ac_func" >&5
10062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10063 if eval "test \"\${$as_ac_var+set}\" = set"; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 if test x$gcc_no_link = xyes; then
10067 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10069 { (exit 1); exit 1; }; }
10071 cat >conftest.$ac_ext <<_ACEOF
10072 #line $LINENO "configure"
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 /* System header to define __stub macros and hopefully few prototypes,
10079 which can conflict with char $ac_func (); below.
10080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10081 <limits.h> exists even on freestanding compilers. */
10082 #ifdef __STDC__
10083 # include <limits.h>
10084 #else
10085 # include <assert.h>
10086 #endif
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 #ifdef __cplusplus
10089 extern "C"
10091 #endif
10092 /* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094 char $ac_func ();
10095 /* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
10098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10099 choke me
10100 #else
10101 char (*f) () = $ac_func;
10102 #endif
10103 #ifdef __cplusplus
10105 #endif
10108 main ()
10110 return f != $ac_func;
10112 return 0;
10114 _ACEOF
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 eval "$as_ac_var=yes"
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 eval "$as_ac_var=no"
10134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10138 if test `eval echo '${'$as_ac_var'}'` = yes; then
10139 cat >>confdefs.h <<_ACEOF
10140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10141 _ACEOF
10144 done
10151 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10152 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10153 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10154 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10160 ac_ext=cc
10161 ac_cpp='$CXXCPP $CPPFLAGS'
10162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10166 cat >conftest.$ac_ext <<_ACEOF
10167 #line $LINENO "configure"
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10173 #include <math.h>
10175 main ()
10177 hypot(0, 0);
10179 return 0;
10181 _ACEOF
10182 rm -f conftest.$ac_objext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184 (eval $ac_compile) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 glibcxx_cv_func_hypot_use=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 glibcxx_cv_func_hypot_use=no
10201 rm -f conftest.$ac_objext conftest.$ac_ext
10202 ac_ext=c
10203 ac_cpp='$CPP $CPPFLAGS'
10204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10212 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10213 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10215 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10217 for ac_func in hypot
10219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10220 echo "$as_me:$LINENO: checking for $ac_func" >&5
10221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10222 if eval "test \"\${$as_ac_var+set}\" = set"; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225 if test x$gcc_no_link = xyes; then
10226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10228 { (exit 1); exit 1; }; }
10230 cat >conftest.$ac_ext <<_ACEOF
10231 #line $LINENO "configure"
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 /* System header to define __stub macros and hopefully few prototypes,
10238 which can conflict with char $ac_func (); below.
10239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10240 <limits.h> exists even on freestanding compilers. */
10241 #ifdef __STDC__
10242 # include <limits.h>
10243 #else
10244 # include <assert.h>
10245 #endif
10246 /* Override any gcc2 internal prototype to avoid an error. */
10247 #ifdef __cplusplus
10248 extern "C"
10250 #endif
10251 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */
10253 char $ac_func ();
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10258 choke me
10259 #else
10260 char (*f) () = $ac_func;
10261 #endif
10262 #ifdef __cplusplus
10264 #endif
10267 main ()
10269 return f != $ac_func;
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext conftest$ac_exeext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -s conftest$ac_exeext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 eval "$as_ac_var=yes"
10287 else
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10291 eval "$as_ac_var=no"
10293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10297 if test `eval echo '${'$as_ac_var'}'` = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10300 _ACEOF
10303 done
10305 else
10307 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10308 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10309 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10310 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10316 ac_ext=cc
10317 ac_cpp='$CXXCPP $CPPFLAGS'
10318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 #include <math.h>
10331 main ()
10333 _hypot(0, 0);
10335 return 0;
10337 _ACEOF
10338 rm -f conftest.$ac_objext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340 (eval $ac_compile) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -s conftest.$ac_objext'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 glibcxx_cv_func__hypot_use=yes
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 glibcxx_cv_func__hypot_use=no
10357 rm -f conftest.$ac_objext conftest.$ac_ext
10358 ac_ext=c
10359 ac_cpp='$CPP $CPPFLAGS'
10360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10368 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10369 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10371 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10373 for ac_func in _hypot
10375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376 echo "$as_me:$LINENO: checking for $ac_func" >&5
10377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10378 if eval "test \"\${$as_ac_var+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381 if test x$gcc_no_link = xyes; then
10382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10384 { (exit 1); exit 1; }; }
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393 /* System header to define __stub macros and hopefully few prototypes,
10394 which can conflict with char $ac_func (); below.
10395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10396 <limits.h> exists even on freestanding compilers. */
10397 #ifdef __STDC__
10398 # include <limits.h>
10399 #else
10400 # include <assert.h>
10401 #endif
10402 /* Override any gcc2 internal prototype to avoid an error. */
10403 #ifdef __cplusplus
10404 extern "C"
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char $ac_func ();
10410 /* The GNU C library defines this for functions which it implements
10411 to always fail with ENOSYS. Some functions are actually named
10412 something starting with __ and the normal name is an alias. */
10413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10414 choke me
10415 #else
10416 char (*f) () = $ac_func;
10417 #endif
10418 #ifdef __cplusplus
10420 #endif
10423 main ()
10425 return f != $ac_func;
10427 return 0;
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -s conftest$ac_exeext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 eval "$as_ac_var=yes"
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 eval "$as_ac_var=no"
10449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10453 if test `eval echo '${'$as_ac_var'}'` = yes; then
10454 cat >>confdefs.h <<_ACEOF
10455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10456 _ACEOF
10459 done
10466 echo "$as_me:$LINENO: checking for float trig functions" >&5
10467 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10468 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10474 ac_ext=cc
10475 ac_cpp='$CXXCPP $CPPFLAGS'
10476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10480 cat >conftest.$ac_ext <<_ACEOF
10481 #line $LINENO "configure"
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 #include <math.h>
10489 main ()
10491 `for x in acosf asinf atanf \
10492 cosf sinf tanf \
10493 coshf sinhf tanhf; do echo "$x (0);"; done`
10495 return 0;
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500 (eval $ac_compile) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
10504 { ac_try='test -s conftest.$ac_objext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 glibcxx_cv_func_float_trig_use=yes
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 glibcxx_cv_func_float_trig_use=no
10517 rm -f conftest.$ac_objext conftest.$ac_ext
10518 ac_ext=c
10519 ac_cpp='$CPP $CPPFLAGS'
10520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10526 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10527 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10528 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10538 for ac_func in acosf asinf atanf \
10539 cosf sinf tanf \
10540 coshf sinhf tanhf
10542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10543 echo "$as_me:$LINENO: checking for $ac_func" >&5
10544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10545 if eval "test \"\${$as_ac_var+set}\" = set"; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 if test x$gcc_no_link = xyes; then
10549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10551 { (exit 1); exit 1; }; }
10553 cat >conftest.$ac_ext <<_ACEOF
10554 #line $LINENO "configure"
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 /* System header to define __stub macros and hopefully few prototypes,
10561 which can conflict with char $ac_func (); below.
10562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10563 <limits.h> exists even on freestanding compilers. */
10564 #ifdef __STDC__
10565 # include <limits.h>
10566 #else
10567 # include <assert.h>
10568 #endif
10569 /* Override any gcc2 internal prototype to avoid an error. */
10570 #ifdef __cplusplus
10571 extern "C"
10573 #endif
10574 /* We use char because int might match the return type of a gcc2
10575 builtin and then its argument prototype would still apply. */
10576 char $ac_func ();
10577 /* The GNU C library defines this for functions which it implements
10578 to always fail with ENOSYS. Some functions are actually named
10579 something starting with __ and the normal name is an alias. */
10580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10581 choke me
10582 #else
10583 char (*f) () = $ac_func;
10584 #endif
10585 #ifdef __cplusplus
10587 #endif
10590 main ()
10592 return f != $ac_func;
10594 return 0;
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest$ac_exeext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 eval "$as_ac_var=yes"
10610 else
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 eval "$as_ac_var=no"
10616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10620 if test `eval echo '${'$as_ac_var'}'` = yes; then
10621 cat >>confdefs.h <<_ACEOF
10622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10623 _ACEOF
10626 done
10631 echo "$as_me:$LINENO: checking for float round functions" >&5
10632 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10633 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10639 ac_ext=cc
10640 ac_cpp='$CXXCPP $CPPFLAGS'
10641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10645 cat >conftest.$ac_ext <<_ACEOF
10646 #line $LINENO "configure"
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 #include <math.h>
10654 main ()
10656 `for x in ceilf floorf; do echo "$x (0);"; done`
10658 return 0;
10660 _ACEOF
10661 rm -f conftest.$ac_objext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663 (eval $ac_compile) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -s conftest.$ac_objext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 glibcxx_cv_func_float_round_use=yes
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 glibcxx_cv_func_float_round_use=no
10680 rm -f conftest.$ac_objext conftest.$ac_ext
10681 ac_ext=c
10682 ac_cpp='$CPP $CPPFLAGS'
10683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10689 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10690 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10691 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10694 for ac_func in ceilf floorf
10696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697 echo "$as_me:$LINENO: checking for $ac_func" >&5
10698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10699 if eval "test \"\${$as_ac_var+set}\" = set"; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702 if test x$gcc_no_link = xyes; then
10703 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10704 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10705 { (exit 1); exit 1; }; }
10707 cat >conftest.$ac_ext <<_ACEOF
10708 #line $LINENO "configure"
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 /* System header to define __stub macros and hopefully few prototypes,
10715 which can conflict with char $ac_func (); below.
10716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10717 <limits.h> exists even on freestanding compilers. */
10718 #ifdef __STDC__
10719 # include <limits.h>
10720 #else
10721 # include <assert.h>
10722 #endif
10723 /* Override any gcc2 internal prototype to avoid an error. */
10724 #ifdef __cplusplus
10725 extern "C"
10727 #endif
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730 char $ac_func ();
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10735 choke me
10736 #else
10737 char (*f) () = $ac_func;
10738 #endif
10739 #ifdef __cplusplus
10741 #endif
10744 main ()
10746 return f != $ac_func;
10748 return 0;
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -s conftest$ac_exeext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 eval "$as_ac_var=yes"
10764 else
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 eval "$as_ac_var=no"
10770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10774 if test `eval echo '${'$as_ac_var'}'` = yes; then
10775 cat >>confdefs.h <<_ACEOF
10776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10777 _ACEOF
10780 done
10786 echo "$as_me:$LINENO: checking for expf declaration" >&5
10787 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10788 if test x${glibcxx_cv_func_expf_use+set} != xset; then
10789 if test "${glibcxx_cv_func_expf_use+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10795 ac_ext=cc
10796 ac_cpp='$CXXCPP $CPPFLAGS'
10797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10801 cat >conftest.$ac_ext <<_ACEOF
10802 #line $LINENO "configure"
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 #include <math.h>
10809 #ifdef HAVE_IEEEFP_H
10810 #include <ieeefp.h>
10811 #endif
10814 main ()
10816 expf(0);
10818 return 0;
10820 _ACEOF
10821 rm -f conftest.$ac_objext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10823 (eval $ac_compile) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -s conftest.$ac_objext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 glibcxx_cv_func_expf_use=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 glibcxx_cv_func_expf_use=no
10840 rm -f conftest.$ac_objext conftest.$ac_ext
10841 ac_ext=c
10842 ac_cpp='$CPP $CPPFLAGS'
10843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10851 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10852 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10854 if test x$glibcxx_cv_func_expf_use = x"yes"; then
10856 for ac_func in expf
10858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10859 echo "$as_me:$LINENO: checking for $ac_func" >&5
10860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10861 if eval "test \"\${$as_ac_var+set}\" = set"; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864 if test x$gcc_no_link = xyes; then
10865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10867 { (exit 1); exit 1; }; }
10869 cat >conftest.$ac_ext <<_ACEOF
10870 #line $LINENO "configure"
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 /* System header to define __stub macros and hopefully few prototypes,
10877 which can conflict with char $ac_func (); below.
10878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10879 <limits.h> exists even on freestanding compilers. */
10880 #ifdef __STDC__
10881 # include <limits.h>
10882 #else
10883 # include <assert.h>
10884 #endif
10885 /* Override any gcc2 internal prototype to avoid an error. */
10886 #ifdef __cplusplus
10887 extern "C"
10889 #endif
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892 char $ac_func ();
10893 /* The GNU C library defines this for functions which it implements
10894 to always fail with ENOSYS. Some functions are actually named
10895 something starting with __ and the normal name is an alias. */
10896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10897 choke me
10898 #else
10899 char (*f) () = $ac_func;
10900 #endif
10901 #ifdef __cplusplus
10903 #endif
10906 main ()
10908 return f != $ac_func;
10910 return 0;
10912 _ACEOF
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -s conftest$ac_exeext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 eval "$as_ac_var=yes"
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 eval "$as_ac_var=no"
10932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10936 if test `eval echo '${'$as_ac_var'}'` = yes; then
10937 cat >>confdefs.h <<_ACEOF
10938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10939 _ACEOF
10942 done
10944 else
10946 echo "$as_me:$LINENO: checking for _expf declaration" >&5
10947 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10948 if test x${glibcxx_cv_func__expf_use+set} != xset; then
10949 if test "${glibcxx_cv_func__expf_use+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10955 ac_ext=cc
10956 ac_cpp='$CXXCPP $CPPFLAGS'
10957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10961 cat >conftest.$ac_ext <<_ACEOF
10962 #line $LINENO "configure"
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 #include <math.h>
10969 #ifdef HAVE_IEEEFP_H
10970 #include <ieeefp.h>
10971 #endif
10974 main ()
10976 _expf(0);
10978 return 0;
10980 _ACEOF
10981 rm -f conftest.$ac_objext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 (eval $ac_compile) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -s conftest.$ac_objext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 glibcxx_cv_func__expf_use=yes
10994 else
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 glibcxx_cv_func__expf_use=no
11000 rm -f conftest.$ac_objext conftest.$ac_ext
11001 ac_ext=c
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11011 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
11012 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
11014 if test x$glibcxx_cv_func__expf_use = x"yes"; then
11016 for ac_func in _expf
11018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11019 echo "$as_me:$LINENO: checking for $ac_func" >&5
11020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11021 if eval "test \"\${$as_ac_var+set}\" = set"; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024 if test x$gcc_no_link = xyes; then
11025 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11026 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11027 { (exit 1); exit 1; }; }
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* System header to define __stub macros and hopefully few prototypes,
11037 which can conflict with char $ac_func (); below.
11038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039 <limits.h> exists even on freestanding compilers. */
11040 #ifdef __STDC__
11041 # include <limits.h>
11042 #else
11043 # include <assert.h>
11044 #endif
11045 /* Override any gcc2 internal prototype to avoid an error. */
11046 #ifdef __cplusplus
11047 extern "C"
11049 #endif
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char $ac_func ();
11053 /* The GNU C library defines this for functions which it implements
11054 to always fail with ENOSYS. Some functions are actually named
11055 something starting with __ and the normal name is an alias. */
11056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11057 choke me
11058 #else
11059 char (*f) () = $ac_func;
11060 #endif
11061 #ifdef __cplusplus
11063 #endif
11066 main ()
11068 return f != $ac_func;
11070 return 0;
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 eval "$as_ac_var=yes"
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 eval "$as_ac_var=no"
11092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11096 if test `eval echo '${'$as_ac_var'}'` = yes; then
11097 cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11099 _ACEOF
11102 done
11109 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
11110 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
11111 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
11112 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11118 ac_ext=cc
11119 ac_cpp='$CXXCPP $CPPFLAGS'
11120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11124 cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 /* confdefs.h. */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 #include <math.h>
11132 #ifdef HAVE_IEEEFP_H
11133 #include <ieeefp.h>
11134 #endif
11137 main ()
11139 isnanf(0);
11141 return 0;
11143 _ACEOF
11144 rm -f conftest.$ac_objext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146 (eval $ac_compile) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try='test -s conftest.$ac_objext'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11156 glibcxx_cv_func_isnanf_use=yes
11157 else
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 glibcxx_cv_func_isnanf_use=no
11163 rm -f conftest.$ac_objext conftest.$ac_ext
11164 ac_ext=c
11165 ac_cpp='$CPP $CPPFLAGS'
11166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11174 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11175 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11177 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11179 for ac_func in isnanf
11181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11184 if eval "test \"\${$as_ac_var+set}\" = set"; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187 if test x$gcc_no_link = xyes; then
11188 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11190 { (exit 1); exit 1; }; }
11192 cat >conftest.$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func (); below.
11201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11202 <limits.h> exists even on freestanding compilers. */
11203 #ifdef __STDC__
11204 # include <limits.h>
11205 #else
11206 # include <assert.h>
11207 #endif
11208 /* Override any gcc2 internal prototype to avoid an error. */
11209 #ifdef __cplusplus
11210 extern "C"
11212 #endif
11213 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215 char $ac_func ();
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11220 choke me
11221 #else
11222 char (*f) () = $ac_func;
11223 #endif
11224 #ifdef __cplusplus
11226 #endif
11229 main ()
11231 return f != $ac_func;
11233 return 0;
11235 _ACEOF
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238 (eval $ac_link) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 eval "$as_ac_var=yes"
11249 else
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 eval "$as_ac_var=no"
11255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11259 if test `eval echo '${'$as_ac_var'}'` = yes; then
11260 cat >>confdefs.h <<_ACEOF
11261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11262 _ACEOF
11265 done
11267 else
11269 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11270 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11271 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11272 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11278 ac_ext=cc
11279 ac_cpp='$CXXCPP $CPPFLAGS'
11280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11284 cat >conftest.$ac_ext <<_ACEOF
11285 #line $LINENO "configure"
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include <math.h>
11292 #ifdef HAVE_IEEEFP_H
11293 #include <ieeefp.h>
11294 #endif
11297 main ()
11299 _isnanf(0);
11301 return 0;
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try='test -s conftest.$ac_objext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 glibcxx_cv_func__isnanf_use=yes
11317 else
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 glibcxx_cv_func__isnanf_use=no
11323 rm -f conftest.$ac_objext conftest.$ac_ext
11324 ac_ext=c
11325 ac_cpp='$CPP $CPPFLAGS'
11326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11335 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11337 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11339 for ac_func in _isnanf
11341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342 echo "$as_me:$LINENO: checking for $ac_func" >&5
11343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11344 if eval "test \"\${$as_ac_var+set}\" = set"; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347 if test x$gcc_no_link = xyes; then
11348 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11350 { (exit 1); exit 1; }; }
11352 cat >conftest.$ac_ext <<_ACEOF
11353 #line $LINENO "configure"
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 /* System header to define __stub macros and hopefully few prototypes,
11360 which can conflict with char $ac_func (); below.
11361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362 <limits.h> exists even on freestanding compilers. */
11363 #ifdef __STDC__
11364 # include <limits.h>
11365 #else
11366 # include <assert.h>
11367 #endif
11368 /* Override any gcc2 internal prototype to avoid an error. */
11369 #ifdef __cplusplus
11370 extern "C"
11372 #endif
11373 /* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11375 char $ac_func ();
11376 /* The GNU C library defines this for functions which it implements
11377 to always fail with ENOSYS. Some functions are actually named
11378 something starting with __ and the normal name is an alias. */
11379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11380 choke me
11381 #else
11382 char (*f) () = $ac_func;
11383 #endif
11384 #ifdef __cplusplus
11386 #endif
11389 main ()
11391 return f != $ac_func;
11393 return 0;
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398 (eval $ac_link) 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
11402 { ac_try='test -s conftest$ac_exeext'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; }; then
11408 eval "$as_ac_var=yes"
11409 else
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 eval "$as_ac_var=no"
11415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11422 _ACEOF
11425 done
11432 echo "$as_me:$LINENO: checking for isinff declaration" >&5
11433 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11434 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11435 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11441 ac_ext=cc
11442 ac_cpp='$CXXCPP $CPPFLAGS'
11443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <math.h>
11455 #ifdef HAVE_IEEEFP_H
11456 #include <ieeefp.h>
11457 #endif
11460 main ()
11462 isinff(0);
11464 return 0;
11466 _ACEOF
11467 rm -f conftest.$ac_objext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469 (eval $ac_compile) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -s conftest.$ac_objext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 glibcxx_cv_func_isinff_use=yes
11480 else
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 glibcxx_cv_func_isinff_use=no
11486 rm -f conftest.$ac_objext conftest.$ac_ext
11487 ac_ext=c
11488 ac_cpp='$CPP $CPPFLAGS'
11489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11497 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11498 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11500 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11502 for ac_func in isinff
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11507 if eval "test \"\${$as_ac_var+set}\" = set"; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 if test x$gcc_no_link = xyes; then
11511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11513 { (exit 1); exit 1; }; }
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 /* System header to define __stub macros and hopefully few prototypes,
11523 which can conflict with char $ac_func (); below.
11524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11525 <limits.h> exists even on freestanding compilers. */
11526 #ifdef __STDC__
11527 # include <limits.h>
11528 #else
11529 # include <assert.h>
11530 #endif
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 #ifdef __cplusplus
11533 extern "C"
11535 #endif
11536 /* We use char because int might match the return type of a gcc2
11537 builtin and then its argument prototype would still apply. */
11538 char $ac_func ();
11539 /* The GNU C library defines this for functions which it implements
11540 to always fail with ENOSYS. Some functions are actually named
11541 something starting with __ and the normal name is an alias. */
11542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11543 choke me
11544 #else
11545 char (*f) () = $ac_func;
11546 #endif
11547 #ifdef __cplusplus
11549 #endif
11552 main ()
11554 return f != $ac_func;
11556 return 0;
11558 _ACEOF
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11561 (eval $ac_link) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -s conftest$ac_exeext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 eval "$as_ac_var=yes"
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 eval "$as_ac_var=no"
11578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11582 if test `eval echo '${'$as_ac_var'}'` = yes; then
11583 cat >>confdefs.h <<_ACEOF
11584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11585 _ACEOF
11588 done
11590 else
11592 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11593 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11594 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11595 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11601 ac_ext=cc
11602 ac_cpp='$CXXCPP $CPPFLAGS'
11603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11607 cat >conftest.$ac_ext <<_ACEOF
11608 #line $LINENO "configure"
11609 /* confdefs.h. */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 #include <math.h>
11615 #ifdef HAVE_IEEEFP_H
11616 #include <ieeefp.h>
11617 #endif
11620 main ()
11622 _isinff(0);
11624 return 0;
11626 _ACEOF
11627 rm -f conftest.$ac_objext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try='test -s conftest.$ac_objext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 glibcxx_cv_func__isinff_use=yes
11640 else
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11644 glibcxx_cv_func__isinff_use=no
11646 rm -f conftest.$ac_objext conftest.$ac_ext
11647 ac_ext=c
11648 ac_cpp='$CPP $CPPFLAGS'
11649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11658 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11660 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11662 for ac_func in _isinff
11664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11665 echo "$as_me:$LINENO: checking for $ac_func" >&5
11666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_var+set}\" = set"; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670 if test x$gcc_no_link = xyes; then
11671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11673 { (exit 1); exit 1; }; }
11675 cat >conftest.$ac_ext <<_ACEOF
11676 #line $LINENO "configure"
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 /* System header to define __stub macros and hopefully few prototypes,
11683 which can conflict with char $ac_func (); below.
11684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685 <limits.h> exists even on freestanding compilers. */
11686 #ifdef __STDC__
11687 # include <limits.h>
11688 #else
11689 # include <assert.h>
11690 #endif
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 #ifdef __cplusplus
11693 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char $ac_func ();
11699 /* The GNU C library defines this for functions which it implements
11700 to always fail with ENOSYS. Some functions are actually named
11701 something starting with __ and the normal name is an alias. */
11702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11703 choke me
11704 #else
11705 char (*f) () = $ac_func;
11706 #endif
11707 #ifdef __cplusplus
11709 #endif
11712 main ()
11714 return f != $ac_func;
11716 return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 eval "$as_ac_var=yes"
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11742 if test `eval echo '${'$as_ac_var'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 _ACEOF
11748 done
11755 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11756 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11757 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11758 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11764 ac_ext=cc
11765 ac_cpp='$CXXCPP $CPPFLAGS'
11766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11770 cat >conftest.$ac_ext <<_ACEOF
11771 #line $LINENO "configure"
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 #include <math.h>
11779 main ()
11781 atan2f(0, 0);
11783 return 0;
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -s conftest.$ac_objext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 glibcxx_cv_func_atan2f_use=yes
11799 else
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11803 glibcxx_cv_func_atan2f_use=no
11805 rm -f conftest.$ac_objext conftest.$ac_ext
11806 ac_ext=c
11807 ac_cpp='$CPP $CPPFLAGS'
11808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11817 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11819 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11821 for ac_func in atan2f
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11826 if eval "test \"\${$as_ac_var+set}\" = set"; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829 if test x$gcc_no_link = xyes; then
11830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11832 { (exit 1); exit 1; }; }
11834 cat >conftest.$ac_ext <<_ACEOF
11835 #line $LINENO "configure"
11836 /* confdefs.h. */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char $ac_func (); below.
11843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844 <limits.h> exists even on freestanding compilers. */
11845 #ifdef __STDC__
11846 # include <limits.h>
11847 #else
11848 # include <assert.h>
11849 #endif
11850 /* Override any gcc2 internal prototype to avoid an error. */
11851 #ifdef __cplusplus
11852 extern "C"
11854 #endif
11855 /* We use char because int might match the return type of a gcc2
11856 builtin and then its argument prototype would still apply. */
11857 char $ac_func ();
11858 /* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
11861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11862 choke me
11863 #else
11864 char (*f) () = $ac_func;
11865 #endif
11866 #ifdef __cplusplus
11868 #endif
11871 main ()
11873 return f != $ac_func;
11875 return 0;
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 eval "$as_ac_var=yes"
11891 else
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 eval "$as_ac_var=no"
11897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11901 if test `eval echo '${'$as_ac_var'}'` = yes; then
11902 cat >>confdefs.h <<_ACEOF
11903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11904 _ACEOF
11907 done
11909 else
11911 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11912 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11913 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11914 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11920 ac_ext=cc
11921 ac_cpp='$CXXCPP $CPPFLAGS'
11922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line $LINENO "configure"
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 #include <math.h>
11935 main ()
11937 _atan2f(0, 0);
11939 return 0;
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 glibcxx_cv_func__atan2f_use=yes
11955 else
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 glibcxx_cv_func__atan2f_use=no
11961 rm -f conftest.$ac_objext conftest.$ac_ext
11962 ac_ext=c
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11973 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11975 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11977 for ac_func in _atan2f
11979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11980 echo "$as_me:$LINENO: checking for $ac_func" >&5
11981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11982 if eval "test \"\${$as_ac_var+set}\" = set"; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 if test x$gcc_no_link = xyes; then
11986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11988 { (exit 1); exit 1; }; }
11990 cat >conftest.$ac_ext <<_ACEOF
11991 #line $LINENO "configure"
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 /* System header to define __stub macros and hopefully few prototypes,
11998 which can conflict with char $ac_func (); below.
11999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12000 <limits.h> exists even on freestanding compilers. */
12001 #ifdef __STDC__
12002 # include <limits.h>
12003 #else
12004 # include <assert.h>
12005 #endif
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 #ifdef __cplusplus
12008 extern "C"
12010 #endif
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12013 char $ac_func ();
12014 /* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
12017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12018 choke me
12019 #else
12020 char (*f) () = $ac_func;
12021 #endif
12022 #ifdef __cplusplus
12024 #endif
12027 main ()
12029 return f != $ac_func;
12031 return 0;
12033 _ACEOF
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -s conftest$ac_exeext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 eval "$as_ac_var=yes"
12047 else
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 eval "$as_ac_var=no"
12053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12057 if test `eval echo '${'$as_ac_var'}'` = yes; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12060 _ACEOF
12063 done
12070 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
12071 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
12072 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
12073 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12079 ac_ext=cc
12080 ac_cpp='$CXXCPP $CPPFLAGS'
12081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12085 cat >conftest.$ac_ext <<_ACEOF
12086 #line $LINENO "configure"
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <math.h>
12093 #ifdef HAVE_IEEEFP_H
12094 #include <ieeefp.h>
12095 #endif
12098 main ()
12100 fabsf(0);
12102 return 0;
12104 _ACEOF
12105 rm -f conftest.$ac_objext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12107 (eval $ac_compile) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -s conftest.$ac_objext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 glibcxx_cv_func_fabsf_use=yes
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 glibcxx_cv_func_fabsf_use=no
12124 rm -f conftest.$ac_objext conftest.$ac_ext
12125 ac_ext=c
12126 ac_cpp='$CPP $CPPFLAGS'
12127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12135 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
12136 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
12138 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
12140 for ac_func in fabsf
12142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143 echo "$as_me:$LINENO: checking for $ac_func" >&5
12144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12145 if eval "test \"\${$as_ac_var+set}\" = set"; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 if test x$gcc_no_link = xyes; then
12149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12151 { (exit 1); exit 1; }; }
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #line $LINENO "configure"
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 /* System header to define __stub macros and hopefully few prototypes,
12161 which can conflict with char $ac_func (); below.
12162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12163 <limits.h> exists even on freestanding compilers. */
12164 #ifdef __STDC__
12165 # include <limits.h>
12166 #else
12167 # include <assert.h>
12168 #endif
12169 /* Override any gcc2 internal prototype to avoid an error. */
12170 #ifdef __cplusplus
12171 extern "C"
12173 #endif
12174 /* We use char because int might match the return type of a gcc2
12175 builtin and then its argument prototype would still apply. */
12176 char $ac_func ();
12177 /* The GNU C library defines this for functions which it implements
12178 to always fail with ENOSYS. Some functions are actually named
12179 something starting with __ and the normal name is an alias. */
12180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12181 choke me
12182 #else
12183 char (*f) () = $ac_func;
12184 #endif
12185 #ifdef __cplusplus
12187 #endif
12190 main ()
12192 return f != $ac_func;
12194 return 0;
12196 _ACEOF
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 eval "$as_ac_var=yes"
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 eval "$as_ac_var=no"
12216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12220 if test `eval echo '${'$as_ac_var'}'` = yes; then
12221 cat >>confdefs.h <<_ACEOF
12222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12223 _ACEOF
12226 done
12228 else
12230 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12231 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12232 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12233 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12239 ac_ext=cc
12240 ac_cpp='$CXXCPP $CPPFLAGS'
12241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12245 cat >conftest.$ac_ext <<_ACEOF
12246 #line $LINENO "configure"
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 #include <math.h>
12253 #ifdef HAVE_IEEEFP_H
12254 #include <ieeefp.h>
12255 #endif
12258 main ()
12260 _fabsf(0);
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -s conftest.$ac_objext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 glibcxx_cv_func__fabsf_use=yes
12278 else
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 glibcxx_cv_func__fabsf_use=no
12284 rm -f conftest.$ac_objext conftest.$ac_ext
12285 ac_ext=c
12286 ac_cpp='$CPP $CPPFLAGS'
12287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12295 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12296 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12298 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12300 for ac_func in _fabsf
12302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12303 echo "$as_me:$LINENO: checking for $ac_func" >&5
12304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12305 if eval "test \"\${$as_ac_var+set}\" = set"; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308 if test x$gcc_no_link = xyes; then
12309 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12311 { (exit 1); exit 1; }; }
12313 cat >conftest.$ac_ext <<_ACEOF
12314 #line $LINENO "configure"
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 /* System header to define __stub macros and hopefully few prototypes,
12321 which can conflict with char $ac_func (); below.
12322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12323 <limits.h> exists even on freestanding compilers. */
12324 #ifdef __STDC__
12325 # include <limits.h>
12326 #else
12327 # include <assert.h>
12328 #endif
12329 /* Override any gcc2 internal prototype to avoid an error. */
12330 #ifdef __cplusplus
12331 extern "C"
12333 #endif
12334 /* We use char because int might match the return type of a gcc2
12335 builtin and then its argument prototype would still apply. */
12336 char $ac_func ();
12337 /* The GNU C library defines this for functions which it implements
12338 to always fail with ENOSYS. Some functions are actually named
12339 something starting with __ and the normal name is an alias. */
12340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12341 choke me
12342 #else
12343 char (*f) () = $ac_func;
12344 #endif
12345 #ifdef __cplusplus
12347 #endif
12350 main ()
12352 return f != $ac_func;
12354 return 0;
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -s conftest$ac_exeext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 eval "$as_ac_var=yes"
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 eval "$as_ac_var=no"
12376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12380 if test `eval echo '${'$as_ac_var'}'` = yes; then
12381 cat >>confdefs.h <<_ACEOF
12382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12383 _ACEOF
12386 done
12393 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12394 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12395 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12396 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12402 ac_ext=cc
12403 ac_cpp='$CXXCPP $CPPFLAGS'
12404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12408 cat >conftest.$ac_ext <<_ACEOF
12409 #line $LINENO "configure"
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 #include <math.h>
12417 main ()
12419 fmodf(0, 0);
12421 return 0;
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 glibcxx_cv_func_fmodf_use=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 glibcxx_cv_func_fmodf_use=no
12443 rm -f conftest.$ac_objext conftest.$ac_ext
12444 ac_ext=c
12445 ac_cpp='$CPP $CPPFLAGS'
12446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12454 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12455 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12457 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12459 for ac_func in fmodf
12461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12462 echo "$as_me:$LINENO: checking for $ac_func" >&5
12463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12464 if eval "test \"\${$as_ac_var+set}\" = set"; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467 if test x$gcc_no_link = xyes; then
12468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12470 { (exit 1); exit 1; }; }
12472 cat >conftest.$ac_ext <<_ACEOF
12473 #line $LINENO "configure"
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 /* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char $ac_func (); below.
12481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482 <limits.h> exists even on freestanding compilers. */
12483 #ifdef __STDC__
12484 # include <limits.h>
12485 #else
12486 # include <assert.h>
12487 #endif
12488 /* Override any gcc2 internal prototype to avoid an error. */
12489 #ifdef __cplusplus
12490 extern "C"
12492 #endif
12493 /* We use char because int might match the return type of a gcc2
12494 builtin and then its argument prototype would still apply. */
12495 char $ac_func ();
12496 /* The GNU C library defines this for functions which it implements
12497 to always fail with ENOSYS. Some functions are actually named
12498 something starting with __ and the normal name is an alias. */
12499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12500 choke me
12501 #else
12502 char (*f) () = $ac_func;
12503 #endif
12504 #ifdef __cplusplus
12506 #endif
12509 main ()
12511 return f != $ac_func;
12513 return 0;
12515 _ACEOF
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518 (eval $ac_link) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -s conftest$ac_exeext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 eval "$as_ac_var=yes"
12529 else
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 eval "$as_ac_var=no"
12535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12539 if test `eval echo '${'$as_ac_var'}'` = yes; then
12540 cat >>confdefs.h <<_ACEOF
12541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12542 _ACEOF
12545 done
12547 else
12549 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12550 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12551 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12552 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12558 ac_ext=cc
12559 ac_cpp='$CXXCPP $CPPFLAGS'
12560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12564 cat >conftest.$ac_ext <<_ACEOF
12565 #line $LINENO "configure"
12566 /* confdefs.h. */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 #include <math.h>
12573 main ()
12575 _fmodf(0, 0);
12577 return 0;
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582 (eval $ac_compile) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -s conftest.$ac_objext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 glibcxx_cv_func__fmodf_use=yes
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 glibcxx_cv_func__fmodf_use=no
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12600 ac_ext=c
12601 ac_cpp='$CPP $CPPFLAGS'
12602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12610 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12611 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12613 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12615 for ac_func in _fmodf
12617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12618 echo "$as_me:$LINENO: checking for $ac_func" >&5
12619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12620 if eval "test \"\${$as_ac_var+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623 if test x$gcc_no_link = xyes; then
12624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12626 { (exit 1); exit 1; }; }
12628 cat >conftest.$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12630 /* confdefs.h. */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 /* System header to define __stub macros and hopefully few prototypes,
12636 which can conflict with char $ac_func (); below.
12637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12638 <limits.h> exists even on freestanding compilers. */
12639 #ifdef __STDC__
12640 # include <limits.h>
12641 #else
12642 # include <assert.h>
12643 #endif
12644 /* Override any gcc2 internal prototype to avoid an error. */
12645 #ifdef __cplusplus
12646 extern "C"
12648 #endif
12649 /* We use char because int might match the return type of a gcc2
12650 builtin and then its argument prototype would still apply. */
12651 char $ac_func ();
12652 /* The GNU C library defines this for functions which it implements
12653 to always fail with ENOSYS. Some functions are actually named
12654 something starting with __ and the normal name is an alias. */
12655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12656 choke me
12657 #else
12658 char (*f) () = $ac_func;
12659 #endif
12660 #ifdef __cplusplus
12662 #endif
12665 main ()
12667 return f != $ac_func;
12669 return 0;
12671 _ACEOF
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674 (eval $ac_link) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -s conftest$ac_exeext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 eval "$as_ac_var=yes"
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12689 eval "$as_ac_var=no"
12691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12695 if test `eval echo '${'$as_ac_var'}'` = yes; then
12696 cat >>confdefs.h <<_ACEOF
12697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12698 _ACEOF
12701 done
12708 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12709 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12710 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12711 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12717 ac_ext=cc
12718 ac_cpp='$CXXCPP $CPPFLAGS'
12719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12723 cat >conftest.$ac_ext <<_ACEOF
12724 #line $LINENO "configure"
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 #include <math.h>
12732 main ()
12734 frexpf(0, 0);
12736 return 0;
12738 _ACEOF
12739 rm -f conftest.$ac_objext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 glibcxx_cv_func_frexpf_use=yes
12752 else
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 glibcxx_cv_func_frexpf_use=no
12758 rm -f conftest.$ac_objext conftest.$ac_ext
12759 ac_ext=c
12760 ac_cpp='$CPP $CPPFLAGS'
12761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12769 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12770 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12772 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12774 for ac_func in frexpf
12776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12777 echo "$as_me:$LINENO: checking for $ac_func" >&5
12778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12779 if eval "test \"\${$as_ac_var+set}\" = set"; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 if test x$gcc_no_link = xyes; then
12783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12785 { (exit 1); exit 1; }; }
12787 cat >conftest.$ac_ext <<_ACEOF
12788 #line $LINENO "configure"
12789 /* confdefs.h. */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 /* System header to define __stub macros and hopefully few prototypes,
12795 which can conflict with char $ac_func (); below.
12796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12797 <limits.h> exists even on freestanding compilers. */
12798 #ifdef __STDC__
12799 # include <limits.h>
12800 #else
12801 # include <assert.h>
12802 #endif
12803 /* Override any gcc2 internal prototype to avoid an error. */
12804 #ifdef __cplusplus
12805 extern "C"
12807 #endif
12808 /* We use char because int might match the return type of a gcc2
12809 builtin and then its argument prototype would still apply. */
12810 char $ac_func ();
12811 /* The GNU C library defines this for functions which it implements
12812 to always fail with ENOSYS. Some functions are actually named
12813 something starting with __ and the normal name is an alias. */
12814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12815 choke me
12816 #else
12817 char (*f) () = $ac_func;
12818 #endif
12819 #ifdef __cplusplus
12821 #endif
12824 main ()
12826 return f != $ac_func;
12828 return 0;
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 eval "$as_ac_var=yes"
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 eval "$as_ac_var=no"
12850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12854 if test `eval echo '${'$as_ac_var'}'` = yes; then
12855 cat >>confdefs.h <<_ACEOF
12856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12857 _ACEOF
12860 done
12862 else
12864 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12865 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12866 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12867 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12873 ac_ext=cc
12874 ac_cpp='$CXXCPP $CPPFLAGS'
12875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12879 cat >conftest.$ac_ext <<_ACEOF
12880 #line $LINENO "configure"
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include <math.h>
12888 main ()
12890 _frexpf(0, 0);
12892 return 0;
12894 _ACEOF
12895 rm -f conftest.$ac_objext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -s conftest.$ac_objext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 glibcxx_cv_func__frexpf_use=yes
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 glibcxx_cv_func__frexpf_use=no
12914 rm -f conftest.$ac_objext conftest.$ac_ext
12915 ac_ext=c
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12925 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12926 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12928 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12930 for ac_func in _frexpf
12932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12933 echo "$as_me:$LINENO: checking for $ac_func" >&5
12934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_var+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 if test x$gcc_no_link = xyes; then
12939 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12941 { (exit 1); exit 1; }; }
12943 cat >conftest.$ac_ext <<_ACEOF
12944 #line $LINENO "configure"
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 /* System header to define __stub macros and hopefully few prototypes,
12951 which can conflict with char $ac_func (); below.
12952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12953 <limits.h> exists even on freestanding compilers. */
12954 #ifdef __STDC__
12955 # include <limits.h>
12956 #else
12957 # include <assert.h>
12958 #endif
12959 /* Override any gcc2 internal prototype to avoid an error. */
12960 #ifdef __cplusplus
12961 extern "C"
12963 #endif
12964 /* We use char because int might match the return type of a gcc2
12965 builtin and then its argument prototype would still apply. */
12966 char $ac_func ();
12967 /* The GNU C library defines this for functions which it implements
12968 to always fail with ENOSYS. Some functions are actually named
12969 something starting with __ and the normal name is an alias. */
12970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12971 choke me
12972 #else
12973 char (*f) () = $ac_func;
12974 #endif
12975 #ifdef __cplusplus
12977 #endif
12980 main ()
12982 return f != $ac_func;
12984 return 0;
12986 _ACEOF
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -s conftest$ac_exeext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 eval "$as_ac_var=yes"
13000 else
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13004 eval "$as_ac_var=no"
13006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13010 if test `eval echo '${'$as_ac_var'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 _ACEOF
13016 done
13023 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
13024 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
13025 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
13026 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13032 ac_ext=cc
13033 ac_cpp='$CXXCPP $CPPFLAGS'
13034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13038 cat >conftest.$ac_ext <<_ACEOF
13039 #line $LINENO "configure"
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 #include <math.h>
13047 main ()
13049 hypotf(0, 0);
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 glibcxx_cv_func_hypotf_use=yes
13067 else
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 glibcxx_cv_func_hypotf_use=no
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13074 ac_ext=c
13075 ac_cpp='$CPP $CPPFLAGS'
13076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13084 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
13085 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
13087 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
13089 for ac_func in hypotf
13091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13092 echo "$as_me:$LINENO: checking for $ac_func" >&5
13093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13094 if eval "test \"\${$as_ac_var+set}\" = set"; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097 if test x$gcc_no_link = xyes; then
13098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13100 { (exit 1); exit 1; }; }
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line $LINENO "configure"
13104 /* confdefs.h. */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109 /* System header to define __stub macros and hopefully few prototypes,
13110 which can conflict with char $ac_func (); below.
13111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13112 <limits.h> exists even on freestanding compilers. */
13113 #ifdef __STDC__
13114 # include <limits.h>
13115 #else
13116 # include <assert.h>
13117 #endif
13118 /* Override any gcc2 internal prototype to avoid an error. */
13119 #ifdef __cplusplus
13120 extern "C"
13122 #endif
13123 /* We use char because int might match the return type of a gcc2
13124 builtin and then its argument prototype would still apply. */
13125 char $ac_func ();
13126 /* The GNU C library defines this for functions which it implements
13127 to always fail with ENOSYS. Some functions are actually named
13128 something starting with __ and the normal name is an alias. */
13129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13130 choke me
13131 #else
13132 char (*f) () = $ac_func;
13133 #endif
13134 #ifdef __cplusplus
13136 #endif
13139 main ()
13141 return f != $ac_func;
13143 return 0;
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 eval "$as_ac_var=yes"
13159 else
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 eval "$as_ac_var=no"
13165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13169 if test `eval echo '${'$as_ac_var'}'` = yes; then
13170 cat >>confdefs.h <<_ACEOF
13171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13172 _ACEOF
13175 done
13177 else
13179 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
13180 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
13181 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
13182 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13188 ac_ext=cc
13189 ac_cpp='$CXXCPP $CPPFLAGS'
13190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13194 cat >conftest.$ac_ext <<_ACEOF
13195 #line $LINENO "configure"
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 #include <math.h>
13203 main ()
13205 _hypotf(0, 0);
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 glibcxx_cv_func__hypotf_use=yes
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 glibcxx_cv_func__hypotf_use=no
13229 rm -f conftest.$ac_objext conftest.$ac_ext
13230 ac_ext=c
13231 ac_cpp='$CPP $CPPFLAGS'
13232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13241 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13243 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13245 for ac_func in _hypotf
13247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13248 echo "$as_me:$LINENO: checking for $ac_func" >&5
13249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_var+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253 if test x$gcc_no_link = xyes; then
13254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13256 { (exit 1); exit 1; }; }
13258 cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 /* confdefs.h. */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char $ac_func (); below.
13267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268 <limits.h> exists even on freestanding compilers. */
13269 #ifdef __STDC__
13270 # include <limits.h>
13271 #else
13272 # include <assert.h>
13273 #endif
13274 /* Override any gcc2 internal prototype to avoid an error. */
13275 #ifdef __cplusplus
13276 extern "C"
13278 #endif
13279 /* We use char because int might match the return type of a gcc2
13280 builtin and then its argument prototype would still apply. */
13281 char $ac_func ();
13282 /* The GNU C library defines this for functions which it implements
13283 to always fail with ENOSYS. Some functions are actually named
13284 something starting with __ and the normal name is an alias. */
13285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13286 choke me
13287 #else
13288 char (*f) () = $ac_func;
13289 #endif
13290 #ifdef __cplusplus
13292 #endif
13295 main ()
13297 return f != $ac_func;
13299 return 0;
13301 _ACEOF
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13304 (eval $ac_link) 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 eval "$as_ac_var=yes"
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 eval "$as_ac_var=no"
13321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13325 if test `eval echo '${'$as_ac_var'}'` = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13328 _ACEOF
13331 done
13338 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13339 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13340 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13341 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13347 ac_ext=cc
13348 ac_cpp='$CXXCPP $CPPFLAGS'
13349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13353 cat >conftest.$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13355 /* confdefs.h. */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 #include <math.h>
13362 main ()
13364 ldexpf(0, 0);
13366 return 0;
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 glibcxx_cv_func_ldexpf_use=yes
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 glibcxx_cv_func_ldexpf_use=no
13388 rm -f conftest.$ac_objext conftest.$ac_ext
13389 ac_ext=c
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13399 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13400 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13402 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13404 for ac_func in ldexpf
13406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13407 echo "$as_me:$LINENO: checking for $ac_func" >&5
13408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13409 if eval "test \"\${$as_ac_var+set}\" = set"; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412 if test x$gcc_no_link = xyes; then
13413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13415 { (exit 1); exit 1; }; }
13417 cat >conftest.$ac_ext <<_ACEOF
13418 #line $LINENO "configure"
13419 /* confdefs.h. */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13424 /* System header to define __stub macros and hopefully few prototypes,
13425 which can conflict with char $ac_func (); below.
13426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13427 <limits.h> exists even on freestanding compilers. */
13428 #ifdef __STDC__
13429 # include <limits.h>
13430 #else
13431 # include <assert.h>
13432 #endif
13433 /* Override any gcc2 internal prototype to avoid an error. */
13434 #ifdef __cplusplus
13435 extern "C"
13437 #endif
13438 /* We use char because int might match the return type of a gcc2
13439 builtin and then its argument prototype would still apply. */
13440 char $ac_func ();
13441 /* The GNU C library defines this for functions which it implements
13442 to always fail with ENOSYS. Some functions are actually named
13443 something starting with __ and the normal name is an alias. */
13444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13445 choke me
13446 #else
13447 char (*f) () = $ac_func;
13448 #endif
13449 #ifdef __cplusplus
13451 #endif
13454 main ()
13456 return f != $ac_func;
13458 return 0;
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 eval "$as_ac_var=yes"
13474 else
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 eval "$as_ac_var=no"
13480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13484 if test `eval echo '${'$as_ac_var'}'` = yes; then
13485 cat >>confdefs.h <<_ACEOF
13486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13487 _ACEOF
13490 done
13492 else
13494 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13495 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13496 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13497 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13503 ac_ext=cc
13504 ac_cpp='$CXXCPP $CPPFLAGS'
13505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13509 cat >conftest.$ac_ext <<_ACEOF
13510 #line $LINENO "configure"
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <math.h>
13518 main ()
13520 _ldexpf(0, 0);
13522 return 0;
13524 _ACEOF
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527 (eval $ac_compile) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 glibcxx_cv_func__ldexpf_use=yes
13538 else
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 glibcxx_cv_func__ldexpf_use=no
13544 rm -f conftest.$ac_objext conftest.$ac_ext
13545 ac_ext=c
13546 ac_cpp='$CPP $CPPFLAGS'
13547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13555 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13556 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13558 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13560 for ac_func in _ldexpf
13562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13563 echo "$as_me:$LINENO: checking for $ac_func" >&5
13564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13565 if eval "test \"\${$as_ac_var+set}\" = set"; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 if test x$gcc_no_link = xyes; then
13569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13571 { (exit 1); exit 1; }; }
13573 cat >conftest.$ac_ext <<_ACEOF
13574 #line $LINENO "configure"
13575 /* confdefs.h. */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 /* System header to define __stub macros and hopefully few prototypes,
13581 which can conflict with char $ac_func (); below.
13582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13583 <limits.h> exists even on freestanding compilers. */
13584 #ifdef __STDC__
13585 # include <limits.h>
13586 #else
13587 # include <assert.h>
13588 #endif
13589 /* Override any gcc2 internal prototype to avoid an error. */
13590 #ifdef __cplusplus
13591 extern "C"
13593 #endif
13594 /* We use char because int might match the return type of a gcc2
13595 builtin and then its argument prototype would still apply. */
13596 char $ac_func ();
13597 /* The GNU C library defines this for functions which it implements
13598 to always fail with ENOSYS. Some functions are actually named
13599 something starting with __ and the normal name is an alias. */
13600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13601 choke me
13602 #else
13603 char (*f) () = $ac_func;
13604 #endif
13605 #ifdef __cplusplus
13607 #endif
13610 main ()
13612 return f != $ac_func;
13614 return 0;
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -s conftest$ac_exeext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 eval "$as_ac_var=yes"
13630 else
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 eval "$as_ac_var=no"
13636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13640 if test `eval echo '${'$as_ac_var'}'` = yes; then
13641 cat >>confdefs.h <<_ACEOF
13642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13643 _ACEOF
13646 done
13653 echo "$as_me:$LINENO: checking for logf declaration" >&5
13654 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13655 if test x${glibcxx_cv_func_logf_use+set} != xset; then
13656 if test "${glibcxx_cv_func_logf_use+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13662 ac_ext=cc
13663 ac_cpp='$CXXCPP $CPPFLAGS'
13664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13668 cat >conftest.$ac_ext <<_ACEOF
13669 #line $LINENO "configure"
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 #include <math.h>
13676 #ifdef HAVE_IEEEFP_H
13677 #include <ieeefp.h>
13678 #endif
13681 main ()
13683 logf(0);
13685 return 0;
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690 (eval $ac_compile) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -s conftest.$ac_objext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 glibcxx_cv_func_logf_use=yes
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 glibcxx_cv_func_logf_use=no
13707 rm -f conftest.$ac_objext conftest.$ac_ext
13708 ac_ext=c
13709 ac_cpp='$CPP $CPPFLAGS'
13710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13718 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13719 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13721 if test x$glibcxx_cv_func_logf_use = x"yes"; then
13723 for ac_func in logf
13725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13726 echo "$as_me:$LINENO: checking for $ac_func" >&5
13727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13728 if eval "test \"\${$as_ac_var+set}\" = set"; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731 if test x$gcc_no_link = xyes; then
13732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13734 { (exit 1); exit 1; }; }
13736 cat >conftest.$ac_ext <<_ACEOF
13737 #line $LINENO "configure"
13738 /* confdefs.h. */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743 /* System header to define __stub macros and hopefully few prototypes,
13744 which can conflict with char $ac_func (); below.
13745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13746 <limits.h> exists even on freestanding compilers. */
13747 #ifdef __STDC__
13748 # include <limits.h>
13749 #else
13750 # include <assert.h>
13751 #endif
13752 /* Override any gcc2 internal prototype to avoid an error. */
13753 #ifdef __cplusplus
13754 extern "C"
13756 #endif
13757 /* We use char because int might match the return type of a gcc2
13758 builtin and then its argument prototype would still apply. */
13759 char $ac_func ();
13760 /* The GNU C library defines this for functions which it implements
13761 to always fail with ENOSYS. Some functions are actually named
13762 something starting with __ and the normal name is an alias. */
13763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13764 choke me
13765 #else
13766 char (*f) () = $ac_func;
13767 #endif
13768 #ifdef __cplusplus
13770 #endif
13773 main ()
13775 return f != $ac_func;
13777 return 0;
13779 _ACEOF
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13782 (eval $ac_link) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 eval "$as_ac_var=yes"
13793 else
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 eval "$as_ac_var=no"
13799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13803 if test `eval echo '${'$as_ac_var'}'` = yes; then
13804 cat >>confdefs.h <<_ACEOF
13805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13806 _ACEOF
13809 done
13811 else
13813 echo "$as_me:$LINENO: checking for _logf declaration" >&5
13814 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13815 if test x${glibcxx_cv_func__logf_use+set} != xset; then
13816 if test "${glibcxx_cv_func__logf_use+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13822 ac_ext=cc
13823 ac_cpp='$CXXCPP $CPPFLAGS'
13824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13828 cat >conftest.$ac_ext <<_ACEOF
13829 #line $LINENO "configure"
13830 /* confdefs.h. */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 #include <math.h>
13836 #ifdef HAVE_IEEEFP_H
13837 #include <ieeefp.h>
13838 #endif
13841 main ()
13843 _logf(0);
13845 return 0;
13847 _ACEOF
13848 rm -f conftest.$ac_objext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850 (eval $ac_compile) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -s conftest.$ac_objext'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860 glibcxx_cv_func__logf_use=yes
13861 else
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13865 glibcxx_cv_func__logf_use=no
13867 rm -f conftest.$ac_objext conftest.$ac_ext
13868 ac_ext=c
13869 ac_cpp='$CPP $CPPFLAGS'
13870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13878 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13879 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13881 if test x$glibcxx_cv_func__logf_use = x"yes"; then
13883 for ac_func in _logf
13885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13886 echo "$as_me:$LINENO: checking for $ac_func" >&5
13887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13888 if eval "test \"\${$as_ac_var+set}\" = set"; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 if test x$gcc_no_link = xyes; then
13892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13894 { (exit 1); exit 1; }; }
13896 cat >conftest.$ac_ext <<_ACEOF
13897 #line $LINENO "configure"
13898 /* confdefs.h. */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 /* System header to define __stub macros and hopefully few prototypes,
13904 which can conflict with char $ac_func (); below.
13905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13906 <limits.h> exists even on freestanding compilers. */
13907 #ifdef __STDC__
13908 # include <limits.h>
13909 #else
13910 # include <assert.h>
13911 #endif
13912 /* Override any gcc2 internal prototype to avoid an error. */
13913 #ifdef __cplusplus
13914 extern "C"
13916 #endif
13917 /* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13919 char $ac_func ();
13920 /* The GNU C library defines this for functions which it implements
13921 to always fail with ENOSYS. Some functions are actually named
13922 something starting with __ and the normal name is an alias. */
13923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13924 choke me
13925 #else
13926 char (*f) () = $ac_func;
13927 #endif
13928 #ifdef __cplusplus
13930 #endif
13933 main ()
13935 return f != $ac_func;
13937 return 0;
13939 _ACEOF
13940 rm -f conftest.$ac_objext conftest$ac_exeext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13942 (eval $ac_link) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -s conftest$ac_exeext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 eval "$as_ac_var=yes"
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 eval "$as_ac_var=no"
13959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13963 if test `eval echo '${'$as_ac_var'}'` = yes; then
13964 cat >>confdefs.h <<_ACEOF
13965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13966 _ACEOF
13969 done
13976 echo "$as_me:$LINENO: checking for log10f declaration" >&5
13977 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13978 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13979 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13985 ac_ext=cc
13986 ac_cpp='$CXXCPP $CPPFLAGS'
13987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13991 cat >conftest.$ac_ext <<_ACEOF
13992 #line $LINENO "configure"
13993 /* confdefs.h. */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 #include <math.h>
13999 #ifdef HAVE_IEEEFP_H
14000 #include <ieeefp.h>
14001 #endif
14004 main ()
14006 log10f(0);
14008 return 0;
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
14017 { ac_try='test -s conftest.$ac_objext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 glibcxx_cv_func_log10f_use=yes
14024 else
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 glibcxx_cv_func_log10f_use=no
14030 rm -f conftest.$ac_objext conftest.$ac_ext
14031 ac_ext=c
14032 ac_cpp='$CPP $CPPFLAGS'
14033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14041 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
14042 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
14044 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14046 for ac_func in log10f
14048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14049 echo "$as_me:$LINENO: checking for $ac_func" >&5
14050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14051 if eval "test \"\${$as_ac_var+set}\" = set"; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054 if test x$gcc_no_link = xyes; then
14055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14057 { (exit 1); exit 1; }; }
14059 cat >conftest.$ac_ext <<_ACEOF
14060 #line $LINENO "configure"
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 /* System header to define __stub macros and hopefully few prototypes,
14067 which can conflict with char $ac_func (); below.
14068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14069 <limits.h> exists even on freestanding compilers. */
14070 #ifdef __STDC__
14071 # include <limits.h>
14072 #else
14073 # include <assert.h>
14074 #endif
14075 /* Override any gcc2 internal prototype to avoid an error. */
14076 #ifdef __cplusplus
14077 extern "C"
14079 #endif
14080 /* We use char because int might match the return type of a gcc2
14081 builtin and then its argument prototype would still apply. */
14082 char $ac_func ();
14083 /* The GNU C library defines this for functions which it implements
14084 to always fail with ENOSYS. Some functions are actually named
14085 something starting with __ and the normal name is an alias. */
14086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14087 choke me
14088 #else
14089 char (*f) () = $ac_func;
14090 #endif
14091 #ifdef __cplusplus
14093 #endif
14096 main ()
14098 return f != $ac_func;
14100 return 0;
14102 _ACEOF
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14105 (eval $ac_link) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -s conftest$ac_exeext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 eval "$as_ac_var=yes"
14116 else
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 eval "$as_ac_var=no"
14122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14126 if test `eval echo '${'$as_ac_var'}'` = yes; then
14127 cat >>confdefs.h <<_ACEOF
14128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14129 _ACEOF
14132 done
14134 else
14136 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
14137 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
14138 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14139 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14145 ac_ext=cc
14146 ac_cpp='$CXXCPP $CPPFLAGS'
14147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14151 cat >conftest.$ac_ext <<_ACEOF
14152 #line $LINENO "configure"
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <math.h>
14159 #ifdef HAVE_IEEEFP_H
14160 #include <ieeefp.h>
14161 #endif
14164 main ()
14166 _log10f(0);
14168 return 0;
14170 _ACEOF
14171 rm -f conftest.$ac_objext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14173 (eval $ac_compile) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 glibcxx_cv_func__log10f_use=yes
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 glibcxx_cv_func__log10f_use=no
14190 rm -f conftest.$ac_objext conftest.$ac_ext
14191 ac_ext=c
14192 ac_cpp='$CPP $CPPFLAGS'
14193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14201 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
14202 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
14204 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14206 for ac_func in _log10f
14208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14209 echo "$as_me:$LINENO: checking for $ac_func" >&5
14210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14211 if eval "test \"\${$as_ac_var+set}\" = set"; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214 if test x$gcc_no_link = xyes; then
14215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14217 { (exit 1); exit 1; }; }
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 /* confdefs.h. */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 /* System header to define __stub macros and hopefully few prototypes,
14227 which can conflict with char $ac_func (); below.
14228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14229 <limits.h> exists even on freestanding compilers. */
14230 #ifdef __STDC__
14231 # include <limits.h>
14232 #else
14233 # include <assert.h>
14234 #endif
14235 /* Override any gcc2 internal prototype to avoid an error. */
14236 #ifdef __cplusplus
14237 extern "C"
14239 #endif
14240 /* We use char because int might match the return type of a gcc2
14241 builtin and then its argument prototype would still apply. */
14242 char $ac_func ();
14243 /* The GNU C library defines this for functions which it implements
14244 to always fail with ENOSYS. Some functions are actually named
14245 something starting with __ and the normal name is an alias. */
14246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14247 choke me
14248 #else
14249 char (*f) () = $ac_func;
14250 #endif
14251 #ifdef __cplusplus
14253 #endif
14256 main ()
14258 return f != $ac_func;
14260 return 0;
14262 _ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 eval "$as_ac_var=yes"
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 eval "$as_ac_var=no"
14282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14286 if test `eval echo '${'$as_ac_var'}'` = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14289 _ACEOF
14292 done
14299 echo "$as_me:$LINENO: checking for modff declaration" >&5
14300 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14301 if test x${glibcxx_cv_func_modff_use+set} != xset; then
14302 if test "${glibcxx_cv_func_modff_use+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14308 ac_ext=cc
14309 ac_cpp='$CXXCPP $CPPFLAGS'
14310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14314 cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14316 /* confdefs.h. */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <math.h>
14323 main ()
14325 modff(0, 0);
14327 return 0;
14329 _ACEOF
14330 rm -f conftest.$ac_objext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332 (eval $ac_compile) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 glibcxx_cv_func_modff_use=yes
14343 else
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 glibcxx_cv_func_modff_use=no
14349 rm -f conftest.$ac_objext conftest.$ac_ext
14350 ac_ext=c
14351 ac_cpp='$CPP $CPPFLAGS'
14352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14361 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14363 if test x$glibcxx_cv_func_modff_use = x"yes"; then
14365 for ac_func in modff
14367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_func" >&5
14369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_var+set}\" = set"; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373 if test x$gcc_no_link = xyes; then
14374 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14375 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14376 { (exit 1); exit 1; }; }
14378 cat >conftest.$ac_ext <<_ACEOF
14379 #line $LINENO "configure"
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 /* System header to define __stub macros and hopefully few prototypes,
14386 which can conflict with char $ac_func (); below.
14387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14388 <limits.h> exists even on freestanding compilers. */
14389 #ifdef __STDC__
14390 # include <limits.h>
14391 #else
14392 # include <assert.h>
14393 #endif
14394 /* Override any gcc2 internal prototype to avoid an error. */
14395 #ifdef __cplusplus
14396 extern "C"
14398 #endif
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14401 char $ac_func ();
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14406 choke me
14407 #else
14408 char (*f) () = $ac_func;
14409 #endif
14410 #ifdef __cplusplus
14412 #endif
14415 main ()
14417 return f != $ac_func;
14419 return 0;
14421 _ACEOF
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 eval "$as_ac_var=yes"
14435 else
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 eval "$as_ac_var=no"
14441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14445 if test `eval echo '${'$as_ac_var'}'` = yes; then
14446 cat >>confdefs.h <<_ACEOF
14447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14448 _ACEOF
14451 done
14453 else
14455 echo "$as_me:$LINENO: checking for _modff declaration" >&5
14456 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14457 if test x${glibcxx_cv_func__modff_use+set} != xset; then
14458 if test "${glibcxx_cv_func__modff_use+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14464 ac_ext=cc
14465 ac_cpp='$CXXCPP $CPPFLAGS'
14466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14470 cat >conftest.$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14472 /* confdefs.h. */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 #include <math.h>
14479 main ()
14481 _modff(0, 0);
14483 return 0;
14485 _ACEOF
14486 rm -f conftest.$ac_objext
14487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 glibcxx_cv_func__modff_use=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 glibcxx_cv_func__modff_use=no
14505 rm -f conftest.$ac_objext conftest.$ac_ext
14506 ac_ext=c
14507 ac_cpp='$CPP $CPPFLAGS'
14508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14516 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14517 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14519 if test x$glibcxx_cv_func__modff_use = x"yes"; then
14521 for ac_func in _modff
14523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14524 echo "$as_me:$LINENO: checking for $ac_func" >&5
14525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14526 if eval "test \"\${$as_ac_var+set}\" = set"; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529 if test x$gcc_no_link = xyes; then
14530 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14532 { (exit 1); exit 1; }; }
14534 cat >conftest.$ac_ext <<_ACEOF
14535 #line $LINENO "configure"
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 /* System header to define __stub macros and hopefully few prototypes,
14542 which can conflict with char $ac_func (); below.
14543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14544 <limits.h> exists even on freestanding compilers. */
14545 #ifdef __STDC__
14546 # include <limits.h>
14547 #else
14548 # include <assert.h>
14549 #endif
14550 /* Override any gcc2 internal prototype to avoid an error. */
14551 #ifdef __cplusplus
14552 extern "C"
14554 #endif
14555 /* We use char because int might match the return type of a gcc2
14556 builtin and then its argument prototype would still apply. */
14557 char $ac_func ();
14558 /* The GNU C library defines this for functions which it implements
14559 to always fail with ENOSYS. Some functions are actually named
14560 something starting with __ and the normal name is an alias. */
14561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14562 choke me
14563 #else
14564 char (*f) () = $ac_func;
14565 #endif
14566 #ifdef __cplusplus
14568 #endif
14571 main ()
14573 return f != $ac_func;
14575 return 0;
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14580 (eval $ac_link) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
14584 { ac_try='test -s conftest$ac_exeext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 eval "$as_ac_var=yes"
14591 else
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 eval "$as_ac_var=no"
14597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14601 if test `eval echo '${'$as_ac_var'}'` = yes; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14604 _ACEOF
14607 done
14614 echo "$as_me:$LINENO: checking for powf declaration" >&5
14615 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14616 if test x${glibcxx_cv_func_powf_use+set} != xset; then
14617 if test "${glibcxx_cv_func_powf_use+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14623 ac_ext=cc
14624 ac_cpp='$CXXCPP $CPPFLAGS'
14625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14629 cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14631 /* confdefs.h. */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 #include <math.h>
14638 main ()
14640 powf(0, 0);
14642 return 0;
14644 _ACEOF
14645 rm -f conftest.$ac_objext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 glibcxx_cv_func_powf_use=yes
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 glibcxx_cv_func_powf_use=no
14664 rm -f conftest.$ac_objext conftest.$ac_ext
14665 ac_ext=c
14666 ac_cpp='$CPP $CPPFLAGS'
14667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14675 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14676 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14678 if test x$glibcxx_cv_func_powf_use = x"yes"; then
14680 for ac_func in powf
14682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14683 echo "$as_me:$LINENO: checking for $ac_func" >&5
14684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14685 if eval "test \"\${$as_ac_var+set}\" = set"; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688 if test x$gcc_no_link = xyes; then
14689 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14691 { (exit 1); exit 1; }; }
14693 cat >conftest.$ac_ext <<_ACEOF
14694 #line $LINENO "configure"
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 /* System header to define __stub macros and hopefully few prototypes,
14701 which can conflict with char $ac_func (); below.
14702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14703 <limits.h> exists even on freestanding compilers. */
14704 #ifdef __STDC__
14705 # include <limits.h>
14706 #else
14707 # include <assert.h>
14708 #endif
14709 /* Override any gcc2 internal prototype to avoid an error. */
14710 #ifdef __cplusplus
14711 extern "C"
14713 #endif
14714 /* We use char because int might match the return type of a gcc2
14715 builtin and then its argument prototype would still apply. */
14716 char $ac_func ();
14717 /* The GNU C library defines this for functions which it implements
14718 to always fail with ENOSYS. Some functions are actually named
14719 something starting with __ and the normal name is an alias. */
14720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14721 choke me
14722 #else
14723 char (*f) () = $ac_func;
14724 #endif
14725 #ifdef __cplusplus
14727 #endif
14730 main ()
14732 return f != $ac_func;
14734 return 0;
14736 _ACEOF
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739 (eval $ac_link) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
14743 { ac_try='test -s conftest$ac_exeext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 eval "$as_ac_var=yes"
14750 else
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 eval "$as_ac_var=no"
14756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14760 if test `eval echo '${'$as_ac_var'}'` = yes; then
14761 cat >>confdefs.h <<_ACEOF
14762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14763 _ACEOF
14766 done
14768 else
14770 echo "$as_me:$LINENO: checking for _powf declaration" >&5
14771 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14772 if test x${glibcxx_cv_func__powf_use+set} != xset; then
14773 if test "${glibcxx_cv_func__powf_use+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14779 ac_ext=cc
14780 ac_cpp='$CXXCPP $CPPFLAGS'
14781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14785 cat >conftest.$ac_ext <<_ACEOF
14786 #line $LINENO "configure"
14787 /* confdefs.h. */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <math.h>
14794 main ()
14796 _powf(0, 0);
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803 (eval $ac_compile) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 glibcxx_cv_func__powf_use=yes
14814 else
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 glibcxx_cv_func__powf_use=no
14820 rm -f conftest.$ac_objext conftest.$ac_ext
14821 ac_ext=c
14822 ac_cpp='$CPP $CPPFLAGS'
14823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14831 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14832 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14834 if test x$glibcxx_cv_func__powf_use = x"yes"; then
14836 for ac_func in _powf
14838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14839 echo "$as_me:$LINENO: checking for $ac_func" >&5
14840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14841 if eval "test \"\${$as_ac_var+set}\" = set"; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 else
14844 if test x$gcc_no_link = xyes; then
14845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14847 { (exit 1); exit 1; }; }
14849 cat >conftest.$ac_ext <<_ACEOF
14850 #line $LINENO "configure"
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 /* System header to define __stub macros and hopefully few prototypes,
14857 which can conflict with char $ac_func (); below.
14858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14859 <limits.h> exists even on freestanding compilers. */
14860 #ifdef __STDC__
14861 # include <limits.h>
14862 #else
14863 # include <assert.h>
14864 #endif
14865 /* Override any gcc2 internal prototype to avoid an error. */
14866 #ifdef __cplusplus
14867 extern "C"
14869 #endif
14870 /* We use char because int might match the return type of a gcc2
14871 builtin and then its argument prototype would still apply. */
14872 char $ac_func ();
14873 /* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14877 choke me
14878 #else
14879 char (*f) () = $ac_func;
14880 #endif
14881 #ifdef __cplusplus
14883 #endif
14886 main ()
14888 return f != $ac_func;
14890 return 0;
14892 _ACEOF
14893 rm -f conftest.$ac_objext conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895 (eval $ac_link) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -s conftest$ac_exeext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 eval "$as_ac_var=yes"
14906 else
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 eval "$as_ac_var=no"
14912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14916 if test `eval echo '${'$as_ac_var'}'` = yes; then
14917 cat >>confdefs.h <<_ACEOF
14918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919 _ACEOF
14922 done
14929 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14930 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14931 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14932 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14938 ac_ext=cc
14939 ac_cpp='$CXXCPP $CPPFLAGS'
14940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14944 cat >conftest.$ac_ext <<_ACEOF
14945 #line $LINENO "configure"
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 #include <math.h>
14952 #ifdef HAVE_IEEEFP_H
14953 #include <ieeefp.h>
14954 #endif
14957 main ()
14959 sqrtf(0);
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14966 (eval $ac_compile) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 glibcxx_cv_func_sqrtf_use=yes
14977 else
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 glibcxx_cv_func_sqrtf_use=no
14983 rm -f conftest.$ac_objext conftest.$ac_ext
14984 ac_ext=c
14985 ac_cpp='$CPP $CPPFLAGS'
14986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14994 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14995 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14997 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
14999 for ac_func in sqrtf
15001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15002 echo "$as_me:$LINENO: checking for $ac_func" >&5
15003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15004 if eval "test \"\${$as_ac_var+set}\" = set"; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007 if test x$gcc_no_link = xyes; then
15008 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15009 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15010 { (exit 1); exit 1; }; }
15012 cat >conftest.$ac_ext <<_ACEOF
15013 #line $LINENO "configure"
15014 /* confdefs.h. */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 /* System header to define __stub macros and hopefully few prototypes,
15020 which can conflict with char $ac_func (); below.
15021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15022 <limits.h> exists even on freestanding compilers. */
15023 #ifdef __STDC__
15024 # include <limits.h>
15025 #else
15026 # include <assert.h>
15027 #endif
15028 /* Override any gcc2 internal prototype to avoid an error. */
15029 #ifdef __cplusplus
15030 extern "C"
15032 #endif
15033 /* We use char because int might match the return type of a gcc2
15034 builtin and then its argument prototype would still apply. */
15035 char $ac_func ();
15036 /* The GNU C library defines this for functions which it implements
15037 to always fail with ENOSYS. Some functions are actually named
15038 something starting with __ and the normal name is an alias. */
15039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15040 choke me
15041 #else
15042 char (*f) () = $ac_func;
15043 #endif
15044 #ifdef __cplusplus
15046 #endif
15049 main ()
15051 return f != $ac_func;
15053 return 0;
15055 _ACEOF
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15058 (eval $ac_link) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest$ac_exeext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 eval "$as_ac_var=yes"
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 eval "$as_ac_var=no"
15075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15079 if test `eval echo '${'$as_ac_var'}'` = yes; then
15080 cat >>confdefs.h <<_ACEOF
15081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15082 _ACEOF
15085 done
15087 else
15089 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
15090 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
15091 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15092 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15098 ac_ext=cc
15099 ac_cpp='$CXXCPP $CPPFLAGS'
15100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15104 cat >conftest.$ac_ext <<_ACEOF
15105 #line $LINENO "configure"
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111 #include <math.h>
15112 #ifdef HAVE_IEEEFP_H
15113 #include <ieeefp.h>
15114 #endif
15117 main ()
15119 _sqrtf(0);
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15126 (eval $ac_compile) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -s conftest.$ac_objext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 glibcxx_cv_func__sqrtf_use=yes
15137 else
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 glibcxx_cv_func__sqrtf_use=no
15143 rm -f conftest.$ac_objext conftest.$ac_ext
15144 ac_ext=c
15145 ac_cpp='$CPP $CPPFLAGS'
15146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15154 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
15155 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
15157 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15159 for ac_func in _sqrtf
15161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15162 echo "$as_me:$LINENO: checking for $ac_func" >&5
15163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15164 if eval "test \"\${$as_ac_var+set}\" = set"; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 if test x$gcc_no_link = xyes; then
15168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15170 { (exit 1); exit 1; }; }
15172 cat >conftest.$ac_ext <<_ACEOF
15173 #line $LINENO "configure"
15174 /* confdefs.h. */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179 /* System header to define __stub macros and hopefully few prototypes,
15180 which can conflict with char $ac_func (); below.
15181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15182 <limits.h> exists even on freestanding compilers. */
15183 #ifdef __STDC__
15184 # include <limits.h>
15185 #else
15186 # include <assert.h>
15187 #endif
15188 /* Override any gcc2 internal prototype to avoid an error. */
15189 #ifdef __cplusplus
15190 extern "C"
15192 #endif
15193 /* We use char because int might match the return type of a gcc2
15194 builtin and then its argument prototype would still apply. */
15195 char $ac_func ();
15196 /* The GNU C library defines this for functions which it implements
15197 to always fail with ENOSYS. Some functions are actually named
15198 something starting with __ and the normal name is an alias. */
15199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15200 choke me
15201 #else
15202 char (*f) () = $ac_func;
15203 #endif
15204 #ifdef __cplusplus
15206 #endif
15209 main ()
15211 return f != $ac_func;
15213 return 0;
15215 _ACEOF
15216 rm -f conftest.$ac_objext conftest$ac_exeext
15217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15218 (eval $ac_link) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } &&
15222 { ac_try='test -s conftest$ac_exeext'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 eval "$as_ac_var=yes"
15229 else
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 eval "$as_ac_var=no"
15235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15239 if test `eval echo '${'$as_ac_var'}'` = yes; then
15240 cat >>confdefs.h <<_ACEOF
15241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15242 _ACEOF
15245 done
15252 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
15253 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
15254 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15255 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15261 ac_ext=cc
15262 ac_cpp='$CXXCPP $CPPFLAGS'
15263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15267 cat >conftest.$ac_ext <<_ACEOF
15268 #line $LINENO "configure"
15269 /* confdefs.h. */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15274 #include <math.h>
15276 main ()
15278 sincosf(0, 0, 0);
15280 return 0;
15282 _ACEOF
15283 rm -f conftest.$ac_objext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15285 (eval $ac_compile) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -s conftest.$ac_objext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 glibcxx_cv_func_sincosf_use=yes
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 glibcxx_cv_func_sincosf_use=no
15302 rm -f conftest.$ac_objext conftest.$ac_ext
15303 ac_ext=c
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15313 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15314 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15316 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15318 for ac_func in sincosf
15320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15321 echo "$as_me:$LINENO: checking for $ac_func" >&5
15322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_var+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 if test x$gcc_no_link = xyes; then
15327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15329 { (exit 1); exit 1; }; }
15331 cat >conftest.$ac_ext <<_ACEOF
15332 #line $LINENO "configure"
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 /* System header to define __stub macros and hopefully few prototypes,
15339 which can conflict with char $ac_func (); below.
15340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15341 <limits.h> exists even on freestanding compilers. */
15342 #ifdef __STDC__
15343 # include <limits.h>
15344 #else
15345 # include <assert.h>
15346 #endif
15347 /* Override any gcc2 internal prototype to avoid an error. */
15348 #ifdef __cplusplus
15349 extern "C"
15351 #endif
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15354 char $ac_func ();
15355 /* The GNU C library defines this for functions which it implements
15356 to always fail with ENOSYS. Some functions are actually named
15357 something starting with __ and the normal name is an alias. */
15358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15359 choke me
15360 #else
15361 char (*f) () = $ac_func;
15362 #endif
15363 #ifdef __cplusplus
15365 #endif
15368 main ()
15370 return f != $ac_func;
15372 return 0;
15374 _ACEOF
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377 (eval $ac_link) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -s conftest$ac_exeext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 eval "$as_ac_var=yes"
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 eval "$as_ac_var=no"
15394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15398 if test `eval echo '${'$as_ac_var'}'` = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15401 _ACEOF
15404 done
15406 else
15408 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15409 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15410 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15411 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15417 ac_ext=cc
15418 ac_cpp='$CXXCPP $CPPFLAGS'
15419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15423 cat >conftest.$ac_ext <<_ACEOF
15424 #line $LINENO "configure"
15425 /* confdefs.h. */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 #include <math.h>
15432 main ()
15434 _sincosf(0, 0, 0);
15436 return 0;
15438 _ACEOF
15439 rm -f conftest.$ac_objext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441 (eval $ac_compile) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -s conftest.$ac_objext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 glibcxx_cv_func__sincosf_use=yes
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 glibcxx_cv_func__sincosf_use=no
15458 rm -f conftest.$ac_objext conftest.$ac_ext
15459 ac_ext=c
15460 ac_cpp='$CPP $CPPFLAGS'
15461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15469 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15470 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15472 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15474 for ac_func in _sincosf
15476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15477 echo "$as_me:$LINENO: checking for $ac_func" >&5
15478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15479 if eval "test \"\${$as_ac_var+set}\" = set"; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482 if test x$gcc_no_link = xyes; then
15483 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15485 { (exit 1); exit 1; }; }
15487 cat >conftest.$ac_ext <<_ACEOF
15488 #line $LINENO "configure"
15489 /* confdefs.h. */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 /* System header to define __stub macros and hopefully few prototypes,
15495 which can conflict with char $ac_func (); below.
15496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15497 <limits.h> exists even on freestanding compilers. */
15498 #ifdef __STDC__
15499 # include <limits.h>
15500 #else
15501 # include <assert.h>
15502 #endif
15503 /* Override any gcc2 internal prototype to avoid an error. */
15504 #ifdef __cplusplus
15505 extern "C"
15507 #endif
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15510 char $ac_func ();
15511 /* The GNU C library defines this for functions which it implements
15512 to always fail with ENOSYS. Some functions are actually named
15513 something starting with __ and the normal name is an alias. */
15514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15515 choke me
15516 #else
15517 char (*f) () = $ac_func;
15518 #endif
15519 #ifdef __cplusplus
15521 #endif
15524 main ()
15526 return f != $ac_func;
15528 return 0;
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -s conftest$ac_exeext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 eval "$as_ac_var=yes"
15544 else
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 eval "$as_ac_var=no"
15550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15554 if test `eval echo '${'$as_ac_var'}'` = yes; then
15555 cat >>confdefs.h <<_ACEOF
15556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15557 _ACEOF
15560 done
15567 echo "$as_me:$LINENO: checking for finitef declaration" >&5
15568 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15569 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15570 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15576 ac_ext=cc
15577 ac_cpp='$CXXCPP $CPPFLAGS'
15578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15582 cat >conftest.$ac_ext <<_ACEOF
15583 #line $LINENO "configure"
15584 /* confdefs.h. */
15585 _ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15589 #include <math.h>
15590 #ifdef HAVE_IEEEFP_H
15591 #include <ieeefp.h>
15592 #endif
15595 main ()
15597 finitef(0);
15599 return 0;
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 glibcxx_cv_func_finitef_use=yes
15615 else
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 glibcxx_cv_func_finitef_use=no
15621 rm -f conftest.$ac_objext conftest.$ac_ext
15622 ac_ext=c
15623 ac_cpp='$CPP $CPPFLAGS'
15624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15632 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15633 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15635 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15637 for ac_func in finitef
15639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15640 echo "$as_me:$LINENO: checking for $ac_func" >&5
15641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15642 if eval "test \"\${$as_ac_var+set}\" = set"; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 if test x$gcc_no_link = xyes; then
15646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15648 { (exit 1); exit 1; }; }
15650 cat >conftest.$ac_ext <<_ACEOF
15651 #line $LINENO "configure"
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 /* System header to define __stub macros and hopefully few prototypes,
15658 which can conflict with char $ac_func (); below.
15659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15660 <limits.h> exists even on freestanding compilers. */
15661 #ifdef __STDC__
15662 # include <limits.h>
15663 #else
15664 # include <assert.h>
15665 #endif
15666 /* Override any gcc2 internal prototype to avoid an error. */
15667 #ifdef __cplusplus
15668 extern "C"
15670 #endif
15671 /* We use char because int might match the return type of a gcc2
15672 builtin and then its argument prototype would still apply. */
15673 char $ac_func ();
15674 /* The GNU C library defines this for functions which it implements
15675 to always fail with ENOSYS. Some functions are actually named
15676 something starting with __ and the normal name is an alias. */
15677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15678 choke me
15679 #else
15680 char (*f) () = $ac_func;
15681 #endif
15682 #ifdef __cplusplus
15684 #endif
15687 main ()
15689 return f != $ac_func;
15691 return 0;
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 eval "$as_ac_var=yes"
15707 else
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 eval "$as_ac_var=no"
15713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15717 if test `eval echo '${'$as_ac_var'}'` = yes; then
15718 cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15720 _ACEOF
15723 done
15725 else
15727 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15728 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15729 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15730 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15736 ac_ext=cc
15737 ac_cpp='$CXXCPP $CPPFLAGS'
15738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15742 cat >conftest.$ac_ext <<_ACEOF
15743 #line $LINENO "configure"
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 #include <math.h>
15750 #ifdef HAVE_IEEEFP_H
15751 #include <ieeefp.h>
15752 #endif
15755 main ()
15757 _finitef(0);
15759 return 0;
15761 _ACEOF
15762 rm -f conftest.$ac_objext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764 (eval $ac_compile) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -s conftest.$ac_objext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 glibcxx_cv_func__finitef_use=yes
15775 else
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 glibcxx_cv_func__finitef_use=no
15781 rm -f conftest.$ac_objext conftest.$ac_ext
15782 ac_ext=c
15783 ac_cpp='$CPP $CPPFLAGS'
15784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15792 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15793 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15795 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15797 for ac_func in _finitef
15799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15800 echo "$as_me:$LINENO: checking for $ac_func" >&5
15801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15802 if eval "test \"\${$as_ac_var+set}\" = set"; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805 if test x$gcc_no_link = xyes; then
15806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15808 { (exit 1); exit 1; }; }
15810 cat >conftest.$ac_ext <<_ACEOF
15811 #line $LINENO "configure"
15812 /* confdefs.h. */
15813 _ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h. */
15817 /* System header to define __stub macros and hopefully few prototypes,
15818 which can conflict with char $ac_func (); below.
15819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15820 <limits.h> exists even on freestanding compilers. */
15821 #ifdef __STDC__
15822 # include <limits.h>
15823 #else
15824 # include <assert.h>
15825 #endif
15826 /* Override any gcc2 internal prototype to avoid an error. */
15827 #ifdef __cplusplus
15828 extern "C"
15830 #endif
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15833 char $ac_func ();
15834 /* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15838 choke me
15839 #else
15840 char (*f) () = $ac_func;
15841 #endif
15842 #ifdef __cplusplus
15844 #endif
15847 main ()
15849 return f != $ac_func;
15851 return 0;
15853 _ACEOF
15854 rm -f conftest.$ac_objext conftest$ac_exeext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15856 (eval $ac_link) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try='test -s conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 eval "$as_ac_var=yes"
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 eval "$as_ac_var=no"
15873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15877 if test `eval echo '${'$as_ac_var'}'` = yes; then
15878 cat >>confdefs.h <<_ACEOF
15879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15880 _ACEOF
15883 done
15890 echo "$as_me:$LINENO: checking for long double trig functions" >&5
15891 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15892 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15898 ac_ext=cc
15899 ac_cpp='$CXXCPP $CPPFLAGS'
15900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15904 cat >conftest.$ac_ext <<_ACEOF
15905 #line $LINENO "configure"
15906 /* confdefs.h. */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 #include <math.h>
15913 main ()
15915 `for x in acosl asinl atanl \
15916 cosl sinl tanl \
15917 coshl sinhl tanhl; do echo "$x (0);"; done`
15919 return 0;
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924 (eval $ac_compile) 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
15928 { ac_try='test -s conftest.$ac_objext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 glibcxx_cv_func_long_double_trig_use=yes
15935 else
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 glibcxx_cv_func_long_double_trig_use=no
15941 rm -f conftest.$ac_objext conftest.$ac_ext
15942 ac_ext=c
15943 ac_cpp='$CPP $CPPFLAGS'
15944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15950 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15951 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15952 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15962 for ac_func in acosl asinl atanl \
15963 cosl sinl tanl \
15964 coshl sinhl tanhl
15966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15967 echo "$as_me:$LINENO: checking for $ac_func" >&5
15968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15969 if eval "test \"\${$as_ac_var+set}\" = set"; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972 if test x$gcc_no_link = xyes; then
15973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15975 { (exit 1); exit 1; }; }
15977 cat >conftest.$ac_ext <<_ACEOF
15978 #line $LINENO "configure"
15979 /* confdefs.h. */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 /* System header to define __stub macros and hopefully few prototypes,
15985 which can conflict with char $ac_func (); below.
15986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15987 <limits.h> exists even on freestanding compilers. */
15988 #ifdef __STDC__
15989 # include <limits.h>
15990 #else
15991 # include <assert.h>
15992 #endif
15993 /* Override any gcc2 internal prototype to avoid an error. */
15994 #ifdef __cplusplus
15995 extern "C"
15997 #endif
15998 /* We use char because int might match the return type of a gcc2
15999 builtin and then its argument prototype would still apply. */
16000 char $ac_func ();
16001 /* The GNU C library defines this for functions which it implements
16002 to always fail with ENOSYS. Some functions are actually named
16003 something starting with __ and the normal name is an alias. */
16004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16005 choke me
16006 #else
16007 char (*f) () = $ac_func;
16008 #endif
16009 #ifdef __cplusplus
16011 #endif
16014 main ()
16016 return f != $ac_func;
16018 return 0;
16020 _ACEOF
16021 rm -f conftest.$ac_objext conftest$ac_exeext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023 (eval $ac_link) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -s conftest$ac_exeext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 eval "$as_ac_var=yes"
16034 else
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 eval "$as_ac_var=no"
16040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16044 if test `eval echo '${'$as_ac_var'}'` = yes; then
16045 cat >>confdefs.h <<_ACEOF
16046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16047 _ACEOF
16050 done
16055 echo "$as_me:$LINENO: checking for long double round functions" >&5
16056 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
16057 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16063 ac_ext=cc
16064 ac_cpp='$CXXCPP $CPPFLAGS'
16065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16069 cat >conftest.$ac_ext <<_ACEOF
16070 #line $LINENO "configure"
16071 /* confdefs.h. */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 #include <math.h>
16078 main ()
16080 `for x in ceill floorl; do echo "$x (0);"; done`
16082 return 0;
16084 _ACEOF
16085 rm -f conftest.$ac_objext
16086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16087 (eval $ac_compile) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 glibcxx_cv_func_long_double_round_use=yes
16098 else
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 glibcxx_cv_func_long_double_round_use=no
16104 rm -f conftest.$ac_objext conftest.$ac_ext
16105 ac_ext=c
16106 ac_cpp='$CPP $CPPFLAGS'
16107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16113 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
16114 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
16115 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16118 for ac_func in ceill floorl
16120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16121 echo "$as_me:$LINENO: checking for $ac_func" >&5
16122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16123 if eval "test \"\${$as_ac_var+set}\" = set"; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 else
16126 if test x$gcc_no_link = xyes; then
16127 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16129 { (exit 1); exit 1; }; }
16131 cat >conftest.$ac_ext <<_ACEOF
16132 #line $LINENO "configure"
16133 /* confdefs.h. */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 /* System header to define __stub macros and hopefully few prototypes,
16139 which can conflict with char $ac_func (); below.
16140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16141 <limits.h> exists even on freestanding compilers. */
16142 #ifdef __STDC__
16143 # include <limits.h>
16144 #else
16145 # include <assert.h>
16146 #endif
16147 /* Override any gcc2 internal prototype to avoid an error. */
16148 #ifdef __cplusplus
16149 extern "C"
16151 #endif
16152 /* We use char because int might match the return type of a gcc2
16153 builtin and then its argument prototype would still apply. */
16154 char $ac_func ();
16155 /* The GNU C library defines this for functions which it implements
16156 to always fail with ENOSYS. Some functions are actually named
16157 something starting with __ and the normal name is an alias. */
16158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16159 choke me
16160 #else
16161 char (*f) () = $ac_func;
16162 #endif
16163 #ifdef __cplusplus
16165 #endif
16168 main ()
16170 return f != $ac_func;
16172 return 0;
16174 _ACEOF
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -s conftest$ac_exeext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 eval "$as_ac_var=yes"
16188 else
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 eval "$as_ac_var=no"
16194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16198 if test `eval echo '${'$as_ac_var'}'` = yes; then
16199 cat >>confdefs.h <<_ACEOF
16200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16201 _ACEOF
16204 done
16210 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
16211 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
16212 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16213 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16219 ac_ext=cc
16220 ac_cpp='$CXXCPP $CPPFLAGS'
16221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16225 cat >conftest.$ac_ext <<_ACEOF
16226 #line $LINENO "configure"
16227 /* confdefs.h. */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 #include <math.h>
16233 #ifdef HAVE_IEEEFP_H
16234 #include <ieeefp.h>
16235 #endif
16238 main ()
16240 isnanl(0);
16242 return 0;
16244 _ACEOF
16245 rm -f conftest.$ac_objext
16246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16247 (eval $ac_compile) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 glibcxx_cv_func_isnanl_use=yes
16258 else
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 glibcxx_cv_func_isnanl_use=no
16264 rm -f conftest.$ac_objext conftest.$ac_ext
16265 ac_ext=c
16266 ac_cpp='$CPP $CPPFLAGS'
16267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16275 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
16276 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
16278 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16280 for ac_func in isnanl
16282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16283 echo "$as_me:$LINENO: checking for $ac_func" >&5
16284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16285 if eval "test \"\${$as_ac_var+set}\" = set"; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288 if test x$gcc_no_link = xyes; then
16289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16291 { (exit 1); exit 1; }; }
16293 cat >conftest.$ac_ext <<_ACEOF
16294 #line $LINENO "configure"
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 /* System header to define __stub macros and hopefully few prototypes,
16301 which can conflict with char $ac_func (); below.
16302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16303 <limits.h> exists even on freestanding compilers. */
16304 #ifdef __STDC__
16305 # include <limits.h>
16306 #else
16307 # include <assert.h>
16308 #endif
16309 /* Override any gcc2 internal prototype to avoid an error. */
16310 #ifdef __cplusplus
16311 extern "C"
16313 #endif
16314 /* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
16316 char $ac_func ();
16317 /* The GNU C library defines this for functions which it implements
16318 to always fail with ENOSYS. Some functions are actually named
16319 something starting with __ and the normal name is an alias. */
16320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16321 choke me
16322 #else
16323 char (*f) () = $ac_func;
16324 #endif
16325 #ifdef __cplusplus
16327 #endif
16330 main ()
16332 return f != $ac_func;
16334 return 0;
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -s conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 eval "$as_ac_var=yes"
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 eval "$as_ac_var=no"
16356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16360 if test `eval echo '${'$as_ac_var'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16363 _ACEOF
16366 done
16368 else
16370 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16371 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16372 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16373 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16379 ac_ext=cc
16380 ac_cpp='$CXXCPP $CPPFLAGS'
16381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16385 cat >conftest.$ac_ext <<_ACEOF
16386 #line $LINENO "configure"
16387 /* confdefs.h. */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16392 #include <math.h>
16393 #ifdef HAVE_IEEEFP_H
16394 #include <ieeefp.h>
16395 #endif
16398 main ()
16400 _isnanl(0);
16402 return 0;
16404 _ACEOF
16405 rm -f conftest.$ac_objext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16407 (eval $ac_compile) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -s conftest.$ac_objext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 glibcxx_cv_func__isnanl_use=yes
16418 else
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 glibcxx_cv_func__isnanl_use=no
16424 rm -f conftest.$ac_objext conftest.$ac_ext
16425 ac_ext=c
16426 ac_cpp='$CPP $CPPFLAGS'
16427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16435 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16436 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16438 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16440 for ac_func in _isnanl
16442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16443 echo "$as_me:$LINENO: checking for $ac_func" >&5
16444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16445 if eval "test \"\${$as_ac_var+set}\" = set"; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448 if test x$gcc_no_link = xyes; then
16449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16451 { (exit 1); exit 1; }; }
16453 cat >conftest.$ac_ext <<_ACEOF
16454 #line $LINENO "configure"
16455 /* confdefs.h. */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h. */
16460 /* System header to define __stub macros and hopefully few prototypes,
16461 which can conflict with char $ac_func (); below.
16462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463 <limits.h> exists even on freestanding compilers. */
16464 #ifdef __STDC__
16465 # include <limits.h>
16466 #else
16467 # include <assert.h>
16468 #endif
16469 /* Override any gcc2 internal prototype to avoid an error. */
16470 #ifdef __cplusplus
16471 extern "C"
16473 #endif
16474 /* We use char because int might match the return type of a gcc2
16475 builtin and then its argument prototype would still apply. */
16476 char $ac_func ();
16477 /* The GNU C library defines this for functions which it implements
16478 to always fail with ENOSYS. Some functions are actually named
16479 something starting with __ and the normal name is an alias. */
16480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16481 choke me
16482 #else
16483 char (*f) () = $ac_func;
16484 #endif
16485 #ifdef __cplusplus
16487 #endif
16490 main ()
16492 return f != $ac_func;
16494 return 0;
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499 (eval $ac_link) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); } &&
16503 { ac_try='test -s conftest$ac_exeext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 eval "$as_ac_var=yes"
16510 else
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 eval "$as_ac_var=no"
16516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523 _ACEOF
16526 done
16533 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16534 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16535 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16536 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16542 ac_ext=cc
16543 ac_cpp='$CXXCPP $CPPFLAGS'
16544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16548 cat >conftest.$ac_ext <<_ACEOF
16549 #line $LINENO "configure"
16550 /* confdefs.h. */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 #include <math.h>
16556 #ifdef HAVE_IEEEFP_H
16557 #include <ieeefp.h>
16558 #endif
16561 main ()
16563 isinfl(0);
16565 return 0;
16567 _ACEOF
16568 rm -f conftest.$ac_objext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16570 (eval $ac_compile) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 glibcxx_cv_func_isinfl_use=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 glibcxx_cv_func_isinfl_use=no
16587 rm -f conftest.$ac_objext conftest.$ac_ext
16588 ac_ext=c
16589 ac_cpp='$CPP $CPPFLAGS'
16590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16598 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16599 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16601 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16603 for ac_func in isinfl
16605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16606 echo "$as_me:$LINENO: checking for $ac_func" >&5
16607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16608 if eval "test \"\${$as_ac_var+set}\" = set"; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 if test x$gcc_no_link = xyes; then
16612 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16613 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16614 { (exit 1); exit 1; }; }
16616 cat >conftest.$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16618 /* confdefs.h. */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 /* System header to define __stub macros and hopefully few prototypes,
16624 which can conflict with char $ac_func (); below.
16625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16626 <limits.h> exists even on freestanding compilers. */
16627 #ifdef __STDC__
16628 # include <limits.h>
16629 #else
16630 # include <assert.h>
16631 #endif
16632 /* Override any gcc2 internal prototype to avoid an error. */
16633 #ifdef __cplusplus
16634 extern "C"
16636 #endif
16637 /* We use char because int might match the return type of a gcc2
16638 builtin and then its argument prototype would still apply. */
16639 char $ac_func ();
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16644 choke me
16645 #else
16646 char (*f) () = $ac_func;
16647 #endif
16648 #ifdef __cplusplus
16650 #endif
16653 main ()
16655 return f != $ac_func;
16657 return 0;
16659 _ACEOF
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662 (eval $ac_link) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 eval "$as_ac_var=yes"
16673 else
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 eval "$as_ac_var=no"
16679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16686 _ACEOF
16689 done
16691 else
16693 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16694 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16695 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16696 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16702 ac_ext=cc
16703 ac_cpp='$CXXCPP $CPPFLAGS'
16704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16710 /* confdefs.h. */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <math.h>
16716 #ifdef HAVE_IEEEFP_H
16717 #include <ieeefp.h>
16718 #endif
16721 main ()
16723 _isinfl(0);
16725 return 0;
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -s conftest.$ac_objext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 glibcxx_cv_func__isinfl_use=yes
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 glibcxx_cv_func__isinfl_use=no
16747 rm -f conftest.$ac_objext conftest.$ac_ext
16748 ac_ext=c
16749 ac_cpp='$CPP $CPPFLAGS'
16750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16758 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16759 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16761 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16763 for ac_func in _isinfl
16765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16766 echo "$as_me:$LINENO: checking for $ac_func" >&5
16767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16768 if eval "test \"\${$as_ac_var+set}\" = set"; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 if test x$gcc_no_link = xyes; then
16772 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16773 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16774 { (exit 1); exit 1; }; }
16776 cat >conftest.$ac_ext <<_ACEOF
16777 #line $LINENO "configure"
16778 /* confdefs.h. */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783 /* System header to define __stub macros and hopefully few prototypes,
16784 which can conflict with char $ac_func (); below.
16785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 <limits.h> exists even on freestanding compilers. */
16787 #ifdef __STDC__
16788 # include <limits.h>
16789 #else
16790 # include <assert.h>
16791 #endif
16792 /* Override any gcc2 internal prototype to avoid an error. */
16793 #ifdef __cplusplus
16794 extern "C"
16796 #endif
16797 /* We use char because int might match the return type of a gcc2
16798 builtin and then its argument prototype would still apply. */
16799 char $ac_func ();
16800 /* The GNU C library defines this for functions which it implements
16801 to always fail with ENOSYS. Some functions are actually named
16802 something starting with __ and the normal name is an alias. */
16803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16804 choke me
16805 #else
16806 char (*f) () = $ac_func;
16807 #endif
16808 #ifdef __cplusplus
16810 #endif
16813 main ()
16815 return f != $ac_func;
16817 return 0;
16819 _ACEOF
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16822 (eval $ac_link) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try='test -s conftest$ac_exeext'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 eval "$as_ac_var=yes"
16833 else
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 eval "$as_ac_var=no"
16839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16843 if test `eval echo '${'$as_ac_var'}'` = yes; then
16844 cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16846 _ACEOF
16849 done
16856 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16857 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16858 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16859 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16865 ac_ext=cc
16866 ac_cpp='$CXXCPP $CPPFLAGS'
16867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16871 cat >conftest.$ac_ext <<_ACEOF
16872 #line $LINENO "configure"
16873 /* confdefs.h. */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 #include <math.h>
16880 main ()
16882 copysignl(0, 0);
16884 return 0;
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16889 (eval $ac_compile) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 glibcxx_cv_func_copysignl_use=yes
16900 else
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 glibcxx_cv_func_copysignl_use=no
16906 rm -f conftest.$ac_objext conftest.$ac_ext
16907 ac_ext=c
16908 ac_cpp='$CPP $CPPFLAGS'
16909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16917 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16918 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16920 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16922 for ac_func in copysignl
16924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16925 echo "$as_me:$LINENO: checking for $ac_func" >&5
16926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16927 if eval "test \"\${$as_ac_var+set}\" = set"; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930 if test x$gcc_no_link = xyes; then
16931 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16933 { (exit 1); exit 1; }; }
16935 cat >conftest.$ac_ext <<_ACEOF
16936 #line $LINENO "configure"
16937 /* confdefs.h. */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 /* System header to define __stub macros and hopefully few prototypes,
16943 which can conflict with char $ac_func (); below.
16944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16945 <limits.h> exists even on freestanding compilers. */
16946 #ifdef __STDC__
16947 # include <limits.h>
16948 #else
16949 # include <assert.h>
16950 #endif
16951 /* Override any gcc2 internal prototype to avoid an error. */
16952 #ifdef __cplusplus
16953 extern "C"
16955 #endif
16956 /* We use char because int might match the return type of a gcc2
16957 builtin and then its argument prototype would still apply. */
16958 char $ac_func ();
16959 /* The GNU C library defines this for functions which it implements
16960 to always fail with ENOSYS. Some functions are actually named
16961 something starting with __ and the normal name is an alias. */
16962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16963 choke me
16964 #else
16965 char (*f) () = $ac_func;
16966 #endif
16967 #ifdef __cplusplus
16969 #endif
16972 main ()
16974 return f != $ac_func;
16976 return 0;
16978 _ACEOF
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16981 (eval $ac_link) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 eval "$as_ac_var=yes"
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 eval "$as_ac_var=no"
16998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17002 if test `eval echo '${'$as_ac_var'}'` = yes; then
17003 cat >>confdefs.h <<_ACEOF
17004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17005 _ACEOF
17008 done
17010 else
17012 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
17013 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
17014 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
17015 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17021 ac_ext=cc
17022 ac_cpp='$CXXCPP $CPPFLAGS'
17023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17027 cat >conftest.$ac_ext <<_ACEOF
17028 #line $LINENO "configure"
17029 /* confdefs.h. */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034 #include <math.h>
17036 main ()
17038 _copysignl(0, 0);
17040 return 0;
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17045 (eval $ac_compile) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -s conftest.$ac_objext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 glibcxx_cv_func__copysignl_use=yes
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 glibcxx_cv_func__copysignl_use=no
17062 rm -f conftest.$ac_objext conftest.$ac_ext
17063 ac_ext=c
17064 ac_cpp='$CPP $CPPFLAGS'
17065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17073 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
17074 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
17076 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
17078 for ac_func in _copysignl
17080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17081 echo "$as_me:$LINENO: checking for $ac_func" >&5
17082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17083 if eval "test \"\${$as_ac_var+set}\" = set"; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086 if test x$gcc_no_link = xyes; then
17087 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17088 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17089 { (exit 1); exit 1; }; }
17091 cat >conftest.$ac_ext <<_ACEOF
17092 #line $LINENO "configure"
17093 /* confdefs.h. */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 /* System header to define __stub macros and hopefully few prototypes,
17099 which can conflict with char $ac_func (); below.
17100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101 <limits.h> exists even on freestanding compilers. */
17102 #ifdef __STDC__
17103 # include <limits.h>
17104 #else
17105 # include <assert.h>
17106 #endif
17107 /* Override any gcc2 internal prototype to avoid an error. */
17108 #ifdef __cplusplus
17109 extern "C"
17111 #endif
17112 /* We use char because int might match the return type of a gcc2
17113 builtin and then its argument prototype would still apply. */
17114 char $ac_func ();
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17119 choke me
17120 #else
17121 char (*f) () = $ac_func;
17122 #endif
17123 #ifdef __cplusplus
17125 #endif
17128 main ()
17130 return f != $ac_func;
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 eval "$as_ac_var=yes"
17148 else
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 eval "$as_ac_var=no"
17154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17158 if test `eval echo '${'$as_ac_var'}'` = yes; then
17159 cat >>confdefs.h <<_ACEOF
17160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17161 _ACEOF
17164 done
17171 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
17172 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
17173 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
17174 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17180 ac_ext=cc
17181 ac_cpp='$CXXCPP $CPPFLAGS'
17182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17186 cat >conftest.$ac_ext <<_ACEOF
17187 #line $LINENO "configure"
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 #include <math.h>
17195 main ()
17197 atan2l(0, 0);
17199 return 0;
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17204 (eval $ac_compile) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } &&
17208 { ac_try='test -s conftest.$ac_objext'
17209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210 (eval $ac_try) 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 glibcxx_cv_func_atan2l_use=yes
17215 else
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 glibcxx_cv_func_atan2l_use=no
17221 rm -f conftest.$ac_objext conftest.$ac_ext
17222 ac_ext=c
17223 ac_cpp='$CPP $CPPFLAGS'
17224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17232 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
17233 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
17235 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17237 for ac_func in atan2l
17239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17240 echo "$as_me:$LINENO: checking for $ac_func" >&5
17241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17242 if eval "test \"\${$as_ac_var+set}\" = set"; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 else
17245 if test x$gcc_no_link = xyes; then
17246 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17247 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17248 { (exit 1); exit 1; }; }
17250 cat >conftest.$ac_ext <<_ACEOF
17251 #line $LINENO "configure"
17252 /* confdefs.h. */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 /* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char $ac_func (); below.
17259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260 <limits.h> exists even on freestanding compilers. */
17261 #ifdef __STDC__
17262 # include <limits.h>
17263 #else
17264 # include <assert.h>
17265 #endif
17266 /* Override any gcc2 internal prototype to avoid an error. */
17267 #ifdef __cplusplus
17268 extern "C"
17270 #endif
17271 /* We use char because int might match the return type of a gcc2
17272 builtin and then its argument prototype would still apply. */
17273 char $ac_func ();
17274 /* The GNU C library defines this for functions which it implements
17275 to always fail with ENOSYS. Some functions are actually named
17276 something starting with __ and the normal name is an alias. */
17277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17278 choke me
17279 #else
17280 char (*f) () = $ac_func;
17281 #endif
17282 #ifdef __cplusplus
17284 #endif
17287 main ()
17289 return f != $ac_func;
17291 return 0;
17293 _ACEOF
17294 rm -f conftest.$ac_objext conftest$ac_exeext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296 (eval $ac_link) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -s conftest$ac_exeext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306 eval "$as_ac_var=yes"
17307 else
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 eval "$as_ac_var=no"
17313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17317 if test `eval echo '${'$as_ac_var'}'` = yes; then
17318 cat >>confdefs.h <<_ACEOF
17319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17320 _ACEOF
17323 done
17325 else
17327 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
17328 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
17329 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17330 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17336 ac_ext=cc
17337 ac_cpp='$CXXCPP $CPPFLAGS'
17338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17342 cat >conftest.$ac_ext <<_ACEOF
17343 #line $LINENO "configure"
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 #include <math.h>
17351 main ()
17353 _atan2l(0, 0);
17355 return 0;
17357 _ACEOF
17358 rm -f conftest.$ac_objext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360 (eval $ac_compile) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 glibcxx_cv_func__atan2l_use=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 glibcxx_cv_func__atan2l_use=no
17377 rm -f conftest.$ac_objext conftest.$ac_ext
17378 ac_ext=c
17379 ac_cpp='$CPP $CPPFLAGS'
17380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17388 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17389 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17391 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17393 for ac_func in _atan2l
17395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396 echo "$as_me:$LINENO: checking for $ac_func" >&5
17397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17398 if eval "test \"\${$as_ac_var+set}\" = set"; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401 if test x$gcc_no_link = xyes; then
17402 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17403 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17404 { (exit 1); exit 1; }; }
17406 cat >conftest.$ac_ext <<_ACEOF
17407 #line $LINENO "configure"
17408 /* confdefs.h. */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 /* System header to define __stub macros and hopefully few prototypes,
17414 which can conflict with char $ac_func (); below.
17415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17416 <limits.h> exists even on freestanding compilers. */
17417 #ifdef __STDC__
17418 # include <limits.h>
17419 #else
17420 # include <assert.h>
17421 #endif
17422 /* Override any gcc2 internal prototype to avoid an error. */
17423 #ifdef __cplusplus
17424 extern "C"
17426 #endif
17427 /* We use char because int might match the return type of a gcc2
17428 builtin and then its argument prototype would still apply. */
17429 char $ac_func ();
17430 /* The GNU C library defines this for functions which it implements
17431 to always fail with ENOSYS. Some functions are actually named
17432 something starting with __ and the normal name is an alias. */
17433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17434 choke me
17435 #else
17436 char (*f) () = $ac_func;
17437 #endif
17438 #ifdef __cplusplus
17440 #endif
17443 main ()
17445 return f != $ac_func;
17447 return 0;
17449 _ACEOF
17450 rm -f conftest.$ac_objext conftest$ac_exeext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17452 (eval $ac_link) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -s conftest$ac_exeext'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 eval "$as_ac_var=yes"
17463 else
17464 echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17467 eval "$as_ac_var=no"
17469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17473 if test `eval echo '${'$as_ac_var'}'` = yes; then
17474 cat >>confdefs.h <<_ACEOF
17475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17476 _ACEOF
17479 done
17486 echo "$as_me:$LINENO: checking for expl declaration" >&5
17487 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17488 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17489 if test "${glibcxx_cv_func_expl_use+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17495 ac_ext=cc
17496 ac_cpp='$CXXCPP $CPPFLAGS'
17497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17501 cat >conftest.$ac_ext <<_ACEOF
17502 #line $LINENO "configure"
17503 /* confdefs.h. */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <math.h>
17509 #ifdef HAVE_IEEEFP_H
17510 #include <ieeefp.h>
17511 #endif
17514 main ()
17516 expl(0);
17518 return 0;
17520 _ACEOF
17521 rm -f conftest.$ac_objext
17522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17523 (eval $ac_compile) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -s conftest.$ac_objext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 glibcxx_cv_func_expl_use=yes
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 glibcxx_cv_func_expl_use=no
17540 rm -f conftest.$ac_objext conftest.$ac_ext
17541 ac_ext=c
17542 ac_cpp='$CPP $CPPFLAGS'
17543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17551 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17552 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17554 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17556 for ac_func in expl
17558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17559 echo "$as_me:$LINENO: checking for $ac_func" >&5
17560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17561 if eval "test \"\${$as_ac_var+set}\" = set"; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564 if test x$gcc_no_link = xyes; then
17565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17567 { (exit 1); exit 1; }; }
17569 cat >conftest.$ac_ext <<_ACEOF
17570 #line $LINENO "configure"
17571 /* confdefs.h. */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 /* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char $ac_func (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17580 #ifdef __STDC__
17581 # include <limits.h>
17582 #else
17583 # include <assert.h>
17584 #endif
17585 /* Override any gcc2 internal prototype to avoid an error. */
17586 #ifdef __cplusplus
17587 extern "C"
17589 #endif
17590 /* We use char because int might match the return type of a gcc2
17591 builtin and then its argument prototype would still apply. */
17592 char $ac_func ();
17593 /* The GNU C library defines this for functions which it implements
17594 to always fail with ENOSYS. Some functions are actually named
17595 something starting with __ and the normal name is an alias. */
17596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17597 choke me
17598 #else
17599 char (*f) () = $ac_func;
17600 #endif
17601 #ifdef __cplusplus
17603 #endif
17606 main ()
17608 return f != $ac_func;
17610 return 0;
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -s conftest$ac_exeext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 eval "$as_ac_var=yes"
17626 else
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 eval "$as_ac_var=no"
17632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17636 if test `eval echo '${'$as_ac_var'}'` = yes; then
17637 cat >>confdefs.h <<_ACEOF
17638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17639 _ACEOF
17642 done
17644 else
17646 echo "$as_me:$LINENO: checking for _expl declaration" >&5
17647 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17648 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17649 if test "${glibcxx_cv_func__expl_use+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17655 ac_ext=cc
17656 ac_cpp='$CXXCPP $CPPFLAGS'
17657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17661 cat >conftest.$ac_ext <<_ACEOF
17662 #line $LINENO "configure"
17663 /* confdefs.h. */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 #include <math.h>
17669 #ifdef HAVE_IEEEFP_H
17670 #include <ieeefp.h>
17671 #endif
17674 main ()
17676 _expl(0);
17678 return 0;
17680 _ACEOF
17681 rm -f conftest.$ac_objext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683 (eval $ac_compile) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -s conftest.$ac_objext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 glibcxx_cv_func__expl_use=yes
17694 else
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 glibcxx_cv_func__expl_use=no
17700 rm -f conftest.$ac_objext conftest.$ac_ext
17701 ac_ext=c
17702 ac_cpp='$CPP $CPPFLAGS'
17703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17712 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17714 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17716 for ac_func in _expl
17718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17719 echo "$as_me:$LINENO: checking for $ac_func" >&5
17720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17721 if eval "test \"\${$as_ac_var+set}\" = set"; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724 if test x$gcc_no_link = xyes; then
17725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17727 { (exit 1); exit 1; }; }
17729 cat >conftest.$ac_ext <<_ACEOF
17730 #line $LINENO "configure"
17731 /* confdefs.h. */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 /* System header to define __stub macros and hopefully few prototypes,
17737 which can conflict with char $ac_func (); below.
17738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17739 <limits.h> exists even on freestanding compilers. */
17740 #ifdef __STDC__
17741 # include <limits.h>
17742 #else
17743 # include <assert.h>
17744 #endif
17745 /* Override any gcc2 internal prototype to avoid an error. */
17746 #ifdef __cplusplus
17747 extern "C"
17749 #endif
17750 /* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17752 char $ac_func ();
17753 /* The GNU C library defines this for functions which it implements
17754 to always fail with ENOSYS. Some functions are actually named
17755 something starting with __ and the normal name is an alias. */
17756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17757 choke me
17758 #else
17759 char (*f) () = $ac_func;
17760 #endif
17761 #ifdef __cplusplus
17763 #endif
17766 main ()
17768 return f != $ac_func;
17770 return 0;
17772 _ACEOF
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775 (eval $ac_link) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -s conftest$ac_exeext'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 eval "$as_ac_var=yes"
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 eval "$as_ac_var=no"
17792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17796 if test `eval echo '${'$as_ac_var'}'` = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17799 _ACEOF
17802 done
17809 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17810 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17811 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17812 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17818 ac_ext=cc
17819 ac_cpp='$CXXCPP $CPPFLAGS'
17820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17824 cat >conftest.$ac_ext <<_ACEOF
17825 #line $LINENO "configure"
17826 /* confdefs.h. */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 #include <math.h>
17832 #ifdef HAVE_IEEEFP_H
17833 #include <ieeefp.h>
17834 #endif
17837 main ()
17839 fabsl(0);
17841 return 0;
17843 _ACEOF
17844 rm -f conftest.$ac_objext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17846 (eval $ac_compile) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -s conftest.$ac_objext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 glibcxx_cv_func_fabsl_use=yes
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 glibcxx_cv_func_fabsl_use=no
17863 rm -f conftest.$ac_objext conftest.$ac_ext
17864 ac_ext=c
17865 ac_cpp='$CPP $CPPFLAGS'
17866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17874 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17875 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17877 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17879 for ac_func in fabsl
17881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17882 echo "$as_me:$LINENO: checking for $ac_func" >&5
17883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17884 if eval "test \"\${$as_ac_var+set}\" = set"; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887 if test x$gcc_no_link = xyes; then
17888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17890 { (exit 1); exit 1; }; }
17892 cat >conftest.$ac_ext <<_ACEOF
17893 #line $LINENO "configure"
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 /* System header to define __stub macros and hopefully few prototypes,
17900 which can conflict with char $ac_func (); below.
17901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17902 <limits.h> exists even on freestanding compilers. */
17903 #ifdef __STDC__
17904 # include <limits.h>
17905 #else
17906 # include <assert.h>
17907 #endif
17908 /* Override any gcc2 internal prototype to avoid an error. */
17909 #ifdef __cplusplus
17910 extern "C"
17912 #endif
17913 /* We use char because int might match the return type of a gcc2
17914 builtin and then its argument prototype would still apply. */
17915 char $ac_func ();
17916 /* The GNU C library defines this for functions which it implements
17917 to always fail with ENOSYS. Some functions are actually named
17918 something starting with __ and the normal name is an alias. */
17919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17920 choke me
17921 #else
17922 char (*f) () = $ac_func;
17923 #endif
17924 #ifdef __cplusplus
17926 #endif
17929 main ()
17931 return f != $ac_func;
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 eval "$as_ac_var=yes"
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 eval "$as_ac_var=no"
17955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17959 if test `eval echo '${'$as_ac_var'}'` = yes; then
17960 cat >>confdefs.h <<_ACEOF
17961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17962 _ACEOF
17965 done
17967 else
17969 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17970 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17971 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17972 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17974 else
17978 ac_ext=cc
17979 ac_cpp='$CXXCPP $CPPFLAGS'
17980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17984 cat >conftest.$ac_ext <<_ACEOF
17985 #line $LINENO "configure"
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 #include <math.h>
17992 #ifdef HAVE_IEEEFP_H
17993 #include <ieeefp.h>
17994 #endif
17997 main ()
17999 _fabsl(0);
18001 return 0;
18003 _ACEOF
18004 rm -f conftest.$ac_objext
18005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18006 (eval $ac_compile) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -s conftest.$ac_objext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 glibcxx_cv_func__fabsl_use=yes
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 glibcxx_cv_func__fabsl_use=no
18023 rm -f conftest.$ac_objext conftest.$ac_ext
18024 ac_ext=c
18025 ac_cpp='$CPP $CPPFLAGS'
18026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18034 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
18035 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
18037 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
18039 for ac_func in _fabsl
18041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18042 echo "$as_me:$LINENO: checking for $ac_func" >&5
18043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18044 if eval "test \"\${$as_ac_var+set}\" = set"; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047 if test x$gcc_no_link = xyes; then
18048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18050 { (exit 1); exit 1; }; }
18052 cat >conftest.$ac_ext <<_ACEOF
18053 #line $LINENO "configure"
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 /* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func (); below.
18061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062 <limits.h> exists even on freestanding compilers. */
18063 #ifdef __STDC__
18064 # include <limits.h>
18065 #else
18066 # include <assert.h>
18067 #endif
18068 /* Override any gcc2 internal prototype to avoid an error. */
18069 #ifdef __cplusplus
18070 extern "C"
18072 #endif
18073 /* We use char because int might match the return type of a gcc2
18074 builtin and then its argument prototype would still apply. */
18075 char $ac_func ();
18076 /* The GNU C library defines this for functions which it implements
18077 to always fail with ENOSYS. Some functions are actually named
18078 something starting with __ and the normal name is an alias. */
18079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18080 choke me
18081 #else
18082 char (*f) () = $ac_func;
18083 #endif
18084 #ifdef __cplusplus
18086 #endif
18089 main ()
18091 return f != $ac_func;
18093 return 0;
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -s conftest$ac_exeext'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 eval "$as_ac_var=yes"
18109 else
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 eval "$as_ac_var=no"
18115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18119 if test `eval echo '${'$as_ac_var'}'` = yes; then
18120 cat >>confdefs.h <<_ACEOF
18121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18122 _ACEOF
18125 done
18132 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
18133 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
18134 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
18135 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18141 ac_ext=cc
18142 ac_cpp='$CXXCPP $CPPFLAGS'
18143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18147 cat >conftest.$ac_ext <<_ACEOF
18148 #line $LINENO "configure"
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 #include <math.h>
18156 main ()
18158 fmodl(0, 0);
18160 return 0;
18162 _ACEOF
18163 rm -f conftest.$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
18169 { ac_try='test -s conftest.$ac_objext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 glibcxx_cv_func_fmodl_use=yes
18176 else
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 glibcxx_cv_func_fmodl_use=no
18182 rm -f conftest.$ac_objext conftest.$ac_ext
18183 ac_ext=c
18184 ac_cpp='$CPP $CPPFLAGS'
18185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18193 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
18194 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
18196 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
18198 for ac_func in fmodl
18200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18201 echo "$as_me:$LINENO: checking for $ac_func" >&5
18202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18203 if eval "test \"\${$as_ac_var+set}\" = set"; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206 if test x$gcc_no_link = xyes; then
18207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18209 { (exit 1); exit 1; }; }
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18213 /* confdefs.h. */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18218 /* System header to define __stub macros and hopefully few prototypes,
18219 which can conflict with char $ac_func (); below.
18220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18221 <limits.h> exists even on freestanding compilers. */
18222 #ifdef __STDC__
18223 # include <limits.h>
18224 #else
18225 # include <assert.h>
18226 #endif
18227 /* Override any gcc2 internal prototype to avoid an error. */
18228 #ifdef __cplusplus
18229 extern "C"
18231 #endif
18232 /* We use char because int might match the return type of a gcc2
18233 builtin and then its argument prototype would still apply. */
18234 char $ac_func ();
18235 /* The GNU C library defines this for functions which it implements
18236 to always fail with ENOSYS. Some functions are actually named
18237 something starting with __ and the normal name is an alias. */
18238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18239 choke me
18240 #else
18241 char (*f) () = $ac_func;
18242 #endif
18243 #ifdef __cplusplus
18245 #endif
18248 main ()
18250 return f != $ac_func;
18252 return 0;
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257 (eval $ac_link) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -s conftest$ac_exeext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 eval "$as_ac_var=yes"
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 eval "$as_ac_var=no"
18274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18278 if test `eval echo '${'$as_ac_var'}'` = yes; then
18279 cat >>confdefs.h <<_ACEOF
18280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18281 _ACEOF
18284 done
18286 else
18288 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
18289 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
18290 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
18291 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 else
18297 ac_ext=cc
18298 ac_cpp='$CXXCPP $CPPFLAGS'
18299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18303 cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <math.h>
18312 main ()
18314 _fmodl(0, 0);
18316 return 0;
18318 _ACEOF
18319 rm -f conftest.$ac_objext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18321 (eval $ac_compile) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -s conftest.$ac_objext'
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; }; then
18331 glibcxx_cv_func__fmodl_use=yes
18332 else
18333 echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18336 glibcxx_cv_func__fmodl_use=no
18338 rm -f conftest.$ac_objext conftest.$ac_ext
18339 ac_ext=c
18340 ac_cpp='$CPP $CPPFLAGS'
18341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
18350 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
18352 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
18354 for ac_func in _fmodl
18356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18357 echo "$as_me:$LINENO: checking for $ac_func" >&5
18358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18359 if eval "test \"\${$as_ac_var+set}\" = set"; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362 if test x$gcc_no_link = xyes; then
18363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18365 { (exit 1); exit 1; }; }
18367 cat >conftest.$ac_ext <<_ACEOF
18368 #line $LINENO "configure"
18369 /* confdefs.h. */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18374 /* System header to define __stub macros and hopefully few prototypes,
18375 which can conflict with char $ac_func (); below.
18376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18377 <limits.h> exists even on freestanding compilers. */
18378 #ifdef __STDC__
18379 # include <limits.h>
18380 #else
18381 # include <assert.h>
18382 #endif
18383 /* Override any gcc2 internal prototype to avoid an error. */
18384 #ifdef __cplusplus
18385 extern "C"
18387 #endif
18388 /* We use char because int might match the return type of a gcc2
18389 builtin and then its argument prototype would still apply. */
18390 char $ac_func ();
18391 /* The GNU C library defines this for functions which it implements
18392 to always fail with ENOSYS. Some functions are actually named
18393 something starting with __ and the normal name is an alias. */
18394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18395 choke me
18396 #else
18397 char (*f) () = $ac_func;
18398 #endif
18399 #ifdef __cplusplus
18401 #endif
18404 main ()
18406 return f != $ac_func;
18408 return 0;
18410 _ACEOF
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413 (eval $ac_link) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -s conftest$ac_exeext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18423 eval "$as_ac_var=yes"
18424 else
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18428 eval "$as_ac_var=no"
18430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18434 if test `eval echo '${'$as_ac_var'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18437 _ACEOF
18440 done
18447 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18448 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18449 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18450 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18456 ac_ext=cc
18457 ac_cpp='$CXXCPP $CPPFLAGS'
18458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462 cat >conftest.$ac_ext <<_ACEOF
18463 #line $LINENO "configure"
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 #include <math.h>
18471 main ()
18473 frexpl(0, 0);
18475 return 0;
18477 _ACEOF
18478 rm -f conftest.$ac_objext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18480 (eval $ac_compile) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -s conftest.$ac_objext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 glibcxx_cv_func_frexpl_use=yes
18491 else
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18495 glibcxx_cv_func_frexpl_use=no
18497 rm -f conftest.$ac_objext conftest.$ac_ext
18498 ac_ext=c
18499 ac_cpp='$CPP $CPPFLAGS'
18500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18508 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18509 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18511 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18513 for ac_func in frexpl
18515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18516 echo "$as_me:$LINENO: checking for $ac_func" >&5
18517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18518 if eval "test \"\${$as_ac_var+set}\" = set"; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521 if test x$gcc_no_link = xyes; then
18522 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18524 { (exit 1); exit 1; }; }
18526 cat >conftest.$ac_ext <<_ACEOF
18527 #line $LINENO "configure"
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 /* System header to define __stub macros and hopefully few prototypes,
18534 which can conflict with char $ac_func (); below.
18535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536 <limits.h> exists even on freestanding compilers. */
18537 #ifdef __STDC__
18538 # include <limits.h>
18539 #else
18540 # include <assert.h>
18541 #endif
18542 /* Override any gcc2 internal prototype to avoid an error. */
18543 #ifdef __cplusplus
18544 extern "C"
18546 #endif
18547 /* We use char because int might match the return type of a gcc2
18548 builtin and then its argument prototype would still apply. */
18549 char $ac_func ();
18550 /* The GNU C library defines this for functions which it implements
18551 to always fail with ENOSYS. Some functions are actually named
18552 something starting with __ and the normal name is an alias. */
18553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18554 choke me
18555 #else
18556 char (*f) () = $ac_func;
18557 #endif
18558 #ifdef __cplusplus
18560 #endif
18563 main ()
18565 return f != $ac_func;
18567 return 0;
18569 _ACEOF
18570 rm -f conftest.$ac_objext conftest$ac_exeext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18572 (eval $ac_link) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -s conftest$ac_exeext'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 eval "$as_ac_var=yes"
18583 else
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 eval "$as_ac_var=no"
18589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18593 if test `eval echo '${'$as_ac_var'}'` = yes; then
18594 cat >>confdefs.h <<_ACEOF
18595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18596 _ACEOF
18599 done
18601 else
18603 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18604 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18605 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18606 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18612 ac_ext=cc
18613 ac_cpp='$CXXCPP $CPPFLAGS'
18614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18618 cat >conftest.$ac_ext <<_ACEOF
18619 #line $LINENO "configure"
18620 /* confdefs.h. */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 #include <math.h>
18627 main ()
18629 _frexpl(0, 0);
18631 return 0;
18633 _ACEOF
18634 rm -f conftest.$ac_objext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18636 (eval $ac_compile) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } &&
18640 { ac_try='test -s conftest.$ac_objext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 glibcxx_cv_func__frexpl_use=yes
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 glibcxx_cv_func__frexpl_use=no
18653 rm -f conftest.$ac_objext conftest.$ac_ext
18654 ac_ext=c
18655 ac_cpp='$CPP $CPPFLAGS'
18656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18664 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18665 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18667 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18669 for ac_func in _frexpl
18671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18672 echo "$as_me:$LINENO: checking for $ac_func" >&5
18673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18674 if eval "test \"\${$as_ac_var+set}\" = set"; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677 if test x$gcc_no_link = xyes; then
18678 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18680 { (exit 1); exit 1; }; }
18682 cat >conftest.$ac_ext <<_ACEOF
18683 #line $LINENO "configure"
18684 /* confdefs.h. */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 /* System header to define __stub macros and hopefully few prototypes,
18690 which can conflict with char $ac_func (); below.
18691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692 <limits.h> exists even on freestanding compilers. */
18693 #ifdef __STDC__
18694 # include <limits.h>
18695 #else
18696 # include <assert.h>
18697 #endif
18698 /* Override any gcc2 internal prototype to avoid an error. */
18699 #ifdef __cplusplus
18700 extern "C"
18702 #endif
18703 /* We use char because int might match the return type of a gcc2
18704 builtin and then its argument prototype would still apply. */
18705 char $ac_func ();
18706 /* The GNU C library defines this for functions which it implements
18707 to always fail with ENOSYS. Some functions are actually named
18708 something starting with __ and the normal name is an alias. */
18709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18710 choke me
18711 #else
18712 char (*f) () = $ac_func;
18713 #endif
18714 #ifdef __cplusplus
18716 #endif
18719 main ()
18721 return f != $ac_func;
18723 return 0;
18725 _ACEOF
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728 (eval $ac_link) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -s conftest$ac_exeext'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 eval "$as_ac_var=yes"
18739 else
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 eval "$as_ac_var=no"
18745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18749 if test `eval echo '${'$as_ac_var'}'` = yes; then
18750 cat >>confdefs.h <<_ACEOF
18751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18752 _ACEOF
18755 done
18762 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18763 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18764 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18765 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18771 ac_ext=cc
18772 ac_cpp='$CXXCPP $CPPFLAGS'
18773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18777 cat >conftest.$ac_ext <<_ACEOF
18778 #line $LINENO "configure"
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 #include <math.h>
18786 main ()
18788 hypotl(0, 0);
18790 return 0;
18792 _ACEOF
18793 rm -f conftest.$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try='test -s conftest.$ac_objext'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 glibcxx_cv_func_hypotl_use=yes
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 glibcxx_cv_func_hypotl_use=no
18812 rm -f conftest.$ac_objext conftest.$ac_ext
18813 ac_ext=c
18814 ac_cpp='$CPP $CPPFLAGS'
18815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18823 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18824 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18826 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18828 for ac_func in hypotl
18830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18831 echo "$as_me:$LINENO: checking for $ac_func" >&5
18832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18833 if eval "test \"\${$as_ac_var+set}\" = set"; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18835 else
18836 if test x$gcc_no_link = xyes; then
18837 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18839 { (exit 1); exit 1; }; }
18841 cat >conftest.$ac_ext <<_ACEOF
18842 #line $LINENO "configure"
18843 /* confdefs.h. */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18848 /* System header to define __stub macros and hopefully few prototypes,
18849 which can conflict with char $ac_func (); below.
18850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851 <limits.h> exists even on freestanding compilers. */
18852 #ifdef __STDC__
18853 # include <limits.h>
18854 #else
18855 # include <assert.h>
18856 #endif
18857 /* Override any gcc2 internal prototype to avoid an error. */
18858 #ifdef __cplusplus
18859 extern "C"
18861 #endif
18862 /* We use char because int might match the return type of a gcc2
18863 builtin and then its argument prototype would still apply. */
18864 char $ac_func ();
18865 /* The GNU C library defines this for functions which it implements
18866 to always fail with ENOSYS. Some functions are actually named
18867 something starting with __ and the normal name is an alias. */
18868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18869 choke me
18870 #else
18871 char (*f) () = $ac_func;
18872 #endif
18873 #ifdef __cplusplus
18875 #endif
18878 main ()
18880 return f != $ac_func;
18882 return 0;
18884 _ACEOF
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18887 (eval $ac_link) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -s conftest$ac_exeext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 eval "$as_ac_var=yes"
18898 else
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 eval "$as_ac_var=no"
18904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18908 if test `eval echo '${'$as_ac_var'}'` = yes; then
18909 cat >>confdefs.h <<_ACEOF
18910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18911 _ACEOF
18914 done
18916 else
18918 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18919 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18920 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18921 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18927 ac_ext=cc
18928 ac_cpp='$CXXCPP $CPPFLAGS'
18929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18933 cat >conftest.$ac_ext <<_ACEOF
18934 #line $LINENO "configure"
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 #include <math.h>
18942 main ()
18944 _hypotl(0, 0);
18946 return 0;
18948 _ACEOF
18949 rm -f conftest.$ac_objext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -s conftest.$ac_objext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 glibcxx_cv_func__hypotl_use=yes
18962 else
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 glibcxx_cv_func__hypotl_use=no
18968 rm -f conftest.$ac_objext conftest.$ac_ext
18969 ac_ext=c
18970 ac_cpp='$CPP $CPPFLAGS'
18971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18979 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18980 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18982 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18984 for ac_func in _hypotl
18986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18987 echo "$as_me:$LINENO: checking for $ac_func" >&5
18988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18989 if eval "test \"\${$as_ac_var+set}\" = set"; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992 if test x$gcc_no_link = xyes; then
18993 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18994 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18995 { (exit 1); exit 1; }; }
18997 cat >conftest.$ac_ext <<_ACEOF
18998 #line $LINENO "configure"
18999 /* confdefs.h. */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 /* System header to define __stub macros and hopefully few prototypes,
19005 which can conflict with char $ac_func (); below.
19006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19007 <limits.h> exists even on freestanding compilers. */
19008 #ifdef __STDC__
19009 # include <limits.h>
19010 #else
19011 # include <assert.h>
19012 #endif
19013 /* Override any gcc2 internal prototype to avoid an error. */
19014 #ifdef __cplusplus
19015 extern "C"
19017 #endif
19018 /* We use char because int might match the return type of a gcc2
19019 builtin and then its argument prototype would still apply. */
19020 char $ac_func ();
19021 /* The GNU C library defines this for functions which it implements
19022 to always fail with ENOSYS. Some functions are actually named
19023 something starting with __ and the normal name is an alias. */
19024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19025 choke me
19026 #else
19027 char (*f) () = $ac_func;
19028 #endif
19029 #ifdef __cplusplus
19031 #endif
19034 main ()
19036 return f != $ac_func;
19038 return 0;
19040 _ACEOF
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19043 (eval $ac_link) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 eval "$as_ac_var=yes"
19054 else
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 eval "$as_ac_var=no"
19060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19064 if test `eval echo '${'$as_ac_var'}'` = yes; then
19065 cat >>confdefs.h <<_ACEOF
19066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19067 _ACEOF
19070 done
19077 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
19078 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
19079 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
19080 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19086 ac_ext=cc
19087 ac_cpp='$CXXCPP $CPPFLAGS'
19088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19092 cat >conftest.$ac_ext <<_ACEOF
19093 #line $LINENO "configure"
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <math.h>
19101 main ()
19103 ldexpl(0, 0);
19105 return 0;
19107 _ACEOF
19108 rm -f conftest.$ac_objext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 glibcxx_cv_func_ldexpl_use=yes
19121 else
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 glibcxx_cv_func_ldexpl_use=no
19127 rm -f conftest.$ac_objext conftest.$ac_ext
19128 ac_ext=c
19129 ac_cpp='$CPP $CPPFLAGS'
19130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19138 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
19139 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
19141 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
19143 for ac_func in ldexpl
19145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19146 echo "$as_me:$LINENO: checking for $ac_func" >&5
19147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19148 if eval "test \"\${$as_ac_var+set}\" = set"; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 if test x$gcc_no_link = xyes; then
19152 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19154 { (exit 1); exit 1; }; }
19156 cat >conftest.$ac_ext <<_ACEOF
19157 #line $LINENO "configure"
19158 /* confdefs.h. */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19163 /* System header to define __stub macros and hopefully few prototypes,
19164 which can conflict with char $ac_func (); below.
19165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19166 <limits.h> exists even on freestanding compilers. */
19167 #ifdef __STDC__
19168 # include <limits.h>
19169 #else
19170 # include <assert.h>
19171 #endif
19172 /* Override any gcc2 internal prototype to avoid an error. */
19173 #ifdef __cplusplus
19174 extern "C"
19176 #endif
19177 /* We use char because int might match the return type of a gcc2
19178 builtin and then its argument prototype would still apply. */
19179 char $ac_func ();
19180 /* The GNU C library defines this for functions which it implements
19181 to always fail with ENOSYS. Some functions are actually named
19182 something starting with __ and the normal name is an alias. */
19183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19184 choke me
19185 #else
19186 char (*f) () = $ac_func;
19187 #endif
19188 #ifdef __cplusplus
19190 #endif
19193 main ()
19195 return f != $ac_func;
19197 return 0;
19199 _ACEOF
19200 rm -f conftest.$ac_objext conftest$ac_exeext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19202 (eval $ac_link) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
19206 { ac_try='test -s conftest$ac_exeext'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 eval "$as_ac_var=yes"
19213 else
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 eval "$as_ac_var=no"
19219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19223 if test `eval echo '${'$as_ac_var'}'` = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19226 _ACEOF
19229 done
19231 else
19233 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
19234 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
19235 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
19236 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19242 ac_ext=cc
19243 ac_cpp='$CXXCPP $CPPFLAGS'
19244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19248 cat >conftest.$ac_ext <<_ACEOF
19249 #line $LINENO "configure"
19250 /* confdefs.h. */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 #include <math.h>
19257 main ()
19259 _ldexpl(0, 0);
19261 return 0;
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19266 (eval $ac_compile) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 glibcxx_cv_func__ldexpl_use=yes
19277 else
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 glibcxx_cv_func__ldexpl_use=no
19283 rm -f conftest.$ac_objext conftest.$ac_ext
19284 ac_ext=c
19285 ac_cpp='$CPP $CPPFLAGS'
19286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19294 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
19295 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
19297 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
19299 for ac_func in _ldexpl
19301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19302 echo "$as_me:$LINENO: checking for $ac_func" >&5
19303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19304 if eval "test \"\${$as_ac_var+set}\" = set"; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307 if test x$gcc_no_link = xyes; then
19308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19310 { (exit 1); exit 1; }; }
19312 cat >conftest.$ac_ext <<_ACEOF
19313 #line $LINENO "configure"
19314 /* confdefs.h. */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19319 /* System header to define __stub macros and hopefully few prototypes,
19320 which can conflict with char $ac_func (); below.
19321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19322 <limits.h> exists even on freestanding compilers. */
19323 #ifdef __STDC__
19324 # include <limits.h>
19325 #else
19326 # include <assert.h>
19327 #endif
19328 /* Override any gcc2 internal prototype to avoid an error. */
19329 #ifdef __cplusplus
19330 extern "C"
19332 #endif
19333 /* We use char because int might match the return type of a gcc2
19334 builtin and then its argument prototype would still apply. */
19335 char $ac_func ();
19336 /* The GNU C library defines this for functions which it implements
19337 to always fail with ENOSYS. Some functions are actually named
19338 something starting with __ and the normal name is an alias. */
19339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19340 choke me
19341 #else
19342 char (*f) () = $ac_func;
19343 #endif
19344 #ifdef __cplusplus
19346 #endif
19349 main ()
19351 return f != $ac_func;
19353 return 0;
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 eval "$as_ac_var=yes"
19369 else
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 eval "$as_ac_var=no"
19375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19379 if test `eval echo '${'$as_ac_var'}'` = yes; then
19380 cat >>confdefs.h <<_ACEOF
19381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19382 _ACEOF
19385 done
19392 echo "$as_me:$LINENO: checking for logl declaration" >&5
19393 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
19394 if test x${glibcxx_cv_func_logl_use+set} != xset; then
19395 if test "${glibcxx_cv_func_logl_use+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19401 ac_ext=cc
19402 ac_cpp='$CXXCPP $CPPFLAGS'
19403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19407 cat >conftest.$ac_ext <<_ACEOF
19408 #line $LINENO "configure"
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <math.h>
19415 #ifdef HAVE_IEEEFP_H
19416 #include <ieeefp.h>
19417 #endif
19420 main ()
19422 logl(0);
19424 return 0;
19426 _ACEOF
19427 rm -f conftest.$ac_objext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -s conftest.$ac_objext'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 glibcxx_cv_func_logl_use=yes
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 glibcxx_cv_func_logl_use=no
19446 rm -f conftest.$ac_objext conftest.$ac_ext
19447 ac_ext=c
19448 ac_cpp='$CPP $CPPFLAGS'
19449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19458 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19460 if test x$glibcxx_cv_func_logl_use = x"yes"; then
19462 for ac_func in logl
19464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19465 echo "$as_me:$LINENO: checking for $ac_func" >&5
19466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19467 if eval "test \"\${$as_ac_var+set}\" = set"; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470 if test x$gcc_no_link = xyes; then
19471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19473 { (exit 1); exit 1; }; }
19475 cat >conftest.$ac_ext <<_ACEOF
19476 #line $LINENO "configure"
19477 /* confdefs.h. */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 /* System header to define __stub macros and hopefully few prototypes,
19483 which can conflict with char $ac_func (); below.
19484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19485 <limits.h> exists even on freestanding compilers. */
19486 #ifdef __STDC__
19487 # include <limits.h>
19488 #else
19489 # include <assert.h>
19490 #endif
19491 /* Override any gcc2 internal prototype to avoid an error. */
19492 #ifdef __cplusplus
19493 extern "C"
19495 #endif
19496 /* We use char because int might match the return type of a gcc2
19497 builtin and then its argument prototype would still apply. */
19498 char $ac_func ();
19499 /* The GNU C library defines this for functions which it implements
19500 to always fail with ENOSYS. Some functions are actually named
19501 something starting with __ and the normal name is an alias. */
19502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19503 choke me
19504 #else
19505 char (*f) () = $ac_func;
19506 #endif
19507 #ifdef __cplusplus
19509 #endif
19512 main ()
19514 return f != $ac_func;
19516 return 0;
19518 _ACEOF
19519 rm -f conftest.$ac_objext conftest$ac_exeext
19520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19521 (eval $ac_link) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -s conftest$ac_exeext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 eval "$as_ac_var=yes"
19532 else
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 eval "$as_ac_var=no"
19538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19542 if test `eval echo '${'$as_ac_var'}'` = yes; then
19543 cat >>confdefs.h <<_ACEOF
19544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19545 _ACEOF
19548 done
19550 else
19552 echo "$as_me:$LINENO: checking for _logl declaration" >&5
19553 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19554 if test x${glibcxx_cv_func__logl_use+set} != xset; then
19555 if test "${glibcxx_cv_func__logl_use+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 else
19561 ac_ext=cc
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19567 cat >conftest.$ac_ext <<_ACEOF
19568 #line $LINENO "configure"
19569 /* confdefs.h. */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 #include <math.h>
19575 #ifdef HAVE_IEEEFP_H
19576 #include <ieeefp.h>
19577 #endif
19580 main ()
19582 _logl(0);
19584 return 0;
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -s conftest.$ac_objext'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 glibcxx_cv_func__logl_use=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 glibcxx_cv_func__logl_use=no
19606 rm -f conftest.$ac_objext conftest.$ac_ext
19607 ac_ext=c
19608 ac_cpp='$CPP $CPPFLAGS'
19609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19617 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19618 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19620 if test x$glibcxx_cv_func__logl_use = x"yes"; then
19622 for ac_func in _logl
19624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19625 echo "$as_me:$LINENO: checking for $ac_func" >&5
19626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19627 if eval "test \"\${$as_ac_var+set}\" = set"; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 else
19630 if test x$gcc_no_link = xyes; then
19631 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19632 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19633 { (exit 1); exit 1; }; }
19635 cat >conftest.$ac_ext <<_ACEOF
19636 #line $LINENO "configure"
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 /* System header to define __stub macros and hopefully few prototypes,
19643 which can conflict with char $ac_func (); below.
19644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19645 <limits.h> exists even on freestanding compilers. */
19646 #ifdef __STDC__
19647 # include <limits.h>
19648 #else
19649 # include <assert.h>
19650 #endif
19651 /* Override any gcc2 internal prototype to avoid an error. */
19652 #ifdef __cplusplus
19653 extern "C"
19655 #endif
19656 /* We use char because int might match the return type of a gcc2
19657 builtin and then its argument prototype would still apply. */
19658 char $ac_func ();
19659 /* The GNU C library defines this for functions which it implements
19660 to always fail with ENOSYS. Some functions are actually named
19661 something starting with __ and the normal name is an alias. */
19662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19663 choke me
19664 #else
19665 char (*f) () = $ac_func;
19666 #endif
19667 #ifdef __cplusplus
19669 #endif
19672 main ()
19674 return f != $ac_func;
19676 return 0;
19678 _ACEOF
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681 (eval $ac_link) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -s conftest$ac_exeext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 eval "$as_ac_var=yes"
19692 else
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 eval "$as_ac_var=no"
19698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19702 if test `eval echo '${'$as_ac_var'}'` = yes; then
19703 cat >>confdefs.h <<_ACEOF
19704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19705 _ACEOF
19708 done
19715 echo "$as_me:$LINENO: checking for log10l declaration" >&5
19716 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19717 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19718 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19724 ac_ext=cc
19725 ac_cpp='$CXXCPP $CPPFLAGS'
19726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19730 cat >conftest.$ac_ext <<_ACEOF
19731 #line $LINENO "configure"
19732 /* confdefs.h. */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 #include <math.h>
19738 #ifdef HAVE_IEEEFP_H
19739 #include <ieeefp.h>
19740 #endif
19743 main ()
19745 log10l(0);
19747 return 0;
19749 _ACEOF
19750 rm -f conftest.$ac_objext
19751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19752 (eval $ac_compile) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } &&
19756 { ac_try='test -s conftest.$ac_objext'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; }; then
19762 glibcxx_cv_func_log10l_use=yes
19763 else
19764 echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19767 glibcxx_cv_func_log10l_use=no
19769 rm -f conftest.$ac_objext conftest.$ac_ext
19770 ac_ext=c
19771 ac_cpp='$CPP $CPPFLAGS'
19772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19780 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19781 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19783 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19785 for ac_func in log10l
19787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19788 echo "$as_me:$LINENO: checking for $ac_func" >&5
19789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19790 if eval "test \"\${$as_ac_var+set}\" = set"; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19792 else
19793 if test x$gcc_no_link = xyes; then
19794 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19795 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19796 { (exit 1); exit 1; }; }
19798 cat >conftest.$ac_ext <<_ACEOF
19799 #line $LINENO "configure"
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 /* System header to define __stub macros and hopefully few prototypes,
19806 which can conflict with char $ac_func (); below.
19807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19808 <limits.h> exists even on freestanding compilers. */
19809 #ifdef __STDC__
19810 # include <limits.h>
19811 #else
19812 # include <assert.h>
19813 #endif
19814 /* Override any gcc2 internal prototype to avoid an error. */
19815 #ifdef __cplusplus
19816 extern "C"
19818 #endif
19819 /* We use char because int might match the return type of a gcc2
19820 builtin and then its argument prototype would still apply. */
19821 char $ac_func ();
19822 /* The GNU C library defines this for functions which it implements
19823 to always fail with ENOSYS. Some functions are actually named
19824 something starting with __ and the normal name is an alias. */
19825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19826 choke me
19827 #else
19828 char (*f) () = $ac_func;
19829 #endif
19830 #ifdef __cplusplus
19832 #endif
19835 main ()
19837 return f != $ac_func;
19839 return 0;
19841 _ACEOF
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844 (eval $ac_link) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -s conftest$ac_exeext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 eval "$as_ac_var=yes"
19855 else
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no"
19861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19865 if test `eval echo '${'$as_ac_var'}'` = yes; then
19866 cat >>confdefs.h <<_ACEOF
19867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19868 _ACEOF
19871 done
19873 else
19875 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19876 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19877 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19878 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19884 ac_ext=cc
19885 ac_cpp='$CXXCPP $CPPFLAGS'
19886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19890 cat >conftest.$ac_ext <<_ACEOF
19891 #line $LINENO "configure"
19892 /* confdefs.h. */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <math.h>
19898 #ifdef HAVE_IEEEFP_H
19899 #include <ieeefp.h>
19900 #endif
19903 main ()
19905 _log10l(0);
19907 return 0;
19909 _ACEOF
19910 rm -f conftest.$ac_objext
19911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19912 (eval $ac_compile) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 glibcxx_cv_func__log10l_use=yes
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 glibcxx_cv_func__log10l_use=no
19929 rm -f conftest.$ac_objext conftest.$ac_ext
19930 ac_ext=c
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19940 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19941 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19943 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19945 for ac_func in _log10l
19947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19948 echo "$as_me:$LINENO: checking for $ac_func" >&5
19949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19950 if eval "test \"\${$as_ac_var+set}\" = set"; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953 if test x$gcc_no_link = xyes; then
19954 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19955 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19956 { (exit 1); exit 1; }; }
19958 cat >conftest.$ac_ext <<_ACEOF
19959 #line $LINENO "configure"
19960 /* confdefs.h. */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19965 /* System header to define __stub macros and hopefully few prototypes,
19966 which can conflict with char $ac_func (); below.
19967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19968 <limits.h> exists even on freestanding compilers. */
19969 #ifdef __STDC__
19970 # include <limits.h>
19971 #else
19972 # include <assert.h>
19973 #endif
19974 /* Override any gcc2 internal prototype to avoid an error. */
19975 #ifdef __cplusplus
19976 extern "C"
19978 #endif
19979 /* We use char because int might match the return type of a gcc2
19980 builtin and then its argument prototype would still apply. */
19981 char $ac_func ();
19982 /* The GNU C library defines this for functions which it implements
19983 to always fail with ENOSYS. Some functions are actually named
19984 something starting with __ and the normal name is an alias. */
19985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19986 choke me
19987 #else
19988 char (*f) () = $ac_func;
19989 #endif
19990 #ifdef __cplusplus
19992 #endif
19995 main ()
19997 return f != $ac_func;
19999 return 0;
20001 _ACEOF
20002 rm -f conftest.$ac_objext conftest$ac_exeext
20003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20004 (eval $ac_link) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -s conftest$ac_exeext'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
20014 eval "$as_ac_var=yes"
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 eval "$as_ac_var=no"
20021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20025 if test `eval echo '${'$as_ac_var'}'` = yes; then
20026 cat >>confdefs.h <<_ACEOF
20027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20028 _ACEOF
20031 done
20038 echo "$as_me:$LINENO: checking for modfl declaration" >&5
20039 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
20040 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
20041 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20047 ac_ext=cc
20048 ac_cpp='$CXXCPP $CPPFLAGS'
20049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20053 cat >conftest.$ac_ext <<_ACEOF
20054 #line $LINENO "configure"
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 #include <math.h>
20062 main ()
20064 modfl(0, 0);
20066 return 0;
20068 _ACEOF
20069 rm -f conftest.$ac_objext
20070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20071 (eval $ac_compile) 2>&5
20072 ac_status=$?
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
20075 { ac_try='test -s conftest.$ac_objext'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 glibcxx_cv_func_modfl_use=yes
20082 else
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20086 glibcxx_cv_func_modfl_use=no
20088 rm -f conftest.$ac_objext conftest.$ac_ext
20089 ac_ext=c
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20099 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
20100 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
20102 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
20104 for ac_func in modfl
20106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107 echo "$as_me:$LINENO: checking for $ac_func" >&5
20108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20109 if eval "test \"\${$as_ac_var+set}\" = set"; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112 if test x$gcc_no_link = xyes; then
20113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20115 { (exit 1); exit 1; }; }
20117 cat >conftest.$ac_ext <<_ACEOF
20118 #line $LINENO "configure"
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 /* System header to define __stub macros and hopefully few prototypes,
20125 which can conflict with char $ac_func (); below.
20126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20127 <limits.h> exists even on freestanding compilers. */
20128 #ifdef __STDC__
20129 # include <limits.h>
20130 #else
20131 # include <assert.h>
20132 #endif
20133 /* Override any gcc2 internal prototype to avoid an error. */
20134 #ifdef __cplusplus
20135 extern "C"
20137 #endif
20138 /* We use char because int might match the return type of a gcc2
20139 builtin and then its argument prototype would still apply. */
20140 char $ac_func ();
20141 /* The GNU C library defines this for functions which it implements
20142 to always fail with ENOSYS. Some functions are actually named
20143 something starting with __ and the normal name is an alias. */
20144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20145 choke me
20146 #else
20147 char (*f) () = $ac_func;
20148 #endif
20149 #ifdef __cplusplus
20151 #endif
20154 main ()
20156 return f != $ac_func;
20158 return 0;
20160 _ACEOF
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20163 (eval $ac_link) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } &&
20167 { ac_try='test -s conftest$ac_exeext'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; }; then
20173 eval "$as_ac_var=yes"
20174 else
20175 echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20178 eval "$as_ac_var=no"
20180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20184 if test `eval echo '${'$as_ac_var'}'` = yes; then
20185 cat >>confdefs.h <<_ACEOF
20186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20187 _ACEOF
20190 done
20192 else
20194 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
20195 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
20196 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
20197 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20203 ac_ext=cc
20204 ac_cpp='$CXXCPP $CPPFLAGS'
20205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20209 cat >conftest.$ac_ext <<_ACEOF
20210 #line $LINENO "configure"
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include <math.h>
20218 main ()
20220 _modfl(0, 0);
20222 return 0;
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -s conftest.$ac_objext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237 glibcxx_cv_func__modfl_use=yes
20238 else
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 glibcxx_cv_func__modfl_use=no
20244 rm -f conftest.$ac_objext conftest.$ac_ext
20245 ac_ext=c
20246 ac_cpp='$CPP $CPPFLAGS'
20247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20255 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
20256 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
20258 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
20260 for ac_func in _modfl
20262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20263 echo "$as_me:$LINENO: checking for $ac_func" >&5
20264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20265 if eval "test \"\${$as_ac_var+set}\" = set"; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268 if test x$gcc_no_link = xyes; then
20269 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20271 { (exit 1); exit 1; }; }
20273 cat >conftest.$ac_ext <<_ACEOF
20274 #line $LINENO "configure"
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 /* System header to define __stub macros and hopefully few prototypes,
20281 which can conflict with char $ac_func (); below.
20282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20283 <limits.h> exists even on freestanding compilers. */
20284 #ifdef __STDC__
20285 # include <limits.h>
20286 #else
20287 # include <assert.h>
20288 #endif
20289 /* Override any gcc2 internal prototype to avoid an error. */
20290 #ifdef __cplusplus
20291 extern "C"
20293 #endif
20294 /* We use char because int might match the return type of a gcc2
20295 builtin and then its argument prototype would still apply. */
20296 char $ac_func ();
20297 /* The GNU C library defines this for functions which it implements
20298 to always fail with ENOSYS. Some functions are actually named
20299 something starting with __ and the normal name is an alias. */
20300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20301 choke me
20302 #else
20303 char (*f) () = $ac_func;
20304 #endif
20305 #ifdef __cplusplus
20307 #endif
20310 main ()
20312 return f != $ac_func;
20314 return 0;
20316 _ACEOF
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20319 (eval $ac_link) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -s conftest$ac_exeext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 eval "$as_ac_var=yes"
20330 else
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 eval "$as_ac_var=no"
20336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20340 if test `eval echo '${'$as_ac_var'}'` = yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20343 _ACEOF
20346 done
20353 echo "$as_me:$LINENO: checking for powl declaration" >&5
20354 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
20355 if test x${glibcxx_cv_func_powl_use+set} != xset; then
20356 if test "${glibcxx_cv_func_powl_use+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 else
20362 ac_ext=cc
20363 ac_cpp='$CXXCPP $CPPFLAGS'
20364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20368 cat >conftest.$ac_ext <<_ACEOF
20369 #line $LINENO "configure"
20370 /* confdefs.h. */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 #include <math.h>
20377 main ()
20379 powl(0, 0);
20381 return 0;
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } &&
20390 { ac_try='test -s conftest.$ac_objext'
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }; then
20396 glibcxx_cv_func_powl_use=yes
20397 else
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20401 glibcxx_cv_func_powl_use=no
20403 rm -f conftest.$ac_objext conftest.$ac_ext
20404 ac_ext=c
20405 ac_cpp='$CPP $CPPFLAGS'
20406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20414 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
20415 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
20417 if test x$glibcxx_cv_func_powl_use = x"yes"; then
20419 for ac_func in powl
20421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20422 echo "$as_me:$LINENO: checking for $ac_func" >&5
20423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20424 if eval "test \"\${$as_ac_var+set}\" = set"; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 if test x$gcc_no_link = xyes; then
20428 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20429 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20430 { (exit 1); exit 1; }; }
20432 cat >conftest.$ac_ext <<_ACEOF
20433 #line $LINENO "configure"
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 /* System header to define __stub macros and hopefully few prototypes,
20440 which can conflict with char $ac_func (); below.
20441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20442 <limits.h> exists even on freestanding compilers. */
20443 #ifdef __STDC__
20444 # include <limits.h>
20445 #else
20446 # include <assert.h>
20447 #endif
20448 /* Override any gcc2 internal prototype to avoid an error. */
20449 #ifdef __cplusplus
20450 extern "C"
20452 #endif
20453 /* We use char because int might match the return type of a gcc2
20454 builtin and then its argument prototype would still apply. */
20455 char $ac_func ();
20456 /* The GNU C library defines this for functions which it implements
20457 to always fail with ENOSYS. Some functions are actually named
20458 something starting with __ and the normal name is an alias. */
20459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20460 choke me
20461 #else
20462 char (*f) () = $ac_func;
20463 #endif
20464 #ifdef __cplusplus
20466 #endif
20469 main ()
20471 return f != $ac_func;
20473 return 0;
20475 _ACEOF
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20478 (eval $ac_link) 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -s conftest$ac_exeext'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 eval "$as_ac_var=yes"
20489 else
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 eval "$as_ac_var=no"
20495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20499 if test `eval echo '${'$as_ac_var'}'` = yes; then
20500 cat >>confdefs.h <<_ACEOF
20501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20502 _ACEOF
20505 done
20507 else
20509 echo "$as_me:$LINENO: checking for _powl declaration" >&5
20510 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20511 if test x${glibcxx_cv_func__powl_use+set} != xset; then
20512 if test "${glibcxx_cv_func__powl_use+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20518 ac_ext=cc
20519 ac_cpp='$CXXCPP $CPPFLAGS'
20520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20524 cat >conftest.$ac_ext <<_ACEOF
20525 #line $LINENO "configure"
20526 /* confdefs.h. */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20531 #include <math.h>
20533 main ()
20535 _powl(0, 0);
20537 return 0;
20539 _ACEOF
20540 rm -f conftest.$ac_objext
20541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20542 (eval $ac_compile) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -s conftest.$ac_objext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 glibcxx_cv_func__powl_use=yes
20553 else
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20557 glibcxx_cv_func__powl_use=no
20559 rm -f conftest.$ac_objext conftest.$ac_ext
20560 ac_ext=c
20561 ac_cpp='$CPP $CPPFLAGS'
20562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20571 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20573 if test x$glibcxx_cv_func__powl_use = x"yes"; then
20575 for ac_func in _powl
20577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20578 echo "$as_me:$LINENO: checking for $ac_func" >&5
20579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20580 if eval "test \"\${$as_ac_var+set}\" = set"; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583 if test x$gcc_no_link = xyes; then
20584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20586 { (exit 1); exit 1; }; }
20588 cat >conftest.$ac_ext <<_ACEOF
20589 #line $LINENO "configure"
20590 /* confdefs.h. */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 /* System header to define __stub macros and hopefully few prototypes,
20596 which can conflict with char $ac_func (); below.
20597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20598 <limits.h> exists even on freestanding compilers. */
20599 #ifdef __STDC__
20600 # include <limits.h>
20601 #else
20602 # include <assert.h>
20603 #endif
20604 /* Override any gcc2 internal prototype to avoid an error. */
20605 #ifdef __cplusplus
20606 extern "C"
20608 #endif
20609 /* We use char because int might match the return type of a gcc2
20610 builtin and then its argument prototype would still apply. */
20611 char $ac_func ();
20612 /* The GNU C library defines this for functions which it implements
20613 to always fail with ENOSYS. Some functions are actually named
20614 something starting with __ and the normal name is an alias. */
20615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20616 choke me
20617 #else
20618 char (*f) () = $ac_func;
20619 #endif
20620 #ifdef __cplusplus
20622 #endif
20625 main ()
20627 return f != $ac_func;
20629 return 0;
20631 _ACEOF
20632 rm -f conftest.$ac_objext conftest$ac_exeext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634 (eval $ac_link) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -s conftest$ac_exeext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 eval "$as_ac_var=yes"
20645 else
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 eval "$as_ac_var=no"
20651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20655 if test `eval echo '${'$as_ac_var'}'` = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20658 _ACEOF
20661 done
20668 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20669 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20670 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20671 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20677 ac_ext=cc
20678 ac_cpp='$CXXCPP $CPPFLAGS'
20679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20683 cat >conftest.$ac_ext <<_ACEOF
20684 #line $LINENO "configure"
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 #include <math.h>
20691 #ifdef HAVE_IEEEFP_H
20692 #include <ieeefp.h>
20693 #endif
20696 main ()
20698 sqrtl(0);
20700 return 0;
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705 (eval $ac_compile) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -s conftest.$ac_objext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 glibcxx_cv_func_sqrtl_use=yes
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 glibcxx_cv_func_sqrtl_use=no
20722 rm -f conftest.$ac_objext conftest.$ac_ext
20723 ac_ext=c
20724 ac_cpp='$CPP $CPPFLAGS'
20725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20733 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20734 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20736 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20738 for ac_func in sqrtl
20740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20741 echo "$as_me:$LINENO: checking for $ac_func" >&5
20742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20743 if eval "test \"\${$as_ac_var+set}\" = set"; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746 if test x$gcc_no_link = xyes; then
20747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20749 { (exit 1); exit 1; }; }
20751 cat >conftest.$ac_ext <<_ACEOF
20752 #line $LINENO "configure"
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 /* System header to define __stub macros and hopefully few prototypes,
20759 which can conflict with char $ac_func (); below.
20760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20761 <limits.h> exists even on freestanding compilers. */
20762 #ifdef __STDC__
20763 # include <limits.h>
20764 #else
20765 # include <assert.h>
20766 #endif
20767 /* Override any gcc2 internal prototype to avoid an error. */
20768 #ifdef __cplusplus
20769 extern "C"
20771 #endif
20772 /* We use char because int might match the return type of a gcc2
20773 builtin and then its argument prototype would still apply. */
20774 char $ac_func ();
20775 /* The GNU C library defines this for functions which it implements
20776 to always fail with ENOSYS. Some functions are actually named
20777 something starting with __ and the normal name is an alias. */
20778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20779 choke me
20780 #else
20781 char (*f) () = $ac_func;
20782 #endif
20783 #ifdef __cplusplus
20785 #endif
20788 main ()
20790 return f != $ac_func;
20792 return 0;
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797 (eval $ac_link) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try='test -s conftest$ac_exeext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 eval "$as_ac_var=yes"
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 eval "$as_ac_var=no"
20814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20818 if test `eval echo '${'$as_ac_var'}'` = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20821 _ACEOF
20824 done
20826 else
20828 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20829 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20830 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20831 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20837 ac_ext=cc
20838 ac_cpp='$CXXCPP $CPPFLAGS'
20839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20843 cat >conftest.$ac_ext <<_ACEOF
20844 #line $LINENO "configure"
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <math.h>
20851 #ifdef HAVE_IEEEFP_H
20852 #include <ieeefp.h>
20853 #endif
20856 main ()
20858 _sqrtl(0);
20860 return 0;
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20865 (eval $ac_compile) 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -s conftest.$ac_objext'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; }; then
20875 glibcxx_cv_func__sqrtl_use=yes
20876 else
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 glibcxx_cv_func__sqrtl_use=no
20882 rm -f conftest.$ac_objext conftest.$ac_ext
20883 ac_ext=c
20884 ac_cpp='$CPP $CPPFLAGS'
20885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20893 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20894 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20896 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20898 for ac_func in _sqrtl
20900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20901 echo "$as_me:$LINENO: checking for $ac_func" >&5
20902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20903 if eval "test \"\${$as_ac_var+set}\" = set"; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906 if test x$gcc_no_link = xyes; then
20907 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20909 { (exit 1); exit 1; }; }
20911 cat >conftest.$ac_ext <<_ACEOF
20912 #line $LINENO "configure"
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 /* System header to define __stub macros and hopefully few prototypes,
20919 which can conflict with char $ac_func (); below.
20920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20921 <limits.h> exists even on freestanding compilers. */
20922 #ifdef __STDC__
20923 # include <limits.h>
20924 #else
20925 # include <assert.h>
20926 #endif
20927 /* Override any gcc2 internal prototype to avoid an error. */
20928 #ifdef __cplusplus
20929 extern "C"
20931 #endif
20932 /* We use char because int might match the return type of a gcc2
20933 builtin and then its argument prototype would still apply. */
20934 char $ac_func ();
20935 /* The GNU C library defines this for functions which it implements
20936 to always fail with ENOSYS. Some functions are actually named
20937 something starting with __ and the normal name is an alias. */
20938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20939 choke me
20940 #else
20941 char (*f) () = $ac_func;
20942 #endif
20943 #ifdef __cplusplus
20945 #endif
20948 main ()
20950 return f != $ac_func;
20952 return 0;
20954 _ACEOF
20955 rm -f conftest.$ac_objext conftest$ac_exeext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20957 (eval $ac_link) 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
20961 { ac_try='test -s conftest$ac_exeext'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 eval "$as_ac_var=yes"
20968 else
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 eval "$as_ac_var=no"
20974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20978 if test `eval echo '${'$as_ac_var'}'` = yes; then
20979 cat >>confdefs.h <<_ACEOF
20980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20981 _ACEOF
20984 done
20991 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20992 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20993 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20994 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 else
21000 ac_ext=cc
21001 ac_cpp='$CXXCPP $CPPFLAGS'
21002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21006 cat >conftest.$ac_ext <<_ACEOF
21007 #line $LINENO "configure"
21008 /* confdefs.h. */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h. */
21013 #include <math.h>
21015 main ()
21017 sincosl(0, 0, 0);
21019 return 0;
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024 (eval $ac_compile) 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } &&
21028 { ac_try='test -s conftest.$ac_objext'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 glibcxx_cv_func_sincosl_use=yes
21035 else
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 glibcxx_cv_func_sincosl_use=no
21041 rm -f conftest.$ac_objext conftest.$ac_ext
21042 ac_ext=c
21043 ac_cpp='$CPP $CPPFLAGS'
21044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21052 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
21053 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
21055 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
21057 for ac_func in sincosl
21059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21060 echo "$as_me:$LINENO: checking for $ac_func" >&5
21061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21062 if eval "test \"\${$as_ac_var+set}\" = set"; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21064 else
21065 if test x$gcc_no_link = xyes; then
21066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21068 { (exit 1); exit 1; }; }
21070 cat >conftest.$ac_ext <<_ACEOF
21071 #line $LINENO "configure"
21072 /* confdefs.h. */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 /* System header to define __stub macros and hopefully few prototypes,
21078 which can conflict with char $ac_func (); below.
21079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21080 <limits.h> exists even on freestanding compilers. */
21081 #ifdef __STDC__
21082 # include <limits.h>
21083 #else
21084 # include <assert.h>
21085 #endif
21086 /* Override any gcc2 internal prototype to avoid an error. */
21087 #ifdef __cplusplus
21088 extern "C"
21090 #endif
21091 /* We use char because int might match the return type of a gcc2
21092 builtin and then its argument prototype would still apply. */
21093 char $ac_func ();
21094 /* The GNU C library defines this for functions which it implements
21095 to always fail with ENOSYS. Some functions are actually named
21096 something starting with __ and the normal name is an alias. */
21097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21098 choke me
21099 #else
21100 char (*f) () = $ac_func;
21101 #endif
21102 #ifdef __cplusplus
21104 #endif
21107 main ()
21109 return f != $ac_func;
21111 return 0;
21113 _ACEOF
21114 rm -f conftest.$ac_objext conftest$ac_exeext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21116 (eval $ac_link) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
21120 { ac_try='test -s conftest$ac_exeext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 eval "$as_ac_var=yes"
21127 else
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21131 eval "$as_ac_var=no"
21133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21137 if test `eval echo '${'$as_ac_var'}'` = yes; then
21138 cat >>confdefs.h <<_ACEOF
21139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21140 _ACEOF
21143 done
21145 else
21147 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
21148 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
21149 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
21150 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21156 ac_ext=cc
21157 ac_cpp='$CXXCPP $CPPFLAGS'
21158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21162 cat >conftest.$ac_ext <<_ACEOF
21163 #line $LINENO "configure"
21164 /* confdefs.h. */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 #include <math.h>
21171 main ()
21173 _sincosl(0, 0, 0);
21175 return 0;
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21180 (eval $ac_compile) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -s conftest.$ac_objext'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; }; then
21190 glibcxx_cv_func__sincosl_use=yes
21191 else
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21195 glibcxx_cv_func__sincosl_use=no
21197 rm -f conftest.$ac_objext conftest.$ac_ext
21198 ac_ext=c
21199 ac_cpp='$CPP $CPPFLAGS'
21200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21208 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
21209 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
21211 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
21213 for ac_func in _sincosl
21215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21216 echo "$as_me:$LINENO: checking for $ac_func" >&5
21217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21218 if eval "test \"\${$as_ac_var+set}\" = set"; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221 if test x$gcc_no_link = xyes; then
21222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21224 { (exit 1); exit 1; }; }
21226 cat >conftest.$ac_ext <<_ACEOF
21227 #line $LINENO "configure"
21228 /* confdefs.h. */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 /* System header to define __stub macros and hopefully few prototypes,
21234 which can conflict with char $ac_func (); below.
21235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21236 <limits.h> exists even on freestanding compilers. */
21237 #ifdef __STDC__
21238 # include <limits.h>
21239 #else
21240 # include <assert.h>
21241 #endif
21242 /* Override any gcc2 internal prototype to avoid an error. */
21243 #ifdef __cplusplus
21244 extern "C"
21246 #endif
21247 /* We use char because int might match the return type of a gcc2
21248 builtin and then its argument prototype would still apply. */
21249 char $ac_func ();
21250 /* The GNU C library defines this for functions which it implements
21251 to always fail with ENOSYS. Some functions are actually named
21252 something starting with __ and the normal name is an alias. */
21253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21254 choke me
21255 #else
21256 char (*f) () = $ac_func;
21257 #endif
21258 #ifdef __cplusplus
21260 #endif
21263 main ()
21265 return f != $ac_func;
21267 return 0;
21269 _ACEOF
21270 rm -f conftest.$ac_objext conftest$ac_exeext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21272 (eval $ac_link) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -s conftest$ac_exeext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 eval "$as_ac_var=yes"
21283 else
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 eval "$as_ac_var=no"
21289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21293 if test `eval echo '${'$as_ac_var'}'` = yes; then
21294 cat >>confdefs.h <<_ACEOF
21295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21296 _ACEOF
21299 done
21306 echo "$as_me:$LINENO: checking for finitel declaration" >&5
21307 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
21308 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
21309 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 else
21315 ac_ext=cc
21316 ac_cpp='$CXXCPP $CPPFLAGS'
21317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21321 cat >conftest.$ac_ext <<_ACEOF
21322 #line $LINENO "configure"
21323 /* confdefs.h. */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 #include <math.h>
21329 #ifdef HAVE_IEEEFP_H
21330 #include <ieeefp.h>
21331 #endif
21334 main ()
21336 finitel(0);
21338 return 0;
21340 _ACEOF
21341 rm -f conftest.$ac_objext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21343 (eval $ac_compile) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } &&
21347 { ac_try='test -s conftest.$ac_objext'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; }; then
21353 glibcxx_cv_func_finitel_use=yes
21354 else
21355 echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21358 glibcxx_cv_func_finitel_use=no
21360 rm -f conftest.$ac_objext conftest.$ac_ext
21361 ac_ext=c
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21371 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
21372 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
21374 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
21376 for ac_func in finitel
21378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21379 echo "$as_me:$LINENO: checking for $ac_func" >&5
21380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21381 if eval "test \"\${$as_ac_var+set}\" = set"; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384 if test x$gcc_no_link = xyes; then
21385 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21386 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21387 { (exit 1); exit 1; }; }
21389 cat >conftest.$ac_ext <<_ACEOF
21390 #line $LINENO "configure"
21391 /* confdefs.h. */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 /* System header to define __stub macros and hopefully few prototypes,
21397 which can conflict with char $ac_func (); below.
21398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21399 <limits.h> exists even on freestanding compilers. */
21400 #ifdef __STDC__
21401 # include <limits.h>
21402 #else
21403 # include <assert.h>
21404 #endif
21405 /* Override any gcc2 internal prototype to avoid an error. */
21406 #ifdef __cplusplus
21407 extern "C"
21409 #endif
21410 /* We use char because int might match the return type of a gcc2
21411 builtin and then its argument prototype would still apply. */
21412 char $ac_func ();
21413 /* The GNU C library defines this for functions which it implements
21414 to always fail with ENOSYS. Some functions are actually named
21415 something starting with __ and the normal name is an alias. */
21416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21417 choke me
21418 #else
21419 char (*f) () = $ac_func;
21420 #endif
21421 #ifdef __cplusplus
21423 #endif
21426 main ()
21428 return f != $ac_func;
21430 return 0;
21432 _ACEOF
21433 rm -f conftest.$ac_objext conftest$ac_exeext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21435 (eval $ac_link) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } &&
21439 { ac_try='test -s conftest$ac_exeext'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; }; then
21445 eval "$as_ac_var=yes"
21446 else
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 eval "$as_ac_var=no"
21452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21456 if test `eval echo '${'$as_ac_var'}'` = yes; then
21457 cat >>confdefs.h <<_ACEOF
21458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21459 _ACEOF
21462 done
21464 else
21466 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
21467 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
21468 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
21469 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21475 ac_ext=cc
21476 ac_cpp='$CXXCPP $CPPFLAGS'
21477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21481 cat >conftest.$ac_ext <<_ACEOF
21482 #line $LINENO "configure"
21483 /* confdefs.h. */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 #include <math.h>
21489 #ifdef HAVE_IEEEFP_H
21490 #include <ieeefp.h>
21491 #endif
21494 main ()
21496 _finitel(0);
21498 return 0;
21500 _ACEOF
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
21507 { ac_try='test -s conftest.$ac_objext'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 glibcxx_cv_func__finitel_use=yes
21514 else
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 glibcxx_cv_func__finitel_use=no
21520 rm -f conftest.$ac_objext conftest.$ac_ext
21521 ac_ext=c
21522 ac_cpp='$CPP $CPPFLAGS'
21523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21531 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21532 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21534 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21536 for ac_func in _finitel
21538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21539 echo "$as_me:$LINENO: checking for $ac_func" >&5
21540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21541 if eval "test \"\${$as_ac_var+set}\" = set"; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544 if test x$gcc_no_link = xyes; then
21545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21547 { (exit 1); exit 1; }; }
21549 cat >conftest.$ac_ext <<_ACEOF
21550 #line $LINENO "configure"
21551 /* confdefs.h. */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 /* System header to define __stub macros and hopefully few prototypes,
21557 which can conflict with char $ac_func (); below.
21558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21559 <limits.h> exists even on freestanding compilers. */
21560 #ifdef __STDC__
21561 # include <limits.h>
21562 #else
21563 # include <assert.h>
21564 #endif
21565 /* Override any gcc2 internal prototype to avoid an error. */
21566 #ifdef __cplusplus
21567 extern "C"
21569 #endif
21570 /* We use char because int might match the return type of a gcc2
21571 builtin and then its argument prototype would still apply. */
21572 char $ac_func ();
21573 /* The GNU C library defines this for functions which it implements
21574 to always fail with ENOSYS. Some functions are actually named
21575 something starting with __ and the normal name is an alias. */
21576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21577 choke me
21578 #else
21579 char (*f) () = $ac_func;
21580 #endif
21581 #ifdef __cplusplus
21583 #endif
21586 main ()
21588 return f != $ac_func;
21590 return 0;
21592 _ACEOF
21593 rm -f conftest.$ac_objext conftest$ac_exeext
21594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21595 (eval $ac_link) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
21599 { ac_try='test -s conftest$ac_exeext'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 eval "$as_ac_var=yes"
21606 else
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 eval "$as_ac_var=no"
21612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21616 if test `eval echo '${'$as_ac_var'}'` = yes; then
21617 cat >>confdefs.h <<_ACEOF
21618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21619 _ACEOF
21622 done
21630 echo "$as_me:$LINENO: checking for _float trig functions" >&5
21631 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21632 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 else
21638 ac_ext=cc
21639 ac_cpp='$CXXCPP $CPPFLAGS'
21640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21644 cat >conftest.$ac_ext <<_ACEOF
21645 #line $LINENO "configure"
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <math.h>
21653 main ()
21655 `for x in _acosf _asinf _atanf \
21656 _cosf _sinf _tanf \
21657 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21659 return 0;
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 glibcxx_cv_func__float_trig_use=yes
21675 else
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 glibcxx_cv_func__float_trig_use=no
21681 rm -f conftest.$ac_objext conftest.$ac_ext
21682 ac_ext=c
21683 ac_cpp='$CPP $CPPFLAGS'
21684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21690 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21691 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21692 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21702 for ac_func in _acosf _asinf _atanf \
21703 _cosf _sinf _tanf \
21704 _coshf _sinhf _tanhf
21706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21707 echo "$as_me:$LINENO: checking for $ac_func" >&5
21708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21709 if eval "test \"\${$as_ac_var+set}\" = set"; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712 if test x$gcc_no_link = xyes; then
21713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21715 { (exit 1); exit 1; }; }
21717 cat >conftest.$ac_ext <<_ACEOF
21718 #line $LINENO "configure"
21719 /* confdefs.h. */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724 /* System header to define __stub macros and hopefully few prototypes,
21725 which can conflict with char $ac_func (); below.
21726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21727 <limits.h> exists even on freestanding compilers. */
21728 #ifdef __STDC__
21729 # include <limits.h>
21730 #else
21731 # include <assert.h>
21732 #endif
21733 /* Override any gcc2 internal prototype to avoid an error. */
21734 #ifdef __cplusplus
21735 extern "C"
21737 #endif
21738 /* We use char because int might match the return type of a gcc2
21739 builtin and then its argument prototype would still apply. */
21740 char $ac_func ();
21741 /* The GNU C library defines this for functions which it implements
21742 to always fail with ENOSYS. Some functions are actually named
21743 something starting with __ and the normal name is an alias. */
21744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21745 choke me
21746 #else
21747 char (*f) () = $ac_func;
21748 #endif
21749 #ifdef __cplusplus
21751 #endif
21754 main ()
21756 return f != $ac_func;
21758 return 0;
21760 _ACEOF
21761 rm -f conftest.$ac_objext conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763 (eval $ac_link) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
21767 { ac_try='test -s conftest$ac_exeext'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 eval "$as_ac_var=yes"
21774 else
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 eval "$as_ac_var=no"
21780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21784 if test `eval echo '${'$as_ac_var'}'` = yes; then
21785 cat >>confdefs.h <<_ACEOF
21786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21787 _ACEOF
21790 done
21795 echo "$as_me:$LINENO: checking for _float round functions" >&5
21796 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21797 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21799 else
21803 ac_ext=cc
21804 ac_cpp='$CXXCPP $CPPFLAGS'
21805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21809 cat >conftest.$ac_ext <<_ACEOF
21810 #line $LINENO "configure"
21811 /* confdefs.h. */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 #include <math.h>
21818 main ()
21820 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21822 return 0;
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21827 (eval $ac_compile) 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } &&
21831 { ac_try='test -s conftest.$ac_objext'
21832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; }; then
21837 glibcxx_cv_func__float_round_use=yes
21838 else
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 glibcxx_cv_func__float_round_use=no
21844 rm -f conftest.$ac_objext conftest.$ac_ext
21845 ac_ext=c
21846 ac_cpp='$CPP $CPPFLAGS'
21847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21853 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21854 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21855 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21858 for ac_func in _ceilf _floorf
21860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21861 echo "$as_me:$LINENO: checking for $ac_func" >&5
21862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21863 if eval "test \"\${$as_ac_var+set}\" = set"; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21865 else
21866 if test x$gcc_no_link = xyes; then
21867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21869 { (exit 1); exit 1; }; }
21871 cat >conftest.$ac_ext <<_ACEOF
21872 #line $LINENO "configure"
21873 /* confdefs.h. */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 /* System header to define __stub macros and hopefully few prototypes,
21879 which can conflict with char $ac_func (); below.
21880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21881 <limits.h> exists even on freestanding compilers. */
21882 #ifdef __STDC__
21883 # include <limits.h>
21884 #else
21885 # include <assert.h>
21886 #endif
21887 /* Override any gcc2 internal prototype to avoid an error. */
21888 #ifdef __cplusplus
21889 extern "C"
21891 #endif
21892 /* We use char because int might match the return type of a gcc2
21893 builtin and then its argument prototype would still apply. */
21894 char $ac_func ();
21895 /* The GNU C library defines this for functions which it implements
21896 to always fail with ENOSYS. Some functions are actually named
21897 something starting with __ and the normal name is an alias. */
21898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21899 choke me
21900 #else
21901 char (*f) () = $ac_func;
21902 #endif
21903 #ifdef __cplusplus
21905 #endif
21908 main ()
21910 return f != $ac_func;
21912 return 0;
21914 _ACEOF
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21917 (eval $ac_link) 2>&5
21918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
21921 { ac_try='test -s conftest$ac_exeext'
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21924 ac_status=$?
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; }; then
21927 eval "$as_ac_var=yes"
21928 else
21929 echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21932 eval "$as_ac_var=no"
21934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21938 if test `eval echo '${'$as_ac_var'}'` = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21941 _ACEOF
21944 done
21950 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21951 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21952 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21958 ac_ext=cc
21959 ac_cpp='$CXXCPP $CPPFLAGS'
21960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21964 cat >conftest.$ac_ext <<_ACEOF
21965 #line $LINENO "configure"
21966 /* confdefs.h. */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 #include <math.h>
21973 main ()
21975 `for x in _acosl _asinl _atanl \
21976 _cosl _sinl _tanl \
21977 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21979 return 0;
21981 _ACEOF
21982 rm -f conftest.$ac_objext
21983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21984 (eval $ac_compile) 2>&5
21985 ac_status=$?
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
21988 { ac_try='test -s conftest.$ac_objext'
21989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21990 (eval $ac_try) 2>&5
21991 ac_status=$?
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); }; }; then
21994 glibcxx_cv_func__long_double_trig_use=yes
21995 else
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 glibcxx_cv_func__long_double_trig_use=no
22001 rm -f conftest.$ac_objext conftest.$ac_ext
22002 ac_ext=c
22003 ac_cpp='$CPP $CPPFLAGS'
22004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22010 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
22011 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
22012 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
22022 for ac_func in _acosl _asinl _atanl \
22023 _cosl _sinl _tanl \
22024 _coshl _sinhl _tanhl
22026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22027 echo "$as_me:$LINENO: checking for $ac_func" >&5
22028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22029 if eval "test \"\${$as_ac_var+set}\" = set"; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032 if test x$gcc_no_link = xyes; then
22033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22035 { (exit 1); exit 1; }; }
22037 cat >conftest.$ac_ext <<_ACEOF
22038 #line $LINENO "configure"
22039 /* confdefs.h. */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 /* System header to define __stub macros and hopefully few prototypes,
22045 which can conflict with char $ac_func (); below.
22046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22047 <limits.h> exists even on freestanding compilers. */
22048 #ifdef __STDC__
22049 # include <limits.h>
22050 #else
22051 # include <assert.h>
22052 #endif
22053 /* Override any gcc2 internal prototype to avoid an error. */
22054 #ifdef __cplusplus
22055 extern "C"
22057 #endif
22058 /* We use char because int might match the return type of a gcc2
22059 builtin and then its argument prototype would still apply. */
22060 char $ac_func ();
22061 /* The GNU C library defines this for functions which it implements
22062 to always fail with ENOSYS. Some functions are actually named
22063 something starting with __ and the normal name is an alias. */
22064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22065 choke me
22066 #else
22067 char (*f) () = $ac_func;
22068 #endif
22069 #ifdef __cplusplus
22071 #endif
22074 main ()
22076 return f != $ac_func;
22078 return 0;
22080 _ACEOF
22081 rm -f conftest.$ac_objext conftest$ac_exeext
22082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22083 (eval $ac_link) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } &&
22087 { ac_try='test -s conftest$ac_exeext'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22090 ac_status=$?
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; }; then
22093 eval "$as_ac_var=yes"
22094 else
22095 echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22098 eval "$as_ac_var=no"
22100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22104 if test `eval echo '${'$as_ac_var'}'` = yes; then
22105 cat >>confdefs.h <<_ACEOF
22106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22107 _ACEOF
22110 done
22115 echo "$as_me:$LINENO: checking for _long double round functions" >&5
22116 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
22117 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 else
22123 ac_ext=cc
22124 ac_cpp='$CXXCPP $CPPFLAGS'
22125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22129 cat >conftest.$ac_ext <<_ACEOF
22130 #line $LINENO "configure"
22131 /* confdefs.h. */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136 #include <math.h>
22138 main ()
22140 `for x in _ceill _floorl; do echo "$x (0);"; done`
22142 return 0;
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>&5
22148 ac_status=$?
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } &&
22151 { ac_try='test -s conftest.$ac_objext'
22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; }; then
22157 glibcxx_cv_func__long_double_round_use=yes
22158 else
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 glibcxx_cv_func__long_double_round_use=no
22164 rm -f conftest.$ac_objext conftest.$ac_ext
22165 ac_ext=c
22166 ac_cpp='$CPP $CPPFLAGS'
22167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22173 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
22174 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
22175 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
22178 for ac_func in _ceill _floorl
22180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22181 echo "$as_me:$LINENO: checking for $ac_func" >&5
22182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22183 if eval "test \"\${$as_ac_var+set}\" = set"; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 else
22186 if test x$gcc_no_link = xyes; then
22187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22189 { (exit 1); exit 1; }; }
22191 cat >conftest.$ac_ext <<_ACEOF
22192 #line $LINENO "configure"
22193 /* confdefs.h. */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 /* System header to define __stub macros and hopefully few prototypes,
22199 which can conflict with char $ac_func (); below.
22200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22201 <limits.h> exists even on freestanding compilers. */
22202 #ifdef __STDC__
22203 # include <limits.h>
22204 #else
22205 # include <assert.h>
22206 #endif
22207 /* Override any gcc2 internal prototype to avoid an error. */
22208 #ifdef __cplusplus
22209 extern "C"
22211 #endif
22212 /* We use char because int might match the return type of a gcc2
22213 builtin and then its argument prototype would still apply. */
22214 char $ac_func ();
22215 /* The GNU C library defines this for functions which it implements
22216 to always fail with ENOSYS. Some functions are actually named
22217 something starting with __ and the normal name is an alias. */
22218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22219 choke me
22220 #else
22221 char (*f) () = $ac_func;
22222 #endif
22223 #ifdef __cplusplus
22225 #endif
22228 main ()
22230 return f != $ac_func;
22232 return 0;
22234 _ACEOF
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22237 (eval $ac_link) 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } &&
22241 { ac_try='test -s conftest$ac_exeext'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }; then
22247 eval "$as_ac_var=yes"
22248 else
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22252 eval "$as_ac_var=no"
22254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22258 if test `eval echo '${'$as_ac_var'}'` = yes; then
22259 cat >>confdefs.h <<_ACEOF
22260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22261 _ACEOF
22264 done
22269 LIBS="$ac_save_LIBS"
22270 CXXFLAGS="$ac_save_CXXFLAGS"
22274 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
22275 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
22276 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
22277 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22283 ac_ext=cc
22284 ac_cpp='$CXXCPP $CPPFLAGS'
22285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22289 cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22291 /* confdefs.h. */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 #include <math.h>
22298 main ()
22300 __builtin_abs(0);
22302 return 0;
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22307 (eval $ac_compile) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } &&
22311 { ac_try='test -s conftest.$ac_objext'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 glibcxx_cv_func___builtin_abs_use=yes
22318 else
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22322 glibcxx_cv_func___builtin_abs_use=no
22324 rm -f conftest.$ac_objext conftest.$ac_ext
22325 ac_ext=c
22326 ac_cpp='$CPP $CPPFLAGS'
22327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22335 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
22336 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
22337 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
22338 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
22339 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
22340 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
22341 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22345 if test x$gcc_no_link = xyes; then
22346 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22347 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22348 { (exit 1); exit 1; }; }
22350 cat >conftest.$ac_ext <<_ACEOF
22351 #line $LINENO "configure"
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 #include <math.h>
22359 main ()
22361 __builtin_abs(0);
22363 return 0;
22365 _ACEOF
22366 rm -f conftest.$ac_objext conftest$ac_exeext
22367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22368 (eval $ac_link) 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } &&
22372 { ac_try='test -s conftest$ac_exeext'
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22375 ac_status=$?
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 glibcxx_cv_func___builtin_abs_link=yes
22379 else
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 glibcxx_cv_func___builtin_abs_link=no
22385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22390 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
22391 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
22392 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
22393 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22394 cat >>confdefs.h <<_ACEOF
22395 #define ${ac_tr_func} 1
22396 _ACEOF
22402 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
22403 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
22404 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
22405 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22411 ac_ext=cc
22412 ac_cpp='$CXXCPP $CPPFLAGS'
22413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22417 cat >conftest.$ac_ext <<_ACEOF
22418 #line $LINENO "configure"
22419 /* confdefs.h. */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 #include <math.h>
22426 main ()
22428 __builtin_fabsf(0);
22430 return 0;
22432 _ACEOF
22433 rm -f conftest.$ac_objext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22435 (eval $ac_compile) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } &&
22439 { ac_try='test -s conftest.$ac_objext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 glibcxx_cv_func___builtin_fabsf_use=yes
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 glibcxx_cv_func___builtin_fabsf_use=no
22452 rm -f conftest.$ac_objext conftest.$ac_ext
22453 ac_ext=c
22454 ac_cpp='$CPP $CPPFLAGS'
22455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22463 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
22464 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
22465 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
22466 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
22467 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
22468 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
22469 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 else
22473 if test x$gcc_no_link = xyes; then
22474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22476 { (exit 1); exit 1; }; }
22478 cat >conftest.$ac_ext <<_ACEOF
22479 #line $LINENO "configure"
22480 /* confdefs.h. */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22485 #include <math.h>
22487 main ()
22489 __builtin_fabsf(0);
22491 return 0;
22493 _ACEOF
22494 rm -f conftest.$ac_objext conftest$ac_exeext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496 (eval $ac_link) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } &&
22500 { ac_try='test -s conftest$ac_exeext'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; }; then
22506 glibcxx_cv_func___builtin_fabsf_link=yes
22507 else
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 glibcxx_cv_func___builtin_fabsf_link=no
22513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22518 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
22519 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
22520 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
22521 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22522 cat >>confdefs.h <<_ACEOF
22523 #define ${ac_tr_func} 1
22524 _ACEOF
22530 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22531 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22532 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22533 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22539 ac_ext=cc
22540 ac_cpp='$CXXCPP $CPPFLAGS'
22541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22545 cat >conftest.$ac_ext <<_ACEOF
22546 #line $LINENO "configure"
22547 /* confdefs.h. */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 #include <math.h>
22554 main ()
22556 __builtin_fabs(0);
22558 return 0;
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22563 (eval $ac_compile) 2>&5
22564 ac_status=$?
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } &&
22567 { ac_try='test -s conftest.$ac_objext'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 glibcxx_cv_func___builtin_fabs_use=yes
22574 else
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 glibcxx_cv_func___builtin_fabs_use=no
22580 rm -f conftest.$ac_objext conftest.$ac_ext
22581 ac_ext=c
22582 ac_cpp='$CPP $CPPFLAGS'
22583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22591 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22592 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22593 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22594 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22595 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22596 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22597 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22601 if test x$gcc_no_link = xyes; then
22602 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22604 { (exit 1); exit 1; }; }
22606 cat >conftest.$ac_ext <<_ACEOF
22607 #line $LINENO "configure"
22608 /* confdefs.h. */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 #include <math.h>
22615 main ()
22617 __builtin_fabs(0);
22619 return 0;
22621 _ACEOF
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624 (eval $ac_link) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
22628 { ac_try='test -s conftest$ac_exeext'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 glibcxx_cv_func___builtin_fabs_link=yes
22635 else
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22639 glibcxx_cv_func___builtin_fabs_link=no
22641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22646 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22647 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22648 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22649 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22650 cat >>confdefs.h <<_ACEOF
22651 #define ${ac_tr_func} 1
22652 _ACEOF
22658 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22659 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22660 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22661 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 else
22667 ac_ext=cc
22668 ac_cpp='$CXXCPP $CPPFLAGS'
22669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22673 cat >conftest.$ac_ext <<_ACEOF
22674 #line $LINENO "configure"
22675 /* confdefs.h. */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 #include <math.h>
22682 main ()
22684 __builtin_fabsl(0);
22686 return 0;
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22691 (eval $ac_compile) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } &&
22695 { ac_try='test -s conftest.$ac_objext'
22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697 (eval $ac_try) 2>&5
22698 ac_status=$?
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; }; then
22701 glibcxx_cv_func___builtin_fabsl_use=yes
22702 else
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22706 glibcxx_cv_func___builtin_fabsl_use=no
22708 rm -f conftest.$ac_objext conftest.$ac_ext
22709 ac_ext=c
22710 ac_cpp='$CPP $CPPFLAGS'
22711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22719 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22720 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22721 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22722 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22723 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22724 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22725 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 else
22729 if test x$gcc_no_link = xyes; then
22730 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22732 { (exit 1); exit 1; }; }
22734 cat >conftest.$ac_ext <<_ACEOF
22735 #line $LINENO "configure"
22736 /* confdefs.h. */
22737 _ACEOF
22738 cat confdefs.h >>conftest.$ac_ext
22739 cat >>conftest.$ac_ext <<_ACEOF
22740 /* end confdefs.h. */
22741 #include <math.h>
22743 main ()
22745 __builtin_fabsl(0);
22747 return 0;
22749 _ACEOF
22750 rm -f conftest.$ac_objext conftest$ac_exeext
22751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22752 (eval $ac_link) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); } &&
22756 { ac_try='test -s conftest$ac_exeext'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; }; then
22762 glibcxx_cv_func___builtin_fabsl_link=yes
22763 else
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 glibcxx_cv_func___builtin_fabsl_link=no
22769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22774 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22775 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22776 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22777 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22778 cat >>confdefs.h <<_ACEOF
22779 #define ${ac_tr_func} 1
22780 _ACEOF
22786 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22787 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22788 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22789 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22795 ac_ext=cc
22796 ac_cpp='$CXXCPP $CPPFLAGS'
22797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22801 cat >conftest.$ac_ext <<_ACEOF
22802 #line $LINENO "configure"
22803 /* confdefs.h. */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 #include <math.h>
22810 main ()
22812 __builtin_labs(0);
22814 return 0;
22816 _ACEOF
22817 rm -f conftest.$ac_objext
22818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22819 (eval $ac_compile) 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } &&
22823 { ac_try='test -s conftest.$ac_objext'
22824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22825 (eval $ac_try) 2>&5
22826 ac_status=$?
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); }; }; then
22829 glibcxx_cv_func___builtin_labs_use=yes
22830 else
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 glibcxx_cv_func___builtin_labs_use=no
22836 rm -f conftest.$ac_objext conftest.$ac_ext
22837 ac_ext=c
22838 ac_cpp='$CPP $CPPFLAGS'
22839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22847 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22848 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22849 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22850 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22851 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22852 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22853 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22857 if test x$gcc_no_link = xyes; then
22858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22860 { (exit 1); exit 1; }; }
22862 cat >conftest.$ac_ext <<_ACEOF
22863 #line $LINENO "configure"
22864 /* confdefs.h. */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 #include <math.h>
22871 main ()
22873 __builtin_labs(0);
22875 return 0;
22877 _ACEOF
22878 rm -f conftest.$ac_objext conftest$ac_exeext
22879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22880 (eval $ac_link) 2>&5
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } &&
22884 { ac_try='test -s conftest$ac_exeext'
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 glibcxx_cv_func___builtin_labs_link=yes
22891 else
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 glibcxx_cv_func___builtin_labs_link=no
22897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22902 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22903 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22904 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22905 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22906 cat >>confdefs.h <<_ACEOF
22907 #define ${ac_tr_func} 1
22908 _ACEOF
22915 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22916 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22917 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22918 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22919 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 else
22924 ac_ext=cc
22925 ac_cpp='$CXXCPP $CPPFLAGS'
22926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22930 cat >conftest.$ac_ext <<_ACEOF
22931 #line $LINENO "configure"
22932 /* confdefs.h. */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22937 #include <math.h>
22939 main ()
22941 __builtin_sqrtf(0);
22943 return 0;
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22948 (eval $ac_compile) 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } &&
22952 { ac_try='test -s conftest.$ac_objext'
22953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); }; }; then
22958 glibcxx_cv_func___builtin_sqrtf_use=yes
22959 else
22960 echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22963 glibcxx_cv_func___builtin_sqrtf_use=no
22965 rm -f conftest.$ac_objext conftest.$ac_ext
22966 ac_ext=c
22967 ac_cpp='$CPP $CPPFLAGS'
22968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22976 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22977 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22978 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22979 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22980 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22981 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22982 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22984 else
22986 if test x$gcc_no_link = xyes; then
22987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22989 { (exit 1); exit 1; }; }
22991 cat >conftest.$ac_ext <<_ACEOF
22992 #line $LINENO "configure"
22993 /* confdefs.h. */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h. */
22998 #include <math.h>
23000 main ()
23002 __builtin_sqrtf(0);
23004 return 0;
23006 _ACEOF
23007 rm -f conftest.$ac_objext conftest$ac_exeext
23008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23009 (eval $ac_link) 2>&5
23010 ac_status=$?
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } &&
23013 { ac_try='test -s conftest$ac_exeext'
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; }; then
23019 glibcxx_cv_func___builtin_sqrtf_link=yes
23020 else
23021 echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23024 glibcxx_cv_func___builtin_sqrtf_link=no
23026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23031 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
23032 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
23033 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
23034 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23035 cat >>confdefs.h <<_ACEOF
23036 #define ${ac_tr_func} 1
23037 _ACEOF
23043 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
23044 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
23045 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
23046 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 else
23052 ac_ext=cc
23053 ac_cpp='$CXXCPP $CPPFLAGS'
23054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23058 cat >conftest.$ac_ext <<_ACEOF
23059 #line $LINENO "configure"
23060 /* confdefs.h. */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h. */
23065 #include <math.h>
23067 main ()
23069 __builtin_sqrt(0);
23071 return 0;
23073 _ACEOF
23074 rm -f conftest.$ac_objext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23076 (eval $ac_compile) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
23080 { ac_try='test -s conftest.$ac_objext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 glibcxx_cv_func___builtin_sqrt_use=yes
23087 else
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23091 glibcxx_cv_func___builtin_sqrt_use=no
23093 rm -f conftest.$ac_objext conftest.$ac_ext
23094 ac_ext=c
23095 ac_cpp='$CPP $CPPFLAGS'
23096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23104 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
23105 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
23106 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
23107 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
23108 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
23109 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
23110 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23114 if test x$gcc_no_link = xyes; then
23115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23117 { (exit 1); exit 1; }; }
23119 cat >conftest.$ac_ext <<_ACEOF
23120 #line $LINENO "configure"
23121 /* confdefs.h. */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 #include <math.h>
23128 main ()
23130 __builtin_sqrt(0);
23132 return 0;
23134 _ACEOF
23135 rm -f conftest.$ac_objext conftest$ac_exeext
23136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23137 (eval $ac_link) 2>&5
23138 ac_status=$?
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try='test -s conftest$ac_exeext'
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23144 ac_status=$?
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 glibcxx_cv_func___builtin_sqrt_link=yes
23148 else
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 glibcxx_cv_func___builtin_sqrt_link=no
23154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23159 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
23160 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
23161 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
23162 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23163 cat >>confdefs.h <<_ACEOF
23164 #define ${ac_tr_func} 1
23165 _ACEOF
23171 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
23172 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
23173 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
23174 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23180 ac_ext=cc
23181 ac_cpp='$CXXCPP $CPPFLAGS'
23182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23186 cat >conftest.$ac_ext <<_ACEOF
23187 #line $LINENO "configure"
23188 /* confdefs.h. */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193 #include <math.h>
23195 main ()
23197 __builtin_sqrtl(0);
23199 return 0;
23201 _ACEOF
23202 rm -f conftest.$ac_objext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23204 (eval $ac_compile) 2>&5
23205 ac_status=$?
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
23208 { ac_try='test -s conftest.$ac_objext'
23209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210 (eval $ac_try) 2>&5
23211 ac_status=$?
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); }; }; then
23214 glibcxx_cv_func___builtin_sqrtl_use=yes
23215 else
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 glibcxx_cv_func___builtin_sqrtl_use=no
23221 rm -f conftest.$ac_objext conftest.$ac_ext
23222 ac_ext=c
23223 ac_cpp='$CPP $CPPFLAGS'
23224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23232 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
23233 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
23234 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
23235 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
23236 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
23237 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
23238 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23242 if test x$gcc_no_link = xyes; then
23243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23245 { (exit 1); exit 1; }; }
23247 cat >conftest.$ac_ext <<_ACEOF
23248 #line $LINENO "configure"
23249 /* confdefs.h. */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 #include <math.h>
23256 main ()
23258 __builtin_sqrtl(0);
23260 return 0;
23262 _ACEOF
23263 rm -f conftest.$ac_objext conftest$ac_exeext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23265 (eval $ac_link) 2>&5
23266 ac_status=$?
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
23269 { ac_try='test -s conftest$ac_exeext'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; }; then
23275 glibcxx_cv_func___builtin_sqrtl_link=yes
23276 else
23277 echo "$as_me: failed program was:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23280 glibcxx_cv_func___builtin_sqrtl_link=no
23282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23287 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
23288 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
23289 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
23290 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23291 cat >>confdefs.h <<_ACEOF
23292 #define ${ac_tr_func} 1
23293 _ACEOF
23300 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
23301 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
23302 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
23303 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23309 ac_ext=cc
23310 ac_cpp='$CXXCPP $CPPFLAGS'
23311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23315 cat >conftest.$ac_ext <<_ACEOF
23316 #line $LINENO "configure"
23317 /* confdefs.h. */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23322 #include <math.h>
23324 main ()
23326 __builtin_sinf(0);
23328 return 0;
23330 _ACEOF
23331 rm -f conftest.$ac_objext
23332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23333 (eval $ac_compile) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } &&
23337 { ac_try='test -s conftest.$ac_objext'
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }; then
23343 glibcxx_cv_func___builtin_sinf_use=yes
23344 else
23345 echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 glibcxx_cv_func___builtin_sinf_use=no
23350 rm -f conftest.$ac_objext conftest.$ac_ext
23351 ac_ext=c
23352 ac_cpp='$CPP $CPPFLAGS'
23353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23361 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
23362 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
23363 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
23364 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
23365 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
23366 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
23367 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 else
23371 if test x$gcc_no_link = xyes; then
23372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23374 { (exit 1); exit 1; }; }
23376 cat >conftest.$ac_ext <<_ACEOF
23377 #line $LINENO "configure"
23378 /* confdefs.h. */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 #include <math.h>
23385 main ()
23387 __builtin_sinf(0);
23389 return 0;
23391 _ACEOF
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23394 (eval $ac_link) 2>&5
23395 ac_status=$?
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
23398 { ac_try='test -s conftest$ac_exeext'
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 glibcxx_cv_func___builtin_sinf_link=yes
23405 else
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 glibcxx_cv_func___builtin_sinf_link=no
23411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23416 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
23417 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
23418 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
23419 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23420 cat >>confdefs.h <<_ACEOF
23421 #define ${ac_tr_func} 1
23422 _ACEOF
23428 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
23429 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
23430 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
23431 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23433 else
23437 ac_ext=cc
23438 ac_cpp='$CXXCPP $CPPFLAGS'
23439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23443 cat >conftest.$ac_ext <<_ACEOF
23444 #line $LINENO "configure"
23445 /* confdefs.h. */
23446 _ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h. */
23450 #include <math.h>
23452 main ()
23454 __builtin_sin(0);
23456 return 0;
23458 _ACEOF
23459 rm -f conftest.$ac_objext
23460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23461 (eval $ac_compile) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } &&
23465 { ac_try='test -s conftest.$ac_objext'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 glibcxx_cv_func___builtin_sin_use=yes
23472 else
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 glibcxx_cv_func___builtin_sin_use=no
23478 rm -f conftest.$ac_objext conftest.$ac_ext
23479 ac_ext=c
23480 ac_cpp='$CPP $CPPFLAGS'
23481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23489 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
23490 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
23491 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
23492 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
23493 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
23494 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
23495 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23499 if test x$gcc_no_link = xyes; then
23500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23502 { (exit 1); exit 1; }; }
23504 cat >conftest.$ac_ext <<_ACEOF
23505 #line $LINENO "configure"
23506 /* confdefs.h. */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 #include <math.h>
23513 main ()
23515 __builtin_sin(0);
23517 return 0;
23519 _ACEOF
23520 rm -f conftest.$ac_objext conftest$ac_exeext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23522 (eval $ac_link) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } &&
23526 { ac_try='test -s conftest$ac_exeext'
23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; }; then
23532 glibcxx_cv_func___builtin_sin_link=yes
23533 else
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 glibcxx_cv_func___builtin_sin_link=no
23539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23544 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
23545 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
23546 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
23547 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23548 cat >>confdefs.h <<_ACEOF
23549 #define ${ac_tr_func} 1
23550 _ACEOF
23556 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
23557 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
23558 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
23559 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23561 else
23565 ac_ext=cc
23566 ac_cpp='$CXXCPP $CPPFLAGS'
23567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23571 cat >conftest.$ac_ext <<_ACEOF
23572 #line $LINENO "configure"
23573 /* confdefs.h. */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23578 #include <math.h>
23580 main ()
23582 __builtin_sinl(0);
23584 return 0;
23586 _ACEOF
23587 rm -f conftest.$ac_objext
23588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23589 (eval $ac_compile) 2>&5
23590 ac_status=$?
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } &&
23593 { ac_try='test -s conftest.$ac_objext'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; }; then
23599 glibcxx_cv_func___builtin_sinl_use=yes
23600 else
23601 echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 glibcxx_cv_func___builtin_sinl_use=no
23606 rm -f conftest.$ac_objext conftest.$ac_ext
23607 ac_ext=c
23608 ac_cpp='$CPP $CPPFLAGS'
23609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23617 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23618 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23619 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23620 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23621 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23622 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23623 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23627 if test x$gcc_no_link = xyes; then
23628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23630 { (exit 1); exit 1; }; }
23632 cat >conftest.$ac_ext <<_ACEOF
23633 #line $LINENO "configure"
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 #include <math.h>
23641 main ()
23643 __builtin_sinl(0);
23645 return 0;
23647 _ACEOF
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } &&
23654 { ac_try='test -s conftest$ac_exeext'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 glibcxx_cv_func___builtin_sinl_link=yes
23661 else
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 glibcxx_cv_func___builtin_sinl_link=no
23667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23672 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23673 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23674 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23675 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23676 cat >>confdefs.h <<_ACEOF
23677 #define ${ac_tr_func} 1
23678 _ACEOF
23685 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23686 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23687 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23688 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23689 echo $ECHO_N "(cached) $ECHO_C" >&6
23690 else
23694 ac_ext=cc
23695 ac_cpp='$CXXCPP $CPPFLAGS'
23696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23700 cat >conftest.$ac_ext <<_ACEOF
23701 #line $LINENO "configure"
23702 /* confdefs.h. */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23707 #include <math.h>
23709 main ()
23711 __builtin_cosf(0);
23713 return 0;
23715 _ACEOF
23716 rm -f conftest.$ac_objext
23717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23718 (eval $ac_compile) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } &&
23722 { ac_try='test -s conftest.$ac_objext'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23725 ac_status=$?
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; }; then
23728 glibcxx_cv_func___builtin_cosf_use=yes
23729 else
23730 echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23733 glibcxx_cv_func___builtin_cosf_use=no
23735 rm -f conftest.$ac_objext conftest.$ac_ext
23736 ac_ext=c
23737 ac_cpp='$CPP $CPPFLAGS'
23738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23746 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23747 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23748 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23749 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23750 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23751 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23752 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 else
23756 if test x$gcc_no_link = xyes; then
23757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23759 { (exit 1); exit 1; }; }
23761 cat >conftest.$ac_ext <<_ACEOF
23762 #line $LINENO "configure"
23763 /* confdefs.h. */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 #include <math.h>
23770 main ()
23772 __builtin_cosf(0);
23774 return 0;
23776 _ACEOF
23777 rm -f conftest.$ac_objext conftest$ac_exeext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23779 (eval $ac_link) 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } &&
23783 { ac_try='test -s conftest$ac_exeext'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 glibcxx_cv_func___builtin_cosf_link=yes
23790 else
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 glibcxx_cv_func___builtin_cosf_link=no
23796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23801 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23802 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23803 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23804 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23805 cat >>confdefs.h <<_ACEOF
23806 #define ${ac_tr_func} 1
23807 _ACEOF
23813 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23814 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23815 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23816 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23818 else
23822 ac_ext=cc
23823 ac_cpp='$CXXCPP $CPPFLAGS'
23824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23828 cat >conftest.$ac_ext <<_ACEOF
23829 #line $LINENO "configure"
23830 /* confdefs.h. */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 #include <math.h>
23837 main ()
23839 __builtin_cos(0);
23841 return 0;
23843 _ACEOF
23844 rm -f conftest.$ac_objext
23845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23846 (eval $ac_compile) 2>&5
23847 ac_status=$?
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } &&
23850 { ac_try='test -s conftest.$ac_objext'
23851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852 (eval $ac_try) 2>&5
23853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; }; then
23856 glibcxx_cv_func___builtin_cos_use=yes
23857 else
23858 echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23861 glibcxx_cv_func___builtin_cos_use=no
23863 rm -f conftest.$ac_objext conftest.$ac_ext
23864 ac_ext=c
23865 ac_cpp='$CPP $CPPFLAGS'
23866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23874 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23875 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23876 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23877 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23878 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23879 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23880 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23881 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 else
23884 if test x$gcc_no_link = xyes; then
23885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23887 { (exit 1); exit 1; }; }
23889 cat >conftest.$ac_ext <<_ACEOF
23890 #line $LINENO "configure"
23891 /* confdefs.h. */
23892 _ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h. */
23896 #include <math.h>
23898 main ()
23900 __builtin_cos(0);
23902 return 0;
23904 _ACEOF
23905 rm -f conftest.$ac_objext conftest$ac_exeext
23906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23907 (eval $ac_link) 2>&5
23908 ac_status=$?
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } &&
23911 { ac_try='test -s conftest$ac_exeext'
23912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); }; }; then
23917 glibcxx_cv_func___builtin_cos_link=yes
23918 else
23919 echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23922 glibcxx_cv_func___builtin_cos_link=no
23924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23929 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23930 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23931 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23932 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23933 cat >>confdefs.h <<_ACEOF
23934 #define ${ac_tr_func} 1
23935 _ACEOF
23941 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23942 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23943 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23944 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23945 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23950 ac_ext=cc
23951 ac_cpp='$CXXCPP $CPPFLAGS'
23952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23956 cat >conftest.$ac_ext <<_ACEOF
23957 #line $LINENO "configure"
23958 /* confdefs.h. */
23959 _ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23963 #include <math.h>
23965 main ()
23967 __builtin_cosl(0);
23969 return 0;
23971 _ACEOF
23972 rm -f conftest.$ac_objext
23973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23974 (eval $ac_compile) 2>&5
23975 ac_status=$?
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); } &&
23978 { ac_try='test -s conftest.$ac_objext'
23979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980 (eval $ac_try) 2>&5
23981 ac_status=$?
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; }; then
23984 glibcxx_cv_func___builtin_cosl_use=yes
23985 else
23986 echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23989 glibcxx_cv_func___builtin_cosl_use=no
23991 rm -f conftest.$ac_objext conftest.$ac_ext
23992 ac_ext=c
23993 ac_cpp='$CPP $CPPFLAGS'
23994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24002 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
24003 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
24004 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
24005 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
24006 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
24007 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
24008 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
24009 echo $ECHO_N "(cached) $ECHO_C" >&6
24010 else
24012 if test x$gcc_no_link = xyes; then
24013 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24015 { (exit 1); exit 1; }; }
24017 cat >conftest.$ac_ext <<_ACEOF
24018 #line $LINENO "configure"
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 #include <math.h>
24026 main ()
24028 __builtin_cosl(0);
24030 return 0;
24032 _ACEOF
24033 rm -f conftest.$ac_objext conftest$ac_exeext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24035 (eval $ac_link) 2>&5
24036 ac_status=$?
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); } &&
24039 { ac_try='test -s conftest$ac_exeext'
24040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041 (eval $ac_try) 2>&5
24042 ac_status=$?
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); }; }; then
24045 glibcxx_cv_func___builtin_cosl_link=yes
24046 else
24047 echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24050 glibcxx_cv_func___builtin_cosl_link=no
24052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24057 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
24058 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
24059 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
24060 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24061 cat >>confdefs.h <<_ACEOF
24062 #define ${ac_tr_func} 1
24063 _ACEOF
24069 dummyvar=no
24070 if test x$dummyvar = x"yes"; then
24071 cat >>confdefs.h <<\_ACEOF
24072 #define HAVE___BUILTIN_ABS 1
24073 _ACEOF
24075 cat >>confdefs.h <<\_ACEOF
24076 #define HAVE___BUILTIN_LABS 1
24077 _ACEOF
24079 cat >>confdefs.h <<\_ACEOF
24080 #define HAVE___BUILTIN_COS 1
24081 _ACEOF
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE___BUILTIN_COSF 1
24085 _ACEOF
24087 cat >>confdefs.h <<\_ACEOF
24088 #define HAVE___BUILTIN_COSL 1
24089 _ACEOF
24091 cat >>confdefs.h <<\_ACEOF
24092 #define HAVE___BUILTIN_FABS 1
24093 _ACEOF
24095 cat >>confdefs.h <<\_ACEOF
24096 #define HAVE___BUILTIN_FABSF 1
24097 _ACEOF
24099 cat >>confdefs.h <<\_ACEOF
24100 #define HAVE___BUILTIN_FABSL 1
24101 _ACEOF
24103 cat >>confdefs.h <<\_ACEOF
24104 #define HAVE___BUILTIN_SIN 1
24105 _ACEOF
24107 cat >>confdefs.h <<\_ACEOF
24108 #define HAVE___BUILTIN_SINF 1
24109 _ACEOF
24111 cat >>confdefs.h <<\_ACEOF
24112 #define HAVE___BUILTIN_SINL 1
24113 _ACEOF
24115 cat >>confdefs.h <<\_ACEOF
24116 #define HAVE___BUILTIN_SQRT 1
24117 _ACEOF
24119 cat >>confdefs.h <<\_ACEOF
24120 #define HAVE___BUILTIN_SQRTF 1
24121 _ACEOF
24123 cat >>confdefs.h <<\_ACEOF
24124 #define HAVE___BUILTIN_SQRTL 1
24125 _ACEOF
24131 echo "$as_me:$LINENO: checking for main in -lm" >&5
24132 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
24133 if test "${ac_cv_lib_m_main+set}" = set; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136 ac_check_lib_save_LIBS=$LIBS
24137 LIBS="-lm $LIBS"
24138 if test x$gcc_no_link = xyes; then
24139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24141 { (exit 1); exit 1; }; }
24143 cat >conftest.$ac_ext <<_ACEOF
24144 #line $LINENO "configure"
24145 /* confdefs.h. */
24146 _ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24153 main ()
24155 main ();
24157 return 0;
24159 _ACEOF
24160 rm -f conftest.$ac_objext conftest$ac_exeext
24161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24162 (eval $ac_link) 2>&5
24163 ac_status=$?
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); } &&
24166 { ac_try='test -s conftest$ac_exeext'
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; }; then
24172 ac_cv_lib_m_main=yes
24173 else
24174 echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24177 ac_cv_lib_m_main=no
24179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24180 LIBS=$ac_check_lib_save_LIBS
24182 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
24183 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
24184 if test $ac_cv_lib_m_main = yes; then
24185 cat >>confdefs.h <<_ACEOF
24186 #define HAVE_LIBM 1
24187 _ACEOF
24189 LIBS="-lm $LIBS"
24195 for ac_func in nan copysignf
24197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24198 echo "$as_me:$LINENO: checking for $ac_func" >&5
24199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24200 if eval "test \"\${$as_ac_var+set}\" = set"; then
24201 echo $ECHO_N "(cached) $ECHO_C" >&6
24202 else
24203 if test x$gcc_no_link = xyes; then
24204 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24206 { (exit 1); exit 1; }; }
24208 cat >conftest.$ac_ext <<_ACEOF
24209 #line $LINENO "configure"
24210 /* confdefs.h. */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215 /* System header to define __stub macros and hopefully few prototypes,
24216 which can conflict with char $ac_func (); below.
24217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24218 <limits.h> exists even on freestanding compilers. */
24219 #ifdef __STDC__
24220 # include <limits.h>
24221 #else
24222 # include <assert.h>
24223 #endif
24224 /* Override any gcc2 internal prototype to avoid an error. */
24225 #ifdef __cplusplus
24226 extern "C"
24228 #endif
24229 /* We use char because int might match the return type of a gcc2
24230 builtin and then its argument prototype would still apply. */
24231 char $ac_func ();
24232 /* The GNU C library defines this for functions which it implements
24233 to always fail with ENOSYS. Some functions are actually named
24234 something starting with __ and the normal name is an alias. */
24235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24236 choke me
24237 #else
24238 char (*f) () = $ac_func;
24239 #endif
24240 #ifdef __cplusplus
24242 #endif
24245 main ()
24247 return f != $ac_func;
24249 return 0;
24251 _ACEOF
24252 rm -f conftest.$ac_objext conftest$ac_exeext
24253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24254 (eval $ac_link) 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); } &&
24258 { ac_try='test -s conftest$ac_exeext'
24259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; }; then
24264 eval "$as_ac_var=yes"
24265 else
24266 echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24269 eval "$as_ac_var=no"
24271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24275 if test `eval echo '${'$as_ac_var'}'` = yes; then
24276 cat >>confdefs.h <<_ACEOF
24277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24278 _ACEOF
24280 else
24281 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
24283 done
24287 for ac_func in __signbit
24289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24290 echo "$as_me:$LINENO: checking for $ac_func" >&5
24291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24292 if eval "test \"\${$as_ac_var+set}\" = set"; then
24293 echo $ECHO_N "(cached) $ECHO_C" >&6
24294 else
24295 if test x$gcc_no_link = xyes; then
24296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24298 { (exit 1); exit 1; }; }
24300 cat >conftest.$ac_ext <<_ACEOF
24301 #line $LINENO "configure"
24302 /* confdefs.h. */
24303 _ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h. */
24307 /* System header to define __stub macros and hopefully few prototypes,
24308 which can conflict with char $ac_func (); below.
24309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24310 <limits.h> exists even on freestanding compilers. */
24311 #ifdef __STDC__
24312 # include <limits.h>
24313 #else
24314 # include <assert.h>
24315 #endif
24316 /* Override any gcc2 internal prototype to avoid an error. */
24317 #ifdef __cplusplus
24318 extern "C"
24320 #endif
24321 /* We use char because int might match the return type of a gcc2
24322 builtin and then its argument prototype would still apply. */
24323 char $ac_func ();
24324 /* The GNU C library defines this for functions which it implements
24325 to always fail with ENOSYS. Some functions are actually named
24326 something starting with __ and the normal name is an alias. */
24327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24328 choke me
24329 #else
24330 char (*f) () = $ac_func;
24331 #endif
24332 #ifdef __cplusplus
24334 #endif
24337 main ()
24339 return f != $ac_func;
24341 return 0;
24343 _ACEOF
24344 rm -f conftest.$ac_objext conftest$ac_exeext
24345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24346 (eval $ac_link) 2>&5
24347 ac_status=$?
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } &&
24350 { ac_try='test -s conftest$ac_exeext'
24351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24352 (eval $ac_try) 2>&5
24353 ac_status=$?
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); }; }; then
24356 eval "$as_ac_var=yes"
24357 else
24358 echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24361 eval "$as_ac_var=no"
24363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24367 if test `eval echo '${'$as_ac_var'}'` = yes; then
24368 cat >>confdefs.h <<_ACEOF
24369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24370 _ACEOF
24372 else
24373 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
24375 done
24378 for ac_func in __signbitf
24380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24381 echo "$as_me:$LINENO: checking for $ac_func" >&5
24382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24383 if eval "test \"\${$as_ac_var+set}\" = set"; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24385 else
24386 if test x$gcc_no_link = xyes; then
24387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24389 { (exit 1); exit 1; }; }
24391 cat >conftest.$ac_ext <<_ACEOF
24392 #line $LINENO "configure"
24393 /* confdefs.h. */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 /* System header to define __stub macros and hopefully few prototypes,
24399 which can conflict with char $ac_func (); below.
24400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24401 <limits.h> exists even on freestanding compilers. */
24402 #ifdef __STDC__
24403 # include <limits.h>
24404 #else
24405 # include <assert.h>
24406 #endif
24407 /* Override any gcc2 internal prototype to avoid an error. */
24408 #ifdef __cplusplus
24409 extern "C"
24411 #endif
24412 /* We use char because int might match the return type of a gcc2
24413 builtin and then its argument prototype would still apply. */
24414 char $ac_func ();
24415 /* The GNU C library defines this for functions which it implements
24416 to always fail with ENOSYS. Some functions are actually named
24417 something starting with __ and the normal name is an alias. */
24418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24419 choke me
24420 #else
24421 char (*f) () = $ac_func;
24422 #endif
24423 #ifdef __cplusplus
24425 #endif
24428 main ()
24430 return f != $ac_func;
24432 return 0;
24434 _ACEOF
24435 rm -f conftest.$ac_objext conftest$ac_exeext
24436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24437 (eval $ac_link) 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
24441 { ac_try='test -s conftest$ac_exeext'
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
24447 eval "$as_ac_var=yes"
24448 else
24449 echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24452 eval "$as_ac_var=no"
24454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24458 if test `eval echo '${'$as_ac_var'}'` = yes; then
24459 cat >>confdefs.h <<_ACEOF
24460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24461 _ACEOF
24463 else
24464 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
24466 done
24469 if test x$ac_cv_func_copysignl = x"yes"; then
24471 for ac_func in __signbitl
24473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24474 echo "$as_me:$LINENO: checking for $ac_func" >&5
24475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24476 if eval "test \"\${$as_ac_var+set}\" = set"; then
24477 echo $ECHO_N "(cached) $ECHO_C" >&6
24478 else
24479 if test x$gcc_no_link = xyes; then
24480 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24481 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24482 { (exit 1); exit 1; }; }
24484 cat >conftest.$ac_ext <<_ACEOF
24485 #line $LINENO "configure"
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 /* System header to define __stub macros and hopefully few prototypes,
24492 which can conflict with char $ac_func (); below.
24493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24494 <limits.h> exists even on freestanding compilers. */
24495 #ifdef __STDC__
24496 # include <limits.h>
24497 #else
24498 # include <assert.h>
24499 #endif
24500 /* Override any gcc2 internal prototype to avoid an error. */
24501 #ifdef __cplusplus
24502 extern "C"
24504 #endif
24505 /* We use char because int might match the return type of a gcc2
24506 builtin and then its argument prototype would still apply. */
24507 char $ac_func ();
24508 /* The GNU C library defines this for functions which it implements
24509 to always fail with ENOSYS. Some functions are actually named
24510 something starting with __ and the normal name is an alias. */
24511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24512 choke me
24513 #else
24514 char (*f) () = $ac_func;
24515 #endif
24516 #ifdef __cplusplus
24518 #endif
24521 main ()
24523 return f != $ac_func;
24525 return 0;
24527 _ACEOF
24528 rm -f conftest.$ac_objext conftest$ac_exeext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24530 (eval $ac_link) 2>&5
24531 ac_status=$?
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
24534 { ac_try='test -s conftest$ac_exeext'
24535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24540 eval "$as_ac_var=yes"
24541 else
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 eval "$as_ac_var=no"
24547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24551 if test `eval echo '${'$as_ac_var'}'` = yes; then
24552 cat >>confdefs.h <<_ACEOF
24553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24554 _ACEOF
24556 else
24557 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
24559 done
24563 # XXX Review this. Nothing uses it.
24564 if test -n "$LIBMATHOBJS"; then
24565 need_libmath=yes
24570 # Test wchar.h for mbstate_t, which is needed for char_traits and
24571 # others even if wchar_t support is not on.
24572 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24573 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24574 cat >conftest.$ac_ext <<_ACEOF
24575 #line $LINENO "configure"
24576 /* confdefs.h. */
24577 _ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h. */
24581 #include <wchar.h>
24583 main ()
24585 mbstate_t teststate;
24587 return 0;
24589 _ACEOF
24590 rm -f conftest.$ac_objext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24592 (eval $ac_compile) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try='test -s conftest.$ac_objext'
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; }; then
24602 have_mbstate_t=yes
24603 else
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24607 have_mbstate_t=no
24609 rm -f conftest.$ac_objext conftest.$ac_ext
24610 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24611 echo "${ECHO_T}$have_mbstate_t" >&6
24612 if test x"$have_mbstate_t" = xyes; then
24613 cat >>confdefs.h <<\_ACEOF
24614 #define HAVE_MBSTATE_T 1
24615 _ACEOF
24619 # Sanity check for existence of ISO C99 headers for extended encoding.
24621 for ac_header in wchar.h
24623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24625 echo "$as_me:$LINENO: checking for $ac_header" >&5
24626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24628 echo $ECHO_N "(cached) $ECHO_C" >&6
24630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24632 else
24633 # Is the header compilable?
24634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24636 cat >conftest.$ac_ext <<_ACEOF
24637 #line $LINENO "configure"
24638 /* confdefs.h. */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 $ac_includes_default
24644 #include <$ac_header>
24645 _ACEOF
24646 rm -f conftest.$ac_objext
24647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648 (eval $ac_compile) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } &&
24652 { ac_try='test -s conftest.$ac_objext'
24653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; }; then
24658 ac_header_compiler=yes
24659 else
24660 echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24663 ac_header_compiler=no
24665 rm -f conftest.$ac_objext conftest.$ac_ext
24666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24667 echo "${ECHO_T}$ac_header_compiler" >&6
24669 # Is the header present?
24670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24672 cat >conftest.$ac_ext <<_ACEOF
24673 #line $LINENO "configure"
24674 /* confdefs.h. */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24679 #include <$ac_header>
24680 _ACEOF
24681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24683 ac_status=$?
24684 grep -v '^ *+' conftest.er1 >conftest.err
24685 rm -f conftest.er1
24686 cat conftest.err >&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); } >/dev/null; then
24689 if test -s conftest.err; then
24690 ac_cpp_err=$ac_c_preproc_warn_flag
24691 else
24692 ac_cpp_err=
24694 else
24695 ac_cpp_err=yes
24697 if test -z "$ac_cpp_err"; then
24698 ac_header_preproc=yes
24699 else
24700 echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24703 ac_header_preproc=no
24705 rm -f conftest.err conftest.$ac_ext
24706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24707 echo "${ECHO_T}$ac_header_preproc" >&6
24709 # So? What about this header?
24710 case $ac_header_compiler:$ac_header_preproc in
24711 yes:no )
24712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24717 cat <<\_ASBOX
24718 ## ------------------------------------ ##
24719 ## Report this to bug-autoconf@gnu.org. ##
24720 ## ------------------------------------ ##
24721 _ASBOX
24723 sed "s/^/$as_me: WARNING: /" >&2
24725 no:yes )
24726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24733 cat <<\_ASBOX
24734 ## ------------------------------------ ##
24735 ## Report this to bug-autoconf@gnu.org. ##
24736 ## ------------------------------------ ##
24737 _ASBOX
24739 sed "s/^/$as_me: WARNING: /" >&2
24741 esac
24742 echo "$as_me:$LINENO: checking for $ac_header" >&5
24743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24745 echo $ECHO_N "(cached) $ECHO_C" >&6
24746 else
24747 eval "$as_ac_Header=$ac_header_preproc"
24749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24754 cat >>confdefs.h <<_ACEOF
24755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24756 _ACEOF
24757 ac_has_wchar_h=yes
24758 else
24759 ac_has_wchar_h=no
24762 done
24765 for ac_header in wctype.h
24767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24769 echo "$as_me:$LINENO: checking for $ac_header" >&5
24770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24772 echo $ECHO_N "(cached) $ECHO_C" >&6
24774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24776 else
24777 # Is the header compilable?
24778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24780 cat >conftest.$ac_ext <<_ACEOF
24781 #line $LINENO "configure"
24782 /* confdefs.h. */
24783 _ACEOF
24784 cat confdefs.h >>conftest.$ac_ext
24785 cat >>conftest.$ac_ext <<_ACEOF
24786 /* end confdefs.h. */
24787 $ac_includes_default
24788 #include <$ac_header>
24789 _ACEOF
24790 rm -f conftest.$ac_objext
24791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24792 (eval $ac_compile) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } &&
24796 { ac_try='test -s conftest.$ac_objext'
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; }; then
24802 ac_header_compiler=yes
24803 else
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ac_header_compiler=no
24809 rm -f conftest.$ac_objext conftest.$ac_ext
24810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24811 echo "${ECHO_T}$ac_header_compiler" >&6
24813 # Is the header present?
24814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24816 cat >conftest.$ac_ext <<_ACEOF
24817 #line $LINENO "configure"
24818 /* confdefs.h. */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24823 #include <$ac_header>
24824 _ACEOF
24825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24827 ac_status=$?
24828 grep -v '^ *+' conftest.er1 >conftest.err
24829 rm -f conftest.er1
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } >/dev/null; then
24833 if test -s conftest.err; then
24834 ac_cpp_err=$ac_c_preproc_warn_flag
24835 else
24836 ac_cpp_err=
24838 else
24839 ac_cpp_err=yes
24841 if test -z "$ac_cpp_err"; then
24842 ac_header_preproc=yes
24843 else
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24847 ac_header_preproc=no
24849 rm -f conftest.err conftest.$ac_ext
24850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24851 echo "${ECHO_T}$ac_header_preproc" >&6
24853 # So? What about this header?
24854 case $ac_header_compiler:$ac_header_preproc in
24855 yes:no )
24856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24861 cat <<\_ASBOX
24862 ## ------------------------------------ ##
24863 ## Report this to bug-autoconf@gnu.org. ##
24864 ## ------------------------------------ ##
24865 _ASBOX
24867 sed "s/^/$as_me: WARNING: /" >&2
24869 no:yes )
24870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24877 cat <<\_ASBOX
24878 ## ------------------------------------ ##
24879 ## Report this to bug-autoconf@gnu.org. ##
24880 ## ------------------------------------ ##
24881 _ASBOX
24883 sed "s/^/$as_me: WARNING: /" >&2
24885 esac
24886 echo "$as_me:$LINENO: checking for $ac_header" >&5
24887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24889 echo $ECHO_N "(cached) $ECHO_C" >&6
24890 else
24891 eval "$as_ac_Header=$ac_header_preproc"
24893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24898 cat >>confdefs.h <<_ACEOF
24899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24900 _ACEOF
24901 ac_has_wctype_h=yes
24902 else
24903 ac_has_wctype_h=no
24906 done
24909 # Only continue checking if the ISO C99 headers exist and support is on.
24910 if test x"$ac_has_wchar_h" = xyes &&
24911 test x"$ac_has_wctype_h" = xyes &&
24912 test x"$enable_c_mbchar" != xno; then
24914 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24915 # numeric_limits can instantiate type_traits<wchar_t>
24916 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24917 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24918 cat >conftest.$ac_ext <<_ACEOF
24919 #line $LINENO "configure"
24920 /* confdefs.h. */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 #include <wchar.h>
24927 main ()
24929 int i = WCHAR_MIN; int j = WCHAR_MAX;
24931 return 0;
24933 _ACEOF
24934 rm -f conftest.$ac_objext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24936 (eval $ac_compile) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } &&
24940 { ac_try='test -s conftest.$ac_objext'
24941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942 (eval $ac_try) 2>&5
24943 ac_status=$?
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; }; then
24946 has_wchar_minmax=yes
24947 else
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 has_wchar_minmax=no
24953 rm -f conftest.$ac_objext conftest.$ac_ext
24954 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24955 echo "${ECHO_T}$has_wchar_minmax" >&6
24957 # Test wchar.h for WEOF, which is what we use to determine whether
24958 # to specialize for char_traits<wchar_t> or not.
24959 echo "$as_me:$LINENO: checking for WEOF" >&5
24960 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24961 cat >conftest.$ac_ext <<_ACEOF
24962 #line $LINENO "configure"
24963 /* confdefs.h. */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24969 #include <wchar.h>
24970 #include <stddef.h>
24972 main ()
24974 wint_t i = WEOF;
24976 return 0;
24978 _ACEOF
24979 rm -f conftest.$ac_objext
24980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24981 (eval $ac_compile) 2>&5
24982 ac_status=$?
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } &&
24985 { ac_try='test -s conftest.$ac_objext'
24986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); }; }; then
24991 has_weof=yes
24992 else
24993 echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24996 has_weof=no
24998 rm -f conftest.$ac_objext conftest.$ac_ext
24999 echo "$as_me:$LINENO: result: $has_weof" >&5
25000 echo "${ECHO_T}$has_weof" >&6
25002 # Tests for wide character functions used in char_traits<wchar_t>.
25003 ac_wfuncs=yes
25010 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
25012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25013 echo "$as_me:$LINENO: checking for $ac_func" >&5
25014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25015 if eval "test \"\${$as_ac_var+set}\" = set"; then
25016 echo $ECHO_N "(cached) $ECHO_C" >&6
25017 else
25018 if test x$gcc_no_link = xyes; then
25019 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25021 { (exit 1); exit 1; }; }
25023 cat >conftest.$ac_ext <<_ACEOF
25024 #line $LINENO "configure"
25025 /* confdefs.h. */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 /* System header to define __stub macros and hopefully few prototypes,
25031 which can conflict with char $ac_func (); below.
25032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25033 <limits.h> exists even on freestanding compilers. */
25034 #ifdef __STDC__
25035 # include <limits.h>
25036 #else
25037 # include <assert.h>
25038 #endif
25039 /* Override any gcc2 internal prototype to avoid an error. */
25040 #ifdef __cplusplus
25041 extern "C"
25043 #endif
25044 /* We use char because int might match the return type of a gcc2
25045 builtin and then its argument prototype would still apply. */
25046 char $ac_func ();
25047 /* The GNU C library defines this for functions which it implements
25048 to always fail with ENOSYS. Some functions are actually named
25049 something starting with __ and the normal name is an alias. */
25050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25051 choke me
25052 #else
25053 char (*f) () = $ac_func;
25054 #endif
25055 #ifdef __cplusplus
25057 #endif
25060 main ()
25062 return f != $ac_func;
25064 return 0;
25066 _ACEOF
25067 rm -f conftest.$ac_objext conftest$ac_exeext
25068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25069 (eval $ac_link) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); } &&
25073 { ac_try='test -s conftest$ac_exeext'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 eval "$as_ac_var=yes"
25080 else
25081 echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25084 eval "$as_ac_var=no"
25086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25090 if test `eval echo '${'$as_ac_var'}'` = yes; then
25091 cat >>confdefs.h <<_ACEOF
25092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25093 _ACEOF
25095 else
25096 ac_wfuncs=no
25098 done
25101 # Checks for names injected into std:: by the c_std headers.
25152 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
25153 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
25154 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
25155 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
25156 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
25157 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
25159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25160 echo "$as_me:$LINENO: checking for $ac_func" >&5
25161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25162 if eval "test \"\${$as_ac_var+set}\" = set"; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25164 else
25165 if test x$gcc_no_link = xyes; then
25166 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25168 { (exit 1); exit 1; }; }
25170 cat >conftest.$ac_ext <<_ACEOF
25171 #line $LINENO "configure"
25172 /* confdefs.h. */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 /* System header to define __stub macros and hopefully few prototypes,
25178 which can conflict with char $ac_func (); below.
25179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25180 <limits.h> exists even on freestanding compilers. */
25181 #ifdef __STDC__
25182 # include <limits.h>
25183 #else
25184 # include <assert.h>
25185 #endif
25186 /* Override any gcc2 internal prototype to avoid an error. */
25187 #ifdef __cplusplus
25188 extern "C"
25190 #endif
25191 /* We use char because int might match the return type of a gcc2
25192 builtin and then its argument prototype would still apply. */
25193 char $ac_func ();
25194 /* The GNU C library defines this for functions which it implements
25195 to always fail with ENOSYS. Some functions are actually named
25196 something starting with __ and the normal name is an alias. */
25197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25198 choke me
25199 #else
25200 char (*f) () = $ac_func;
25201 #endif
25202 #ifdef __cplusplus
25204 #endif
25207 main ()
25209 return f != $ac_func;
25211 return 0;
25213 _ACEOF
25214 rm -f conftest.$ac_objext conftest$ac_exeext
25215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25216 (eval $ac_link) 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } &&
25220 { ac_try='test -s conftest$ac_exeext'
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 eval "$as_ac_var=yes"
25227 else
25228 echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25231 eval "$as_ac_var=no"
25233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25237 if test `eval echo '${'$as_ac_var'}'` = yes; then
25238 cat >>confdefs.h <<_ACEOF
25239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25240 _ACEOF
25242 else
25243 ac_wfuncs=no
25245 done
25248 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
25249 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
25250 if test x"$has_weof" = xyes &&
25251 test x"$has_wchar_minmax" = xyes &&
25252 test x"$ac_wfuncs" = xyes;
25253 then
25254 ac_isoC99_wchar_t=yes
25255 else
25256 ac_isoC99_wchar_t=no
25258 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
25259 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
25261 # Use iconv for wchar_t to char conversions. As such, check for
25262 # X/Open Portability Guide, version 2 features (XPG2).
25263 if test "${ac_cv_header_iconv_h+set}" = set; then
25264 echo "$as_me:$LINENO: checking for iconv.h" >&5
25265 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25266 if test "${ac_cv_header_iconv_h+set}" = set; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25269 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25270 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25271 else
25272 # Is the header compilable?
25273 echo "$as_me:$LINENO: checking iconv.h usability" >&5
25274 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
25275 cat >conftest.$ac_ext <<_ACEOF
25276 #line $LINENO "configure"
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25282 $ac_includes_default
25283 #include <iconv.h>
25284 _ACEOF
25285 rm -f conftest.$ac_objext
25286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25287 (eval $ac_compile) 2>&5
25288 ac_status=$?
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } &&
25291 { ac_try='test -s conftest.$ac_objext'
25292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); }; }; then
25297 ac_header_compiler=yes
25298 else
25299 echo "$as_me: failed program was:" >&5
25300 sed 's/^/| /' conftest.$ac_ext >&5
25302 ac_header_compiler=no
25304 rm -f conftest.$ac_objext conftest.$ac_ext
25305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25306 echo "${ECHO_T}$ac_header_compiler" >&6
25308 # Is the header present?
25309 echo "$as_me:$LINENO: checking iconv.h presence" >&5
25310 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
25311 cat >conftest.$ac_ext <<_ACEOF
25312 #line $LINENO "configure"
25313 /* confdefs.h. */
25314 _ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h. */
25318 #include <iconv.h>
25319 _ACEOF
25320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25322 ac_status=$?
25323 grep -v '^ *+' conftest.er1 >conftest.err
25324 rm -f conftest.er1
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } >/dev/null; then
25328 if test -s conftest.err; then
25329 ac_cpp_err=$ac_c_preproc_warn_flag
25330 else
25331 ac_cpp_err=
25333 else
25334 ac_cpp_err=yes
25336 if test -z "$ac_cpp_err"; then
25337 ac_header_preproc=yes
25338 else
25339 echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25342 ac_header_preproc=no
25344 rm -f conftest.err conftest.$ac_ext
25345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25346 echo "${ECHO_T}$ac_header_preproc" >&6
25348 # So? What about this header?
25349 case $ac_header_compiler:$ac_header_preproc in
25350 yes:no )
25351 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
25352 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25353 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25354 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25356 cat <<\_ASBOX
25357 ## ------------------------------------ ##
25358 ## Report this to bug-autoconf@gnu.org. ##
25359 ## ------------------------------------ ##
25360 _ASBOX
25362 sed "s/^/$as_me: WARNING: /" >&2
25364 no:yes )
25365 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
25366 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
25368 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25370 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25372 cat <<\_ASBOX
25373 ## ------------------------------------ ##
25374 ## Report this to bug-autoconf@gnu.org. ##
25375 ## ------------------------------------ ##
25376 _ASBOX
25378 sed "s/^/$as_me: WARNING: /" >&2
25380 esac
25381 echo "$as_me:$LINENO: checking for iconv.h" >&5
25382 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25383 if test "${ac_cv_header_iconv_h+set}" = set; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25385 else
25386 ac_cv_header_iconv_h=$ac_header_preproc
25388 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25389 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25392 if test $ac_cv_header_iconv_h = yes; then
25393 ac_has_iconv_h=yes
25394 else
25395 ac_has_iconv_h=no
25399 if test "${ac_cv_header_langinfo_h+set}" = set; then
25400 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25401 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25402 if test "${ac_cv_header_langinfo_h+set}" = set; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25405 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25406 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25407 else
25408 # Is the header compilable?
25409 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
25410 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
25411 cat >conftest.$ac_ext <<_ACEOF
25412 #line $LINENO "configure"
25413 /* confdefs.h. */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25418 $ac_includes_default
25419 #include <langinfo.h>
25420 _ACEOF
25421 rm -f conftest.$ac_objext
25422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25423 (eval $ac_compile) 2>&5
25424 ac_status=$?
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } &&
25427 { ac_try='test -s conftest.$ac_objext'
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; }; then
25433 ac_header_compiler=yes
25434 else
25435 echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25438 ac_header_compiler=no
25440 rm -f conftest.$ac_objext conftest.$ac_ext
25441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25442 echo "${ECHO_T}$ac_header_compiler" >&6
25444 # Is the header present?
25445 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
25446 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25448 #line $LINENO "configure"
25449 /* confdefs.h. */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 #include <langinfo.h>
25455 _ACEOF
25456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25458 ac_status=$?
25459 grep -v '^ *+' conftest.er1 >conftest.err
25460 rm -f conftest.er1
25461 cat conftest.err >&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } >/dev/null; then
25464 if test -s conftest.err; then
25465 ac_cpp_err=$ac_c_preproc_warn_flag
25466 else
25467 ac_cpp_err=
25469 else
25470 ac_cpp_err=yes
25472 if test -z "$ac_cpp_err"; then
25473 ac_header_preproc=yes
25474 else
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 ac_header_preproc=no
25480 rm -f conftest.err conftest.$ac_ext
25481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25482 echo "${ECHO_T}$ac_header_preproc" >&6
25484 # So? What about this header?
25485 case $ac_header_compiler:$ac_header_preproc in
25486 yes:no )
25487 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
25488 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25489 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25490 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25492 cat <<\_ASBOX
25493 ## ------------------------------------ ##
25494 ## Report this to bug-autoconf@gnu.org. ##
25495 ## ------------------------------------ ##
25496 _ASBOX
25498 sed "s/^/$as_me: WARNING: /" >&2
25500 no:yes )
25501 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
25502 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
25503 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
25504 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25506 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25508 cat <<\_ASBOX
25509 ## ------------------------------------ ##
25510 ## Report this to bug-autoconf@gnu.org. ##
25511 ## ------------------------------------ ##
25512 _ASBOX
25514 sed "s/^/$as_me: WARNING: /" >&2
25516 esac
25517 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25518 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25519 if test "${ac_cv_header_langinfo_h+set}" = set; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25521 else
25522 ac_cv_header_langinfo_h=$ac_header_preproc
25524 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25525 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25528 if test $ac_cv_header_langinfo_h = yes; then
25529 ac_has_langinfo_h=yes
25530 else
25531 ac_has_langinfo_h=no
25536 # Check for existence of libiconv.a providing XPG2 wchar_t support.
25537 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
25538 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
25539 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
25541 else
25542 ac_check_lib_save_LIBS=$LIBS
25543 LIBS="-liconv $LIBS"
25544 if test x$gcc_no_link = xyes; then
25545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25547 { (exit 1); exit 1; }; }
25549 cat >conftest.$ac_ext <<_ACEOF
25550 #line $LINENO "configure"
25551 /* confdefs.h. */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25557 /* Override any gcc2 internal prototype to avoid an error. */
25558 #ifdef __cplusplus
25559 extern "C"
25560 #endif
25561 /* We use char because int might match the return type of a gcc2
25562 builtin and then its argument prototype would still apply. */
25563 char iconv ();
25565 main ()
25567 iconv ();
25569 return 0;
25571 _ACEOF
25572 rm -f conftest.$ac_objext conftest$ac_exeext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25574 (eval $ac_link) 2>&5
25575 ac_status=$?
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } &&
25578 { ac_try='test -s conftest$ac_exeext'
25579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580 (eval $ac_try) 2>&5
25581 ac_status=$?
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; }; then
25584 ac_cv_lib_iconv_iconv=yes
25585 else
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_cv_lib_iconv_iconv=no
25591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25592 LIBS=$ac_check_lib_save_LIBS
25594 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
25595 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
25596 if test $ac_cv_lib_iconv_iconv = yes; then
25597 libiconv="-liconv"
25600 ac_save_LIBS="$LIBS"
25601 LIBS="$LIBS $libiconv"
25607 for ac_func in iconv_open iconv_close iconv nl_langinfo
25609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25610 echo "$as_me:$LINENO: checking for $ac_func" >&5
25611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25612 if eval "test \"\${$as_ac_var+set}\" = set"; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 else
25615 if test x$gcc_no_link = xyes; then
25616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25618 { (exit 1); exit 1; }; }
25620 cat >conftest.$ac_ext <<_ACEOF
25621 #line $LINENO "configure"
25622 /* confdefs.h. */
25623 _ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25627 /* System header to define __stub macros and hopefully few prototypes,
25628 which can conflict with char $ac_func (); below.
25629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25630 <limits.h> exists even on freestanding compilers. */
25631 #ifdef __STDC__
25632 # include <limits.h>
25633 #else
25634 # include <assert.h>
25635 #endif
25636 /* Override any gcc2 internal prototype to avoid an error. */
25637 #ifdef __cplusplus
25638 extern "C"
25640 #endif
25641 /* We use char because int might match the return type of a gcc2
25642 builtin and then its argument prototype would still apply. */
25643 char $ac_func ();
25644 /* The GNU C library defines this for functions which it implements
25645 to always fail with ENOSYS. Some functions are actually named
25646 something starting with __ and the normal name is an alias. */
25647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25648 choke me
25649 #else
25650 char (*f) () = $ac_func;
25651 #endif
25652 #ifdef __cplusplus
25654 #endif
25657 main ()
25659 return f != $ac_func;
25661 return 0;
25663 _ACEOF
25664 rm -f conftest.$ac_objext conftest$ac_exeext
25665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25666 (eval $ac_link) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } &&
25670 { ac_try='test -s conftest$ac_exeext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25673 ac_status=$?
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 eval "$as_ac_var=yes"
25677 else
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25681 eval "$as_ac_var=no"
25683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25687 if test `eval echo '${'$as_ac_var'}'` = yes; then
25688 cat >>confdefs.h <<_ACEOF
25689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25690 _ACEOF
25691 ac_XPG2funcs=yes
25692 else
25693 ac_XPG2funcs=no
25695 done
25698 LIBS="$ac_save_LIBS"
25700 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25701 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25702 if test x"$ac_has_iconv_h" = xyes &&
25703 test x"$ac_has_langinfo_h" = xyes &&
25704 test x"$ac_XPG2funcs" = xyes;
25705 then
25706 ac_XPG2_wchar_t=yes
25707 else
25708 ac_XPG2_wchar_t=no
25710 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25711 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25713 # At the moment, only enable wchar_t specializations if all the
25714 # above support is present.
25715 if test x"$ac_isoC99_wchar_t" = xyes &&
25716 test x"$ac_XPG2_wchar_t" = xyes;
25717 then
25718 cat >>confdefs.h <<\_ACEOF
25719 #define _GLIBCXX_USE_WCHAR_T 1
25720 _ACEOF
25722 enable_wchar_t=yes
25725 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25726 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25727 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25728 echo "${ECHO_T}$enable_wchar_t" >&6
25731 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25732 ac_save_CXXFLAGS="$CXXFLAGS"
25733 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25736 echo "$as_me:$LINENO: checking for strtold declaration" >&5
25737 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25738 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25739 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25741 else
25745 ac_ext=cc
25746 ac_cpp='$CXXCPP $CPPFLAGS'
25747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25751 cat >conftest.$ac_ext <<_ACEOF
25752 #line $LINENO "configure"
25753 /* confdefs.h. */
25754 _ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h. */
25758 #include <stdlib.h>
25760 main ()
25762 strtold(0, 0);
25764 return 0;
25766 _ACEOF
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769 (eval $ac_compile) 2>&5
25770 ac_status=$?
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); } &&
25773 { ac_try='test -s conftest.$ac_objext'
25774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775 (eval $ac_try) 2>&5
25776 ac_status=$?
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); }; }; then
25779 glibcxx_cv_func_strtold_use=yes
25780 else
25781 echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25784 glibcxx_cv_func_strtold_use=no
25786 rm -f conftest.$ac_objext conftest.$ac_ext
25787 ac_ext=c
25788 ac_cpp='$CPP $CPPFLAGS'
25789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25797 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25798 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25799 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25801 for ac_func in strtold
25803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25804 echo "$as_me:$LINENO: checking for $ac_func" >&5
25805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25806 if eval "test \"\${$as_ac_var+set}\" = set"; then
25807 echo $ECHO_N "(cached) $ECHO_C" >&6
25808 else
25809 if test x$gcc_no_link = xyes; then
25810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25812 { (exit 1); exit 1; }; }
25814 cat >conftest.$ac_ext <<_ACEOF
25815 #line $LINENO "configure"
25816 /* confdefs.h. */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25821 /* System header to define __stub macros and hopefully few prototypes,
25822 which can conflict with char $ac_func (); below.
25823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25824 <limits.h> exists even on freestanding compilers. */
25825 #ifdef __STDC__
25826 # include <limits.h>
25827 #else
25828 # include <assert.h>
25829 #endif
25830 /* Override any gcc2 internal prototype to avoid an error. */
25831 #ifdef __cplusplus
25832 extern "C"
25834 #endif
25835 /* We use char because int might match the return type of a gcc2
25836 builtin and then its argument prototype would still apply. */
25837 char $ac_func ();
25838 /* The GNU C library defines this for functions which it implements
25839 to always fail with ENOSYS. Some functions are actually named
25840 something starting with __ and the normal name is an alias. */
25841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25842 choke me
25843 #else
25844 char (*f) () = $ac_func;
25845 #endif
25846 #ifdef __cplusplus
25848 #endif
25851 main ()
25853 return f != $ac_func;
25855 return 0;
25857 _ACEOF
25858 rm -f conftest.$ac_objext conftest$ac_exeext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25860 (eval $ac_link) 2>&5
25861 ac_status=$?
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } &&
25864 { ac_try='test -s conftest$ac_exeext'
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25867 ac_status=$?
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; }; then
25870 eval "$as_ac_var=yes"
25871 else
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25875 eval "$as_ac_var=no"
25877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25881 if test `eval echo '${'$as_ac_var'}'` = yes; then
25882 cat >>confdefs.h <<_ACEOF
25883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25884 _ACEOF
25887 done
25892 echo "$as_me:$LINENO: checking for strtof declaration" >&5
25893 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25894 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25895 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25901 ac_ext=cc
25902 ac_cpp='$CXXCPP $CPPFLAGS'
25903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25907 cat >conftest.$ac_ext <<_ACEOF
25908 #line $LINENO "configure"
25909 /* confdefs.h. */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h. */
25914 #include <stdlib.h>
25916 main ()
25918 strtof(0, 0);
25920 return 0;
25922 _ACEOF
25923 rm -f conftest.$ac_objext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25925 (eval $ac_compile) 2>&5
25926 ac_status=$?
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } &&
25929 { ac_try='test -s conftest.$ac_objext'
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; }; then
25935 glibcxx_cv_func_strtof_use=yes
25936 else
25937 echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 glibcxx_cv_func_strtof_use=no
25942 rm -f conftest.$ac_objext conftest.$ac_ext
25943 ac_ext=c
25944 ac_cpp='$CPP $CPPFLAGS'
25945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25953 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
25954 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
25955 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
25957 for ac_func in strtof
25959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25960 echo "$as_me:$LINENO: checking for $ac_func" >&5
25961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25962 if eval "test \"\${$as_ac_var+set}\" = set"; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25964 else
25965 if test x$gcc_no_link = xyes; then
25966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25968 { (exit 1); exit 1; }; }
25970 cat >conftest.$ac_ext <<_ACEOF
25971 #line $LINENO "configure"
25972 /* confdefs.h. */
25973 _ACEOF
25974 cat confdefs.h >>conftest.$ac_ext
25975 cat >>conftest.$ac_ext <<_ACEOF
25976 /* end confdefs.h. */
25977 /* System header to define __stub macros and hopefully few prototypes,
25978 which can conflict with char $ac_func (); below.
25979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25980 <limits.h> exists even on freestanding compilers. */
25981 #ifdef __STDC__
25982 # include <limits.h>
25983 #else
25984 # include <assert.h>
25985 #endif
25986 /* Override any gcc2 internal prototype to avoid an error. */
25987 #ifdef __cplusplus
25988 extern "C"
25990 #endif
25991 /* We use char because int might match the return type of a gcc2
25992 builtin and then its argument prototype would still apply. */
25993 char $ac_func ();
25994 /* The GNU C library defines this for functions which it implements
25995 to always fail with ENOSYS. Some functions are actually named
25996 something starting with __ and the normal name is an alias. */
25997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25998 choke me
25999 #else
26000 char (*f) () = $ac_func;
26001 #endif
26002 #ifdef __cplusplus
26004 #endif
26007 main ()
26009 return f != $ac_func;
26011 return 0;
26013 _ACEOF
26014 rm -f conftest.$ac_objext conftest$ac_exeext
26015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26016 (eval $ac_link) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } &&
26020 { ac_try='test -s conftest$ac_exeext'
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026 eval "$as_ac_var=yes"
26027 else
26028 echo "$as_me: failed program was:" >&5
26029 sed 's/^/| /' conftest.$ac_ext >&5
26031 eval "$as_ac_var=no"
26033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26037 if test `eval echo '${'$as_ac_var'}'` = yes; then
26038 cat >>confdefs.h <<_ACEOF
26039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26040 _ACEOF
26043 done
26048 for ac_func in drand48
26050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26051 echo "$as_me:$LINENO: checking for $ac_func" >&5
26052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26053 if eval "test \"\${$as_ac_var+set}\" = set"; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
26055 else
26056 if test x$gcc_no_link = xyes; then
26057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26059 { (exit 1); exit 1; }; }
26061 cat >conftest.$ac_ext <<_ACEOF
26062 #line $LINENO "configure"
26063 /* confdefs.h. */
26064 _ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h. */
26068 /* System header to define __stub macros and hopefully few prototypes,
26069 which can conflict with char $ac_func (); below.
26070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26071 <limits.h> exists even on freestanding compilers. */
26072 #ifdef __STDC__
26073 # include <limits.h>
26074 #else
26075 # include <assert.h>
26076 #endif
26077 /* Override any gcc2 internal prototype to avoid an error. */
26078 #ifdef __cplusplus
26079 extern "C"
26081 #endif
26082 /* We use char because int might match the return type of a gcc2
26083 builtin and then its argument prototype would still apply. */
26084 char $ac_func ();
26085 /* The GNU C library defines this for functions which it implements
26086 to always fail with ENOSYS. Some functions are actually named
26087 something starting with __ and the normal name is an alias. */
26088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26089 choke me
26090 #else
26091 char (*f) () = $ac_func;
26092 #endif
26093 #ifdef __cplusplus
26095 #endif
26098 main ()
26100 return f != $ac_func;
26102 return 0;
26104 _ACEOF
26105 rm -f conftest.$ac_objext conftest$ac_exeext
26106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26107 (eval $ac_link) 2>&5
26108 ac_status=$?
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } &&
26111 { ac_try='test -s conftest$ac_exeext'
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; }; then
26117 eval "$as_ac_var=yes"
26118 else
26119 echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26122 eval "$as_ac_var=no"
26124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26128 if test `eval echo '${'$as_ac_var'}'` = yes; then
26129 cat >>confdefs.h <<_ACEOF
26130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26131 _ACEOF
26134 done
26137 CXXFLAGS="$ac_save_CXXFLAGS"
26140 # For showmanyc_helper().
26143 for ac_header in sys/ioctl.h sys/filio.h
26145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26147 echo "$as_me:$LINENO: checking for $ac_header" >&5
26148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26150 echo $ECHO_N "(cached) $ECHO_C" >&6
26152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26154 else
26155 # Is the header compilable?
26156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26158 cat >conftest.$ac_ext <<_ACEOF
26159 #line $LINENO "configure"
26160 /* confdefs.h. */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 $ac_includes_default
26166 #include <$ac_header>
26167 _ACEOF
26168 rm -f conftest.$ac_objext
26169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26170 (eval $ac_compile) 2>&5
26171 ac_status=$?
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); } &&
26174 { ac_try='test -s conftest.$ac_objext'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26180 ac_header_compiler=yes
26181 else
26182 echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26185 ac_header_compiler=no
26187 rm -f conftest.$ac_objext conftest.$ac_ext
26188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26189 echo "${ECHO_T}$ac_header_compiler" >&6
26191 # Is the header present?
26192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26194 cat >conftest.$ac_ext <<_ACEOF
26195 #line $LINENO "configure"
26196 /* confdefs.h. */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h. */
26201 #include <$ac_header>
26202 _ACEOF
26203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26205 ac_status=$?
26206 grep -v '^ *+' conftest.er1 >conftest.err
26207 rm -f conftest.er1
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } >/dev/null; then
26211 if test -s conftest.err; then
26212 ac_cpp_err=$ac_c_preproc_warn_flag
26213 else
26214 ac_cpp_err=
26216 else
26217 ac_cpp_err=yes
26219 if test -z "$ac_cpp_err"; then
26220 ac_header_preproc=yes
26221 else
26222 echo "$as_me: failed program was:" >&5
26223 sed 's/^/| /' conftest.$ac_ext >&5
26225 ac_header_preproc=no
26227 rm -f conftest.err conftest.$ac_ext
26228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26229 echo "${ECHO_T}$ac_header_preproc" >&6
26231 # So? What about this header?
26232 case $ac_header_compiler:$ac_header_preproc in
26233 yes:no )
26234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26239 cat <<\_ASBOX
26240 ## ------------------------------------ ##
26241 ## Report this to bug-autoconf@gnu.org. ##
26242 ## ------------------------------------ ##
26243 _ASBOX
26245 sed "s/^/$as_me: WARNING: /" >&2
26247 no:yes )
26248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26255 cat <<\_ASBOX
26256 ## ------------------------------------ ##
26257 ## Report this to bug-autoconf@gnu.org. ##
26258 ## ------------------------------------ ##
26259 _ASBOX
26261 sed "s/^/$as_me: WARNING: /" >&2
26263 esac
26264 echo "$as_me:$LINENO: checking for $ac_header" >&5
26265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26268 else
26269 eval "$as_ac_Header=$ac_header_preproc"
26271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26276 cat >>confdefs.h <<_ACEOF
26277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26278 _ACEOF
26282 done
26285 if test "${glibcxx_cv_POLL+set}" = set; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26287 else
26289 cat >conftest.$ac_ext <<_ACEOF
26290 #line $LINENO "configure"
26291 /* confdefs.h. */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 #include <poll.h>
26298 main ()
26300 struct pollfd pfd[1];
26301 pfd[0].events = POLLIN;
26302 poll(pfd, 1, 0);
26304 return 0;
26306 _ACEOF
26307 rm -f conftest.$ac_objext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309 (eval $ac_compile) 2>&5
26310 ac_status=$?
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } &&
26313 { ac_try='test -s conftest.$ac_objext'
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; }; then
26319 glibcxx_cv_POLL=yes
26320 else
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 glibcxx_cv_POLL=no
26326 rm -f conftest.$ac_objext conftest.$ac_ext
26330 if test $glibcxx_cv_POLL = yes; then
26331 cat >>confdefs.h <<\_ACEOF
26332 #define HAVE_POLL 1
26333 _ACEOF
26338 if test "${glibcxx_cv_S_ISREG+set}" = set; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26340 else
26342 if test x$gcc_no_link = xyes; then
26343 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26345 { (exit 1); exit 1; }; }
26347 cat >conftest.$ac_ext <<_ACEOF
26348 #line $LINENO "configure"
26349 /* confdefs.h. */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26354 #include <sys/stat.h>
26356 main ()
26358 struct stat buffer;
26359 fstat(0, &buffer);
26360 S_ISREG(buffer.st_mode);
26362 return 0;
26364 _ACEOF
26365 rm -f conftest.$ac_objext conftest$ac_exeext
26366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26367 (eval $ac_link) 2>&5
26368 ac_status=$?
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } &&
26371 { ac_try='test -s conftest$ac_exeext'
26372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26373 (eval $ac_try) 2>&5
26374 ac_status=$?
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); }; }; then
26377 glibcxx_cv_S_ISREG=yes
26378 else
26379 echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26382 glibcxx_cv_S_ISREG=no
26384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26388 if test "${glibcxx_cv_S_IFREG+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26392 if test x$gcc_no_link = xyes; then
26393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26395 { (exit 1); exit 1; }; }
26397 cat >conftest.$ac_ext <<_ACEOF
26398 #line $LINENO "configure"
26399 /* confdefs.h. */
26400 _ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h. */
26404 #include <sys/stat.h>
26406 main ()
26408 struct stat buffer;
26409 fstat(0, &buffer);
26410 S_IFREG & buffer.st_mode;
26412 return 0;
26414 _ACEOF
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>&5
26418 ac_status=$?
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } &&
26421 { ac_try='test -s conftest$ac_exeext'
26422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; }; then
26427 glibcxx_cv_S_IFREG=yes
26428 else
26429 echo "$as_me: failed program was:" >&5
26430 sed 's/^/| /' conftest.$ac_ext >&5
26432 glibcxx_cv_S_IFREG=no
26434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26438 if test $glibcxx_cv_S_ISREG = yes; then
26439 cat >>confdefs.h <<\_ACEOF
26440 #define HAVE_S_ISREG 1
26441 _ACEOF
26443 elif test $glibcxx_cv_S_IFREG = yes; then
26444 cat >>confdefs.h <<\_ACEOF
26445 #define HAVE_S_IFREG 1
26446 _ACEOF
26451 # For xsputn_2().
26453 for ac_header in sys/uio.h
26455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26457 echo "$as_me:$LINENO: checking for $ac_header" >&5
26458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
26462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26464 else
26465 # Is the header compilable?
26466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26468 cat >conftest.$ac_ext <<_ACEOF
26469 #line $LINENO "configure"
26470 /* confdefs.h. */
26471 _ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h. */
26475 $ac_includes_default
26476 #include <$ac_header>
26477 _ACEOF
26478 rm -f conftest.$ac_objext
26479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26480 (eval $ac_compile) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } &&
26484 { ac_try='test -s conftest.$ac_objext'
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; }; then
26490 ac_header_compiler=yes
26491 else
26492 echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26495 ac_header_compiler=no
26497 rm -f conftest.$ac_objext conftest.$ac_ext
26498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26499 echo "${ECHO_T}$ac_header_compiler" >&6
26501 # Is the header present?
26502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26504 cat >conftest.$ac_ext <<_ACEOF
26505 #line $LINENO "configure"
26506 /* confdefs.h. */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 #include <$ac_header>
26512 _ACEOF
26513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26515 ac_status=$?
26516 grep -v '^ *+' conftest.er1 >conftest.err
26517 rm -f conftest.er1
26518 cat conftest.err >&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); } >/dev/null; then
26521 if test -s conftest.err; then
26522 ac_cpp_err=$ac_c_preproc_warn_flag
26523 else
26524 ac_cpp_err=
26526 else
26527 ac_cpp_err=yes
26529 if test -z "$ac_cpp_err"; then
26530 ac_header_preproc=yes
26531 else
26532 echo "$as_me: failed program was:" >&5
26533 sed 's/^/| /' conftest.$ac_ext >&5
26535 ac_header_preproc=no
26537 rm -f conftest.err conftest.$ac_ext
26538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26539 echo "${ECHO_T}$ac_header_preproc" >&6
26541 # So? What about this header?
26542 case $ac_header_compiler:$ac_header_preproc in
26543 yes:no )
26544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26549 cat <<\_ASBOX
26550 ## ------------------------------------ ##
26551 ## Report this to bug-autoconf@gnu.org. ##
26552 ## ------------------------------------ ##
26553 _ASBOX
26555 sed "s/^/$as_me: WARNING: /" >&2
26557 no:yes )
26558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26565 cat <<\_ASBOX
26566 ## ------------------------------------ ##
26567 ## Report this to bug-autoconf@gnu.org. ##
26568 ## ------------------------------------ ##
26569 _ASBOX
26571 sed "s/^/$as_me: WARNING: /" >&2
26573 esac
26574 echo "$as_me:$LINENO: checking for $ac_header" >&5
26575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26578 else
26579 eval "$as_ac_Header=$ac_header_preproc"
26581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26586 cat >>confdefs.h <<_ACEOF
26587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26588 _ACEOF
26592 done
26595 if test "${glibcxx_cv_WRITEV+set}" = set; then
26596 echo $ECHO_N "(cached) $ECHO_C" >&6
26597 else
26599 cat >conftest.$ac_ext <<_ACEOF
26600 #line $LINENO "configure"
26601 /* confdefs.h. */
26602 _ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h. */
26606 #include <sys/uio.h>
26608 main ()
26610 struct iovec iov[2];
26611 writev(0, iov, 0);
26613 return 0;
26615 _ACEOF
26616 rm -f conftest.$ac_objext
26617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26618 (eval $ac_compile) 2>&5
26619 ac_status=$?
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } &&
26622 { ac_try='test -s conftest.$ac_objext'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26625 ac_status=$?
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; }; then
26628 glibcxx_cv_WRITEV=yes
26629 else
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 glibcxx_cv_WRITEV=no
26635 rm -f conftest.$ac_objext conftest.$ac_ext
26639 if test $glibcxx_cv_WRITEV = yes; then
26640 cat >>confdefs.h <<\_ACEOF
26641 #define HAVE_WRITEV 1
26642 _ACEOF
26648 if test "${ac_cv_header_locale_h+set}" = set; then
26649 echo "$as_me:$LINENO: checking for locale.h" >&5
26650 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26651 if test "${ac_cv_header_locale_h+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26655 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26656 else
26657 # Is the header compilable?
26658 echo "$as_me:$LINENO: checking locale.h usability" >&5
26659 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26660 cat >conftest.$ac_ext <<_ACEOF
26661 #line $LINENO "configure"
26662 /* confdefs.h. */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h. */
26667 $ac_includes_default
26668 #include <locale.h>
26669 _ACEOF
26670 rm -f conftest.$ac_objext
26671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26672 (eval $ac_compile) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
26676 { ac_try='test -s conftest.$ac_objext'
26677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); }; }; then
26682 ac_header_compiler=yes
26683 else
26684 echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26687 ac_header_compiler=no
26689 rm -f conftest.$ac_objext conftest.$ac_ext
26690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26691 echo "${ECHO_T}$ac_header_compiler" >&6
26693 # Is the header present?
26694 echo "$as_me:$LINENO: checking locale.h presence" >&5
26695 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26696 cat >conftest.$ac_ext <<_ACEOF
26697 #line $LINENO "configure"
26698 /* confdefs.h. */
26699 _ACEOF
26700 cat confdefs.h >>conftest.$ac_ext
26701 cat >>conftest.$ac_ext <<_ACEOF
26702 /* end confdefs.h. */
26703 #include <locale.h>
26704 _ACEOF
26705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26707 ac_status=$?
26708 grep -v '^ *+' conftest.er1 >conftest.err
26709 rm -f conftest.er1
26710 cat conftest.err >&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } >/dev/null; then
26713 if test -s conftest.err; then
26714 ac_cpp_err=$ac_c_preproc_warn_flag
26715 else
26716 ac_cpp_err=
26718 else
26719 ac_cpp_err=yes
26721 if test -z "$ac_cpp_err"; then
26722 ac_header_preproc=yes
26723 else
26724 echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26727 ac_header_preproc=no
26729 rm -f conftest.err conftest.$ac_ext
26730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26731 echo "${ECHO_T}$ac_header_preproc" >&6
26733 # So? What about this header?
26734 case $ac_header_compiler:$ac_header_preproc in
26735 yes:no )
26736 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
26737 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26738 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26739 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26741 cat <<\_ASBOX
26742 ## ------------------------------------ ##
26743 ## Report this to bug-autoconf@gnu.org. ##
26744 ## ------------------------------------ ##
26745 _ASBOX
26747 sed "s/^/$as_me: WARNING: /" >&2
26749 no:yes )
26750 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
26751 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
26752 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
26753 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
26754 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26755 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26757 cat <<\_ASBOX
26758 ## ------------------------------------ ##
26759 ## Report this to bug-autoconf@gnu.org. ##
26760 ## ------------------------------------ ##
26761 _ASBOX
26763 sed "s/^/$as_me: WARNING: /" >&2
26765 esac
26766 echo "$as_me:$LINENO: checking for locale.h" >&5
26767 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26768 if test "${ac_cv_header_locale_h+set}" = set; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26770 else
26771 ac_cv_header_locale_h=$ac_header_preproc
26773 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26774 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26777 if test $ac_cv_header_locale_h = yes; then
26779 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26780 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26781 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 else
26784 if test x$gcc_no_link = xyes; then
26785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26787 { (exit 1); exit 1; }; }
26789 cat >conftest.$ac_ext <<_ACEOF
26790 #line $LINENO "configure"
26791 /* confdefs.h. */
26792 _ACEOF
26793 cat confdefs.h >>conftest.$ac_ext
26794 cat >>conftest.$ac_ext <<_ACEOF
26795 /* end confdefs.h. */
26796 #include <locale.h>
26798 main ()
26800 return LC_MESSAGES
26802 return 0;
26804 _ACEOF
26805 rm -f conftest.$ac_objext conftest$ac_exeext
26806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26807 (eval $ac_link) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
26811 { ac_try='test -s conftest$ac_exeext'
26812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; }; then
26817 ac_cv_val_LC_MESSAGES=yes
26818 else
26819 echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26822 ac_cv_val_LC_MESSAGES=no
26824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26826 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
26827 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
26828 if test $ac_cv_val_LC_MESSAGES = yes; then
26829 cat >>confdefs.h <<\_ACEOF
26830 #define HAVE_LC_MESSAGES 1
26831 _ACEOF
26840 cat >conftest.$ac_ext <<_ACEOF
26841 #line $LINENO "configure"
26842 /* confdefs.h. */
26843 _ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h. */
26847 #include <setjmp.h>
26849 main ()
26851 sigjmp_buf env;
26852 while (! sigsetjmp (env, 1))
26853 siglongjmp (env, 1);
26856 return 0;
26858 _ACEOF
26859 rm -f conftest.$ac_objext
26860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26861 (eval $ac_compile) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); } &&
26865 { ac_try='test -s conftest.$ac_objext'
26866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); }; }; then
26872 cat >>confdefs.h <<\_ACEOF
26873 #define HAVE_SIGSETJMP 1
26874 _ACEOF
26876 else
26877 echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26881 rm -f conftest.$ac_objext conftest.$ac_ext
26883 if test x$gcc_no_link = xyes; then
26884 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
26885 ac_cv_func_mmap_fixed_mapped=no
26888 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
26891 for ac_header in stdlib.h unistd.h
26893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26895 echo "$as_me:$LINENO: checking for $ac_header" >&5
26896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26898 echo $ECHO_N "(cached) $ECHO_C" >&6
26900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26902 else
26903 # Is the header compilable?
26904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26906 cat >conftest.$ac_ext <<_ACEOF
26907 #line $LINENO "configure"
26908 /* confdefs.h. */
26909 _ACEOF
26910 cat confdefs.h >>conftest.$ac_ext
26911 cat >>conftest.$ac_ext <<_ACEOF
26912 /* end confdefs.h. */
26913 $ac_includes_default
26914 #include <$ac_header>
26915 _ACEOF
26916 rm -f conftest.$ac_objext
26917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26918 (eval $ac_compile) 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } &&
26922 { ac_try='test -s conftest.$ac_objext'
26923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924 (eval $ac_try) 2>&5
26925 ac_status=$?
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); }; }; then
26928 ac_header_compiler=yes
26929 else
26930 echo "$as_me: failed program was:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26933 ac_header_compiler=no
26935 rm -f conftest.$ac_objext conftest.$ac_ext
26936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26937 echo "${ECHO_T}$ac_header_compiler" >&6
26939 # Is the header present?
26940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26942 cat >conftest.$ac_ext <<_ACEOF
26943 #line $LINENO "configure"
26944 /* confdefs.h. */
26945 _ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h. */
26949 #include <$ac_header>
26950 _ACEOF
26951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26953 ac_status=$?
26954 grep -v '^ *+' conftest.er1 >conftest.err
26955 rm -f conftest.er1
26956 cat conftest.err >&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } >/dev/null; then
26959 if test -s conftest.err; then
26960 ac_cpp_err=$ac_c_preproc_warn_flag
26961 else
26962 ac_cpp_err=
26964 else
26965 ac_cpp_err=yes
26967 if test -z "$ac_cpp_err"; then
26968 ac_header_preproc=yes
26969 else
26970 echo "$as_me: failed program was:" >&5
26971 sed 's/^/| /' conftest.$ac_ext >&5
26973 ac_header_preproc=no
26975 rm -f conftest.err conftest.$ac_ext
26976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26977 echo "${ECHO_T}$ac_header_preproc" >&6
26979 # So? What about this header?
26980 case $ac_header_compiler:$ac_header_preproc in
26981 yes:no )
26982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26987 cat <<\_ASBOX
26988 ## ------------------------------------ ##
26989 ## Report this to bug-autoconf@gnu.org. ##
26990 ## ------------------------------------ ##
26991 _ASBOX
26993 sed "s/^/$as_me: WARNING: /" >&2
26995 no:yes )
26996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27003 cat <<\_ASBOX
27004 ## ------------------------------------ ##
27005 ## Report this to bug-autoconf@gnu.org. ##
27006 ## ------------------------------------ ##
27007 _ASBOX
27009 sed "s/^/$as_me: WARNING: /" >&2
27011 esac
27012 echo "$as_me:$LINENO: checking for $ac_header" >&5
27013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27015 echo $ECHO_N "(cached) $ECHO_C" >&6
27016 else
27017 eval "$as_ac_Header=$ac_header_preproc"
27019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27024 cat >>confdefs.h <<_ACEOF
27025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27026 _ACEOF
27030 done
27033 for ac_func in getpagesize
27035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27036 echo "$as_me:$LINENO: checking for $ac_func" >&5
27037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27038 if eval "test \"\${$as_ac_var+set}\" = set"; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 else
27041 if test x$gcc_no_link = xyes; then
27042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27044 { (exit 1); exit 1; }; }
27046 cat >conftest.$ac_ext <<_ACEOF
27047 #line $LINENO "configure"
27048 /* confdefs.h. */
27049 _ACEOF
27050 cat confdefs.h >>conftest.$ac_ext
27051 cat >>conftest.$ac_ext <<_ACEOF
27052 /* end confdefs.h. */
27053 /* System header to define __stub macros and hopefully few prototypes,
27054 which can conflict with char $ac_func (); below.
27055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27056 <limits.h> exists even on freestanding compilers. */
27057 #ifdef __STDC__
27058 # include <limits.h>
27059 #else
27060 # include <assert.h>
27061 #endif
27062 /* Override any gcc2 internal prototype to avoid an error. */
27063 #ifdef __cplusplus
27064 extern "C"
27066 #endif
27067 /* We use char because int might match the return type of a gcc2
27068 builtin and then its argument prototype would still apply. */
27069 char $ac_func ();
27070 /* The GNU C library defines this for functions which it implements
27071 to always fail with ENOSYS. Some functions are actually named
27072 something starting with __ and the normal name is an alias. */
27073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27074 choke me
27075 #else
27076 char (*f) () = $ac_func;
27077 #endif
27078 #ifdef __cplusplus
27080 #endif
27083 main ()
27085 return f != $ac_func;
27087 return 0;
27089 _ACEOF
27090 rm -f conftest.$ac_objext conftest$ac_exeext
27091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27092 (eval $ac_link) 2>&5
27093 ac_status=$?
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } &&
27096 { ac_try='test -s conftest$ac_exeext'
27097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098 (eval $ac_try) 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; }; then
27102 eval "$as_ac_var=yes"
27103 else
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27107 eval "$as_ac_var=no"
27109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27113 if test `eval echo '${'$as_ac_var'}'` = yes; then
27114 cat >>confdefs.h <<_ACEOF
27115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27116 _ACEOF
27119 done
27121 echo "$as_me:$LINENO: checking for working mmap" >&5
27122 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27123 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27125 else
27126 if test "$cross_compiling" = yes; then
27127 ac_cv_func_mmap_fixed_mapped=no
27128 else
27129 cat >conftest.$ac_ext <<_ACEOF
27130 #line $LINENO "configure"
27131 /* confdefs.h. */
27132 _ACEOF
27133 cat confdefs.h >>conftest.$ac_ext
27134 cat >>conftest.$ac_ext <<_ACEOF
27135 /* end confdefs.h. */
27136 $ac_includes_default
27137 /* malloc might have been renamed as rpl_malloc. */
27138 #undef malloc
27140 /* Thanks to Mike Haertel and Jim Avera for this test.
27141 Here is a matrix of mmap possibilities:
27142 mmap private not fixed
27143 mmap private fixed at somewhere currently unmapped
27144 mmap private fixed at somewhere already mapped
27145 mmap shared not fixed
27146 mmap shared fixed at somewhere currently unmapped
27147 mmap shared fixed at somewhere already mapped
27148 For private mappings, we should verify that changes cannot be read()
27149 back from the file, nor mmap's back from the file at a different
27150 address. (There have been systems where private was not correctly
27151 implemented like the infamous i386 svr4.0, and systems where the
27152 VM page cache was not coherent with the file system buffer cache
27153 like early versions of FreeBSD and possibly contemporary NetBSD.)
27154 For shared mappings, we should conversely verify that changes get
27155 propagated back to all the places they're supposed to be.
27157 Grep wants private fixed already mapped.
27158 The main things grep needs to know about mmap are:
27159 * does it exist and is it safe to write into the mmap'd area
27160 * how to use it (BSD variants) */
27162 #include <fcntl.h>
27163 #include <sys/mman.h>
27165 #if !STDC_HEADERS && !HAVE_STDLIB_H
27166 char *malloc ();
27167 #endif
27169 /* This mess was copied from the GNU getpagesize.h. */
27170 #if !HAVE_GETPAGESIZE
27171 /* Assume that all systems that can run configure have sys/param.h. */
27172 # if !HAVE_SYS_PARAM_H
27173 # define HAVE_SYS_PARAM_H 1
27174 # endif
27176 # ifdef _SC_PAGESIZE
27177 # define getpagesize() sysconf(_SC_PAGESIZE)
27178 # else /* no _SC_PAGESIZE */
27179 # if HAVE_SYS_PARAM_H
27180 # include <sys/param.h>
27181 # ifdef EXEC_PAGESIZE
27182 # define getpagesize() EXEC_PAGESIZE
27183 # else /* no EXEC_PAGESIZE */
27184 # ifdef NBPG
27185 # define getpagesize() NBPG * CLSIZE
27186 # ifndef CLSIZE
27187 # define CLSIZE 1
27188 # endif /* no CLSIZE */
27189 # else /* no NBPG */
27190 # ifdef NBPC
27191 # define getpagesize() NBPC
27192 # else /* no NBPC */
27193 # ifdef PAGESIZE
27194 # define getpagesize() PAGESIZE
27195 # endif /* PAGESIZE */
27196 # endif /* no NBPC */
27197 # endif /* no NBPG */
27198 # endif /* no EXEC_PAGESIZE */
27199 # else /* no HAVE_SYS_PARAM_H */
27200 # define getpagesize() 8192 /* punt totally */
27201 # endif /* no HAVE_SYS_PARAM_H */
27202 # endif /* no _SC_PAGESIZE */
27204 #endif /* no HAVE_GETPAGESIZE */
27207 main ()
27209 char *data, *data2, *data3;
27210 int i, pagesize;
27211 int fd;
27213 pagesize = getpagesize ();
27215 /* First, make a file with some known garbage in it. */
27216 data = (char *) malloc (pagesize);
27217 if (!data)
27218 exit (1);
27219 for (i = 0; i < pagesize; ++i)
27220 *(data + i) = rand ();
27221 umask (0);
27222 fd = creat ("conftest.mmap", 0600);
27223 if (fd < 0)
27224 exit (1);
27225 if (write (fd, data, pagesize) != pagesize)
27226 exit (1);
27227 close (fd);
27229 /* Next, try to mmap the file at a fixed address which already has
27230 something else allocated at it. If we can, also make sure that
27231 we see the same garbage. */
27232 fd = open ("conftest.mmap", O_RDWR);
27233 if (fd < 0)
27234 exit (1);
27235 data2 = (char *) malloc (2 * pagesize);
27236 if (!data2)
27237 exit (1);
27238 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
27239 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27241 exit (1);
27242 for (i = 0; i < pagesize; ++i)
27243 if (*(data + i) != *(data2 + i))
27244 exit (1);
27246 /* Finally, make sure that changes to the mapped area do not
27247 percolate back to the file as seen by read(). (This is a bug on
27248 some variants of i386 svr4.0.) */
27249 for (i = 0; i < pagesize; ++i)
27250 *(data2 + i) = *(data2 + i) + 1;
27251 data3 = (char *) malloc (pagesize);
27252 if (!data3)
27253 exit (1);
27254 if (read (fd, data3, pagesize) != pagesize)
27255 exit (1);
27256 for (i = 0; i < pagesize; ++i)
27257 if (*(data + i) != *(data3 + i))
27258 exit (1);
27259 close (fd);
27260 exit (0);
27262 _ACEOF
27263 rm -f conftest$ac_exeext
27264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27265 (eval $ac_link) 2>&5
27266 ac_status=$?
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5
27271 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; }; then
27274 ac_cv_func_mmap_fixed_mapped=yes
27275 else
27276 echo "$as_me: program exited with status $ac_status" >&5
27277 echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27280 ( exit $ac_status )
27281 ac_cv_func_mmap_fixed_mapped=no
27283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27286 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27287 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
27288 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27290 cat >>confdefs.h <<\_ACEOF
27291 #define HAVE_MMAP 1
27292 _ACEOF
27295 rm -f conftest.mmap
27299 else
27301 # This lets us hard-code the functionality we know we'll have in the cross
27302 # target environment. "Let" is a sugar-coated word placed on an especially
27303 # dull and tedious hack, actually.
27305 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27306 # that involve linking, can't be used:
27307 # "cannot open sim-crt0.o"
27308 # "cannot open crt0.o"
27309 # etc. All this is because there currently exists no unified, consistent
27310 # way for top level CC information to be passed down to target directories:
27311 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27312 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27313 # crosses can be removed.
27315 # If Canadian cross, then don't pick up tools from the build directory.
27316 # Used only in GLIBCXX_EXPORT_INCLUDES.
27317 if test -n "$with_cross_host" &&
27318 test x"$build_alias" != x"$with_cross_host" &&
27319 test x"$build" != x"$target";
27320 then
27321 CANADIAN=yes
27322 else
27323 CANADIAN=no
27326 # Construct crosses by hand, eliminating bits that need ld...
27327 # GLIBCXX_CHECK_COMPILER_FEATURES
27328 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
27329 # GLIBCXX_CHECK_MATH_SUPPORT
27331 # First, test for "known" system libraries. We may be using newlib even
27332 # on a hosted environment.
27333 if test "x${with_newlib}" = "xyes"; then
27334 os_include_dir="os/newlib"
27335 cat >>confdefs.h <<\_ACEOF
27336 #define HAVE_HYPOT 1
27337 _ACEOF
27340 # GLIBCXX_CHECK_STDLIB_SUPPORT
27341 cat >>confdefs.h <<\_ACEOF
27342 #define HAVE_STRTOF 1
27343 _ACEOF
27345 cat >>confdefs.h <<\_ACEOF
27346 #define HAVE_STRTOLD 1
27347 _ACEOF
27349 # AC_FUNC_MMAP
27350 cat >>confdefs.h <<\_ACEOF
27351 #define HAVE_MMAP 1
27352 _ACEOF
27355 cat >>confdefs.h <<\_ACEOF
27356 #define HAVE_ACOSF 1
27357 _ACEOF
27359 cat >>confdefs.h <<\_ACEOF
27360 #define HAVE_ASINF 1
27361 _ACEOF
27363 cat >>confdefs.h <<\_ACEOF
27364 #define HAVE_ATAN2F 1
27365 _ACEOF
27367 cat >>confdefs.h <<\_ACEOF
27368 #define HAVE_ATANF 1
27369 _ACEOF
27371 cat >>confdefs.h <<\_ACEOF
27372 #define HAVE_CEILF 1
27373 _ACEOF
27375 cat >>confdefs.h <<\_ACEOF
27376 #define HAVE_COPYSIGN 1
27377 _ACEOF
27379 cat >>confdefs.h <<\_ACEOF
27380 #define HAVE_COPYSIGNF 1
27381 _ACEOF
27383 cat >>confdefs.h <<\_ACEOF
27384 #define HAVE_COSF 1
27385 _ACEOF
27387 cat >>confdefs.h <<\_ACEOF
27388 #define HAVE_COSHF 1
27389 _ACEOF
27391 cat >>confdefs.h <<\_ACEOF
27392 #define HAVE_EXPF 1
27393 _ACEOF
27395 cat >>confdefs.h <<\_ACEOF
27396 #define HAVE_FABSF 1
27397 _ACEOF
27399 cat >>confdefs.h <<\_ACEOF
27400 #define HAVE_FLOORF 1
27401 _ACEOF
27403 cat >>confdefs.h <<\_ACEOF
27404 #define HAVE_FMODF 1
27405 _ACEOF
27407 cat >>confdefs.h <<\_ACEOF
27408 #define HAVE_FREXPF 1
27409 _ACEOF
27411 cat >>confdefs.h <<\_ACEOF
27412 #define HAVE_LDEXPF 1
27413 _ACEOF
27415 cat >>confdefs.h <<\_ACEOF
27416 #define HAVE_LOG10F 1
27417 _ACEOF
27419 cat >>confdefs.h <<\_ACEOF
27420 #define HAVE_LOGF 1
27421 _ACEOF
27423 cat >>confdefs.h <<\_ACEOF
27424 #define HAVE_MODFF 1
27425 _ACEOF
27427 cat >>confdefs.h <<\_ACEOF
27428 #define HAVE_POWF 1
27429 _ACEOF
27431 cat >>confdefs.h <<\_ACEOF
27432 #define HAVE_SINF 1
27433 _ACEOF
27435 cat >>confdefs.h <<\_ACEOF
27436 #define HAVE_SINHF 1
27437 _ACEOF
27439 cat >>confdefs.h <<\_ACEOF
27440 #define HAVE_SQRTF 1
27441 _ACEOF
27443 cat >>confdefs.h <<\_ACEOF
27444 #define HAVE_TANF 1
27445 _ACEOF
27447 cat >>confdefs.h <<\_ACEOF
27448 #define HAVE_TANHF 1
27449 _ACEOF
27451 else
27453 # Base decisions on target environment.
27454 case "${host}" in
27455 *-darwin*)
27456 # Darwin versions vary, but the linker should work in a cross environment,
27457 # so we just check for all the features here.
27458 # Check for available headers.
27472 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
27473 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
27474 sys/types.h
27476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27478 echo "$as_me:$LINENO: checking for $ac_header" >&5
27479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
27483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27485 else
27486 # Is the header compilable?
27487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27489 cat >conftest.$ac_ext <<_ACEOF
27490 #line $LINENO "configure"
27491 /* confdefs.h. */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27496 $ac_includes_default
27497 #include <$ac_header>
27498 _ACEOF
27499 rm -f conftest.$ac_objext
27500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27501 (eval $ac_compile) 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } &&
27505 { ac_try='test -s conftest.$ac_objext'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27508 ac_status=$?
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; }; then
27511 ac_header_compiler=yes
27512 else
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27516 ac_header_compiler=no
27518 rm -f conftest.$ac_objext conftest.$ac_ext
27519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27520 echo "${ECHO_T}$ac_header_compiler" >&6
27522 # Is the header present?
27523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27525 cat >conftest.$ac_ext <<_ACEOF
27526 #line $LINENO "configure"
27527 /* confdefs.h. */
27528 _ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h. */
27532 #include <$ac_header>
27533 _ACEOF
27534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } >/dev/null; then
27542 if test -s conftest.err; then
27543 ac_cpp_err=$ac_c_preproc_warn_flag
27544 else
27545 ac_cpp_err=
27547 else
27548 ac_cpp_err=yes
27550 if test -z "$ac_cpp_err"; then
27551 ac_header_preproc=yes
27552 else
27553 echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27556 ac_header_preproc=no
27558 rm -f conftest.err conftest.$ac_ext
27559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27560 echo "${ECHO_T}$ac_header_preproc" >&6
27562 # So? What about this header?
27563 case $ac_header_compiler:$ac_header_preproc in
27564 yes:no )
27565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27570 cat <<\_ASBOX
27571 ## ------------------------------------ ##
27572 ## Report this to bug-autoconf@gnu.org. ##
27573 ## ------------------------------------ ##
27574 _ASBOX
27576 sed "s/^/$as_me: WARNING: /" >&2
27578 no:yes )
27579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27586 cat <<\_ASBOX
27587 ## ------------------------------------ ##
27588 ## Report this to bug-autoconf@gnu.org. ##
27589 ## ------------------------------------ ##
27590 _ASBOX
27592 sed "s/^/$as_me: WARNING: /" >&2
27594 esac
27595 echo "$as_me:$LINENO: checking for $ac_header" >&5
27596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27598 echo $ECHO_N "(cached) $ECHO_C" >&6
27599 else
27600 eval "$as_ac_Header=$ac_header_preproc"
27602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27607 cat >>confdefs.h <<_ACEOF
27608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27609 _ACEOF
27613 done
27617 # All these tests are for C++; save the language and the compiler flags.
27618 # The CXXFLAGS thing is suspicious, but based on similar bits previously
27619 # found in GLIBCXX_CONFIGURE.
27622 ac_ext=cc
27623 ac_cpp='$CXXCPP $CPPFLAGS'
27624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27628 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27629 ac_save_CXXFLAGS="$CXXFLAGS"
27631 # Check for maintainer-mode bits.
27632 if test x"$USE_MAINTAINER_MODE" = xno; then
27633 WERROR=''
27634 else
27635 WERROR='-Werror'
27638 # Check for -ffunction-sections -fdata-sections
27639 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
27640 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
27641 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
27642 cat >conftest.$ac_ext <<_ACEOF
27643 #line $LINENO "configure"
27644 /* confdefs.h. */
27645 _ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h. */
27651 main ()
27653 int foo;
27655 return 0;
27657 _ACEOF
27658 rm -f conftest.$ac_objext
27659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27660 (eval $ac_compile) 2>&5
27661 ac_status=$?
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } &&
27664 { ac_try='test -s conftest.$ac_objext'
27665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27666 (eval $ac_try) 2>&5
27667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_fdsections=yes
27671 else
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 ac_fdsections=no
27677 rm -f conftest.$ac_objext conftest.$ac_ext
27678 if test "$ac_test_CXXFLAGS" = set; then
27679 CXXFLAGS="$ac_save_CXXFLAGS"
27680 else
27681 # this is the suspicious part
27682 CXXFLAGS=''
27684 if test x"$ac_fdsections" = x"yes"; then
27685 SECTION_FLAGS='-ffunction-sections -fdata-sections'
27687 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
27688 echo "${ECHO_T}$ac_fdsections" >&6
27690 ac_ext=c
27691 ac_cpp='$CPP $CPPFLAGS'
27692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27699 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
27701 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27702 ac_save_CXXFLAGS="$CXXFLAGS"
27703 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
27705 echo "$as_me:$LINENO: checking for sin in -lm" >&5
27706 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
27707 if test "${ac_cv_lib_m_sin+set}" = set; then
27708 echo $ECHO_N "(cached) $ECHO_C" >&6
27709 else
27710 ac_check_lib_save_LIBS=$LIBS
27711 LIBS="-lm $LIBS"
27712 if test x$gcc_no_link = xyes; then
27713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27715 { (exit 1); exit 1; }; }
27717 cat >conftest.$ac_ext <<_ACEOF
27718 #line $LINENO "configure"
27719 /* confdefs.h. */
27720 _ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h. */
27725 /* Override any gcc2 internal prototype to avoid an error. */
27726 #ifdef __cplusplus
27727 extern "C"
27728 #endif
27729 /* We use char because int might match the return type of a gcc2
27730 builtin and then its argument prototype would still apply. */
27731 char sin ();
27733 main ()
27735 sin ();
27737 return 0;
27739 _ACEOF
27740 rm -f conftest.$ac_objext conftest$ac_exeext
27741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27742 (eval $ac_link) 2>&5
27743 ac_status=$?
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } &&
27746 { ac_try='test -s conftest$ac_exeext'
27747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748 (eval $ac_try) 2>&5
27749 ac_status=$?
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; }; then
27752 ac_cv_lib_m_sin=yes
27753 else
27754 echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27757 ac_cv_lib_m_sin=no
27759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27760 LIBS=$ac_check_lib_save_LIBS
27762 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27763 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
27764 if test $ac_cv_lib_m_sin = yes; then
27765 libm="-lm"
27768 ac_save_LIBS="$LIBS"
27769 LIBS="$LIBS $libm"
27773 echo "$as_me:$LINENO: checking for isinf declaration" >&5
27774 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
27775 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
27776 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
27777 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 else
27782 ac_ext=cc
27783 ac_cpp='$CXXCPP $CPPFLAGS'
27784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27788 cat >conftest.$ac_ext <<_ACEOF
27789 #line $LINENO "configure"
27790 /* confdefs.h. */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27795 #include <math.h>
27796 #ifdef HAVE_IEEEFP_H
27797 #include <ieeefp.h>
27798 #endif
27801 main ()
27803 isinf(0);
27805 return 0;
27807 _ACEOF
27808 rm -f conftest.$ac_objext
27809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27810 (eval $ac_compile) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); } &&
27814 { ac_try='test -s conftest.$ac_objext'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; }; then
27820 glibcxx_cv_func_isinf_use=yes
27821 else
27822 echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27825 glibcxx_cv_func_isinf_use=no
27827 rm -f conftest.$ac_objext conftest.$ac_ext
27828 ac_ext=c
27829 ac_cpp='$CPP $CPPFLAGS'
27830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27838 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
27839 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
27841 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
27843 for ac_func in isinf
27845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27846 echo "$as_me:$LINENO: checking for $ac_func" >&5
27847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27848 if eval "test \"\${$as_ac_var+set}\" = set"; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27850 else
27851 if test x$gcc_no_link = xyes; then
27852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27854 { (exit 1); exit 1; }; }
27856 cat >conftest.$ac_ext <<_ACEOF
27857 #line $LINENO "configure"
27858 /* confdefs.h. */
27859 _ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h. */
27863 /* System header to define __stub macros and hopefully few prototypes,
27864 which can conflict with char $ac_func (); below.
27865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27866 <limits.h> exists even on freestanding compilers. */
27867 #ifdef __STDC__
27868 # include <limits.h>
27869 #else
27870 # include <assert.h>
27871 #endif
27872 /* Override any gcc2 internal prototype to avoid an error. */
27873 #ifdef __cplusplus
27874 extern "C"
27876 #endif
27877 /* We use char because int might match the return type of a gcc2
27878 builtin and then its argument prototype would still apply. */
27879 char $ac_func ();
27880 /* The GNU C library defines this for functions which it implements
27881 to always fail with ENOSYS. Some functions are actually named
27882 something starting with __ and the normal name is an alias. */
27883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27884 choke me
27885 #else
27886 char (*f) () = $ac_func;
27887 #endif
27888 #ifdef __cplusplus
27890 #endif
27893 main ()
27895 return f != $ac_func;
27897 return 0;
27899 _ACEOF
27900 rm -f conftest.$ac_objext conftest$ac_exeext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27902 (eval $ac_link) 2>&5
27903 ac_status=$?
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); } &&
27906 { ac_try='test -s conftest$ac_exeext'
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; }; then
27912 eval "$as_ac_var=yes"
27913 else
27914 echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27917 eval "$as_ac_var=no"
27919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27923 if test `eval echo '${'$as_ac_var'}'` = yes; then
27924 cat >>confdefs.h <<_ACEOF
27925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27926 _ACEOF
27929 done
27931 else
27933 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
27934 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
27935 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
27936 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938 else
27942 ac_ext=cc
27943 ac_cpp='$CXXCPP $CPPFLAGS'
27944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27948 cat >conftest.$ac_ext <<_ACEOF
27949 #line $LINENO "configure"
27950 /* confdefs.h. */
27951 _ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h. */
27955 #include <math.h>
27956 #ifdef HAVE_IEEEFP_H
27957 #include <ieeefp.h>
27958 #endif
27961 main ()
27963 _isinf(0);
27965 return 0;
27967 _ACEOF
27968 rm -f conftest.$ac_objext
27969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27970 (eval $ac_compile) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } &&
27974 { ac_try='test -s conftest.$ac_objext'
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 glibcxx_cv_func__isinf_use=yes
27981 else
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27985 glibcxx_cv_func__isinf_use=no
27987 rm -f conftest.$ac_objext conftest.$ac_ext
27988 ac_ext=c
27989 ac_cpp='$CPP $CPPFLAGS'
27990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27998 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
27999 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
28001 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
28003 for ac_func in _isinf
28005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28006 echo "$as_me:$LINENO: checking for $ac_func" >&5
28007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28008 if eval "test \"\${$as_ac_var+set}\" = set"; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28010 else
28011 if test x$gcc_no_link = xyes; then
28012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28014 { (exit 1); exit 1; }; }
28016 cat >conftest.$ac_ext <<_ACEOF
28017 #line $LINENO "configure"
28018 /* confdefs.h. */
28019 _ACEOF
28020 cat confdefs.h >>conftest.$ac_ext
28021 cat >>conftest.$ac_ext <<_ACEOF
28022 /* end confdefs.h. */
28023 /* System header to define __stub macros and hopefully few prototypes,
28024 which can conflict with char $ac_func (); below.
28025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28026 <limits.h> exists even on freestanding compilers. */
28027 #ifdef __STDC__
28028 # include <limits.h>
28029 #else
28030 # include <assert.h>
28031 #endif
28032 /* Override any gcc2 internal prototype to avoid an error. */
28033 #ifdef __cplusplus
28034 extern "C"
28036 #endif
28037 /* We use char because int might match the return type of a gcc2
28038 builtin and then its argument prototype would still apply. */
28039 char $ac_func ();
28040 /* The GNU C library defines this for functions which it implements
28041 to always fail with ENOSYS. Some functions are actually named
28042 something starting with __ and the normal name is an alias. */
28043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28044 choke me
28045 #else
28046 char (*f) () = $ac_func;
28047 #endif
28048 #ifdef __cplusplus
28050 #endif
28053 main ()
28055 return f != $ac_func;
28057 return 0;
28059 _ACEOF
28060 rm -f conftest.$ac_objext conftest$ac_exeext
28061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28062 (eval $ac_link) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -s conftest$ac_exeext'
28067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28068 (eval $ac_try) 2>&5
28069 ac_status=$?
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); }; }; then
28072 eval "$as_ac_var=yes"
28073 else
28074 echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.$ac_ext >&5
28077 eval "$as_ac_var=no"
28079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28083 if test `eval echo '${'$as_ac_var'}'` = yes; then
28084 cat >>confdefs.h <<_ACEOF
28085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28086 _ACEOF
28089 done
28096 echo "$as_me:$LINENO: checking for isnan declaration" >&5
28097 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
28098 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
28099 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
28100 echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28105 ac_ext=cc
28106 ac_cpp='$CXXCPP $CPPFLAGS'
28107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28111 cat >conftest.$ac_ext <<_ACEOF
28112 #line $LINENO "configure"
28113 /* confdefs.h. */
28114 _ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h. */
28118 #include <math.h>
28119 #ifdef HAVE_IEEEFP_H
28120 #include <ieeefp.h>
28121 #endif
28124 main ()
28126 isnan(0);
28128 return 0;
28130 _ACEOF
28131 rm -f conftest.$ac_objext
28132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28133 (eval $ac_compile) 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
28137 { ac_try='test -s conftest.$ac_objext'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
28143 glibcxx_cv_func_isnan_use=yes
28144 else
28145 echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28148 glibcxx_cv_func_isnan_use=no
28150 rm -f conftest.$ac_objext conftest.$ac_ext
28151 ac_ext=c
28152 ac_cpp='$CPP $CPPFLAGS'
28153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28161 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
28162 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
28164 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
28166 for ac_func in isnan
28168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169 echo "$as_me:$LINENO: checking for $ac_func" >&5
28170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28171 if eval "test \"\${$as_ac_var+set}\" = set"; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28173 else
28174 if test x$gcc_no_link = xyes; then
28175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28177 { (exit 1); exit 1; }; }
28179 cat >conftest.$ac_ext <<_ACEOF
28180 #line $LINENO "configure"
28181 /* confdefs.h. */
28182 _ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h. */
28186 /* System header to define __stub macros and hopefully few prototypes,
28187 which can conflict with char $ac_func (); below.
28188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28189 <limits.h> exists even on freestanding compilers. */
28190 #ifdef __STDC__
28191 # include <limits.h>
28192 #else
28193 # include <assert.h>
28194 #endif
28195 /* Override any gcc2 internal prototype to avoid an error. */
28196 #ifdef __cplusplus
28197 extern "C"
28199 #endif
28200 /* We use char because int might match the return type of a gcc2
28201 builtin and then its argument prototype would still apply. */
28202 char $ac_func ();
28203 /* The GNU C library defines this for functions which it implements
28204 to always fail with ENOSYS. Some functions are actually named
28205 something starting with __ and the normal name is an alias. */
28206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28207 choke me
28208 #else
28209 char (*f) () = $ac_func;
28210 #endif
28211 #ifdef __cplusplus
28213 #endif
28216 main ()
28218 return f != $ac_func;
28220 return 0;
28222 _ACEOF
28223 rm -f conftest.$ac_objext conftest$ac_exeext
28224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28225 (eval $ac_link) 2>&5
28226 ac_status=$?
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } &&
28229 { ac_try='test -s conftest$ac_exeext'
28230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231 (eval $ac_try) 2>&5
28232 ac_status=$?
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; }; then
28235 eval "$as_ac_var=yes"
28236 else
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28240 eval "$as_ac_var=no"
28242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28246 if test `eval echo '${'$as_ac_var'}'` = yes; then
28247 cat >>confdefs.h <<_ACEOF
28248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28249 _ACEOF
28252 done
28254 else
28256 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
28257 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
28258 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
28259 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28265 ac_ext=cc
28266 ac_cpp='$CXXCPP $CPPFLAGS'
28267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28271 cat >conftest.$ac_ext <<_ACEOF
28272 #line $LINENO "configure"
28273 /* confdefs.h. */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28278 #include <math.h>
28279 #ifdef HAVE_IEEEFP_H
28280 #include <ieeefp.h>
28281 #endif
28284 main ()
28286 _isnan(0);
28288 return 0;
28290 _ACEOF
28291 rm -f conftest.$ac_objext
28292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28293 (eval $ac_compile) 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } &&
28297 { ac_try='test -s conftest.$ac_objext'
28298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 (eval $ac_try) 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; }; then
28303 glibcxx_cv_func__isnan_use=yes
28304 else
28305 echo "$as_me: failed program was:" >&5
28306 sed 's/^/| /' conftest.$ac_ext >&5
28308 glibcxx_cv_func__isnan_use=no
28310 rm -f conftest.$ac_objext conftest.$ac_ext
28311 ac_ext=c
28312 ac_cpp='$CPP $CPPFLAGS'
28313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28321 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
28322 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
28324 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
28326 for ac_func in _isnan
28328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28329 echo "$as_me:$LINENO: checking for $ac_func" >&5
28330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28331 if eval "test \"\${$as_ac_var+set}\" = set"; then
28332 echo $ECHO_N "(cached) $ECHO_C" >&6
28333 else
28334 if test x$gcc_no_link = xyes; then
28335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28337 { (exit 1); exit 1; }; }
28339 cat >conftest.$ac_ext <<_ACEOF
28340 #line $LINENO "configure"
28341 /* confdefs.h. */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 /* System header to define __stub macros and hopefully few prototypes,
28347 which can conflict with char $ac_func (); below.
28348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28349 <limits.h> exists even on freestanding compilers. */
28350 #ifdef __STDC__
28351 # include <limits.h>
28352 #else
28353 # include <assert.h>
28354 #endif
28355 /* Override any gcc2 internal prototype to avoid an error. */
28356 #ifdef __cplusplus
28357 extern "C"
28359 #endif
28360 /* We use char because int might match the return type of a gcc2
28361 builtin and then its argument prototype would still apply. */
28362 char $ac_func ();
28363 /* The GNU C library defines this for functions which it implements
28364 to always fail with ENOSYS. Some functions are actually named
28365 something starting with __ and the normal name is an alias. */
28366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28367 choke me
28368 #else
28369 char (*f) () = $ac_func;
28370 #endif
28371 #ifdef __cplusplus
28373 #endif
28376 main ()
28378 return f != $ac_func;
28380 return 0;
28382 _ACEOF
28383 rm -f conftest.$ac_objext conftest$ac_exeext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28385 (eval $ac_link) 2>&5
28386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } &&
28389 { ac_try='test -s conftest$ac_exeext'
28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391 (eval $ac_try) 2>&5
28392 ac_status=$?
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; }; then
28395 eval "$as_ac_var=yes"
28396 else
28397 echo "$as_me: failed program was:" >&5
28398 sed 's/^/| /' conftest.$ac_ext >&5
28400 eval "$as_ac_var=no"
28402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28406 if test `eval echo '${'$as_ac_var'}'` = yes; then
28407 cat >>confdefs.h <<_ACEOF
28408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28409 _ACEOF
28412 done
28419 echo "$as_me:$LINENO: checking for finite declaration" >&5
28420 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
28421 if test x${glibcxx_cv_func_finite_use+set} != xset; then
28422 if test "${glibcxx_cv_func_finite_use+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28424 else
28428 ac_ext=cc
28429 ac_cpp='$CXXCPP $CPPFLAGS'
28430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28434 cat >conftest.$ac_ext <<_ACEOF
28435 #line $LINENO "configure"
28436 /* confdefs.h. */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28441 #include <math.h>
28442 #ifdef HAVE_IEEEFP_H
28443 #include <ieeefp.h>
28444 #endif
28447 main ()
28449 finite(0);
28451 return 0;
28453 _ACEOF
28454 rm -f conftest.$ac_objext
28455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28456 (eval $ac_compile) 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } &&
28460 { ac_try='test -s conftest.$ac_objext'
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; }; then
28466 glibcxx_cv_func_finite_use=yes
28467 else
28468 echo "$as_me: failed program was:" >&5
28469 sed 's/^/| /' conftest.$ac_ext >&5
28471 glibcxx_cv_func_finite_use=no
28473 rm -f conftest.$ac_objext conftest.$ac_ext
28474 ac_ext=c
28475 ac_cpp='$CPP $CPPFLAGS'
28476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28484 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
28485 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
28487 if test x$glibcxx_cv_func_finite_use = x"yes"; then
28489 for ac_func in finite
28491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28492 echo "$as_me:$LINENO: checking for $ac_func" >&5
28493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28494 if eval "test \"\${$as_ac_var+set}\" = set"; then
28495 echo $ECHO_N "(cached) $ECHO_C" >&6
28496 else
28497 if test x$gcc_no_link = xyes; then
28498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28500 { (exit 1); exit 1; }; }
28502 cat >conftest.$ac_ext <<_ACEOF
28503 #line $LINENO "configure"
28504 /* confdefs.h. */
28505 _ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h. */
28509 /* System header to define __stub macros and hopefully few prototypes,
28510 which can conflict with char $ac_func (); below.
28511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28512 <limits.h> exists even on freestanding compilers. */
28513 #ifdef __STDC__
28514 # include <limits.h>
28515 #else
28516 # include <assert.h>
28517 #endif
28518 /* Override any gcc2 internal prototype to avoid an error. */
28519 #ifdef __cplusplus
28520 extern "C"
28522 #endif
28523 /* We use char because int might match the return type of a gcc2
28524 builtin and then its argument prototype would still apply. */
28525 char $ac_func ();
28526 /* The GNU C library defines this for functions which it implements
28527 to always fail with ENOSYS. Some functions are actually named
28528 something starting with __ and the normal name is an alias. */
28529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28530 choke me
28531 #else
28532 char (*f) () = $ac_func;
28533 #endif
28534 #ifdef __cplusplus
28536 #endif
28539 main ()
28541 return f != $ac_func;
28543 return 0;
28545 _ACEOF
28546 rm -f conftest.$ac_objext conftest$ac_exeext
28547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28548 (eval $ac_link) 2>&5
28549 ac_status=$?
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } &&
28552 { ac_try='test -s conftest$ac_exeext'
28553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; }; then
28558 eval "$as_ac_var=yes"
28559 else
28560 echo "$as_me: failed program was:" >&5
28561 sed 's/^/| /' conftest.$ac_ext >&5
28563 eval "$as_ac_var=no"
28565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28569 if test `eval echo '${'$as_ac_var'}'` = yes; then
28570 cat >>confdefs.h <<_ACEOF
28571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28572 _ACEOF
28575 done
28577 else
28579 echo "$as_me:$LINENO: checking for _finite declaration" >&5
28580 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
28581 if test x${glibcxx_cv_func__finite_use+set} != xset; then
28582 if test "${glibcxx_cv_func__finite_use+set}" = set; then
28583 echo $ECHO_N "(cached) $ECHO_C" >&6
28584 else
28588 ac_ext=cc
28589 ac_cpp='$CXXCPP $CPPFLAGS'
28590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28594 cat >conftest.$ac_ext <<_ACEOF
28595 #line $LINENO "configure"
28596 /* confdefs.h. */
28597 _ACEOF
28598 cat confdefs.h >>conftest.$ac_ext
28599 cat >>conftest.$ac_ext <<_ACEOF
28600 /* end confdefs.h. */
28601 #include <math.h>
28602 #ifdef HAVE_IEEEFP_H
28603 #include <ieeefp.h>
28604 #endif
28607 main ()
28609 _finite(0);
28611 return 0;
28613 _ACEOF
28614 rm -f conftest.$ac_objext
28615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28616 (eval $ac_compile) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try='test -s conftest.$ac_objext'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 glibcxx_cv_func__finite_use=yes
28627 else
28628 echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28631 glibcxx_cv_func__finite_use=no
28633 rm -f conftest.$ac_objext conftest.$ac_ext
28634 ac_ext=c
28635 ac_cpp='$CPP $CPPFLAGS'
28636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28644 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
28645 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
28647 if test x$glibcxx_cv_func__finite_use = x"yes"; then
28649 for ac_func in _finite
28651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28652 echo "$as_me:$LINENO: checking for $ac_func" >&5
28653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28654 if eval "test \"\${$as_ac_var+set}\" = set"; then
28655 echo $ECHO_N "(cached) $ECHO_C" >&6
28656 else
28657 if test x$gcc_no_link = xyes; then
28658 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28660 { (exit 1); exit 1; }; }
28662 cat >conftest.$ac_ext <<_ACEOF
28663 #line $LINENO "configure"
28664 /* confdefs.h. */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 /* System header to define __stub macros and hopefully few prototypes,
28670 which can conflict with char $ac_func (); below.
28671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28672 <limits.h> exists even on freestanding compilers. */
28673 #ifdef __STDC__
28674 # include <limits.h>
28675 #else
28676 # include <assert.h>
28677 #endif
28678 /* Override any gcc2 internal prototype to avoid an error. */
28679 #ifdef __cplusplus
28680 extern "C"
28682 #endif
28683 /* We use char because int might match the return type of a gcc2
28684 builtin and then its argument prototype would still apply. */
28685 char $ac_func ();
28686 /* The GNU C library defines this for functions which it implements
28687 to always fail with ENOSYS. Some functions are actually named
28688 something starting with __ and the normal name is an alias. */
28689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28690 choke me
28691 #else
28692 char (*f) () = $ac_func;
28693 #endif
28694 #ifdef __cplusplus
28696 #endif
28699 main ()
28701 return f != $ac_func;
28703 return 0;
28705 _ACEOF
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708 (eval $ac_link) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
28712 { ac_try='test -s conftest$ac_exeext'
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 eval "$as_ac_var=yes"
28719 else
28720 echo "$as_me: failed program was:" >&5
28721 sed 's/^/| /' conftest.$ac_ext >&5
28723 eval "$as_ac_var=no"
28725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28729 if test `eval echo '${'$as_ac_var'}'` = yes; then
28730 cat >>confdefs.h <<_ACEOF
28731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28732 _ACEOF
28735 done
28742 echo "$as_me:$LINENO: checking for copysign declaration" >&5
28743 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
28744 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
28745 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
28746 echo $ECHO_N "(cached) $ECHO_C" >&6
28747 else
28751 ac_ext=cc
28752 ac_cpp='$CXXCPP $CPPFLAGS'
28753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28757 cat >conftest.$ac_ext <<_ACEOF
28758 #line $LINENO "configure"
28759 /* confdefs.h. */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28764 #include <math.h>
28766 main ()
28768 copysign(0, 0);
28770 return 0;
28772 _ACEOF
28773 rm -f conftest.$ac_objext
28774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28775 (eval $ac_compile) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } &&
28779 { ac_try='test -s conftest.$ac_objext'
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 glibcxx_cv_func_copysign_use=yes
28786 else
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28790 glibcxx_cv_func_copysign_use=no
28792 rm -f conftest.$ac_objext conftest.$ac_ext
28793 ac_ext=c
28794 ac_cpp='$CPP $CPPFLAGS'
28795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28803 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
28804 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
28806 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
28808 for ac_func in copysign
28810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28811 echo "$as_me:$LINENO: checking for $ac_func" >&5
28812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28813 if eval "test \"\${$as_ac_var+set}\" = set"; then
28814 echo $ECHO_N "(cached) $ECHO_C" >&6
28815 else
28816 if test x$gcc_no_link = xyes; then
28817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28819 { (exit 1); exit 1; }; }
28821 cat >conftest.$ac_ext <<_ACEOF
28822 #line $LINENO "configure"
28823 /* confdefs.h. */
28824 _ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h. */
28828 /* System header to define __stub macros and hopefully few prototypes,
28829 which can conflict with char $ac_func (); below.
28830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28831 <limits.h> exists even on freestanding compilers. */
28832 #ifdef __STDC__
28833 # include <limits.h>
28834 #else
28835 # include <assert.h>
28836 #endif
28837 /* Override any gcc2 internal prototype to avoid an error. */
28838 #ifdef __cplusplus
28839 extern "C"
28841 #endif
28842 /* We use char because int might match the return type of a gcc2
28843 builtin and then its argument prototype would still apply. */
28844 char $ac_func ();
28845 /* The GNU C library defines this for functions which it implements
28846 to always fail with ENOSYS. Some functions are actually named
28847 something starting with __ and the normal name is an alias. */
28848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28849 choke me
28850 #else
28851 char (*f) () = $ac_func;
28852 #endif
28853 #ifdef __cplusplus
28855 #endif
28858 main ()
28860 return f != $ac_func;
28862 return 0;
28864 _ACEOF
28865 rm -f conftest.$ac_objext conftest$ac_exeext
28866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28867 (eval $ac_link) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); } &&
28871 { ac_try='test -s conftest$ac_exeext'
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28874 ac_status=$?
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; }; then
28877 eval "$as_ac_var=yes"
28878 else
28879 echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 eval "$as_ac_var=no"
28884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28888 if test `eval echo '${'$as_ac_var'}'` = yes; then
28889 cat >>confdefs.h <<_ACEOF
28890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28891 _ACEOF
28894 done
28896 else
28898 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
28899 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
28900 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
28901 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 else
28907 ac_ext=cc
28908 ac_cpp='$CXXCPP $CPPFLAGS'
28909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28913 cat >conftest.$ac_ext <<_ACEOF
28914 #line $LINENO "configure"
28915 /* confdefs.h. */
28916 _ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h. */
28920 #include <math.h>
28922 main ()
28924 _copysign(0, 0);
28926 return 0;
28928 _ACEOF
28929 rm -f conftest.$ac_objext
28930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28931 (eval $ac_compile) 2>&5
28932 ac_status=$?
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); } &&
28935 { ac_try='test -s conftest.$ac_objext'
28936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28937 (eval $ac_try) 2>&5
28938 ac_status=$?
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); }; }; then
28941 glibcxx_cv_func__copysign_use=yes
28942 else
28943 echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28946 glibcxx_cv_func__copysign_use=no
28948 rm -f conftest.$ac_objext conftest.$ac_ext
28949 ac_ext=c
28950 ac_cpp='$CPP $CPPFLAGS'
28951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28959 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
28960 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
28962 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
28964 for ac_func in _copysign
28966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28967 echo "$as_me:$LINENO: checking for $ac_func" >&5
28968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28969 if eval "test \"\${$as_ac_var+set}\" = set"; then
28970 echo $ECHO_N "(cached) $ECHO_C" >&6
28971 else
28972 if test x$gcc_no_link = xyes; then
28973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28975 { (exit 1); exit 1; }; }
28977 cat >conftest.$ac_ext <<_ACEOF
28978 #line $LINENO "configure"
28979 /* confdefs.h. */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h. */
28984 /* System header to define __stub macros and hopefully few prototypes,
28985 which can conflict with char $ac_func (); below.
28986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28987 <limits.h> exists even on freestanding compilers. */
28988 #ifdef __STDC__
28989 # include <limits.h>
28990 #else
28991 # include <assert.h>
28992 #endif
28993 /* Override any gcc2 internal prototype to avoid an error. */
28994 #ifdef __cplusplus
28995 extern "C"
28997 #endif
28998 /* We use char because int might match the return type of a gcc2
28999 builtin and then its argument prototype would still apply. */
29000 char $ac_func ();
29001 /* The GNU C library defines this for functions which it implements
29002 to always fail with ENOSYS. Some functions are actually named
29003 something starting with __ and the normal name is an alias. */
29004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29005 choke me
29006 #else
29007 char (*f) () = $ac_func;
29008 #endif
29009 #ifdef __cplusplus
29011 #endif
29014 main ()
29016 return f != $ac_func;
29018 return 0;
29020 _ACEOF
29021 rm -f conftest.$ac_objext conftest$ac_exeext
29022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29023 (eval $ac_link) 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); } &&
29027 { ac_try='test -s conftest$ac_exeext'
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
29033 eval "$as_ac_var=yes"
29034 else
29035 echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29038 eval "$as_ac_var=no"
29040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29044 if test `eval echo '${'$as_ac_var'}'` = yes; then
29045 cat >>confdefs.h <<_ACEOF
29046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29047 _ACEOF
29050 done
29057 echo "$as_me:$LINENO: checking for sincos declaration" >&5
29058 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
29059 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29060 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29066 ac_ext=cc
29067 ac_cpp='$CXXCPP $CPPFLAGS'
29068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29072 cat >conftest.$ac_ext <<_ACEOF
29073 #line $LINENO "configure"
29074 /* confdefs.h. */
29075 _ACEOF
29076 cat confdefs.h >>conftest.$ac_ext
29077 cat >>conftest.$ac_ext <<_ACEOF
29078 /* end confdefs.h. */
29079 #include <math.h>
29081 main ()
29083 sincos(0, 0, 0);
29085 return 0;
29087 _ACEOF
29088 rm -f conftest.$ac_objext
29089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29090 (eval $ac_compile) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } &&
29094 { ac_try='test -s conftest.$ac_objext'
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29097 ac_status=$?
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; }; then
29100 glibcxx_cv_func_sincos_use=yes
29101 else
29102 echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29105 glibcxx_cv_func_sincos_use=no
29107 rm -f conftest.$ac_objext conftest.$ac_ext
29108 ac_ext=c
29109 ac_cpp='$CPP $CPPFLAGS'
29110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29118 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
29119 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
29121 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29123 for ac_func in sincos
29125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29126 echo "$as_me:$LINENO: checking for $ac_func" >&5
29127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29128 if eval "test \"\${$as_ac_var+set}\" = set"; then
29129 echo $ECHO_N "(cached) $ECHO_C" >&6
29130 else
29131 if test x$gcc_no_link = xyes; then
29132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29134 { (exit 1); exit 1; }; }
29136 cat >conftest.$ac_ext <<_ACEOF
29137 #line $LINENO "configure"
29138 /* confdefs.h. */
29139 _ACEOF
29140 cat confdefs.h >>conftest.$ac_ext
29141 cat >>conftest.$ac_ext <<_ACEOF
29142 /* end confdefs.h. */
29143 /* System header to define __stub macros and hopefully few prototypes,
29144 which can conflict with char $ac_func (); below.
29145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29146 <limits.h> exists even on freestanding compilers. */
29147 #ifdef __STDC__
29148 # include <limits.h>
29149 #else
29150 # include <assert.h>
29151 #endif
29152 /* Override any gcc2 internal prototype to avoid an error. */
29153 #ifdef __cplusplus
29154 extern "C"
29156 #endif
29157 /* We use char because int might match the return type of a gcc2
29158 builtin and then its argument prototype would still apply. */
29159 char $ac_func ();
29160 /* The GNU C library defines this for functions which it implements
29161 to always fail with ENOSYS. Some functions are actually named
29162 something starting with __ and the normal name is an alias. */
29163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29164 choke me
29165 #else
29166 char (*f) () = $ac_func;
29167 #endif
29168 #ifdef __cplusplus
29170 #endif
29173 main ()
29175 return f != $ac_func;
29177 return 0;
29179 _ACEOF
29180 rm -f conftest.$ac_objext conftest$ac_exeext
29181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29182 (eval $ac_link) 2>&5
29183 ac_status=$?
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); } &&
29186 { ac_try='test -s conftest$ac_exeext'
29187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188 (eval $ac_try) 2>&5
29189 ac_status=$?
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); }; }; then
29192 eval "$as_ac_var=yes"
29193 else
29194 echo "$as_me: failed program was:" >&5
29195 sed 's/^/| /' conftest.$ac_ext >&5
29197 eval "$as_ac_var=no"
29199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29203 if test `eval echo '${'$as_ac_var'}'` = yes; then
29204 cat >>confdefs.h <<_ACEOF
29205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29206 _ACEOF
29209 done
29211 else
29213 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
29214 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
29215 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
29216 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218 else
29222 ac_ext=cc
29223 ac_cpp='$CXXCPP $CPPFLAGS'
29224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29228 cat >conftest.$ac_ext <<_ACEOF
29229 #line $LINENO "configure"
29230 /* confdefs.h. */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29235 #include <math.h>
29237 main ()
29239 _sincos(0, 0, 0);
29241 return 0;
29243 _ACEOF
29244 rm -f conftest.$ac_objext
29245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29246 (eval $ac_compile) 2>&5
29247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
29250 { ac_try='test -s conftest.$ac_objext'
29251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252 (eval $ac_try) 2>&5
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
29256 glibcxx_cv_func__sincos_use=yes
29257 else
29258 echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29261 glibcxx_cv_func__sincos_use=no
29263 rm -f conftest.$ac_objext conftest.$ac_ext
29264 ac_ext=c
29265 ac_cpp='$CPP $CPPFLAGS'
29266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29274 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
29275 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
29277 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
29279 for ac_func in _sincos
29281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29282 echo "$as_me:$LINENO: checking for $ac_func" >&5
29283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29284 if eval "test \"\${$as_ac_var+set}\" = set"; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29286 else
29287 if test x$gcc_no_link = xyes; then
29288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29290 { (exit 1); exit 1; }; }
29292 cat >conftest.$ac_ext <<_ACEOF
29293 #line $LINENO "configure"
29294 /* confdefs.h. */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h. */
29299 /* System header to define __stub macros and hopefully few prototypes,
29300 which can conflict with char $ac_func (); below.
29301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29302 <limits.h> exists even on freestanding compilers. */
29303 #ifdef __STDC__
29304 # include <limits.h>
29305 #else
29306 # include <assert.h>
29307 #endif
29308 /* Override any gcc2 internal prototype to avoid an error. */
29309 #ifdef __cplusplus
29310 extern "C"
29312 #endif
29313 /* We use char because int might match the return type of a gcc2
29314 builtin and then its argument prototype would still apply. */
29315 char $ac_func ();
29316 /* The GNU C library defines this for functions which it implements
29317 to always fail with ENOSYS. Some functions are actually named
29318 something starting with __ and the normal name is an alias. */
29319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29320 choke me
29321 #else
29322 char (*f) () = $ac_func;
29323 #endif
29324 #ifdef __cplusplus
29326 #endif
29329 main ()
29331 return f != $ac_func;
29333 return 0;
29335 _ACEOF
29336 rm -f conftest.$ac_objext conftest$ac_exeext
29337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29338 (eval $ac_link) 2>&5
29339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); } &&
29342 { ac_try='test -s conftest$ac_exeext'
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 eval "$as_ac_var=yes"
29349 else
29350 echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29353 eval "$as_ac_var=no"
29355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29359 if test `eval echo '${'$as_ac_var'}'` = yes; then
29360 cat >>confdefs.h <<_ACEOF
29361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29362 _ACEOF
29365 done
29372 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
29373 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
29374 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29375 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
29376 echo $ECHO_N "(cached) $ECHO_C" >&6
29377 else
29381 ac_ext=cc
29382 ac_cpp='$CXXCPP $CPPFLAGS'
29383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29387 cat >conftest.$ac_ext <<_ACEOF
29388 #line $LINENO "configure"
29389 /* confdefs.h. */
29390 _ACEOF
29391 cat confdefs.h >>conftest.$ac_ext
29392 cat >>conftest.$ac_ext <<_ACEOF
29393 /* end confdefs.h. */
29394 #include <math.h>
29395 #ifdef HAVE_IEEEFP_H
29396 #include <ieeefp.h>
29397 #endif
29400 main ()
29402 fpclass(0);
29404 return 0;
29406 _ACEOF
29407 rm -f conftest.$ac_objext
29408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29409 (eval $ac_compile) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } &&
29413 { ac_try='test -s conftest.$ac_objext'
29414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; }; then
29419 glibcxx_cv_func_fpclass_use=yes
29420 else
29421 echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29424 glibcxx_cv_func_fpclass_use=no
29426 rm -f conftest.$ac_objext conftest.$ac_ext
29427 ac_ext=c
29428 ac_cpp='$CPP $CPPFLAGS'
29429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29437 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
29438 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
29440 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29442 for ac_func in fpclass
29444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29445 echo "$as_me:$LINENO: checking for $ac_func" >&5
29446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29447 if eval "test \"\${$as_ac_var+set}\" = set"; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 else
29450 if test x$gcc_no_link = xyes; then
29451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29453 { (exit 1); exit 1; }; }
29455 cat >conftest.$ac_ext <<_ACEOF
29456 #line $LINENO "configure"
29457 /* confdefs.h. */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h. */
29462 /* System header to define __stub macros and hopefully few prototypes,
29463 which can conflict with char $ac_func (); below.
29464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29465 <limits.h> exists even on freestanding compilers. */
29466 #ifdef __STDC__
29467 # include <limits.h>
29468 #else
29469 # include <assert.h>
29470 #endif
29471 /* Override any gcc2 internal prototype to avoid an error. */
29472 #ifdef __cplusplus
29473 extern "C"
29475 #endif
29476 /* We use char because int might match the return type of a gcc2
29477 builtin and then its argument prototype would still apply. */
29478 char $ac_func ();
29479 /* The GNU C library defines this for functions which it implements
29480 to always fail with ENOSYS. Some functions are actually named
29481 something starting with __ and the normal name is an alias. */
29482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29483 choke me
29484 #else
29485 char (*f) () = $ac_func;
29486 #endif
29487 #ifdef __cplusplus
29489 #endif
29492 main ()
29494 return f != $ac_func;
29496 return 0;
29498 _ACEOF
29499 rm -f conftest.$ac_objext conftest$ac_exeext
29500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29501 (eval $ac_link) 2>&5
29502 ac_status=$?
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } &&
29505 { ac_try='test -s conftest$ac_exeext'
29506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 (eval $ac_try) 2>&5
29508 ac_status=$?
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; }; then
29511 eval "$as_ac_var=yes"
29512 else
29513 echo "$as_me: failed program was:" >&5
29514 sed 's/^/| /' conftest.$ac_ext >&5
29516 eval "$as_ac_var=no"
29518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29522 if test `eval echo '${'$as_ac_var'}'` = yes; then
29523 cat >>confdefs.h <<_ACEOF
29524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29525 _ACEOF
29528 done
29530 else
29532 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
29533 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
29534 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
29535 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
29536 echo $ECHO_N "(cached) $ECHO_C" >&6
29537 else
29541 ac_ext=cc
29542 ac_cpp='$CXXCPP $CPPFLAGS'
29543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29547 cat >conftest.$ac_ext <<_ACEOF
29548 #line $LINENO "configure"
29549 /* confdefs.h. */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29554 #include <math.h>
29555 #ifdef HAVE_IEEEFP_H
29556 #include <ieeefp.h>
29557 #endif
29560 main ()
29562 _fpclass(0);
29564 return 0;
29566 _ACEOF
29567 rm -f conftest.$ac_objext
29568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29569 (eval $ac_compile) 2>&5
29570 ac_status=$?
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); } &&
29573 { ac_try='test -s conftest.$ac_objext'
29574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29575 (eval $ac_try) 2>&5
29576 ac_status=$?
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); }; }; then
29579 glibcxx_cv_func__fpclass_use=yes
29580 else
29581 echo "$as_me: failed program was:" >&5
29582 sed 's/^/| /' conftest.$ac_ext >&5
29584 glibcxx_cv_func__fpclass_use=no
29586 rm -f conftest.$ac_objext conftest.$ac_ext
29587 ac_ext=c
29588 ac_cpp='$CPP $CPPFLAGS'
29589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29597 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
29598 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
29600 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
29602 for ac_func in _fpclass
29604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29605 echo "$as_me:$LINENO: checking for $ac_func" >&5
29606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29607 if eval "test \"\${$as_ac_var+set}\" = set"; then
29608 echo $ECHO_N "(cached) $ECHO_C" >&6
29609 else
29610 if test x$gcc_no_link = xyes; then
29611 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29613 { (exit 1); exit 1; }; }
29615 cat >conftest.$ac_ext <<_ACEOF
29616 #line $LINENO "configure"
29617 /* confdefs.h. */
29618 _ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h. */
29622 /* System header to define __stub macros and hopefully few prototypes,
29623 which can conflict with char $ac_func (); below.
29624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29625 <limits.h> exists even on freestanding compilers. */
29626 #ifdef __STDC__
29627 # include <limits.h>
29628 #else
29629 # include <assert.h>
29630 #endif
29631 /* Override any gcc2 internal prototype to avoid an error. */
29632 #ifdef __cplusplus
29633 extern "C"
29635 #endif
29636 /* We use char because int might match the return type of a gcc2
29637 builtin and then its argument prototype would still apply. */
29638 char $ac_func ();
29639 /* The GNU C library defines this for functions which it implements
29640 to always fail with ENOSYS. Some functions are actually named
29641 something starting with __ and the normal name is an alias. */
29642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29643 choke me
29644 #else
29645 char (*f) () = $ac_func;
29646 #endif
29647 #ifdef __cplusplus
29649 #endif
29652 main ()
29654 return f != $ac_func;
29656 return 0;
29658 _ACEOF
29659 rm -f conftest.$ac_objext conftest$ac_exeext
29660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29661 (eval $ac_link) 2>&5
29662 ac_status=$?
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); } &&
29665 { ac_try='test -s conftest$ac_exeext'
29666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29667 (eval $ac_try) 2>&5
29668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29671 eval "$as_ac_var=yes"
29672 else
29673 echo "$as_me: failed program was:" >&5
29674 sed 's/^/| /' conftest.$ac_ext >&5
29676 eval "$as_ac_var=no"
29678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29682 if test `eval echo '${'$as_ac_var'}'` = yes; then
29683 cat >>confdefs.h <<_ACEOF
29684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29685 _ACEOF
29688 done
29695 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
29696 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
29697 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29698 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29700 else
29704 ac_ext=cc
29705 ac_cpp='$CXXCPP $CPPFLAGS'
29706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29710 cat >conftest.$ac_ext <<_ACEOF
29711 #line $LINENO "configure"
29712 /* confdefs.h. */
29713 _ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h. */
29717 #include <math.h>
29718 #ifdef HAVE_IEEEFP_H
29719 #include <ieeefp.h>
29720 #endif
29723 main ()
29725 qfpclass(0);
29727 return 0;
29729 _ACEOF
29730 rm -f conftest.$ac_objext
29731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29732 (eval $ac_compile) 2>&5
29733 ac_status=$?
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); } &&
29736 { ac_try='test -s conftest.$ac_objext'
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; }; then
29742 glibcxx_cv_func_qfpclass_use=yes
29743 else
29744 echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29747 glibcxx_cv_func_qfpclass_use=no
29749 rm -f conftest.$ac_objext conftest.$ac_ext
29750 ac_ext=c
29751 ac_cpp='$CPP $CPPFLAGS'
29752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29760 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
29761 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
29763 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29765 for ac_func in qfpclass
29767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29768 echo "$as_me:$LINENO: checking for $ac_func" >&5
29769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29770 if eval "test \"\${$as_ac_var+set}\" = set"; then
29771 echo $ECHO_N "(cached) $ECHO_C" >&6
29772 else
29773 if test x$gcc_no_link = xyes; then
29774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29775 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29776 { (exit 1); exit 1; }; }
29778 cat >conftest.$ac_ext <<_ACEOF
29779 #line $LINENO "configure"
29780 /* confdefs.h. */
29781 _ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h. */
29785 /* System header to define __stub macros and hopefully few prototypes,
29786 which can conflict with char $ac_func (); below.
29787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29788 <limits.h> exists even on freestanding compilers. */
29789 #ifdef __STDC__
29790 # include <limits.h>
29791 #else
29792 # include <assert.h>
29793 #endif
29794 /* Override any gcc2 internal prototype to avoid an error. */
29795 #ifdef __cplusplus
29796 extern "C"
29798 #endif
29799 /* We use char because int might match the return type of a gcc2
29800 builtin and then its argument prototype would still apply. */
29801 char $ac_func ();
29802 /* The GNU C library defines this for functions which it implements
29803 to always fail with ENOSYS. Some functions are actually named
29804 something starting with __ and the normal name is an alias. */
29805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29806 choke me
29807 #else
29808 char (*f) () = $ac_func;
29809 #endif
29810 #ifdef __cplusplus
29812 #endif
29815 main ()
29817 return f != $ac_func;
29819 return 0;
29821 _ACEOF
29822 rm -f conftest.$ac_objext conftest$ac_exeext
29823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29824 (eval $ac_link) 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); } &&
29828 { ac_try='test -s conftest$ac_exeext'
29829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29830 (eval $ac_try) 2>&5
29831 ac_status=$?
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); }; }; then
29834 eval "$as_ac_var=yes"
29835 else
29836 echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29839 eval "$as_ac_var=no"
29841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29845 if test `eval echo '${'$as_ac_var'}'` = yes; then
29846 cat >>confdefs.h <<_ACEOF
29847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29848 _ACEOF
29851 done
29853 else
29855 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
29856 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
29857 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
29858 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29860 else
29864 ac_ext=cc
29865 ac_cpp='$CXXCPP $CPPFLAGS'
29866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29870 cat >conftest.$ac_ext <<_ACEOF
29871 #line $LINENO "configure"
29872 /* confdefs.h. */
29873 _ACEOF
29874 cat confdefs.h >>conftest.$ac_ext
29875 cat >>conftest.$ac_ext <<_ACEOF
29876 /* end confdefs.h. */
29877 #include <math.h>
29878 #ifdef HAVE_IEEEFP_H
29879 #include <ieeefp.h>
29880 #endif
29883 main ()
29885 _qfpclass(0);
29887 return 0;
29889 _ACEOF
29890 rm -f conftest.$ac_objext
29891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29892 (eval $ac_compile) 2>&5
29893 ac_status=$?
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } &&
29896 { ac_try='test -s conftest.$ac_objext'
29897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898 (eval $ac_try) 2>&5
29899 ac_status=$?
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; }; then
29902 glibcxx_cv_func__qfpclass_use=yes
29903 else
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29907 glibcxx_cv_func__qfpclass_use=no
29909 rm -f conftest.$ac_objext conftest.$ac_ext
29910 ac_ext=c
29911 ac_cpp='$CPP $CPPFLAGS'
29912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29920 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
29921 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
29923 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
29925 for ac_func in _qfpclass
29927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29928 echo "$as_me:$LINENO: checking for $ac_func" >&5
29929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29930 if eval "test \"\${$as_ac_var+set}\" = set"; then
29931 echo $ECHO_N "(cached) $ECHO_C" >&6
29932 else
29933 if test x$gcc_no_link = xyes; then
29934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29936 { (exit 1); exit 1; }; }
29938 cat >conftest.$ac_ext <<_ACEOF
29939 #line $LINENO "configure"
29940 /* confdefs.h. */
29941 _ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29945 /* System header to define __stub macros and hopefully few prototypes,
29946 which can conflict with char $ac_func (); below.
29947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29948 <limits.h> exists even on freestanding compilers. */
29949 #ifdef __STDC__
29950 # include <limits.h>
29951 #else
29952 # include <assert.h>
29953 #endif
29954 /* Override any gcc2 internal prototype to avoid an error. */
29955 #ifdef __cplusplus
29956 extern "C"
29958 #endif
29959 /* We use char because int might match the return type of a gcc2
29960 builtin and then its argument prototype would still apply. */
29961 char $ac_func ();
29962 /* The GNU C library defines this for functions which it implements
29963 to always fail with ENOSYS. Some functions are actually named
29964 something starting with __ and the normal name is an alias. */
29965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29966 choke me
29967 #else
29968 char (*f) () = $ac_func;
29969 #endif
29970 #ifdef __cplusplus
29972 #endif
29975 main ()
29977 return f != $ac_func;
29979 return 0;
29981 _ACEOF
29982 rm -f conftest.$ac_objext conftest$ac_exeext
29983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29984 (eval $ac_link) 2>&5
29985 ac_status=$?
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); } &&
29988 { ac_try='test -s conftest$ac_exeext'
29989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990 (eval $ac_try) 2>&5
29991 ac_status=$?
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; }; then
29994 eval "$as_ac_var=yes"
29995 else
29996 echo "$as_me: failed program was:" >&5
29997 sed 's/^/| /' conftest.$ac_ext >&5
29999 eval "$as_ac_var=no"
30001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30005 if test `eval echo '${'$as_ac_var'}'` = yes; then
30006 cat >>confdefs.h <<_ACEOF
30007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30008 _ACEOF
30011 done
30018 echo "$as_me:$LINENO: checking for hypot declaration" >&5
30019 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
30020 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
30021 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 else
30027 ac_ext=cc
30028 ac_cpp='$CXXCPP $CPPFLAGS'
30029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30033 cat >conftest.$ac_ext <<_ACEOF
30034 #line $LINENO "configure"
30035 /* confdefs.h. */
30036 _ACEOF
30037 cat confdefs.h >>conftest.$ac_ext
30038 cat >>conftest.$ac_ext <<_ACEOF
30039 /* end confdefs.h. */
30040 #include <math.h>
30042 main ()
30044 hypot(0, 0);
30046 return 0;
30048 _ACEOF
30049 rm -f conftest.$ac_objext
30050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30051 (eval $ac_compile) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); } &&
30055 { ac_try='test -s conftest.$ac_objext'
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30061 glibcxx_cv_func_hypot_use=yes
30062 else
30063 echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30066 glibcxx_cv_func_hypot_use=no
30068 rm -f conftest.$ac_objext conftest.$ac_ext
30069 ac_ext=c
30070 ac_cpp='$CPP $CPPFLAGS'
30071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30079 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
30080 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
30082 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
30084 for ac_func in hypot
30086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30087 echo "$as_me:$LINENO: checking for $ac_func" >&5
30088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30089 if eval "test \"\${$as_ac_var+set}\" = set"; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30091 else
30092 if test x$gcc_no_link = xyes; then
30093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30095 { (exit 1); exit 1; }; }
30097 cat >conftest.$ac_ext <<_ACEOF
30098 #line $LINENO "configure"
30099 /* confdefs.h. */
30100 _ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h. */
30104 /* System header to define __stub macros and hopefully few prototypes,
30105 which can conflict with char $ac_func (); below.
30106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30107 <limits.h> exists even on freestanding compilers. */
30108 #ifdef __STDC__
30109 # include <limits.h>
30110 #else
30111 # include <assert.h>
30112 #endif
30113 /* Override any gcc2 internal prototype to avoid an error. */
30114 #ifdef __cplusplus
30115 extern "C"
30117 #endif
30118 /* We use char because int might match the return type of a gcc2
30119 builtin and then its argument prototype would still apply. */
30120 char $ac_func ();
30121 /* The GNU C library defines this for functions which it implements
30122 to always fail with ENOSYS. Some functions are actually named
30123 something starting with __ and the normal name is an alias. */
30124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30125 choke me
30126 #else
30127 char (*f) () = $ac_func;
30128 #endif
30129 #ifdef __cplusplus
30131 #endif
30134 main ()
30136 return f != $ac_func;
30138 return 0;
30140 _ACEOF
30141 rm -f conftest.$ac_objext conftest$ac_exeext
30142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30143 (eval $ac_link) 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } &&
30147 { ac_try='test -s conftest$ac_exeext'
30148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30149 (eval $ac_try) 2>&5
30150 ac_status=$?
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; }; then
30153 eval "$as_ac_var=yes"
30154 else
30155 echo "$as_me: failed program was:" >&5
30156 sed 's/^/| /' conftest.$ac_ext >&5
30158 eval "$as_ac_var=no"
30160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30164 if test `eval echo '${'$as_ac_var'}'` = yes; then
30165 cat >>confdefs.h <<_ACEOF
30166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30167 _ACEOF
30170 done
30172 else
30174 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
30175 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
30176 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
30177 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
30178 echo $ECHO_N "(cached) $ECHO_C" >&6
30179 else
30183 ac_ext=cc
30184 ac_cpp='$CXXCPP $CPPFLAGS'
30185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30189 cat >conftest.$ac_ext <<_ACEOF
30190 #line $LINENO "configure"
30191 /* confdefs.h. */
30192 _ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h. */
30196 #include <math.h>
30198 main ()
30200 _hypot(0, 0);
30202 return 0;
30204 _ACEOF
30205 rm -f conftest.$ac_objext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30207 (eval $ac_compile) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } &&
30211 { ac_try='test -s conftest.$ac_objext'
30212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30213 (eval $ac_try) 2>&5
30214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
30217 glibcxx_cv_func__hypot_use=yes
30218 else
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30222 glibcxx_cv_func__hypot_use=no
30224 rm -f conftest.$ac_objext conftest.$ac_ext
30225 ac_ext=c
30226 ac_cpp='$CPP $CPPFLAGS'
30227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30235 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
30236 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
30238 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
30240 for ac_func in _hypot
30242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30243 echo "$as_me:$LINENO: checking for $ac_func" >&5
30244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30245 if eval "test \"\${$as_ac_var+set}\" = set"; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30247 else
30248 if test x$gcc_no_link = xyes; then
30249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30251 { (exit 1); exit 1; }; }
30253 cat >conftest.$ac_ext <<_ACEOF
30254 #line $LINENO "configure"
30255 /* confdefs.h. */
30256 _ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h. */
30260 /* System header to define __stub macros and hopefully few prototypes,
30261 which can conflict with char $ac_func (); below.
30262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30263 <limits.h> exists even on freestanding compilers. */
30264 #ifdef __STDC__
30265 # include <limits.h>
30266 #else
30267 # include <assert.h>
30268 #endif
30269 /* Override any gcc2 internal prototype to avoid an error. */
30270 #ifdef __cplusplus
30271 extern "C"
30273 #endif
30274 /* We use char because int might match the return type of a gcc2
30275 builtin and then its argument prototype would still apply. */
30276 char $ac_func ();
30277 /* The GNU C library defines this for functions which it implements
30278 to always fail with ENOSYS. Some functions are actually named
30279 something starting with __ and the normal name is an alias. */
30280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30281 choke me
30282 #else
30283 char (*f) () = $ac_func;
30284 #endif
30285 #ifdef __cplusplus
30287 #endif
30290 main ()
30292 return f != $ac_func;
30294 return 0;
30296 _ACEOF
30297 rm -f conftest.$ac_objext conftest$ac_exeext
30298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30299 (eval $ac_link) 2>&5
30300 ac_status=$?
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
30303 { ac_try='test -s conftest$ac_exeext'
30304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30305 (eval $ac_try) 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); }; }; then
30309 eval "$as_ac_var=yes"
30310 else
30311 echo "$as_me: failed program was:" >&5
30312 sed 's/^/| /' conftest.$ac_ext >&5
30314 eval "$as_ac_var=no"
30316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30320 if test `eval echo '${'$as_ac_var'}'` = yes; then
30321 cat >>confdefs.h <<_ACEOF
30322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30323 _ACEOF
30326 done
30333 echo "$as_me:$LINENO: checking for float trig functions" >&5
30334 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
30335 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30337 else
30341 ac_ext=cc
30342 ac_cpp='$CXXCPP $CPPFLAGS'
30343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30347 cat >conftest.$ac_ext <<_ACEOF
30348 #line $LINENO "configure"
30349 /* confdefs.h. */
30350 _ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h. */
30354 #include <math.h>
30356 main ()
30358 `for x in acosf asinf atanf \
30359 cosf sinf tanf \
30360 coshf sinhf tanhf; do echo "$x (0);"; done`
30362 return 0;
30364 _ACEOF
30365 rm -f conftest.$ac_objext
30366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30367 (eval $ac_compile) 2>&5
30368 ac_status=$?
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } &&
30371 { ac_try='test -s conftest.$ac_objext'
30372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30373 (eval $ac_try) 2>&5
30374 ac_status=$?
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; }; then
30377 glibcxx_cv_func_float_trig_use=yes
30378 else
30379 echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30382 glibcxx_cv_func_float_trig_use=no
30384 rm -f conftest.$ac_objext conftest.$ac_ext
30385 ac_ext=c
30386 ac_cpp='$CPP $CPPFLAGS'
30387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30393 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
30394 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
30395 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
30405 for ac_func in acosf asinf atanf \
30406 cosf sinf tanf \
30407 coshf sinhf tanhf
30409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30410 echo "$as_me:$LINENO: checking for $ac_func" >&5
30411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30412 if eval "test \"\${$as_ac_var+set}\" = set"; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30414 else
30415 if test x$gcc_no_link = xyes; then
30416 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30417 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30418 { (exit 1); exit 1; }; }
30420 cat >conftest.$ac_ext <<_ACEOF
30421 #line $LINENO "configure"
30422 /* confdefs.h. */
30423 _ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h. */
30427 /* System header to define __stub macros and hopefully few prototypes,
30428 which can conflict with char $ac_func (); below.
30429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30430 <limits.h> exists even on freestanding compilers. */
30431 #ifdef __STDC__
30432 # include <limits.h>
30433 #else
30434 # include <assert.h>
30435 #endif
30436 /* Override any gcc2 internal prototype to avoid an error. */
30437 #ifdef __cplusplus
30438 extern "C"
30440 #endif
30441 /* We use char because int might match the return type of a gcc2
30442 builtin and then its argument prototype would still apply. */
30443 char $ac_func ();
30444 /* The GNU C library defines this for functions which it implements
30445 to always fail with ENOSYS. Some functions are actually named
30446 something starting with __ and the normal name is an alias. */
30447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30448 choke me
30449 #else
30450 char (*f) () = $ac_func;
30451 #endif
30452 #ifdef __cplusplus
30454 #endif
30457 main ()
30459 return f != $ac_func;
30461 return 0;
30463 _ACEOF
30464 rm -f conftest.$ac_objext conftest$ac_exeext
30465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30466 (eval $ac_link) 2>&5
30467 ac_status=$?
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
30470 { ac_try='test -s conftest$ac_exeext'
30471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472 (eval $ac_try) 2>&5
30473 ac_status=$?
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); }; }; then
30476 eval "$as_ac_var=yes"
30477 else
30478 echo "$as_me: failed program was:" >&5
30479 sed 's/^/| /' conftest.$ac_ext >&5
30481 eval "$as_ac_var=no"
30483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30487 if test `eval echo '${'$as_ac_var'}'` = yes; then
30488 cat >>confdefs.h <<_ACEOF
30489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30490 _ACEOF
30493 done
30498 echo "$as_me:$LINENO: checking for float round functions" >&5
30499 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
30500 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502 else
30506 ac_ext=cc
30507 ac_cpp='$CXXCPP $CPPFLAGS'
30508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30512 cat >conftest.$ac_ext <<_ACEOF
30513 #line $LINENO "configure"
30514 /* confdefs.h. */
30515 _ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h. */
30519 #include <math.h>
30521 main ()
30523 `for x in ceilf floorf; do echo "$x (0);"; done`
30525 return 0;
30527 _ACEOF
30528 rm -f conftest.$ac_objext
30529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30530 (eval $ac_compile) 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); } &&
30534 { ac_try='test -s conftest.$ac_objext'
30535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30536 (eval $ac_try) 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; }; then
30540 glibcxx_cv_func_float_round_use=yes
30541 else
30542 echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30545 glibcxx_cv_func_float_round_use=no
30547 rm -f conftest.$ac_objext conftest.$ac_ext
30548 ac_ext=c
30549 ac_cpp='$CPP $CPPFLAGS'
30550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30556 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
30557 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
30558 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
30561 for ac_func in ceilf floorf
30563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30564 echo "$as_me:$LINENO: checking for $ac_func" >&5
30565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30566 if eval "test \"\${$as_ac_var+set}\" = set"; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30568 else
30569 if test x$gcc_no_link = xyes; then
30570 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30571 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30572 { (exit 1); exit 1; }; }
30574 cat >conftest.$ac_ext <<_ACEOF
30575 #line $LINENO "configure"
30576 /* confdefs.h. */
30577 _ACEOF
30578 cat confdefs.h >>conftest.$ac_ext
30579 cat >>conftest.$ac_ext <<_ACEOF
30580 /* end confdefs.h. */
30581 /* System header to define __stub macros and hopefully few prototypes,
30582 which can conflict with char $ac_func (); below.
30583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30584 <limits.h> exists even on freestanding compilers. */
30585 #ifdef __STDC__
30586 # include <limits.h>
30587 #else
30588 # include <assert.h>
30589 #endif
30590 /* Override any gcc2 internal prototype to avoid an error. */
30591 #ifdef __cplusplus
30592 extern "C"
30594 #endif
30595 /* We use char because int might match the return type of a gcc2
30596 builtin and then its argument prototype would still apply. */
30597 char $ac_func ();
30598 /* The GNU C library defines this for functions which it implements
30599 to always fail with ENOSYS. Some functions are actually named
30600 something starting with __ and the normal name is an alias. */
30601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30602 choke me
30603 #else
30604 char (*f) () = $ac_func;
30605 #endif
30606 #ifdef __cplusplus
30608 #endif
30611 main ()
30613 return f != $ac_func;
30615 return 0;
30617 _ACEOF
30618 rm -f conftest.$ac_objext conftest$ac_exeext
30619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30620 (eval $ac_link) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); } &&
30624 { ac_try='test -s conftest$ac_exeext'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; }; then
30630 eval "$as_ac_var=yes"
30631 else
30632 echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30635 eval "$as_ac_var=no"
30637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30641 if test `eval echo '${'$as_ac_var'}'` = yes; then
30642 cat >>confdefs.h <<_ACEOF
30643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30644 _ACEOF
30647 done
30653 echo "$as_me:$LINENO: checking for expf declaration" >&5
30654 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
30655 if test x${glibcxx_cv_func_expf_use+set} != xset; then
30656 if test "${glibcxx_cv_func_expf_use+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30662 ac_ext=cc
30663 ac_cpp='$CXXCPP $CPPFLAGS'
30664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30668 cat >conftest.$ac_ext <<_ACEOF
30669 #line $LINENO "configure"
30670 /* confdefs.h. */
30671 _ACEOF
30672 cat confdefs.h >>conftest.$ac_ext
30673 cat >>conftest.$ac_ext <<_ACEOF
30674 /* end confdefs.h. */
30675 #include <math.h>
30676 #ifdef HAVE_IEEEFP_H
30677 #include <ieeefp.h>
30678 #endif
30681 main ()
30683 expf(0);
30685 return 0;
30687 _ACEOF
30688 rm -f conftest.$ac_objext
30689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30690 (eval $ac_compile) 2>&5
30691 ac_status=$?
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
30694 { ac_try='test -s conftest.$ac_objext'
30695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696 (eval $ac_try) 2>&5
30697 ac_status=$?
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; }; then
30700 glibcxx_cv_func_expf_use=yes
30701 else
30702 echo "$as_me: failed program was:" >&5
30703 sed 's/^/| /' conftest.$ac_ext >&5
30705 glibcxx_cv_func_expf_use=no
30707 rm -f conftest.$ac_objext conftest.$ac_ext
30708 ac_ext=c
30709 ac_cpp='$CPP $CPPFLAGS'
30710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30718 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
30719 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
30721 if test x$glibcxx_cv_func_expf_use = x"yes"; then
30723 for ac_func in expf
30725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30726 echo "$as_me:$LINENO: checking for $ac_func" >&5
30727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30728 if eval "test \"\${$as_ac_var+set}\" = set"; then
30729 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 else
30731 if test x$gcc_no_link = xyes; then
30732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30734 { (exit 1); exit 1; }; }
30736 cat >conftest.$ac_ext <<_ACEOF
30737 #line $LINENO "configure"
30738 /* confdefs.h. */
30739 _ACEOF
30740 cat confdefs.h >>conftest.$ac_ext
30741 cat >>conftest.$ac_ext <<_ACEOF
30742 /* end confdefs.h. */
30743 /* System header to define __stub macros and hopefully few prototypes,
30744 which can conflict with char $ac_func (); below.
30745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30746 <limits.h> exists even on freestanding compilers. */
30747 #ifdef __STDC__
30748 # include <limits.h>
30749 #else
30750 # include <assert.h>
30751 #endif
30752 /* Override any gcc2 internal prototype to avoid an error. */
30753 #ifdef __cplusplus
30754 extern "C"
30756 #endif
30757 /* We use char because int might match the return type of a gcc2
30758 builtin and then its argument prototype would still apply. */
30759 char $ac_func ();
30760 /* The GNU C library defines this for functions which it implements
30761 to always fail with ENOSYS. Some functions are actually named
30762 something starting with __ and the normal name is an alias. */
30763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30764 choke me
30765 #else
30766 char (*f) () = $ac_func;
30767 #endif
30768 #ifdef __cplusplus
30770 #endif
30773 main ()
30775 return f != $ac_func;
30777 return 0;
30779 _ACEOF
30780 rm -f conftest.$ac_objext conftest$ac_exeext
30781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30782 (eval $ac_link) 2>&5
30783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
30786 { ac_try='test -s conftest$ac_exeext'
30787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30788 (eval $ac_try) 2>&5
30789 ac_status=$?
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; }; then
30792 eval "$as_ac_var=yes"
30793 else
30794 echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30797 eval "$as_ac_var=no"
30799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30803 if test `eval echo '${'$as_ac_var'}'` = yes; then
30804 cat >>confdefs.h <<_ACEOF
30805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30806 _ACEOF
30809 done
30811 else
30813 echo "$as_me:$LINENO: checking for _expf declaration" >&5
30814 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
30815 if test x${glibcxx_cv_func__expf_use+set} != xset; then
30816 if test "${glibcxx_cv_func__expf_use+set}" = set; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 else
30822 ac_ext=cc
30823 ac_cpp='$CXXCPP $CPPFLAGS'
30824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30828 cat >conftest.$ac_ext <<_ACEOF
30829 #line $LINENO "configure"
30830 /* confdefs.h. */
30831 _ACEOF
30832 cat confdefs.h >>conftest.$ac_ext
30833 cat >>conftest.$ac_ext <<_ACEOF
30834 /* end confdefs.h. */
30835 #include <math.h>
30836 #ifdef HAVE_IEEEFP_H
30837 #include <ieeefp.h>
30838 #endif
30841 main ()
30843 _expf(0);
30845 return 0;
30847 _ACEOF
30848 rm -f conftest.$ac_objext
30849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30850 (eval $ac_compile) 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); } &&
30854 { ac_try='test -s conftest.$ac_objext'
30855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30856 (eval $ac_try) 2>&5
30857 ac_status=$?
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; }; then
30860 glibcxx_cv_func__expf_use=yes
30861 else
30862 echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.$ac_ext >&5
30865 glibcxx_cv_func__expf_use=no
30867 rm -f conftest.$ac_objext conftest.$ac_ext
30868 ac_ext=c
30869 ac_cpp='$CPP $CPPFLAGS'
30870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30878 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
30879 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
30881 if test x$glibcxx_cv_func__expf_use = x"yes"; then
30883 for ac_func in _expf
30885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30886 echo "$as_me:$LINENO: checking for $ac_func" >&5
30887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30888 if eval "test \"\${$as_ac_var+set}\" = set"; then
30889 echo $ECHO_N "(cached) $ECHO_C" >&6
30890 else
30891 if test x$gcc_no_link = xyes; then
30892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30894 { (exit 1); exit 1; }; }
30896 cat >conftest.$ac_ext <<_ACEOF
30897 #line $LINENO "configure"
30898 /* confdefs.h. */
30899 _ACEOF
30900 cat confdefs.h >>conftest.$ac_ext
30901 cat >>conftest.$ac_ext <<_ACEOF
30902 /* end confdefs.h. */
30903 /* System header to define __stub macros and hopefully few prototypes,
30904 which can conflict with char $ac_func (); below.
30905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30906 <limits.h> exists even on freestanding compilers. */
30907 #ifdef __STDC__
30908 # include <limits.h>
30909 #else
30910 # include <assert.h>
30911 #endif
30912 /* Override any gcc2 internal prototype to avoid an error. */
30913 #ifdef __cplusplus
30914 extern "C"
30916 #endif
30917 /* We use char because int might match the return type of a gcc2
30918 builtin and then its argument prototype would still apply. */
30919 char $ac_func ();
30920 /* The GNU C library defines this for functions which it implements
30921 to always fail with ENOSYS. Some functions are actually named
30922 something starting with __ and the normal name is an alias. */
30923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30924 choke me
30925 #else
30926 char (*f) () = $ac_func;
30927 #endif
30928 #ifdef __cplusplus
30930 #endif
30933 main ()
30935 return f != $ac_func;
30937 return 0;
30939 _ACEOF
30940 rm -f conftest.$ac_objext conftest$ac_exeext
30941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30942 (eval $ac_link) 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); } &&
30946 { ac_try='test -s conftest$ac_exeext'
30947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948 (eval $ac_try) 2>&5
30949 ac_status=$?
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; }; then
30952 eval "$as_ac_var=yes"
30953 else
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 eval "$as_ac_var=no"
30959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30963 if test `eval echo '${'$as_ac_var'}'` = yes; then
30964 cat >>confdefs.h <<_ACEOF
30965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30966 _ACEOF
30969 done
30976 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
30977 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
30978 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
30979 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
30980 echo $ECHO_N "(cached) $ECHO_C" >&6
30981 else
30985 ac_ext=cc
30986 ac_cpp='$CXXCPP $CPPFLAGS'
30987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30991 cat >conftest.$ac_ext <<_ACEOF
30992 #line $LINENO "configure"
30993 /* confdefs.h. */
30994 _ACEOF
30995 cat confdefs.h >>conftest.$ac_ext
30996 cat >>conftest.$ac_ext <<_ACEOF
30997 /* end confdefs.h. */
30998 #include <math.h>
30999 #ifdef HAVE_IEEEFP_H
31000 #include <ieeefp.h>
31001 #endif
31004 main ()
31006 isnanf(0);
31008 return 0;
31010 _ACEOF
31011 rm -f conftest.$ac_objext
31012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31013 (eval $ac_compile) 2>&5
31014 ac_status=$?
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); } &&
31017 { ac_try='test -s conftest.$ac_objext'
31018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31019 (eval $ac_try) 2>&5
31020 ac_status=$?
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; }; then
31023 glibcxx_cv_func_isnanf_use=yes
31024 else
31025 echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31028 glibcxx_cv_func_isnanf_use=no
31030 rm -f conftest.$ac_objext conftest.$ac_ext
31031 ac_ext=c
31032 ac_cpp='$CPP $CPPFLAGS'
31033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31041 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
31042 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
31044 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
31046 for ac_func in isnanf
31048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31049 echo "$as_me:$LINENO: checking for $ac_func" >&5
31050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31051 if eval "test \"\${$as_ac_var+set}\" = set"; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31053 else
31054 if test x$gcc_no_link = xyes; then
31055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31057 { (exit 1); exit 1; }; }
31059 cat >conftest.$ac_ext <<_ACEOF
31060 #line $LINENO "configure"
31061 /* confdefs.h. */
31062 _ACEOF
31063 cat confdefs.h >>conftest.$ac_ext
31064 cat >>conftest.$ac_ext <<_ACEOF
31065 /* end confdefs.h. */
31066 /* System header to define __stub macros and hopefully few prototypes,
31067 which can conflict with char $ac_func (); below.
31068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31069 <limits.h> exists even on freestanding compilers. */
31070 #ifdef __STDC__
31071 # include <limits.h>
31072 #else
31073 # include <assert.h>
31074 #endif
31075 /* Override any gcc2 internal prototype to avoid an error. */
31076 #ifdef __cplusplus
31077 extern "C"
31079 #endif
31080 /* We use char because int might match the return type of a gcc2
31081 builtin and then its argument prototype would still apply. */
31082 char $ac_func ();
31083 /* The GNU C library defines this for functions which it implements
31084 to always fail with ENOSYS. Some functions are actually named
31085 something starting with __ and the normal name is an alias. */
31086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31087 choke me
31088 #else
31089 char (*f) () = $ac_func;
31090 #endif
31091 #ifdef __cplusplus
31093 #endif
31096 main ()
31098 return f != $ac_func;
31100 return 0;
31102 _ACEOF
31103 rm -f conftest.$ac_objext conftest$ac_exeext
31104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31105 (eval $ac_link) 2>&5
31106 ac_status=$?
31107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31108 (exit $ac_status); } &&
31109 { ac_try='test -s conftest$ac_exeext'
31110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31111 (eval $ac_try) 2>&5
31112 ac_status=$?
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); }; }; then
31115 eval "$as_ac_var=yes"
31116 else
31117 echo "$as_me: failed program was:" >&5
31118 sed 's/^/| /' conftest.$ac_ext >&5
31120 eval "$as_ac_var=no"
31122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31126 if test `eval echo '${'$as_ac_var'}'` = yes; then
31127 cat >>confdefs.h <<_ACEOF
31128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31129 _ACEOF
31132 done
31134 else
31136 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
31137 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
31138 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
31139 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
31140 echo $ECHO_N "(cached) $ECHO_C" >&6
31141 else
31145 ac_ext=cc
31146 ac_cpp='$CXXCPP $CPPFLAGS'
31147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31151 cat >conftest.$ac_ext <<_ACEOF
31152 #line $LINENO "configure"
31153 /* confdefs.h. */
31154 _ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h. */
31158 #include <math.h>
31159 #ifdef HAVE_IEEEFP_H
31160 #include <ieeefp.h>
31161 #endif
31164 main ()
31166 _isnanf(0);
31168 return 0;
31170 _ACEOF
31171 rm -f conftest.$ac_objext
31172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31173 (eval $ac_compile) 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); } &&
31177 { ac_try='test -s conftest.$ac_objext'
31178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31179 (eval $ac_try) 2>&5
31180 ac_status=$?
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); }; }; then
31183 glibcxx_cv_func__isnanf_use=yes
31184 else
31185 echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31188 glibcxx_cv_func__isnanf_use=no
31190 rm -f conftest.$ac_objext conftest.$ac_ext
31191 ac_ext=c
31192 ac_cpp='$CPP $CPPFLAGS'
31193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31201 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
31202 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
31204 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
31206 for ac_func in _isnanf
31208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31209 echo "$as_me:$LINENO: checking for $ac_func" >&5
31210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31211 if eval "test \"\${$as_ac_var+set}\" = set"; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213 else
31214 if test x$gcc_no_link = xyes; then
31215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31217 { (exit 1); exit 1; }; }
31219 cat >conftest.$ac_ext <<_ACEOF
31220 #line $LINENO "configure"
31221 /* confdefs.h. */
31222 _ACEOF
31223 cat confdefs.h >>conftest.$ac_ext
31224 cat >>conftest.$ac_ext <<_ACEOF
31225 /* end confdefs.h. */
31226 /* System header to define __stub macros and hopefully few prototypes,
31227 which can conflict with char $ac_func (); below.
31228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31229 <limits.h> exists even on freestanding compilers. */
31230 #ifdef __STDC__
31231 # include <limits.h>
31232 #else
31233 # include <assert.h>
31234 #endif
31235 /* Override any gcc2 internal prototype to avoid an error. */
31236 #ifdef __cplusplus
31237 extern "C"
31239 #endif
31240 /* We use char because int might match the return type of a gcc2
31241 builtin and then its argument prototype would still apply. */
31242 char $ac_func ();
31243 /* The GNU C library defines this for functions which it implements
31244 to always fail with ENOSYS. Some functions are actually named
31245 something starting with __ and the normal name is an alias. */
31246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31247 choke me
31248 #else
31249 char (*f) () = $ac_func;
31250 #endif
31251 #ifdef __cplusplus
31253 #endif
31256 main ()
31258 return f != $ac_func;
31260 return 0;
31262 _ACEOF
31263 rm -f conftest.$ac_objext conftest$ac_exeext
31264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31265 (eval $ac_link) 2>&5
31266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
31269 { ac_try='test -s conftest$ac_exeext'
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31272 ac_status=$?
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; }; then
31275 eval "$as_ac_var=yes"
31276 else
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31280 eval "$as_ac_var=no"
31282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31286 if test `eval echo '${'$as_ac_var'}'` = yes; then
31287 cat >>confdefs.h <<_ACEOF
31288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31289 _ACEOF
31292 done
31299 echo "$as_me:$LINENO: checking for isinff declaration" >&5
31300 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
31301 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
31302 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31304 else
31308 ac_ext=cc
31309 ac_cpp='$CXXCPP $CPPFLAGS'
31310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31314 cat >conftest.$ac_ext <<_ACEOF
31315 #line $LINENO "configure"
31316 /* confdefs.h. */
31317 _ACEOF
31318 cat confdefs.h >>conftest.$ac_ext
31319 cat >>conftest.$ac_ext <<_ACEOF
31320 /* end confdefs.h. */
31321 #include <math.h>
31322 #ifdef HAVE_IEEEFP_H
31323 #include <ieeefp.h>
31324 #endif
31327 main ()
31329 isinff(0);
31331 return 0;
31333 _ACEOF
31334 rm -f conftest.$ac_objext
31335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31336 (eval $ac_compile) 2>&5
31337 ac_status=$?
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try='test -s conftest.$ac_objext'
31341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342 (eval $ac_try) 2>&5
31343 ac_status=$?
31344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345 (exit $ac_status); }; }; then
31346 glibcxx_cv_func_isinff_use=yes
31347 else
31348 echo "$as_me: failed program was:" >&5
31349 sed 's/^/| /' conftest.$ac_ext >&5
31351 glibcxx_cv_func_isinff_use=no
31353 rm -f conftest.$ac_objext conftest.$ac_ext
31354 ac_ext=c
31355 ac_cpp='$CPP $CPPFLAGS'
31356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31364 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
31365 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
31367 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
31369 for ac_func in isinff
31371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31372 echo "$as_me:$LINENO: checking for $ac_func" >&5
31373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31374 if eval "test \"\${$as_ac_var+set}\" = set"; then
31375 echo $ECHO_N "(cached) $ECHO_C" >&6
31376 else
31377 if test x$gcc_no_link = xyes; then
31378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31380 { (exit 1); exit 1; }; }
31382 cat >conftest.$ac_ext <<_ACEOF
31383 #line $LINENO "configure"
31384 /* confdefs.h. */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h. */
31389 /* System header to define __stub macros and hopefully few prototypes,
31390 which can conflict with char $ac_func (); below.
31391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31392 <limits.h> exists even on freestanding compilers. */
31393 #ifdef __STDC__
31394 # include <limits.h>
31395 #else
31396 # include <assert.h>
31397 #endif
31398 /* Override any gcc2 internal prototype to avoid an error. */
31399 #ifdef __cplusplus
31400 extern "C"
31402 #endif
31403 /* We use char because int might match the return type of a gcc2
31404 builtin and then its argument prototype would still apply. */
31405 char $ac_func ();
31406 /* The GNU C library defines this for functions which it implements
31407 to always fail with ENOSYS. Some functions are actually named
31408 something starting with __ and the normal name is an alias. */
31409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31410 choke me
31411 #else
31412 char (*f) () = $ac_func;
31413 #endif
31414 #ifdef __cplusplus
31416 #endif
31419 main ()
31421 return f != $ac_func;
31423 return 0;
31425 _ACEOF
31426 rm -f conftest.$ac_objext conftest$ac_exeext
31427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31428 (eval $ac_link) 2>&5
31429 ac_status=$?
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); } &&
31432 { ac_try='test -s conftest$ac_exeext'
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; }; then
31438 eval "$as_ac_var=yes"
31439 else
31440 echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31443 eval "$as_ac_var=no"
31445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31449 if test `eval echo '${'$as_ac_var'}'` = yes; then
31450 cat >>confdefs.h <<_ACEOF
31451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31452 _ACEOF
31455 done
31457 else
31459 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
31460 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
31461 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
31462 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
31463 echo $ECHO_N "(cached) $ECHO_C" >&6
31464 else
31468 ac_ext=cc
31469 ac_cpp='$CXXCPP $CPPFLAGS'
31470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31474 cat >conftest.$ac_ext <<_ACEOF
31475 #line $LINENO "configure"
31476 /* confdefs.h. */
31477 _ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h. */
31481 #include <math.h>
31482 #ifdef HAVE_IEEEFP_H
31483 #include <ieeefp.h>
31484 #endif
31487 main ()
31489 _isinff(0);
31491 return 0;
31493 _ACEOF
31494 rm -f conftest.$ac_objext
31495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31496 (eval $ac_compile) 2>&5
31497 ac_status=$?
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } &&
31500 { ac_try='test -s conftest.$ac_objext'
31501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502 (eval $ac_try) 2>&5
31503 ac_status=$?
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; }; then
31506 glibcxx_cv_func__isinff_use=yes
31507 else
31508 echo "$as_me: failed program was:" >&5
31509 sed 's/^/| /' conftest.$ac_ext >&5
31511 glibcxx_cv_func__isinff_use=no
31513 rm -f conftest.$ac_objext conftest.$ac_ext
31514 ac_ext=c
31515 ac_cpp='$CPP $CPPFLAGS'
31516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31524 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
31525 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
31527 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
31529 for ac_func in _isinff
31531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31532 echo "$as_me:$LINENO: checking for $ac_func" >&5
31533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31534 if eval "test \"\${$as_ac_var+set}\" = set"; then
31535 echo $ECHO_N "(cached) $ECHO_C" >&6
31536 else
31537 if test x$gcc_no_link = xyes; then
31538 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31540 { (exit 1); exit 1; }; }
31542 cat >conftest.$ac_ext <<_ACEOF
31543 #line $LINENO "configure"
31544 /* confdefs.h. */
31545 _ACEOF
31546 cat confdefs.h >>conftest.$ac_ext
31547 cat >>conftest.$ac_ext <<_ACEOF
31548 /* end confdefs.h. */
31549 /* System header to define __stub macros and hopefully few prototypes,
31550 which can conflict with char $ac_func (); below.
31551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31552 <limits.h> exists even on freestanding compilers. */
31553 #ifdef __STDC__
31554 # include <limits.h>
31555 #else
31556 # include <assert.h>
31557 #endif
31558 /* Override any gcc2 internal prototype to avoid an error. */
31559 #ifdef __cplusplus
31560 extern "C"
31562 #endif
31563 /* We use char because int might match the return type of a gcc2
31564 builtin and then its argument prototype would still apply. */
31565 char $ac_func ();
31566 /* The GNU C library defines this for functions which it implements
31567 to always fail with ENOSYS. Some functions are actually named
31568 something starting with __ and the normal name is an alias. */
31569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31570 choke me
31571 #else
31572 char (*f) () = $ac_func;
31573 #endif
31574 #ifdef __cplusplus
31576 #endif
31579 main ()
31581 return f != $ac_func;
31583 return 0;
31585 _ACEOF
31586 rm -f conftest.$ac_objext conftest$ac_exeext
31587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31588 (eval $ac_link) 2>&5
31589 ac_status=$?
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); } &&
31592 { ac_try='test -s conftest$ac_exeext'
31593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31594 (eval $ac_try) 2>&5
31595 ac_status=$?
31596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31597 (exit $ac_status); }; }; then
31598 eval "$as_ac_var=yes"
31599 else
31600 echo "$as_me: failed program was:" >&5
31601 sed 's/^/| /' conftest.$ac_ext >&5
31603 eval "$as_ac_var=no"
31605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31609 if test `eval echo '${'$as_ac_var'}'` = yes; then
31610 cat >>confdefs.h <<_ACEOF
31611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31612 _ACEOF
31615 done
31622 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
31623 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
31624 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
31625 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31627 else
31631 ac_ext=cc
31632 ac_cpp='$CXXCPP $CPPFLAGS'
31633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31637 cat >conftest.$ac_ext <<_ACEOF
31638 #line $LINENO "configure"
31639 /* confdefs.h. */
31640 _ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h. */
31644 #include <math.h>
31646 main ()
31648 atan2f(0, 0);
31650 return 0;
31652 _ACEOF
31653 rm -f conftest.$ac_objext
31654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31655 (eval $ac_compile) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); } &&
31659 { ac_try='test -s conftest.$ac_objext'
31660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661 (eval $ac_try) 2>&5
31662 ac_status=$?
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; }; then
31665 glibcxx_cv_func_atan2f_use=yes
31666 else
31667 echo "$as_me: failed program was:" >&5
31668 sed 's/^/| /' conftest.$ac_ext >&5
31670 glibcxx_cv_func_atan2f_use=no
31672 rm -f conftest.$ac_objext conftest.$ac_ext
31673 ac_ext=c
31674 ac_cpp='$CPP $CPPFLAGS'
31675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31683 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
31684 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
31686 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
31688 for ac_func in atan2f
31690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31691 echo "$as_me:$LINENO: checking for $ac_func" >&5
31692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31693 if eval "test \"\${$as_ac_var+set}\" = set"; then
31694 echo $ECHO_N "(cached) $ECHO_C" >&6
31695 else
31696 if test x$gcc_no_link = xyes; then
31697 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31698 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31699 { (exit 1); exit 1; }; }
31701 cat >conftest.$ac_ext <<_ACEOF
31702 #line $LINENO "configure"
31703 /* confdefs.h. */
31704 _ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h. */
31708 /* System header to define __stub macros and hopefully few prototypes,
31709 which can conflict with char $ac_func (); below.
31710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31711 <limits.h> exists even on freestanding compilers. */
31712 #ifdef __STDC__
31713 # include <limits.h>
31714 #else
31715 # include <assert.h>
31716 #endif
31717 /* Override any gcc2 internal prototype to avoid an error. */
31718 #ifdef __cplusplus
31719 extern "C"
31721 #endif
31722 /* We use char because int might match the return type of a gcc2
31723 builtin and then its argument prototype would still apply. */
31724 char $ac_func ();
31725 /* The GNU C library defines this for functions which it implements
31726 to always fail with ENOSYS. Some functions are actually named
31727 something starting with __ and the normal name is an alias. */
31728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31729 choke me
31730 #else
31731 char (*f) () = $ac_func;
31732 #endif
31733 #ifdef __cplusplus
31735 #endif
31738 main ()
31740 return f != $ac_func;
31742 return 0;
31744 _ACEOF
31745 rm -f conftest.$ac_objext conftest$ac_exeext
31746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31747 (eval $ac_link) 2>&5
31748 ac_status=$?
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } &&
31751 { ac_try='test -s conftest$ac_exeext'
31752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753 (eval $ac_try) 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; }; then
31757 eval "$as_ac_var=yes"
31758 else
31759 echo "$as_me: failed program was:" >&5
31760 sed 's/^/| /' conftest.$ac_ext >&5
31762 eval "$as_ac_var=no"
31764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31768 if test `eval echo '${'$as_ac_var'}'` = yes; then
31769 cat >>confdefs.h <<_ACEOF
31770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31771 _ACEOF
31774 done
31776 else
31778 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
31779 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
31780 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
31781 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783 else
31787 ac_ext=cc
31788 ac_cpp='$CXXCPP $CPPFLAGS'
31789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31793 cat >conftest.$ac_ext <<_ACEOF
31794 #line $LINENO "configure"
31795 /* confdefs.h. */
31796 _ACEOF
31797 cat confdefs.h >>conftest.$ac_ext
31798 cat >>conftest.$ac_ext <<_ACEOF
31799 /* end confdefs.h. */
31800 #include <math.h>
31802 main ()
31804 _atan2f(0, 0);
31806 return 0;
31808 _ACEOF
31809 rm -f conftest.$ac_objext
31810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31811 (eval $ac_compile) 2>&5
31812 ac_status=$?
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); } &&
31815 { ac_try='test -s conftest.$ac_objext'
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31818 ac_status=$?
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; }; then
31821 glibcxx_cv_func__atan2f_use=yes
31822 else
31823 echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31826 glibcxx_cv_func__atan2f_use=no
31828 rm -f conftest.$ac_objext conftest.$ac_ext
31829 ac_ext=c
31830 ac_cpp='$CPP $CPPFLAGS'
31831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31839 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
31840 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
31842 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
31844 for ac_func in _atan2f
31846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31847 echo "$as_me:$LINENO: checking for $ac_func" >&5
31848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31849 if eval "test \"\${$as_ac_var+set}\" = set"; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31851 else
31852 if test x$gcc_no_link = xyes; then
31853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31855 { (exit 1); exit 1; }; }
31857 cat >conftest.$ac_ext <<_ACEOF
31858 #line $LINENO "configure"
31859 /* confdefs.h. */
31860 _ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h. */
31864 /* System header to define __stub macros and hopefully few prototypes,
31865 which can conflict with char $ac_func (); below.
31866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31867 <limits.h> exists even on freestanding compilers. */
31868 #ifdef __STDC__
31869 # include <limits.h>
31870 #else
31871 # include <assert.h>
31872 #endif
31873 /* Override any gcc2 internal prototype to avoid an error. */
31874 #ifdef __cplusplus
31875 extern "C"
31877 #endif
31878 /* We use char because int might match the return type of a gcc2
31879 builtin and then its argument prototype would still apply. */
31880 char $ac_func ();
31881 /* The GNU C library defines this for functions which it implements
31882 to always fail with ENOSYS. Some functions are actually named
31883 something starting with __ and the normal name is an alias. */
31884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31885 choke me
31886 #else
31887 char (*f) () = $ac_func;
31888 #endif
31889 #ifdef __cplusplus
31891 #endif
31894 main ()
31896 return f != $ac_func;
31898 return 0;
31900 _ACEOF
31901 rm -f conftest.$ac_objext conftest$ac_exeext
31902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31903 (eval $ac_link) 2>&5
31904 ac_status=$?
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
31907 { ac_try='test -s conftest$ac_exeext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31913 eval "$as_ac_var=yes"
31914 else
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31918 eval "$as_ac_var=no"
31920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31924 if test `eval echo '${'$as_ac_var'}'` = yes; then
31925 cat >>confdefs.h <<_ACEOF
31926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31927 _ACEOF
31930 done
31937 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
31938 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
31939 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
31940 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31942 else
31946 ac_ext=cc
31947 ac_cpp='$CXXCPP $CPPFLAGS'
31948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31952 cat >conftest.$ac_ext <<_ACEOF
31953 #line $LINENO "configure"
31954 /* confdefs.h. */
31955 _ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h. */
31959 #include <math.h>
31960 #ifdef HAVE_IEEEFP_H
31961 #include <ieeefp.h>
31962 #endif
31965 main ()
31967 fabsf(0);
31969 return 0;
31971 _ACEOF
31972 rm -f conftest.$ac_objext
31973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31974 (eval $ac_compile) 2>&5
31975 ac_status=$?
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
31978 { ac_try='test -s conftest.$ac_objext'
31979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980 (eval $ac_try) 2>&5
31981 ac_status=$?
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; }; then
31984 glibcxx_cv_func_fabsf_use=yes
31985 else
31986 echo "$as_me: failed program was:" >&5
31987 sed 's/^/| /' conftest.$ac_ext >&5
31989 glibcxx_cv_func_fabsf_use=no
31991 rm -f conftest.$ac_objext conftest.$ac_ext
31992 ac_ext=c
31993 ac_cpp='$CPP $CPPFLAGS'
31994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32002 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
32003 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
32005 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32007 for ac_func in fabsf
32009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32010 echo "$as_me:$LINENO: checking for $ac_func" >&5
32011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32012 if eval "test \"\${$as_ac_var+set}\" = set"; then
32013 echo $ECHO_N "(cached) $ECHO_C" >&6
32014 else
32015 if test x$gcc_no_link = xyes; then
32016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32018 { (exit 1); exit 1; }; }
32020 cat >conftest.$ac_ext <<_ACEOF
32021 #line $LINENO "configure"
32022 /* confdefs.h. */
32023 _ACEOF
32024 cat confdefs.h >>conftest.$ac_ext
32025 cat >>conftest.$ac_ext <<_ACEOF
32026 /* end confdefs.h. */
32027 /* System header to define __stub macros and hopefully few prototypes,
32028 which can conflict with char $ac_func (); below.
32029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32030 <limits.h> exists even on freestanding compilers. */
32031 #ifdef __STDC__
32032 # include <limits.h>
32033 #else
32034 # include <assert.h>
32035 #endif
32036 /* Override any gcc2 internal prototype to avoid an error. */
32037 #ifdef __cplusplus
32038 extern "C"
32040 #endif
32041 /* We use char because int might match the return type of a gcc2
32042 builtin and then its argument prototype would still apply. */
32043 char $ac_func ();
32044 /* The GNU C library defines this for functions which it implements
32045 to always fail with ENOSYS. Some functions are actually named
32046 something starting with __ and the normal name is an alias. */
32047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32048 choke me
32049 #else
32050 char (*f) () = $ac_func;
32051 #endif
32052 #ifdef __cplusplus
32054 #endif
32057 main ()
32059 return f != $ac_func;
32061 return 0;
32063 _ACEOF
32064 rm -f conftest.$ac_objext conftest$ac_exeext
32065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32066 (eval $ac_link) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); } &&
32070 { ac_try='test -s conftest$ac_exeext'
32071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072 (eval $ac_try) 2>&5
32073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; }; then
32076 eval "$as_ac_var=yes"
32077 else
32078 echo "$as_me: failed program was:" >&5
32079 sed 's/^/| /' conftest.$ac_ext >&5
32081 eval "$as_ac_var=no"
32083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32087 if test `eval echo '${'$as_ac_var'}'` = yes; then
32088 cat >>confdefs.h <<_ACEOF
32089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32090 _ACEOF
32093 done
32095 else
32097 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
32098 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
32099 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
32100 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
32101 echo $ECHO_N "(cached) $ECHO_C" >&6
32102 else
32106 ac_ext=cc
32107 ac_cpp='$CXXCPP $CPPFLAGS'
32108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32112 cat >conftest.$ac_ext <<_ACEOF
32113 #line $LINENO "configure"
32114 /* confdefs.h. */
32115 _ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h. */
32119 #include <math.h>
32120 #ifdef HAVE_IEEEFP_H
32121 #include <ieeefp.h>
32122 #endif
32125 main ()
32127 _fabsf(0);
32129 return 0;
32131 _ACEOF
32132 rm -f conftest.$ac_objext
32133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32134 (eval $ac_compile) 2>&5
32135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } &&
32138 { ac_try='test -s conftest.$ac_objext'
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32141 ac_status=$?
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; }; then
32144 glibcxx_cv_func__fabsf_use=yes
32145 else
32146 echo "$as_me: failed program was:" >&5
32147 sed 's/^/| /' conftest.$ac_ext >&5
32149 glibcxx_cv_func__fabsf_use=no
32151 rm -f conftest.$ac_objext conftest.$ac_ext
32152 ac_ext=c
32153 ac_cpp='$CPP $CPPFLAGS'
32154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32162 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
32163 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
32165 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
32167 for ac_func in _fabsf
32169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32170 echo "$as_me:$LINENO: checking for $ac_func" >&5
32171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32172 if eval "test \"\${$as_ac_var+set}\" = set"; then
32173 echo $ECHO_N "(cached) $ECHO_C" >&6
32174 else
32175 if test x$gcc_no_link = xyes; then
32176 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32177 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32178 { (exit 1); exit 1; }; }
32180 cat >conftest.$ac_ext <<_ACEOF
32181 #line $LINENO "configure"
32182 /* confdefs.h. */
32183 _ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h. */
32187 /* System header to define __stub macros and hopefully few prototypes,
32188 which can conflict with char $ac_func (); below.
32189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32190 <limits.h> exists even on freestanding compilers. */
32191 #ifdef __STDC__
32192 # include <limits.h>
32193 #else
32194 # include <assert.h>
32195 #endif
32196 /* Override any gcc2 internal prototype to avoid an error. */
32197 #ifdef __cplusplus
32198 extern "C"
32200 #endif
32201 /* We use char because int might match the return type of a gcc2
32202 builtin and then its argument prototype would still apply. */
32203 char $ac_func ();
32204 /* The GNU C library defines this for functions which it implements
32205 to always fail with ENOSYS. Some functions are actually named
32206 something starting with __ and the normal name is an alias. */
32207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32208 choke me
32209 #else
32210 char (*f) () = $ac_func;
32211 #endif
32212 #ifdef __cplusplus
32214 #endif
32217 main ()
32219 return f != $ac_func;
32221 return 0;
32223 _ACEOF
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32226 (eval $ac_link) 2>&5
32227 ac_status=$?
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); } &&
32230 { ac_try='test -s conftest$ac_exeext'
32231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232 (eval $ac_try) 2>&5
32233 ac_status=$?
32234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235 (exit $ac_status); }; }; then
32236 eval "$as_ac_var=yes"
32237 else
32238 echo "$as_me: failed program was:" >&5
32239 sed 's/^/| /' conftest.$ac_ext >&5
32241 eval "$as_ac_var=no"
32243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32247 if test `eval echo '${'$as_ac_var'}'` = yes; then
32248 cat >>confdefs.h <<_ACEOF
32249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32250 _ACEOF
32253 done
32260 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
32261 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
32262 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32263 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
32264 echo $ECHO_N "(cached) $ECHO_C" >&6
32265 else
32269 ac_ext=cc
32270 ac_cpp='$CXXCPP $CPPFLAGS'
32271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32275 cat >conftest.$ac_ext <<_ACEOF
32276 #line $LINENO "configure"
32277 /* confdefs.h. */
32278 _ACEOF
32279 cat confdefs.h >>conftest.$ac_ext
32280 cat >>conftest.$ac_ext <<_ACEOF
32281 /* end confdefs.h. */
32282 #include <math.h>
32284 main ()
32286 fmodf(0, 0);
32288 return 0;
32290 _ACEOF
32291 rm -f conftest.$ac_objext
32292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32293 (eval $ac_compile) 2>&5
32294 ac_status=$?
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); } &&
32297 { ac_try='test -s conftest.$ac_objext'
32298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32299 (eval $ac_try) 2>&5
32300 ac_status=$?
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; }; then
32303 glibcxx_cv_func_fmodf_use=yes
32304 else
32305 echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32308 glibcxx_cv_func_fmodf_use=no
32310 rm -f conftest.$ac_objext conftest.$ac_ext
32311 ac_ext=c
32312 ac_cpp='$CPP $CPPFLAGS'
32313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32321 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
32322 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
32324 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
32326 for ac_func in fmodf
32328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32329 echo "$as_me:$LINENO: checking for $ac_func" >&5
32330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32331 if eval "test \"\${$as_ac_var+set}\" = set"; then
32332 echo $ECHO_N "(cached) $ECHO_C" >&6
32333 else
32334 if test x$gcc_no_link = xyes; then
32335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32337 { (exit 1); exit 1; }; }
32339 cat >conftest.$ac_ext <<_ACEOF
32340 #line $LINENO "configure"
32341 /* confdefs.h. */
32342 _ACEOF
32343 cat confdefs.h >>conftest.$ac_ext
32344 cat >>conftest.$ac_ext <<_ACEOF
32345 /* end confdefs.h. */
32346 /* System header to define __stub macros and hopefully few prototypes,
32347 which can conflict with char $ac_func (); below.
32348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32349 <limits.h> exists even on freestanding compilers. */
32350 #ifdef __STDC__
32351 # include <limits.h>
32352 #else
32353 # include <assert.h>
32354 #endif
32355 /* Override any gcc2 internal prototype to avoid an error. */
32356 #ifdef __cplusplus
32357 extern "C"
32359 #endif
32360 /* We use char because int might match the return type of a gcc2
32361 builtin and then its argument prototype would still apply. */
32362 char $ac_func ();
32363 /* The GNU C library defines this for functions which it implements
32364 to always fail with ENOSYS. Some functions are actually named
32365 something starting with __ and the normal name is an alias. */
32366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32367 choke me
32368 #else
32369 char (*f) () = $ac_func;
32370 #endif
32371 #ifdef __cplusplus
32373 #endif
32376 main ()
32378 return f != $ac_func;
32380 return 0;
32382 _ACEOF
32383 rm -f conftest.$ac_objext conftest$ac_exeext
32384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32385 (eval $ac_link) 2>&5
32386 ac_status=$?
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } &&
32389 { ac_try='test -s conftest$ac_exeext'
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32392 ac_status=$?
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; }; then
32395 eval "$as_ac_var=yes"
32396 else
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32400 eval "$as_ac_var=no"
32402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32406 if test `eval echo '${'$as_ac_var'}'` = yes; then
32407 cat >>confdefs.h <<_ACEOF
32408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32409 _ACEOF
32412 done
32414 else
32416 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
32417 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
32418 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
32419 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
32420 echo $ECHO_N "(cached) $ECHO_C" >&6
32421 else
32425 ac_ext=cc
32426 ac_cpp='$CXXCPP $CPPFLAGS'
32427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32431 cat >conftest.$ac_ext <<_ACEOF
32432 #line $LINENO "configure"
32433 /* confdefs.h. */
32434 _ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h. */
32438 #include <math.h>
32440 main ()
32442 _fmodf(0, 0);
32444 return 0;
32446 _ACEOF
32447 rm -f conftest.$ac_objext
32448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32449 (eval $ac_compile) 2>&5
32450 ac_status=$?
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); } &&
32453 { ac_try='test -s conftest.$ac_objext'
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
32459 glibcxx_cv_func__fmodf_use=yes
32460 else
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32464 glibcxx_cv_func__fmodf_use=no
32466 rm -f conftest.$ac_objext conftest.$ac_ext
32467 ac_ext=c
32468 ac_cpp='$CPP $CPPFLAGS'
32469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32477 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
32478 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
32480 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
32482 for ac_func in _fmodf
32484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32485 echo "$as_me:$LINENO: checking for $ac_func" >&5
32486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32487 if eval "test \"\${$as_ac_var+set}\" = set"; then
32488 echo $ECHO_N "(cached) $ECHO_C" >&6
32489 else
32490 if test x$gcc_no_link = xyes; then
32491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32493 { (exit 1); exit 1; }; }
32495 cat >conftest.$ac_ext <<_ACEOF
32496 #line $LINENO "configure"
32497 /* confdefs.h. */
32498 _ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h. */
32502 /* System header to define __stub macros and hopefully few prototypes,
32503 which can conflict with char $ac_func (); below.
32504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32505 <limits.h> exists even on freestanding compilers. */
32506 #ifdef __STDC__
32507 # include <limits.h>
32508 #else
32509 # include <assert.h>
32510 #endif
32511 /* Override any gcc2 internal prototype to avoid an error. */
32512 #ifdef __cplusplus
32513 extern "C"
32515 #endif
32516 /* We use char because int might match the return type of a gcc2
32517 builtin and then its argument prototype would still apply. */
32518 char $ac_func ();
32519 /* The GNU C library defines this for functions which it implements
32520 to always fail with ENOSYS. Some functions are actually named
32521 something starting with __ and the normal name is an alias. */
32522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32523 choke me
32524 #else
32525 char (*f) () = $ac_func;
32526 #endif
32527 #ifdef __cplusplus
32529 #endif
32532 main ()
32534 return f != $ac_func;
32536 return 0;
32538 _ACEOF
32539 rm -f conftest.$ac_objext conftest$ac_exeext
32540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32541 (eval $ac_link) 2>&5
32542 ac_status=$?
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); } &&
32545 { ac_try='test -s conftest$ac_exeext'
32546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32547 (eval $ac_try) 2>&5
32548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; }; then
32551 eval "$as_ac_var=yes"
32552 else
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 eval "$as_ac_var=no"
32558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32562 if test `eval echo '${'$as_ac_var'}'` = yes; then
32563 cat >>confdefs.h <<_ACEOF
32564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32565 _ACEOF
32568 done
32575 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
32576 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
32577 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
32578 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
32579 echo $ECHO_N "(cached) $ECHO_C" >&6
32580 else
32584 ac_ext=cc
32585 ac_cpp='$CXXCPP $CPPFLAGS'
32586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32590 cat >conftest.$ac_ext <<_ACEOF
32591 #line $LINENO "configure"
32592 /* confdefs.h. */
32593 _ACEOF
32594 cat confdefs.h >>conftest.$ac_ext
32595 cat >>conftest.$ac_ext <<_ACEOF
32596 /* end confdefs.h. */
32597 #include <math.h>
32599 main ()
32601 frexpf(0, 0);
32603 return 0;
32605 _ACEOF
32606 rm -f conftest.$ac_objext
32607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32608 (eval $ac_compile) 2>&5
32609 ac_status=$?
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); } &&
32612 { ac_try='test -s conftest.$ac_objext'
32613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32614 (eval $ac_try) 2>&5
32615 ac_status=$?
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); }; }; then
32618 glibcxx_cv_func_frexpf_use=yes
32619 else
32620 echo "$as_me: failed program was:" >&5
32621 sed 's/^/| /' conftest.$ac_ext >&5
32623 glibcxx_cv_func_frexpf_use=no
32625 rm -f conftest.$ac_objext conftest.$ac_ext
32626 ac_ext=c
32627 ac_cpp='$CPP $CPPFLAGS'
32628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32636 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
32637 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
32639 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
32641 for ac_func in frexpf
32643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32644 echo "$as_me:$LINENO: checking for $ac_func" >&5
32645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32646 if eval "test \"\${$as_ac_var+set}\" = set"; then
32647 echo $ECHO_N "(cached) $ECHO_C" >&6
32648 else
32649 if test x$gcc_no_link = xyes; then
32650 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32652 { (exit 1); exit 1; }; }
32654 cat >conftest.$ac_ext <<_ACEOF
32655 #line $LINENO "configure"
32656 /* confdefs.h. */
32657 _ACEOF
32658 cat confdefs.h >>conftest.$ac_ext
32659 cat >>conftest.$ac_ext <<_ACEOF
32660 /* end confdefs.h. */
32661 /* System header to define __stub macros and hopefully few prototypes,
32662 which can conflict with char $ac_func (); below.
32663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32664 <limits.h> exists even on freestanding compilers. */
32665 #ifdef __STDC__
32666 # include <limits.h>
32667 #else
32668 # include <assert.h>
32669 #endif
32670 /* Override any gcc2 internal prototype to avoid an error. */
32671 #ifdef __cplusplus
32672 extern "C"
32674 #endif
32675 /* We use char because int might match the return type of a gcc2
32676 builtin and then its argument prototype would still apply. */
32677 char $ac_func ();
32678 /* The GNU C library defines this for functions which it implements
32679 to always fail with ENOSYS. Some functions are actually named
32680 something starting with __ and the normal name is an alias. */
32681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32682 choke me
32683 #else
32684 char (*f) () = $ac_func;
32685 #endif
32686 #ifdef __cplusplus
32688 #endif
32691 main ()
32693 return f != $ac_func;
32695 return 0;
32697 _ACEOF
32698 rm -f conftest.$ac_objext conftest$ac_exeext
32699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32700 (eval $ac_link) 2>&5
32701 ac_status=$?
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); } &&
32704 { ac_try='test -s conftest$ac_exeext'
32705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32706 (eval $ac_try) 2>&5
32707 ac_status=$?
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); }; }; then
32710 eval "$as_ac_var=yes"
32711 else
32712 echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32715 eval "$as_ac_var=no"
32717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32721 if test `eval echo '${'$as_ac_var'}'` = yes; then
32722 cat >>confdefs.h <<_ACEOF
32723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32724 _ACEOF
32727 done
32729 else
32731 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
32732 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
32733 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
32734 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
32735 echo $ECHO_N "(cached) $ECHO_C" >&6
32736 else
32740 ac_ext=cc
32741 ac_cpp='$CXXCPP $CPPFLAGS'
32742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32746 cat >conftest.$ac_ext <<_ACEOF
32747 #line $LINENO "configure"
32748 /* confdefs.h. */
32749 _ACEOF
32750 cat confdefs.h >>conftest.$ac_ext
32751 cat >>conftest.$ac_ext <<_ACEOF
32752 /* end confdefs.h. */
32753 #include <math.h>
32755 main ()
32757 _frexpf(0, 0);
32759 return 0;
32761 _ACEOF
32762 rm -f conftest.$ac_objext
32763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32764 (eval $ac_compile) 2>&5
32765 ac_status=$?
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); } &&
32768 { ac_try='test -s conftest.$ac_objext'
32769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770 (eval $ac_try) 2>&5
32771 ac_status=$?
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); }; }; then
32774 glibcxx_cv_func__frexpf_use=yes
32775 else
32776 echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32779 glibcxx_cv_func__frexpf_use=no
32781 rm -f conftest.$ac_objext conftest.$ac_ext
32782 ac_ext=c
32783 ac_cpp='$CPP $CPPFLAGS'
32784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32792 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
32793 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
32795 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
32797 for ac_func in _frexpf
32799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32800 echo "$as_me:$LINENO: checking for $ac_func" >&5
32801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32802 if eval "test \"\${$as_ac_var+set}\" = set"; then
32803 echo $ECHO_N "(cached) $ECHO_C" >&6
32804 else
32805 if test x$gcc_no_link = xyes; then
32806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32808 { (exit 1); exit 1; }; }
32810 cat >conftest.$ac_ext <<_ACEOF
32811 #line $LINENO "configure"
32812 /* confdefs.h. */
32813 _ACEOF
32814 cat confdefs.h >>conftest.$ac_ext
32815 cat >>conftest.$ac_ext <<_ACEOF
32816 /* end confdefs.h. */
32817 /* System header to define __stub macros and hopefully few prototypes,
32818 which can conflict with char $ac_func (); below.
32819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32820 <limits.h> exists even on freestanding compilers. */
32821 #ifdef __STDC__
32822 # include <limits.h>
32823 #else
32824 # include <assert.h>
32825 #endif
32826 /* Override any gcc2 internal prototype to avoid an error. */
32827 #ifdef __cplusplus
32828 extern "C"
32830 #endif
32831 /* We use char because int might match the return type of a gcc2
32832 builtin and then its argument prototype would still apply. */
32833 char $ac_func ();
32834 /* The GNU C library defines this for functions which it implements
32835 to always fail with ENOSYS. Some functions are actually named
32836 something starting with __ and the normal name is an alias. */
32837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32838 choke me
32839 #else
32840 char (*f) () = $ac_func;
32841 #endif
32842 #ifdef __cplusplus
32844 #endif
32847 main ()
32849 return f != $ac_func;
32851 return 0;
32853 _ACEOF
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32856 (eval $ac_link) 2>&5
32857 ac_status=$?
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); } &&
32860 { ac_try='test -s conftest$ac_exeext'
32861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862 (eval $ac_try) 2>&5
32863 ac_status=$?
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; }; then
32866 eval "$as_ac_var=yes"
32867 else
32868 echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.$ac_ext >&5
32871 eval "$as_ac_var=no"
32873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32877 if test `eval echo '${'$as_ac_var'}'` = yes; then
32878 cat >>confdefs.h <<_ACEOF
32879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32880 _ACEOF
32883 done
32890 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
32891 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
32892 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
32893 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32895 else
32899 ac_ext=cc
32900 ac_cpp='$CXXCPP $CPPFLAGS'
32901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32905 cat >conftest.$ac_ext <<_ACEOF
32906 #line $LINENO "configure"
32907 /* confdefs.h. */
32908 _ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h. */
32912 #include <math.h>
32914 main ()
32916 hypotf(0, 0);
32918 return 0;
32920 _ACEOF
32921 rm -f conftest.$ac_objext
32922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32923 (eval $ac_compile) 2>&5
32924 ac_status=$?
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); } &&
32927 { ac_try='test -s conftest.$ac_objext'
32928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32929 (eval $ac_try) 2>&5
32930 ac_status=$?
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); }; }; then
32933 glibcxx_cv_func_hypotf_use=yes
32934 else
32935 echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32938 glibcxx_cv_func_hypotf_use=no
32940 rm -f conftest.$ac_objext conftest.$ac_ext
32941 ac_ext=c
32942 ac_cpp='$CPP $CPPFLAGS'
32943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32951 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
32952 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
32954 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
32956 for ac_func in hypotf
32958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32959 echo "$as_me:$LINENO: checking for $ac_func" >&5
32960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32961 if eval "test \"\${$as_ac_var+set}\" = set"; then
32962 echo $ECHO_N "(cached) $ECHO_C" >&6
32963 else
32964 if test x$gcc_no_link = xyes; then
32965 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32967 { (exit 1); exit 1; }; }
32969 cat >conftest.$ac_ext <<_ACEOF
32970 #line $LINENO "configure"
32971 /* confdefs.h. */
32972 _ACEOF
32973 cat confdefs.h >>conftest.$ac_ext
32974 cat >>conftest.$ac_ext <<_ACEOF
32975 /* end confdefs.h. */
32976 /* System header to define __stub macros and hopefully few prototypes,
32977 which can conflict with char $ac_func (); below.
32978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32979 <limits.h> exists even on freestanding compilers. */
32980 #ifdef __STDC__
32981 # include <limits.h>
32982 #else
32983 # include <assert.h>
32984 #endif
32985 /* Override any gcc2 internal prototype to avoid an error. */
32986 #ifdef __cplusplus
32987 extern "C"
32989 #endif
32990 /* We use char because int might match the return type of a gcc2
32991 builtin and then its argument prototype would still apply. */
32992 char $ac_func ();
32993 /* The GNU C library defines this for functions which it implements
32994 to always fail with ENOSYS. Some functions are actually named
32995 something starting with __ and the normal name is an alias. */
32996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32997 choke me
32998 #else
32999 char (*f) () = $ac_func;
33000 #endif
33001 #ifdef __cplusplus
33003 #endif
33006 main ()
33008 return f != $ac_func;
33010 return 0;
33012 _ACEOF
33013 rm -f conftest.$ac_objext conftest$ac_exeext
33014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33015 (eval $ac_link) 2>&5
33016 ac_status=$?
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); } &&
33019 { ac_try='test -s conftest$ac_exeext'
33020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021 (eval $ac_try) 2>&5
33022 ac_status=$?
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; }; then
33025 eval "$as_ac_var=yes"
33026 else
33027 echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33030 eval "$as_ac_var=no"
33032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33036 if test `eval echo '${'$as_ac_var'}'` = yes; then
33037 cat >>confdefs.h <<_ACEOF
33038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33039 _ACEOF
33042 done
33044 else
33046 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
33047 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
33048 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
33049 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
33050 echo $ECHO_N "(cached) $ECHO_C" >&6
33051 else
33055 ac_ext=cc
33056 ac_cpp='$CXXCPP $CPPFLAGS'
33057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33061 cat >conftest.$ac_ext <<_ACEOF
33062 #line $LINENO "configure"
33063 /* confdefs.h. */
33064 _ACEOF
33065 cat confdefs.h >>conftest.$ac_ext
33066 cat >>conftest.$ac_ext <<_ACEOF
33067 /* end confdefs.h. */
33068 #include <math.h>
33070 main ()
33072 _hypotf(0, 0);
33074 return 0;
33076 _ACEOF
33077 rm -f conftest.$ac_objext
33078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33079 (eval $ac_compile) 2>&5
33080 ac_status=$?
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); } &&
33083 { ac_try='test -s conftest.$ac_objext'
33084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085 (eval $ac_try) 2>&5
33086 ac_status=$?
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
33089 glibcxx_cv_func__hypotf_use=yes
33090 else
33091 echo "$as_me: failed program was:" >&5
33092 sed 's/^/| /' conftest.$ac_ext >&5
33094 glibcxx_cv_func__hypotf_use=no
33096 rm -f conftest.$ac_objext conftest.$ac_ext
33097 ac_ext=c
33098 ac_cpp='$CPP $CPPFLAGS'
33099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33107 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
33108 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
33110 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
33112 for ac_func in _hypotf
33114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33115 echo "$as_me:$LINENO: checking for $ac_func" >&5
33116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33117 if eval "test \"\${$as_ac_var+set}\" = set"; then
33118 echo $ECHO_N "(cached) $ECHO_C" >&6
33119 else
33120 if test x$gcc_no_link = xyes; then
33121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33123 { (exit 1); exit 1; }; }
33125 cat >conftest.$ac_ext <<_ACEOF
33126 #line $LINENO "configure"
33127 /* confdefs.h. */
33128 _ACEOF
33129 cat confdefs.h >>conftest.$ac_ext
33130 cat >>conftest.$ac_ext <<_ACEOF
33131 /* end confdefs.h. */
33132 /* System header to define __stub macros and hopefully few prototypes,
33133 which can conflict with char $ac_func (); below.
33134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33135 <limits.h> exists even on freestanding compilers. */
33136 #ifdef __STDC__
33137 # include <limits.h>
33138 #else
33139 # include <assert.h>
33140 #endif
33141 /* Override any gcc2 internal prototype to avoid an error. */
33142 #ifdef __cplusplus
33143 extern "C"
33145 #endif
33146 /* We use char because int might match the return type of a gcc2
33147 builtin and then its argument prototype would still apply. */
33148 char $ac_func ();
33149 /* The GNU C library defines this for functions which it implements
33150 to always fail with ENOSYS. Some functions are actually named
33151 something starting with __ and the normal name is an alias. */
33152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33153 choke me
33154 #else
33155 char (*f) () = $ac_func;
33156 #endif
33157 #ifdef __cplusplus
33159 #endif
33162 main ()
33164 return f != $ac_func;
33166 return 0;
33168 _ACEOF
33169 rm -f conftest.$ac_objext conftest$ac_exeext
33170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33171 (eval $ac_link) 2>&5
33172 ac_status=$?
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); } &&
33175 { ac_try='test -s conftest$ac_exeext'
33176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33177 (eval $ac_try) 2>&5
33178 ac_status=$?
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); }; }; then
33181 eval "$as_ac_var=yes"
33182 else
33183 echo "$as_me: failed program was:" >&5
33184 sed 's/^/| /' conftest.$ac_ext >&5
33186 eval "$as_ac_var=no"
33188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33192 if test `eval echo '${'$as_ac_var'}'` = yes; then
33193 cat >>confdefs.h <<_ACEOF
33194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33195 _ACEOF
33198 done
33205 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
33206 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
33207 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33208 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
33209 echo $ECHO_N "(cached) $ECHO_C" >&6
33210 else
33214 ac_ext=cc
33215 ac_cpp='$CXXCPP $CPPFLAGS'
33216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33220 cat >conftest.$ac_ext <<_ACEOF
33221 #line $LINENO "configure"
33222 /* confdefs.h. */
33223 _ACEOF
33224 cat confdefs.h >>conftest.$ac_ext
33225 cat >>conftest.$ac_ext <<_ACEOF
33226 /* end confdefs.h. */
33227 #include <math.h>
33229 main ()
33231 ldexpf(0, 0);
33233 return 0;
33235 _ACEOF
33236 rm -f conftest.$ac_objext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33238 (eval $ac_compile) 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } &&
33242 { ac_try='test -s conftest.$ac_objext'
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33245 ac_status=$?
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
33248 glibcxx_cv_func_ldexpf_use=yes
33249 else
33250 echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33253 glibcxx_cv_func_ldexpf_use=no
33255 rm -f conftest.$ac_objext conftest.$ac_ext
33256 ac_ext=c
33257 ac_cpp='$CPP $CPPFLAGS'
33258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33266 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
33267 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
33269 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33271 for ac_func in ldexpf
33273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33274 echo "$as_me:$LINENO: checking for $ac_func" >&5
33275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33276 if eval "test \"\${$as_ac_var+set}\" = set"; then
33277 echo $ECHO_N "(cached) $ECHO_C" >&6
33278 else
33279 if test x$gcc_no_link = xyes; then
33280 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33282 { (exit 1); exit 1; }; }
33284 cat >conftest.$ac_ext <<_ACEOF
33285 #line $LINENO "configure"
33286 /* confdefs.h. */
33287 _ACEOF
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h. */
33291 /* System header to define __stub macros and hopefully few prototypes,
33292 which can conflict with char $ac_func (); below.
33293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33294 <limits.h> exists even on freestanding compilers. */
33295 #ifdef __STDC__
33296 # include <limits.h>
33297 #else
33298 # include <assert.h>
33299 #endif
33300 /* Override any gcc2 internal prototype to avoid an error. */
33301 #ifdef __cplusplus
33302 extern "C"
33304 #endif
33305 /* We use char because int might match the return type of a gcc2
33306 builtin and then its argument prototype would still apply. */
33307 char $ac_func ();
33308 /* The GNU C library defines this for functions which it implements
33309 to always fail with ENOSYS. Some functions are actually named
33310 something starting with __ and the normal name is an alias. */
33311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33312 choke me
33313 #else
33314 char (*f) () = $ac_func;
33315 #endif
33316 #ifdef __cplusplus
33318 #endif
33321 main ()
33323 return f != $ac_func;
33325 return 0;
33327 _ACEOF
33328 rm -f conftest.$ac_objext conftest$ac_exeext
33329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33330 (eval $ac_link) 2>&5
33331 ac_status=$?
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); } &&
33334 { ac_try='test -s conftest$ac_exeext'
33335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33336 (eval $ac_try) 2>&5
33337 ac_status=$?
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; }; then
33340 eval "$as_ac_var=yes"
33341 else
33342 echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33345 eval "$as_ac_var=no"
33347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33351 if test `eval echo '${'$as_ac_var'}'` = yes; then
33352 cat >>confdefs.h <<_ACEOF
33353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33354 _ACEOF
33357 done
33359 else
33361 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
33362 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
33363 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
33364 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
33365 echo $ECHO_N "(cached) $ECHO_C" >&6
33366 else
33370 ac_ext=cc
33371 ac_cpp='$CXXCPP $CPPFLAGS'
33372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33376 cat >conftest.$ac_ext <<_ACEOF
33377 #line $LINENO "configure"
33378 /* confdefs.h. */
33379 _ACEOF
33380 cat confdefs.h >>conftest.$ac_ext
33381 cat >>conftest.$ac_ext <<_ACEOF
33382 /* end confdefs.h. */
33383 #include <math.h>
33385 main ()
33387 _ldexpf(0, 0);
33389 return 0;
33391 _ACEOF
33392 rm -f conftest.$ac_objext
33393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33394 (eval $ac_compile) 2>&5
33395 ac_status=$?
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); } &&
33398 { ac_try='test -s conftest.$ac_objext'
33399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33400 (eval $ac_try) 2>&5
33401 ac_status=$?
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
33404 glibcxx_cv_func__ldexpf_use=yes
33405 else
33406 echo "$as_me: failed program was:" >&5
33407 sed 's/^/| /' conftest.$ac_ext >&5
33409 glibcxx_cv_func__ldexpf_use=no
33411 rm -f conftest.$ac_objext conftest.$ac_ext
33412 ac_ext=c
33413 ac_cpp='$CPP $CPPFLAGS'
33414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33422 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
33423 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
33425 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
33427 for ac_func in _ldexpf
33429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33430 echo "$as_me:$LINENO: checking for $ac_func" >&5
33431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33432 if eval "test \"\${$as_ac_var+set}\" = set"; then
33433 echo $ECHO_N "(cached) $ECHO_C" >&6
33434 else
33435 if test x$gcc_no_link = xyes; then
33436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33438 { (exit 1); exit 1; }; }
33440 cat >conftest.$ac_ext <<_ACEOF
33441 #line $LINENO "configure"
33442 /* confdefs.h. */
33443 _ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h. */
33447 /* System header to define __stub macros and hopefully few prototypes,
33448 which can conflict with char $ac_func (); below.
33449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33450 <limits.h> exists even on freestanding compilers. */
33451 #ifdef __STDC__
33452 # include <limits.h>
33453 #else
33454 # include <assert.h>
33455 #endif
33456 /* Override any gcc2 internal prototype to avoid an error. */
33457 #ifdef __cplusplus
33458 extern "C"
33460 #endif
33461 /* We use char because int might match the return type of a gcc2
33462 builtin and then its argument prototype would still apply. */
33463 char $ac_func ();
33464 /* The GNU C library defines this for functions which it implements
33465 to always fail with ENOSYS. Some functions are actually named
33466 something starting with __ and the normal name is an alias. */
33467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33468 choke me
33469 #else
33470 char (*f) () = $ac_func;
33471 #endif
33472 #ifdef __cplusplus
33474 #endif
33477 main ()
33479 return f != $ac_func;
33481 return 0;
33483 _ACEOF
33484 rm -f conftest.$ac_objext conftest$ac_exeext
33485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33486 (eval $ac_link) 2>&5
33487 ac_status=$?
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); } &&
33490 { ac_try='test -s conftest$ac_exeext'
33491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33492 (eval $ac_try) 2>&5
33493 ac_status=$?
33494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495 (exit $ac_status); }; }; then
33496 eval "$as_ac_var=yes"
33497 else
33498 echo "$as_me: failed program was:" >&5
33499 sed 's/^/| /' conftest.$ac_ext >&5
33501 eval "$as_ac_var=no"
33503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33507 if test `eval echo '${'$as_ac_var'}'` = yes; then
33508 cat >>confdefs.h <<_ACEOF
33509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33510 _ACEOF
33513 done
33520 echo "$as_me:$LINENO: checking for logf declaration" >&5
33521 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
33522 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33523 if test "${glibcxx_cv_func_logf_use+set}" = set; then
33524 echo $ECHO_N "(cached) $ECHO_C" >&6
33525 else
33529 ac_ext=cc
33530 ac_cpp='$CXXCPP $CPPFLAGS'
33531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33535 cat >conftest.$ac_ext <<_ACEOF
33536 #line $LINENO "configure"
33537 /* confdefs.h. */
33538 _ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h. */
33542 #include <math.h>
33543 #ifdef HAVE_IEEEFP_H
33544 #include <ieeefp.h>
33545 #endif
33548 main ()
33550 logf(0);
33552 return 0;
33554 _ACEOF
33555 rm -f conftest.$ac_objext
33556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33557 (eval $ac_compile) 2>&5
33558 ac_status=$?
33559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560 (exit $ac_status); } &&
33561 { ac_try='test -s conftest.$ac_objext'
33562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33563 (eval $ac_try) 2>&5
33564 ac_status=$?
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); }; }; then
33567 glibcxx_cv_func_logf_use=yes
33568 else
33569 echo "$as_me: failed program was:" >&5
33570 sed 's/^/| /' conftest.$ac_ext >&5
33572 glibcxx_cv_func_logf_use=no
33574 rm -f conftest.$ac_objext conftest.$ac_ext
33575 ac_ext=c
33576 ac_cpp='$CPP $CPPFLAGS'
33577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33585 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
33586 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
33588 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33590 for ac_func in logf
33592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33593 echo "$as_me:$LINENO: checking for $ac_func" >&5
33594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33595 if eval "test \"\${$as_ac_var+set}\" = set"; then
33596 echo $ECHO_N "(cached) $ECHO_C" >&6
33597 else
33598 if test x$gcc_no_link = xyes; then
33599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33601 { (exit 1); exit 1; }; }
33603 cat >conftest.$ac_ext <<_ACEOF
33604 #line $LINENO "configure"
33605 /* confdefs.h. */
33606 _ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h. */
33610 /* System header to define __stub macros and hopefully few prototypes,
33611 which can conflict with char $ac_func (); below.
33612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33613 <limits.h> exists even on freestanding compilers. */
33614 #ifdef __STDC__
33615 # include <limits.h>
33616 #else
33617 # include <assert.h>
33618 #endif
33619 /* Override any gcc2 internal prototype to avoid an error. */
33620 #ifdef __cplusplus
33621 extern "C"
33623 #endif
33624 /* We use char because int might match the return type of a gcc2
33625 builtin and then its argument prototype would still apply. */
33626 char $ac_func ();
33627 /* The GNU C library defines this for functions which it implements
33628 to always fail with ENOSYS. Some functions are actually named
33629 something starting with __ and the normal name is an alias. */
33630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33631 choke me
33632 #else
33633 char (*f) () = $ac_func;
33634 #endif
33635 #ifdef __cplusplus
33637 #endif
33640 main ()
33642 return f != $ac_func;
33644 return 0;
33646 _ACEOF
33647 rm -f conftest.$ac_objext conftest$ac_exeext
33648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33649 (eval $ac_link) 2>&5
33650 ac_status=$?
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } &&
33653 { ac_try='test -s conftest$ac_exeext'
33654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33655 (eval $ac_try) 2>&5
33656 ac_status=$?
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); }; }; then
33659 eval "$as_ac_var=yes"
33660 else
33661 echo "$as_me: failed program was:" >&5
33662 sed 's/^/| /' conftest.$ac_ext >&5
33664 eval "$as_ac_var=no"
33666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33670 if test `eval echo '${'$as_ac_var'}'` = yes; then
33671 cat >>confdefs.h <<_ACEOF
33672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33673 _ACEOF
33676 done
33678 else
33680 echo "$as_me:$LINENO: checking for _logf declaration" >&5
33681 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
33682 if test x${glibcxx_cv_func__logf_use+set} != xset; then
33683 if test "${glibcxx_cv_func__logf_use+set}" = set; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
33685 else
33689 ac_ext=cc
33690 ac_cpp='$CXXCPP $CPPFLAGS'
33691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33695 cat >conftest.$ac_ext <<_ACEOF
33696 #line $LINENO "configure"
33697 /* confdefs.h. */
33698 _ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h. */
33702 #include <math.h>
33703 #ifdef HAVE_IEEEFP_H
33704 #include <ieeefp.h>
33705 #endif
33708 main ()
33710 _logf(0);
33712 return 0;
33714 _ACEOF
33715 rm -f conftest.$ac_objext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33717 (eval $ac_compile) 2>&5
33718 ac_status=$?
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } &&
33721 { ac_try='test -s conftest.$ac_objext'
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33724 ac_status=$?
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; }; then
33727 glibcxx_cv_func__logf_use=yes
33728 else
33729 echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33732 glibcxx_cv_func__logf_use=no
33734 rm -f conftest.$ac_objext conftest.$ac_ext
33735 ac_ext=c
33736 ac_cpp='$CPP $CPPFLAGS'
33737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33745 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
33746 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
33748 if test x$glibcxx_cv_func__logf_use = x"yes"; then
33750 for ac_func in _logf
33752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33753 echo "$as_me:$LINENO: checking for $ac_func" >&5
33754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33755 if eval "test \"\${$as_ac_var+set}\" = set"; then
33756 echo $ECHO_N "(cached) $ECHO_C" >&6
33757 else
33758 if test x$gcc_no_link = xyes; then
33759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33761 { (exit 1); exit 1; }; }
33763 cat >conftest.$ac_ext <<_ACEOF
33764 #line $LINENO "configure"
33765 /* confdefs.h. */
33766 _ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h. */
33770 /* System header to define __stub macros and hopefully few prototypes,
33771 which can conflict with char $ac_func (); below.
33772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33773 <limits.h> exists even on freestanding compilers. */
33774 #ifdef __STDC__
33775 # include <limits.h>
33776 #else
33777 # include <assert.h>
33778 #endif
33779 /* Override any gcc2 internal prototype to avoid an error. */
33780 #ifdef __cplusplus
33781 extern "C"
33783 #endif
33784 /* We use char because int might match the return type of a gcc2
33785 builtin and then its argument prototype would still apply. */
33786 char $ac_func ();
33787 /* The GNU C library defines this for functions which it implements
33788 to always fail with ENOSYS. Some functions are actually named
33789 something starting with __ and the normal name is an alias. */
33790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33791 choke me
33792 #else
33793 char (*f) () = $ac_func;
33794 #endif
33795 #ifdef __cplusplus
33797 #endif
33800 main ()
33802 return f != $ac_func;
33804 return 0;
33806 _ACEOF
33807 rm -f conftest.$ac_objext conftest$ac_exeext
33808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33809 (eval $ac_link) 2>&5
33810 ac_status=$?
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } &&
33813 { ac_try='test -s conftest$ac_exeext'
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 eval "$as_ac_var=yes"
33820 else
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33824 eval "$as_ac_var=no"
33826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33830 if test `eval echo '${'$as_ac_var'}'` = yes; then
33831 cat >>confdefs.h <<_ACEOF
33832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33833 _ACEOF
33836 done
33843 echo "$as_me:$LINENO: checking for log10f declaration" >&5
33844 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
33845 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
33846 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
33847 echo $ECHO_N "(cached) $ECHO_C" >&6
33848 else
33852 ac_ext=cc
33853 ac_cpp='$CXXCPP $CPPFLAGS'
33854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33858 cat >conftest.$ac_ext <<_ACEOF
33859 #line $LINENO "configure"
33860 /* confdefs.h. */
33861 _ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h. */
33865 #include <math.h>
33866 #ifdef HAVE_IEEEFP_H
33867 #include <ieeefp.h>
33868 #endif
33871 main ()
33873 log10f(0);
33875 return 0;
33877 _ACEOF
33878 rm -f conftest.$ac_objext
33879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33880 (eval $ac_compile) 2>&5
33881 ac_status=$?
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); } &&
33884 { ac_try='test -s conftest.$ac_objext'
33885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33886 (eval $ac_try) 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 glibcxx_cv_func_log10f_use=yes
33891 else
33892 echo "$as_me: failed program was:" >&5
33893 sed 's/^/| /' conftest.$ac_ext >&5
33895 glibcxx_cv_func_log10f_use=no
33897 rm -f conftest.$ac_objext conftest.$ac_ext
33898 ac_ext=c
33899 ac_cpp='$CPP $CPPFLAGS'
33900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33908 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
33909 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
33911 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
33913 for ac_func in log10f
33915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33916 echo "$as_me:$LINENO: checking for $ac_func" >&5
33917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33918 if eval "test \"\${$as_ac_var+set}\" = set"; then
33919 echo $ECHO_N "(cached) $ECHO_C" >&6
33920 else
33921 if test x$gcc_no_link = xyes; then
33922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33924 { (exit 1); exit 1; }; }
33926 cat >conftest.$ac_ext <<_ACEOF
33927 #line $LINENO "configure"
33928 /* confdefs.h. */
33929 _ACEOF
33930 cat confdefs.h >>conftest.$ac_ext
33931 cat >>conftest.$ac_ext <<_ACEOF
33932 /* end confdefs.h. */
33933 /* System header to define __stub macros and hopefully few prototypes,
33934 which can conflict with char $ac_func (); below.
33935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33936 <limits.h> exists even on freestanding compilers. */
33937 #ifdef __STDC__
33938 # include <limits.h>
33939 #else
33940 # include <assert.h>
33941 #endif
33942 /* Override any gcc2 internal prototype to avoid an error. */
33943 #ifdef __cplusplus
33944 extern "C"
33946 #endif
33947 /* We use char because int might match the return type of a gcc2
33948 builtin and then its argument prototype would still apply. */
33949 char $ac_func ();
33950 /* The GNU C library defines this for functions which it implements
33951 to always fail with ENOSYS. Some functions are actually named
33952 something starting with __ and the normal name is an alias. */
33953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33954 choke me
33955 #else
33956 char (*f) () = $ac_func;
33957 #endif
33958 #ifdef __cplusplus
33960 #endif
33963 main ()
33965 return f != $ac_func;
33967 return 0;
33969 _ACEOF
33970 rm -f conftest.$ac_objext conftest$ac_exeext
33971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33972 (eval $ac_link) 2>&5
33973 ac_status=$?
33974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975 (exit $ac_status); } &&
33976 { ac_try='test -s conftest$ac_exeext'
33977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33978 (eval $ac_try) 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; }; then
33982 eval "$as_ac_var=yes"
33983 else
33984 echo "$as_me: failed program was:" >&5
33985 sed 's/^/| /' conftest.$ac_ext >&5
33987 eval "$as_ac_var=no"
33989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33993 if test `eval echo '${'$as_ac_var'}'` = yes; then
33994 cat >>confdefs.h <<_ACEOF
33995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33996 _ACEOF
33999 done
34001 else
34003 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
34004 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
34005 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
34006 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
34007 echo $ECHO_N "(cached) $ECHO_C" >&6
34008 else
34012 ac_ext=cc
34013 ac_cpp='$CXXCPP $CPPFLAGS'
34014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34018 cat >conftest.$ac_ext <<_ACEOF
34019 #line $LINENO "configure"
34020 /* confdefs.h. */
34021 _ACEOF
34022 cat confdefs.h >>conftest.$ac_ext
34023 cat >>conftest.$ac_ext <<_ACEOF
34024 /* end confdefs.h. */
34025 #include <math.h>
34026 #ifdef HAVE_IEEEFP_H
34027 #include <ieeefp.h>
34028 #endif
34031 main ()
34033 _log10f(0);
34035 return 0;
34037 _ACEOF
34038 rm -f conftest.$ac_objext
34039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34040 (eval $ac_compile) 2>&5
34041 ac_status=$?
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); } &&
34044 { ac_try='test -s conftest.$ac_objext'
34045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34046 (eval $ac_try) 2>&5
34047 ac_status=$?
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); }; }; then
34050 glibcxx_cv_func__log10f_use=yes
34051 else
34052 echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34055 glibcxx_cv_func__log10f_use=no
34057 rm -f conftest.$ac_objext conftest.$ac_ext
34058 ac_ext=c
34059 ac_cpp='$CPP $CPPFLAGS'
34060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34068 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
34069 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
34071 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
34073 for ac_func in _log10f
34075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34076 echo "$as_me:$LINENO: checking for $ac_func" >&5
34077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34078 if eval "test \"\${$as_ac_var+set}\" = set"; then
34079 echo $ECHO_N "(cached) $ECHO_C" >&6
34080 else
34081 if test x$gcc_no_link = xyes; then
34082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34084 { (exit 1); exit 1; }; }
34086 cat >conftest.$ac_ext <<_ACEOF
34087 #line $LINENO "configure"
34088 /* confdefs.h. */
34089 _ACEOF
34090 cat confdefs.h >>conftest.$ac_ext
34091 cat >>conftest.$ac_ext <<_ACEOF
34092 /* end confdefs.h. */
34093 /* System header to define __stub macros and hopefully few prototypes,
34094 which can conflict with char $ac_func (); below.
34095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34096 <limits.h> exists even on freestanding compilers. */
34097 #ifdef __STDC__
34098 # include <limits.h>
34099 #else
34100 # include <assert.h>
34101 #endif
34102 /* Override any gcc2 internal prototype to avoid an error. */
34103 #ifdef __cplusplus
34104 extern "C"
34106 #endif
34107 /* We use char because int might match the return type of a gcc2
34108 builtin and then its argument prototype would still apply. */
34109 char $ac_func ();
34110 /* The GNU C library defines this for functions which it implements
34111 to always fail with ENOSYS. Some functions are actually named
34112 something starting with __ and the normal name is an alias. */
34113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34114 choke me
34115 #else
34116 char (*f) () = $ac_func;
34117 #endif
34118 #ifdef __cplusplus
34120 #endif
34123 main ()
34125 return f != $ac_func;
34127 return 0;
34129 _ACEOF
34130 rm -f conftest.$ac_objext conftest$ac_exeext
34131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34132 (eval $ac_link) 2>&5
34133 ac_status=$?
34134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135 (exit $ac_status); } &&
34136 { ac_try='test -s conftest$ac_exeext'
34137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138 (eval $ac_try) 2>&5
34139 ac_status=$?
34140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141 (exit $ac_status); }; }; then
34142 eval "$as_ac_var=yes"
34143 else
34144 echo "$as_me: failed program was:" >&5
34145 sed 's/^/| /' conftest.$ac_ext >&5
34147 eval "$as_ac_var=no"
34149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34153 if test `eval echo '${'$as_ac_var'}'` = yes; then
34154 cat >>confdefs.h <<_ACEOF
34155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34156 _ACEOF
34159 done
34166 echo "$as_me:$LINENO: checking for modff declaration" >&5
34167 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
34168 if test x${glibcxx_cv_func_modff_use+set} != xset; then
34169 if test "${glibcxx_cv_func_modff_use+set}" = set; then
34170 echo $ECHO_N "(cached) $ECHO_C" >&6
34171 else
34175 ac_ext=cc
34176 ac_cpp='$CXXCPP $CPPFLAGS'
34177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34181 cat >conftest.$ac_ext <<_ACEOF
34182 #line $LINENO "configure"
34183 /* confdefs.h. */
34184 _ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h. */
34188 #include <math.h>
34190 main ()
34192 modff(0, 0);
34194 return 0;
34196 _ACEOF
34197 rm -f conftest.$ac_objext
34198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34199 (eval $ac_compile) 2>&5
34200 ac_status=$?
34201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 (exit $ac_status); } &&
34203 { ac_try='test -s conftest.$ac_objext'
34204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34205 (eval $ac_try) 2>&5
34206 ac_status=$?
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); }; }; then
34209 glibcxx_cv_func_modff_use=yes
34210 else
34211 echo "$as_me: failed program was:" >&5
34212 sed 's/^/| /' conftest.$ac_ext >&5
34214 glibcxx_cv_func_modff_use=no
34216 rm -f conftest.$ac_objext conftest.$ac_ext
34217 ac_ext=c
34218 ac_cpp='$CPP $CPPFLAGS'
34219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34227 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
34228 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
34230 if test x$glibcxx_cv_func_modff_use = x"yes"; then
34232 for ac_func in modff
34234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34235 echo "$as_me:$LINENO: checking for $ac_func" >&5
34236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34237 if eval "test \"\${$as_ac_var+set}\" = set"; then
34238 echo $ECHO_N "(cached) $ECHO_C" >&6
34239 else
34240 if test x$gcc_no_link = xyes; then
34241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34243 { (exit 1); exit 1; }; }
34245 cat >conftest.$ac_ext <<_ACEOF
34246 #line $LINENO "configure"
34247 /* confdefs.h. */
34248 _ACEOF
34249 cat confdefs.h >>conftest.$ac_ext
34250 cat >>conftest.$ac_ext <<_ACEOF
34251 /* end confdefs.h. */
34252 /* System header to define __stub macros and hopefully few prototypes,
34253 which can conflict with char $ac_func (); below.
34254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34255 <limits.h> exists even on freestanding compilers. */
34256 #ifdef __STDC__
34257 # include <limits.h>
34258 #else
34259 # include <assert.h>
34260 #endif
34261 /* Override any gcc2 internal prototype to avoid an error. */
34262 #ifdef __cplusplus
34263 extern "C"
34265 #endif
34266 /* We use char because int might match the return type of a gcc2
34267 builtin and then its argument prototype would still apply. */
34268 char $ac_func ();
34269 /* The GNU C library defines this for functions which it implements
34270 to always fail with ENOSYS. Some functions are actually named
34271 something starting with __ and the normal name is an alias. */
34272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34273 choke me
34274 #else
34275 char (*f) () = $ac_func;
34276 #endif
34277 #ifdef __cplusplus
34279 #endif
34282 main ()
34284 return f != $ac_func;
34286 return 0;
34288 _ACEOF
34289 rm -f conftest.$ac_objext conftest$ac_exeext
34290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34291 (eval $ac_link) 2>&5
34292 ac_status=$?
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294 (exit $ac_status); } &&
34295 { ac_try='test -s conftest$ac_exeext'
34296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34297 (eval $ac_try) 2>&5
34298 ac_status=$?
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300 (exit $ac_status); }; }; then
34301 eval "$as_ac_var=yes"
34302 else
34303 echo "$as_me: failed program was:" >&5
34304 sed 's/^/| /' conftest.$ac_ext >&5
34306 eval "$as_ac_var=no"
34308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34312 if test `eval echo '${'$as_ac_var'}'` = yes; then
34313 cat >>confdefs.h <<_ACEOF
34314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34315 _ACEOF
34318 done
34320 else
34322 echo "$as_me:$LINENO: checking for _modff declaration" >&5
34323 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
34324 if test x${glibcxx_cv_func__modff_use+set} != xset; then
34325 if test "${glibcxx_cv_func__modff_use+set}" = set; then
34326 echo $ECHO_N "(cached) $ECHO_C" >&6
34327 else
34331 ac_ext=cc
34332 ac_cpp='$CXXCPP $CPPFLAGS'
34333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34337 cat >conftest.$ac_ext <<_ACEOF
34338 #line $LINENO "configure"
34339 /* confdefs.h. */
34340 _ACEOF
34341 cat confdefs.h >>conftest.$ac_ext
34342 cat >>conftest.$ac_ext <<_ACEOF
34343 /* end confdefs.h. */
34344 #include <math.h>
34346 main ()
34348 _modff(0, 0);
34350 return 0;
34352 _ACEOF
34353 rm -f conftest.$ac_objext
34354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34355 (eval $ac_compile) 2>&5
34356 ac_status=$?
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); } &&
34359 { ac_try='test -s conftest.$ac_objext'
34360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361 (eval $ac_try) 2>&5
34362 ac_status=$?
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); }; }; then
34365 glibcxx_cv_func__modff_use=yes
34366 else
34367 echo "$as_me: failed program was:" >&5
34368 sed 's/^/| /' conftest.$ac_ext >&5
34370 glibcxx_cv_func__modff_use=no
34372 rm -f conftest.$ac_objext conftest.$ac_ext
34373 ac_ext=c
34374 ac_cpp='$CPP $CPPFLAGS'
34375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34383 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
34384 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
34386 if test x$glibcxx_cv_func__modff_use = x"yes"; then
34388 for ac_func in _modff
34390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34391 echo "$as_me:$LINENO: checking for $ac_func" >&5
34392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34393 if eval "test \"\${$as_ac_var+set}\" = set"; then
34394 echo $ECHO_N "(cached) $ECHO_C" >&6
34395 else
34396 if test x$gcc_no_link = xyes; then
34397 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34398 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34399 { (exit 1); exit 1; }; }
34401 cat >conftest.$ac_ext <<_ACEOF
34402 #line $LINENO "configure"
34403 /* confdefs.h. */
34404 _ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h. */
34408 /* System header to define __stub macros and hopefully few prototypes,
34409 which can conflict with char $ac_func (); below.
34410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34411 <limits.h> exists even on freestanding compilers. */
34412 #ifdef __STDC__
34413 # include <limits.h>
34414 #else
34415 # include <assert.h>
34416 #endif
34417 /* Override any gcc2 internal prototype to avoid an error. */
34418 #ifdef __cplusplus
34419 extern "C"
34421 #endif
34422 /* We use char because int might match the return type of a gcc2
34423 builtin and then its argument prototype would still apply. */
34424 char $ac_func ();
34425 /* The GNU C library defines this for functions which it implements
34426 to always fail with ENOSYS. Some functions are actually named
34427 something starting with __ and the normal name is an alias. */
34428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34429 choke me
34430 #else
34431 char (*f) () = $ac_func;
34432 #endif
34433 #ifdef __cplusplus
34435 #endif
34438 main ()
34440 return f != $ac_func;
34442 return 0;
34444 _ACEOF
34445 rm -f conftest.$ac_objext conftest$ac_exeext
34446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34447 (eval $ac_link) 2>&5
34448 ac_status=$?
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); } &&
34451 { ac_try='test -s conftest$ac_exeext'
34452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34453 (eval $ac_try) 2>&5
34454 ac_status=$?
34455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456 (exit $ac_status); }; }; then
34457 eval "$as_ac_var=yes"
34458 else
34459 echo "$as_me: failed program was:" >&5
34460 sed 's/^/| /' conftest.$ac_ext >&5
34462 eval "$as_ac_var=no"
34464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34468 if test `eval echo '${'$as_ac_var'}'` = yes; then
34469 cat >>confdefs.h <<_ACEOF
34470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34471 _ACEOF
34474 done
34481 echo "$as_me:$LINENO: checking for powf declaration" >&5
34482 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
34483 if test x${glibcxx_cv_func_powf_use+set} != xset; then
34484 if test "${glibcxx_cv_func_powf_use+set}" = set; then
34485 echo $ECHO_N "(cached) $ECHO_C" >&6
34486 else
34490 ac_ext=cc
34491 ac_cpp='$CXXCPP $CPPFLAGS'
34492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34496 cat >conftest.$ac_ext <<_ACEOF
34497 #line $LINENO "configure"
34498 /* confdefs.h. */
34499 _ACEOF
34500 cat confdefs.h >>conftest.$ac_ext
34501 cat >>conftest.$ac_ext <<_ACEOF
34502 /* end confdefs.h. */
34503 #include <math.h>
34505 main ()
34507 powf(0, 0);
34509 return 0;
34511 _ACEOF
34512 rm -f conftest.$ac_objext
34513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34514 (eval $ac_compile) 2>&5
34515 ac_status=$?
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } &&
34518 { ac_try='test -s conftest.$ac_objext'
34519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520 (eval $ac_try) 2>&5
34521 ac_status=$?
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); }; }; then
34524 glibcxx_cv_func_powf_use=yes
34525 else
34526 echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34529 glibcxx_cv_func_powf_use=no
34531 rm -f conftest.$ac_objext conftest.$ac_ext
34532 ac_ext=c
34533 ac_cpp='$CPP $CPPFLAGS'
34534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34542 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
34543 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
34545 if test x$glibcxx_cv_func_powf_use = x"yes"; then
34547 for ac_func in powf
34549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34550 echo "$as_me:$LINENO: checking for $ac_func" >&5
34551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34552 if eval "test \"\${$as_ac_var+set}\" = set"; then
34553 echo $ECHO_N "(cached) $ECHO_C" >&6
34554 else
34555 if test x$gcc_no_link = xyes; then
34556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34558 { (exit 1); exit 1; }; }
34560 cat >conftest.$ac_ext <<_ACEOF
34561 #line $LINENO "configure"
34562 /* confdefs.h. */
34563 _ACEOF
34564 cat confdefs.h >>conftest.$ac_ext
34565 cat >>conftest.$ac_ext <<_ACEOF
34566 /* end confdefs.h. */
34567 /* System header to define __stub macros and hopefully few prototypes,
34568 which can conflict with char $ac_func (); below.
34569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34570 <limits.h> exists even on freestanding compilers. */
34571 #ifdef __STDC__
34572 # include <limits.h>
34573 #else
34574 # include <assert.h>
34575 #endif
34576 /* Override any gcc2 internal prototype to avoid an error. */
34577 #ifdef __cplusplus
34578 extern "C"
34580 #endif
34581 /* We use char because int might match the return type of a gcc2
34582 builtin and then its argument prototype would still apply. */
34583 char $ac_func ();
34584 /* The GNU C library defines this for functions which it implements
34585 to always fail with ENOSYS. Some functions are actually named
34586 something starting with __ and the normal name is an alias. */
34587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34588 choke me
34589 #else
34590 char (*f) () = $ac_func;
34591 #endif
34592 #ifdef __cplusplus
34594 #endif
34597 main ()
34599 return f != $ac_func;
34601 return 0;
34603 _ACEOF
34604 rm -f conftest.$ac_objext conftest$ac_exeext
34605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34606 (eval $ac_link) 2>&5
34607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } &&
34610 { ac_try='test -s conftest$ac_exeext'
34611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34612 (eval $ac_try) 2>&5
34613 ac_status=$?
34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615 (exit $ac_status); }; }; then
34616 eval "$as_ac_var=yes"
34617 else
34618 echo "$as_me: failed program was:" >&5
34619 sed 's/^/| /' conftest.$ac_ext >&5
34621 eval "$as_ac_var=no"
34623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34627 if test `eval echo '${'$as_ac_var'}'` = yes; then
34628 cat >>confdefs.h <<_ACEOF
34629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34630 _ACEOF
34633 done
34635 else
34637 echo "$as_me:$LINENO: checking for _powf declaration" >&5
34638 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
34639 if test x${glibcxx_cv_func__powf_use+set} != xset; then
34640 if test "${glibcxx_cv_func__powf_use+set}" = set; then
34641 echo $ECHO_N "(cached) $ECHO_C" >&6
34642 else
34646 ac_ext=cc
34647 ac_cpp='$CXXCPP $CPPFLAGS'
34648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34652 cat >conftest.$ac_ext <<_ACEOF
34653 #line $LINENO "configure"
34654 /* confdefs.h. */
34655 _ACEOF
34656 cat confdefs.h >>conftest.$ac_ext
34657 cat >>conftest.$ac_ext <<_ACEOF
34658 /* end confdefs.h. */
34659 #include <math.h>
34661 main ()
34663 _powf(0, 0);
34665 return 0;
34667 _ACEOF
34668 rm -f conftest.$ac_objext
34669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34670 (eval $ac_compile) 2>&5
34671 ac_status=$?
34672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673 (exit $ac_status); } &&
34674 { ac_try='test -s conftest.$ac_objext'
34675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34676 (eval $ac_try) 2>&5
34677 ac_status=$?
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); }; }; then
34680 glibcxx_cv_func__powf_use=yes
34681 else
34682 echo "$as_me: failed program was:" >&5
34683 sed 's/^/| /' conftest.$ac_ext >&5
34685 glibcxx_cv_func__powf_use=no
34687 rm -f conftest.$ac_objext conftest.$ac_ext
34688 ac_ext=c
34689 ac_cpp='$CPP $CPPFLAGS'
34690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34698 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
34699 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
34701 if test x$glibcxx_cv_func__powf_use = x"yes"; then
34703 for ac_func in _powf
34705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34706 echo "$as_me:$LINENO: checking for $ac_func" >&5
34707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34708 if eval "test \"\${$as_ac_var+set}\" = set"; then
34709 echo $ECHO_N "(cached) $ECHO_C" >&6
34710 else
34711 if test x$gcc_no_link = xyes; then
34712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34714 { (exit 1); exit 1; }; }
34716 cat >conftest.$ac_ext <<_ACEOF
34717 #line $LINENO "configure"
34718 /* confdefs.h. */
34719 _ACEOF
34720 cat confdefs.h >>conftest.$ac_ext
34721 cat >>conftest.$ac_ext <<_ACEOF
34722 /* end confdefs.h. */
34723 /* System header to define __stub macros and hopefully few prototypes,
34724 which can conflict with char $ac_func (); below.
34725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34726 <limits.h> exists even on freestanding compilers. */
34727 #ifdef __STDC__
34728 # include <limits.h>
34729 #else
34730 # include <assert.h>
34731 #endif
34732 /* Override any gcc2 internal prototype to avoid an error. */
34733 #ifdef __cplusplus
34734 extern "C"
34736 #endif
34737 /* We use char because int might match the return type of a gcc2
34738 builtin and then its argument prototype would still apply. */
34739 char $ac_func ();
34740 /* The GNU C library defines this for functions which it implements
34741 to always fail with ENOSYS. Some functions are actually named
34742 something starting with __ and the normal name is an alias. */
34743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34744 choke me
34745 #else
34746 char (*f) () = $ac_func;
34747 #endif
34748 #ifdef __cplusplus
34750 #endif
34753 main ()
34755 return f != $ac_func;
34757 return 0;
34759 _ACEOF
34760 rm -f conftest.$ac_objext conftest$ac_exeext
34761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34762 (eval $ac_link) 2>&5
34763 ac_status=$?
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); } &&
34766 { ac_try='test -s conftest$ac_exeext'
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34769 ac_status=$?
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; }; then
34772 eval "$as_ac_var=yes"
34773 else
34774 echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34777 eval "$as_ac_var=no"
34779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34783 if test `eval echo '${'$as_ac_var'}'` = yes; then
34784 cat >>confdefs.h <<_ACEOF
34785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34786 _ACEOF
34789 done
34796 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
34797 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
34798 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
34799 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
34800 echo $ECHO_N "(cached) $ECHO_C" >&6
34801 else
34805 ac_ext=cc
34806 ac_cpp='$CXXCPP $CPPFLAGS'
34807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34811 cat >conftest.$ac_ext <<_ACEOF
34812 #line $LINENO "configure"
34813 /* confdefs.h. */
34814 _ACEOF
34815 cat confdefs.h >>conftest.$ac_ext
34816 cat >>conftest.$ac_ext <<_ACEOF
34817 /* end confdefs.h. */
34818 #include <math.h>
34819 #ifdef HAVE_IEEEFP_H
34820 #include <ieeefp.h>
34821 #endif
34824 main ()
34826 sqrtf(0);
34828 return 0;
34830 _ACEOF
34831 rm -f conftest.$ac_objext
34832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34833 (eval $ac_compile) 2>&5
34834 ac_status=$?
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); } &&
34837 { ac_try='test -s conftest.$ac_objext'
34838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34839 (eval $ac_try) 2>&5
34840 ac_status=$?
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); }; }; then
34843 glibcxx_cv_func_sqrtf_use=yes
34844 else
34845 echo "$as_me: failed program was:" >&5
34846 sed 's/^/| /' conftest.$ac_ext >&5
34848 glibcxx_cv_func_sqrtf_use=no
34850 rm -f conftest.$ac_objext conftest.$ac_ext
34851 ac_ext=c
34852 ac_cpp='$CPP $CPPFLAGS'
34853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34861 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
34862 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
34864 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
34866 for ac_func in sqrtf
34868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34869 echo "$as_me:$LINENO: checking for $ac_func" >&5
34870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34871 if eval "test \"\${$as_ac_var+set}\" = set"; then
34872 echo $ECHO_N "(cached) $ECHO_C" >&6
34873 else
34874 if test x$gcc_no_link = xyes; then
34875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34877 { (exit 1); exit 1; }; }
34879 cat >conftest.$ac_ext <<_ACEOF
34880 #line $LINENO "configure"
34881 /* confdefs.h. */
34882 _ACEOF
34883 cat confdefs.h >>conftest.$ac_ext
34884 cat >>conftest.$ac_ext <<_ACEOF
34885 /* end confdefs.h. */
34886 /* System header to define __stub macros and hopefully few prototypes,
34887 which can conflict with char $ac_func (); below.
34888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34889 <limits.h> exists even on freestanding compilers. */
34890 #ifdef __STDC__
34891 # include <limits.h>
34892 #else
34893 # include <assert.h>
34894 #endif
34895 /* Override any gcc2 internal prototype to avoid an error. */
34896 #ifdef __cplusplus
34897 extern "C"
34899 #endif
34900 /* We use char because int might match the return type of a gcc2
34901 builtin and then its argument prototype would still apply. */
34902 char $ac_func ();
34903 /* The GNU C library defines this for functions which it implements
34904 to always fail with ENOSYS. Some functions are actually named
34905 something starting with __ and the normal name is an alias. */
34906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34907 choke me
34908 #else
34909 char (*f) () = $ac_func;
34910 #endif
34911 #ifdef __cplusplus
34913 #endif
34916 main ()
34918 return f != $ac_func;
34920 return 0;
34922 _ACEOF
34923 rm -f conftest.$ac_objext conftest$ac_exeext
34924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34925 (eval $ac_link) 2>&5
34926 ac_status=$?
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); } &&
34929 { ac_try='test -s conftest$ac_exeext'
34930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931 (eval $ac_try) 2>&5
34932 ac_status=$?
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); }; }; then
34935 eval "$as_ac_var=yes"
34936 else
34937 echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34940 eval "$as_ac_var=no"
34942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34946 if test `eval echo '${'$as_ac_var'}'` = yes; then
34947 cat >>confdefs.h <<_ACEOF
34948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34949 _ACEOF
34952 done
34954 else
34956 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
34957 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
34958 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
34959 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
34960 echo $ECHO_N "(cached) $ECHO_C" >&6
34961 else
34965 ac_ext=cc
34966 ac_cpp='$CXXCPP $CPPFLAGS'
34967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34971 cat >conftest.$ac_ext <<_ACEOF
34972 #line $LINENO "configure"
34973 /* confdefs.h. */
34974 _ACEOF
34975 cat confdefs.h >>conftest.$ac_ext
34976 cat >>conftest.$ac_ext <<_ACEOF
34977 /* end confdefs.h. */
34978 #include <math.h>
34979 #ifdef HAVE_IEEEFP_H
34980 #include <ieeefp.h>
34981 #endif
34984 main ()
34986 _sqrtf(0);
34988 return 0;
34990 _ACEOF
34991 rm -f conftest.$ac_objext
34992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34993 (eval $ac_compile) 2>&5
34994 ac_status=$?
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } &&
34997 { ac_try='test -s conftest.$ac_objext'
34998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34999 (eval $ac_try) 2>&5
35000 ac_status=$?
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); }; }; then
35003 glibcxx_cv_func__sqrtf_use=yes
35004 else
35005 echo "$as_me: failed program was:" >&5
35006 sed 's/^/| /' conftest.$ac_ext >&5
35008 glibcxx_cv_func__sqrtf_use=no
35010 rm -f conftest.$ac_objext conftest.$ac_ext
35011 ac_ext=c
35012 ac_cpp='$CPP $CPPFLAGS'
35013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35021 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
35022 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
35024 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
35026 for ac_func in _sqrtf
35028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35029 echo "$as_me:$LINENO: checking for $ac_func" >&5
35030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35031 if eval "test \"\${$as_ac_var+set}\" = set"; then
35032 echo $ECHO_N "(cached) $ECHO_C" >&6
35033 else
35034 if test x$gcc_no_link = xyes; then
35035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35037 { (exit 1); exit 1; }; }
35039 cat >conftest.$ac_ext <<_ACEOF
35040 #line $LINENO "configure"
35041 /* confdefs.h. */
35042 _ACEOF
35043 cat confdefs.h >>conftest.$ac_ext
35044 cat >>conftest.$ac_ext <<_ACEOF
35045 /* end confdefs.h. */
35046 /* System header to define __stub macros and hopefully few prototypes,
35047 which can conflict with char $ac_func (); below.
35048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35049 <limits.h> exists even on freestanding compilers. */
35050 #ifdef __STDC__
35051 # include <limits.h>
35052 #else
35053 # include <assert.h>
35054 #endif
35055 /* Override any gcc2 internal prototype to avoid an error. */
35056 #ifdef __cplusplus
35057 extern "C"
35059 #endif
35060 /* We use char because int might match the return type of a gcc2
35061 builtin and then its argument prototype would still apply. */
35062 char $ac_func ();
35063 /* The GNU C library defines this for functions which it implements
35064 to always fail with ENOSYS. Some functions are actually named
35065 something starting with __ and the normal name is an alias. */
35066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35067 choke me
35068 #else
35069 char (*f) () = $ac_func;
35070 #endif
35071 #ifdef __cplusplus
35073 #endif
35076 main ()
35078 return f != $ac_func;
35080 return 0;
35082 _ACEOF
35083 rm -f conftest.$ac_objext conftest$ac_exeext
35084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35085 (eval $ac_link) 2>&5
35086 ac_status=$?
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); } &&
35089 { ac_try='test -s conftest$ac_exeext'
35090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091 (eval $ac_try) 2>&5
35092 ac_status=$?
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); }; }; then
35095 eval "$as_ac_var=yes"
35096 else
35097 echo "$as_me: failed program was:" >&5
35098 sed 's/^/| /' conftest.$ac_ext >&5
35100 eval "$as_ac_var=no"
35102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35106 if test `eval echo '${'$as_ac_var'}'` = yes; then
35107 cat >>confdefs.h <<_ACEOF
35108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35109 _ACEOF
35112 done
35119 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
35120 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
35121 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
35122 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
35123 echo $ECHO_N "(cached) $ECHO_C" >&6
35124 else
35128 ac_ext=cc
35129 ac_cpp='$CXXCPP $CPPFLAGS'
35130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35134 cat >conftest.$ac_ext <<_ACEOF
35135 #line $LINENO "configure"
35136 /* confdefs.h. */
35137 _ACEOF
35138 cat confdefs.h >>conftest.$ac_ext
35139 cat >>conftest.$ac_ext <<_ACEOF
35140 /* end confdefs.h. */
35141 #include <math.h>
35143 main ()
35145 sincosf(0, 0, 0);
35147 return 0;
35149 _ACEOF
35150 rm -f conftest.$ac_objext
35151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35152 (eval $ac_compile) 2>&5
35153 ac_status=$?
35154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155 (exit $ac_status); } &&
35156 { ac_try='test -s conftest.$ac_objext'
35157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35158 (eval $ac_try) 2>&5
35159 ac_status=$?
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); }; }; then
35162 glibcxx_cv_func_sincosf_use=yes
35163 else
35164 echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35167 glibcxx_cv_func_sincosf_use=no
35169 rm -f conftest.$ac_objext conftest.$ac_ext
35170 ac_ext=c
35171 ac_cpp='$CPP $CPPFLAGS'
35172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35180 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
35181 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
35183 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
35185 for ac_func in sincosf
35187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35188 echo "$as_me:$LINENO: checking for $ac_func" >&5
35189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35190 if eval "test \"\${$as_ac_var+set}\" = set"; then
35191 echo $ECHO_N "(cached) $ECHO_C" >&6
35192 else
35193 if test x$gcc_no_link = xyes; then
35194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35196 { (exit 1); exit 1; }; }
35198 cat >conftest.$ac_ext <<_ACEOF
35199 #line $LINENO "configure"
35200 /* confdefs.h. */
35201 _ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h. */
35205 /* System header to define __stub macros and hopefully few prototypes,
35206 which can conflict with char $ac_func (); below.
35207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35208 <limits.h> exists even on freestanding compilers. */
35209 #ifdef __STDC__
35210 # include <limits.h>
35211 #else
35212 # include <assert.h>
35213 #endif
35214 /* Override any gcc2 internal prototype to avoid an error. */
35215 #ifdef __cplusplus
35216 extern "C"
35218 #endif
35219 /* We use char because int might match the return type of a gcc2
35220 builtin and then its argument prototype would still apply. */
35221 char $ac_func ();
35222 /* The GNU C library defines this for functions which it implements
35223 to always fail with ENOSYS. Some functions are actually named
35224 something starting with __ and the normal name is an alias. */
35225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35226 choke me
35227 #else
35228 char (*f) () = $ac_func;
35229 #endif
35230 #ifdef __cplusplus
35232 #endif
35235 main ()
35237 return f != $ac_func;
35239 return 0;
35241 _ACEOF
35242 rm -f conftest.$ac_objext conftest$ac_exeext
35243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35244 (eval $ac_link) 2>&5
35245 ac_status=$?
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); } &&
35248 { ac_try='test -s conftest$ac_exeext'
35249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250 (eval $ac_try) 2>&5
35251 ac_status=$?
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; }; then
35254 eval "$as_ac_var=yes"
35255 else
35256 echo "$as_me: failed program was:" >&5
35257 sed 's/^/| /' conftest.$ac_ext >&5
35259 eval "$as_ac_var=no"
35261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35265 if test `eval echo '${'$as_ac_var'}'` = yes; then
35266 cat >>confdefs.h <<_ACEOF
35267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35268 _ACEOF
35271 done
35273 else
35275 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
35276 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
35277 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
35278 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
35279 echo $ECHO_N "(cached) $ECHO_C" >&6
35280 else
35284 ac_ext=cc
35285 ac_cpp='$CXXCPP $CPPFLAGS'
35286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35290 cat >conftest.$ac_ext <<_ACEOF
35291 #line $LINENO "configure"
35292 /* confdefs.h. */
35293 _ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h. */
35297 #include <math.h>
35299 main ()
35301 _sincosf(0, 0, 0);
35303 return 0;
35305 _ACEOF
35306 rm -f conftest.$ac_objext
35307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35308 (eval $ac_compile) 2>&5
35309 ac_status=$?
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } &&
35312 { ac_try='test -s conftest.$ac_objext'
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35315 ac_status=$?
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; }; then
35318 glibcxx_cv_func__sincosf_use=yes
35319 else
35320 echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35323 glibcxx_cv_func__sincosf_use=no
35325 rm -f conftest.$ac_objext conftest.$ac_ext
35326 ac_ext=c
35327 ac_cpp='$CPP $CPPFLAGS'
35328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35336 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
35337 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
35339 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
35341 for ac_func in _sincosf
35343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35344 echo "$as_me:$LINENO: checking for $ac_func" >&5
35345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35346 if eval "test \"\${$as_ac_var+set}\" = set"; then
35347 echo $ECHO_N "(cached) $ECHO_C" >&6
35348 else
35349 if test x$gcc_no_link = xyes; then
35350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35352 { (exit 1); exit 1; }; }
35354 cat >conftest.$ac_ext <<_ACEOF
35355 #line $LINENO "configure"
35356 /* confdefs.h. */
35357 _ACEOF
35358 cat confdefs.h >>conftest.$ac_ext
35359 cat >>conftest.$ac_ext <<_ACEOF
35360 /* end confdefs.h. */
35361 /* System header to define __stub macros and hopefully few prototypes,
35362 which can conflict with char $ac_func (); below.
35363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35364 <limits.h> exists even on freestanding compilers. */
35365 #ifdef __STDC__
35366 # include <limits.h>
35367 #else
35368 # include <assert.h>
35369 #endif
35370 /* Override any gcc2 internal prototype to avoid an error. */
35371 #ifdef __cplusplus
35372 extern "C"
35374 #endif
35375 /* We use char because int might match the return type of a gcc2
35376 builtin and then its argument prototype would still apply. */
35377 char $ac_func ();
35378 /* The GNU C library defines this for functions which it implements
35379 to always fail with ENOSYS. Some functions are actually named
35380 something starting with __ and the normal name is an alias. */
35381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35382 choke me
35383 #else
35384 char (*f) () = $ac_func;
35385 #endif
35386 #ifdef __cplusplus
35388 #endif
35391 main ()
35393 return f != $ac_func;
35395 return 0;
35397 _ACEOF
35398 rm -f conftest.$ac_objext conftest$ac_exeext
35399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35400 (eval $ac_link) 2>&5
35401 ac_status=$?
35402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); } &&
35404 { ac_try='test -s conftest$ac_exeext'
35405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35406 (eval $ac_try) 2>&5
35407 ac_status=$?
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); }; }; then
35410 eval "$as_ac_var=yes"
35411 else
35412 echo "$as_me: failed program was:" >&5
35413 sed 's/^/| /' conftest.$ac_ext >&5
35415 eval "$as_ac_var=no"
35417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35421 if test `eval echo '${'$as_ac_var'}'` = yes; then
35422 cat >>confdefs.h <<_ACEOF
35423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35424 _ACEOF
35427 done
35434 echo "$as_me:$LINENO: checking for finitef declaration" >&5
35435 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
35436 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
35437 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
35438 echo $ECHO_N "(cached) $ECHO_C" >&6
35439 else
35443 ac_ext=cc
35444 ac_cpp='$CXXCPP $CPPFLAGS'
35445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35449 cat >conftest.$ac_ext <<_ACEOF
35450 #line $LINENO "configure"
35451 /* confdefs.h. */
35452 _ACEOF
35453 cat confdefs.h >>conftest.$ac_ext
35454 cat >>conftest.$ac_ext <<_ACEOF
35455 /* end confdefs.h. */
35456 #include <math.h>
35457 #ifdef HAVE_IEEEFP_H
35458 #include <ieeefp.h>
35459 #endif
35462 main ()
35464 finitef(0);
35466 return 0;
35468 _ACEOF
35469 rm -f conftest.$ac_objext
35470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35471 (eval $ac_compile) 2>&5
35472 ac_status=$?
35473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); } &&
35475 { ac_try='test -s conftest.$ac_objext'
35476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477 (eval $ac_try) 2>&5
35478 ac_status=$?
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); }; }; then
35481 glibcxx_cv_func_finitef_use=yes
35482 else
35483 echo "$as_me: failed program was:" >&5
35484 sed 's/^/| /' conftest.$ac_ext >&5
35486 glibcxx_cv_func_finitef_use=no
35488 rm -f conftest.$ac_objext conftest.$ac_ext
35489 ac_ext=c
35490 ac_cpp='$CPP $CPPFLAGS'
35491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35499 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
35500 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
35502 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
35504 for ac_func in finitef
35506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35507 echo "$as_me:$LINENO: checking for $ac_func" >&5
35508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35509 if eval "test \"\${$as_ac_var+set}\" = set"; then
35510 echo $ECHO_N "(cached) $ECHO_C" >&6
35511 else
35512 if test x$gcc_no_link = xyes; then
35513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35515 { (exit 1); exit 1; }; }
35517 cat >conftest.$ac_ext <<_ACEOF
35518 #line $LINENO "configure"
35519 /* confdefs.h. */
35520 _ACEOF
35521 cat confdefs.h >>conftest.$ac_ext
35522 cat >>conftest.$ac_ext <<_ACEOF
35523 /* end confdefs.h. */
35524 /* System header to define __stub macros and hopefully few prototypes,
35525 which can conflict with char $ac_func (); below.
35526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35527 <limits.h> exists even on freestanding compilers. */
35528 #ifdef __STDC__
35529 # include <limits.h>
35530 #else
35531 # include <assert.h>
35532 #endif
35533 /* Override any gcc2 internal prototype to avoid an error. */
35534 #ifdef __cplusplus
35535 extern "C"
35537 #endif
35538 /* We use char because int might match the return type of a gcc2
35539 builtin and then its argument prototype would still apply. */
35540 char $ac_func ();
35541 /* The GNU C library defines this for functions which it implements
35542 to always fail with ENOSYS. Some functions are actually named
35543 something starting with __ and the normal name is an alias. */
35544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35545 choke me
35546 #else
35547 char (*f) () = $ac_func;
35548 #endif
35549 #ifdef __cplusplus
35551 #endif
35554 main ()
35556 return f != $ac_func;
35558 return 0;
35560 _ACEOF
35561 rm -f conftest.$ac_objext conftest$ac_exeext
35562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35563 (eval $ac_link) 2>&5
35564 ac_status=$?
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); } &&
35567 { ac_try='test -s conftest$ac_exeext'
35568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 (eval $ac_try) 2>&5
35570 ac_status=$?
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); }; }; then
35573 eval "$as_ac_var=yes"
35574 else
35575 echo "$as_me: failed program was:" >&5
35576 sed 's/^/| /' conftest.$ac_ext >&5
35578 eval "$as_ac_var=no"
35580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35584 if test `eval echo '${'$as_ac_var'}'` = yes; then
35585 cat >>confdefs.h <<_ACEOF
35586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35587 _ACEOF
35590 done
35592 else
35594 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
35595 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
35596 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
35597 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
35598 echo $ECHO_N "(cached) $ECHO_C" >&6
35599 else
35603 ac_ext=cc
35604 ac_cpp='$CXXCPP $CPPFLAGS'
35605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35609 cat >conftest.$ac_ext <<_ACEOF
35610 #line $LINENO "configure"
35611 /* confdefs.h. */
35612 _ACEOF
35613 cat confdefs.h >>conftest.$ac_ext
35614 cat >>conftest.$ac_ext <<_ACEOF
35615 /* end confdefs.h. */
35616 #include <math.h>
35617 #ifdef HAVE_IEEEFP_H
35618 #include <ieeefp.h>
35619 #endif
35622 main ()
35624 _finitef(0);
35626 return 0;
35628 _ACEOF
35629 rm -f conftest.$ac_objext
35630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35631 (eval $ac_compile) 2>&5
35632 ac_status=$?
35633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634 (exit $ac_status); } &&
35635 { ac_try='test -s conftest.$ac_objext'
35636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35637 (eval $ac_try) 2>&5
35638 ac_status=$?
35639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640 (exit $ac_status); }; }; then
35641 glibcxx_cv_func__finitef_use=yes
35642 else
35643 echo "$as_me: failed program was:" >&5
35644 sed 's/^/| /' conftest.$ac_ext >&5
35646 glibcxx_cv_func__finitef_use=no
35648 rm -f conftest.$ac_objext conftest.$ac_ext
35649 ac_ext=c
35650 ac_cpp='$CPP $CPPFLAGS'
35651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35659 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
35660 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
35662 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
35664 for ac_func in _finitef
35666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35667 echo "$as_me:$LINENO: checking for $ac_func" >&5
35668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35669 if eval "test \"\${$as_ac_var+set}\" = set"; then
35670 echo $ECHO_N "(cached) $ECHO_C" >&6
35671 else
35672 if test x$gcc_no_link = xyes; then
35673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35675 { (exit 1); exit 1; }; }
35677 cat >conftest.$ac_ext <<_ACEOF
35678 #line $LINENO "configure"
35679 /* confdefs.h. */
35680 _ACEOF
35681 cat confdefs.h >>conftest.$ac_ext
35682 cat >>conftest.$ac_ext <<_ACEOF
35683 /* end confdefs.h. */
35684 /* System header to define __stub macros and hopefully few prototypes,
35685 which can conflict with char $ac_func (); below.
35686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35687 <limits.h> exists even on freestanding compilers. */
35688 #ifdef __STDC__
35689 # include <limits.h>
35690 #else
35691 # include <assert.h>
35692 #endif
35693 /* Override any gcc2 internal prototype to avoid an error. */
35694 #ifdef __cplusplus
35695 extern "C"
35697 #endif
35698 /* We use char because int might match the return type of a gcc2
35699 builtin and then its argument prototype would still apply. */
35700 char $ac_func ();
35701 /* The GNU C library defines this for functions which it implements
35702 to always fail with ENOSYS. Some functions are actually named
35703 something starting with __ and the normal name is an alias. */
35704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35705 choke me
35706 #else
35707 char (*f) () = $ac_func;
35708 #endif
35709 #ifdef __cplusplus
35711 #endif
35714 main ()
35716 return f != $ac_func;
35718 return 0;
35720 _ACEOF
35721 rm -f conftest.$ac_objext conftest$ac_exeext
35722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35723 (eval $ac_link) 2>&5
35724 ac_status=$?
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); } &&
35727 { ac_try='test -s conftest$ac_exeext'
35728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729 (eval $ac_try) 2>&5
35730 ac_status=$?
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); }; }; then
35733 eval "$as_ac_var=yes"
35734 else
35735 echo "$as_me: failed program was:" >&5
35736 sed 's/^/| /' conftest.$ac_ext >&5
35738 eval "$as_ac_var=no"
35740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35744 if test `eval echo '${'$as_ac_var'}'` = yes; then
35745 cat >>confdefs.h <<_ACEOF
35746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35747 _ACEOF
35750 done
35757 echo "$as_me:$LINENO: checking for long double trig functions" >&5
35758 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
35759 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
35760 echo $ECHO_N "(cached) $ECHO_C" >&6
35761 else
35765 ac_ext=cc
35766 ac_cpp='$CXXCPP $CPPFLAGS'
35767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35771 cat >conftest.$ac_ext <<_ACEOF
35772 #line $LINENO "configure"
35773 /* confdefs.h. */
35774 _ACEOF
35775 cat confdefs.h >>conftest.$ac_ext
35776 cat >>conftest.$ac_ext <<_ACEOF
35777 /* end confdefs.h. */
35778 #include <math.h>
35780 main ()
35782 `for x in acosl asinl atanl \
35783 cosl sinl tanl \
35784 coshl sinhl tanhl; do echo "$x (0);"; done`
35786 return 0;
35788 _ACEOF
35789 rm -f conftest.$ac_objext
35790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35791 (eval $ac_compile) 2>&5
35792 ac_status=$?
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } &&
35795 { ac_try='test -s conftest.$ac_objext'
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; }; then
35801 glibcxx_cv_func_long_double_trig_use=yes
35802 else
35803 echo "$as_me: failed program was:" >&5
35804 sed 's/^/| /' conftest.$ac_ext >&5
35806 glibcxx_cv_func_long_double_trig_use=no
35808 rm -f conftest.$ac_objext conftest.$ac_ext
35809 ac_ext=c
35810 ac_cpp='$CPP $CPPFLAGS'
35811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35817 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
35818 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
35819 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
35829 for ac_func in acosl asinl atanl \
35830 cosl sinl tanl \
35831 coshl sinhl tanhl
35833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35834 echo "$as_me:$LINENO: checking for $ac_func" >&5
35835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35836 if eval "test \"\${$as_ac_var+set}\" = set"; then
35837 echo $ECHO_N "(cached) $ECHO_C" >&6
35838 else
35839 if test x$gcc_no_link = xyes; then
35840 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35841 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35842 { (exit 1); exit 1; }; }
35844 cat >conftest.$ac_ext <<_ACEOF
35845 #line $LINENO "configure"
35846 /* confdefs.h. */
35847 _ACEOF
35848 cat confdefs.h >>conftest.$ac_ext
35849 cat >>conftest.$ac_ext <<_ACEOF
35850 /* end confdefs.h. */
35851 /* System header to define __stub macros and hopefully few prototypes,
35852 which can conflict with char $ac_func (); below.
35853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35854 <limits.h> exists even on freestanding compilers. */
35855 #ifdef __STDC__
35856 # include <limits.h>
35857 #else
35858 # include <assert.h>
35859 #endif
35860 /* Override any gcc2 internal prototype to avoid an error. */
35861 #ifdef __cplusplus
35862 extern "C"
35864 #endif
35865 /* We use char because int might match the return type of a gcc2
35866 builtin and then its argument prototype would still apply. */
35867 char $ac_func ();
35868 /* The GNU C library defines this for functions which it implements
35869 to always fail with ENOSYS. Some functions are actually named
35870 something starting with __ and the normal name is an alias. */
35871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35872 choke me
35873 #else
35874 char (*f) () = $ac_func;
35875 #endif
35876 #ifdef __cplusplus
35878 #endif
35881 main ()
35883 return f != $ac_func;
35885 return 0;
35887 _ACEOF
35888 rm -f conftest.$ac_objext conftest$ac_exeext
35889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35890 (eval $ac_link) 2>&5
35891 ac_status=$?
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } &&
35894 { ac_try='test -s conftest$ac_exeext'
35895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35896 (eval $ac_try) 2>&5
35897 ac_status=$?
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); }; }; then
35900 eval "$as_ac_var=yes"
35901 else
35902 echo "$as_me: failed program was:" >&5
35903 sed 's/^/| /' conftest.$ac_ext >&5
35905 eval "$as_ac_var=no"
35907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35911 if test `eval echo '${'$as_ac_var'}'` = yes; then
35912 cat >>confdefs.h <<_ACEOF
35913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35914 _ACEOF
35917 done
35922 echo "$as_me:$LINENO: checking for long double round functions" >&5
35923 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
35924 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
35925 echo $ECHO_N "(cached) $ECHO_C" >&6
35926 else
35930 ac_ext=cc
35931 ac_cpp='$CXXCPP $CPPFLAGS'
35932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35936 cat >conftest.$ac_ext <<_ACEOF
35937 #line $LINENO "configure"
35938 /* confdefs.h. */
35939 _ACEOF
35940 cat confdefs.h >>conftest.$ac_ext
35941 cat >>conftest.$ac_ext <<_ACEOF
35942 /* end confdefs.h. */
35943 #include <math.h>
35945 main ()
35947 `for x in ceill floorl; do echo "$x (0);"; done`
35949 return 0;
35951 _ACEOF
35952 rm -f conftest.$ac_objext
35953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35954 (eval $ac_compile) 2>&5
35955 ac_status=$?
35956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957 (exit $ac_status); } &&
35958 { ac_try='test -s conftest.$ac_objext'
35959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35960 (eval $ac_try) 2>&5
35961 ac_status=$?
35962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963 (exit $ac_status); }; }; then
35964 glibcxx_cv_func_long_double_round_use=yes
35965 else
35966 echo "$as_me: failed program was:" >&5
35967 sed 's/^/| /' conftest.$ac_ext >&5
35969 glibcxx_cv_func_long_double_round_use=no
35971 rm -f conftest.$ac_objext conftest.$ac_ext
35972 ac_ext=c
35973 ac_cpp='$CPP $CPPFLAGS'
35974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35980 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
35981 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
35982 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
35985 for ac_func in ceill floorl
35987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35988 echo "$as_me:$LINENO: checking for $ac_func" >&5
35989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35990 if eval "test \"\${$as_ac_var+set}\" = set"; then
35991 echo $ECHO_N "(cached) $ECHO_C" >&6
35992 else
35993 if test x$gcc_no_link = xyes; then
35994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35996 { (exit 1); exit 1; }; }
35998 cat >conftest.$ac_ext <<_ACEOF
35999 #line $LINENO "configure"
36000 /* confdefs.h. */
36001 _ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h. */
36005 /* System header to define __stub macros and hopefully few prototypes,
36006 which can conflict with char $ac_func (); below.
36007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36008 <limits.h> exists even on freestanding compilers. */
36009 #ifdef __STDC__
36010 # include <limits.h>
36011 #else
36012 # include <assert.h>
36013 #endif
36014 /* Override any gcc2 internal prototype to avoid an error. */
36015 #ifdef __cplusplus
36016 extern "C"
36018 #endif
36019 /* We use char because int might match the return type of a gcc2
36020 builtin and then its argument prototype would still apply. */
36021 char $ac_func ();
36022 /* The GNU C library defines this for functions which it implements
36023 to always fail with ENOSYS. Some functions are actually named
36024 something starting with __ and the normal name is an alias. */
36025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36026 choke me
36027 #else
36028 char (*f) () = $ac_func;
36029 #endif
36030 #ifdef __cplusplus
36032 #endif
36035 main ()
36037 return f != $ac_func;
36039 return 0;
36041 _ACEOF
36042 rm -f conftest.$ac_objext conftest$ac_exeext
36043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36044 (eval $ac_link) 2>&5
36045 ac_status=$?
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); } &&
36048 { ac_try='test -s conftest$ac_exeext'
36049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36050 (eval $ac_try) 2>&5
36051 ac_status=$?
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); }; }; then
36054 eval "$as_ac_var=yes"
36055 else
36056 echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36059 eval "$as_ac_var=no"
36061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36065 if test `eval echo '${'$as_ac_var'}'` = yes; then
36066 cat >>confdefs.h <<_ACEOF
36067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36068 _ACEOF
36071 done
36077 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
36078 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
36079 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36080 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
36081 echo $ECHO_N "(cached) $ECHO_C" >&6
36082 else
36086 ac_ext=cc
36087 ac_cpp='$CXXCPP $CPPFLAGS'
36088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36092 cat >conftest.$ac_ext <<_ACEOF
36093 #line $LINENO "configure"
36094 /* confdefs.h. */
36095 _ACEOF
36096 cat confdefs.h >>conftest.$ac_ext
36097 cat >>conftest.$ac_ext <<_ACEOF
36098 /* end confdefs.h. */
36099 #include <math.h>
36100 #ifdef HAVE_IEEEFP_H
36101 #include <ieeefp.h>
36102 #endif
36105 main ()
36107 isnanl(0);
36109 return 0;
36111 _ACEOF
36112 rm -f conftest.$ac_objext
36113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36114 (eval $ac_compile) 2>&5
36115 ac_status=$?
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); } &&
36118 { ac_try='test -s conftest.$ac_objext'
36119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36120 (eval $ac_try) 2>&5
36121 ac_status=$?
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); }; }; then
36124 glibcxx_cv_func_isnanl_use=yes
36125 else
36126 echo "$as_me: failed program was:" >&5
36127 sed 's/^/| /' conftest.$ac_ext >&5
36129 glibcxx_cv_func_isnanl_use=no
36131 rm -f conftest.$ac_objext conftest.$ac_ext
36132 ac_ext=c
36133 ac_cpp='$CPP $CPPFLAGS'
36134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36142 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
36143 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
36145 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36147 for ac_func in isnanl
36149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36150 echo "$as_me:$LINENO: checking for $ac_func" >&5
36151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36152 if eval "test \"\${$as_ac_var+set}\" = set"; then
36153 echo $ECHO_N "(cached) $ECHO_C" >&6
36154 else
36155 if test x$gcc_no_link = xyes; then
36156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36158 { (exit 1); exit 1; }; }
36160 cat >conftest.$ac_ext <<_ACEOF
36161 #line $LINENO "configure"
36162 /* confdefs.h. */
36163 _ACEOF
36164 cat confdefs.h >>conftest.$ac_ext
36165 cat >>conftest.$ac_ext <<_ACEOF
36166 /* end confdefs.h. */
36167 /* System header to define __stub macros and hopefully few prototypes,
36168 which can conflict with char $ac_func (); below.
36169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36170 <limits.h> exists even on freestanding compilers. */
36171 #ifdef __STDC__
36172 # include <limits.h>
36173 #else
36174 # include <assert.h>
36175 #endif
36176 /* Override any gcc2 internal prototype to avoid an error. */
36177 #ifdef __cplusplus
36178 extern "C"
36180 #endif
36181 /* We use char because int might match the return type of a gcc2
36182 builtin and then its argument prototype would still apply. */
36183 char $ac_func ();
36184 /* The GNU C library defines this for functions which it implements
36185 to always fail with ENOSYS. Some functions are actually named
36186 something starting with __ and the normal name is an alias. */
36187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36188 choke me
36189 #else
36190 char (*f) () = $ac_func;
36191 #endif
36192 #ifdef __cplusplus
36194 #endif
36197 main ()
36199 return f != $ac_func;
36201 return 0;
36203 _ACEOF
36204 rm -f conftest.$ac_objext conftest$ac_exeext
36205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36206 (eval $ac_link) 2>&5
36207 ac_status=$?
36208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209 (exit $ac_status); } &&
36210 { ac_try='test -s conftest$ac_exeext'
36211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36212 (eval $ac_try) 2>&5
36213 ac_status=$?
36214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215 (exit $ac_status); }; }; then
36216 eval "$as_ac_var=yes"
36217 else
36218 echo "$as_me: failed program was:" >&5
36219 sed 's/^/| /' conftest.$ac_ext >&5
36221 eval "$as_ac_var=no"
36223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36227 if test `eval echo '${'$as_ac_var'}'` = yes; then
36228 cat >>confdefs.h <<_ACEOF
36229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36230 _ACEOF
36233 done
36235 else
36237 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
36238 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
36239 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
36240 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
36241 echo $ECHO_N "(cached) $ECHO_C" >&6
36242 else
36246 ac_ext=cc
36247 ac_cpp='$CXXCPP $CPPFLAGS'
36248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36252 cat >conftest.$ac_ext <<_ACEOF
36253 #line $LINENO "configure"
36254 /* confdefs.h. */
36255 _ACEOF
36256 cat confdefs.h >>conftest.$ac_ext
36257 cat >>conftest.$ac_ext <<_ACEOF
36258 /* end confdefs.h. */
36259 #include <math.h>
36260 #ifdef HAVE_IEEEFP_H
36261 #include <ieeefp.h>
36262 #endif
36265 main ()
36267 _isnanl(0);
36269 return 0;
36271 _ACEOF
36272 rm -f conftest.$ac_objext
36273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36274 (eval $ac_compile) 2>&5
36275 ac_status=$?
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); } &&
36278 { ac_try='test -s conftest.$ac_objext'
36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280 (eval $ac_try) 2>&5
36281 ac_status=$?
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); }; }; then
36284 glibcxx_cv_func__isnanl_use=yes
36285 else
36286 echo "$as_me: failed program was:" >&5
36287 sed 's/^/| /' conftest.$ac_ext >&5
36289 glibcxx_cv_func__isnanl_use=no
36291 rm -f conftest.$ac_objext conftest.$ac_ext
36292 ac_ext=c
36293 ac_cpp='$CPP $CPPFLAGS'
36294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36302 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
36303 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
36305 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
36307 for ac_func in _isnanl
36309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36310 echo "$as_me:$LINENO: checking for $ac_func" >&5
36311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36312 if eval "test \"\${$as_ac_var+set}\" = set"; then
36313 echo $ECHO_N "(cached) $ECHO_C" >&6
36314 else
36315 if test x$gcc_no_link = xyes; then
36316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36318 { (exit 1); exit 1; }; }
36320 cat >conftest.$ac_ext <<_ACEOF
36321 #line $LINENO "configure"
36322 /* confdefs.h. */
36323 _ACEOF
36324 cat confdefs.h >>conftest.$ac_ext
36325 cat >>conftest.$ac_ext <<_ACEOF
36326 /* end confdefs.h. */
36327 /* System header to define __stub macros and hopefully few prototypes,
36328 which can conflict with char $ac_func (); below.
36329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36330 <limits.h> exists even on freestanding compilers. */
36331 #ifdef __STDC__
36332 # include <limits.h>
36333 #else
36334 # include <assert.h>
36335 #endif
36336 /* Override any gcc2 internal prototype to avoid an error. */
36337 #ifdef __cplusplus
36338 extern "C"
36340 #endif
36341 /* We use char because int might match the return type of a gcc2
36342 builtin and then its argument prototype would still apply. */
36343 char $ac_func ();
36344 /* The GNU C library defines this for functions which it implements
36345 to always fail with ENOSYS. Some functions are actually named
36346 something starting with __ and the normal name is an alias. */
36347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36348 choke me
36349 #else
36350 char (*f) () = $ac_func;
36351 #endif
36352 #ifdef __cplusplus
36354 #endif
36357 main ()
36359 return f != $ac_func;
36361 return 0;
36363 _ACEOF
36364 rm -f conftest.$ac_objext conftest$ac_exeext
36365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36366 (eval $ac_link) 2>&5
36367 ac_status=$?
36368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 (exit $ac_status); } &&
36370 { ac_try='test -s conftest$ac_exeext'
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36373 ac_status=$?
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; }; then
36376 eval "$as_ac_var=yes"
36377 else
36378 echo "$as_me: failed program was:" >&5
36379 sed 's/^/| /' conftest.$ac_ext >&5
36381 eval "$as_ac_var=no"
36383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36387 if test `eval echo '${'$as_ac_var'}'` = yes; then
36388 cat >>confdefs.h <<_ACEOF
36389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36390 _ACEOF
36393 done
36400 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
36401 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
36402 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36403 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
36404 echo $ECHO_N "(cached) $ECHO_C" >&6
36405 else
36409 ac_ext=cc
36410 ac_cpp='$CXXCPP $CPPFLAGS'
36411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36415 cat >conftest.$ac_ext <<_ACEOF
36416 #line $LINENO "configure"
36417 /* confdefs.h. */
36418 _ACEOF
36419 cat confdefs.h >>conftest.$ac_ext
36420 cat >>conftest.$ac_ext <<_ACEOF
36421 /* end confdefs.h. */
36422 #include <math.h>
36423 #ifdef HAVE_IEEEFP_H
36424 #include <ieeefp.h>
36425 #endif
36428 main ()
36430 isinfl(0);
36432 return 0;
36434 _ACEOF
36435 rm -f conftest.$ac_objext
36436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36437 (eval $ac_compile) 2>&5
36438 ac_status=$?
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); } &&
36441 { ac_try='test -s conftest.$ac_objext'
36442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443 (eval $ac_try) 2>&5
36444 ac_status=$?
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); }; }; then
36447 glibcxx_cv_func_isinfl_use=yes
36448 else
36449 echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36452 glibcxx_cv_func_isinfl_use=no
36454 rm -f conftest.$ac_objext conftest.$ac_ext
36455 ac_ext=c
36456 ac_cpp='$CPP $CPPFLAGS'
36457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36465 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
36466 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
36468 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36470 for ac_func in isinfl
36472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36473 echo "$as_me:$LINENO: checking for $ac_func" >&5
36474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36475 if eval "test \"\${$as_ac_var+set}\" = set"; then
36476 echo $ECHO_N "(cached) $ECHO_C" >&6
36477 else
36478 if test x$gcc_no_link = xyes; then
36479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36481 { (exit 1); exit 1; }; }
36483 cat >conftest.$ac_ext <<_ACEOF
36484 #line $LINENO "configure"
36485 /* confdefs.h. */
36486 _ACEOF
36487 cat confdefs.h >>conftest.$ac_ext
36488 cat >>conftest.$ac_ext <<_ACEOF
36489 /* end confdefs.h. */
36490 /* System header to define __stub macros and hopefully few prototypes,
36491 which can conflict with char $ac_func (); below.
36492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36493 <limits.h> exists even on freestanding compilers. */
36494 #ifdef __STDC__
36495 # include <limits.h>
36496 #else
36497 # include <assert.h>
36498 #endif
36499 /* Override any gcc2 internal prototype to avoid an error. */
36500 #ifdef __cplusplus
36501 extern "C"
36503 #endif
36504 /* We use char because int might match the return type of a gcc2
36505 builtin and then its argument prototype would still apply. */
36506 char $ac_func ();
36507 /* The GNU C library defines this for functions which it implements
36508 to always fail with ENOSYS. Some functions are actually named
36509 something starting with __ and the normal name is an alias. */
36510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36511 choke me
36512 #else
36513 char (*f) () = $ac_func;
36514 #endif
36515 #ifdef __cplusplus
36517 #endif
36520 main ()
36522 return f != $ac_func;
36524 return 0;
36526 _ACEOF
36527 rm -f conftest.$ac_objext conftest$ac_exeext
36528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36529 (eval $ac_link) 2>&5
36530 ac_status=$?
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); } &&
36533 { ac_try='test -s conftest$ac_exeext'
36534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535 (eval $ac_try) 2>&5
36536 ac_status=$?
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); }; }; then
36539 eval "$as_ac_var=yes"
36540 else
36541 echo "$as_me: failed program was:" >&5
36542 sed 's/^/| /' conftest.$ac_ext >&5
36544 eval "$as_ac_var=no"
36546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36550 if test `eval echo '${'$as_ac_var'}'` = yes; then
36551 cat >>confdefs.h <<_ACEOF
36552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36553 _ACEOF
36556 done
36558 else
36560 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
36561 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
36562 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
36563 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
36564 echo $ECHO_N "(cached) $ECHO_C" >&6
36565 else
36569 ac_ext=cc
36570 ac_cpp='$CXXCPP $CPPFLAGS'
36571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36575 cat >conftest.$ac_ext <<_ACEOF
36576 #line $LINENO "configure"
36577 /* confdefs.h. */
36578 _ACEOF
36579 cat confdefs.h >>conftest.$ac_ext
36580 cat >>conftest.$ac_ext <<_ACEOF
36581 /* end confdefs.h. */
36582 #include <math.h>
36583 #ifdef HAVE_IEEEFP_H
36584 #include <ieeefp.h>
36585 #endif
36588 main ()
36590 _isinfl(0);
36592 return 0;
36594 _ACEOF
36595 rm -f conftest.$ac_objext
36596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36597 (eval $ac_compile) 2>&5
36598 ac_status=$?
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); } &&
36601 { ac_try='test -s conftest.$ac_objext'
36602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36603 (eval $ac_try) 2>&5
36604 ac_status=$?
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); }; }; then
36607 glibcxx_cv_func__isinfl_use=yes
36608 else
36609 echo "$as_me: failed program was:" >&5
36610 sed 's/^/| /' conftest.$ac_ext >&5
36612 glibcxx_cv_func__isinfl_use=no
36614 rm -f conftest.$ac_objext conftest.$ac_ext
36615 ac_ext=c
36616 ac_cpp='$CPP $CPPFLAGS'
36617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36625 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
36626 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
36628 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
36630 for ac_func in _isinfl
36632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36633 echo "$as_me:$LINENO: checking for $ac_func" >&5
36634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36635 if eval "test \"\${$as_ac_var+set}\" = set"; then
36636 echo $ECHO_N "(cached) $ECHO_C" >&6
36637 else
36638 if test x$gcc_no_link = xyes; then
36639 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36640 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36641 { (exit 1); exit 1; }; }
36643 cat >conftest.$ac_ext <<_ACEOF
36644 #line $LINENO "configure"
36645 /* confdefs.h. */
36646 _ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h. */
36650 /* System header to define __stub macros and hopefully few prototypes,
36651 which can conflict with char $ac_func (); below.
36652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36653 <limits.h> exists even on freestanding compilers. */
36654 #ifdef __STDC__
36655 # include <limits.h>
36656 #else
36657 # include <assert.h>
36658 #endif
36659 /* Override any gcc2 internal prototype to avoid an error. */
36660 #ifdef __cplusplus
36661 extern "C"
36663 #endif
36664 /* We use char because int might match the return type of a gcc2
36665 builtin and then its argument prototype would still apply. */
36666 char $ac_func ();
36667 /* The GNU C library defines this for functions which it implements
36668 to always fail with ENOSYS. Some functions are actually named
36669 something starting with __ and the normal name is an alias. */
36670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36671 choke me
36672 #else
36673 char (*f) () = $ac_func;
36674 #endif
36675 #ifdef __cplusplus
36677 #endif
36680 main ()
36682 return f != $ac_func;
36684 return 0;
36686 _ACEOF
36687 rm -f conftest.$ac_objext conftest$ac_exeext
36688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36689 (eval $ac_link) 2>&5
36690 ac_status=$?
36691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36692 (exit $ac_status); } &&
36693 { ac_try='test -s conftest$ac_exeext'
36694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36695 (eval $ac_try) 2>&5
36696 ac_status=$?
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); }; }; then
36699 eval "$as_ac_var=yes"
36700 else
36701 echo "$as_me: failed program was:" >&5
36702 sed 's/^/| /' conftest.$ac_ext >&5
36704 eval "$as_ac_var=no"
36706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36710 if test `eval echo '${'$as_ac_var'}'` = yes; then
36711 cat >>confdefs.h <<_ACEOF
36712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36713 _ACEOF
36716 done
36723 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
36724 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
36725 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
36726 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
36727 echo $ECHO_N "(cached) $ECHO_C" >&6
36728 else
36732 ac_ext=cc
36733 ac_cpp='$CXXCPP $CPPFLAGS'
36734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36738 cat >conftest.$ac_ext <<_ACEOF
36739 #line $LINENO "configure"
36740 /* confdefs.h. */
36741 _ACEOF
36742 cat confdefs.h >>conftest.$ac_ext
36743 cat >>conftest.$ac_ext <<_ACEOF
36744 /* end confdefs.h. */
36745 #include <math.h>
36747 main ()
36749 copysignl(0, 0);
36751 return 0;
36753 _ACEOF
36754 rm -f conftest.$ac_objext
36755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36756 (eval $ac_compile) 2>&5
36757 ac_status=$?
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } &&
36760 { ac_try='test -s conftest.$ac_objext'
36761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762 (eval $ac_try) 2>&5
36763 ac_status=$?
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); }; }; then
36766 glibcxx_cv_func_copysignl_use=yes
36767 else
36768 echo "$as_me: failed program was:" >&5
36769 sed 's/^/| /' conftest.$ac_ext >&5
36771 glibcxx_cv_func_copysignl_use=no
36773 rm -f conftest.$ac_objext conftest.$ac_ext
36774 ac_ext=c
36775 ac_cpp='$CPP $CPPFLAGS'
36776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36784 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
36785 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
36787 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
36789 for ac_func in copysignl
36791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36792 echo "$as_me:$LINENO: checking for $ac_func" >&5
36793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36794 if eval "test \"\${$as_ac_var+set}\" = set"; then
36795 echo $ECHO_N "(cached) $ECHO_C" >&6
36796 else
36797 if test x$gcc_no_link = xyes; then
36798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36800 { (exit 1); exit 1; }; }
36802 cat >conftest.$ac_ext <<_ACEOF
36803 #line $LINENO "configure"
36804 /* confdefs.h. */
36805 _ACEOF
36806 cat confdefs.h >>conftest.$ac_ext
36807 cat >>conftest.$ac_ext <<_ACEOF
36808 /* end confdefs.h. */
36809 /* System header to define __stub macros and hopefully few prototypes,
36810 which can conflict with char $ac_func (); below.
36811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36812 <limits.h> exists even on freestanding compilers. */
36813 #ifdef __STDC__
36814 # include <limits.h>
36815 #else
36816 # include <assert.h>
36817 #endif
36818 /* Override any gcc2 internal prototype to avoid an error. */
36819 #ifdef __cplusplus
36820 extern "C"
36822 #endif
36823 /* We use char because int might match the return type of a gcc2
36824 builtin and then its argument prototype would still apply. */
36825 char $ac_func ();
36826 /* The GNU C library defines this for functions which it implements
36827 to always fail with ENOSYS. Some functions are actually named
36828 something starting with __ and the normal name is an alias. */
36829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36830 choke me
36831 #else
36832 char (*f) () = $ac_func;
36833 #endif
36834 #ifdef __cplusplus
36836 #endif
36839 main ()
36841 return f != $ac_func;
36843 return 0;
36845 _ACEOF
36846 rm -f conftest.$ac_objext conftest$ac_exeext
36847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36848 (eval $ac_link) 2>&5
36849 ac_status=$?
36850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36851 (exit $ac_status); } &&
36852 { ac_try='test -s conftest$ac_exeext'
36853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36854 (eval $ac_try) 2>&5
36855 ac_status=$?
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); }; }; then
36858 eval "$as_ac_var=yes"
36859 else
36860 echo "$as_me: failed program was:" >&5
36861 sed 's/^/| /' conftest.$ac_ext >&5
36863 eval "$as_ac_var=no"
36865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36869 if test `eval echo '${'$as_ac_var'}'` = yes; then
36870 cat >>confdefs.h <<_ACEOF
36871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36872 _ACEOF
36875 done
36877 else
36879 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
36880 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
36881 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
36882 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
36883 echo $ECHO_N "(cached) $ECHO_C" >&6
36884 else
36888 ac_ext=cc
36889 ac_cpp='$CXXCPP $CPPFLAGS'
36890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36894 cat >conftest.$ac_ext <<_ACEOF
36895 #line $LINENO "configure"
36896 /* confdefs.h. */
36897 _ACEOF
36898 cat confdefs.h >>conftest.$ac_ext
36899 cat >>conftest.$ac_ext <<_ACEOF
36900 /* end confdefs.h. */
36901 #include <math.h>
36903 main ()
36905 _copysignl(0, 0);
36907 return 0;
36909 _ACEOF
36910 rm -f conftest.$ac_objext
36911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36912 (eval $ac_compile) 2>&5
36913 ac_status=$?
36914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915 (exit $ac_status); } &&
36916 { ac_try='test -s conftest.$ac_objext'
36917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918 (eval $ac_try) 2>&5
36919 ac_status=$?
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); }; }; then
36922 glibcxx_cv_func__copysignl_use=yes
36923 else
36924 echo "$as_me: failed program was:" >&5
36925 sed 's/^/| /' conftest.$ac_ext >&5
36927 glibcxx_cv_func__copysignl_use=no
36929 rm -f conftest.$ac_objext conftest.$ac_ext
36930 ac_ext=c
36931 ac_cpp='$CPP $CPPFLAGS'
36932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36940 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
36941 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
36943 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
36945 for ac_func in _copysignl
36947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36948 echo "$as_me:$LINENO: checking for $ac_func" >&5
36949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36950 if eval "test \"\${$as_ac_var+set}\" = set"; then
36951 echo $ECHO_N "(cached) $ECHO_C" >&6
36952 else
36953 if test x$gcc_no_link = xyes; then
36954 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36955 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36956 { (exit 1); exit 1; }; }
36958 cat >conftest.$ac_ext <<_ACEOF
36959 #line $LINENO "configure"
36960 /* confdefs.h. */
36961 _ACEOF
36962 cat confdefs.h >>conftest.$ac_ext
36963 cat >>conftest.$ac_ext <<_ACEOF
36964 /* end confdefs.h. */
36965 /* System header to define __stub macros and hopefully few prototypes,
36966 which can conflict with char $ac_func (); below.
36967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36968 <limits.h> exists even on freestanding compilers. */
36969 #ifdef __STDC__
36970 # include <limits.h>
36971 #else
36972 # include <assert.h>
36973 #endif
36974 /* Override any gcc2 internal prototype to avoid an error. */
36975 #ifdef __cplusplus
36976 extern "C"
36978 #endif
36979 /* We use char because int might match the return type of a gcc2
36980 builtin and then its argument prototype would still apply. */
36981 char $ac_func ();
36982 /* The GNU C library defines this for functions which it implements
36983 to always fail with ENOSYS. Some functions are actually named
36984 something starting with __ and the normal name is an alias. */
36985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36986 choke me
36987 #else
36988 char (*f) () = $ac_func;
36989 #endif
36990 #ifdef __cplusplus
36992 #endif
36995 main ()
36997 return f != $ac_func;
36999 return 0;
37001 _ACEOF
37002 rm -f conftest.$ac_objext conftest$ac_exeext
37003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37004 (eval $ac_link) 2>&5
37005 ac_status=$?
37006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007 (exit $ac_status); } &&
37008 { ac_try='test -s conftest$ac_exeext'
37009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37010 (eval $ac_try) 2>&5
37011 ac_status=$?
37012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013 (exit $ac_status); }; }; then
37014 eval "$as_ac_var=yes"
37015 else
37016 echo "$as_me: failed program was:" >&5
37017 sed 's/^/| /' conftest.$ac_ext >&5
37019 eval "$as_ac_var=no"
37021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37025 if test `eval echo '${'$as_ac_var'}'` = yes; then
37026 cat >>confdefs.h <<_ACEOF
37027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37028 _ACEOF
37031 done
37038 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
37039 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
37040 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
37041 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37043 else
37047 ac_ext=cc
37048 ac_cpp='$CXXCPP $CPPFLAGS'
37049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37053 cat >conftest.$ac_ext <<_ACEOF
37054 #line $LINENO "configure"
37055 /* confdefs.h. */
37056 _ACEOF
37057 cat confdefs.h >>conftest.$ac_ext
37058 cat >>conftest.$ac_ext <<_ACEOF
37059 /* end confdefs.h. */
37060 #include <math.h>
37062 main ()
37064 atan2l(0, 0);
37066 return 0;
37068 _ACEOF
37069 rm -f conftest.$ac_objext
37070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37071 (eval $ac_compile) 2>&5
37072 ac_status=$?
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } &&
37075 { ac_try='test -s conftest.$ac_objext'
37076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37077 (eval $ac_try) 2>&5
37078 ac_status=$?
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); }; }; then
37081 glibcxx_cv_func_atan2l_use=yes
37082 else
37083 echo "$as_me: failed program was:" >&5
37084 sed 's/^/| /' conftest.$ac_ext >&5
37086 glibcxx_cv_func_atan2l_use=no
37088 rm -f conftest.$ac_objext conftest.$ac_ext
37089 ac_ext=c
37090 ac_cpp='$CPP $CPPFLAGS'
37091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37099 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
37100 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
37102 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37104 for ac_func in atan2l
37106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37107 echo "$as_me:$LINENO: checking for $ac_func" >&5
37108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37109 if eval "test \"\${$as_ac_var+set}\" = set"; then
37110 echo $ECHO_N "(cached) $ECHO_C" >&6
37111 else
37112 if test x$gcc_no_link = xyes; then
37113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37115 { (exit 1); exit 1; }; }
37117 cat >conftest.$ac_ext <<_ACEOF
37118 #line $LINENO "configure"
37119 /* confdefs.h. */
37120 _ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h. */
37124 /* System header to define __stub macros and hopefully few prototypes,
37125 which can conflict with char $ac_func (); below.
37126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37127 <limits.h> exists even on freestanding compilers. */
37128 #ifdef __STDC__
37129 # include <limits.h>
37130 #else
37131 # include <assert.h>
37132 #endif
37133 /* Override any gcc2 internal prototype to avoid an error. */
37134 #ifdef __cplusplus
37135 extern "C"
37137 #endif
37138 /* We use char because int might match the return type of a gcc2
37139 builtin and then its argument prototype would still apply. */
37140 char $ac_func ();
37141 /* The GNU C library defines this for functions which it implements
37142 to always fail with ENOSYS. Some functions are actually named
37143 something starting with __ and the normal name is an alias. */
37144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37145 choke me
37146 #else
37147 char (*f) () = $ac_func;
37148 #endif
37149 #ifdef __cplusplus
37151 #endif
37154 main ()
37156 return f != $ac_func;
37158 return 0;
37160 _ACEOF
37161 rm -f conftest.$ac_objext conftest$ac_exeext
37162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37163 (eval $ac_link) 2>&5
37164 ac_status=$?
37165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166 (exit $ac_status); } &&
37167 { ac_try='test -s conftest$ac_exeext'
37168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37169 (eval $ac_try) 2>&5
37170 ac_status=$?
37171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172 (exit $ac_status); }; }; then
37173 eval "$as_ac_var=yes"
37174 else
37175 echo "$as_me: failed program was:" >&5
37176 sed 's/^/| /' conftest.$ac_ext >&5
37178 eval "$as_ac_var=no"
37180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37184 if test `eval echo '${'$as_ac_var'}'` = yes; then
37185 cat >>confdefs.h <<_ACEOF
37186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37187 _ACEOF
37190 done
37192 else
37194 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
37195 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
37196 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
37197 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
37198 echo $ECHO_N "(cached) $ECHO_C" >&6
37199 else
37203 ac_ext=cc
37204 ac_cpp='$CXXCPP $CPPFLAGS'
37205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37209 cat >conftest.$ac_ext <<_ACEOF
37210 #line $LINENO "configure"
37211 /* confdefs.h. */
37212 _ACEOF
37213 cat confdefs.h >>conftest.$ac_ext
37214 cat >>conftest.$ac_ext <<_ACEOF
37215 /* end confdefs.h. */
37216 #include <math.h>
37218 main ()
37220 _atan2l(0, 0);
37222 return 0;
37224 _ACEOF
37225 rm -f conftest.$ac_objext
37226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37227 (eval $ac_compile) 2>&5
37228 ac_status=$?
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); } &&
37231 { ac_try='test -s conftest.$ac_objext'
37232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37233 (eval $ac_try) 2>&5
37234 ac_status=$?
37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); }; }; then
37237 glibcxx_cv_func__atan2l_use=yes
37238 else
37239 echo "$as_me: failed program was:" >&5
37240 sed 's/^/| /' conftest.$ac_ext >&5
37242 glibcxx_cv_func__atan2l_use=no
37244 rm -f conftest.$ac_objext conftest.$ac_ext
37245 ac_ext=c
37246 ac_cpp='$CPP $CPPFLAGS'
37247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37255 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
37256 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
37258 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
37260 for ac_func in _atan2l
37262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37263 echo "$as_me:$LINENO: checking for $ac_func" >&5
37264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37265 if eval "test \"\${$as_ac_var+set}\" = set"; then
37266 echo $ECHO_N "(cached) $ECHO_C" >&6
37267 else
37268 if test x$gcc_no_link = xyes; then
37269 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37271 { (exit 1); exit 1; }; }
37273 cat >conftest.$ac_ext <<_ACEOF
37274 #line $LINENO "configure"
37275 /* confdefs.h. */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37280 /* System header to define __stub macros and hopefully few prototypes,
37281 which can conflict with char $ac_func (); below.
37282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37283 <limits.h> exists even on freestanding compilers. */
37284 #ifdef __STDC__
37285 # include <limits.h>
37286 #else
37287 # include <assert.h>
37288 #endif
37289 /* Override any gcc2 internal prototype to avoid an error. */
37290 #ifdef __cplusplus
37291 extern "C"
37293 #endif
37294 /* We use char because int might match the return type of a gcc2
37295 builtin and then its argument prototype would still apply. */
37296 char $ac_func ();
37297 /* The GNU C library defines this for functions which it implements
37298 to always fail with ENOSYS. Some functions are actually named
37299 something starting with __ and the normal name is an alias. */
37300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37301 choke me
37302 #else
37303 char (*f) () = $ac_func;
37304 #endif
37305 #ifdef __cplusplus
37307 #endif
37310 main ()
37312 return f != $ac_func;
37314 return 0;
37316 _ACEOF
37317 rm -f conftest.$ac_objext conftest$ac_exeext
37318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37319 (eval $ac_link) 2>&5
37320 ac_status=$?
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); } &&
37323 { ac_try='test -s conftest$ac_exeext'
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37326 ac_status=$?
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; }; then
37329 eval "$as_ac_var=yes"
37330 else
37331 echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37334 eval "$as_ac_var=no"
37336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37340 if test `eval echo '${'$as_ac_var'}'` = yes; then
37341 cat >>confdefs.h <<_ACEOF
37342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37343 _ACEOF
37346 done
37353 echo "$as_me:$LINENO: checking for expl declaration" >&5
37354 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
37355 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37356 if test "${glibcxx_cv_func_expl_use+set}" = set; then
37357 echo $ECHO_N "(cached) $ECHO_C" >&6
37358 else
37362 ac_ext=cc
37363 ac_cpp='$CXXCPP $CPPFLAGS'
37364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37368 cat >conftest.$ac_ext <<_ACEOF
37369 #line $LINENO "configure"
37370 /* confdefs.h. */
37371 _ACEOF
37372 cat confdefs.h >>conftest.$ac_ext
37373 cat >>conftest.$ac_ext <<_ACEOF
37374 /* end confdefs.h. */
37375 #include <math.h>
37376 #ifdef HAVE_IEEEFP_H
37377 #include <ieeefp.h>
37378 #endif
37381 main ()
37383 expl(0);
37385 return 0;
37387 _ACEOF
37388 rm -f conftest.$ac_objext
37389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37390 (eval $ac_compile) 2>&5
37391 ac_status=$?
37392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393 (exit $ac_status); } &&
37394 { ac_try='test -s conftest.$ac_objext'
37395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37396 (eval $ac_try) 2>&5
37397 ac_status=$?
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); }; }; then
37400 glibcxx_cv_func_expl_use=yes
37401 else
37402 echo "$as_me: failed program was:" >&5
37403 sed 's/^/| /' conftest.$ac_ext >&5
37405 glibcxx_cv_func_expl_use=no
37407 rm -f conftest.$ac_objext conftest.$ac_ext
37408 ac_ext=c
37409 ac_cpp='$CPP $CPPFLAGS'
37410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37418 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
37419 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
37421 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37423 for ac_func in expl
37425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37426 echo "$as_me:$LINENO: checking for $ac_func" >&5
37427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37428 if eval "test \"\${$as_ac_var+set}\" = set"; then
37429 echo $ECHO_N "(cached) $ECHO_C" >&6
37430 else
37431 if test x$gcc_no_link = xyes; then
37432 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37433 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37434 { (exit 1); exit 1; }; }
37436 cat >conftest.$ac_ext <<_ACEOF
37437 #line $LINENO "configure"
37438 /* confdefs.h. */
37439 _ACEOF
37440 cat confdefs.h >>conftest.$ac_ext
37441 cat >>conftest.$ac_ext <<_ACEOF
37442 /* end confdefs.h. */
37443 /* System header to define __stub macros and hopefully few prototypes,
37444 which can conflict with char $ac_func (); below.
37445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37446 <limits.h> exists even on freestanding compilers. */
37447 #ifdef __STDC__
37448 # include <limits.h>
37449 #else
37450 # include <assert.h>
37451 #endif
37452 /* Override any gcc2 internal prototype to avoid an error. */
37453 #ifdef __cplusplus
37454 extern "C"
37456 #endif
37457 /* We use char because int might match the return type of a gcc2
37458 builtin and then its argument prototype would still apply. */
37459 char $ac_func ();
37460 /* The GNU C library defines this for functions which it implements
37461 to always fail with ENOSYS. Some functions are actually named
37462 something starting with __ and the normal name is an alias. */
37463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37464 choke me
37465 #else
37466 char (*f) () = $ac_func;
37467 #endif
37468 #ifdef __cplusplus
37470 #endif
37473 main ()
37475 return f != $ac_func;
37477 return 0;
37479 _ACEOF
37480 rm -f conftest.$ac_objext conftest$ac_exeext
37481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37482 (eval $ac_link) 2>&5
37483 ac_status=$?
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); } &&
37486 { ac_try='test -s conftest$ac_exeext'
37487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488 (eval $ac_try) 2>&5
37489 ac_status=$?
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); }; }; then
37492 eval "$as_ac_var=yes"
37493 else
37494 echo "$as_me: failed program was:" >&5
37495 sed 's/^/| /' conftest.$ac_ext >&5
37497 eval "$as_ac_var=no"
37499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37503 if test `eval echo '${'$as_ac_var'}'` = yes; then
37504 cat >>confdefs.h <<_ACEOF
37505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37506 _ACEOF
37509 done
37511 else
37513 echo "$as_me:$LINENO: checking for _expl declaration" >&5
37514 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
37515 if test x${glibcxx_cv_func__expl_use+set} != xset; then
37516 if test "${glibcxx_cv_func__expl_use+set}" = set; then
37517 echo $ECHO_N "(cached) $ECHO_C" >&6
37518 else
37522 ac_ext=cc
37523 ac_cpp='$CXXCPP $CPPFLAGS'
37524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37528 cat >conftest.$ac_ext <<_ACEOF
37529 #line $LINENO "configure"
37530 /* confdefs.h. */
37531 _ACEOF
37532 cat confdefs.h >>conftest.$ac_ext
37533 cat >>conftest.$ac_ext <<_ACEOF
37534 /* end confdefs.h. */
37535 #include <math.h>
37536 #ifdef HAVE_IEEEFP_H
37537 #include <ieeefp.h>
37538 #endif
37541 main ()
37543 _expl(0);
37545 return 0;
37547 _ACEOF
37548 rm -f conftest.$ac_objext
37549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37550 (eval $ac_compile) 2>&5
37551 ac_status=$?
37552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553 (exit $ac_status); } &&
37554 { ac_try='test -s conftest.$ac_objext'
37555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37556 (eval $ac_try) 2>&5
37557 ac_status=$?
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); }; }; then
37560 glibcxx_cv_func__expl_use=yes
37561 else
37562 echo "$as_me: failed program was:" >&5
37563 sed 's/^/| /' conftest.$ac_ext >&5
37565 glibcxx_cv_func__expl_use=no
37567 rm -f conftest.$ac_objext conftest.$ac_ext
37568 ac_ext=c
37569 ac_cpp='$CPP $CPPFLAGS'
37570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37578 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
37579 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
37581 if test x$glibcxx_cv_func__expl_use = x"yes"; then
37583 for ac_func in _expl
37585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37586 echo "$as_me:$LINENO: checking for $ac_func" >&5
37587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37588 if eval "test \"\${$as_ac_var+set}\" = set"; then
37589 echo $ECHO_N "(cached) $ECHO_C" >&6
37590 else
37591 if test x$gcc_no_link = xyes; then
37592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37594 { (exit 1); exit 1; }; }
37596 cat >conftest.$ac_ext <<_ACEOF
37597 #line $LINENO "configure"
37598 /* confdefs.h. */
37599 _ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h. */
37603 /* System header to define __stub macros and hopefully few prototypes,
37604 which can conflict with char $ac_func (); below.
37605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37606 <limits.h> exists even on freestanding compilers. */
37607 #ifdef __STDC__
37608 # include <limits.h>
37609 #else
37610 # include <assert.h>
37611 #endif
37612 /* Override any gcc2 internal prototype to avoid an error. */
37613 #ifdef __cplusplus
37614 extern "C"
37616 #endif
37617 /* We use char because int might match the return type of a gcc2
37618 builtin and then its argument prototype would still apply. */
37619 char $ac_func ();
37620 /* The GNU C library defines this for functions which it implements
37621 to always fail with ENOSYS. Some functions are actually named
37622 something starting with __ and the normal name is an alias. */
37623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37624 choke me
37625 #else
37626 char (*f) () = $ac_func;
37627 #endif
37628 #ifdef __cplusplus
37630 #endif
37633 main ()
37635 return f != $ac_func;
37637 return 0;
37639 _ACEOF
37640 rm -f conftest.$ac_objext conftest$ac_exeext
37641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37642 (eval $ac_link) 2>&5
37643 ac_status=$?
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } &&
37646 { ac_try='test -s conftest$ac_exeext'
37647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37648 (eval $ac_try) 2>&5
37649 ac_status=$?
37650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651 (exit $ac_status); }; }; then
37652 eval "$as_ac_var=yes"
37653 else
37654 echo "$as_me: failed program was:" >&5
37655 sed 's/^/| /' conftest.$ac_ext >&5
37657 eval "$as_ac_var=no"
37659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37663 if test `eval echo '${'$as_ac_var'}'` = yes; then
37664 cat >>confdefs.h <<_ACEOF
37665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37666 _ACEOF
37669 done
37676 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
37677 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
37678 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37679 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
37680 echo $ECHO_N "(cached) $ECHO_C" >&6
37681 else
37685 ac_ext=cc
37686 ac_cpp='$CXXCPP $CPPFLAGS'
37687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37691 cat >conftest.$ac_ext <<_ACEOF
37692 #line $LINENO "configure"
37693 /* confdefs.h. */
37694 _ACEOF
37695 cat confdefs.h >>conftest.$ac_ext
37696 cat >>conftest.$ac_ext <<_ACEOF
37697 /* end confdefs.h. */
37698 #include <math.h>
37699 #ifdef HAVE_IEEEFP_H
37700 #include <ieeefp.h>
37701 #endif
37704 main ()
37706 fabsl(0);
37708 return 0;
37710 _ACEOF
37711 rm -f conftest.$ac_objext
37712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37713 (eval $ac_compile) 2>&5
37714 ac_status=$?
37715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716 (exit $ac_status); } &&
37717 { ac_try='test -s conftest.$ac_objext'
37718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37719 (eval $ac_try) 2>&5
37720 ac_status=$?
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); }; }; then
37723 glibcxx_cv_func_fabsl_use=yes
37724 else
37725 echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37728 glibcxx_cv_func_fabsl_use=no
37730 rm -f conftest.$ac_objext conftest.$ac_ext
37731 ac_ext=c
37732 ac_cpp='$CPP $CPPFLAGS'
37733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37741 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
37742 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
37744 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
37746 for ac_func in fabsl
37748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37749 echo "$as_me:$LINENO: checking for $ac_func" >&5
37750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37751 if eval "test \"\${$as_ac_var+set}\" = set"; then
37752 echo $ECHO_N "(cached) $ECHO_C" >&6
37753 else
37754 if test x$gcc_no_link = xyes; then
37755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37757 { (exit 1); exit 1; }; }
37759 cat >conftest.$ac_ext <<_ACEOF
37760 #line $LINENO "configure"
37761 /* confdefs.h. */
37762 _ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h. */
37766 /* System header to define __stub macros and hopefully few prototypes,
37767 which can conflict with char $ac_func (); below.
37768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37769 <limits.h> exists even on freestanding compilers. */
37770 #ifdef __STDC__
37771 # include <limits.h>
37772 #else
37773 # include <assert.h>
37774 #endif
37775 /* Override any gcc2 internal prototype to avoid an error. */
37776 #ifdef __cplusplus
37777 extern "C"
37779 #endif
37780 /* We use char because int might match the return type of a gcc2
37781 builtin and then its argument prototype would still apply. */
37782 char $ac_func ();
37783 /* The GNU C library defines this for functions which it implements
37784 to always fail with ENOSYS. Some functions are actually named
37785 something starting with __ and the normal name is an alias. */
37786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37787 choke me
37788 #else
37789 char (*f) () = $ac_func;
37790 #endif
37791 #ifdef __cplusplus
37793 #endif
37796 main ()
37798 return f != $ac_func;
37800 return 0;
37802 _ACEOF
37803 rm -f conftest.$ac_objext conftest$ac_exeext
37804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37805 (eval $ac_link) 2>&5
37806 ac_status=$?
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); } &&
37809 { ac_try='test -s conftest$ac_exeext'
37810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811 (eval $ac_try) 2>&5
37812 ac_status=$?
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); }; }; then
37815 eval "$as_ac_var=yes"
37816 else
37817 echo "$as_me: failed program was:" >&5
37818 sed 's/^/| /' conftest.$ac_ext >&5
37820 eval "$as_ac_var=no"
37822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37826 if test `eval echo '${'$as_ac_var'}'` = yes; then
37827 cat >>confdefs.h <<_ACEOF
37828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37829 _ACEOF
37832 done
37834 else
37836 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
37837 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
37838 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
37839 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
37840 echo $ECHO_N "(cached) $ECHO_C" >&6
37841 else
37845 ac_ext=cc
37846 ac_cpp='$CXXCPP $CPPFLAGS'
37847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37851 cat >conftest.$ac_ext <<_ACEOF
37852 #line $LINENO "configure"
37853 /* confdefs.h. */
37854 _ACEOF
37855 cat confdefs.h >>conftest.$ac_ext
37856 cat >>conftest.$ac_ext <<_ACEOF
37857 /* end confdefs.h. */
37858 #include <math.h>
37859 #ifdef HAVE_IEEEFP_H
37860 #include <ieeefp.h>
37861 #endif
37864 main ()
37866 _fabsl(0);
37868 return 0;
37870 _ACEOF
37871 rm -f conftest.$ac_objext
37872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37873 (eval $ac_compile) 2>&5
37874 ac_status=$?
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); } &&
37877 { ac_try='test -s conftest.$ac_objext'
37878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37879 (eval $ac_try) 2>&5
37880 ac_status=$?
37881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); }; }; then
37883 glibcxx_cv_func__fabsl_use=yes
37884 else
37885 echo "$as_me: failed program was:" >&5
37886 sed 's/^/| /' conftest.$ac_ext >&5
37888 glibcxx_cv_func__fabsl_use=no
37890 rm -f conftest.$ac_objext conftest.$ac_ext
37891 ac_ext=c
37892 ac_cpp='$CPP $CPPFLAGS'
37893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37901 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
37902 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
37904 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
37906 for ac_func in _fabsl
37908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37909 echo "$as_me:$LINENO: checking for $ac_func" >&5
37910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37911 if eval "test \"\${$as_ac_var+set}\" = set"; then
37912 echo $ECHO_N "(cached) $ECHO_C" >&6
37913 else
37914 if test x$gcc_no_link = xyes; then
37915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37917 { (exit 1); exit 1; }; }
37919 cat >conftest.$ac_ext <<_ACEOF
37920 #line $LINENO "configure"
37921 /* confdefs.h. */
37922 _ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h. */
37926 /* System header to define __stub macros and hopefully few prototypes,
37927 which can conflict with char $ac_func (); below.
37928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37929 <limits.h> exists even on freestanding compilers. */
37930 #ifdef __STDC__
37931 # include <limits.h>
37932 #else
37933 # include <assert.h>
37934 #endif
37935 /* Override any gcc2 internal prototype to avoid an error. */
37936 #ifdef __cplusplus
37937 extern "C"
37939 #endif
37940 /* We use char because int might match the return type of a gcc2
37941 builtin and then its argument prototype would still apply. */
37942 char $ac_func ();
37943 /* The GNU C library defines this for functions which it implements
37944 to always fail with ENOSYS. Some functions are actually named
37945 something starting with __ and the normal name is an alias. */
37946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37947 choke me
37948 #else
37949 char (*f) () = $ac_func;
37950 #endif
37951 #ifdef __cplusplus
37953 #endif
37956 main ()
37958 return f != $ac_func;
37960 return 0;
37962 _ACEOF
37963 rm -f conftest.$ac_objext conftest$ac_exeext
37964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37965 (eval $ac_link) 2>&5
37966 ac_status=$?
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); } &&
37969 { ac_try='test -s conftest$ac_exeext'
37970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971 (eval $ac_try) 2>&5
37972 ac_status=$?
37973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974 (exit $ac_status); }; }; then
37975 eval "$as_ac_var=yes"
37976 else
37977 echo "$as_me: failed program was:" >&5
37978 sed 's/^/| /' conftest.$ac_ext >&5
37980 eval "$as_ac_var=no"
37982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37986 if test `eval echo '${'$as_ac_var'}'` = yes; then
37987 cat >>confdefs.h <<_ACEOF
37988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37989 _ACEOF
37992 done
37999 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
38000 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
38001 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
38002 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
38003 echo $ECHO_N "(cached) $ECHO_C" >&6
38004 else
38008 ac_ext=cc
38009 ac_cpp='$CXXCPP $CPPFLAGS'
38010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38014 cat >conftest.$ac_ext <<_ACEOF
38015 #line $LINENO "configure"
38016 /* confdefs.h. */
38017 _ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h. */
38021 #include <math.h>
38023 main ()
38025 fmodl(0, 0);
38027 return 0;
38029 _ACEOF
38030 rm -f conftest.$ac_objext
38031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38032 (eval $ac_compile) 2>&5
38033 ac_status=$?
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); } &&
38036 { ac_try='test -s conftest.$ac_objext'
38037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038 (eval $ac_try) 2>&5
38039 ac_status=$?
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); }; }; then
38042 glibcxx_cv_func_fmodl_use=yes
38043 else
38044 echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38047 glibcxx_cv_func_fmodl_use=no
38049 rm -f conftest.$ac_objext conftest.$ac_ext
38050 ac_ext=c
38051 ac_cpp='$CPP $CPPFLAGS'
38052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38060 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
38061 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
38063 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
38065 for ac_func in fmodl
38067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38068 echo "$as_me:$LINENO: checking for $ac_func" >&5
38069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38070 if eval "test \"\${$as_ac_var+set}\" = set"; then
38071 echo $ECHO_N "(cached) $ECHO_C" >&6
38072 else
38073 if test x$gcc_no_link = xyes; then
38074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38076 { (exit 1); exit 1; }; }
38078 cat >conftest.$ac_ext <<_ACEOF
38079 #line $LINENO "configure"
38080 /* confdefs.h. */
38081 _ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h. */
38085 /* System header to define __stub macros and hopefully few prototypes,
38086 which can conflict with char $ac_func (); below.
38087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38088 <limits.h> exists even on freestanding compilers. */
38089 #ifdef __STDC__
38090 # include <limits.h>
38091 #else
38092 # include <assert.h>
38093 #endif
38094 /* Override any gcc2 internal prototype to avoid an error. */
38095 #ifdef __cplusplus
38096 extern "C"
38098 #endif
38099 /* We use char because int might match the return type of a gcc2
38100 builtin and then its argument prototype would still apply. */
38101 char $ac_func ();
38102 /* The GNU C library defines this for functions which it implements
38103 to always fail with ENOSYS. Some functions are actually named
38104 something starting with __ and the normal name is an alias. */
38105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38106 choke me
38107 #else
38108 char (*f) () = $ac_func;
38109 #endif
38110 #ifdef __cplusplus
38112 #endif
38115 main ()
38117 return f != $ac_func;
38119 return 0;
38121 _ACEOF
38122 rm -f conftest.$ac_objext conftest$ac_exeext
38123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38124 (eval $ac_link) 2>&5
38125 ac_status=$?
38126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38127 (exit $ac_status); } &&
38128 { ac_try='test -s conftest$ac_exeext'
38129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38130 (eval $ac_try) 2>&5
38131 ac_status=$?
38132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38133 (exit $ac_status); }; }; then
38134 eval "$as_ac_var=yes"
38135 else
38136 echo "$as_me: failed program was:" >&5
38137 sed 's/^/| /' conftest.$ac_ext >&5
38139 eval "$as_ac_var=no"
38141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38145 if test `eval echo '${'$as_ac_var'}'` = yes; then
38146 cat >>confdefs.h <<_ACEOF
38147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38148 _ACEOF
38151 done
38153 else
38155 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
38156 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
38157 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
38158 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
38159 echo $ECHO_N "(cached) $ECHO_C" >&6
38160 else
38164 ac_ext=cc
38165 ac_cpp='$CXXCPP $CPPFLAGS'
38166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38170 cat >conftest.$ac_ext <<_ACEOF
38171 #line $LINENO "configure"
38172 /* confdefs.h. */
38173 _ACEOF
38174 cat confdefs.h >>conftest.$ac_ext
38175 cat >>conftest.$ac_ext <<_ACEOF
38176 /* end confdefs.h. */
38177 #include <math.h>
38179 main ()
38181 _fmodl(0, 0);
38183 return 0;
38185 _ACEOF
38186 rm -f conftest.$ac_objext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38188 (eval $ac_compile) 2>&5
38189 ac_status=$?
38190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191 (exit $ac_status); } &&
38192 { ac_try='test -s conftest.$ac_objext'
38193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38194 (eval $ac_try) 2>&5
38195 ac_status=$?
38196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197 (exit $ac_status); }; }; then
38198 glibcxx_cv_func__fmodl_use=yes
38199 else
38200 echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38203 glibcxx_cv_func__fmodl_use=no
38205 rm -f conftest.$ac_objext conftest.$ac_ext
38206 ac_ext=c
38207 ac_cpp='$CPP $CPPFLAGS'
38208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38216 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
38217 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
38219 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
38221 for ac_func in _fmodl
38223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38224 echo "$as_me:$LINENO: checking for $ac_func" >&5
38225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38226 if eval "test \"\${$as_ac_var+set}\" = set"; then
38227 echo $ECHO_N "(cached) $ECHO_C" >&6
38228 else
38229 if test x$gcc_no_link = xyes; then
38230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38232 { (exit 1); exit 1; }; }
38234 cat >conftest.$ac_ext <<_ACEOF
38235 #line $LINENO "configure"
38236 /* confdefs.h. */
38237 _ACEOF
38238 cat confdefs.h >>conftest.$ac_ext
38239 cat >>conftest.$ac_ext <<_ACEOF
38240 /* end confdefs.h. */
38241 /* System header to define __stub macros and hopefully few prototypes,
38242 which can conflict with char $ac_func (); below.
38243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38244 <limits.h> exists even on freestanding compilers. */
38245 #ifdef __STDC__
38246 # include <limits.h>
38247 #else
38248 # include <assert.h>
38249 #endif
38250 /* Override any gcc2 internal prototype to avoid an error. */
38251 #ifdef __cplusplus
38252 extern "C"
38254 #endif
38255 /* We use char because int might match the return type of a gcc2
38256 builtin and then its argument prototype would still apply. */
38257 char $ac_func ();
38258 /* The GNU C library defines this for functions which it implements
38259 to always fail with ENOSYS. Some functions are actually named
38260 something starting with __ and the normal name is an alias. */
38261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38262 choke me
38263 #else
38264 char (*f) () = $ac_func;
38265 #endif
38266 #ifdef __cplusplus
38268 #endif
38271 main ()
38273 return f != $ac_func;
38275 return 0;
38277 _ACEOF
38278 rm -f conftest.$ac_objext conftest$ac_exeext
38279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38280 (eval $ac_link) 2>&5
38281 ac_status=$?
38282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283 (exit $ac_status); } &&
38284 { ac_try='test -s conftest$ac_exeext'
38285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38286 (eval $ac_try) 2>&5
38287 ac_status=$?
38288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); }; }; then
38290 eval "$as_ac_var=yes"
38291 else
38292 echo "$as_me: failed program was:" >&5
38293 sed 's/^/| /' conftest.$ac_ext >&5
38295 eval "$as_ac_var=no"
38297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38301 if test `eval echo '${'$as_ac_var'}'` = yes; then
38302 cat >>confdefs.h <<_ACEOF
38303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38304 _ACEOF
38307 done
38314 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
38315 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
38316 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
38317 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
38318 echo $ECHO_N "(cached) $ECHO_C" >&6
38319 else
38323 ac_ext=cc
38324 ac_cpp='$CXXCPP $CPPFLAGS'
38325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38329 cat >conftest.$ac_ext <<_ACEOF
38330 #line $LINENO "configure"
38331 /* confdefs.h. */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h. */
38336 #include <math.h>
38338 main ()
38340 frexpl(0, 0);
38342 return 0;
38344 _ACEOF
38345 rm -f conftest.$ac_objext
38346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38347 (eval $ac_compile) 2>&5
38348 ac_status=$?
38349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38350 (exit $ac_status); } &&
38351 { ac_try='test -s conftest.$ac_objext'
38352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38353 (eval $ac_try) 2>&5
38354 ac_status=$?
38355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356 (exit $ac_status); }; }; then
38357 glibcxx_cv_func_frexpl_use=yes
38358 else
38359 echo "$as_me: failed program was:" >&5
38360 sed 's/^/| /' conftest.$ac_ext >&5
38362 glibcxx_cv_func_frexpl_use=no
38364 rm -f conftest.$ac_objext conftest.$ac_ext
38365 ac_ext=c
38366 ac_cpp='$CPP $CPPFLAGS'
38367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38375 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
38376 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
38378 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
38380 for ac_func in frexpl
38382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38383 echo "$as_me:$LINENO: checking for $ac_func" >&5
38384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38385 if eval "test \"\${$as_ac_var+set}\" = set"; then
38386 echo $ECHO_N "(cached) $ECHO_C" >&6
38387 else
38388 if test x$gcc_no_link = xyes; then
38389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38391 { (exit 1); exit 1; }; }
38393 cat >conftest.$ac_ext <<_ACEOF
38394 #line $LINENO "configure"
38395 /* confdefs.h. */
38396 _ACEOF
38397 cat confdefs.h >>conftest.$ac_ext
38398 cat >>conftest.$ac_ext <<_ACEOF
38399 /* end confdefs.h. */
38400 /* System header to define __stub macros and hopefully few prototypes,
38401 which can conflict with char $ac_func (); below.
38402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38403 <limits.h> exists even on freestanding compilers. */
38404 #ifdef __STDC__
38405 # include <limits.h>
38406 #else
38407 # include <assert.h>
38408 #endif
38409 /* Override any gcc2 internal prototype to avoid an error. */
38410 #ifdef __cplusplus
38411 extern "C"
38413 #endif
38414 /* We use char because int might match the return type of a gcc2
38415 builtin and then its argument prototype would still apply. */
38416 char $ac_func ();
38417 /* The GNU C library defines this for functions which it implements
38418 to always fail with ENOSYS. Some functions are actually named
38419 something starting with __ and the normal name is an alias. */
38420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38421 choke me
38422 #else
38423 char (*f) () = $ac_func;
38424 #endif
38425 #ifdef __cplusplus
38427 #endif
38430 main ()
38432 return f != $ac_func;
38434 return 0;
38436 _ACEOF
38437 rm -f conftest.$ac_objext conftest$ac_exeext
38438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38439 (eval $ac_link) 2>&5
38440 ac_status=$?
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); } &&
38443 { ac_try='test -s conftest$ac_exeext'
38444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38445 (eval $ac_try) 2>&5
38446 ac_status=$?
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); }; }; then
38449 eval "$as_ac_var=yes"
38450 else
38451 echo "$as_me: failed program was:" >&5
38452 sed 's/^/| /' conftest.$ac_ext >&5
38454 eval "$as_ac_var=no"
38456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38460 if test `eval echo '${'$as_ac_var'}'` = yes; then
38461 cat >>confdefs.h <<_ACEOF
38462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38463 _ACEOF
38466 done
38468 else
38470 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
38471 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
38472 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
38473 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
38474 echo $ECHO_N "(cached) $ECHO_C" >&6
38475 else
38479 ac_ext=cc
38480 ac_cpp='$CXXCPP $CPPFLAGS'
38481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38485 cat >conftest.$ac_ext <<_ACEOF
38486 #line $LINENO "configure"
38487 /* confdefs.h. */
38488 _ACEOF
38489 cat confdefs.h >>conftest.$ac_ext
38490 cat >>conftest.$ac_ext <<_ACEOF
38491 /* end confdefs.h. */
38492 #include <math.h>
38494 main ()
38496 _frexpl(0, 0);
38498 return 0;
38500 _ACEOF
38501 rm -f conftest.$ac_objext
38502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38503 (eval $ac_compile) 2>&5
38504 ac_status=$?
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); } &&
38507 { ac_try='test -s conftest.$ac_objext'
38508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509 (eval $ac_try) 2>&5
38510 ac_status=$?
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); }; }; then
38513 glibcxx_cv_func__frexpl_use=yes
38514 else
38515 echo "$as_me: failed program was:" >&5
38516 sed 's/^/| /' conftest.$ac_ext >&5
38518 glibcxx_cv_func__frexpl_use=no
38520 rm -f conftest.$ac_objext conftest.$ac_ext
38521 ac_ext=c
38522 ac_cpp='$CPP $CPPFLAGS'
38523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38531 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
38532 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
38534 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
38536 for ac_func in _frexpl
38538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38539 echo "$as_me:$LINENO: checking for $ac_func" >&5
38540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38541 if eval "test \"\${$as_ac_var+set}\" = set"; then
38542 echo $ECHO_N "(cached) $ECHO_C" >&6
38543 else
38544 if test x$gcc_no_link = xyes; then
38545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38547 { (exit 1); exit 1; }; }
38549 cat >conftest.$ac_ext <<_ACEOF
38550 #line $LINENO "configure"
38551 /* confdefs.h. */
38552 _ACEOF
38553 cat confdefs.h >>conftest.$ac_ext
38554 cat >>conftest.$ac_ext <<_ACEOF
38555 /* end confdefs.h. */
38556 /* System header to define __stub macros and hopefully few prototypes,
38557 which can conflict with char $ac_func (); below.
38558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38559 <limits.h> exists even on freestanding compilers. */
38560 #ifdef __STDC__
38561 # include <limits.h>
38562 #else
38563 # include <assert.h>
38564 #endif
38565 /* Override any gcc2 internal prototype to avoid an error. */
38566 #ifdef __cplusplus
38567 extern "C"
38569 #endif
38570 /* We use char because int might match the return type of a gcc2
38571 builtin and then its argument prototype would still apply. */
38572 char $ac_func ();
38573 /* The GNU C library defines this for functions which it implements
38574 to always fail with ENOSYS. Some functions are actually named
38575 something starting with __ and the normal name is an alias. */
38576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38577 choke me
38578 #else
38579 char (*f) () = $ac_func;
38580 #endif
38581 #ifdef __cplusplus
38583 #endif
38586 main ()
38588 return f != $ac_func;
38590 return 0;
38592 _ACEOF
38593 rm -f conftest.$ac_objext conftest$ac_exeext
38594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38595 (eval $ac_link) 2>&5
38596 ac_status=$?
38597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38598 (exit $ac_status); } &&
38599 { ac_try='test -s conftest$ac_exeext'
38600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38601 (eval $ac_try) 2>&5
38602 ac_status=$?
38603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604 (exit $ac_status); }; }; then
38605 eval "$as_ac_var=yes"
38606 else
38607 echo "$as_me: failed program was:" >&5
38608 sed 's/^/| /' conftest.$ac_ext >&5
38610 eval "$as_ac_var=no"
38612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38616 if test `eval echo '${'$as_ac_var'}'` = yes; then
38617 cat >>confdefs.h <<_ACEOF
38618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38619 _ACEOF
38622 done
38629 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
38630 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
38631 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
38632 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38638 ac_ext=cc
38639 ac_cpp='$CXXCPP $CPPFLAGS'
38640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38644 cat >conftest.$ac_ext <<_ACEOF
38645 #line $LINENO "configure"
38646 /* confdefs.h. */
38647 _ACEOF
38648 cat confdefs.h >>conftest.$ac_ext
38649 cat >>conftest.$ac_ext <<_ACEOF
38650 /* end confdefs.h. */
38651 #include <math.h>
38653 main ()
38655 hypotl(0, 0);
38657 return 0;
38659 _ACEOF
38660 rm -f conftest.$ac_objext
38661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38662 (eval $ac_compile) 2>&5
38663 ac_status=$?
38664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665 (exit $ac_status); } &&
38666 { ac_try='test -s conftest.$ac_objext'
38667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668 (eval $ac_try) 2>&5
38669 ac_status=$?
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); }; }; then
38672 glibcxx_cv_func_hypotl_use=yes
38673 else
38674 echo "$as_me: failed program was:" >&5
38675 sed 's/^/| /' conftest.$ac_ext >&5
38677 glibcxx_cv_func_hypotl_use=no
38679 rm -f conftest.$ac_objext conftest.$ac_ext
38680 ac_ext=c
38681 ac_cpp='$CPP $CPPFLAGS'
38682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38690 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
38691 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
38693 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
38695 for ac_func in hypotl
38697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38698 echo "$as_me:$LINENO: checking for $ac_func" >&5
38699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38700 if eval "test \"\${$as_ac_var+set}\" = set"; then
38701 echo $ECHO_N "(cached) $ECHO_C" >&6
38702 else
38703 if test x$gcc_no_link = xyes; then
38704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38706 { (exit 1); exit 1; }; }
38708 cat >conftest.$ac_ext <<_ACEOF
38709 #line $LINENO "configure"
38710 /* confdefs.h. */
38711 _ACEOF
38712 cat confdefs.h >>conftest.$ac_ext
38713 cat >>conftest.$ac_ext <<_ACEOF
38714 /* end confdefs.h. */
38715 /* System header to define __stub macros and hopefully few prototypes,
38716 which can conflict with char $ac_func (); below.
38717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38718 <limits.h> exists even on freestanding compilers. */
38719 #ifdef __STDC__
38720 # include <limits.h>
38721 #else
38722 # include <assert.h>
38723 #endif
38724 /* Override any gcc2 internal prototype to avoid an error. */
38725 #ifdef __cplusplus
38726 extern "C"
38728 #endif
38729 /* We use char because int might match the return type of a gcc2
38730 builtin and then its argument prototype would still apply. */
38731 char $ac_func ();
38732 /* The GNU C library defines this for functions which it implements
38733 to always fail with ENOSYS. Some functions are actually named
38734 something starting with __ and the normal name is an alias. */
38735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38736 choke me
38737 #else
38738 char (*f) () = $ac_func;
38739 #endif
38740 #ifdef __cplusplus
38742 #endif
38745 main ()
38747 return f != $ac_func;
38749 return 0;
38751 _ACEOF
38752 rm -f conftest.$ac_objext conftest$ac_exeext
38753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38754 (eval $ac_link) 2>&5
38755 ac_status=$?
38756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38757 (exit $ac_status); } &&
38758 { ac_try='test -s conftest$ac_exeext'
38759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38760 (eval $ac_try) 2>&5
38761 ac_status=$?
38762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38763 (exit $ac_status); }; }; then
38764 eval "$as_ac_var=yes"
38765 else
38766 echo "$as_me: failed program was:" >&5
38767 sed 's/^/| /' conftest.$ac_ext >&5
38769 eval "$as_ac_var=no"
38771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38775 if test `eval echo '${'$as_ac_var'}'` = yes; then
38776 cat >>confdefs.h <<_ACEOF
38777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38778 _ACEOF
38781 done
38783 else
38785 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
38786 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
38787 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
38788 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
38789 echo $ECHO_N "(cached) $ECHO_C" >&6
38790 else
38794 ac_ext=cc
38795 ac_cpp='$CXXCPP $CPPFLAGS'
38796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38800 cat >conftest.$ac_ext <<_ACEOF
38801 #line $LINENO "configure"
38802 /* confdefs.h. */
38803 _ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h. */
38807 #include <math.h>
38809 main ()
38811 _hypotl(0, 0);
38813 return 0;
38815 _ACEOF
38816 rm -f conftest.$ac_objext
38817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38818 (eval $ac_compile) 2>&5
38819 ac_status=$?
38820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); } &&
38822 { ac_try='test -s conftest.$ac_objext'
38823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824 (eval $ac_try) 2>&5
38825 ac_status=$?
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); }; }; then
38828 glibcxx_cv_func__hypotl_use=yes
38829 else
38830 echo "$as_me: failed program was:" >&5
38831 sed 's/^/| /' conftest.$ac_ext >&5
38833 glibcxx_cv_func__hypotl_use=no
38835 rm -f conftest.$ac_objext conftest.$ac_ext
38836 ac_ext=c
38837 ac_cpp='$CPP $CPPFLAGS'
38838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38846 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
38847 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
38849 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
38851 for ac_func in _hypotl
38853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38854 echo "$as_me:$LINENO: checking for $ac_func" >&5
38855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38856 if eval "test \"\${$as_ac_var+set}\" = set"; then
38857 echo $ECHO_N "(cached) $ECHO_C" >&6
38858 else
38859 if test x$gcc_no_link = xyes; then
38860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38862 { (exit 1); exit 1; }; }
38864 cat >conftest.$ac_ext <<_ACEOF
38865 #line $LINENO "configure"
38866 /* confdefs.h. */
38867 _ACEOF
38868 cat confdefs.h >>conftest.$ac_ext
38869 cat >>conftest.$ac_ext <<_ACEOF
38870 /* end confdefs.h. */
38871 /* System header to define __stub macros and hopefully few prototypes,
38872 which can conflict with char $ac_func (); below.
38873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38874 <limits.h> exists even on freestanding compilers. */
38875 #ifdef __STDC__
38876 # include <limits.h>
38877 #else
38878 # include <assert.h>
38879 #endif
38880 /* Override any gcc2 internal prototype to avoid an error. */
38881 #ifdef __cplusplus
38882 extern "C"
38884 #endif
38885 /* We use char because int might match the return type of a gcc2
38886 builtin and then its argument prototype would still apply. */
38887 char $ac_func ();
38888 /* The GNU C library defines this for functions which it implements
38889 to always fail with ENOSYS. Some functions are actually named
38890 something starting with __ and the normal name is an alias. */
38891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38892 choke me
38893 #else
38894 char (*f) () = $ac_func;
38895 #endif
38896 #ifdef __cplusplus
38898 #endif
38901 main ()
38903 return f != $ac_func;
38905 return 0;
38907 _ACEOF
38908 rm -f conftest.$ac_objext conftest$ac_exeext
38909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38910 (eval $ac_link) 2>&5
38911 ac_status=$?
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); } &&
38914 { ac_try='test -s conftest$ac_exeext'
38915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38916 (eval $ac_try) 2>&5
38917 ac_status=$?
38918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919 (exit $ac_status); }; }; then
38920 eval "$as_ac_var=yes"
38921 else
38922 echo "$as_me: failed program was:" >&5
38923 sed 's/^/| /' conftest.$ac_ext >&5
38925 eval "$as_ac_var=no"
38927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38931 if test `eval echo '${'$as_ac_var'}'` = yes; then
38932 cat >>confdefs.h <<_ACEOF
38933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38934 _ACEOF
38937 done
38944 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
38945 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
38946 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
38947 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
38948 echo $ECHO_N "(cached) $ECHO_C" >&6
38949 else
38953 ac_ext=cc
38954 ac_cpp='$CXXCPP $CPPFLAGS'
38955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38959 cat >conftest.$ac_ext <<_ACEOF
38960 #line $LINENO "configure"
38961 /* confdefs.h. */
38962 _ACEOF
38963 cat confdefs.h >>conftest.$ac_ext
38964 cat >>conftest.$ac_ext <<_ACEOF
38965 /* end confdefs.h. */
38966 #include <math.h>
38968 main ()
38970 ldexpl(0, 0);
38972 return 0;
38974 _ACEOF
38975 rm -f conftest.$ac_objext
38976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38977 (eval $ac_compile) 2>&5
38978 ac_status=$?
38979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980 (exit $ac_status); } &&
38981 { ac_try='test -s conftest.$ac_objext'
38982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38983 (eval $ac_try) 2>&5
38984 ac_status=$?
38985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986 (exit $ac_status); }; }; then
38987 glibcxx_cv_func_ldexpl_use=yes
38988 else
38989 echo "$as_me: failed program was:" >&5
38990 sed 's/^/| /' conftest.$ac_ext >&5
38992 glibcxx_cv_func_ldexpl_use=no
38994 rm -f conftest.$ac_objext conftest.$ac_ext
38995 ac_ext=c
38996 ac_cpp='$CPP $CPPFLAGS'
38997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39005 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
39006 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
39008 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
39010 for ac_func in ldexpl
39012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39013 echo "$as_me:$LINENO: checking for $ac_func" >&5
39014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39015 if eval "test \"\${$as_ac_var+set}\" = set"; then
39016 echo $ECHO_N "(cached) $ECHO_C" >&6
39017 else
39018 if test x$gcc_no_link = xyes; then
39019 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39021 { (exit 1); exit 1; }; }
39023 cat >conftest.$ac_ext <<_ACEOF
39024 #line $LINENO "configure"
39025 /* confdefs.h. */
39026 _ACEOF
39027 cat confdefs.h >>conftest.$ac_ext
39028 cat >>conftest.$ac_ext <<_ACEOF
39029 /* end confdefs.h. */
39030 /* System header to define __stub macros and hopefully few prototypes,
39031 which can conflict with char $ac_func (); below.
39032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39033 <limits.h> exists even on freestanding compilers. */
39034 #ifdef __STDC__
39035 # include <limits.h>
39036 #else
39037 # include <assert.h>
39038 #endif
39039 /* Override any gcc2 internal prototype to avoid an error. */
39040 #ifdef __cplusplus
39041 extern "C"
39043 #endif
39044 /* We use char because int might match the return type of a gcc2
39045 builtin and then its argument prototype would still apply. */
39046 char $ac_func ();
39047 /* The GNU C library defines this for functions which it implements
39048 to always fail with ENOSYS. Some functions are actually named
39049 something starting with __ and the normal name is an alias. */
39050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39051 choke me
39052 #else
39053 char (*f) () = $ac_func;
39054 #endif
39055 #ifdef __cplusplus
39057 #endif
39060 main ()
39062 return f != $ac_func;
39064 return 0;
39066 _ACEOF
39067 rm -f conftest.$ac_objext conftest$ac_exeext
39068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39069 (eval $ac_link) 2>&5
39070 ac_status=$?
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); } &&
39073 { ac_try='test -s conftest$ac_exeext'
39074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075 (eval $ac_try) 2>&5
39076 ac_status=$?
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); }; }; then
39079 eval "$as_ac_var=yes"
39080 else
39081 echo "$as_me: failed program was:" >&5
39082 sed 's/^/| /' conftest.$ac_ext >&5
39084 eval "$as_ac_var=no"
39086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39090 if test `eval echo '${'$as_ac_var'}'` = yes; then
39091 cat >>confdefs.h <<_ACEOF
39092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39093 _ACEOF
39096 done
39098 else
39100 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
39101 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
39102 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
39103 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
39104 echo $ECHO_N "(cached) $ECHO_C" >&6
39105 else
39109 ac_ext=cc
39110 ac_cpp='$CXXCPP $CPPFLAGS'
39111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39115 cat >conftest.$ac_ext <<_ACEOF
39116 #line $LINENO "configure"
39117 /* confdefs.h. */
39118 _ACEOF
39119 cat confdefs.h >>conftest.$ac_ext
39120 cat >>conftest.$ac_ext <<_ACEOF
39121 /* end confdefs.h. */
39122 #include <math.h>
39124 main ()
39126 _ldexpl(0, 0);
39128 return 0;
39130 _ACEOF
39131 rm -f conftest.$ac_objext
39132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39133 (eval $ac_compile) 2>&5
39134 ac_status=$?
39135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136 (exit $ac_status); } &&
39137 { ac_try='test -s conftest.$ac_objext'
39138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39139 (eval $ac_try) 2>&5
39140 ac_status=$?
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); }; }; then
39143 glibcxx_cv_func__ldexpl_use=yes
39144 else
39145 echo "$as_me: failed program was:" >&5
39146 sed 's/^/| /' conftest.$ac_ext >&5
39148 glibcxx_cv_func__ldexpl_use=no
39150 rm -f conftest.$ac_objext conftest.$ac_ext
39151 ac_ext=c
39152 ac_cpp='$CPP $CPPFLAGS'
39153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39161 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
39162 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
39164 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
39166 for ac_func in _ldexpl
39168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39169 echo "$as_me:$LINENO: checking for $ac_func" >&5
39170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39171 if eval "test \"\${$as_ac_var+set}\" = set"; then
39172 echo $ECHO_N "(cached) $ECHO_C" >&6
39173 else
39174 if test x$gcc_no_link = xyes; then
39175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39177 { (exit 1); exit 1; }; }
39179 cat >conftest.$ac_ext <<_ACEOF
39180 #line $LINENO "configure"
39181 /* confdefs.h. */
39182 _ACEOF
39183 cat confdefs.h >>conftest.$ac_ext
39184 cat >>conftest.$ac_ext <<_ACEOF
39185 /* end confdefs.h. */
39186 /* System header to define __stub macros and hopefully few prototypes,
39187 which can conflict with char $ac_func (); below.
39188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39189 <limits.h> exists even on freestanding compilers. */
39190 #ifdef __STDC__
39191 # include <limits.h>
39192 #else
39193 # include <assert.h>
39194 #endif
39195 /* Override any gcc2 internal prototype to avoid an error. */
39196 #ifdef __cplusplus
39197 extern "C"
39199 #endif
39200 /* We use char because int might match the return type of a gcc2
39201 builtin and then its argument prototype would still apply. */
39202 char $ac_func ();
39203 /* The GNU C library defines this for functions which it implements
39204 to always fail with ENOSYS. Some functions are actually named
39205 something starting with __ and the normal name is an alias. */
39206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39207 choke me
39208 #else
39209 char (*f) () = $ac_func;
39210 #endif
39211 #ifdef __cplusplus
39213 #endif
39216 main ()
39218 return f != $ac_func;
39220 return 0;
39222 _ACEOF
39223 rm -f conftest.$ac_objext conftest$ac_exeext
39224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39225 (eval $ac_link) 2>&5
39226 ac_status=$?
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); } &&
39229 { ac_try='test -s conftest$ac_exeext'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39232 ac_status=$?
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
39235 eval "$as_ac_var=yes"
39236 else
39237 echo "$as_me: failed program was:" >&5
39238 sed 's/^/| /' conftest.$ac_ext >&5
39240 eval "$as_ac_var=no"
39242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39246 if test `eval echo '${'$as_ac_var'}'` = yes; then
39247 cat >>confdefs.h <<_ACEOF
39248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39249 _ACEOF
39252 done
39259 echo "$as_me:$LINENO: checking for logl declaration" >&5
39260 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
39261 if test x${glibcxx_cv_func_logl_use+set} != xset; then
39262 if test "${glibcxx_cv_func_logl_use+set}" = set; then
39263 echo $ECHO_N "(cached) $ECHO_C" >&6
39264 else
39268 ac_ext=cc
39269 ac_cpp='$CXXCPP $CPPFLAGS'
39270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39274 cat >conftest.$ac_ext <<_ACEOF
39275 #line $LINENO "configure"
39276 /* confdefs.h. */
39277 _ACEOF
39278 cat confdefs.h >>conftest.$ac_ext
39279 cat >>conftest.$ac_ext <<_ACEOF
39280 /* end confdefs.h. */
39281 #include <math.h>
39282 #ifdef HAVE_IEEEFP_H
39283 #include <ieeefp.h>
39284 #endif
39287 main ()
39289 logl(0);
39291 return 0;
39293 _ACEOF
39294 rm -f conftest.$ac_objext
39295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39296 (eval $ac_compile) 2>&5
39297 ac_status=$?
39298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); } &&
39300 { ac_try='test -s conftest.$ac_objext'
39301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302 (eval $ac_try) 2>&5
39303 ac_status=$?
39304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305 (exit $ac_status); }; }; then
39306 glibcxx_cv_func_logl_use=yes
39307 else
39308 echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.$ac_ext >&5
39311 glibcxx_cv_func_logl_use=no
39313 rm -f conftest.$ac_objext conftest.$ac_ext
39314 ac_ext=c
39315 ac_cpp='$CPP $CPPFLAGS'
39316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39324 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
39325 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
39327 if test x$glibcxx_cv_func_logl_use = x"yes"; then
39329 for ac_func in logl
39331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39332 echo "$as_me:$LINENO: checking for $ac_func" >&5
39333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39334 if eval "test \"\${$as_ac_var+set}\" = set"; then
39335 echo $ECHO_N "(cached) $ECHO_C" >&6
39336 else
39337 if test x$gcc_no_link = xyes; then
39338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39340 { (exit 1); exit 1; }; }
39342 cat >conftest.$ac_ext <<_ACEOF
39343 #line $LINENO "configure"
39344 /* confdefs.h. */
39345 _ACEOF
39346 cat confdefs.h >>conftest.$ac_ext
39347 cat >>conftest.$ac_ext <<_ACEOF
39348 /* end confdefs.h. */
39349 /* System header to define __stub macros and hopefully few prototypes,
39350 which can conflict with char $ac_func (); below.
39351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39352 <limits.h> exists even on freestanding compilers. */
39353 #ifdef __STDC__
39354 # include <limits.h>
39355 #else
39356 # include <assert.h>
39357 #endif
39358 /* Override any gcc2 internal prototype to avoid an error. */
39359 #ifdef __cplusplus
39360 extern "C"
39362 #endif
39363 /* We use char because int might match the return type of a gcc2
39364 builtin and then its argument prototype would still apply. */
39365 char $ac_func ();
39366 /* The GNU C library defines this for functions which it implements
39367 to always fail with ENOSYS. Some functions are actually named
39368 something starting with __ and the normal name is an alias. */
39369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39370 choke me
39371 #else
39372 char (*f) () = $ac_func;
39373 #endif
39374 #ifdef __cplusplus
39376 #endif
39379 main ()
39381 return f != $ac_func;
39383 return 0;
39385 _ACEOF
39386 rm -f conftest.$ac_objext conftest$ac_exeext
39387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39388 (eval $ac_link) 2>&5
39389 ac_status=$?
39390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391 (exit $ac_status); } &&
39392 { ac_try='test -s conftest$ac_exeext'
39393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394 (eval $ac_try) 2>&5
39395 ac_status=$?
39396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397 (exit $ac_status); }; }; then
39398 eval "$as_ac_var=yes"
39399 else
39400 echo "$as_me: failed program was:" >&5
39401 sed 's/^/| /' conftest.$ac_ext >&5
39403 eval "$as_ac_var=no"
39405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39409 if test `eval echo '${'$as_ac_var'}'` = yes; then
39410 cat >>confdefs.h <<_ACEOF
39411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39412 _ACEOF
39415 done
39417 else
39419 echo "$as_me:$LINENO: checking for _logl declaration" >&5
39420 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
39421 if test x${glibcxx_cv_func__logl_use+set} != xset; then
39422 if test "${glibcxx_cv_func__logl_use+set}" = set; then
39423 echo $ECHO_N "(cached) $ECHO_C" >&6
39424 else
39428 ac_ext=cc
39429 ac_cpp='$CXXCPP $CPPFLAGS'
39430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39434 cat >conftest.$ac_ext <<_ACEOF
39435 #line $LINENO "configure"
39436 /* confdefs.h. */
39437 _ACEOF
39438 cat confdefs.h >>conftest.$ac_ext
39439 cat >>conftest.$ac_ext <<_ACEOF
39440 /* end confdefs.h. */
39441 #include <math.h>
39442 #ifdef HAVE_IEEEFP_H
39443 #include <ieeefp.h>
39444 #endif
39447 main ()
39449 _logl(0);
39451 return 0;
39453 _ACEOF
39454 rm -f conftest.$ac_objext
39455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39456 (eval $ac_compile) 2>&5
39457 ac_status=$?
39458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39459 (exit $ac_status); } &&
39460 { ac_try='test -s conftest.$ac_objext'
39461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39462 (eval $ac_try) 2>&5
39463 ac_status=$?
39464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465 (exit $ac_status); }; }; then
39466 glibcxx_cv_func__logl_use=yes
39467 else
39468 echo "$as_me: failed program was:" >&5
39469 sed 's/^/| /' conftest.$ac_ext >&5
39471 glibcxx_cv_func__logl_use=no
39473 rm -f conftest.$ac_objext conftest.$ac_ext
39474 ac_ext=c
39475 ac_cpp='$CPP $CPPFLAGS'
39476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39484 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
39485 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
39487 if test x$glibcxx_cv_func__logl_use = x"yes"; then
39489 for ac_func in _logl
39491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39492 echo "$as_me:$LINENO: checking for $ac_func" >&5
39493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39494 if eval "test \"\${$as_ac_var+set}\" = set"; then
39495 echo $ECHO_N "(cached) $ECHO_C" >&6
39496 else
39497 if test x$gcc_no_link = xyes; then
39498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39500 { (exit 1); exit 1; }; }
39502 cat >conftest.$ac_ext <<_ACEOF
39503 #line $LINENO "configure"
39504 /* confdefs.h. */
39505 _ACEOF
39506 cat confdefs.h >>conftest.$ac_ext
39507 cat >>conftest.$ac_ext <<_ACEOF
39508 /* end confdefs.h. */
39509 /* System header to define __stub macros and hopefully few prototypes,
39510 which can conflict with char $ac_func (); below.
39511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39512 <limits.h> exists even on freestanding compilers. */
39513 #ifdef __STDC__
39514 # include <limits.h>
39515 #else
39516 # include <assert.h>
39517 #endif
39518 /* Override any gcc2 internal prototype to avoid an error. */
39519 #ifdef __cplusplus
39520 extern "C"
39522 #endif
39523 /* We use char because int might match the return type of a gcc2
39524 builtin and then its argument prototype would still apply. */
39525 char $ac_func ();
39526 /* The GNU C library defines this for functions which it implements
39527 to always fail with ENOSYS. Some functions are actually named
39528 something starting with __ and the normal name is an alias. */
39529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39530 choke me
39531 #else
39532 char (*f) () = $ac_func;
39533 #endif
39534 #ifdef __cplusplus
39536 #endif
39539 main ()
39541 return f != $ac_func;
39543 return 0;
39545 _ACEOF
39546 rm -f conftest.$ac_objext conftest$ac_exeext
39547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39548 (eval $ac_link) 2>&5
39549 ac_status=$?
39550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39551 (exit $ac_status); } &&
39552 { ac_try='test -s conftest$ac_exeext'
39553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39554 (eval $ac_try) 2>&5
39555 ac_status=$?
39556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557 (exit $ac_status); }; }; then
39558 eval "$as_ac_var=yes"
39559 else
39560 echo "$as_me: failed program was:" >&5
39561 sed 's/^/| /' conftest.$ac_ext >&5
39563 eval "$as_ac_var=no"
39565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39569 if test `eval echo '${'$as_ac_var'}'` = yes; then
39570 cat >>confdefs.h <<_ACEOF
39571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39572 _ACEOF
39575 done
39582 echo "$as_me:$LINENO: checking for log10l declaration" >&5
39583 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
39584 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
39585 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
39586 echo $ECHO_N "(cached) $ECHO_C" >&6
39587 else
39591 ac_ext=cc
39592 ac_cpp='$CXXCPP $CPPFLAGS'
39593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39597 cat >conftest.$ac_ext <<_ACEOF
39598 #line $LINENO "configure"
39599 /* confdefs.h. */
39600 _ACEOF
39601 cat confdefs.h >>conftest.$ac_ext
39602 cat >>conftest.$ac_ext <<_ACEOF
39603 /* end confdefs.h. */
39604 #include <math.h>
39605 #ifdef HAVE_IEEEFP_H
39606 #include <ieeefp.h>
39607 #endif
39610 main ()
39612 log10l(0);
39614 return 0;
39616 _ACEOF
39617 rm -f conftest.$ac_objext
39618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39619 (eval $ac_compile) 2>&5
39620 ac_status=$?
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); } &&
39623 { ac_try='test -s conftest.$ac_objext'
39624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39625 (eval $ac_try) 2>&5
39626 ac_status=$?
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); }; }; then
39629 glibcxx_cv_func_log10l_use=yes
39630 else
39631 echo "$as_me: failed program was:" >&5
39632 sed 's/^/| /' conftest.$ac_ext >&5
39634 glibcxx_cv_func_log10l_use=no
39636 rm -f conftest.$ac_objext conftest.$ac_ext
39637 ac_ext=c
39638 ac_cpp='$CPP $CPPFLAGS'
39639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39647 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
39648 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
39650 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
39652 for ac_func in log10l
39654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39655 echo "$as_me:$LINENO: checking for $ac_func" >&5
39656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39657 if eval "test \"\${$as_ac_var+set}\" = set"; then
39658 echo $ECHO_N "(cached) $ECHO_C" >&6
39659 else
39660 if test x$gcc_no_link = xyes; then
39661 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39662 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39663 { (exit 1); exit 1; }; }
39665 cat >conftest.$ac_ext <<_ACEOF
39666 #line $LINENO "configure"
39667 /* confdefs.h. */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h. */
39672 /* System header to define __stub macros and hopefully few prototypes,
39673 which can conflict with char $ac_func (); below.
39674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39675 <limits.h> exists even on freestanding compilers. */
39676 #ifdef __STDC__
39677 # include <limits.h>
39678 #else
39679 # include <assert.h>
39680 #endif
39681 /* Override any gcc2 internal prototype to avoid an error. */
39682 #ifdef __cplusplus
39683 extern "C"
39685 #endif
39686 /* We use char because int might match the return type of a gcc2
39687 builtin and then its argument prototype would still apply. */
39688 char $ac_func ();
39689 /* The GNU C library defines this for functions which it implements
39690 to always fail with ENOSYS. Some functions are actually named
39691 something starting with __ and the normal name is an alias. */
39692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39693 choke me
39694 #else
39695 char (*f) () = $ac_func;
39696 #endif
39697 #ifdef __cplusplus
39699 #endif
39702 main ()
39704 return f != $ac_func;
39706 return 0;
39708 _ACEOF
39709 rm -f conftest.$ac_objext conftest$ac_exeext
39710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39711 (eval $ac_link) 2>&5
39712 ac_status=$?
39713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714 (exit $ac_status); } &&
39715 { ac_try='test -s conftest$ac_exeext'
39716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39717 (eval $ac_try) 2>&5
39718 ac_status=$?
39719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720 (exit $ac_status); }; }; then
39721 eval "$as_ac_var=yes"
39722 else
39723 echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39726 eval "$as_ac_var=no"
39728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39732 if test `eval echo '${'$as_ac_var'}'` = yes; then
39733 cat >>confdefs.h <<_ACEOF
39734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39735 _ACEOF
39738 done
39740 else
39742 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
39743 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
39744 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
39745 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
39746 echo $ECHO_N "(cached) $ECHO_C" >&6
39747 else
39751 ac_ext=cc
39752 ac_cpp='$CXXCPP $CPPFLAGS'
39753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39757 cat >conftest.$ac_ext <<_ACEOF
39758 #line $LINENO "configure"
39759 /* confdefs.h. */
39760 _ACEOF
39761 cat confdefs.h >>conftest.$ac_ext
39762 cat >>conftest.$ac_ext <<_ACEOF
39763 /* end confdefs.h. */
39764 #include <math.h>
39765 #ifdef HAVE_IEEEFP_H
39766 #include <ieeefp.h>
39767 #endif
39770 main ()
39772 _log10l(0);
39774 return 0;
39776 _ACEOF
39777 rm -f conftest.$ac_objext
39778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39779 (eval $ac_compile) 2>&5
39780 ac_status=$?
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); } &&
39783 { ac_try='test -s conftest.$ac_objext'
39784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39785 (eval $ac_try) 2>&5
39786 ac_status=$?
39787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788 (exit $ac_status); }; }; then
39789 glibcxx_cv_func__log10l_use=yes
39790 else
39791 echo "$as_me: failed program was:" >&5
39792 sed 's/^/| /' conftest.$ac_ext >&5
39794 glibcxx_cv_func__log10l_use=no
39796 rm -f conftest.$ac_objext conftest.$ac_ext
39797 ac_ext=c
39798 ac_cpp='$CPP $CPPFLAGS'
39799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39807 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
39808 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
39810 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
39812 for ac_func in _log10l
39814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39815 echo "$as_me:$LINENO: checking for $ac_func" >&5
39816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39817 if eval "test \"\${$as_ac_var+set}\" = set"; then
39818 echo $ECHO_N "(cached) $ECHO_C" >&6
39819 else
39820 if test x$gcc_no_link = xyes; then
39821 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39823 { (exit 1); exit 1; }; }
39825 cat >conftest.$ac_ext <<_ACEOF
39826 #line $LINENO "configure"
39827 /* confdefs.h. */
39828 _ACEOF
39829 cat confdefs.h >>conftest.$ac_ext
39830 cat >>conftest.$ac_ext <<_ACEOF
39831 /* end confdefs.h. */
39832 /* System header to define __stub macros and hopefully few prototypes,
39833 which can conflict with char $ac_func (); below.
39834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39835 <limits.h> exists even on freestanding compilers. */
39836 #ifdef __STDC__
39837 # include <limits.h>
39838 #else
39839 # include <assert.h>
39840 #endif
39841 /* Override any gcc2 internal prototype to avoid an error. */
39842 #ifdef __cplusplus
39843 extern "C"
39845 #endif
39846 /* We use char because int might match the return type of a gcc2
39847 builtin and then its argument prototype would still apply. */
39848 char $ac_func ();
39849 /* The GNU C library defines this for functions which it implements
39850 to always fail with ENOSYS. Some functions are actually named
39851 something starting with __ and the normal name is an alias. */
39852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39853 choke me
39854 #else
39855 char (*f) () = $ac_func;
39856 #endif
39857 #ifdef __cplusplus
39859 #endif
39862 main ()
39864 return f != $ac_func;
39866 return 0;
39868 _ACEOF
39869 rm -f conftest.$ac_objext conftest$ac_exeext
39870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39871 (eval $ac_link) 2>&5
39872 ac_status=$?
39873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39874 (exit $ac_status); } &&
39875 { ac_try='test -s conftest$ac_exeext'
39876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39877 (eval $ac_try) 2>&5
39878 ac_status=$?
39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880 (exit $ac_status); }; }; then
39881 eval "$as_ac_var=yes"
39882 else
39883 echo "$as_me: failed program was:" >&5
39884 sed 's/^/| /' conftest.$ac_ext >&5
39886 eval "$as_ac_var=no"
39888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39892 if test `eval echo '${'$as_ac_var'}'` = yes; then
39893 cat >>confdefs.h <<_ACEOF
39894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39895 _ACEOF
39898 done
39905 echo "$as_me:$LINENO: checking for modfl declaration" >&5
39906 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
39907 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
39908 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
39909 echo $ECHO_N "(cached) $ECHO_C" >&6
39910 else
39914 ac_ext=cc
39915 ac_cpp='$CXXCPP $CPPFLAGS'
39916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39920 cat >conftest.$ac_ext <<_ACEOF
39921 #line $LINENO "configure"
39922 /* confdefs.h. */
39923 _ACEOF
39924 cat confdefs.h >>conftest.$ac_ext
39925 cat >>conftest.$ac_ext <<_ACEOF
39926 /* end confdefs.h. */
39927 #include <math.h>
39929 main ()
39931 modfl(0, 0);
39933 return 0;
39935 _ACEOF
39936 rm -f conftest.$ac_objext
39937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39938 (eval $ac_compile) 2>&5
39939 ac_status=$?
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); } &&
39942 { ac_try='test -s conftest.$ac_objext'
39943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944 (eval $ac_try) 2>&5
39945 ac_status=$?
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); }; }; then
39948 glibcxx_cv_func_modfl_use=yes
39949 else
39950 echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39953 glibcxx_cv_func_modfl_use=no
39955 rm -f conftest.$ac_objext conftest.$ac_ext
39956 ac_ext=c
39957 ac_cpp='$CPP $CPPFLAGS'
39958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39966 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
39967 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
39969 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
39971 for ac_func in modfl
39973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39974 echo "$as_me:$LINENO: checking for $ac_func" >&5
39975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39976 if eval "test \"\${$as_ac_var+set}\" = set"; then
39977 echo $ECHO_N "(cached) $ECHO_C" >&6
39978 else
39979 if test x$gcc_no_link = xyes; then
39980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39982 { (exit 1); exit 1; }; }
39984 cat >conftest.$ac_ext <<_ACEOF
39985 #line $LINENO "configure"
39986 /* confdefs.h. */
39987 _ACEOF
39988 cat confdefs.h >>conftest.$ac_ext
39989 cat >>conftest.$ac_ext <<_ACEOF
39990 /* end confdefs.h. */
39991 /* System header to define __stub macros and hopefully few prototypes,
39992 which can conflict with char $ac_func (); below.
39993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39994 <limits.h> exists even on freestanding compilers. */
39995 #ifdef __STDC__
39996 # include <limits.h>
39997 #else
39998 # include <assert.h>
39999 #endif
40000 /* Override any gcc2 internal prototype to avoid an error. */
40001 #ifdef __cplusplus
40002 extern "C"
40004 #endif
40005 /* We use char because int might match the return type of a gcc2
40006 builtin and then its argument prototype would still apply. */
40007 char $ac_func ();
40008 /* The GNU C library defines this for functions which it implements
40009 to always fail with ENOSYS. Some functions are actually named
40010 something starting with __ and the normal name is an alias. */
40011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40012 choke me
40013 #else
40014 char (*f) () = $ac_func;
40015 #endif
40016 #ifdef __cplusplus
40018 #endif
40021 main ()
40023 return f != $ac_func;
40025 return 0;
40027 _ACEOF
40028 rm -f conftest.$ac_objext conftest$ac_exeext
40029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40030 (eval $ac_link) 2>&5
40031 ac_status=$?
40032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033 (exit $ac_status); } &&
40034 { ac_try='test -s conftest$ac_exeext'
40035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036 (eval $ac_try) 2>&5
40037 ac_status=$?
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); }; }; then
40040 eval "$as_ac_var=yes"
40041 else
40042 echo "$as_me: failed program was:" >&5
40043 sed 's/^/| /' conftest.$ac_ext >&5
40045 eval "$as_ac_var=no"
40047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40051 if test `eval echo '${'$as_ac_var'}'` = yes; then
40052 cat >>confdefs.h <<_ACEOF
40053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40054 _ACEOF
40057 done
40059 else
40061 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
40062 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
40063 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
40064 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
40065 echo $ECHO_N "(cached) $ECHO_C" >&6
40066 else
40070 ac_ext=cc
40071 ac_cpp='$CXXCPP $CPPFLAGS'
40072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40076 cat >conftest.$ac_ext <<_ACEOF
40077 #line $LINENO "configure"
40078 /* confdefs.h. */
40079 _ACEOF
40080 cat confdefs.h >>conftest.$ac_ext
40081 cat >>conftest.$ac_ext <<_ACEOF
40082 /* end confdefs.h. */
40083 #include <math.h>
40085 main ()
40087 _modfl(0, 0);
40089 return 0;
40091 _ACEOF
40092 rm -f conftest.$ac_objext
40093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40094 (eval $ac_compile) 2>&5
40095 ac_status=$?
40096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097 (exit $ac_status); } &&
40098 { ac_try='test -s conftest.$ac_objext'
40099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40100 (eval $ac_try) 2>&5
40101 ac_status=$?
40102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40103 (exit $ac_status); }; }; then
40104 glibcxx_cv_func__modfl_use=yes
40105 else
40106 echo "$as_me: failed program was:" >&5
40107 sed 's/^/| /' conftest.$ac_ext >&5
40109 glibcxx_cv_func__modfl_use=no
40111 rm -f conftest.$ac_objext conftest.$ac_ext
40112 ac_ext=c
40113 ac_cpp='$CPP $CPPFLAGS'
40114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40122 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
40123 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
40125 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
40127 for ac_func in _modfl
40129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40130 echo "$as_me:$LINENO: checking for $ac_func" >&5
40131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40132 if eval "test \"\${$as_ac_var+set}\" = set"; then
40133 echo $ECHO_N "(cached) $ECHO_C" >&6
40134 else
40135 if test x$gcc_no_link = xyes; then
40136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40138 { (exit 1); exit 1; }; }
40140 cat >conftest.$ac_ext <<_ACEOF
40141 #line $LINENO "configure"
40142 /* confdefs.h. */
40143 _ACEOF
40144 cat confdefs.h >>conftest.$ac_ext
40145 cat >>conftest.$ac_ext <<_ACEOF
40146 /* end confdefs.h. */
40147 /* System header to define __stub macros and hopefully few prototypes,
40148 which can conflict with char $ac_func (); below.
40149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40150 <limits.h> exists even on freestanding compilers. */
40151 #ifdef __STDC__
40152 # include <limits.h>
40153 #else
40154 # include <assert.h>
40155 #endif
40156 /* Override any gcc2 internal prototype to avoid an error. */
40157 #ifdef __cplusplus
40158 extern "C"
40160 #endif
40161 /* We use char because int might match the return type of a gcc2
40162 builtin and then its argument prototype would still apply. */
40163 char $ac_func ();
40164 /* The GNU C library defines this for functions which it implements
40165 to always fail with ENOSYS. Some functions are actually named
40166 something starting with __ and the normal name is an alias. */
40167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40168 choke me
40169 #else
40170 char (*f) () = $ac_func;
40171 #endif
40172 #ifdef __cplusplus
40174 #endif
40177 main ()
40179 return f != $ac_func;
40181 return 0;
40183 _ACEOF
40184 rm -f conftest.$ac_objext conftest$ac_exeext
40185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40186 (eval $ac_link) 2>&5
40187 ac_status=$?
40188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40189 (exit $ac_status); } &&
40190 { ac_try='test -s conftest$ac_exeext'
40191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40192 (eval $ac_try) 2>&5
40193 ac_status=$?
40194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40195 (exit $ac_status); }; }; then
40196 eval "$as_ac_var=yes"
40197 else
40198 echo "$as_me: failed program was:" >&5
40199 sed 's/^/| /' conftest.$ac_ext >&5
40201 eval "$as_ac_var=no"
40203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40207 if test `eval echo '${'$as_ac_var'}'` = yes; then
40208 cat >>confdefs.h <<_ACEOF
40209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40210 _ACEOF
40213 done
40220 echo "$as_me:$LINENO: checking for powl declaration" >&5
40221 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
40222 if test x${glibcxx_cv_func_powl_use+set} != xset; then
40223 if test "${glibcxx_cv_func_powl_use+set}" = set; then
40224 echo $ECHO_N "(cached) $ECHO_C" >&6
40225 else
40229 ac_ext=cc
40230 ac_cpp='$CXXCPP $CPPFLAGS'
40231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40235 cat >conftest.$ac_ext <<_ACEOF
40236 #line $LINENO "configure"
40237 /* confdefs.h. */
40238 _ACEOF
40239 cat confdefs.h >>conftest.$ac_ext
40240 cat >>conftest.$ac_ext <<_ACEOF
40241 /* end confdefs.h. */
40242 #include <math.h>
40244 main ()
40246 powl(0, 0);
40248 return 0;
40250 _ACEOF
40251 rm -f conftest.$ac_objext
40252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40253 (eval $ac_compile) 2>&5
40254 ac_status=$?
40255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256 (exit $ac_status); } &&
40257 { ac_try='test -s conftest.$ac_objext'
40258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40259 (eval $ac_try) 2>&5
40260 ac_status=$?
40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262 (exit $ac_status); }; }; then
40263 glibcxx_cv_func_powl_use=yes
40264 else
40265 echo "$as_me: failed program was:" >&5
40266 sed 's/^/| /' conftest.$ac_ext >&5
40268 glibcxx_cv_func_powl_use=no
40270 rm -f conftest.$ac_objext conftest.$ac_ext
40271 ac_ext=c
40272 ac_cpp='$CPP $CPPFLAGS'
40273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40281 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
40282 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
40284 if test x$glibcxx_cv_func_powl_use = x"yes"; then
40286 for ac_func in powl
40288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40289 echo "$as_me:$LINENO: checking for $ac_func" >&5
40290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40291 if eval "test \"\${$as_ac_var+set}\" = set"; then
40292 echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294 if test x$gcc_no_link = xyes; then
40295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40297 { (exit 1); exit 1; }; }
40299 cat >conftest.$ac_ext <<_ACEOF
40300 #line $LINENO "configure"
40301 /* confdefs.h. */
40302 _ACEOF
40303 cat confdefs.h >>conftest.$ac_ext
40304 cat >>conftest.$ac_ext <<_ACEOF
40305 /* end confdefs.h. */
40306 /* System header to define __stub macros and hopefully few prototypes,
40307 which can conflict with char $ac_func (); below.
40308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40309 <limits.h> exists even on freestanding compilers. */
40310 #ifdef __STDC__
40311 # include <limits.h>
40312 #else
40313 # include <assert.h>
40314 #endif
40315 /* Override any gcc2 internal prototype to avoid an error. */
40316 #ifdef __cplusplus
40317 extern "C"
40319 #endif
40320 /* We use char because int might match the return type of a gcc2
40321 builtin and then its argument prototype would still apply. */
40322 char $ac_func ();
40323 /* The GNU C library defines this for functions which it implements
40324 to always fail with ENOSYS. Some functions are actually named
40325 something starting with __ and the normal name is an alias. */
40326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40327 choke me
40328 #else
40329 char (*f) () = $ac_func;
40330 #endif
40331 #ifdef __cplusplus
40333 #endif
40336 main ()
40338 return f != $ac_func;
40340 return 0;
40342 _ACEOF
40343 rm -f conftest.$ac_objext conftest$ac_exeext
40344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40345 (eval $ac_link) 2>&5
40346 ac_status=$?
40347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40348 (exit $ac_status); } &&
40349 { ac_try='test -s conftest$ac_exeext'
40350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40351 (eval $ac_try) 2>&5
40352 ac_status=$?
40353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40354 (exit $ac_status); }; }; then
40355 eval "$as_ac_var=yes"
40356 else
40357 echo "$as_me: failed program was:" >&5
40358 sed 's/^/| /' conftest.$ac_ext >&5
40360 eval "$as_ac_var=no"
40362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40366 if test `eval echo '${'$as_ac_var'}'` = yes; then
40367 cat >>confdefs.h <<_ACEOF
40368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40369 _ACEOF
40372 done
40374 else
40376 echo "$as_me:$LINENO: checking for _powl declaration" >&5
40377 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
40378 if test x${glibcxx_cv_func__powl_use+set} != xset; then
40379 if test "${glibcxx_cv_func__powl_use+set}" = set; then
40380 echo $ECHO_N "(cached) $ECHO_C" >&6
40381 else
40385 ac_ext=cc
40386 ac_cpp='$CXXCPP $CPPFLAGS'
40387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40391 cat >conftest.$ac_ext <<_ACEOF
40392 #line $LINENO "configure"
40393 /* confdefs.h. */
40394 _ACEOF
40395 cat confdefs.h >>conftest.$ac_ext
40396 cat >>conftest.$ac_ext <<_ACEOF
40397 /* end confdefs.h. */
40398 #include <math.h>
40400 main ()
40402 _powl(0, 0);
40404 return 0;
40406 _ACEOF
40407 rm -f conftest.$ac_objext
40408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40409 (eval $ac_compile) 2>&5
40410 ac_status=$?
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); } &&
40413 { ac_try='test -s conftest.$ac_objext'
40414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415 (eval $ac_try) 2>&5
40416 ac_status=$?
40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); }; }; then
40419 glibcxx_cv_func__powl_use=yes
40420 else
40421 echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40424 glibcxx_cv_func__powl_use=no
40426 rm -f conftest.$ac_objext conftest.$ac_ext
40427 ac_ext=c
40428 ac_cpp='$CPP $CPPFLAGS'
40429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40437 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
40438 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
40440 if test x$glibcxx_cv_func__powl_use = x"yes"; then
40442 for ac_func in _powl
40444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40445 echo "$as_me:$LINENO: checking for $ac_func" >&5
40446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40447 if eval "test \"\${$as_ac_var+set}\" = set"; then
40448 echo $ECHO_N "(cached) $ECHO_C" >&6
40449 else
40450 if test x$gcc_no_link = xyes; then
40451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40453 { (exit 1); exit 1; }; }
40455 cat >conftest.$ac_ext <<_ACEOF
40456 #line $LINENO "configure"
40457 /* confdefs.h. */
40458 _ACEOF
40459 cat confdefs.h >>conftest.$ac_ext
40460 cat >>conftest.$ac_ext <<_ACEOF
40461 /* end confdefs.h. */
40462 /* System header to define __stub macros and hopefully few prototypes,
40463 which can conflict with char $ac_func (); below.
40464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40465 <limits.h> exists even on freestanding compilers. */
40466 #ifdef __STDC__
40467 # include <limits.h>
40468 #else
40469 # include <assert.h>
40470 #endif
40471 /* Override any gcc2 internal prototype to avoid an error. */
40472 #ifdef __cplusplus
40473 extern "C"
40475 #endif
40476 /* We use char because int might match the return type of a gcc2
40477 builtin and then its argument prototype would still apply. */
40478 char $ac_func ();
40479 /* The GNU C library defines this for functions which it implements
40480 to always fail with ENOSYS. Some functions are actually named
40481 something starting with __ and the normal name is an alias. */
40482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40483 choke me
40484 #else
40485 char (*f) () = $ac_func;
40486 #endif
40487 #ifdef __cplusplus
40489 #endif
40492 main ()
40494 return f != $ac_func;
40496 return 0;
40498 _ACEOF
40499 rm -f conftest.$ac_objext conftest$ac_exeext
40500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40501 (eval $ac_link) 2>&5
40502 ac_status=$?
40503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504 (exit $ac_status); } &&
40505 { ac_try='test -s conftest$ac_exeext'
40506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40507 (eval $ac_try) 2>&5
40508 ac_status=$?
40509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510 (exit $ac_status); }; }; then
40511 eval "$as_ac_var=yes"
40512 else
40513 echo "$as_me: failed program was:" >&5
40514 sed 's/^/| /' conftest.$ac_ext >&5
40516 eval "$as_ac_var=no"
40518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40522 if test `eval echo '${'$as_ac_var'}'` = yes; then
40523 cat >>confdefs.h <<_ACEOF
40524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40525 _ACEOF
40528 done
40535 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
40536 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
40537 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
40538 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
40539 echo $ECHO_N "(cached) $ECHO_C" >&6
40540 else
40544 ac_ext=cc
40545 ac_cpp='$CXXCPP $CPPFLAGS'
40546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40550 cat >conftest.$ac_ext <<_ACEOF
40551 #line $LINENO "configure"
40552 /* confdefs.h. */
40553 _ACEOF
40554 cat confdefs.h >>conftest.$ac_ext
40555 cat >>conftest.$ac_ext <<_ACEOF
40556 /* end confdefs.h. */
40557 #include <math.h>
40558 #ifdef HAVE_IEEEFP_H
40559 #include <ieeefp.h>
40560 #endif
40563 main ()
40565 sqrtl(0);
40567 return 0;
40569 _ACEOF
40570 rm -f conftest.$ac_objext
40571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40572 (eval $ac_compile) 2>&5
40573 ac_status=$?
40574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575 (exit $ac_status); } &&
40576 { ac_try='test -s conftest.$ac_objext'
40577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40578 (eval $ac_try) 2>&5
40579 ac_status=$?
40580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581 (exit $ac_status); }; }; then
40582 glibcxx_cv_func_sqrtl_use=yes
40583 else
40584 echo "$as_me: failed program was:" >&5
40585 sed 's/^/| /' conftest.$ac_ext >&5
40587 glibcxx_cv_func_sqrtl_use=no
40589 rm -f conftest.$ac_objext conftest.$ac_ext
40590 ac_ext=c
40591 ac_cpp='$CPP $CPPFLAGS'
40592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40600 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
40601 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
40603 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
40605 for ac_func in sqrtl
40607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40608 echo "$as_me:$LINENO: checking for $ac_func" >&5
40609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40610 if eval "test \"\${$as_ac_var+set}\" = set"; then
40611 echo $ECHO_N "(cached) $ECHO_C" >&6
40612 else
40613 if test x$gcc_no_link = xyes; then
40614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40616 { (exit 1); exit 1; }; }
40618 cat >conftest.$ac_ext <<_ACEOF
40619 #line $LINENO "configure"
40620 /* confdefs.h. */
40621 _ACEOF
40622 cat confdefs.h >>conftest.$ac_ext
40623 cat >>conftest.$ac_ext <<_ACEOF
40624 /* end confdefs.h. */
40625 /* System header to define __stub macros and hopefully few prototypes,
40626 which can conflict with char $ac_func (); below.
40627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40628 <limits.h> exists even on freestanding compilers. */
40629 #ifdef __STDC__
40630 # include <limits.h>
40631 #else
40632 # include <assert.h>
40633 #endif
40634 /* Override any gcc2 internal prototype to avoid an error. */
40635 #ifdef __cplusplus
40636 extern "C"
40638 #endif
40639 /* We use char because int might match the return type of a gcc2
40640 builtin and then its argument prototype would still apply. */
40641 char $ac_func ();
40642 /* The GNU C library defines this for functions which it implements
40643 to always fail with ENOSYS. Some functions are actually named
40644 something starting with __ and the normal name is an alias. */
40645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40646 choke me
40647 #else
40648 char (*f) () = $ac_func;
40649 #endif
40650 #ifdef __cplusplus
40652 #endif
40655 main ()
40657 return f != $ac_func;
40659 return 0;
40661 _ACEOF
40662 rm -f conftest.$ac_objext conftest$ac_exeext
40663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40664 (eval $ac_link) 2>&5
40665 ac_status=$?
40666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40667 (exit $ac_status); } &&
40668 { ac_try='test -s conftest$ac_exeext'
40669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40670 (eval $ac_try) 2>&5
40671 ac_status=$?
40672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673 (exit $ac_status); }; }; then
40674 eval "$as_ac_var=yes"
40675 else
40676 echo "$as_me: failed program was:" >&5
40677 sed 's/^/| /' conftest.$ac_ext >&5
40679 eval "$as_ac_var=no"
40681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40685 if test `eval echo '${'$as_ac_var'}'` = yes; then
40686 cat >>confdefs.h <<_ACEOF
40687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40688 _ACEOF
40691 done
40693 else
40695 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
40696 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
40697 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
40698 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
40699 echo $ECHO_N "(cached) $ECHO_C" >&6
40700 else
40704 ac_ext=cc
40705 ac_cpp='$CXXCPP $CPPFLAGS'
40706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40710 cat >conftest.$ac_ext <<_ACEOF
40711 #line $LINENO "configure"
40712 /* confdefs.h. */
40713 _ACEOF
40714 cat confdefs.h >>conftest.$ac_ext
40715 cat >>conftest.$ac_ext <<_ACEOF
40716 /* end confdefs.h. */
40717 #include <math.h>
40718 #ifdef HAVE_IEEEFP_H
40719 #include <ieeefp.h>
40720 #endif
40723 main ()
40725 _sqrtl(0);
40727 return 0;
40729 _ACEOF
40730 rm -f conftest.$ac_objext
40731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40732 (eval $ac_compile) 2>&5
40733 ac_status=$?
40734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40735 (exit $ac_status); } &&
40736 { ac_try='test -s conftest.$ac_objext'
40737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40738 (eval $ac_try) 2>&5
40739 ac_status=$?
40740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741 (exit $ac_status); }; }; then
40742 glibcxx_cv_func__sqrtl_use=yes
40743 else
40744 echo "$as_me: failed program was:" >&5
40745 sed 's/^/| /' conftest.$ac_ext >&5
40747 glibcxx_cv_func__sqrtl_use=no
40749 rm -f conftest.$ac_objext conftest.$ac_ext
40750 ac_ext=c
40751 ac_cpp='$CPP $CPPFLAGS'
40752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40760 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
40761 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
40763 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
40765 for ac_func in _sqrtl
40767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40768 echo "$as_me:$LINENO: checking for $ac_func" >&5
40769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40770 if eval "test \"\${$as_ac_var+set}\" = set"; then
40771 echo $ECHO_N "(cached) $ECHO_C" >&6
40772 else
40773 if test x$gcc_no_link = xyes; then
40774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40775 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40776 { (exit 1); exit 1; }; }
40778 cat >conftest.$ac_ext <<_ACEOF
40779 #line $LINENO "configure"
40780 /* confdefs.h. */
40781 _ACEOF
40782 cat confdefs.h >>conftest.$ac_ext
40783 cat >>conftest.$ac_ext <<_ACEOF
40784 /* end confdefs.h. */
40785 /* System header to define __stub macros and hopefully few prototypes,
40786 which can conflict with char $ac_func (); below.
40787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40788 <limits.h> exists even on freestanding compilers. */
40789 #ifdef __STDC__
40790 # include <limits.h>
40791 #else
40792 # include <assert.h>
40793 #endif
40794 /* Override any gcc2 internal prototype to avoid an error. */
40795 #ifdef __cplusplus
40796 extern "C"
40798 #endif
40799 /* We use char because int might match the return type of a gcc2
40800 builtin and then its argument prototype would still apply. */
40801 char $ac_func ();
40802 /* The GNU C library defines this for functions which it implements
40803 to always fail with ENOSYS. Some functions are actually named
40804 something starting with __ and the normal name is an alias. */
40805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40806 choke me
40807 #else
40808 char (*f) () = $ac_func;
40809 #endif
40810 #ifdef __cplusplus
40812 #endif
40815 main ()
40817 return f != $ac_func;
40819 return 0;
40821 _ACEOF
40822 rm -f conftest.$ac_objext conftest$ac_exeext
40823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40824 (eval $ac_link) 2>&5
40825 ac_status=$?
40826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827 (exit $ac_status); } &&
40828 { ac_try='test -s conftest$ac_exeext'
40829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40830 (eval $ac_try) 2>&5
40831 ac_status=$?
40832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40833 (exit $ac_status); }; }; then
40834 eval "$as_ac_var=yes"
40835 else
40836 echo "$as_me: failed program was:" >&5
40837 sed 's/^/| /' conftest.$ac_ext >&5
40839 eval "$as_ac_var=no"
40841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40845 if test `eval echo '${'$as_ac_var'}'` = yes; then
40846 cat >>confdefs.h <<_ACEOF
40847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40848 _ACEOF
40851 done
40858 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
40859 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
40860 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
40861 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
40862 echo $ECHO_N "(cached) $ECHO_C" >&6
40863 else
40867 ac_ext=cc
40868 ac_cpp='$CXXCPP $CPPFLAGS'
40869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40873 cat >conftest.$ac_ext <<_ACEOF
40874 #line $LINENO "configure"
40875 /* confdefs.h. */
40876 _ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h. */
40880 #include <math.h>
40882 main ()
40884 sincosl(0, 0, 0);
40886 return 0;
40888 _ACEOF
40889 rm -f conftest.$ac_objext
40890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40891 (eval $ac_compile) 2>&5
40892 ac_status=$?
40893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894 (exit $ac_status); } &&
40895 { ac_try='test -s conftest.$ac_objext'
40896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897 (eval $ac_try) 2>&5
40898 ac_status=$?
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); }; }; then
40901 glibcxx_cv_func_sincosl_use=yes
40902 else
40903 echo "$as_me: failed program was:" >&5
40904 sed 's/^/| /' conftest.$ac_ext >&5
40906 glibcxx_cv_func_sincosl_use=no
40908 rm -f conftest.$ac_objext conftest.$ac_ext
40909 ac_ext=c
40910 ac_cpp='$CPP $CPPFLAGS'
40911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40919 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
40920 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
40922 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
40924 for ac_func in sincosl
40926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40927 echo "$as_me:$LINENO: checking for $ac_func" >&5
40928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40929 if eval "test \"\${$as_ac_var+set}\" = set"; then
40930 echo $ECHO_N "(cached) $ECHO_C" >&6
40931 else
40932 if test x$gcc_no_link = xyes; then
40933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40935 { (exit 1); exit 1; }; }
40937 cat >conftest.$ac_ext <<_ACEOF
40938 #line $LINENO "configure"
40939 /* confdefs.h. */
40940 _ACEOF
40941 cat confdefs.h >>conftest.$ac_ext
40942 cat >>conftest.$ac_ext <<_ACEOF
40943 /* end confdefs.h. */
40944 /* System header to define __stub macros and hopefully few prototypes,
40945 which can conflict with char $ac_func (); below.
40946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40947 <limits.h> exists even on freestanding compilers. */
40948 #ifdef __STDC__
40949 # include <limits.h>
40950 #else
40951 # include <assert.h>
40952 #endif
40953 /* Override any gcc2 internal prototype to avoid an error. */
40954 #ifdef __cplusplus
40955 extern "C"
40957 #endif
40958 /* We use char because int might match the return type of a gcc2
40959 builtin and then its argument prototype would still apply. */
40960 char $ac_func ();
40961 /* The GNU C library defines this for functions which it implements
40962 to always fail with ENOSYS. Some functions are actually named
40963 something starting with __ and the normal name is an alias. */
40964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40965 choke me
40966 #else
40967 char (*f) () = $ac_func;
40968 #endif
40969 #ifdef __cplusplus
40971 #endif
40974 main ()
40976 return f != $ac_func;
40978 return 0;
40980 _ACEOF
40981 rm -f conftest.$ac_objext conftest$ac_exeext
40982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40983 (eval $ac_link) 2>&5
40984 ac_status=$?
40985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40986 (exit $ac_status); } &&
40987 { ac_try='test -s conftest$ac_exeext'
40988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40989 (eval $ac_try) 2>&5
40990 ac_status=$?
40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992 (exit $ac_status); }; }; then
40993 eval "$as_ac_var=yes"
40994 else
40995 echo "$as_me: failed program was:" >&5
40996 sed 's/^/| /' conftest.$ac_ext >&5
40998 eval "$as_ac_var=no"
41000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41004 if test `eval echo '${'$as_ac_var'}'` = yes; then
41005 cat >>confdefs.h <<_ACEOF
41006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41007 _ACEOF
41010 done
41012 else
41014 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
41015 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
41016 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
41017 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
41018 echo $ECHO_N "(cached) $ECHO_C" >&6
41019 else
41023 ac_ext=cc
41024 ac_cpp='$CXXCPP $CPPFLAGS'
41025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41029 cat >conftest.$ac_ext <<_ACEOF
41030 #line $LINENO "configure"
41031 /* confdefs.h. */
41032 _ACEOF
41033 cat confdefs.h >>conftest.$ac_ext
41034 cat >>conftest.$ac_ext <<_ACEOF
41035 /* end confdefs.h. */
41036 #include <math.h>
41038 main ()
41040 _sincosl(0, 0, 0);
41042 return 0;
41044 _ACEOF
41045 rm -f conftest.$ac_objext
41046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41047 (eval $ac_compile) 2>&5
41048 ac_status=$?
41049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41050 (exit $ac_status); } &&
41051 { ac_try='test -s conftest.$ac_objext'
41052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41053 (eval $ac_try) 2>&5
41054 ac_status=$?
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); }; }; then
41057 glibcxx_cv_func__sincosl_use=yes
41058 else
41059 echo "$as_me: failed program was:" >&5
41060 sed 's/^/| /' conftest.$ac_ext >&5
41062 glibcxx_cv_func__sincosl_use=no
41064 rm -f conftest.$ac_objext conftest.$ac_ext
41065 ac_ext=c
41066 ac_cpp='$CPP $CPPFLAGS'
41067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41075 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
41076 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
41078 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
41080 for ac_func in _sincosl
41082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41083 echo "$as_me:$LINENO: checking for $ac_func" >&5
41084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41085 if eval "test \"\${$as_ac_var+set}\" = set"; then
41086 echo $ECHO_N "(cached) $ECHO_C" >&6
41087 else
41088 if test x$gcc_no_link = xyes; then
41089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41091 { (exit 1); exit 1; }; }
41093 cat >conftest.$ac_ext <<_ACEOF
41094 #line $LINENO "configure"
41095 /* confdefs.h. */
41096 _ACEOF
41097 cat confdefs.h >>conftest.$ac_ext
41098 cat >>conftest.$ac_ext <<_ACEOF
41099 /* end confdefs.h. */
41100 /* System header to define __stub macros and hopefully few prototypes,
41101 which can conflict with char $ac_func (); below.
41102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41103 <limits.h> exists even on freestanding compilers. */
41104 #ifdef __STDC__
41105 # include <limits.h>
41106 #else
41107 # include <assert.h>
41108 #endif
41109 /* Override any gcc2 internal prototype to avoid an error. */
41110 #ifdef __cplusplus
41111 extern "C"
41113 #endif
41114 /* We use char because int might match the return type of a gcc2
41115 builtin and then its argument prototype would still apply. */
41116 char $ac_func ();
41117 /* The GNU C library defines this for functions which it implements
41118 to always fail with ENOSYS. Some functions are actually named
41119 something starting with __ and the normal name is an alias. */
41120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41121 choke me
41122 #else
41123 char (*f) () = $ac_func;
41124 #endif
41125 #ifdef __cplusplus
41127 #endif
41130 main ()
41132 return f != $ac_func;
41134 return 0;
41136 _ACEOF
41137 rm -f conftest.$ac_objext conftest$ac_exeext
41138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41139 (eval $ac_link) 2>&5
41140 ac_status=$?
41141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142 (exit $ac_status); } &&
41143 { ac_try='test -s conftest$ac_exeext'
41144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41145 (eval $ac_try) 2>&5
41146 ac_status=$?
41147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148 (exit $ac_status); }; }; then
41149 eval "$as_ac_var=yes"
41150 else
41151 echo "$as_me: failed program was:" >&5
41152 sed 's/^/| /' conftest.$ac_ext >&5
41154 eval "$as_ac_var=no"
41156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41160 if test `eval echo '${'$as_ac_var'}'` = yes; then
41161 cat >>confdefs.h <<_ACEOF
41162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41163 _ACEOF
41166 done
41173 echo "$as_me:$LINENO: checking for finitel declaration" >&5
41174 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
41175 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41176 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
41177 echo $ECHO_N "(cached) $ECHO_C" >&6
41178 else
41182 ac_ext=cc
41183 ac_cpp='$CXXCPP $CPPFLAGS'
41184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41188 cat >conftest.$ac_ext <<_ACEOF
41189 #line $LINENO "configure"
41190 /* confdefs.h. */
41191 _ACEOF
41192 cat confdefs.h >>conftest.$ac_ext
41193 cat >>conftest.$ac_ext <<_ACEOF
41194 /* end confdefs.h. */
41195 #include <math.h>
41196 #ifdef HAVE_IEEEFP_H
41197 #include <ieeefp.h>
41198 #endif
41201 main ()
41203 finitel(0);
41205 return 0;
41207 _ACEOF
41208 rm -f conftest.$ac_objext
41209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41210 (eval $ac_compile) 2>&5
41211 ac_status=$?
41212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 (exit $ac_status); } &&
41214 { ac_try='test -s conftest.$ac_objext'
41215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41216 (eval $ac_try) 2>&5
41217 ac_status=$?
41218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 (exit $ac_status); }; }; then
41220 glibcxx_cv_func_finitel_use=yes
41221 else
41222 echo "$as_me: failed program was:" >&5
41223 sed 's/^/| /' conftest.$ac_ext >&5
41225 glibcxx_cv_func_finitel_use=no
41227 rm -f conftest.$ac_objext conftest.$ac_ext
41228 ac_ext=c
41229 ac_cpp='$CPP $CPPFLAGS'
41230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41238 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
41239 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
41241 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41243 for ac_func in finitel
41245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41246 echo "$as_me:$LINENO: checking for $ac_func" >&5
41247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41248 if eval "test \"\${$as_ac_var+set}\" = set"; then
41249 echo $ECHO_N "(cached) $ECHO_C" >&6
41250 else
41251 if test x$gcc_no_link = xyes; then
41252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41254 { (exit 1); exit 1; }; }
41256 cat >conftest.$ac_ext <<_ACEOF
41257 #line $LINENO "configure"
41258 /* confdefs.h. */
41259 _ACEOF
41260 cat confdefs.h >>conftest.$ac_ext
41261 cat >>conftest.$ac_ext <<_ACEOF
41262 /* end confdefs.h. */
41263 /* System header to define __stub macros and hopefully few prototypes,
41264 which can conflict with char $ac_func (); below.
41265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41266 <limits.h> exists even on freestanding compilers. */
41267 #ifdef __STDC__
41268 # include <limits.h>
41269 #else
41270 # include <assert.h>
41271 #endif
41272 /* Override any gcc2 internal prototype to avoid an error. */
41273 #ifdef __cplusplus
41274 extern "C"
41276 #endif
41277 /* We use char because int might match the return type of a gcc2
41278 builtin and then its argument prototype would still apply. */
41279 char $ac_func ();
41280 /* The GNU C library defines this for functions which it implements
41281 to always fail with ENOSYS. Some functions are actually named
41282 something starting with __ and the normal name is an alias. */
41283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41284 choke me
41285 #else
41286 char (*f) () = $ac_func;
41287 #endif
41288 #ifdef __cplusplus
41290 #endif
41293 main ()
41295 return f != $ac_func;
41297 return 0;
41299 _ACEOF
41300 rm -f conftest.$ac_objext conftest$ac_exeext
41301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41302 (eval $ac_link) 2>&5
41303 ac_status=$?
41304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); } &&
41306 { ac_try='test -s conftest$ac_exeext'
41307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41308 (eval $ac_try) 2>&5
41309 ac_status=$?
41310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311 (exit $ac_status); }; }; then
41312 eval "$as_ac_var=yes"
41313 else
41314 echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41317 eval "$as_ac_var=no"
41319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41323 if test `eval echo '${'$as_ac_var'}'` = yes; then
41324 cat >>confdefs.h <<_ACEOF
41325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41326 _ACEOF
41329 done
41331 else
41333 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
41334 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
41335 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
41336 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
41337 echo $ECHO_N "(cached) $ECHO_C" >&6
41338 else
41342 ac_ext=cc
41343 ac_cpp='$CXXCPP $CPPFLAGS'
41344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41348 cat >conftest.$ac_ext <<_ACEOF
41349 #line $LINENO "configure"
41350 /* confdefs.h. */
41351 _ACEOF
41352 cat confdefs.h >>conftest.$ac_ext
41353 cat >>conftest.$ac_ext <<_ACEOF
41354 /* end confdefs.h. */
41355 #include <math.h>
41356 #ifdef HAVE_IEEEFP_H
41357 #include <ieeefp.h>
41358 #endif
41361 main ()
41363 _finitel(0);
41365 return 0;
41367 _ACEOF
41368 rm -f conftest.$ac_objext
41369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41370 (eval $ac_compile) 2>&5
41371 ac_status=$?
41372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); } &&
41374 { ac_try='test -s conftest.$ac_objext'
41375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41376 (eval $ac_try) 2>&5
41377 ac_status=$?
41378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379 (exit $ac_status); }; }; then
41380 glibcxx_cv_func__finitel_use=yes
41381 else
41382 echo "$as_me: failed program was:" >&5
41383 sed 's/^/| /' conftest.$ac_ext >&5
41385 glibcxx_cv_func__finitel_use=no
41387 rm -f conftest.$ac_objext conftest.$ac_ext
41388 ac_ext=c
41389 ac_cpp='$CPP $CPPFLAGS'
41390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41398 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
41399 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
41401 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
41403 for ac_func in _finitel
41405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41406 echo "$as_me:$LINENO: checking for $ac_func" >&5
41407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41408 if eval "test \"\${$as_ac_var+set}\" = set"; then
41409 echo $ECHO_N "(cached) $ECHO_C" >&6
41410 else
41411 if test x$gcc_no_link = xyes; then
41412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41414 { (exit 1); exit 1; }; }
41416 cat >conftest.$ac_ext <<_ACEOF
41417 #line $LINENO "configure"
41418 /* confdefs.h. */
41419 _ACEOF
41420 cat confdefs.h >>conftest.$ac_ext
41421 cat >>conftest.$ac_ext <<_ACEOF
41422 /* end confdefs.h. */
41423 /* System header to define __stub macros and hopefully few prototypes,
41424 which can conflict with char $ac_func (); below.
41425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41426 <limits.h> exists even on freestanding compilers. */
41427 #ifdef __STDC__
41428 # include <limits.h>
41429 #else
41430 # include <assert.h>
41431 #endif
41432 /* Override any gcc2 internal prototype to avoid an error. */
41433 #ifdef __cplusplus
41434 extern "C"
41436 #endif
41437 /* We use char because int might match the return type of a gcc2
41438 builtin and then its argument prototype would still apply. */
41439 char $ac_func ();
41440 /* The GNU C library defines this for functions which it implements
41441 to always fail with ENOSYS. Some functions are actually named
41442 something starting with __ and the normal name is an alias. */
41443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41444 choke me
41445 #else
41446 char (*f) () = $ac_func;
41447 #endif
41448 #ifdef __cplusplus
41450 #endif
41453 main ()
41455 return f != $ac_func;
41457 return 0;
41459 _ACEOF
41460 rm -f conftest.$ac_objext conftest$ac_exeext
41461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41462 (eval $ac_link) 2>&5
41463 ac_status=$?
41464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41465 (exit $ac_status); } &&
41466 { ac_try='test -s conftest$ac_exeext'
41467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41468 (eval $ac_try) 2>&5
41469 ac_status=$?
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); }; }; then
41472 eval "$as_ac_var=yes"
41473 else
41474 echo "$as_me: failed program was:" >&5
41475 sed 's/^/| /' conftest.$ac_ext >&5
41477 eval "$as_ac_var=no"
41479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41483 if test `eval echo '${'$as_ac_var'}'` = yes; then
41484 cat >>confdefs.h <<_ACEOF
41485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41486 _ACEOF
41489 done
41497 echo "$as_me:$LINENO: checking for _float trig functions" >&5
41498 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
41499 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
41500 echo $ECHO_N "(cached) $ECHO_C" >&6
41501 else
41505 ac_ext=cc
41506 ac_cpp='$CXXCPP $CPPFLAGS'
41507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41511 cat >conftest.$ac_ext <<_ACEOF
41512 #line $LINENO "configure"
41513 /* confdefs.h. */
41514 _ACEOF
41515 cat confdefs.h >>conftest.$ac_ext
41516 cat >>conftest.$ac_ext <<_ACEOF
41517 /* end confdefs.h. */
41518 #include <math.h>
41520 main ()
41522 `for x in _acosf _asinf _atanf \
41523 _cosf _sinf _tanf \
41524 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
41526 return 0;
41528 _ACEOF
41529 rm -f conftest.$ac_objext
41530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41531 (eval $ac_compile) 2>&5
41532 ac_status=$?
41533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534 (exit $ac_status); } &&
41535 { ac_try='test -s conftest.$ac_objext'
41536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41537 (eval $ac_try) 2>&5
41538 ac_status=$?
41539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41540 (exit $ac_status); }; }; then
41541 glibcxx_cv_func__float_trig_use=yes
41542 else
41543 echo "$as_me: failed program was:" >&5
41544 sed 's/^/| /' conftest.$ac_ext >&5
41546 glibcxx_cv_func__float_trig_use=no
41548 rm -f conftest.$ac_objext conftest.$ac_ext
41549 ac_ext=c
41550 ac_cpp='$CPP $CPPFLAGS'
41551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41557 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
41558 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
41559 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
41569 for ac_func in _acosf _asinf _atanf \
41570 _cosf _sinf _tanf \
41571 _coshf _sinhf _tanhf
41573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41574 echo "$as_me:$LINENO: checking for $ac_func" >&5
41575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41576 if eval "test \"\${$as_ac_var+set}\" = set"; then
41577 echo $ECHO_N "(cached) $ECHO_C" >&6
41578 else
41579 if test x$gcc_no_link = xyes; then
41580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41582 { (exit 1); exit 1; }; }
41584 cat >conftest.$ac_ext <<_ACEOF
41585 #line $LINENO "configure"
41586 /* confdefs.h. */
41587 _ACEOF
41588 cat confdefs.h >>conftest.$ac_ext
41589 cat >>conftest.$ac_ext <<_ACEOF
41590 /* end confdefs.h. */
41591 /* System header to define __stub macros and hopefully few prototypes,
41592 which can conflict with char $ac_func (); below.
41593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41594 <limits.h> exists even on freestanding compilers. */
41595 #ifdef __STDC__
41596 # include <limits.h>
41597 #else
41598 # include <assert.h>
41599 #endif
41600 /* Override any gcc2 internal prototype to avoid an error. */
41601 #ifdef __cplusplus
41602 extern "C"
41604 #endif
41605 /* We use char because int might match the return type of a gcc2
41606 builtin and then its argument prototype would still apply. */
41607 char $ac_func ();
41608 /* The GNU C library defines this for functions which it implements
41609 to always fail with ENOSYS. Some functions are actually named
41610 something starting with __ and the normal name is an alias. */
41611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41612 choke me
41613 #else
41614 char (*f) () = $ac_func;
41615 #endif
41616 #ifdef __cplusplus
41618 #endif
41621 main ()
41623 return f != $ac_func;
41625 return 0;
41627 _ACEOF
41628 rm -f conftest.$ac_objext conftest$ac_exeext
41629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41630 (eval $ac_link) 2>&5
41631 ac_status=$?
41632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41633 (exit $ac_status); } &&
41634 { ac_try='test -s conftest$ac_exeext'
41635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41636 (eval $ac_try) 2>&5
41637 ac_status=$?
41638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639 (exit $ac_status); }; }; then
41640 eval "$as_ac_var=yes"
41641 else
41642 echo "$as_me: failed program was:" >&5
41643 sed 's/^/| /' conftest.$ac_ext >&5
41645 eval "$as_ac_var=no"
41647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41651 if test `eval echo '${'$as_ac_var'}'` = yes; then
41652 cat >>confdefs.h <<_ACEOF
41653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41654 _ACEOF
41657 done
41662 echo "$as_me:$LINENO: checking for _float round functions" >&5
41663 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
41664 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
41665 echo $ECHO_N "(cached) $ECHO_C" >&6
41666 else
41670 ac_ext=cc
41671 ac_cpp='$CXXCPP $CPPFLAGS'
41672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41676 cat >conftest.$ac_ext <<_ACEOF
41677 #line $LINENO "configure"
41678 /* confdefs.h. */
41679 _ACEOF
41680 cat confdefs.h >>conftest.$ac_ext
41681 cat >>conftest.$ac_ext <<_ACEOF
41682 /* end confdefs.h. */
41683 #include <math.h>
41685 main ()
41687 `for x in _ceilf _floorf; do echo "$x (0);"; done`
41689 return 0;
41691 _ACEOF
41692 rm -f conftest.$ac_objext
41693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41694 (eval $ac_compile) 2>&5
41695 ac_status=$?
41696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41697 (exit $ac_status); } &&
41698 { ac_try='test -s conftest.$ac_objext'
41699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41700 (eval $ac_try) 2>&5
41701 ac_status=$?
41702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41703 (exit $ac_status); }; }; then
41704 glibcxx_cv_func__float_round_use=yes
41705 else
41706 echo "$as_me: failed program was:" >&5
41707 sed 's/^/| /' conftest.$ac_ext >&5
41709 glibcxx_cv_func__float_round_use=no
41711 rm -f conftest.$ac_objext conftest.$ac_ext
41712 ac_ext=c
41713 ac_cpp='$CPP $CPPFLAGS'
41714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41720 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
41721 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
41722 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
41725 for ac_func in _ceilf _floorf
41727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41728 echo "$as_me:$LINENO: checking for $ac_func" >&5
41729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41730 if eval "test \"\${$as_ac_var+set}\" = set"; then
41731 echo $ECHO_N "(cached) $ECHO_C" >&6
41732 else
41733 if test x$gcc_no_link = xyes; then
41734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41736 { (exit 1); exit 1; }; }
41738 cat >conftest.$ac_ext <<_ACEOF
41739 #line $LINENO "configure"
41740 /* confdefs.h. */
41741 _ACEOF
41742 cat confdefs.h >>conftest.$ac_ext
41743 cat >>conftest.$ac_ext <<_ACEOF
41744 /* end confdefs.h. */
41745 /* System header to define __stub macros and hopefully few prototypes,
41746 which can conflict with char $ac_func (); below.
41747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41748 <limits.h> exists even on freestanding compilers. */
41749 #ifdef __STDC__
41750 # include <limits.h>
41751 #else
41752 # include <assert.h>
41753 #endif
41754 /* Override any gcc2 internal prototype to avoid an error. */
41755 #ifdef __cplusplus
41756 extern "C"
41758 #endif
41759 /* We use char because int might match the return type of a gcc2
41760 builtin and then its argument prototype would still apply. */
41761 char $ac_func ();
41762 /* The GNU C library defines this for functions which it implements
41763 to always fail with ENOSYS. Some functions are actually named
41764 something starting with __ and the normal name is an alias. */
41765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41766 choke me
41767 #else
41768 char (*f) () = $ac_func;
41769 #endif
41770 #ifdef __cplusplus
41772 #endif
41775 main ()
41777 return f != $ac_func;
41779 return 0;
41781 _ACEOF
41782 rm -f conftest.$ac_objext conftest$ac_exeext
41783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41784 (eval $ac_link) 2>&5
41785 ac_status=$?
41786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787 (exit $ac_status); } &&
41788 { ac_try='test -s conftest$ac_exeext'
41789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790 (eval $ac_try) 2>&5
41791 ac_status=$?
41792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); }; }; then
41794 eval "$as_ac_var=yes"
41795 else
41796 echo "$as_me: failed program was:" >&5
41797 sed 's/^/| /' conftest.$ac_ext >&5
41799 eval "$as_ac_var=no"
41801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41805 if test `eval echo '${'$as_ac_var'}'` = yes; then
41806 cat >>confdefs.h <<_ACEOF
41807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41808 _ACEOF
41811 done
41817 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
41818 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
41819 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
41820 echo $ECHO_N "(cached) $ECHO_C" >&6
41821 else
41825 ac_ext=cc
41826 ac_cpp='$CXXCPP $CPPFLAGS'
41827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41831 cat >conftest.$ac_ext <<_ACEOF
41832 #line $LINENO "configure"
41833 /* confdefs.h. */
41834 _ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h. */
41838 #include <math.h>
41840 main ()
41842 `for x in _acosl _asinl _atanl \
41843 _cosl _sinl _tanl \
41844 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
41846 return 0;
41848 _ACEOF
41849 rm -f conftest.$ac_objext
41850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41851 (eval $ac_compile) 2>&5
41852 ac_status=$?
41853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854 (exit $ac_status); } &&
41855 { ac_try='test -s conftest.$ac_objext'
41856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41857 (eval $ac_try) 2>&5
41858 ac_status=$?
41859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41860 (exit $ac_status); }; }; then
41861 glibcxx_cv_func__long_double_trig_use=yes
41862 else
41863 echo "$as_me: failed program was:" >&5
41864 sed 's/^/| /' conftest.$ac_ext >&5
41866 glibcxx_cv_func__long_double_trig_use=no
41868 rm -f conftest.$ac_objext conftest.$ac_ext
41869 ac_ext=c
41870 ac_cpp='$CPP $CPPFLAGS'
41871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41877 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
41878 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
41879 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
41889 for ac_func in _acosl _asinl _atanl \
41890 _cosl _sinl _tanl \
41891 _coshl _sinhl _tanhl
41893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41894 echo "$as_me:$LINENO: checking for $ac_func" >&5
41895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41896 if eval "test \"\${$as_ac_var+set}\" = set"; then
41897 echo $ECHO_N "(cached) $ECHO_C" >&6
41898 else
41899 if test x$gcc_no_link = xyes; then
41900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41902 { (exit 1); exit 1; }; }
41904 cat >conftest.$ac_ext <<_ACEOF
41905 #line $LINENO "configure"
41906 /* confdefs.h. */
41907 _ACEOF
41908 cat confdefs.h >>conftest.$ac_ext
41909 cat >>conftest.$ac_ext <<_ACEOF
41910 /* end confdefs.h. */
41911 /* System header to define __stub macros and hopefully few prototypes,
41912 which can conflict with char $ac_func (); below.
41913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41914 <limits.h> exists even on freestanding compilers. */
41915 #ifdef __STDC__
41916 # include <limits.h>
41917 #else
41918 # include <assert.h>
41919 #endif
41920 /* Override any gcc2 internal prototype to avoid an error. */
41921 #ifdef __cplusplus
41922 extern "C"
41924 #endif
41925 /* We use char because int might match the return type of a gcc2
41926 builtin and then its argument prototype would still apply. */
41927 char $ac_func ();
41928 /* The GNU C library defines this for functions which it implements
41929 to always fail with ENOSYS. Some functions are actually named
41930 something starting with __ and the normal name is an alias. */
41931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41932 choke me
41933 #else
41934 char (*f) () = $ac_func;
41935 #endif
41936 #ifdef __cplusplus
41938 #endif
41941 main ()
41943 return f != $ac_func;
41945 return 0;
41947 _ACEOF
41948 rm -f conftest.$ac_objext conftest$ac_exeext
41949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41950 (eval $ac_link) 2>&5
41951 ac_status=$?
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); } &&
41954 { ac_try='test -s conftest$ac_exeext'
41955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956 (eval $ac_try) 2>&5
41957 ac_status=$?
41958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959 (exit $ac_status); }; }; then
41960 eval "$as_ac_var=yes"
41961 else
41962 echo "$as_me: failed program was:" >&5
41963 sed 's/^/| /' conftest.$ac_ext >&5
41965 eval "$as_ac_var=no"
41967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41971 if test `eval echo '${'$as_ac_var'}'` = yes; then
41972 cat >>confdefs.h <<_ACEOF
41973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41974 _ACEOF
41977 done
41982 echo "$as_me:$LINENO: checking for _long double round functions" >&5
41983 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
41984 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
41985 echo $ECHO_N "(cached) $ECHO_C" >&6
41986 else
41990 ac_ext=cc
41991 ac_cpp='$CXXCPP $CPPFLAGS'
41992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41996 cat >conftest.$ac_ext <<_ACEOF
41997 #line $LINENO "configure"
41998 /* confdefs.h. */
41999 _ACEOF
42000 cat confdefs.h >>conftest.$ac_ext
42001 cat >>conftest.$ac_ext <<_ACEOF
42002 /* end confdefs.h. */
42003 #include <math.h>
42005 main ()
42007 `for x in _ceill _floorl; do echo "$x (0);"; done`
42009 return 0;
42011 _ACEOF
42012 rm -f conftest.$ac_objext
42013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42014 (eval $ac_compile) 2>&5
42015 ac_status=$?
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); } &&
42018 { ac_try='test -s conftest.$ac_objext'
42019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42020 (eval $ac_try) 2>&5
42021 ac_status=$?
42022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42023 (exit $ac_status); }; }; then
42024 glibcxx_cv_func__long_double_round_use=yes
42025 else
42026 echo "$as_me: failed program was:" >&5
42027 sed 's/^/| /' conftest.$ac_ext >&5
42029 glibcxx_cv_func__long_double_round_use=no
42031 rm -f conftest.$ac_objext conftest.$ac_ext
42032 ac_ext=c
42033 ac_cpp='$CPP $CPPFLAGS'
42034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42040 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
42041 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
42042 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
42045 for ac_func in _ceill _floorl
42047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42048 echo "$as_me:$LINENO: checking for $ac_func" >&5
42049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42050 if eval "test \"\${$as_ac_var+set}\" = set"; then
42051 echo $ECHO_N "(cached) $ECHO_C" >&6
42052 else
42053 if test x$gcc_no_link = xyes; then
42054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42056 { (exit 1); exit 1; }; }
42058 cat >conftest.$ac_ext <<_ACEOF
42059 #line $LINENO "configure"
42060 /* confdefs.h. */
42061 _ACEOF
42062 cat confdefs.h >>conftest.$ac_ext
42063 cat >>conftest.$ac_ext <<_ACEOF
42064 /* end confdefs.h. */
42065 /* System header to define __stub macros and hopefully few prototypes,
42066 which can conflict with char $ac_func (); below.
42067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42068 <limits.h> exists even on freestanding compilers. */
42069 #ifdef __STDC__
42070 # include <limits.h>
42071 #else
42072 # include <assert.h>
42073 #endif
42074 /* Override any gcc2 internal prototype to avoid an error. */
42075 #ifdef __cplusplus
42076 extern "C"
42078 #endif
42079 /* We use char because int might match the return type of a gcc2
42080 builtin and then its argument prototype would still apply. */
42081 char $ac_func ();
42082 /* The GNU C library defines this for functions which it implements
42083 to always fail with ENOSYS. Some functions are actually named
42084 something starting with __ and the normal name is an alias. */
42085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42086 choke me
42087 #else
42088 char (*f) () = $ac_func;
42089 #endif
42090 #ifdef __cplusplus
42092 #endif
42095 main ()
42097 return f != $ac_func;
42099 return 0;
42101 _ACEOF
42102 rm -f conftest.$ac_objext conftest$ac_exeext
42103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42104 (eval $ac_link) 2>&5
42105 ac_status=$?
42106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107 (exit $ac_status); } &&
42108 { ac_try='test -s conftest$ac_exeext'
42109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42110 (eval $ac_try) 2>&5
42111 ac_status=$?
42112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113 (exit $ac_status); }; }; then
42114 eval "$as_ac_var=yes"
42115 else
42116 echo "$as_me: failed program was:" >&5
42117 sed 's/^/| /' conftest.$ac_ext >&5
42119 eval "$as_ac_var=no"
42121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42125 if test `eval echo '${'$as_ac_var'}'` = yes; then
42126 cat >>confdefs.h <<_ACEOF
42127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42128 _ACEOF
42131 done
42136 LIBS="$ac_save_LIBS"
42137 CXXFLAGS="$ac_save_CXXFLAGS"
42141 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
42142 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
42143 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
42144 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
42145 echo $ECHO_N "(cached) $ECHO_C" >&6
42146 else
42150 ac_ext=cc
42151 ac_cpp='$CXXCPP $CPPFLAGS'
42152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42156 cat >conftest.$ac_ext <<_ACEOF
42157 #line $LINENO "configure"
42158 /* confdefs.h. */
42159 _ACEOF
42160 cat confdefs.h >>conftest.$ac_ext
42161 cat >>conftest.$ac_ext <<_ACEOF
42162 /* end confdefs.h. */
42163 #include <math.h>
42165 main ()
42167 __builtin_abs(0);
42169 return 0;
42171 _ACEOF
42172 rm -f conftest.$ac_objext
42173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42174 (eval $ac_compile) 2>&5
42175 ac_status=$?
42176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42177 (exit $ac_status); } &&
42178 { ac_try='test -s conftest.$ac_objext'
42179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42180 (eval $ac_try) 2>&5
42181 ac_status=$?
42182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42183 (exit $ac_status); }; }; then
42184 glibcxx_cv_func___builtin_abs_use=yes
42185 else
42186 echo "$as_me: failed program was:" >&5
42187 sed 's/^/| /' conftest.$ac_ext >&5
42189 glibcxx_cv_func___builtin_abs_use=no
42191 rm -f conftest.$ac_objext conftest.$ac_ext
42192 ac_ext=c
42193 ac_cpp='$CPP $CPPFLAGS'
42194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42202 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
42203 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
42204 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
42205 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
42206 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
42207 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
42208 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
42209 echo $ECHO_N "(cached) $ECHO_C" >&6
42210 else
42212 if test x$gcc_no_link = xyes; then
42213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42215 { (exit 1); exit 1; }; }
42217 cat >conftest.$ac_ext <<_ACEOF
42218 #line $LINENO "configure"
42219 /* confdefs.h. */
42220 _ACEOF
42221 cat confdefs.h >>conftest.$ac_ext
42222 cat >>conftest.$ac_ext <<_ACEOF
42223 /* end confdefs.h. */
42224 #include <math.h>
42226 main ()
42228 __builtin_abs(0);
42230 return 0;
42232 _ACEOF
42233 rm -f conftest.$ac_objext conftest$ac_exeext
42234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42235 (eval $ac_link) 2>&5
42236 ac_status=$?
42237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238 (exit $ac_status); } &&
42239 { ac_try='test -s conftest$ac_exeext'
42240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42241 (eval $ac_try) 2>&5
42242 ac_status=$?
42243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42244 (exit $ac_status); }; }; then
42245 glibcxx_cv_func___builtin_abs_link=yes
42246 else
42247 echo "$as_me: failed program was:" >&5
42248 sed 's/^/| /' conftest.$ac_ext >&5
42250 glibcxx_cv_func___builtin_abs_link=no
42252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42257 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
42258 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
42259 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
42260 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42261 cat >>confdefs.h <<_ACEOF
42262 #define ${ac_tr_func} 1
42263 _ACEOF
42269 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
42270 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
42271 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
42272 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
42273 echo $ECHO_N "(cached) $ECHO_C" >&6
42274 else
42278 ac_ext=cc
42279 ac_cpp='$CXXCPP $CPPFLAGS'
42280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42284 cat >conftest.$ac_ext <<_ACEOF
42285 #line $LINENO "configure"
42286 /* confdefs.h. */
42287 _ACEOF
42288 cat confdefs.h >>conftest.$ac_ext
42289 cat >>conftest.$ac_ext <<_ACEOF
42290 /* end confdefs.h. */
42291 #include <math.h>
42293 main ()
42295 __builtin_fabsf(0);
42297 return 0;
42299 _ACEOF
42300 rm -f conftest.$ac_objext
42301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42302 (eval $ac_compile) 2>&5
42303 ac_status=$?
42304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305 (exit $ac_status); } &&
42306 { ac_try='test -s conftest.$ac_objext'
42307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42308 (eval $ac_try) 2>&5
42309 ac_status=$?
42310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311 (exit $ac_status); }; }; then
42312 glibcxx_cv_func___builtin_fabsf_use=yes
42313 else
42314 echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42317 glibcxx_cv_func___builtin_fabsf_use=no
42319 rm -f conftest.$ac_objext conftest.$ac_ext
42320 ac_ext=c
42321 ac_cpp='$CPP $CPPFLAGS'
42322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42330 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
42331 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
42332 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
42333 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
42334 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
42335 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
42336 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
42337 echo $ECHO_N "(cached) $ECHO_C" >&6
42338 else
42340 if test x$gcc_no_link = xyes; then
42341 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42342 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42343 { (exit 1); exit 1; }; }
42345 cat >conftest.$ac_ext <<_ACEOF
42346 #line $LINENO "configure"
42347 /* confdefs.h. */
42348 _ACEOF
42349 cat confdefs.h >>conftest.$ac_ext
42350 cat >>conftest.$ac_ext <<_ACEOF
42351 /* end confdefs.h. */
42352 #include <math.h>
42354 main ()
42356 __builtin_fabsf(0);
42358 return 0;
42360 _ACEOF
42361 rm -f conftest.$ac_objext conftest$ac_exeext
42362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42363 (eval $ac_link) 2>&5
42364 ac_status=$?
42365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42366 (exit $ac_status); } &&
42367 { ac_try='test -s conftest$ac_exeext'
42368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42369 (eval $ac_try) 2>&5
42370 ac_status=$?
42371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372 (exit $ac_status); }; }; then
42373 glibcxx_cv_func___builtin_fabsf_link=yes
42374 else
42375 echo "$as_me: failed program was:" >&5
42376 sed 's/^/| /' conftest.$ac_ext >&5
42378 glibcxx_cv_func___builtin_fabsf_link=no
42380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42385 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
42386 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
42387 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
42388 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42389 cat >>confdefs.h <<_ACEOF
42390 #define ${ac_tr_func} 1
42391 _ACEOF
42397 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
42398 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
42399 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
42400 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
42401 echo $ECHO_N "(cached) $ECHO_C" >&6
42402 else
42406 ac_ext=cc
42407 ac_cpp='$CXXCPP $CPPFLAGS'
42408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42412 cat >conftest.$ac_ext <<_ACEOF
42413 #line $LINENO "configure"
42414 /* confdefs.h. */
42415 _ACEOF
42416 cat confdefs.h >>conftest.$ac_ext
42417 cat >>conftest.$ac_ext <<_ACEOF
42418 /* end confdefs.h. */
42419 #include <math.h>
42421 main ()
42423 __builtin_fabs(0);
42425 return 0;
42427 _ACEOF
42428 rm -f conftest.$ac_objext
42429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42430 (eval $ac_compile) 2>&5
42431 ac_status=$?
42432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42433 (exit $ac_status); } &&
42434 { ac_try='test -s conftest.$ac_objext'
42435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42436 (eval $ac_try) 2>&5
42437 ac_status=$?
42438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439 (exit $ac_status); }; }; then
42440 glibcxx_cv_func___builtin_fabs_use=yes
42441 else
42442 echo "$as_me: failed program was:" >&5
42443 sed 's/^/| /' conftest.$ac_ext >&5
42445 glibcxx_cv_func___builtin_fabs_use=no
42447 rm -f conftest.$ac_objext conftest.$ac_ext
42448 ac_ext=c
42449 ac_cpp='$CPP $CPPFLAGS'
42450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42458 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
42459 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
42460 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
42461 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
42462 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
42463 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
42464 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
42465 echo $ECHO_N "(cached) $ECHO_C" >&6
42466 else
42468 if test x$gcc_no_link = xyes; then
42469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42471 { (exit 1); exit 1; }; }
42473 cat >conftest.$ac_ext <<_ACEOF
42474 #line $LINENO "configure"
42475 /* confdefs.h. */
42476 _ACEOF
42477 cat confdefs.h >>conftest.$ac_ext
42478 cat >>conftest.$ac_ext <<_ACEOF
42479 /* end confdefs.h. */
42480 #include <math.h>
42482 main ()
42484 __builtin_fabs(0);
42486 return 0;
42488 _ACEOF
42489 rm -f conftest.$ac_objext conftest$ac_exeext
42490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42491 (eval $ac_link) 2>&5
42492 ac_status=$?
42493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); } &&
42495 { ac_try='test -s conftest$ac_exeext'
42496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42497 (eval $ac_try) 2>&5
42498 ac_status=$?
42499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500 (exit $ac_status); }; }; then
42501 glibcxx_cv_func___builtin_fabs_link=yes
42502 else
42503 echo "$as_me: failed program was:" >&5
42504 sed 's/^/| /' conftest.$ac_ext >&5
42506 glibcxx_cv_func___builtin_fabs_link=no
42508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42513 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
42514 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
42515 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
42516 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42517 cat >>confdefs.h <<_ACEOF
42518 #define ${ac_tr_func} 1
42519 _ACEOF
42525 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
42526 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
42527 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
42528 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
42529 echo $ECHO_N "(cached) $ECHO_C" >&6
42530 else
42534 ac_ext=cc
42535 ac_cpp='$CXXCPP $CPPFLAGS'
42536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42540 cat >conftest.$ac_ext <<_ACEOF
42541 #line $LINENO "configure"
42542 /* confdefs.h. */
42543 _ACEOF
42544 cat confdefs.h >>conftest.$ac_ext
42545 cat >>conftest.$ac_ext <<_ACEOF
42546 /* end confdefs.h. */
42547 #include <math.h>
42549 main ()
42551 __builtin_fabsl(0);
42553 return 0;
42555 _ACEOF
42556 rm -f conftest.$ac_objext
42557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42558 (eval $ac_compile) 2>&5
42559 ac_status=$?
42560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42561 (exit $ac_status); } &&
42562 { ac_try='test -s conftest.$ac_objext'
42563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42564 (eval $ac_try) 2>&5
42565 ac_status=$?
42566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567 (exit $ac_status); }; }; then
42568 glibcxx_cv_func___builtin_fabsl_use=yes
42569 else
42570 echo "$as_me: failed program was:" >&5
42571 sed 's/^/| /' conftest.$ac_ext >&5
42573 glibcxx_cv_func___builtin_fabsl_use=no
42575 rm -f conftest.$ac_objext conftest.$ac_ext
42576 ac_ext=c
42577 ac_cpp='$CPP $CPPFLAGS'
42578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42586 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
42587 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
42588 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
42589 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
42590 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
42591 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
42592 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
42593 echo $ECHO_N "(cached) $ECHO_C" >&6
42594 else
42596 if test x$gcc_no_link = xyes; then
42597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42599 { (exit 1); exit 1; }; }
42601 cat >conftest.$ac_ext <<_ACEOF
42602 #line $LINENO "configure"
42603 /* confdefs.h. */
42604 _ACEOF
42605 cat confdefs.h >>conftest.$ac_ext
42606 cat >>conftest.$ac_ext <<_ACEOF
42607 /* end confdefs.h. */
42608 #include <math.h>
42610 main ()
42612 __builtin_fabsl(0);
42614 return 0;
42616 _ACEOF
42617 rm -f conftest.$ac_objext conftest$ac_exeext
42618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42619 (eval $ac_link) 2>&5
42620 ac_status=$?
42621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42622 (exit $ac_status); } &&
42623 { ac_try='test -s conftest$ac_exeext'
42624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42625 (eval $ac_try) 2>&5
42626 ac_status=$?
42627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42628 (exit $ac_status); }; }; then
42629 glibcxx_cv_func___builtin_fabsl_link=yes
42630 else
42631 echo "$as_me: failed program was:" >&5
42632 sed 's/^/| /' conftest.$ac_ext >&5
42634 glibcxx_cv_func___builtin_fabsl_link=no
42636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42641 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
42642 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
42643 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
42644 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42645 cat >>confdefs.h <<_ACEOF
42646 #define ${ac_tr_func} 1
42647 _ACEOF
42653 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
42654 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
42655 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
42656 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
42657 echo $ECHO_N "(cached) $ECHO_C" >&6
42658 else
42662 ac_ext=cc
42663 ac_cpp='$CXXCPP $CPPFLAGS'
42664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42668 cat >conftest.$ac_ext <<_ACEOF
42669 #line $LINENO "configure"
42670 /* confdefs.h. */
42671 _ACEOF
42672 cat confdefs.h >>conftest.$ac_ext
42673 cat >>conftest.$ac_ext <<_ACEOF
42674 /* end confdefs.h. */
42675 #include <math.h>
42677 main ()
42679 __builtin_labs(0);
42681 return 0;
42683 _ACEOF
42684 rm -f conftest.$ac_objext
42685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42686 (eval $ac_compile) 2>&5
42687 ac_status=$?
42688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42689 (exit $ac_status); } &&
42690 { ac_try='test -s conftest.$ac_objext'
42691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42692 (eval $ac_try) 2>&5
42693 ac_status=$?
42694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695 (exit $ac_status); }; }; then
42696 glibcxx_cv_func___builtin_labs_use=yes
42697 else
42698 echo "$as_me: failed program was:" >&5
42699 sed 's/^/| /' conftest.$ac_ext >&5
42701 glibcxx_cv_func___builtin_labs_use=no
42703 rm -f conftest.$ac_objext conftest.$ac_ext
42704 ac_ext=c
42705 ac_cpp='$CPP $CPPFLAGS'
42706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42714 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
42715 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
42716 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
42717 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
42718 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
42719 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
42720 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
42721 echo $ECHO_N "(cached) $ECHO_C" >&6
42722 else
42724 if test x$gcc_no_link = xyes; then
42725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42727 { (exit 1); exit 1; }; }
42729 cat >conftest.$ac_ext <<_ACEOF
42730 #line $LINENO "configure"
42731 /* confdefs.h. */
42732 _ACEOF
42733 cat confdefs.h >>conftest.$ac_ext
42734 cat >>conftest.$ac_ext <<_ACEOF
42735 /* end confdefs.h. */
42736 #include <math.h>
42738 main ()
42740 __builtin_labs(0);
42742 return 0;
42744 _ACEOF
42745 rm -f conftest.$ac_objext conftest$ac_exeext
42746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42747 (eval $ac_link) 2>&5
42748 ac_status=$?
42749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42750 (exit $ac_status); } &&
42751 { ac_try='test -s conftest$ac_exeext'
42752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42753 (eval $ac_try) 2>&5
42754 ac_status=$?
42755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756 (exit $ac_status); }; }; then
42757 glibcxx_cv_func___builtin_labs_link=yes
42758 else
42759 echo "$as_me: failed program was:" >&5
42760 sed 's/^/| /' conftest.$ac_ext >&5
42762 glibcxx_cv_func___builtin_labs_link=no
42764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42769 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
42770 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
42771 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
42772 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42773 cat >>confdefs.h <<_ACEOF
42774 #define ${ac_tr_func} 1
42775 _ACEOF
42782 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
42783 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
42784 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
42785 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
42786 echo $ECHO_N "(cached) $ECHO_C" >&6
42787 else
42791 ac_ext=cc
42792 ac_cpp='$CXXCPP $CPPFLAGS'
42793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42797 cat >conftest.$ac_ext <<_ACEOF
42798 #line $LINENO "configure"
42799 /* confdefs.h. */
42800 _ACEOF
42801 cat confdefs.h >>conftest.$ac_ext
42802 cat >>conftest.$ac_ext <<_ACEOF
42803 /* end confdefs.h. */
42804 #include <math.h>
42806 main ()
42808 __builtin_sqrtf(0);
42810 return 0;
42812 _ACEOF
42813 rm -f conftest.$ac_objext
42814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42815 (eval $ac_compile) 2>&5
42816 ac_status=$?
42817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42818 (exit $ac_status); } &&
42819 { ac_try='test -s conftest.$ac_objext'
42820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42821 (eval $ac_try) 2>&5
42822 ac_status=$?
42823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824 (exit $ac_status); }; }; then
42825 glibcxx_cv_func___builtin_sqrtf_use=yes
42826 else
42827 echo "$as_me: failed program was:" >&5
42828 sed 's/^/| /' conftest.$ac_ext >&5
42830 glibcxx_cv_func___builtin_sqrtf_use=no
42832 rm -f conftest.$ac_objext conftest.$ac_ext
42833 ac_ext=c
42834 ac_cpp='$CPP $CPPFLAGS'
42835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42843 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
42844 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
42845 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
42846 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
42847 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
42848 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
42849 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
42850 echo $ECHO_N "(cached) $ECHO_C" >&6
42851 else
42853 if test x$gcc_no_link = xyes; then
42854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42856 { (exit 1); exit 1; }; }
42858 cat >conftest.$ac_ext <<_ACEOF
42859 #line $LINENO "configure"
42860 /* confdefs.h. */
42861 _ACEOF
42862 cat confdefs.h >>conftest.$ac_ext
42863 cat >>conftest.$ac_ext <<_ACEOF
42864 /* end confdefs.h. */
42865 #include <math.h>
42867 main ()
42869 __builtin_sqrtf(0);
42871 return 0;
42873 _ACEOF
42874 rm -f conftest.$ac_objext conftest$ac_exeext
42875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42876 (eval $ac_link) 2>&5
42877 ac_status=$?
42878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42879 (exit $ac_status); } &&
42880 { ac_try='test -s conftest$ac_exeext'
42881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42882 (eval $ac_try) 2>&5
42883 ac_status=$?
42884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42885 (exit $ac_status); }; }; then
42886 glibcxx_cv_func___builtin_sqrtf_link=yes
42887 else
42888 echo "$as_me: failed program was:" >&5
42889 sed 's/^/| /' conftest.$ac_ext >&5
42891 glibcxx_cv_func___builtin_sqrtf_link=no
42893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42898 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
42899 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
42900 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
42901 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42902 cat >>confdefs.h <<_ACEOF
42903 #define ${ac_tr_func} 1
42904 _ACEOF
42910 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
42911 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
42912 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
42913 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
42914 echo $ECHO_N "(cached) $ECHO_C" >&6
42915 else
42919 ac_ext=cc
42920 ac_cpp='$CXXCPP $CPPFLAGS'
42921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42925 cat >conftest.$ac_ext <<_ACEOF
42926 #line $LINENO "configure"
42927 /* confdefs.h. */
42928 _ACEOF
42929 cat confdefs.h >>conftest.$ac_ext
42930 cat >>conftest.$ac_ext <<_ACEOF
42931 /* end confdefs.h. */
42932 #include <math.h>
42934 main ()
42936 __builtin_sqrt(0);
42938 return 0;
42940 _ACEOF
42941 rm -f conftest.$ac_objext
42942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42943 (eval $ac_compile) 2>&5
42944 ac_status=$?
42945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42946 (exit $ac_status); } &&
42947 { ac_try='test -s conftest.$ac_objext'
42948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42949 (eval $ac_try) 2>&5
42950 ac_status=$?
42951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42952 (exit $ac_status); }; }; then
42953 glibcxx_cv_func___builtin_sqrt_use=yes
42954 else
42955 echo "$as_me: failed program was:" >&5
42956 sed 's/^/| /' conftest.$ac_ext >&5
42958 glibcxx_cv_func___builtin_sqrt_use=no
42960 rm -f conftest.$ac_objext conftest.$ac_ext
42961 ac_ext=c
42962 ac_cpp='$CPP $CPPFLAGS'
42963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42971 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
42972 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
42973 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
42974 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
42975 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
42976 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
42977 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
42978 echo $ECHO_N "(cached) $ECHO_C" >&6
42979 else
42981 if test x$gcc_no_link = xyes; then
42982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42984 { (exit 1); exit 1; }; }
42986 cat >conftest.$ac_ext <<_ACEOF
42987 #line $LINENO "configure"
42988 /* confdefs.h. */
42989 _ACEOF
42990 cat confdefs.h >>conftest.$ac_ext
42991 cat >>conftest.$ac_ext <<_ACEOF
42992 /* end confdefs.h. */
42993 #include <math.h>
42995 main ()
42997 __builtin_sqrt(0);
42999 return 0;
43001 _ACEOF
43002 rm -f conftest.$ac_objext conftest$ac_exeext
43003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43004 (eval $ac_link) 2>&5
43005 ac_status=$?
43006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007 (exit $ac_status); } &&
43008 { ac_try='test -s conftest$ac_exeext'
43009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43010 (eval $ac_try) 2>&5
43011 ac_status=$?
43012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013 (exit $ac_status); }; }; then
43014 glibcxx_cv_func___builtin_sqrt_link=yes
43015 else
43016 echo "$as_me: failed program was:" >&5
43017 sed 's/^/| /' conftest.$ac_ext >&5
43019 glibcxx_cv_func___builtin_sqrt_link=no
43021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43026 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
43027 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
43028 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
43029 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43030 cat >>confdefs.h <<_ACEOF
43031 #define ${ac_tr_func} 1
43032 _ACEOF
43038 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
43039 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
43040 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
43041 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
43042 echo $ECHO_N "(cached) $ECHO_C" >&6
43043 else
43047 ac_ext=cc
43048 ac_cpp='$CXXCPP $CPPFLAGS'
43049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43053 cat >conftest.$ac_ext <<_ACEOF
43054 #line $LINENO "configure"
43055 /* confdefs.h. */
43056 _ACEOF
43057 cat confdefs.h >>conftest.$ac_ext
43058 cat >>conftest.$ac_ext <<_ACEOF
43059 /* end confdefs.h. */
43060 #include <math.h>
43062 main ()
43064 __builtin_sqrtl(0);
43066 return 0;
43068 _ACEOF
43069 rm -f conftest.$ac_objext
43070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43071 (eval $ac_compile) 2>&5
43072 ac_status=$?
43073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43074 (exit $ac_status); } &&
43075 { ac_try='test -s conftest.$ac_objext'
43076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43077 (eval $ac_try) 2>&5
43078 ac_status=$?
43079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080 (exit $ac_status); }; }; then
43081 glibcxx_cv_func___builtin_sqrtl_use=yes
43082 else
43083 echo "$as_me: failed program was:" >&5
43084 sed 's/^/| /' conftest.$ac_ext >&5
43086 glibcxx_cv_func___builtin_sqrtl_use=no
43088 rm -f conftest.$ac_objext conftest.$ac_ext
43089 ac_ext=c
43090 ac_cpp='$CPP $CPPFLAGS'
43091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43099 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
43100 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
43101 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
43102 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
43103 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
43104 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
43105 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
43106 echo $ECHO_N "(cached) $ECHO_C" >&6
43107 else
43109 if test x$gcc_no_link = xyes; then
43110 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43112 { (exit 1); exit 1; }; }
43114 cat >conftest.$ac_ext <<_ACEOF
43115 #line $LINENO "configure"
43116 /* confdefs.h. */
43117 _ACEOF
43118 cat confdefs.h >>conftest.$ac_ext
43119 cat >>conftest.$ac_ext <<_ACEOF
43120 /* end confdefs.h. */
43121 #include <math.h>
43123 main ()
43125 __builtin_sqrtl(0);
43127 return 0;
43129 _ACEOF
43130 rm -f conftest.$ac_objext conftest$ac_exeext
43131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43132 (eval $ac_link) 2>&5
43133 ac_status=$?
43134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43135 (exit $ac_status); } &&
43136 { ac_try='test -s conftest$ac_exeext'
43137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43138 (eval $ac_try) 2>&5
43139 ac_status=$?
43140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141 (exit $ac_status); }; }; then
43142 glibcxx_cv_func___builtin_sqrtl_link=yes
43143 else
43144 echo "$as_me: failed program was:" >&5
43145 sed 's/^/| /' conftest.$ac_ext >&5
43147 glibcxx_cv_func___builtin_sqrtl_link=no
43149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43154 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
43155 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
43156 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
43157 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43158 cat >>confdefs.h <<_ACEOF
43159 #define ${ac_tr_func} 1
43160 _ACEOF
43167 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
43168 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
43169 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
43170 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
43171 echo $ECHO_N "(cached) $ECHO_C" >&6
43172 else
43176 ac_ext=cc
43177 ac_cpp='$CXXCPP $CPPFLAGS'
43178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43182 cat >conftest.$ac_ext <<_ACEOF
43183 #line $LINENO "configure"
43184 /* confdefs.h. */
43185 _ACEOF
43186 cat confdefs.h >>conftest.$ac_ext
43187 cat >>conftest.$ac_ext <<_ACEOF
43188 /* end confdefs.h. */
43189 #include <math.h>
43191 main ()
43193 __builtin_sinf(0);
43195 return 0;
43197 _ACEOF
43198 rm -f conftest.$ac_objext
43199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43200 (eval $ac_compile) 2>&5
43201 ac_status=$?
43202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43203 (exit $ac_status); } &&
43204 { ac_try='test -s conftest.$ac_objext'
43205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43206 (eval $ac_try) 2>&5
43207 ac_status=$?
43208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209 (exit $ac_status); }; }; then
43210 glibcxx_cv_func___builtin_sinf_use=yes
43211 else
43212 echo "$as_me: failed program was:" >&5
43213 sed 's/^/| /' conftest.$ac_ext >&5
43215 glibcxx_cv_func___builtin_sinf_use=no
43217 rm -f conftest.$ac_objext conftest.$ac_ext
43218 ac_ext=c
43219 ac_cpp='$CPP $CPPFLAGS'
43220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43228 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
43229 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
43230 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
43231 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
43232 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
43233 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
43234 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
43235 echo $ECHO_N "(cached) $ECHO_C" >&6
43236 else
43238 if test x$gcc_no_link = xyes; then
43239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43241 { (exit 1); exit 1; }; }
43243 cat >conftest.$ac_ext <<_ACEOF
43244 #line $LINENO "configure"
43245 /* confdefs.h. */
43246 _ACEOF
43247 cat confdefs.h >>conftest.$ac_ext
43248 cat >>conftest.$ac_ext <<_ACEOF
43249 /* end confdefs.h. */
43250 #include <math.h>
43252 main ()
43254 __builtin_sinf(0);
43256 return 0;
43258 _ACEOF
43259 rm -f conftest.$ac_objext conftest$ac_exeext
43260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43261 (eval $ac_link) 2>&5
43262 ac_status=$?
43263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); } &&
43265 { ac_try='test -s conftest$ac_exeext'
43266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43267 (eval $ac_try) 2>&5
43268 ac_status=$?
43269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43270 (exit $ac_status); }; }; then
43271 glibcxx_cv_func___builtin_sinf_link=yes
43272 else
43273 echo "$as_me: failed program was:" >&5
43274 sed 's/^/| /' conftest.$ac_ext >&5
43276 glibcxx_cv_func___builtin_sinf_link=no
43278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43283 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
43284 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
43285 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
43286 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43287 cat >>confdefs.h <<_ACEOF
43288 #define ${ac_tr_func} 1
43289 _ACEOF
43295 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
43296 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
43297 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
43298 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
43299 echo $ECHO_N "(cached) $ECHO_C" >&6
43300 else
43304 ac_ext=cc
43305 ac_cpp='$CXXCPP $CPPFLAGS'
43306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43310 cat >conftest.$ac_ext <<_ACEOF
43311 #line $LINENO "configure"
43312 /* confdefs.h. */
43313 _ACEOF
43314 cat confdefs.h >>conftest.$ac_ext
43315 cat >>conftest.$ac_ext <<_ACEOF
43316 /* end confdefs.h. */
43317 #include <math.h>
43319 main ()
43321 __builtin_sin(0);
43323 return 0;
43325 _ACEOF
43326 rm -f conftest.$ac_objext
43327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43328 (eval $ac_compile) 2>&5
43329 ac_status=$?
43330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43331 (exit $ac_status); } &&
43332 { ac_try='test -s conftest.$ac_objext'
43333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43334 (eval $ac_try) 2>&5
43335 ac_status=$?
43336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43337 (exit $ac_status); }; }; then
43338 glibcxx_cv_func___builtin_sin_use=yes
43339 else
43340 echo "$as_me: failed program was:" >&5
43341 sed 's/^/| /' conftest.$ac_ext >&5
43343 glibcxx_cv_func___builtin_sin_use=no
43345 rm -f conftest.$ac_objext conftest.$ac_ext
43346 ac_ext=c
43347 ac_cpp='$CPP $CPPFLAGS'
43348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43356 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
43357 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
43358 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
43359 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
43360 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
43361 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
43362 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
43363 echo $ECHO_N "(cached) $ECHO_C" >&6
43364 else
43366 if test x$gcc_no_link = xyes; then
43367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43369 { (exit 1); exit 1; }; }
43371 cat >conftest.$ac_ext <<_ACEOF
43372 #line $LINENO "configure"
43373 /* confdefs.h. */
43374 _ACEOF
43375 cat confdefs.h >>conftest.$ac_ext
43376 cat >>conftest.$ac_ext <<_ACEOF
43377 /* end confdefs.h. */
43378 #include <math.h>
43380 main ()
43382 __builtin_sin(0);
43384 return 0;
43386 _ACEOF
43387 rm -f conftest.$ac_objext conftest$ac_exeext
43388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43389 (eval $ac_link) 2>&5
43390 ac_status=$?
43391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392 (exit $ac_status); } &&
43393 { ac_try='test -s conftest$ac_exeext'
43394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43395 (eval $ac_try) 2>&5
43396 ac_status=$?
43397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43398 (exit $ac_status); }; }; then
43399 glibcxx_cv_func___builtin_sin_link=yes
43400 else
43401 echo "$as_me: failed program was:" >&5
43402 sed 's/^/| /' conftest.$ac_ext >&5
43404 glibcxx_cv_func___builtin_sin_link=no
43406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43411 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
43412 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
43413 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
43414 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43415 cat >>confdefs.h <<_ACEOF
43416 #define ${ac_tr_func} 1
43417 _ACEOF
43423 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
43424 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
43425 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
43426 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
43427 echo $ECHO_N "(cached) $ECHO_C" >&6
43428 else
43432 ac_ext=cc
43433 ac_cpp='$CXXCPP $CPPFLAGS'
43434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43438 cat >conftest.$ac_ext <<_ACEOF
43439 #line $LINENO "configure"
43440 /* confdefs.h. */
43441 _ACEOF
43442 cat confdefs.h >>conftest.$ac_ext
43443 cat >>conftest.$ac_ext <<_ACEOF
43444 /* end confdefs.h. */
43445 #include <math.h>
43447 main ()
43449 __builtin_sinl(0);
43451 return 0;
43453 _ACEOF
43454 rm -f conftest.$ac_objext
43455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43456 (eval $ac_compile) 2>&5
43457 ac_status=$?
43458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459 (exit $ac_status); } &&
43460 { ac_try='test -s conftest.$ac_objext'
43461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43462 (eval $ac_try) 2>&5
43463 ac_status=$?
43464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465 (exit $ac_status); }; }; then
43466 glibcxx_cv_func___builtin_sinl_use=yes
43467 else
43468 echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43471 glibcxx_cv_func___builtin_sinl_use=no
43473 rm -f conftest.$ac_objext conftest.$ac_ext
43474 ac_ext=c
43475 ac_cpp='$CPP $CPPFLAGS'
43476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43484 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
43485 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
43486 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
43487 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
43488 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
43489 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
43490 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
43491 echo $ECHO_N "(cached) $ECHO_C" >&6
43492 else
43494 if test x$gcc_no_link = xyes; then
43495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43497 { (exit 1); exit 1; }; }
43499 cat >conftest.$ac_ext <<_ACEOF
43500 #line $LINENO "configure"
43501 /* confdefs.h. */
43502 _ACEOF
43503 cat confdefs.h >>conftest.$ac_ext
43504 cat >>conftest.$ac_ext <<_ACEOF
43505 /* end confdefs.h. */
43506 #include <math.h>
43508 main ()
43510 __builtin_sinl(0);
43512 return 0;
43514 _ACEOF
43515 rm -f conftest.$ac_objext conftest$ac_exeext
43516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43517 (eval $ac_link) 2>&5
43518 ac_status=$?
43519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520 (exit $ac_status); } &&
43521 { ac_try='test -s conftest$ac_exeext'
43522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43523 (eval $ac_try) 2>&5
43524 ac_status=$?
43525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526 (exit $ac_status); }; }; then
43527 glibcxx_cv_func___builtin_sinl_link=yes
43528 else
43529 echo "$as_me: failed program was:" >&5
43530 sed 's/^/| /' conftest.$ac_ext >&5
43532 glibcxx_cv_func___builtin_sinl_link=no
43534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43539 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
43540 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
43541 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
43542 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43543 cat >>confdefs.h <<_ACEOF
43544 #define ${ac_tr_func} 1
43545 _ACEOF
43552 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
43553 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
43554 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
43555 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
43556 echo $ECHO_N "(cached) $ECHO_C" >&6
43557 else
43561 ac_ext=cc
43562 ac_cpp='$CXXCPP $CPPFLAGS'
43563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43567 cat >conftest.$ac_ext <<_ACEOF
43568 #line $LINENO "configure"
43569 /* confdefs.h. */
43570 _ACEOF
43571 cat confdefs.h >>conftest.$ac_ext
43572 cat >>conftest.$ac_ext <<_ACEOF
43573 /* end confdefs.h. */
43574 #include <math.h>
43576 main ()
43578 __builtin_cosf(0);
43580 return 0;
43582 _ACEOF
43583 rm -f conftest.$ac_objext
43584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43585 (eval $ac_compile) 2>&5
43586 ac_status=$?
43587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); } &&
43589 { ac_try='test -s conftest.$ac_objext'
43590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43591 (eval $ac_try) 2>&5
43592 ac_status=$?
43593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594 (exit $ac_status); }; }; then
43595 glibcxx_cv_func___builtin_cosf_use=yes
43596 else
43597 echo "$as_me: failed program was:" >&5
43598 sed 's/^/| /' conftest.$ac_ext >&5
43600 glibcxx_cv_func___builtin_cosf_use=no
43602 rm -f conftest.$ac_objext conftest.$ac_ext
43603 ac_ext=c
43604 ac_cpp='$CPP $CPPFLAGS'
43605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43613 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
43614 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
43615 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
43616 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
43617 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
43618 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
43619 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
43620 echo $ECHO_N "(cached) $ECHO_C" >&6
43621 else
43623 if test x$gcc_no_link = xyes; then
43624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43626 { (exit 1); exit 1; }; }
43628 cat >conftest.$ac_ext <<_ACEOF
43629 #line $LINENO "configure"
43630 /* confdefs.h. */
43631 _ACEOF
43632 cat confdefs.h >>conftest.$ac_ext
43633 cat >>conftest.$ac_ext <<_ACEOF
43634 /* end confdefs.h. */
43635 #include <math.h>
43637 main ()
43639 __builtin_cosf(0);
43641 return 0;
43643 _ACEOF
43644 rm -f conftest.$ac_objext conftest$ac_exeext
43645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43646 (eval $ac_link) 2>&5
43647 ac_status=$?
43648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649 (exit $ac_status); } &&
43650 { ac_try='test -s conftest$ac_exeext'
43651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43652 (eval $ac_try) 2>&5
43653 ac_status=$?
43654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655 (exit $ac_status); }; }; then
43656 glibcxx_cv_func___builtin_cosf_link=yes
43657 else
43658 echo "$as_me: failed program was:" >&5
43659 sed 's/^/| /' conftest.$ac_ext >&5
43661 glibcxx_cv_func___builtin_cosf_link=no
43663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43668 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
43669 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
43670 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
43671 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43672 cat >>confdefs.h <<_ACEOF
43673 #define ${ac_tr_func} 1
43674 _ACEOF
43680 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
43681 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
43682 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
43683 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
43684 echo $ECHO_N "(cached) $ECHO_C" >&6
43685 else
43689 ac_ext=cc
43690 ac_cpp='$CXXCPP $CPPFLAGS'
43691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43695 cat >conftest.$ac_ext <<_ACEOF
43696 #line $LINENO "configure"
43697 /* confdefs.h. */
43698 _ACEOF
43699 cat confdefs.h >>conftest.$ac_ext
43700 cat >>conftest.$ac_ext <<_ACEOF
43701 /* end confdefs.h. */
43702 #include <math.h>
43704 main ()
43706 __builtin_cos(0);
43708 return 0;
43710 _ACEOF
43711 rm -f conftest.$ac_objext
43712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43713 (eval $ac_compile) 2>&5
43714 ac_status=$?
43715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43716 (exit $ac_status); } &&
43717 { ac_try='test -s conftest.$ac_objext'
43718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43719 (eval $ac_try) 2>&5
43720 ac_status=$?
43721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43722 (exit $ac_status); }; }; then
43723 glibcxx_cv_func___builtin_cos_use=yes
43724 else
43725 echo "$as_me: failed program was:" >&5
43726 sed 's/^/| /' conftest.$ac_ext >&5
43728 glibcxx_cv_func___builtin_cos_use=no
43730 rm -f conftest.$ac_objext conftest.$ac_ext
43731 ac_ext=c
43732 ac_cpp='$CPP $CPPFLAGS'
43733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43741 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
43742 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
43743 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
43744 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
43745 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
43746 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
43747 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
43748 echo $ECHO_N "(cached) $ECHO_C" >&6
43749 else
43751 if test x$gcc_no_link = xyes; then
43752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43754 { (exit 1); exit 1; }; }
43756 cat >conftest.$ac_ext <<_ACEOF
43757 #line $LINENO "configure"
43758 /* confdefs.h. */
43759 _ACEOF
43760 cat confdefs.h >>conftest.$ac_ext
43761 cat >>conftest.$ac_ext <<_ACEOF
43762 /* end confdefs.h. */
43763 #include <math.h>
43765 main ()
43767 __builtin_cos(0);
43769 return 0;
43771 _ACEOF
43772 rm -f conftest.$ac_objext conftest$ac_exeext
43773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43774 (eval $ac_link) 2>&5
43775 ac_status=$?
43776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43777 (exit $ac_status); } &&
43778 { ac_try='test -s conftest$ac_exeext'
43779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43780 (eval $ac_try) 2>&5
43781 ac_status=$?
43782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43783 (exit $ac_status); }; }; then
43784 glibcxx_cv_func___builtin_cos_link=yes
43785 else
43786 echo "$as_me: failed program was:" >&5
43787 sed 's/^/| /' conftest.$ac_ext >&5
43789 glibcxx_cv_func___builtin_cos_link=no
43791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43796 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
43797 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
43798 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
43799 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43800 cat >>confdefs.h <<_ACEOF
43801 #define ${ac_tr_func} 1
43802 _ACEOF
43808 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
43809 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
43810 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
43811 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
43812 echo $ECHO_N "(cached) $ECHO_C" >&6
43813 else
43817 ac_ext=cc
43818 ac_cpp='$CXXCPP $CPPFLAGS'
43819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43823 cat >conftest.$ac_ext <<_ACEOF
43824 #line $LINENO "configure"
43825 /* confdefs.h. */
43826 _ACEOF
43827 cat confdefs.h >>conftest.$ac_ext
43828 cat >>conftest.$ac_ext <<_ACEOF
43829 /* end confdefs.h. */
43830 #include <math.h>
43832 main ()
43834 __builtin_cosl(0);
43836 return 0;
43838 _ACEOF
43839 rm -f conftest.$ac_objext
43840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43841 (eval $ac_compile) 2>&5
43842 ac_status=$?
43843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43844 (exit $ac_status); } &&
43845 { ac_try='test -s conftest.$ac_objext'
43846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43847 (eval $ac_try) 2>&5
43848 ac_status=$?
43849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43850 (exit $ac_status); }; }; then
43851 glibcxx_cv_func___builtin_cosl_use=yes
43852 else
43853 echo "$as_me: failed program was:" >&5
43854 sed 's/^/| /' conftest.$ac_ext >&5
43856 glibcxx_cv_func___builtin_cosl_use=no
43858 rm -f conftest.$ac_objext conftest.$ac_ext
43859 ac_ext=c
43860 ac_cpp='$CPP $CPPFLAGS'
43861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43869 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
43870 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
43871 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
43872 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
43873 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
43874 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
43875 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
43876 echo $ECHO_N "(cached) $ECHO_C" >&6
43877 else
43879 if test x$gcc_no_link = xyes; then
43880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43882 { (exit 1); exit 1; }; }
43884 cat >conftest.$ac_ext <<_ACEOF
43885 #line $LINENO "configure"
43886 /* confdefs.h. */
43887 _ACEOF
43888 cat confdefs.h >>conftest.$ac_ext
43889 cat >>conftest.$ac_ext <<_ACEOF
43890 /* end confdefs.h. */
43891 #include <math.h>
43893 main ()
43895 __builtin_cosl(0);
43897 return 0;
43899 _ACEOF
43900 rm -f conftest.$ac_objext conftest$ac_exeext
43901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43902 (eval $ac_link) 2>&5
43903 ac_status=$?
43904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43905 (exit $ac_status); } &&
43906 { ac_try='test -s conftest$ac_exeext'
43907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43908 (eval $ac_try) 2>&5
43909 ac_status=$?
43910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43911 (exit $ac_status); }; }; then
43912 glibcxx_cv_func___builtin_cosl_link=yes
43913 else
43914 echo "$as_me: failed program was:" >&5
43915 sed 's/^/| /' conftest.$ac_ext >&5
43917 glibcxx_cv_func___builtin_cosl_link=no
43919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43924 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
43925 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
43926 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
43927 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43928 cat >>confdefs.h <<_ACEOF
43929 #define ${ac_tr_func} 1
43930 _ACEOF
43936 dummyvar=no
43937 if test x$dummyvar = x"yes"; then
43938 cat >>confdefs.h <<\_ACEOF
43939 #define HAVE___BUILTIN_ABS 1
43940 _ACEOF
43942 cat >>confdefs.h <<\_ACEOF
43943 #define HAVE___BUILTIN_LABS 1
43944 _ACEOF
43946 cat >>confdefs.h <<\_ACEOF
43947 #define HAVE___BUILTIN_COS 1
43948 _ACEOF
43950 cat >>confdefs.h <<\_ACEOF
43951 #define HAVE___BUILTIN_COSF 1
43952 _ACEOF
43954 cat >>confdefs.h <<\_ACEOF
43955 #define HAVE___BUILTIN_COSL 1
43956 _ACEOF
43958 cat >>confdefs.h <<\_ACEOF
43959 #define HAVE___BUILTIN_FABS 1
43960 _ACEOF
43962 cat >>confdefs.h <<\_ACEOF
43963 #define HAVE___BUILTIN_FABSF 1
43964 _ACEOF
43966 cat >>confdefs.h <<\_ACEOF
43967 #define HAVE___BUILTIN_FABSL 1
43968 _ACEOF
43970 cat >>confdefs.h <<\_ACEOF
43971 #define HAVE___BUILTIN_SIN 1
43972 _ACEOF
43974 cat >>confdefs.h <<\_ACEOF
43975 #define HAVE___BUILTIN_SINF 1
43976 _ACEOF
43978 cat >>confdefs.h <<\_ACEOF
43979 #define HAVE___BUILTIN_SINL 1
43980 _ACEOF
43982 cat >>confdefs.h <<\_ACEOF
43983 #define HAVE___BUILTIN_SQRT 1
43984 _ACEOF
43986 cat >>confdefs.h <<\_ACEOF
43987 #define HAVE___BUILTIN_SQRTF 1
43988 _ACEOF
43990 cat >>confdefs.h <<\_ACEOF
43991 #define HAVE___BUILTIN_SQRTL 1
43992 _ACEOF
43998 echo "$as_me:$LINENO: checking for main in -lm" >&5
43999 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
44000 if test "${ac_cv_lib_m_main+set}" = set; then
44001 echo $ECHO_N "(cached) $ECHO_C" >&6
44002 else
44003 ac_check_lib_save_LIBS=$LIBS
44004 LIBS="-lm $LIBS"
44005 if test x$gcc_no_link = xyes; then
44006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44008 { (exit 1); exit 1; }; }
44010 cat >conftest.$ac_ext <<_ACEOF
44011 #line $LINENO "configure"
44012 /* confdefs.h. */
44013 _ACEOF
44014 cat confdefs.h >>conftest.$ac_ext
44015 cat >>conftest.$ac_ext <<_ACEOF
44016 /* end confdefs.h. */
44020 main ()
44022 main ();
44024 return 0;
44026 _ACEOF
44027 rm -f conftest.$ac_objext conftest$ac_exeext
44028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44029 (eval $ac_link) 2>&5
44030 ac_status=$?
44031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44032 (exit $ac_status); } &&
44033 { ac_try='test -s conftest$ac_exeext'
44034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44035 (eval $ac_try) 2>&5
44036 ac_status=$?
44037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44038 (exit $ac_status); }; }; then
44039 ac_cv_lib_m_main=yes
44040 else
44041 echo "$as_me: failed program was:" >&5
44042 sed 's/^/| /' conftest.$ac_ext >&5
44044 ac_cv_lib_m_main=no
44046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44047 LIBS=$ac_check_lib_save_LIBS
44049 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
44050 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
44051 if test $ac_cv_lib_m_main = yes; then
44052 cat >>confdefs.h <<_ACEOF
44053 #define HAVE_LIBM 1
44054 _ACEOF
44056 LIBS="-lm $LIBS"
44062 for ac_func in nan copysignf
44064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44065 echo "$as_me:$LINENO: checking for $ac_func" >&5
44066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44067 if eval "test \"\${$as_ac_var+set}\" = set"; then
44068 echo $ECHO_N "(cached) $ECHO_C" >&6
44069 else
44070 if test x$gcc_no_link = xyes; then
44071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44073 { (exit 1); exit 1; }; }
44075 cat >conftest.$ac_ext <<_ACEOF
44076 #line $LINENO "configure"
44077 /* confdefs.h. */
44078 _ACEOF
44079 cat confdefs.h >>conftest.$ac_ext
44080 cat >>conftest.$ac_ext <<_ACEOF
44081 /* end confdefs.h. */
44082 /* System header to define __stub macros and hopefully few prototypes,
44083 which can conflict with char $ac_func (); below.
44084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44085 <limits.h> exists even on freestanding compilers. */
44086 #ifdef __STDC__
44087 # include <limits.h>
44088 #else
44089 # include <assert.h>
44090 #endif
44091 /* Override any gcc2 internal prototype to avoid an error. */
44092 #ifdef __cplusplus
44093 extern "C"
44095 #endif
44096 /* We use char because int might match the return type of a gcc2
44097 builtin and then its argument prototype would still apply. */
44098 char $ac_func ();
44099 /* The GNU C library defines this for functions which it implements
44100 to always fail with ENOSYS. Some functions are actually named
44101 something starting with __ and the normal name is an alias. */
44102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44103 choke me
44104 #else
44105 char (*f) () = $ac_func;
44106 #endif
44107 #ifdef __cplusplus
44109 #endif
44112 main ()
44114 return f != $ac_func;
44116 return 0;
44118 _ACEOF
44119 rm -f conftest.$ac_objext conftest$ac_exeext
44120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44121 (eval $ac_link) 2>&5
44122 ac_status=$?
44123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44124 (exit $ac_status); } &&
44125 { ac_try='test -s conftest$ac_exeext'
44126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44127 (eval $ac_try) 2>&5
44128 ac_status=$?
44129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44130 (exit $ac_status); }; }; then
44131 eval "$as_ac_var=yes"
44132 else
44133 echo "$as_me: failed program was:" >&5
44134 sed 's/^/| /' conftest.$ac_ext >&5
44136 eval "$as_ac_var=no"
44138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44142 if test `eval echo '${'$as_ac_var'}'` = yes; then
44143 cat >>confdefs.h <<_ACEOF
44144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44145 _ACEOF
44147 else
44148 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
44150 done
44154 for ac_func in __signbit
44156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44157 echo "$as_me:$LINENO: checking for $ac_func" >&5
44158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44159 if eval "test \"\${$as_ac_var+set}\" = set"; then
44160 echo $ECHO_N "(cached) $ECHO_C" >&6
44161 else
44162 if test x$gcc_no_link = xyes; then
44163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44164 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44165 { (exit 1); exit 1; }; }
44167 cat >conftest.$ac_ext <<_ACEOF
44168 #line $LINENO "configure"
44169 /* confdefs.h. */
44170 _ACEOF
44171 cat confdefs.h >>conftest.$ac_ext
44172 cat >>conftest.$ac_ext <<_ACEOF
44173 /* end confdefs.h. */
44174 /* System header to define __stub macros and hopefully few prototypes,
44175 which can conflict with char $ac_func (); below.
44176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44177 <limits.h> exists even on freestanding compilers. */
44178 #ifdef __STDC__
44179 # include <limits.h>
44180 #else
44181 # include <assert.h>
44182 #endif
44183 /* Override any gcc2 internal prototype to avoid an error. */
44184 #ifdef __cplusplus
44185 extern "C"
44187 #endif
44188 /* We use char because int might match the return type of a gcc2
44189 builtin and then its argument prototype would still apply. */
44190 char $ac_func ();
44191 /* The GNU C library defines this for functions which it implements
44192 to always fail with ENOSYS. Some functions are actually named
44193 something starting with __ and the normal name is an alias. */
44194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44195 choke me
44196 #else
44197 char (*f) () = $ac_func;
44198 #endif
44199 #ifdef __cplusplus
44201 #endif
44204 main ()
44206 return f != $ac_func;
44208 return 0;
44210 _ACEOF
44211 rm -f conftest.$ac_objext conftest$ac_exeext
44212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44213 (eval $ac_link) 2>&5
44214 ac_status=$?
44215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216 (exit $ac_status); } &&
44217 { ac_try='test -s conftest$ac_exeext'
44218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44219 (eval $ac_try) 2>&5
44220 ac_status=$?
44221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44222 (exit $ac_status); }; }; then
44223 eval "$as_ac_var=yes"
44224 else
44225 echo "$as_me: failed program was:" >&5
44226 sed 's/^/| /' conftest.$ac_ext >&5
44228 eval "$as_ac_var=no"
44230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44234 if test `eval echo '${'$as_ac_var'}'` = yes; then
44235 cat >>confdefs.h <<_ACEOF
44236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44237 _ACEOF
44239 else
44240 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
44242 done
44245 for ac_func in __signbitf
44247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44248 echo "$as_me:$LINENO: checking for $ac_func" >&5
44249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44250 if eval "test \"\${$as_ac_var+set}\" = set"; then
44251 echo $ECHO_N "(cached) $ECHO_C" >&6
44252 else
44253 if test x$gcc_no_link = xyes; then
44254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44256 { (exit 1); exit 1; }; }
44258 cat >conftest.$ac_ext <<_ACEOF
44259 #line $LINENO "configure"
44260 /* confdefs.h. */
44261 _ACEOF
44262 cat confdefs.h >>conftest.$ac_ext
44263 cat >>conftest.$ac_ext <<_ACEOF
44264 /* end confdefs.h. */
44265 /* System header to define __stub macros and hopefully few prototypes,
44266 which can conflict with char $ac_func (); below.
44267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44268 <limits.h> exists even on freestanding compilers. */
44269 #ifdef __STDC__
44270 # include <limits.h>
44271 #else
44272 # include <assert.h>
44273 #endif
44274 /* Override any gcc2 internal prototype to avoid an error. */
44275 #ifdef __cplusplus
44276 extern "C"
44278 #endif
44279 /* We use char because int might match the return type of a gcc2
44280 builtin and then its argument prototype would still apply. */
44281 char $ac_func ();
44282 /* The GNU C library defines this for functions which it implements
44283 to always fail with ENOSYS. Some functions are actually named
44284 something starting with __ and the normal name is an alias. */
44285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44286 choke me
44287 #else
44288 char (*f) () = $ac_func;
44289 #endif
44290 #ifdef __cplusplus
44292 #endif
44295 main ()
44297 return f != $ac_func;
44299 return 0;
44301 _ACEOF
44302 rm -f conftest.$ac_objext conftest$ac_exeext
44303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44304 (eval $ac_link) 2>&5
44305 ac_status=$?
44306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44307 (exit $ac_status); } &&
44308 { ac_try='test -s conftest$ac_exeext'
44309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44310 (eval $ac_try) 2>&5
44311 ac_status=$?
44312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44313 (exit $ac_status); }; }; then
44314 eval "$as_ac_var=yes"
44315 else
44316 echo "$as_me: failed program was:" >&5
44317 sed 's/^/| /' conftest.$ac_ext >&5
44319 eval "$as_ac_var=no"
44321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44325 if test `eval echo '${'$as_ac_var'}'` = yes; then
44326 cat >>confdefs.h <<_ACEOF
44327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44328 _ACEOF
44330 else
44331 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
44333 done
44336 if test x$ac_cv_func_copysignl = x"yes"; then
44338 for ac_func in __signbitl
44340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44341 echo "$as_me:$LINENO: checking for $ac_func" >&5
44342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44343 if eval "test \"\${$as_ac_var+set}\" = set"; then
44344 echo $ECHO_N "(cached) $ECHO_C" >&6
44345 else
44346 if test x$gcc_no_link = xyes; then
44347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44349 { (exit 1); exit 1; }; }
44351 cat >conftest.$ac_ext <<_ACEOF
44352 #line $LINENO "configure"
44353 /* confdefs.h. */
44354 _ACEOF
44355 cat confdefs.h >>conftest.$ac_ext
44356 cat >>conftest.$ac_ext <<_ACEOF
44357 /* end confdefs.h. */
44358 /* System header to define __stub macros and hopefully few prototypes,
44359 which can conflict with char $ac_func (); below.
44360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44361 <limits.h> exists even on freestanding compilers. */
44362 #ifdef __STDC__
44363 # include <limits.h>
44364 #else
44365 # include <assert.h>
44366 #endif
44367 /* Override any gcc2 internal prototype to avoid an error. */
44368 #ifdef __cplusplus
44369 extern "C"
44371 #endif
44372 /* We use char because int might match the return type of a gcc2
44373 builtin and then its argument prototype would still apply. */
44374 char $ac_func ();
44375 /* The GNU C library defines this for functions which it implements
44376 to always fail with ENOSYS. Some functions are actually named
44377 something starting with __ and the normal name is an alias. */
44378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44379 choke me
44380 #else
44381 char (*f) () = $ac_func;
44382 #endif
44383 #ifdef __cplusplus
44385 #endif
44388 main ()
44390 return f != $ac_func;
44392 return 0;
44394 _ACEOF
44395 rm -f conftest.$ac_objext conftest$ac_exeext
44396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44397 (eval $ac_link) 2>&5
44398 ac_status=$?
44399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400 (exit $ac_status); } &&
44401 { ac_try='test -s conftest$ac_exeext'
44402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44403 (eval $ac_try) 2>&5
44404 ac_status=$?
44405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44406 (exit $ac_status); }; }; then
44407 eval "$as_ac_var=yes"
44408 else
44409 echo "$as_me: failed program was:" >&5
44410 sed 's/^/| /' conftest.$ac_ext >&5
44412 eval "$as_ac_var=no"
44414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44418 if test `eval echo '${'$as_ac_var'}'` = yes; then
44419 cat >>confdefs.h <<_ACEOF
44420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44421 _ACEOF
44423 else
44424 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
44426 done
44430 # XXX Review this. Nothing uses it.
44431 if test -n "$LIBMATHOBJS"; then
44432 need_libmath=yes
44437 # Test wchar.h for mbstate_t, which is needed for char_traits and
44438 # others even if wchar_t support is not on.
44439 echo "$as_me:$LINENO: checking for mbstate_t" >&5
44440 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
44441 cat >conftest.$ac_ext <<_ACEOF
44442 #line $LINENO "configure"
44443 /* confdefs.h. */
44444 _ACEOF
44445 cat confdefs.h >>conftest.$ac_ext
44446 cat >>conftest.$ac_ext <<_ACEOF
44447 /* end confdefs.h. */
44448 #include <wchar.h>
44450 main ()
44452 mbstate_t teststate;
44454 return 0;
44456 _ACEOF
44457 rm -f conftest.$ac_objext
44458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44459 (eval $ac_compile) 2>&5
44460 ac_status=$?
44461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44462 (exit $ac_status); } &&
44463 { ac_try='test -s conftest.$ac_objext'
44464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44465 (eval $ac_try) 2>&5
44466 ac_status=$?
44467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44468 (exit $ac_status); }; }; then
44469 have_mbstate_t=yes
44470 else
44471 echo "$as_me: failed program was:" >&5
44472 sed 's/^/| /' conftest.$ac_ext >&5
44474 have_mbstate_t=no
44476 rm -f conftest.$ac_objext conftest.$ac_ext
44477 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
44478 echo "${ECHO_T}$have_mbstate_t" >&6
44479 if test x"$have_mbstate_t" = xyes; then
44480 cat >>confdefs.h <<\_ACEOF
44481 #define HAVE_MBSTATE_T 1
44482 _ACEOF
44486 # Sanity check for existence of ISO C99 headers for extended encoding.
44488 for ac_header in wchar.h
44490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44492 echo "$as_me:$LINENO: checking for $ac_header" >&5
44493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44495 echo $ECHO_N "(cached) $ECHO_C" >&6
44497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44499 else
44500 # Is the header compilable?
44501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44503 cat >conftest.$ac_ext <<_ACEOF
44504 #line $LINENO "configure"
44505 /* confdefs.h. */
44506 _ACEOF
44507 cat confdefs.h >>conftest.$ac_ext
44508 cat >>conftest.$ac_ext <<_ACEOF
44509 /* end confdefs.h. */
44510 $ac_includes_default
44511 #include <$ac_header>
44512 _ACEOF
44513 rm -f conftest.$ac_objext
44514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44515 (eval $ac_compile) 2>&5
44516 ac_status=$?
44517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518 (exit $ac_status); } &&
44519 { ac_try='test -s conftest.$ac_objext'
44520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44521 (eval $ac_try) 2>&5
44522 ac_status=$?
44523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524 (exit $ac_status); }; }; then
44525 ac_header_compiler=yes
44526 else
44527 echo "$as_me: failed program was:" >&5
44528 sed 's/^/| /' conftest.$ac_ext >&5
44530 ac_header_compiler=no
44532 rm -f conftest.$ac_objext conftest.$ac_ext
44533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44534 echo "${ECHO_T}$ac_header_compiler" >&6
44536 # Is the header present?
44537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44539 cat >conftest.$ac_ext <<_ACEOF
44540 #line $LINENO "configure"
44541 /* confdefs.h. */
44542 _ACEOF
44543 cat confdefs.h >>conftest.$ac_ext
44544 cat >>conftest.$ac_ext <<_ACEOF
44545 /* end confdefs.h. */
44546 #include <$ac_header>
44547 _ACEOF
44548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44550 ac_status=$?
44551 grep -v '^ *+' conftest.er1 >conftest.err
44552 rm -f conftest.er1
44553 cat conftest.err >&5
44554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44555 (exit $ac_status); } >/dev/null; then
44556 if test -s conftest.err; then
44557 ac_cpp_err=$ac_c_preproc_warn_flag
44558 else
44559 ac_cpp_err=
44561 else
44562 ac_cpp_err=yes
44564 if test -z "$ac_cpp_err"; then
44565 ac_header_preproc=yes
44566 else
44567 echo "$as_me: failed program was:" >&5
44568 sed 's/^/| /' conftest.$ac_ext >&5
44570 ac_header_preproc=no
44572 rm -f conftest.err conftest.$ac_ext
44573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44574 echo "${ECHO_T}$ac_header_preproc" >&6
44576 # So? What about this header?
44577 case $ac_header_compiler:$ac_header_preproc in
44578 yes:no )
44579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44584 cat <<\_ASBOX
44585 ## ------------------------------------ ##
44586 ## Report this to bug-autoconf@gnu.org. ##
44587 ## ------------------------------------ ##
44588 _ASBOX
44590 sed "s/^/$as_me: WARNING: /" >&2
44592 no:yes )
44593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44600 cat <<\_ASBOX
44601 ## ------------------------------------ ##
44602 ## Report this to bug-autoconf@gnu.org. ##
44603 ## ------------------------------------ ##
44604 _ASBOX
44606 sed "s/^/$as_me: WARNING: /" >&2
44608 esac
44609 echo "$as_me:$LINENO: checking for $ac_header" >&5
44610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44612 echo $ECHO_N "(cached) $ECHO_C" >&6
44613 else
44614 eval "$as_ac_Header=$ac_header_preproc"
44616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44621 cat >>confdefs.h <<_ACEOF
44622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44623 _ACEOF
44624 ac_has_wchar_h=yes
44625 else
44626 ac_has_wchar_h=no
44629 done
44632 for ac_header in wctype.h
44634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44636 echo "$as_me:$LINENO: checking for $ac_header" >&5
44637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44639 echo $ECHO_N "(cached) $ECHO_C" >&6
44641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44643 else
44644 # Is the header compilable?
44645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44647 cat >conftest.$ac_ext <<_ACEOF
44648 #line $LINENO "configure"
44649 /* confdefs.h. */
44650 _ACEOF
44651 cat confdefs.h >>conftest.$ac_ext
44652 cat >>conftest.$ac_ext <<_ACEOF
44653 /* end confdefs.h. */
44654 $ac_includes_default
44655 #include <$ac_header>
44656 _ACEOF
44657 rm -f conftest.$ac_objext
44658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44659 (eval $ac_compile) 2>&5
44660 ac_status=$?
44661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44662 (exit $ac_status); } &&
44663 { ac_try='test -s conftest.$ac_objext'
44664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44665 (eval $ac_try) 2>&5
44666 ac_status=$?
44667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44668 (exit $ac_status); }; }; then
44669 ac_header_compiler=yes
44670 else
44671 echo "$as_me: failed program was:" >&5
44672 sed 's/^/| /' conftest.$ac_ext >&5
44674 ac_header_compiler=no
44676 rm -f conftest.$ac_objext conftest.$ac_ext
44677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44678 echo "${ECHO_T}$ac_header_compiler" >&6
44680 # Is the header present?
44681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44683 cat >conftest.$ac_ext <<_ACEOF
44684 #line $LINENO "configure"
44685 /* confdefs.h. */
44686 _ACEOF
44687 cat confdefs.h >>conftest.$ac_ext
44688 cat >>conftest.$ac_ext <<_ACEOF
44689 /* end confdefs.h. */
44690 #include <$ac_header>
44691 _ACEOF
44692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44694 ac_status=$?
44695 grep -v '^ *+' conftest.er1 >conftest.err
44696 rm -f conftest.er1
44697 cat conftest.err >&5
44698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44699 (exit $ac_status); } >/dev/null; then
44700 if test -s conftest.err; then
44701 ac_cpp_err=$ac_c_preproc_warn_flag
44702 else
44703 ac_cpp_err=
44705 else
44706 ac_cpp_err=yes
44708 if test -z "$ac_cpp_err"; then
44709 ac_header_preproc=yes
44710 else
44711 echo "$as_me: failed program was:" >&5
44712 sed 's/^/| /' conftest.$ac_ext >&5
44714 ac_header_preproc=no
44716 rm -f conftest.err conftest.$ac_ext
44717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44718 echo "${ECHO_T}$ac_header_preproc" >&6
44720 # So? What about this header?
44721 case $ac_header_compiler:$ac_header_preproc in
44722 yes:no )
44723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44728 cat <<\_ASBOX
44729 ## ------------------------------------ ##
44730 ## Report this to bug-autoconf@gnu.org. ##
44731 ## ------------------------------------ ##
44732 _ASBOX
44734 sed "s/^/$as_me: WARNING: /" >&2
44736 no:yes )
44737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44744 cat <<\_ASBOX
44745 ## ------------------------------------ ##
44746 ## Report this to bug-autoconf@gnu.org. ##
44747 ## ------------------------------------ ##
44748 _ASBOX
44750 sed "s/^/$as_me: WARNING: /" >&2
44752 esac
44753 echo "$as_me:$LINENO: checking for $ac_header" >&5
44754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44756 echo $ECHO_N "(cached) $ECHO_C" >&6
44757 else
44758 eval "$as_ac_Header=$ac_header_preproc"
44760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44765 cat >>confdefs.h <<_ACEOF
44766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44767 _ACEOF
44768 ac_has_wctype_h=yes
44769 else
44770 ac_has_wctype_h=no
44773 done
44776 # Only continue checking if the ISO C99 headers exist and support is on.
44777 if test x"$ac_has_wchar_h" = xyes &&
44778 test x"$ac_has_wctype_h" = xyes &&
44779 test x"$enable_c_mbchar" != xno; then
44781 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
44782 # numeric_limits can instantiate type_traits<wchar_t>
44783 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
44784 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
44785 cat >conftest.$ac_ext <<_ACEOF
44786 #line $LINENO "configure"
44787 /* confdefs.h. */
44788 _ACEOF
44789 cat confdefs.h >>conftest.$ac_ext
44790 cat >>conftest.$ac_ext <<_ACEOF
44791 /* end confdefs.h. */
44792 #include <wchar.h>
44794 main ()
44796 int i = WCHAR_MIN; int j = WCHAR_MAX;
44798 return 0;
44800 _ACEOF
44801 rm -f conftest.$ac_objext
44802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44803 (eval $ac_compile) 2>&5
44804 ac_status=$?
44805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806 (exit $ac_status); } &&
44807 { ac_try='test -s conftest.$ac_objext'
44808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44809 (eval $ac_try) 2>&5
44810 ac_status=$?
44811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812 (exit $ac_status); }; }; then
44813 has_wchar_minmax=yes
44814 else
44815 echo "$as_me: failed program was:" >&5
44816 sed 's/^/| /' conftest.$ac_ext >&5
44818 has_wchar_minmax=no
44820 rm -f conftest.$ac_objext conftest.$ac_ext
44821 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
44822 echo "${ECHO_T}$has_wchar_minmax" >&6
44824 # Test wchar.h for WEOF, which is what we use to determine whether
44825 # to specialize for char_traits<wchar_t> or not.
44826 echo "$as_me:$LINENO: checking for WEOF" >&5
44827 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
44828 cat >conftest.$ac_ext <<_ACEOF
44829 #line $LINENO "configure"
44830 /* confdefs.h. */
44831 _ACEOF
44832 cat confdefs.h >>conftest.$ac_ext
44833 cat >>conftest.$ac_ext <<_ACEOF
44834 /* end confdefs.h. */
44836 #include <wchar.h>
44837 #include <stddef.h>
44839 main ()
44841 wint_t i = WEOF;
44843 return 0;
44845 _ACEOF
44846 rm -f conftest.$ac_objext
44847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44848 (eval $ac_compile) 2>&5
44849 ac_status=$?
44850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851 (exit $ac_status); } &&
44852 { ac_try='test -s conftest.$ac_objext'
44853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854 (eval $ac_try) 2>&5
44855 ac_status=$?
44856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857 (exit $ac_status); }; }; then
44858 has_weof=yes
44859 else
44860 echo "$as_me: failed program was:" >&5
44861 sed 's/^/| /' conftest.$ac_ext >&5
44863 has_weof=no
44865 rm -f conftest.$ac_objext conftest.$ac_ext
44866 echo "$as_me:$LINENO: result: $has_weof" >&5
44867 echo "${ECHO_T}$has_weof" >&6
44869 # Tests for wide character functions used in char_traits<wchar_t>.
44870 ac_wfuncs=yes
44877 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
44879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44880 echo "$as_me:$LINENO: checking for $ac_func" >&5
44881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44882 if eval "test \"\${$as_ac_var+set}\" = set"; then
44883 echo $ECHO_N "(cached) $ECHO_C" >&6
44884 else
44885 if test x$gcc_no_link = xyes; then
44886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44888 { (exit 1); exit 1; }; }
44890 cat >conftest.$ac_ext <<_ACEOF
44891 #line $LINENO "configure"
44892 /* confdefs.h. */
44893 _ACEOF
44894 cat confdefs.h >>conftest.$ac_ext
44895 cat >>conftest.$ac_ext <<_ACEOF
44896 /* end confdefs.h. */
44897 /* System header to define __stub macros and hopefully few prototypes,
44898 which can conflict with char $ac_func (); below.
44899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44900 <limits.h> exists even on freestanding compilers. */
44901 #ifdef __STDC__
44902 # include <limits.h>
44903 #else
44904 # include <assert.h>
44905 #endif
44906 /* Override any gcc2 internal prototype to avoid an error. */
44907 #ifdef __cplusplus
44908 extern "C"
44910 #endif
44911 /* We use char because int might match the return type of a gcc2
44912 builtin and then its argument prototype would still apply. */
44913 char $ac_func ();
44914 /* The GNU C library defines this for functions which it implements
44915 to always fail with ENOSYS. Some functions are actually named
44916 something starting with __ and the normal name is an alias. */
44917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44918 choke me
44919 #else
44920 char (*f) () = $ac_func;
44921 #endif
44922 #ifdef __cplusplus
44924 #endif
44927 main ()
44929 return f != $ac_func;
44931 return 0;
44933 _ACEOF
44934 rm -f conftest.$ac_objext conftest$ac_exeext
44935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44936 (eval $ac_link) 2>&5
44937 ac_status=$?
44938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44939 (exit $ac_status); } &&
44940 { ac_try='test -s conftest$ac_exeext'
44941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44942 (eval $ac_try) 2>&5
44943 ac_status=$?
44944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44945 (exit $ac_status); }; }; then
44946 eval "$as_ac_var=yes"
44947 else
44948 echo "$as_me: failed program was:" >&5
44949 sed 's/^/| /' conftest.$ac_ext >&5
44951 eval "$as_ac_var=no"
44953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44957 if test `eval echo '${'$as_ac_var'}'` = yes; then
44958 cat >>confdefs.h <<_ACEOF
44959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44960 _ACEOF
44962 else
44963 ac_wfuncs=no
44965 done
44968 # Checks for names injected into std:: by the c_std headers.
45019 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
45020 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
45021 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
45022 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
45023 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
45024 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
45026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45027 echo "$as_me:$LINENO: checking for $ac_func" >&5
45028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45029 if eval "test \"\${$as_ac_var+set}\" = set"; then
45030 echo $ECHO_N "(cached) $ECHO_C" >&6
45031 else
45032 if test x$gcc_no_link = xyes; then
45033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45035 { (exit 1); exit 1; }; }
45037 cat >conftest.$ac_ext <<_ACEOF
45038 #line $LINENO "configure"
45039 /* confdefs.h. */
45040 _ACEOF
45041 cat confdefs.h >>conftest.$ac_ext
45042 cat >>conftest.$ac_ext <<_ACEOF
45043 /* end confdefs.h. */
45044 /* System header to define __stub macros and hopefully few prototypes,
45045 which can conflict with char $ac_func (); below.
45046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45047 <limits.h> exists even on freestanding compilers. */
45048 #ifdef __STDC__
45049 # include <limits.h>
45050 #else
45051 # include <assert.h>
45052 #endif
45053 /* Override any gcc2 internal prototype to avoid an error. */
45054 #ifdef __cplusplus
45055 extern "C"
45057 #endif
45058 /* We use char because int might match the return type of a gcc2
45059 builtin and then its argument prototype would still apply. */
45060 char $ac_func ();
45061 /* The GNU C library defines this for functions which it implements
45062 to always fail with ENOSYS. Some functions are actually named
45063 something starting with __ and the normal name is an alias. */
45064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45065 choke me
45066 #else
45067 char (*f) () = $ac_func;
45068 #endif
45069 #ifdef __cplusplus
45071 #endif
45074 main ()
45076 return f != $ac_func;
45078 return 0;
45080 _ACEOF
45081 rm -f conftest.$ac_objext conftest$ac_exeext
45082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45083 (eval $ac_link) 2>&5
45084 ac_status=$?
45085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45086 (exit $ac_status); } &&
45087 { ac_try='test -s conftest$ac_exeext'
45088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45089 (eval $ac_try) 2>&5
45090 ac_status=$?
45091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092 (exit $ac_status); }; }; then
45093 eval "$as_ac_var=yes"
45094 else
45095 echo "$as_me: failed program was:" >&5
45096 sed 's/^/| /' conftest.$ac_ext >&5
45098 eval "$as_ac_var=no"
45100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45104 if test `eval echo '${'$as_ac_var'}'` = yes; then
45105 cat >>confdefs.h <<_ACEOF
45106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45107 _ACEOF
45109 else
45110 ac_wfuncs=no
45112 done
45115 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
45116 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
45117 if test x"$has_weof" = xyes &&
45118 test x"$has_wchar_minmax" = xyes &&
45119 test x"$ac_wfuncs" = xyes;
45120 then
45121 ac_isoC99_wchar_t=yes
45122 else
45123 ac_isoC99_wchar_t=no
45125 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
45126 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
45128 # Use iconv for wchar_t to char conversions. As such, check for
45129 # X/Open Portability Guide, version 2 features (XPG2).
45130 if test "${ac_cv_header_iconv_h+set}" = set; then
45131 echo "$as_me:$LINENO: checking for iconv.h" >&5
45132 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45133 if test "${ac_cv_header_iconv_h+set}" = set; then
45134 echo $ECHO_N "(cached) $ECHO_C" >&6
45136 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45137 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45138 else
45139 # Is the header compilable?
45140 echo "$as_me:$LINENO: checking iconv.h usability" >&5
45141 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
45142 cat >conftest.$ac_ext <<_ACEOF
45143 #line $LINENO "configure"
45144 /* confdefs.h. */
45145 _ACEOF
45146 cat confdefs.h >>conftest.$ac_ext
45147 cat >>conftest.$ac_ext <<_ACEOF
45148 /* end confdefs.h. */
45149 $ac_includes_default
45150 #include <iconv.h>
45151 _ACEOF
45152 rm -f conftest.$ac_objext
45153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45154 (eval $ac_compile) 2>&5
45155 ac_status=$?
45156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45157 (exit $ac_status); } &&
45158 { ac_try='test -s conftest.$ac_objext'
45159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45160 (eval $ac_try) 2>&5
45161 ac_status=$?
45162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45163 (exit $ac_status); }; }; then
45164 ac_header_compiler=yes
45165 else
45166 echo "$as_me: failed program was:" >&5
45167 sed 's/^/| /' conftest.$ac_ext >&5
45169 ac_header_compiler=no
45171 rm -f conftest.$ac_objext conftest.$ac_ext
45172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45173 echo "${ECHO_T}$ac_header_compiler" >&6
45175 # Is the header present?
45176 echo "$as_me:$LINENO: checking iconv.h presence" >&5
45177 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
45178 cat >conftest.$ac_ext <<_ACEOF
45179 #line $LINENO "configure"
45180 /* confdefs.h. */
45181 _ACEOF
45182 cat confdefs.h >>conftest.$ac_ext
45183 cat >>conftest.$ac_ext <<_ACEOF
45184 /* end confdefs.h. */
45185 #include <iconv.h>
45186 _ACEOF
45187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45189 ac_status=$?
45190 grep -v '^ *+' conftest.er1 >conftest.err
45191 rm -f conftest.er1
45192 cat conftest.err >&5
45193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194 (exit $ac_status); } >/dev/null; then
45195 if test -s conftest.err; then
45196 ac_cpp_err=$ac_c_preproc_warn_flag
45197 else
45198 ac_cpp_err=
45200 else
45201 ac_cpp_err=yes
45203 if test -z "$ac_cpp_err"; then
45204 ac_header_preproc=yes
45205 else
45206 echo "$as_me: failed program was:" >&5
45207 sed 's/^/| /' conftest.$ac_ext >&5
45209 ac_header_preproc=no
45211 rm -f conftest.err conftest.$ac_ext
45212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45213 echo "${ECHO_T}$ac_header_preproc" >&6
45215 # So? What about this header?
45216 case $ac_header_compiler:$ac_header_preproc in
45217 yes:no )
45218 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
45219 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45220 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45221 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45223 cat <<\_ASBOX
45224 ## ------------------------------------ ##
45225 ## Report this to bug-autoconf@gnu.org. ##
45226 ## ------------------------------------ ##
45227 _ASBOX
45229 sed "s/^/$as_me: WARNING: /" >&2
45231 no:yes )
45232 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
45233 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
45234 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
45235 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
45236 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45237 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45239 cat <<\_ASBOX
45240 ## ------------------------------------ ##
45241 ## Report this to bug-autoconf@gnu.org. ##
45242 ## ------------------------------------ ##
45243 _ASBOX
45245 sed "s/^/$as_me: WARNING: /" >&2
45247 esac
45248 echo "$as_me:$LINENO: checking for iconv.h" >&5
45249 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45250 if test "${ac_cv_header_iconv_h+set}" = set; then
45251 echo $ECHO_N "(cached) $ECHO_C" >&6
45252 else
45253 ac_cv_header_iconv_h=$ac_header_preproc
45255 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45256 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45259 if test $ac_cv_header_iconv_h = yes; then
45260 ac_has_iconv_h=yes
45261 else
45262 ac_has_iconv_h=no
45266 if test "${ac_cv_header_langinfo_h+set}" = set; then
45267 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45268 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45269 if test "${ac_cv_header_langinfo_h+set}" = set; then
45270 echo $ECHO_N "(cached) $ECHO_C" >&6
45272 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45273 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45274 else
45275 # Is the header compilable?
45276 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
45277 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
45278 cat >conftest.$ac_ext <<_ACEOF
45279 #line $LINENO "configure"
45280 /* confdefs.h. */
45281 _ACEOF
45282 cat confdefs.h >>conftest.$ac_ext
45283 cat >>conftest.$ac_ext <<_ACEOF
45284 /* end confdefs.h. */
45285 $ac_includes_default
45286 #include <langinfo.h>
45287 _ACEOF
45288 rm -f conftest.$ac_objext
45289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45290 (eval $ac_compile) 2>&5
45291 ac_status=$?
45292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45293 (exit $ac_status); } &&
45294 { ac_try='test -s conftest.$ac_objext'
45295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45296 (eval $ac_try) 2>&5
45297 ac_status=$?
45298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45299 (exit $ac_status); }; }; then
45300 ac_header_compiler=yes
45301 else
45302 echo "$as_me: failed program was:" >&5
45303 sed 's/^/| /' conftest.$ac_ext >&5
45305 ac_header_compiler=no
45307 rm -f conftest.$ac_objext conftest.$ac_ext
45308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45309 echo "${ECHO_T}$ac_header_compiler" >&6
45311 # Is the header present?
45312 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
45313 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
45314 cat >conftest.$ac_ext <<_ACEOF
45315 #line $LINENO "configure"
45316 /* confdefs.h. */
45317 _ACEOF
45318 cat confdefs.h >>conftest.$ac_ext
45319 cat >>conftest.$ac_ext <<_ACEOF
45320 /* end confdefs.h. */
45321 #include <langinfo.h>
45322 _ACEOF
45323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45325 ac_status=$?
45326 grep -v '^ *+' conftest.er1 >conftest.err
45327 rm -f conftest.er1
45328 cat conftest.err >&5
45329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330 (exit $ac_status); } >/dev/null; then
45331 if test -s conftest.err; then
45332 ac_cpp_err=$ac_c_preproc_warn_flag
45333 else
45334 ac_cpp_err=
45336 else
45337 ac_cpp_err=yes
45339 if test -z "$ac_cpp_err"; then
45340 ac_header_preproc=yes
45341 else
45342 echo "$as_me: failed program was:" >&5
45343 sed 's/^/| /' conftest.$ac_ext >&5
45345 ac_header_preproc=no
45347 rm -f conftest.err conftest.$ac_ext
45348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45349 echo "${ECHO_T}$ac_header_preproc" >&6
45351 # So? What about this header?
45352 case $ac_header_compiler:$ac_header_preproc in
45353 yes:no )
45354 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
45355 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45356 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45357 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45359 cat <<\_ASBOX
45360 ## ------------------------------------ ##
45361 ## Report this to bug-autoconf@gnu.org. ##
45362 ## ------------------------------------ ##
45363 _ASBOX
45365 sed "s/^/$as_me: WARNING: /" >&2
45367 no:yes )
45368 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
45369 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
45370 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
45371 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
45372 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45373 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45375 cat <<\_ASBOX
45376 ## ------------------------------------ ##
45377 ## Report this to bug-autoconf@gnu.org. ##
45378 ## ------------------------------------ ##
45379 _ASBOX
45381 sed "s/^/$as_me: WARNING: /" >&2
45383 esac
45384 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45385 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45386 if test "${ac_cv_header_langinfo_h+set}" = set; then
45387 echo $ECHO_N "(cached) $ECHO_C" >&6
45388 else
45389 ac_cv_header_langinfo_h=$ac_header_preproc
45391 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45392 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45395 if test $ac_cv_header_langinfo_h = yes; then
45396 ac_has_langinfo_h=yes
45397 else
45398 ac_has_langinfo_h=no
45403 # Check for existence of libiconv.a providing XPG2 wchar_t support.
45404 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
45405 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
45406 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
45407 echo $ECHO_N "(cached) $ECHO_C" >&6
45408 else
45409 ac_check_lib_save_LIBS=$LIBS
45410 LIBS="-liconv $LIBS"
45411 if test x$gcc_no_link = xyes; then
45412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45414 { (exit 1); exit 1; }; }
45416 cat >conftest.$ac_ext <<_ACEOF
45417 #line $LINENO "configure"
45418 /* confdefs.h. */
45419 _ACEOF
45420 cat confdefs.h >>conftest.$ac_ext
45421 cat >>conftest.$ac_ext <<_ACEOF
45422 /* end confdefs.h. */
45424 /* Override any gcc2 internal prototype to avoid an error. */
45425 #ifdef __cplusplus
45426 extern "C"
45427 #endif
45428 /* We use char because int might match the return type of a gcc2
45429 builtin and then its argument prototype would still apply. */
45430 char iconv ();
45432 main ()
45434 iconv ();
45436 return 0;
45438 _ACEOF
45439 rm -f conftest.$ac_objext conftest$ac_exeext
45440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45441 (eval $ac_link) 2>&5
45442 ac_status=$?
45443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444 (exit $ac_status); } &&
45445 { ac_try='test -s conftest$ac_exeext'
45446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45447 (eval $ac_try) 2>&5
45448 ac_status=$?
45449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45450 (exit $ac_status); }; }; then
45451 ac_cv_lib_iconv_iconv=yes
45452 else
45453 echo "$as_me: failed program was:" >&5
45454 sed 's/^/| /' conftest.$ac_ext >&5
45456 ac_cv_lib_iconv_iconv=no
45458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45459 LIBS=$ac_check_lib_save_LIBS
45461 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
45462 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
45463 if test $ac_cv_lib_iconv_iconv = yes; then
45464 libiconv="-liconv"
45467 ac_save_LIBS="$LIBS"
45468 LIBS="$LIBS $libiconv"
45474 for ac_func in iconv_open iconv_close iconv nl_langinfo
45476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45477 echo "$as_me:$LINENO: checking for $ac_func" >&5
45478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45479 if eval "test \"\${$as_ac_var+set}\" = set"; then
45480 echo $ECHO_N "(cached) $ECHO_C" >&6
45481 else
45482 if test x$gcc_no_link = xyes; then
45483 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45485 { (exit 1); exit 1; }; }
45487 cat >conftest.$ac_ext <<_ACEOF
45488 #line $LINENO "configure"
45489 /* confdefs.h. */
45490 _ACEOF
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h. */
45494 /* System header to define __stub macros and hopefully few prototypes,
45495 which can conflict with char $ac_func (); below.
45496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45497 <limits.h> exists even on freestanding compilers. */
45498 #ifdef __STDC__
45499 # include <limits.h>
45500 #else
45501 # include <assert.h>
45502 #endif
45503 /* Override any gcc2 internal prototype to avoid an error. */
45504 #ifdef __cplusplus
45505 extern "C"
45507 #endif
45508 /* We use char because int might match the return type of a gcc2
45509 builtin and then its argument prototype would still apply. */
45510 char $ac_func ();
45511 /* The GNU C library defines this for functions which it implements
45512 to always fail with ENOSYS. Some functions are actually named
45513 something starting with __ and the normal name is an alias. */
45514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45515 choke me
45516 #else
45517 char (*f) () = $ac_func;
45518 #endif
45519 #ifdef __cplusplus
45521 #endif
45524 main ()
45526 return f != $ac_func;
45528 return 0;
45530 _ACEOF
45531 rm -f conftest.$ac_objext conftest$ac_exeext
45532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45533 (eval $ac_link) 2>&5
45534 ac_status=$?
45535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45536 (exit $ac_status); } &&
45537 { ac_try='test -s conftest$ac_exeext'
45538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45539 (eval $ac_try) 2>&5
45540 ac_status=$?
45541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45542 (exit $ac_status); }; }; then
45543 eval "$as_ac_var=yes"
45544 else
45545 echo "$as_me: failed program was:" >&5
45546 sed 's/^/| /' conftest.$ac_ext >&5
45548 eval "$as_ac_var=no"
45550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45554 if test `eval echo '${'$as_ac_var'}'` = yes; then
45555 cat >>confdefs.h <<_ACEOF
45556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45557 _ACEOF
45558 ac_XPG2funcs=yes
45559 else
45560 ac_XPG2funcs=no
45562 done
45565 LIBS="$ac_save_LIBS"
45567 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
45568 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
45569 if test x"$ac_has_iconv_h" = xyes &&
45570 test x"$ac_has_langinfo_h" = xyes &&
45571 test x"$ac_XPG2funcs" = xyes;
45572 then
45573 ac_XPG2_wchar_t=yes
45574 else
45575 ac_XPG2_wchar_t=no
45577 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
45578 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
45580 # At the moment, only enable wchar_t specializations if all the
45581 # above support is present.
45582 if test x"$ac_isoC99_wchar_t" = xyes &&
45583 test x"$ac_XPG2_wchar_t" = xyes;
45584 then
45585 cat >>confdefs.h <<\_ACEOF
45586 #define _GLIBCXX_USE_WCHAR_T 1
45587 _ACEOF
45589 enable_wchar_t=yes
45592 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
45593 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
45594 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
45595 echo "${ECHO_T}$enable_wchar_t" >&6
45598 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45599 ac_save_CXXFLAGS="$CXXFLAGS"
45600 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45603 echo "$as_me:$LINENO: checking for strtold declaration" >&5
45604 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
45605 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45606 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
45607 echo $ECHO_N "(cached) $ECHO_C" >&6
45608 else
45612 ac_ext=cc
45613 ac_cpp='$CXXCPP $CPPFLAGS'
45614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45618 cat >conftest.$ac_ext <<_ACEOF
45619 #line $LINENO "configure"
45620 /* confdefs.h. */
45621 _ACEOF
45622 cat confdefs.h >>conftest.$ac_ext
45623 cat >>conftest.$ac_ext <<_ACEOF
45624 /* end confdefs.h. */
45625 #include <stdlib.h>
45627 main ()
45629 strtold(0, 0);
45631 return 0;
45633 _ACEOF
45634 rm -f conftest.$ac_objext
45635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45636 (eval $ac_compile) 2>&5
45637 ac_status=$?
45638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45639 (exit $ac_status); } &&
45640 { ac_try='test -s conftest.$ac_objext'
45641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45642 (eval $ac_try) 2>&5
45643 ac_status=$?
45644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45645 (exit $ac_status); }; }; then
45646 glibcxx_cv_func_strtold_use=yes
45647 else
45648 echo "$as_me: failed program was:" >&5
45649 sed 's/^/| /' conftest.$ac_ext >&5
45651 glibcxx_cv_func_strtold_use=no
45653 rm -f conftest.$ac_objext conftest.$ac_ext
45654 ac_ext=c
45655 ac_cpp='$CPP $CPPFLAGS'
45656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45664 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
45665 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
45666 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
45668 for ac_func in strtold
45670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45671 echo "$as_me:$LINENO: checking for $ac_func" >&5
45672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45673 if eval "test \"\${$as_ac_var+set}\" = set"; then
45674 echo $ECHO_N "(cached) $ECHO_C" >&6
45675 else
45676 if test x$gcc_no_link = xyes; then
45677 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45679 { (exit 1); exit 1; }; }
45681 cat >conftest.$ac_ext <<_ACEOF
45682 #line $LINENO "configure"
45683 /* confdefs.h. */
45684 _ACEOF
45685 cat confdefs.h >>conftest.$ac_ext
45686 cat >>conftest.$ac_ext <<_ACEOF
45687 /* end confdefs.h. */
45688 /* System header to define __stub macros and hopefully few prototypes,
45689 which can conflict with char $ac_func (); below.
45690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45691 <limits.h> exists even on freestanding compilers. */
45692 #ifdef __STDC__
45693 # include <limits.h>
45694 #else
45695 # include <assert.h>
45696 #endif
45697 /* Override any gcc2 internal prototype to avoid an error. */
45698 #ifdef __cplusplus
45699 extern "C"
45701 #endif
45702 /* We use char because int might match the return type of a gcc2
45703 builtin and then its argument prototype would still apply. */
45704 char $ac_func ();
45705 /* The GNU C library defines this for functions which it implements
45706 to always fail with ENOSYS. Some functions are actually named
45707 something starting with __ and the normal name is an alias. */
45708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45709 choke me
45710 #else
45711 char (*f) () = $ac_func;
45712 #endif
45713 #ifdef __cplusplus
45715 #endif
45718 main ()
45720 return f != $ac_func;
45722 return 0;
45724 _ACEOF
45725 rm -f conftest.$ac_objext conftest$ac_exeext
45726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45727 (eval $ac_link) 2>&5
45728 ac_status=$?
45729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45730 (exit $ac_status); } &&
45731 { ac_try='test -s conftest$ac_exeext'
45732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45733 (eval $ac_try) 2>&5
45734 ac_status=$?
45735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45736 (exit $ac_status); }; }; then
45737 eval "$as_ac_var=yes"
45738 else
45739 echo "$as_me: failed program was:" >&5
45740 sed 's/^/| /' conftest.$ac_ext >&5
45742 eval "$as_ac_var=no"
45744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45748 if test `eval echo '${'$as_ac_var'}'` = yes; then
45749 cat >>confdefs.h <<_ACEOF
45750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45751 _ACEOF
45754 done
45759 echo "$as_me:$LINENO: checking for strtof declaration" >&5
45760 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
45761 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
45762 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
45763 echo $ECHO_N "(cached) $ECHO_C" >&6
45764 else
45768 ac_ext=cc
45769 ac_cpp='$CXXCPP $CPPFLAGS'
45770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45774 cat >conftest.$ac_ext <<_ACEOF
45775 #line $LINENO "configure"
45776 /* confdefs.h. */
45777 _ACEOF
45778 cat confdefs.h >>conftest.$ac_ext
45779 cat >>conftest.$ac_ext <<_ACEOF
45780 /* end confdefs.h. */
45781 #include <stdlib.h>
45783 main ()
45785 strtof(0, 0);
45787 return 0;
45789 _ACEOF
45790 rm -f conftest.$ac_objext
45791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45792 (eval $ac_compile) 2>&5
45793 ac_status=$?
45794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45795 (exit $ac_status); } &&
45796 { ac_try='test -s conftest.$ac_objext'
45797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45798 (eval $ac_try) 2>&5
45799 ac_status=$?
45800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45801 (exit $ac_status); }; }; then
45802 glibcxx_cv_func_strtof_use=yes
45803 else
45804 echo "$as_me: failed program was:" >&5
45805 sed 's/^/| /' conftest.$ac_ext >&5
45807 glibcxx_cv_func_strtof_use=no
45809 rm -f conftest.$ac_objext conftest.$ac_ext
45810 ac_ext=c
45811 ac_cpp='$CPP $CPPFLAGS'
45812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45820 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
45821 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
45822 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
45824 for ac_func in strtof
45826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45827 echo "$as_me:$LINENO: checking for $ac_func" >&5
45828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45829 if eval "test \"\${$as_ac_var+set}\" = set"; then
45830 echo $ECHO_N "(cached) $ECHO_C" >&6
45831 else
45832 if test x$gcc_no_link = xyes; then
45833 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45834 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45835 { (exit 1); exit 1; }; }
45837 cat >conftest.$ac_ext <<_ACEOF
45838 #line $LINENO "configure"
45839 /* confdefs.h. */
45840 _ACEOF
45841 cat confdefs.h >>conftest.$ac_ext
45842 cat >>conftest.$ac_ext <<_ACEOF
45843 /* end confdefs.h. */
45844 /* System header to define __stub macros and hopefully few prototypes,
45845 which can conflict with char $ac_func (); below.
45846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45847 <limits.h> exists even on freestanding compilers. */
45848 #ifdef __STDC__
45849 # include <limits.h>
45850 #else
45851 # include <assert.h>
45852 #endif
45853 /* Override any gcc2 internal prototype to avoid an error. */
45854 #ifdef __cplusplus
45855 extern "C"
45857 #endif
45858 /* We use char because int might match the return type of a gcc2
45859 builtin and then its argument prototype would still apply. */
45860 char $ac_func ();
45861 /* The GNU C library defines this for functions which it implements
45862 to always fail with ENOSYS. Some functions are actually named
45863 something starting with __ and the normal name is an alias. */
45864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45865 choke me
45866 #else
45867 char (*f) () = $ac_func;
45868 #endif
45869 #ifdef __cplusplus
45871 #endif
45874 main ()
45876 return f != $ac_func;
45878 return 0;
45880 _ACEOF
45881 rm -f conftest.$ac_objext conftest$ac_exeext
45882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45883 (eval $ac_link) 2>&5
45884 ac_status=$?
45885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45886 (exit $ac_status); } &&
45887 { ac_try='test -s conftest$ac_exeext'
45888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45889 (eval $ac_try) 2>&5
45890 ac_status=$?
45891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45892 (exit $ac_status); }; }; then
45893 eval "$as_ac_var=yes"
45894 else
45895 echo "$as_me: failed program was:" >&5
45896 sed 's/^/| /' conftest.$ac_ext >&5
45898 eval "$as_ac_var=no"
45900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45904 if test `eval echo '${'$as_ac_var'}'` = yes; then
45905 cat >>confdefs.h <<_ACEOF
45906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45907 _ACEOF
45910 done
45915 for ac_func in drand48
45917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45918 echo "$as_me:$LINENO: checking for $ac_func" >&5
45919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45920 if eval "test \"\${$as_ac_var+set}\" = set"; then
45921 echo $ECHO_N "(cached) $ECHO_C" >&6
45922 else
45923 if test x$gcc_no_link = xyes; then
45924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45926 { (exit 1); exit 1; }; }
45928 cat >conftest.$ac_ext <<_ACEOF
45929 #line $LINENO "configure"
45930 /* confdefs.h. */
45931 _ACEOF
45932 cat confdefs.h >>conftest.$ac_ext
45933 cat >>conftest.$ac_ext <<_ACEOF
45934 /* end confdefs.h. */
45935 /* System header to define __stub macros and hopefully few prototypes,
45936 which can conflict with char $ac_func (); below.
45937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45938 <limits.h> exists even on freestanding compilers. */
45939 #ifdef __STDC__
45940 # include <limits.h>
45941 #else
45942 # include <assert.h>
45943 #endif
45944 /* Override any gcc2 internal prototype to avoid an error. */
45945 #ifdef __cplusplus
45946 extern "C"
45948 #endif
45949 /* We use char because int might match the return type of a gcc2
45950 builtin and then its argument prototype would still apply. */
45951 char $ac_func ();
45952 /* The GNU C library defines this for functions which it implements
45953 to always fail with ENOSYS. Some functions are actually named
45954 something starting with __ and the normal name is an alias. */
45955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45956 choke me
45957 #else
45958 char (*f) () = $ac_func;
45959 #endif
45960 #ifdef __cplusplus
45962 #endif
45965 main ()
45967 return f != $ac_func;
45969 return 0;
45971 _ACEOF
45972 rm -f conftest.$ac_objext conftest$ac_exeext
45973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45974 (eval $ac_link) 2>&5
45975 ac_status=$?
45976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45977 (exit $ac_status); } &&
45978 { ac_try='test -s conftest$ac_exeext'
45979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45980 (eval $ac_try) 2>&5
45981 ac_status=$?
45982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45983 (exit $ac_status); }; }; then
45984 eval "$as_ac_var=yes"
45985 else
45986 echo "$as_me: failed program was:" >&5
45987 sed 's/^/| /' conftest.$ac_ext >&5
45989 eval "$as_ac_var=no"
45991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45995 if test `eval echo '${'$as_ac_var'}'` = yes; then
45996 cat >>confdefs.h <<_ACEOF
45997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45998 _ACEOF
46001 done
46004 CXXFLAGS="$ac_save_CXXFLAGS"
46007 # For showmanyc_helper().
46010 for ac_header in sys/ioctl.h sys/filio.h
46012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46014 echo "$as_me:$LINENO: checking for $ac_header" >&5
46015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46017 echo $ECHO_N "(cached) $ECHO_C" >&6
46019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46021 else
46022 # Is the header compilable?
46023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46025 cat >conftest.$ac_ext <<_ACEOF
46026 #line $LINENO "configure"
46027 /* confdefs.h. */
46028 _ACEOF
46029 cat confdefs.h >>conftest.$ac_ext
46030 cat >>conftest.$ac_ext <<_ACEOF
46031 /* end confdefs.h. */
46032 $ac_includes_default
46033 #include <$ac_header>
46034 _ACEOF
46035 rm -f conftest.$ac_objext
46036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46037 (eval $ac_compile) 2>&5
46038 ac_status=$?
46039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040 (exit $ac_status); } &&
46041 { ac_try='test -s conftest.$ac_objext'
46042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46043 (eval $ac_try) 2>&5
46044 ac_status=$?
46045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046 (exit $ac_status); }; }; then
46047 ac_header_compiler=yes
46048 else
46049 echo "$as_me: failed program was:" >&5
46050 sed 's/^/| /' conftest.$ac_ext >&5
46052 ac_header_compiler=no
46054 rm -f conftest.$ac_objext conftest.$ac_ext
46055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46056 echo "${ECHO_T}$ac_header_compiler" >&6
46058 # Is the header present?
46059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46061 cat >conftest.$ac_ext <<_ACEOF
46062 #line $LINENO "configure"
46063 /* confdefs.h. */
46064 _ACEOF
46065 cat confdefs.h >>conftest.$ac_ext
46066 cat >>conftest.$ac_ext <<_ACEOF
46067 /* end confdefs.h. */
46068 #include <$ac_header>
46069 _ACEOF
46070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46072 ac_status=$?
46073 grep -v '^ *+' conftest.er1 >conftest.err
46074 rm -f conftest.er1
46075 cat conftest.err >&5
46076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46077 (exit $ac_status); } >/dev/null; then
46078 if test -s conftest.err; then
46079 ac_cpp_err=$ac_c_preproc_warn_flag
46080 else
46081 ac_cpp_err=
46083 else
46084 ac_cpp_err=yes
46086 if test -z "$ac_cpp_err"; then
46087 ac_header_preproc=yes
46088 else
46089 echo "$as_me: failed program was:" >&5
46090 sed 's/^/| /' conftest.$ac_ext >&5
46092 ac_header_preproc=no
46094 rm -f conftest.err conftest.$ac_ext
46095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46096 echo "${ECHO_T}$ac_header_preproc" >&6
46098 # So? What about this header?
46099 case $ac_header_compiler:$ac_header_preproc in
46100 yes:no )
46101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46106 cat <<\_ASBOX
46107 ## ------------------------------------ ##
46108 ## Report this to bug-autoconf@gnu.org. ##
46109 ## ------------------------------------ ##
46110 _ASBOX
46112 sed "s/^/$as_me: WARNING: /" >&2
46114 no:yes )
46115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46122 cat <<\_ASBOX
46123 ## ------------------------------------ ##
46124 ## Report this to bug-autoconf@gnu.org. ##
46125 ## ------------------------------------ ##
46126 _ASBOX
46128 sed "s/^/$as_me: WARNING: /" >&2
46130 esac
46131 echo "$as_me:$LINENO: checking for $ac_header" >&5
46132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46134 echo $ECHO_N "(cached) $ECHO_C" >&6
46135 else
46136 eval "$as_ac_Header=$ac_header_preproc"
46138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46143 cat >>confdefs.h <<_ACEOF
46144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46145 _ACEOF
46149 done
46152 if test "${glibcxx_cv_POLL+set}" = set; then
46153 echo $ECHO_N "(cached) $ECHO_C" >&6
46154 else
46156 cat >conftest.$ac_ext <<_ACEOF
46157 #line $LINENO "configure"
46158 /* confdefs.h. */
46159 _ACEOF
46160 cat confdefs.h >>conftest.$ac_ext
46161 cat >>conftest.$ac_ext <<_ACEOF
46162 /* end confdefs.h. */
46163 #include <poll.h>
46165 main ()
46167 struct pollfd pfd[1];
46168 pfd[0].events = POLLIN;
46169 poll(pfd, 1, 0);
46171 return 0;
46173 _ACEOF
46174 rm -f conftest.$ac_objext
46175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46176 (eval $ac_compile) 2>&5
46177 ac_status=$?
46178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46179 (exit $ac_status); } &&
46180 { ac_try='test -s conftest.$ac_objext'
46181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46182 (eval $ac_try) 2>&5
46183 ac_status=$?
46184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46185 (exit $ac_status); }; }; then
46186 glibcxx_cv_POLL=yes
46187 else
46188 echo "$as_me: failed program was:" >&5
46189 sed 's/^/| /' conftest.$ac_ext >&5
46191 glibcxx_cv_POLL=no
46193 rm -f conftest.$ac_objext conftest.$ac_ext
46197 if test $glibcxx_cv_POLL = yes; then
46198 cat >>confdefs.h <<\_ACEOF
46199 #define HAVE_POLL 1
46200 _ACEOF
46205 if test "${glibcxx_cv_S_ISREG+set}" = set; then
46206 echo $ECHO_N "(cached) $ECHO_C" >&6
46207 else
46209 if test x$gcc_no_link = xyes; then
46210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46212 { (exit 1); exit 1; }; }
46214 cat >conftest.$ac_ext <<_ACEOF
46215 #line $LINENO "configure"
46216 /* confdefs.h. */
46217 _ACEOF
46218 cat confdefs.h >>conftest.$ac_ext
46219 cat >>conftest.$ac_ext <<_ACEOF
46220 /* end confdefs.h. */
46221 #include <sys/stat.h>
46223 main ()
46225 struct stat buffer;
46226 fstat(0, &buffer);
46227 S_ISREG(buffer.st_mode);
46229 return 0;
46231 _ACEOF
46232 rm -f conftest.$ac_objext conftest$ac_exeext
46233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46234 (eval $ac_link) 2>&5
46235 ac_status=$?
46236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46237 (exit $ac_status); } &&
46238 { ac_try='test -s conftest$ac_exeext'
46239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46240 (eval $ac_try) 2>&5
46241 ac_status=$?
46242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46243 (exit $ac_status); }; }; then
46244 glibcxx_cv_S_ISREG=yes
46245 else
46246 echo "$as_me: failed program was:" >&5
46247 sed 's/^/| /' conftest.$ac_ext >&5
46249 glibcxx_cv_S_ISREG=no
46251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46255 if test "${glibcxx_cv_S_IFREG+set}" = set; then
46256 echo $ECHO_N "(cached) $ECHO_C" >&6
46257 else
46259 if test x$gcc_no_link = xyes; then
46260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46262 { (exit 1); exit 1; }; }
46264 cat >conftest.$ac_ext <<_ACEOF
46265 #line $LINENO "configure"
46266 /* confdefs.h. */
46267 _ACEOF
46268 cat confdefs.h >>conftest.$ac_ext
46269 cat >>conftest.$ac_ext <<_ACEOF
46270 /* end confdefs.h. */
46271 #include <sys/stat.h>
46273 main ()
46275 struct stat buffer;
46276 fstat(0, &buffer);
46277 S_IFREG & buffer.st_mode;
46279 return 0;
46281 _ACEOF
46282 rm -f conftest.$ac_objext conftest$ac_exeext
46283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46284 (eval $ac_link) 2>&5
46285 ac_status=$?
46286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46287 (exit $ac_status); } &&
46288 { ac_try='test -s conftest$ac_exeext'
46289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46290 (eval $ac_try) 2>&5
46291 ac_status=$?
46292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46293 (exit $ac_status); }; }; then
46294 glibcxx_cv_S_IFREG=yes
46295 else
46296 echo "$as_me: failed program was:" >&5
46297 sed 's/^/| /' conftest.$ac_ext >&5
46299 glibcxx_cv_S_IFREG=no
46301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46305 if test $glibcxx_cv_S_ISREG = yes; then
46306 cat >>confdefs.h <<\_ACEOF
46307 #define HAVE_S_ISREG 1
46308 _ACEOF
46310 elif test $glibcxx_cv_S_IFREG = yes; then
46311 cat >>confdefs.h <<\_ACEOF
46312 #define HAVE_S_IFREG 1
46313 _ACEOF
46318 # For xsputn_2().
46320 for ac_header in sys/uio.h
46322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46324 echo "$as_me:$LINENO: checking for $ac_header" >&5
46325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46327 echo $ECHO_N "(cached) $ECHO_C" >&6
46329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46331 else
46332 # Is the header compilable?
46333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46335 cat >conftest.$ac_ext <<_ACEOF
46336 #line $LINENO "configure"
46337 /* confdefs.h. */
46338 _ACEOF
46339 cat confdefs.h >>conftest.$ac_ext
46340 cat >>conftest.$ac_ext <<_ACEOF
46341 /* end confdefs.h. */
46342 $ac_includes_default
46343 #include <$ac_header>
46344 _ACEOF
46345 rm -f conftest.$ac_objext
46346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46347 (eval $ac_compile) 2>&5
46348 ac_status=$?
46349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46350 (exit $ac_status); } &&
46351 { ac_try='test -s conftest.$ac_objext'
46352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46353 (eval $ac_try) 2>&5
46354 ac_status=$?
46355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46356 (exit $ac_status); }; }; then
46357 ac_header_compiler=yes
46358 else
46359 echo "$as_me: failed program was:" >&5
46360 sed 's/^/| /' conftest.$ac_ext >&5
46362 ac_header_compiler=no
46364 rm -f conftest.$ac_objext conftest.$ac_ext
46365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46366 echo "${ECHO_T}$ac_header_compiler" >&6
46368 # Is the header present?
46369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46371 cat >conftest.$ac_ext <<_ACEOF
46372 #line $LINENO "configure"
46373 /* confdefs.h. */
46374 _ACEOF
46375 cat confdefs.h >>conftest.$ac_ext
46376 cat >>conftest.$ac_ext <<_ACEOF
46377 /* end confdefs.h. */
46378 #include <$ac_header>
46379 _ACEOF
46380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46382 ac_status=$?
46383 grep -v '^ *+' conftest.er1 >conftest.err
46384 rm -f conftest.er1
46385 cat conftest.err >&5
46386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46387 (exit $ac_status); } >/dev/null; then
46388 if test -s conftest.err; then
46389 ac_cpp_err=$ac_c_preproc_warn_flag
46390 else
46391 ac_cpp_err=
46393 else
46394 ac_cpp_err=yes
46396 if test -z "$ac_cpp_err"; then
46397 ac_header_preproc=yes
46398 else
46399 echo "$as_me: failed program was:" >&5
46400 sed 's/^/| /' conftest.$ac_ext >&5
46402 ac_header_preproc=no
46404 rm -f conftest.err conftest.$ac_ext
46405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46406 echo "${ECHO_T}$ac_header_preproc" >&6
46408 # So? What about this header?
46409 case $ac_header_compiler:$ac_header_preproc in
46410 yes:no )
46411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46416 cat <<\_ASBOX
46417 ## ------------------------------------ ##
46418 ## Report this to bug-autoconf@gnu.org. ##
46419 ## ------------------------------------ ##
46420 _ASBOX
46422 sed "s/^/$as_me: WARNING: /" >&2
46424 no:yes )
46425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46432 cat <<\_ASBOX
46433 ## ------------------------------------ ##
46434 ## Report this to bug-autoconf@gnu.org. ##
46435 ## ------------------------------------ ##
46436 _ASBOX
46438 sed "s/^/$as_me: WARNING: /" >&2
46440 esac
46441 echo "$as_me:$LINENO: checking for $ac_header" >&5
46442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46444 echo $ECHO_N "(cached) $ECHO_C" >&6
46445 else
46446 eval "$as_ac_Header=$ac_header_preproc"
46448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46453 cat >>confdefs.h <<_ACEOF
46454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46455 _ACEOF
46459 done
46462 if test "${glibcxx_cv_WRITEV+set}" = set; then
46463 echo $ECHO_N "(cached) $ECHO_C" >&6
46464 else
46466 cat >conftest.$ac_ext <<_ACEOF
46467 #line $LINENO "configure"
46468 /* confdefs.h. */
46469 _ACEOF
46470 cat confdefs.h >>conftest.$ac_ext
46471 cat >>conftest.$ac_ext <<_ACEOF
46472 /* end confdefs.h. */
46473 #include <sys/uio.h>
46475 main ()
46477 struct iovec iov[2];
46478 writev(0, iov, 0);
46480 return 0;
46482 _ACEOF
46483 rm -f conftest.$ac_objext
46484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46485 (eval $ac_compile) 2>&5
46486 ac_status=$?
46487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488 (exit $ac_status); } &&
46489 { ac_try='test -s conftest.$ac_objext'
46490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46491 (eval $ac_try) 2>&5
46492 ac_status=$?
46493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46494 (exit $ac_status); }; }; then
46495 glibcxx_cv_WRITEV=yes
46496 else
46497 echo "$as_me: failed program was:" >&5
46498 sed 's/^/| /' conftest.$ac_ext >&5
46500 glibcxx_cv_WRITEV=no
46502 rm -f conftest.$ac_objext conftest.$ac_ext
46506 if test $glibcxx_cv_WRITEV = yes; then
46507 cat >>confdefs.h <<\_ACEOF
46508 #define HAVE_WRITEV 1
46509 _ACEOF
46514 cat >>confdefs.h <<\_ACEOF
46515 #define HAVE_LC_MESSAGES 1
46516 _ACEOF
46519 cat >conftest.$ac_ext <<_ACEOF
46520 #line $LINENO "configure"
46521 /* confdefs.h. */
46522 _ACEOF
46523 cat confdefs.h >>conftest.$ac_ext
46524 cat >>conftest.$ac_ext <<_ACEOF
46525 /* end confdefs.h. */
46526 #include <setjmp.h>
46528 main ()
46530 sigjmp_buf env;
46531 while (! sigsetjmp (env, 1))
46532 siglongjmp (env, 1);
46535 return 0;
46537 _ACEOF
46538 rm -f conftest.$ac_objext
46539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46540 (eval $ac_compile) 2>&5
46541 ac_status=$?
46542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46543 (exit $ac_status); } &&
46544 { ac_try='test -s conftest.$ac_objext'
46545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46546 (eval $ac_try) 2>&5
46547 ac_status=$?
46548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46549 (exit $ac_status); }; }; then
46551 cat >>confdefs.h <<\_ACEOF
46552 #define HAVE_SIGSETJMP 1
46553 _ACEOF
46555 else
46556 echo "$as_me: failed program was:" >&5
46557 sed 's/^/| /' conftest.$ac_ext >&5
46560 rm -f conftest.$ac_objext conftest.$ac_ext
46562 cat >>confdefs.h <<\_ACEOF
46563 #define HAVE_MMAP 1
46564 _ACEOF
46568 *-freebsd*)
46569 #os_include_dir="os/bsd/freebsd"
46586 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
46587 machine/endian.h machine/param.h sys/machine.h sys/types.h \
46588 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
46589 sys/time.h unistd.h
46591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46593 echo "$as_me:$LINENO: checking for $ac_header" >&5
46594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46596 echo $ECHO_N "(cached) $ECHO_C" >&6
46598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46600 else
46601 # Is the header compilable?
46602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46604 cat >conftest.$ac_ext <<_ACEOF
46605 #line $LINENO "configure"
46606 /* confdefs.h. */
46607 _ACEOF
46608 cat confdefs.h >>conftest.$ac_ext
46609 cat >>conftest.$ac_ext <<_ACEOF
46610 /* end confdefs.h. */
46611 $ac_includes_default
46612 #include <$ac_header>
46613 _ACEOF
46614 rm -f conftest.$ac_objext
46615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46616 (eval $ac_compile) 2>&5
46617 ac_status=$?
46618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46619 (exit $ac_status); } &&
46620 { ac_try='test -s conftest.$ac_objext'
46621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46622 (eval $ac_try) 2>&5
46623 ac_status=$?
46624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625 (exit $ac_status); }; }; then
46626 ac_header_compiler=yes
46627 else
46628 echo "$as_me: failed program was:" >&5
46629 sed 's/^/| /' conftest.$ac_ext >&5
46631 ac_header_compiler=no
46633 rm -f conftest.$ac_objext conftest.$ac_ext
46634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46635 echo "${ECHO_T}$ac_header_compiler" >&6
46637 # Is the header present?
46638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46640 cat >conftest.$ac_ext <<_ACEOF
46641 #line $LINENO "configure"
46642 /* confdefs.h. */
46643 _ACEOF
46644 cat confdefs.h >>conftest.$ac_ext
46645 cat >>conftest.$ac_ext <<_ACEOF
46646 /* end confdefs.h. */
46647 #include <$ac_header>
46648 _ACEOF
46649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46651 ac_status=$?
46652 grep -v '^ *+' conftest.er1 >conftest.err
46653 rm -f conftest.er1
46654 cat conftest.err >&5
46655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46656 (exit $ac_status); } >/dev/null; then
46657 if test -s conftest.err; then
46658 ac_cpp_err=$ac_c_preproc_warn_flag
46659 else
46660 ac_cpp_err=
46662 else
46663 ac_cpp_err=yes
46665 if test -z "$ac_cpp_err"; then
46666 ac_header_preproc=yes
46667 else
46668 echo "$as_me: failed program was:" >&5
46669 sed 's/^/| /' conftest.$ac_ext >&5
46671 ac_header_preproc=no
46673 rm -f conftest.err conftest.$ac_ext
46674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46675 echo "${ECHO_T}$ac_header_preproc" >&6
46677 # So? What about this header?
46678 case $ac_header_compiler:$ac_header_preproc in
46679 yes:no )
46680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46685 cat <<\_ASBOX
46686 ## ------------------------------------ ##
46687 ## Report this to bug-autoconf@gnu.org. ##
46688 ## ------------------------------------ ##
46689 _ASBOX
46691 sed "s/^/$as_me: WARNING: /" >&2
46693 no:yes )
46694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46701 cat <<\_ASBOX
46702 ## ------------------------------------ ##
46703 ## Report this to bug-autoconf@gnu.org. ##
46704 ## ------------------------------------ ##
46705 _ASBOX
46707 sed "s/^/$as_me: WARNING: /" >&2
46709 esac
46710 echo "$as_me:$LINENO: checking for $ac_header" >&5
46711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46713 echo $ECHO_N "(cached) $ECHO_C" >&6
46714 else
46715 eval "$as_ac_Header=$ac_header_preproc"
46717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46722 cat >>confdefs.h <<_ACEOF
46723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46724 _ACEOF
46728 done
46730 SECTION_FLAGS='-ffunction-sections -fdata-sections'
46733 # If we're not using GNU ld, then there's no point in even trying these
46734 # tests. Check for that first. We should have already tested for gld
46735 # by now (in libtool), but require it now just to be safe...
46736 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
46737 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
46741 # The name set by libtool depends on the version of libtool. Shame on us
46742 # for depending on an impl detail, but c'est la vie. Older versions used
46743 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
46744 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
46745 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
46746 # set (hence we're using an older libtool), then set it.
46747 if test x${with_gnu_ld+set} != xset; then
46748 if test x${ac_cv_prog_gnu_ld+set} != xset; then
46749 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
46750 with_gnu_ld=no
46751 else
46752 with_gnu_ld=$ac_cv_prog_gnu_ld
46756 # Start by getting the version number. I think the libtool test already
46757 # does some of this, but throws away the result.
46759 ldver=`$LD --version 2>/dev/null | head -1 | \
46760 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
46762 glibcxx_gnu_ld_version=`echo $ldver | \
46763 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
46765 # Set --gc-sections.
46766 if test "$with_gnu_ld" = "notbroken"; then
46767 # GNU ld it is! Joy and bunny rabbits!
46769 # All these tests are for C++; save the language and the compiler flags.
46770 # Need to do this so that g++ won't try to link in libstdc++
46771 ac_test_CFLAGS="${CFLAGS+set}"
46772 ac_save_CFLAGS="$CFLAGS"
46773 CFLAGS='-x c++ -Wl,--gc-sections'
46775 # Check for -Wl,--gc-sections
46776 # XXX This test is broken at the moment, as symbols required for linking
46777 # are now in libsupc++ (not built yet). In addition, this test has
46778 # cored on solaris in the past. In addition, --gc-sections doesn't
46779 # really work at the moment (keeps on discarding used sections, first
46780 # .eh_frame and now some of the glibc sections for iconv).
46781 # Bzzzzt. Thanks for playing, maybe next time.
46782 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
46783 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
46784 if test "$cross_compiling" = yes; then
46785 ac_sectionLDflags=yes
46786 else
46787 cat >conftest.$ac_ext <<_ACEOF
46788 #line $LINENO "configure"
46789 /* confdefs.h. */
46790 _ACEOF
46791 cat confdefs.h >>conftest.$ac_ext
46792 cat >>conftest.$ac_ext <<_ACEOF
46793 /* end confdefs.h. */
46795 int main(void)
46797 try { throw 1; }
46798 catch (...) { };
46799 return 0;
46802 _ACEOF
46803 rm -f conftest$ac_exeext
46804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46805 (eval $ac_link) 2>&5
46806 ac_status=$?
46807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46810 (eval $ac_try) 2>&5
46811 ac_status=$?
46812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46813 (exit $ac_status); }; }; then
46814 ac_sectionLDflags=yes
46815 else
46816 echo "$as_me: program exited with status $ac_status" >&5
46817 echo "$as_me: failed program was:" >&5
46818 sed 's/^/| /' conftest.$ac_ext >&5
46820 ( exit $ac_status )
46821 ac_sectionLDflags=no
46823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46825 if test "$ac_test_CFLAGS" = set; then
46826 CFLAGS="$ac_save_CFLAGS"
46827 else
46828 # this is the suspicious part
46829 CFLAGS=''
46831 if test "$ac_sectionLDflags" = "yes"; then
46832 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
46834 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
46835 echo "${ECHO_T}$ac_sectionLDflags" >&6
46838 # Set linker optimization flags.
46839 if test x"$with_gnu_ld" = x"yes"; then
46840 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
46848 echo "$as_me:$LINENO: checking for main in -lm" >&5
46849 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
46850 if test "${ac_cv_lib_m_main+set}" = set; then
46851 echo $ECHO_N "(cached) $ECHO_C" >&6
46852 else
46853 ac_check_lib_save_LIBS=$LIBS
46854 LIBS="-lm $LIBS"
46855 if test x$gcc_no_link = xyes; then
46856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46858 { (exit 1); exit 1; }; }
46860 cat >conftest.$ac_ext <<_ACEOF
46861 #line $LINENO "configure"
46862 /* confdefs.h. */
46863 _ACEOF
46864 cat confdefs.h >>conftest.$ac_ext
46865 cat >>conftest.$ac_ext <<_ACEOF
46866 /* end confdefs.h. */
46870 main ()
46872 main ();
46874 return 0;
46876 _ACEOF
46877 rm -f conftest.$ac_objext conftest$ac_exeext
46878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46879 (eval $ac_link) 2>&5
46880 ac_status=$?
46881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46882 (exit $ac_status); } &&
46883 { ac_try='test -s conftest$ac_exeext'
46884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46885 (eval $ac_try) 2>&5
46886 ac_status=$?
46887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46888 (exit $ac_status); }; }; then
46889 ac_cv_lib_m_main=yes
46890 else
46891 echo "$as_me: failed program was:" >&5
46892 sed 's/^/| /' conftest.$ac_ext >&5
46894 ac_cv_lib_m_main=no
46896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46897 LIBS=$ac_check_lib_save_LIBS
46899 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
46900 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
46901 if test $ac_cv_lib_m_main = yes; then
46902 cat >>confdefs.h <<_ACEOF
46903 #define HAVE_LIBM 1
46904 _ACEOF
46906 LIBS="-lm $LIBS"
46912 for ac_func in nan copysignf
46914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46915 echo "$as_me:$LINENO: checking for $ac_func" >&5
46916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46917 if eval "test \"\${$as_ac_var+set}\" = set"; then
46918 echo $ECHO_N "(cached) $ECHO_C" >&6
46919 else
46920 if test x$gcc_no_link = xyes; then
46921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46923 { (exit 1); exit 1; }; }
46925 cat >conftest.$ac_ext <<_ACEOF
46926 #line $LINENO "configure"
46927 /* confdefs.h. */
46928 _ACEOF
46929 cat confdefs.h >>conftest.$ac_ext
46930 cat >>conftest.$ac_ext <<_ACEOF
46931 /* end confdefs.h. */
46932 /* System header to define __stub macros and hopefully few prototypes,
46933 which can conflict with char $ac_func (); below.
46934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46935 <limits.h> exists even on freestanding compilers. */
46936 #ifdef __STDC__
46937 # include <limits.h>
46938 #else
46939 # include <assert.h>
46940 #endif
46941 /* Override any gcc2 internal prototype to avoid an error. */
46942 #ifdef __cplusplus
46943 extern "C"
46945 #endif
46946 /* We use char because int might match the return type of a gcc2
46947 builtin and then its argument prototype would still apply. */
46948 char $ac_func ();
46949 /* The GNU C library defines this for functions which it implements
46950 to always fail with ENOSYS. Some functions are actually named
46951 something starting with __ and the normal name is an alias. */
46952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46953 choke me
46954 #else
46955 char (*f) () = $ac_func;
46956 #endif
46957 #ifdef __cplusplus
46959 #endif
46962 main ()
46964 return f != $ac_func;
46966 return 0;
46968 _ACEOF
46969 rm -f conftest.$ac_objext conftest$ac_exeext
46970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46971 (eval $ac_link) 2>&5
46972 ac_status=$?
46973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46974 (exit $ac_status); } &&
46975 { ac_try='test -s conftest$ac_exeext'
46976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46977 (eval $ac_try) 2>&5
46978 ac_status=$?
46979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980 (exit $ac_status); }; }; then
46981 eval "$as_ac_var=yes"
46982 else
46983 echo "$as_me: failed program was:" >&5
46984 sed 's/^/| /' conftest.$ac_ext >&5
46986 eval "$as_ac_var=no"
46988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46992 if test `eval echo '${'$as_ac_var'}'` = yes; then
46993 cat >>confdefs.h <<_ACEOF
46994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46995 _ACEOF
46997 else
46998 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
47000 done
47004 for ac_func in __signbit
47006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47007 echo "$as_me:$LINENO: checking for $ac_func" >&5
47008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47009 if eval "test \"\${$as_ac_var+set}\" = set"; then
47010 echo $ECHO_N "(cached) $ECHO_C" >&6
47011 else
47012 if test x$gcc_no_link = xyes; then
47013 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47015 { (exit 1); exit 1; }; }
47017 cat >conftest.$ac_ext <<_ACEOF
47018 #line $LINENO "configure"
47019 /* confdefs.h. */
47020 _ACEOF
47021 cat confdefs.h >>conftest.$ac_ext
47022 cat >>conftest.$ac_ext <<_ACEOF
47023 /* end confdefs.h. */
47024 /* System header to define __stub macros and hopefully few prototypes,
47025 which can conflict with char $ac_func (); below.
47026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47027 <limits.h> exists even on freestanding compilers. */
47028 #ifdef __STDC__
47029 # include <limits.h>
47030 #else
47031 # include <assert.h>
47032 #endif
47033 /* Override any gcc2 internal prototype to avoid an error. */
47034 #ifdef __cplusplus
47035 extern "C"
47037 #endif
47038 /* We use char because int might match the return type of a gcc2
47039 builtin and then its argument prototype would still apply. */
47040 char $ac_func ();
47041 /* The GNU C library defines this for functions which it implements
47042 to always fail with ENOSYS. Some functions are actually named
47043 something starting with __ and the normal name is an alias. */
47044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47045 choke me
47046 #else
47047 char (*f) () = $ac_func;
47048 #endif
47049 #ifdef __cplusplus
47051 #endif
47054 main ()
47056 return f != $ac_func;
47058 return 0;
47060 _ACEOF
47061 rm -f conftest.$ac_objext conftest$ac_exeext
47062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47063 (eval $ac_link) 2>&5
47064 ac_status=$?
47065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47066 (exit $ac_status); } &&
47067 { ac_try='test -s conftest$ac_exeext'
47068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47069 (eval $ac_try) 2>&5
47070 ac_status=$?
47071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47072 (exit $ac_status); }; }; then
47073 eval "$as_ac_var=yes"
47074 else
47075 echo "$as_me: failed program was:" >&5
47076 sed 's/^/| /' conftest.$ac_ext >&5
47078 eval "$as_ac_var=no"
47080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47084 if test `eval echo '${'$as_ac_var'}'` = yes; then
47085 cat >>confdefs.h <<_ACEOF
47086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47087 _ACEOF
47089 else
47090 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
47092 done
47095 for ac_func in __signbitf
47097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47098 echo "$as_me:$LINENO: checking for $ac_func" >&5
47099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47100 if eval "test \"\${$as_ac_var+set}\" = set"; then
47101 echo $ECHO_N "(cached) $ECHO_C" >&6
47102 else
47103 if test x$gcc_no_link = xyes; then
47104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47106 { (exit 1); exit 1; }; }
47108 cat >conftest.$ac_ext <<_ACEOF
47109 #line $LINENO "configure"
47110 /* confdefs.h. */
47111 _ACEOF
47112 cat confdefs.h >>conftest.$ac_ext
47113 cat >>conftest.$ac_ext <<_ACEOF
47114 /* end confdefs.h. */
47115 /* System header to define __stub macros and hopefully few prototypes,
47116 which can conflict with char $ac_func (); below.
47117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47118 <limits.h> exists even on freestanding compilers. */
47119 #ifdef __STDC__
47120 # include <limits.h>
47121 #else
47122 # include <assert.h>
47123 #endif
47124 /* Override any gcc2 internal prototype to avoid an error. */
47125 #ifdef __cplusplus
47126 extern "C"
47128 #endif
47129 /* We use char because int might match the return type of a gcc2
47130 builtin and then its argument prototype would still apply. */
47131 char $ac_func ();
47132 /* The GNU C library defines this for functions which it implements
47133 to always fail with ENOSYS. Some functions are actually named
47134 something starting with __ and the normal name is an alias. */
47135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47136 choke me
47137 #else
47138 char (*f) () = $ac_func;
47139 #endif
47140 #ifdef __cplusplus
47142 #endif
47145 main ()
47147 return f != $ac_func;
47149 return 0;
47151 _ACEOF
47152 rm -f conftest.$ac_objext conftest$ac_exeext
47153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47154 (eval $ac_link) 2>&5
47155 ac_status=$?
47156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47157 (exit $ac_status); } &&
47158 { ac_try='test -s conftest$ac_exeext'
47159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47160 (eval $ac_try) 2>&5
47161 ac_status=$?
47162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47163 (exit $ac_status); }; }; then
47164 eval "$as_ac_var=yes"
47165 else
47166 echo "$as_me: failed program was:" >&5
47167 sed 's/^/| /' conftest.$ac_ext >&5
47169 eval "$as_ac_var=no"
47171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47175 if test `eval echo '${'$as_ac_var'}'` = yes; then
47176 cat >>confdefs.h <<_ACEOF
47177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47178 _ACEOF
47180 else
47181 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
47183 done
47186 if test x$ac_cv_func_copysignl = x"yes"; then
47188 for ac_func in __signbitl
47190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47191 echo "$as_me:$LINENO: checking for $ac_func" >&5
47192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47193 if eval "test \"\${$as_ac_var+set}\" = set"; then
47194 echo $ECHO_N "(cached) $ECHO_C" >&6
47195 else
47196 if test x$gcc_no_link = xyes; then
47197 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47199 { (exit 1); exit 1; }; }
47201 cat >conftest.$ac_ext <<_ACEOF
47202 #line $LINENO "configure"
47203 /* confdefs.h. */
47204 _ACEOF
47205 cat confdefs.h >>conftest.$ac_ext
47206 cat >>conftest.$ac_ext <<_ACEOF
47207 /* end confdefs.h. */
47208 /* System header to define __stub macros and hopefully few prototypes,
47209 which can conflict with char $ac_func (); below.
47210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47211 <limits.h> exists even on freestanding compilers. */
47212 #ifdef __STDC__
47213 # include <limits.h>
47214 #else
47215 # include <assert.h>
47216 #endif
47217 /* Override any gcc2 internal prototype to avoid an error. */
47218 #ifdef __cplusplus
47219 extern "C"
47221 #endif
47222 /* We use char because int might match the return type of a gcc2
47223 builtin and then its argument prototype would still apply. */
47224 char $ac_func ();
47225 /* The GNU C library defines this for functions which it implements
47226 to always fail with ENOSYS. Some functions are actually named
47227 something starting with __ and the normal name is an alias. */
47228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47229 choke me
47230 #else
47231 char (*f) () = $ac_func;
47232 #endif
47233 #ifdef __cplusplus
47235 #endif
47238 main ()
47240 return f != $ac_func;
47242 return 0;
47244 _ACEOF
47245 rm -f conftest.$ac_objext conftest$ac_exeext
47246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47247 (eval $ac_link) 2>&5
47248 ac_status=$?
47249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47250 (exit $ac_status); } &&
47251 { ac_try='test -s conftest$ac_exeext'
47252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47253 (eval $ac_try) 2>&5
47254 ac_status=$?
47255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47256 (exit $ac_status); }; }; then
47257 eval "$as_ac_var=yes"
47258 else
47259 echo "$as_me: failed program was:" >&5
47260 sed 's/^/| /' conftest.$ac_ext >&5
47262 eval "$as_ac_var=no"
47264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47268 if test `eval echo '${'$as_ac_var'}'` = yes; then
47269 cat >>confdefs.h <<_ACEOF
47270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47271 _ACEOF
47273 else
47274 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
47276 done
47280 # XXX Review this. Nothing uses it.
47281 if test -n "$LIBMATHOBJS"; then
47282 need_libmath=yes
47287 # Test wchar.h for mbstate_t, which is needed for char_traits and
47288 # others even if wchar_t support is not on.
47289 echo "$as_me:$LINENO: checking for mbstate_t" >&5
47290 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
47291 cat >conftest.$ac_ext <<_ACEOF
47292 #line $LINENO "configure"
47293 /* confdefs.h. */
47294 _ACEOF
47295 cat confdefs.h >>conftest.$ac_ext
47296 cat >>conftest.$ac_ext <<_ACEOF
47297 /* end confdefs.h. */
47298 #include <wchar.h>
47300 main ()
47302 mbstate_t teststate;
47304 return 0;
47306 _ACEOF
47307 rm -f conftest.$ac_objext
47308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47309 (eval $ac_compile) 2>&5
47310 ac_status=$?
47311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47312 (exit $ac_status); } &&
47313 { ac_try='test -s conftest.$ac_objext'
47314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47315 (eval $ac_try) 2>&5
47316 ac_status=$?
47317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47318 (exit $ac_status); }; }; then
47319 have_mbstate_t=yes
47320 else
47321 echo "$as_me: failed program was:" >&5
47322 sed 's/^/| /' conftest.$ac_ext >&5
47324 have_mbstate_t=no
47326 rm -f conftest.$ac_objext conftest.$ac_ext
47327 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
47328 echo "${ECHO_T}$have_mbstate_t" >&6
47329 if test x"$have_mbstate_t" = xyes; then
47330 cat >>confdefs.h <<\_ACEOF
47331 #define HAVE_MBSTATE_T 1
47332 _ACEOF
47336 # Sanity check for existence of ISO C99 headers for extended encoding.
47338 for ac_header in wchar.h
47340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47342 echo "$as_me:$LINENO: checking for $ac_header" >&5
47343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47345 echo $ECHO_N "(cached) $ECHO_C" >&6
47347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47349 else
47350 # Is the header compilable?
47351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47353 cat >conftest.$ac_ext <<_ACEOF
47354 #line $LINENO "configure"
47355 /* confdefs.h. */
47356 _ACEOF
47357 cat confdefs.h >>conftest.$ac_ext
47358 cat >>conftest.$ac_ext <<_ACEOF
47359 /* end confdefs.h. */
47360 $ac_includes_default
47361 #include <$ac_header>
47362 _ACEOF
47363 rm -f conftest.$ac_objext
47364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47365 (eval $ac_compile) 2>&5
47366 ac_status=$?
47367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47368 (exit $ac_status); } &&
47369 { ac_try='test -s conftest.$ac_objext'
47370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47371 (eval $ac_try) 2>&5
47372 ac_status=$?
47373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47374 (exit $ac_status); }; }; then
47375 ac_header_compiler=yes
47376 else
47377 echo "$as_me: failed program was:" >&5
47378 sed 's/^/| /' conftest.$ac_ext >&5
47380 ac_header_compiler=no
47382 rm -f conftest.$ac_objext conftest.$ac_ext
47383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47384 echo "${ECHO_T}$ac_header_compiler" >&6
47386 # Is the header present?
47387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47389 cat >conftest.$ac_ext <<_ACEOF
47390 #line $LINENO "configure"
47391 /* confdefs.h. */
47392 _ACEOF
47393 cat confdefs.h >>conftest.$ac_ext
47394 cat >>conftest.$ac_ext <<_ACEOF
47395 /* end confdefs.h. */
47396 #include <$ac_header>
47397 _ACEOF
47398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47400 ac_status=$?
47401 grep -v '^ *+' conftest.er1 >conftest.err
47402 rm -f conftest.er1
47403 cat conftest.err >&5
47404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47405 (exit $ac_status); } >/dev/null; then
47406 if test -s conftest.err; then
47407 ac_cpp_err=$ac_c_preproc_warn_flag
47408 else
47409 ac_cpp_err=
47411 else
47412 ac_cpp_err=yes
47414 if test -z "$ac_cpp_err"; then
47415 ac_header_preproc=yes
47416 else
47417 echo "$as_me: failed program was:" >&5
47418 sed 's/^/| /' conftest.$ac_ext >&5
47420 ac_header_preproc=no
47422 rm -f conftest.err conftest.$ac_ext
47423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47424 echo "${ECHO_T}$ac_header_preproc" >&6
47426 # So? What about this header?
47427 case $ac_header_compiler:$ac_header_preproc in
47428 yes:no )
47429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47434 cat <<\_ASBOX
47435 ## ------------------------------------ ##
47436 ## Report this to bug-autoconf@gnu.org. ##
47437 ## ------------------------------------ ##
47438 _ASBOX
47440 sed "s/^/$as_me: WARNING: /" >&2
47442 no:yes )
47443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47450 cat <<\_ASBOX
47451 ## ------------------------------------ ##
47452 ## Report this to bug-autoconf@gnu.org. ##
47453 ## ------------------------------------ ##
47454 _ASBOX
47456 sed "s/^/$as_me: WARNING: /" >&2
47458 esac
47459 echo "$as_me:$LINENO: checking for $ac_header" >&5
47460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47462 echo $ECHO_N "(cached) $ECHO_C" >&6
47463 else
47464 eval "$as_ac_Header=$ac_header_preproc"
47466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47471 cat >>confdefs.h <<_ACEOF
47472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47473 _ACEOF
47474 ac_has_wchar_h=yes
47475 else
47476 ac_has_wchar_h=no
47479 done
47482 for ac_header in wctype.h
47484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47486 echo "$as_me:$LINENO: checking for $ac_header" >&5
47487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47489 echo $ECHO_N "(cached) $ECHO_C" >&6
47491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47493 else
47494 # Is the header compilable?
47495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47497 cat >conftest.$ac_ext <<_ACEOF
47498 #line $LINENO "configure"
47499 /* confdefs.h. */
47500 _ACEOF
47501 cat confdefs.h >>conftest.$ac_ext
47502 cat >>conftest.$ac_ext <<_ACEOF
47503 /* end confdefs.h. */
47504 $ac_includes_default
47505 #include <$ac_header>
47506 _ACEOF
47507 rm -f conftest.$ac_objext
47508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47509 (eval $ac_compile) 2>&5
47510 ac_status=$?
47511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47512 (exit $ac_status); } &&
47513 { ac_try='test -s conftest.$ac_objext'
47514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47515 (eval $ac_try) 2>&5
47516 ac_status=$?
47517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47518 (exit $ac_status); }; }; then
47519 ac_header_compiler=yes
47520 else
47521 echo "$as_me: failed program was:" >&5
47522 sed 's/^/| /' conftest.$ac_ext >&5
47524 ac_header_compiler=no
47526 rm -f conftest.$ac_objext conftest.$ac_ext
47527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47528 echo "${ECHO_T}$ac_header_compiler" >&6
47530 # Is the header present?
47531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47533 cat >conftest.$ac_ext <<_ACEOF
47534 #line $LINENO "configure"
47535 /* confdefs.h. */
47536 _ACEOF
47537 cat confdefs.h >>conftest.$ac_ext
47538 cat >>conftest.$ac_ext <<_ACEOF
47539 /* end confdefs.h. */
47540 #include <$ac_header>
47541 _ACEOF
47542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47544 ac_status=$?
47545 grep -v '^ *+' conftest.er1 >conftest.err
47546 rm -f conftest.er1
47547 cat conftest.err >&5
47548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47549 (exit $ac_status); } >/dev/null; then
47550 if test -s conftest.err; then
47551 ac_cpp_err=$ac_c_preproc_warn_flag
47552 else
47553 ac_cpp_err=
47555 else
47556 ac_cpp_err=yes
47558 if test -z "$ac_cpp_err"; then
47559 ac_header_preproc=yes
47560 else
47561 echo "$as_me: failed program was:" >&5
47562 sed 's/^/| /' conftest.$ac_ext >&5
47564 ac_header_preproc=no
47566 rm -f conftest.err conftest.$ac_ext
47567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47568 echo "${ECHO_T}$ac_header_preproc" >&6
47570 # So? What about this header?
47571 case $ac_header_compiler:$ac_header_preproc in
47572 yes:no )
47573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47578 cat <<\_ASBOX
47579 ## ------------------------------------ ##
47580 ## Report this to bug-autoconf@gnu.org. ##
47581 ## ------------------------------------ ##
47582 _ASBOX
47584 sed "s/^/$as_me: WARNING: /" >&2
47586 no:yes )
47587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47594 cat <<\_ASBOX
47595 ## ------------------------------------ ##
47596 ## Report this to bug-autoconf@gnu.org. ##
47597 ## ------------------------------------ ##
47598 _ASBOX
47600 sed "s/^/$as_me: WARNING: /" >&2
47602 esac
47603 echo "$as_me:$LINENO: checking for $ac_header" >&5
47604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47606 echo $ECHO_N "(cached) $ECHO_C" >&6
47607 else
47608 eval "$as_ac_Header=$ac_header_preproc"
47610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47615 cat >>confdefs.h <<_ACEOF
47616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47617 _ACEOF
47618 ac_has_wctype_h=yes
47619 else
47620 ac_has_wctype_h=no
47623 done
47626 # Only continue checking if the ISO C99 headers exist and support is on.
47627 if test x"$ac_has_wchar_h" = xyes &&
47628 test x"$ac_has_wctype_h" = xyes &&
47629 test x"$enable_c_mbchar" != xno; then
47631 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
47632 # numeric_limits can instantiate type_traits<wchar_t>
47633 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
47634 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
47635 cat >conftest.$ac_ext <<_ACEOF
47636 #line $LINENO "configure"
47637 /* confdefs.h. */
47638 _ACEOF
47639 cat confdefs.h >>conftest.$ac_ext
47640 cat >>conftest.$ac_ext <<_ACEOF
47641 /* end confdefs.h. */
47642 #include <wchar.h>
47644 main ()
47646 int i = WCHAR_MIN; int j = WCHAR_MAX;
47648 return 0;
47650 _ACEOF
47651 rm -f conftest.$ac_objext
47652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47653 (eval $ac_compile) 2>&5
47654 ac_status=$?
47655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47656 (exit $ac_status); } &&
47657 { ac_try='test -s conftest.$ac_objext'
47658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47659 (eval $ac_try) 2>&5
47660 ac_status=$?
47661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47662 (exit $ac_status); }; }; then
47663 has_wchar_minmax=yes
47664 else
47665 echo "$as_me: failed program was:" >&5
47666 sed 's/^/| /' conftest.$ac_ext >&5
47668 has_wchar_minmax=no
47670 rm -f conftest.$ac_objext conftest.$ac_ext
47671 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
47672 echo "${ECHO_T}$has_wchar_minmax" >&6
47674 # Test wchar.h for WEOF, which is what we use to determine whether
47675 # to specialize for char_traits<wchar_t> or not.
47676 echo "$as_me:$LINENO: checking for WEOF" >&5
47677 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
47678 cat >conftest.$ac_ext <<_ACEOF
47679 #line $LINENO "configure"
47680 /* confdefs.h. */
47681 _ACEOF
47682 cat confdefs.h >>conftest.$ac_ext
47683 cat >>conftest.$ac_ext <<_ACEOF
47684 /* end confdefs.h. */
47686 #include <wchar.h>
47687 #include <stddef.h>
47689 main ()
47691 wint_t i = WEOF;
47693 return 0;
47695 _ACEOF
47696 rm -f conftest.$ac_objext
47697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47698 (eval $ac_compile) 2>&5
47699 ac_status=$?
47700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47701 (exit $ac_status); } &&
47702 { ac_try='test -s conftest.$ac_objext'
47703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47704 (eval $ac_try) 2>&5
47705 ac_status=$?
47706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47707 (exit $ac_status); }; }; then
47708 has_weof=yes
47709 else
47710 echo "$as_me: failed program was:" >&5
47711 sed 's/^/| /' conftest.$ac_ext >&5
47713 has_weof=no
47715 rm -f conftest.$ac_objext conftest.$ac_ext
47716 echo "$as_me:$LINENO: result: $has_weof" >&5
47717 echo "${ECHO_T}$has_weof" >&6
47719 # Tests for wide character functions used in char_traits<wchar_t>.
47720 ac_wfuncs=yes
47727 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
47729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47730 echo "$as_me:$LINENO: checking for $ac_func" >&5
47731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47732 if eval "test \"\${$as_ac_var+set}\" = set"; then
47733 echo $ECHO_N "(cached) $ECHO_C" >&6
47734 else
47735 if test x$gcc_no_link = xyes; then
47736 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47738 { (exit 1); exit 1; }; }
47740 cat >conftest.$ac_ext <<_ACEOF
47741 #line $LINENO "configure"
47742 /* confdefs.h. */
47743 _ACEOF
47744 cat confdefs.h >>conftest.$ac_ext
47745 cat >>conftest.$ac_ext <<_ACEOF
47746 /* end confdefs.h. */
47747 /* System header to define __stub macros and hopefully few prototypes,
47748 which can conflict with char $ac_func (); below.
47749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47750 <limits.h> exists even on freestanding compilers. */
47751 #ifdef __STDC__
47752 # include <limits.h>
47753 #else
47754 # include <assert.h>
47755 #endif
47756 /* Override any gcc2 internal prototype to avoid an error. */
47757 #ifdef __cplusplus
47758 extern "C"
47760 #endif
47761 /* We use char because int might match the return type of a gcc2
47762 builtin and then its argument prototype would still apply. */
47763 char $ac_func ();
47764 /* The GNU C library defines this for functions which it implements
47765 to always fail with ENOSYS. Some functions are actually named
47766 something starting with __ and the normal name is an alias. */
47767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47768 choke me
47769 #else
47770 char (*f) () = $ac_func;
47771 #endif
47772 #ifdef __cplusplus
47774 #endif
47777 main ()
47779 return f != $ac_func;
47781 return 0;
47783 _ACEOF
47784 rm -f conftest.$ac_objext conftest$ac_exeext
47785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47786 (eval $ac_link) 2>&5
47787 ac_status=$?
47788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47789 (exit $ac_status); } &&
47790 { ac_try='test -s conftest$ac_exeext'
47791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47792 (eval $ac_try) 2>&5
47793 ac_status=$?
47794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47795 (exit $ac_status); }; }; then
47796 eval "$as_ac_var=yes"
47797 else
47798 echo "$as_me: failed program was:" >&5
47799 sed 's/^/| /' conftest.$ac_ext >&5
47801 eval "$as_ac_var=no"
47803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47807 if test `eval echo '${'$as_ac_var'}'` = yes; then
47808 cat >>confdefs.h <<_ACEOF
47809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47810 _ACEOF
47812 else
47813 ac_wfuncs=no
47815 done
47818 # Checks for names injected into std:: by the c_std headers.
47869 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
47870 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
47871 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
47872 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
47873 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
47874 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
47876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47877 echo "$as_me:$LINENO: checking for $ac_func" >&5
47878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47879 if eval "test \"\${$as_ac_var+set}\" = set"; then
47880 echo $ECHO_N "(cached) $ECHO_C" >&6
47881 else
47882 if test x$gcc_no_link = xyes; then
47883 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47884 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47885 { (exit 1); exit 1; }; }
47887 cat >conftest.$ac_ext <<_ACEOF
47888 #line $LINENO "configure"
47889 /* confdefs.h. */
47890 _ACEOF
47891 cat confdefs.h >>conftest.$ac_ext
47892 cat >>conftest.$ac_ext <<_ACEOF
47893 /* end confdefs.h. */
47894 /* System header to define __stub macros and hopefully few prototypes,
47895 which can conflict with char $ac_func (); below.
47896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47897 <limits.h> exists even on freestanding compilers. */
47898 #ifdef __STDC__
47899 # include <limits.h>
47900 #else
47901 # include <assert.h>
47902 #endif
47903 /* Override any gcc2 internal prototype to avoid an error. */
47904 #ifdef __cplusplus
47905 extern "C"
47907 #endif
47908 /* We use char because int might match the return type of a gcc2
47909 builtin and then its argument prototype would still apply. */
47910 char $ac_func ();
47911 /* The GNU C library defines this for functions which it implements
47912 to always fail with ENOSYS. Some functions are actually named
47913 something starting with __ and the normal name is an alias. */
47914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47915 choke me
47916 #else
47917 char (*f) () = $ac_func;
47918 #endif
47919 #ifdef __cplusplus
47921 #endif
47924 main ()
47926 return f != $ac_func;
47928 return 0;
47930 _ACEOF
47931 rm -f conftest.$ac_objext conftest$ac_exeext
47932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47933 (eval $ac_link) 2>&5
47934 ac_status=$?
47935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47936 (exit $ac_status); } &&
47937 { ac_try='test -s conftest$ac_exeext'
47938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47939 (eval $ac_try) 2>&5
47940 ac_status=$?
47941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47942 (exit $ac_status); }; }; then
47943 eval "$as_ac_var=yes"
47944 else
47945 echo "$as_me: failed program was:" >&5
47946 sed 's/^/| /' conftest.$ac_ext >&5
47948 eval "$as_ac_var=no"
47950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47954 if test `eval echo '${'$as_ac_var'}'` = yes; then
47955 cat >>confdefs.h <<_ACEOF
47956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47957 _ACEOF
47959 else
47960 ac_wfuncs=no
47962 done
47965 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
47966 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
47967 if test x"$has_weof" = xyes &&
47968 test x"$has_wchar_minmax" = xyes &&
47969 test x"$ac_wfuncs" = xyes;
47970 then
47971 ac_isoC99_wchar_t=yes
47972 else
47973 ac_isoC99_wchar_t=no
47975 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
47976 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
47978 # Use iconv for wchar_t to char conversions. As such, check for
47979 # X/Open Portability Guide, version 2 features (XPG2).
47980 if test "${ac_cv_header_iconv_h+set}" = set; then
47981 echo "$as_me:$LINENO: checking for iconv.h" >&5
47982 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
47983 if test "${ac_cv_header_iconv_h+set}" = set; then
47984 echo $ECHO_N "(cached) $ECHO_C" >&6
47986 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
47987 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
47988 else
47989 # Is the header compilable?
47990 echo "$as_me:$LINENO: checking iconv.h usability" >&5
47991 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
47992 cat >conftest.$ac_ext <<_ACEOF
47993 #line $LINENO "configure"
47994 /* confdefs.h. */
47995 _ACEOF
47996 cat confdefs.h >>conftest.$ac_ext
47997 cat >>conftest.$ac_ext <<_ACEOF
47998 /* end confdefs.h. */
47999 $ac_includes_default
48000 #include <iconv.h>
48001 _ACEOF
48002 rm -f conftest.$ac_objext
48003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48004 (eval $ac_compile) 2>&5
48005 ac_status=$?
48006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48007 (exit $ac_status); } &&
48008 { ac_try='test -s conftest.$ac_objext'
48009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48010 (eval $ac_try) 2>&5
48011 ac_status=$?
48012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48013 (exit $ac_status); }; }; then
48014 ac_header_compiler=yes
48015 else
48016 echo "$as_me: failed program was:" >&5
48017 sed 's/^/| /' conftest.$ac_ext >&5
48019 ac_header_compiler=no
48021 rm -f conftest.$ac_objext conftest.$ac_ext
48022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48023 echo "${ECHO_T}$ac_header_compiler" >&6
48025 # Is the header present?
48026 echo "$as_me:$LINENO: checking iconv.h presence" >&5
48027 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
48028 cat >conftest.$ac_ext <<_ACEOF
48029 #line $LINENO "configure"
48030 /* confdefs.h. */
48031 _ACEOF
48032 cat confdefs.h >>conftest.$ac_ext
48033 cat >>conftest.$ac_ext <<_ACEOF
48034 /* end confdefs.h. */
48035 #include <iconv.h>
48036 _ACEOF
48037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48039 ac_status=$?
48040 grep -v '^ *+' conftest.er1 >conftest.err
48041 rm -f conftest.er1
48042 cat conftest.err >&5
48043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48044 (exit $ac_status); } >/dev/null; then
48045 if test -s conftest.err; then
48046 ac_cpp_err=$ac_c_preproc_warn_flag
48047 else
48048 ac_cpp_err=
48050 else
48051 ac_cpp_err=yes
48053 if test -z "$ac_cpp_err"; then
48054 ac_header_preproc=yes
48055 else
48056 echo "$as_me: failed program was:" >&5
48057 sed 's/^/| /' conftest.$ac_ext >&5
48059 ac_header_preproc=no
48061 rm -f conftest.err conftest.$ac_ext
48062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48063 echo "${ECHO_T}$ac_header_preproc" >&6
48065 # So? What about this header?
48066 case $ac_header_compiler:$ac_header_preproc in
48067 yes:no )
48068 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
48069 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48070 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48071 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48073 cat <<\_ASBOX
48074 ## ------------------------------------ ##
48075 ## Report this to bug-autoconf@gnu.org. ##
48076 ## ------------------------------------ ##
48077 _ASBOX
48079 sed "s/^/$as_me: WARNING: /" >&2
48081 no:yes )
48082 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
48083 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
48084 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
48085 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
48086 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48087 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48089 cat <<\_ASBOX
48090 ## ------------------------------------ ##
48091 ## Report this to bug-autoconf@gnu.org. ##
48092 ## ------------------------------------ ##
48093 _ASBOX
48095 sed "s/^/$as_me: WARNING: /" >&2
48097 esac
48098 echo "$as_me:$LINENO: checking for iconv.h" >&5
48099 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48100 if test "${ac_cv_header_iconv_h+set}" = set; then
48101 echo $ECHO_N "(cached) $ECHO_C" >&6
48102 else
48103 ac_cv_header_iconv_h=$ac_header_preproc
48105 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48106 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48109 if test $ac_cv_header_iconv_h = yes; then
48110 ac_has_iconv_h=yes
48111 else
48112 ac_has_iconv_h=no
48116 if test "${ac_cv_header_langinfo_h+set}" = set; then
48117 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48118 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48119 if test "${ac_cv_header_langinfo_h+set}" = set; then
48120 echo $ECHO_N "(cached) $ECHO_C" >&6
48122 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48123 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48124 else
48125 # Is the header compilable?
48126 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
48127 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
48128 cat >conftest.$ac_ext <<_ACEOF
48129 #line $LINENO "configure"
48130 /* confdefs.h. */
48131 _ACEOF
48132 cat confdefs.h >>conftest.$ac_ext
48133 cat >>conftest.$ac_ext <<_ACEOF
48134 /* end confdefs.h. */
48135 $ac_includes_default
48136 #include <langinfo.h>
48137 _ACEOF
48138 rm -f conftest.$ac_objext
48139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48140 (eval $ac_compile) 2>&5
48141 ac_status=$?
48142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48143 (exit $ac_status); } &&
48144 { ac_try='test -s conftest.$ac_objext'
48145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48146 (eval $ac_try) 2>&5
48147 ac_status=$?
48148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48149 (exit $ac_status); }; }; then
48150 ac_header_compiler=yes
48151 else
48152 echo "$as_me: failed program was:" >&5
48153 sed 's/^/| /' conftest.$ac_ext >&5
48155 ac_header_compiler=no
48157 rm -f conftest.$ac_objext conftest.$ac_ext
48158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48159 echo "${ECHO_T}$ac_header_compiler" >&6
48161 # Is the header present?
48162 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
48163 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
48164 cat >conftest.$ac_ext <<_ACEOF
48165 #line $LINENO "configure"
48166 /* confdefs.h. */
48167 _ACEOF
48168 cat confdefs.h >>conftest.$ac_ext
48169 cat >>conftest.$ac_ext <<_ACEOF
48170 /* end confdefs.h. */
48171 #include <langinfo.h>
48172 _ACEOF
48173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48175 ac_status=$?
48176 grep -v '^ *+' conftest.er1 >conftest.err
48177 rm -f conftest.er1
48178 cat conftest.err >&5
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); } >/dev/null; then
48181 if test -s conftest.err; then
48182 ac_cpp_err=$ac_c_preproc_warn_flag
48183 else
48184 ac_cpp_err=
48186 else
48187 ac_cpp_err=yes
48189 if test -z "$ac_cpp_err"; then
48190 ac_header_preproc=yes
48191 else
48192 echo "$as_me: failed program was:" >&5
48193 sed 's/^/| /' conftest.$ac_ext >&5
48195 ac_header_preproc=no
48197 rm -f conftest.err conftest.$ac_ext
48198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48199 echo "${ECHO_T}$ac_header_preproc" >&6
48201 # So? What about this header?
48202 case $ac_header_compiler:$ac_header_preproc in
48203 yes:no )
48204 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
48205 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48206 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48207 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48209 cat <<\_ASBOX
48210 ## ------------------------------------ ##
48211 ## Report this to bug-autoconf@gnu.org. ##
48212 ## ------------------------------------ ##
48213 _ASBOX
48215 sed "s/^/$as_me: WARNING: /" >&2
48217 no:yes )
48218 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
48219 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
48220 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
48221 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
48222 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48223 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48225 cat <<\_ASBOX
48226 ## ------------------------------------ ##
48227 ## Report this to bug-autoconf@gnu.org. ##
48228 ## ------------------------------------ ##
48229 _ASBOX
48231 sed "s/^/$as_me: WARNING: /" >&2
48233 esac
48234 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48235 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48236 if test "${ac_cv_header_langinfo_h+set}" = set; then
48237 echo $ECHO_N "(cached) $ECHO_C" >&6
48238 else
48239 ac_cv_header_langinfo_h=$ac_header_preproc
48241 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48242 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48245 if test $ac_cv_header_langinfo_h = yes; then
48246 ac_has_langinfo_h=yes
48247 else
48248 ac_has_langinfo_h=no
48253 # Check for existence of libiconv.a providing XPG2 wchar_t support.
48254 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
48255 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
48256 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
48257 echo $ECHO_N "(cached) $ECHO_C" >&6
48258 else
48259 ac_check_lib_save_LIBS=$LIBS
48260 LIBS="-liconv $LIBS"
48261 if test x$gcc_no_link = xyes; then
48262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48264 { (exit 1); exit 1; }; }
48266 cat >conftest.$ac_ext <<_ACEOF
48267 #line $LINENO "configure"
48268 /* confdefs.h. */
48269 _ACEOF
48270 cat confdefs.h >>conftest.$ac_ext
48271 cat >>conftest.$ac_ext <<_ACEOF
48272 /* end confdefs.h. */
48274 /* Override any gcc2 internal prototype to avoid an error. */
48275 #ifdef __cplusplus
48276 extern "C"
48277 #endif
48278 /* We use char because int might match the return type of a gcc2
48279 builtin and then its argument prototype would still apply. */
48280 char iconv ();
48282 main ()
48284 iconv ();
48286 return 0;
48288 _ACEOF
48289 rm -f conftest.$ac_objext conftest$ac_exeext
48290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48291 (eval $ac_link) 2>&5
48292 ac_status=$?
48293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48294 (exit $ac_status); } &&
48295 { ac_try='test -s conftest$ac_exeext'
48296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48297 (eval $ac_try) 2>&5
48298 ac_status=$?
48299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48300 (exit $ac_status); }; }; then
48301 ac_cv_lib_iconv_iconv=yes
48302 else
48303 echo "$as_me: failed program was:" >&5
48304 sed 's/^/| /' conftest.$ac_ext >&5
48306 ac_cv_lib_iconv_iconv=no
48308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48309 LIBS=$ac_check_lib_save_LIBS
48311 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
48312 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
48313 if test $ac_cv_lib_iconv_iconv = yes; then
48314 libiconv="-liconv"
48317 ac_save_LIBS="$LIBS"
48318 LIBS="$LIBS $libiconv"
48324 for ac_func in iconv_open iconv_close iconv nl_langinfo
48326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48327 echo "$as_me:$LINENO: checking for $ac_func" >&5
48328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48329 if eval "test \"\${$as_ac_var+set}\" = set"; then
48330 echo $ECHO_N "(cached) $ECHO_C" >&6
48331 else
48332 if test x$gcc_no_link = xyes; then
48333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48335 { (exit 1); exit 1; }; }
48337 cat >conftest.$ac_ext <<_ACEOF
48338 #line $LINENO "configure"
48339 /* confdefs.h. */
48340 _ACEOF
48341 cat confdefs.h >>conftest.$ac_ext
48342 cat >>conftest.$ac_ext <<_ACEOF
48343 /* end confdefs.h. */
48344 /* System header to define __stub macros and hopefully few prototypes,
48345 which can conflict with char $ac_func (); below.
48346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48347 <limits.h> exists even on freestanding compilers. */
48348 #ifdef __STDC__
48349 # include <limits.h>
48350 #else
48351 # include <assert.h>
48352 #endif
48353 /* Override any gcc2 internal prototype to avoid an error. */
48354 #ifdef __cplusplus
48355 extern "C"
48357 #endif
48358 /* We use char because int might match the return type of a gcc2
48359 builtin and then its argument prototype would still apply. */
48360 char $ac_func ();
48361 /* The GNU C library defines this for functions which it implements
48362 to always fail with ENOSYS. Some functions are actually named
48363 something starting with __ and the normal name is an alias. */
48364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48365 choke me
48366 #else
48367 char (*f) () = $ac_func;
48368 #endif
48369 #ifdef __cplusplus
48371 #endif
48374 main ()
48376 return f != $ac_func;
48378 return 0;
48380 _ACEOF
48381 rm -f conftest.$ac_objext conftest$ac_exeext
48382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48383 (eval $ac_link) 2>&5
48384 ac_status=$?
48385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48386 (exit $ac_status); } &&
48387 { ac_try='test -s conftest$ac_exeext'
48388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48389 (eval $ac_try) 2>&5
48390 ac_status=$?
48391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48392 (exit $ac_status); }; }; then
48393 eval "$as_ac_var=yes"
48394 else
48395 echo "$as_me: failed program was:" >&5
48396 sed 's/^/| /' conftest.$ac_ext >&5
48398 eval "$as_ac_var=no"
48400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48404 if test `eval echo '${'$as_ac_var'}'` = yes; then
48405 cat >>confdefs.h <<_ACEOF
48406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48407 _ACEOF
48408 ac_XPG2funcs=yes
48409 else
48410 ac_XPG2funcs=no
48412 done
48415 LIBS="$ac_save_LIBS"
48417 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
48418 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
48419 if test x"$ac_has_iconv_h" = xyes &&
48420 test x"$ac_has_langinfo_h" = xyes &&
48421 test x"$ac_XPG2funcs" = xyes;
48422 then
48423 ac_XPG2_wchar_t=yes
48424 else
48425 ac_XPG2_wchar_t=no
48427 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
48428 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
48430 # At the moment, only enable wchar_t specializations if all the
48431 # above support is present.
48432 if test x"$ac_isoC99_wchar_t" = xyes &&
48433 test x"$ac_XPG2_wchar_t" = xyes;
48434 then
48435 cat >>confdefs.h <<\_ACEOF
48436 #define _GLIBCXX_USE_WCHAR_T 1
48437 _ACEOF
48439 enable_wchar_t=yes
48442 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
48443 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
48444 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
48445 echo "${ECHO_T}$enable_wchar_t" >&6
48447 cat >>confdefs.h <<\_ACEOF
48448 #define HAVE_LC_MESSAGES 1
48449 _ACEOF
48451 cat >>confdefs.h <<\_ACEOF
48452 #define HAVE_DRAND48 1
48453 _ACEOF
48455 cat >>confdefs.h <<\_ACEOF
48456 #define HAVE_GETPAGESIZE 1
48457 _ACEOF
48459 cat >>confdefs.h <<\_ACEOF
48460 #define HAVE_SETENV 1
48461 _ACEOF
48463 cat >>confdefs.h <<\_ACEOF
48464 #define HAVE_SIGSETJMP 1
48465 _ACEOF
48467 cat >>confdefs.h <<\_ACEOF
48468 #define HAVE_COPYSIGN 1
48469 _ACEOF
48471 cat >>confdefs.h <<\_ACEOF
48472 #define HAVE_COPYSIGNF 1
48473 _ACEOF
48475 cat >>confdefs.h <<\_ACEOF
48476 #define HAVE_FINITEF 1
48477 _ACEOF
48479 cat >>confdefs.h <<\_ACEOF
48480 #define HAVE_FINITE 1
48481 _ACEOF
48483 cat >>confdefs.h <<\_ACEOF
48484 #define HAVE_FREXPF 1
48485 _ACEOF
48487 cat >>confdefs.h <<\_ACEOF
48488 #define HAVE_HYPOT 1
48489 _ACEOF
48491 cat >>confdefs.h <<\_ACEOF
48492 #define HAVE_HYPOTF 1
48493 _ACEOF
48495 cat >>confdefs.h <<\_ACEOF
48496 #define HAVE_ISINF 1
48497 _ACEOF
48499 cat >>confdefs.h <<\_ACEOF
48500 #define HAVE_ISNAN 1
48501 _ACEOF
48503 cat >>confdefs.h <<\_ACEOF
48504 #define HAVE_ISNANF 1
48505 _ACEOF
48508 cat >>confdefs.h <<\_ACEOF
48509 #define HAVE_MMAP 1
48510 _ACEOF
48512 cat >>confdefs.h <<\_ACEOF
48513 #define HAVE_ACOSF 1
48514 _ACEOF
48516 cat >>confdefs.h <<\_ACEOF
48517 #define HAVE_ASINF 1
48518 _ACEOF
48520 cat >>confdefs.h <<\_ACEOF
48521 #define HAVE_ATAN2F 1
48522 _ACEOF
48524 cat >>confdefs.h <<\_ACEOF
48525 #define HAVE_ATANF 1
48526 _ACEOF
48528 cat >>confdefs.h <<\_ACEOF
48529 #define HAVE_CEILF 1
48530 _ACEOF
48532 cat >>confdefs.h <<\_ACEOF
48533 #define HAVE_COPYSIGN 1
48534 _ACEOF
48536 cat >>confdefs.h <<\_ACEOF
48537 #define HAVE_COPYSIGNF 1
48538 _ACEOF
48540 cat >>confdefs.h <<\_ACEOF
48541 #define HAVE_COSF 1
48542 _ACEOF
48544 cat >>confdefs.h <<\_ACEOF
48545 #define HAVE_COSHF 1
48546 _ACEOF
48548 cat >>confdefs.h <<\_ACEOF
48549 #define HAVE_EXPF 1
48550 _ACEOF
48552 cat >>confdefs.h <<\_ACEOF
48553 #define HAVE_FABSF 1
48554 _ACEOF
48556 cat >>confdefs.h <<\_ACEOF
48557 #define HAVE_FLOORF 1
48558 _ACEOF
48560 cat >>confdefs.h <<\_ACEOF
48561 #define HAVE_FMODF 1
48562 _ACEOF
48564 cat >>confdefs.h <<\_ACEOF
48565 #define HAVE_FREXPF 1
48566 _ACEOF
48568 cat >>confdefs.h <<\_ACEOF
48569 #define HAVE_LDEXPF 1
48570 _ACEOF
48572 cat >>confdefs.h <<\_ACEOF
48573 #define HAVE_LOG10F 1
48574 _ACEOF
48576 cat >>confdefs.h <<\_ACEOF
48577 #define HAVE_LOGF 1
48578 _ACEOF
48580 cat >>confdefs.h <<\_ACEOF
48581 #define HAVE_MODFF 1
48582 _ACEOF
48584 cat >>confdefs.h <<\_ACEOF
48585 #define HAVE_POWF 1
48586 _ACEOF
48588 cat >>confdefs.h <<\_ACEOF
48589 #define HAVE_SINF 1
48590 _ACEOF
48592 cat >>confdefs.h <<\_ACEOF
48593 #define HAVE_SINHF 1
48594 _ACEOF
48596 cat >>confdefs.h <<\_ACEOF
48597 #define HAVE_SQRTF 1
48598 _ACEOF
48600 cat >>confdefs.h <<\_ACEOF
48601 #define HAVE_TANF 1
48602 _ACEOF
48604 cat >>confdefs.h <<\_ACEOF
48605 #define HAVE_TANHF 1
48606 _ACEOF
48608 if test x"long_double_math_on_this_cpu" = x"yes"; then
48609 cat >>confdefs.h <<\_ACEOF
48610 #define HAVE_FINITEL 1
48611 _ACEOF
48613 cat >>confdefs.h <<\_ACEOF
48614 #define HAVE_ISINFL 1
48615 _ACEOF
48617 cat >>confdefs.h <<\_ACEOF
48618 #define HAVE_ISNANL 1
48619 _ACEOF
48623 *-hpux*)
48624 #os_include_dir="os/hpux"
48637 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
48638 machine/endian.h machine/param.h sys/machine.h sys/types.h \
48639 fp.h locale.h float.h inttypes.h
48641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48643 echo "$as_me:$LINENO: checking for $ac_header" >&5
48644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48646 echo $ECHO_N "(cached) $ECHO_C" >&6
48648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48650 else
48651 # Is the header compilable?
48652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48654 cat >conftest.$ac_ext <<_ACEOF
48655 #line $LINENO "configure"
48656 /* confdefs.h. */
48657 _ACEOF
48658 cat confdefs.h >>conftest.$ac_ext
48659 cat >>conftest.$ac_ext <<_ACEOF
48660 /* end confdefs.h. */
48661 $ac_includes_default
48662 #include <$ac_header>
48663 _ACEOF
48664 rm -f conftest.$ac_objext
48665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48666 (eval $ac_compile) 2>&5
48667 ac_status=$?
48668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48669 (exit $ac_status); } &&
48670 { ac_try='test -s conftest.$ac_objext'
48671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48672 (eval $ac_try) 2>&5
48673 ac_status=$?
48674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48675 (exit $ac_status); }; }; then
48676 ac_header_compiler=yes
48677 else
48678 echo "$as_me: failed program was:" >&5
48679 sed 's/^/| /' conftest.$ac_ext >&5
48681 ac_header_compiler=no
48683 rm -f conftest.$ac_objext conftest.$ac_ext
48684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48685 echo "${ECHO_T}$ac_header_compiler" >&6
48687 # Is the header present?
48688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48690 cat >conftest.$ac_ext <<_ACEOF
48691 #line $LINENO "configure"
48692 /* confdefs.h. */
48693 _ACEOF
48694 cat confdefs.h >>conftest.$ac_ext
48695 cat >>conftest.$ac_ext <<_ACEOF
48696 /* end confdefs.h. */
48697 #include <$ac_header>
48698 _ACEOF
48699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48701 ac_status=$?
48702 grep -v '^ *+' conftest.er1 >conftest.err
48703 rm -f conftest.er1
48704 cat conftest.err >&5
48705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48706 (exit $ac_status); } >/dev/null; then
48707 if test -s conftest.err; then
48708 ac_cpp_err=$ac_c_preproc_warn_flag
48709 else
48710 ac_cpp_err=
48712 else
48713 ac_cpp_err=yes
48715 if test -z "$ac_cpp_err"; then
48716 ac_header_preproc=yes
48717 else
48718 echo "$as_me: failed program was:" >&5
48719 sed 's/^/| /' conftest.$ac_ext >&5
48721 ac_header_preproc=no
48723 rm -f conftest.err conftest.$ac_ext
48724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48725 echo "${ECHO_T}$ac_header_preproc" >&6
48727 # So? What about this header?
48728 case $ac_header_compiler:$ac_header_preproc in
48729 yes:no )
48730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48735 cat <<\_ASBOX
48736 ## ------------------------------------ ##
48737 ## Report this to bug-autoconf@gnu.org. ##
48738 ## ------------------------------------ ##
48739 _ASBOX
48741 sed "s/^/$as_me: WARNING: /" >&2
48743 no:yes )
48744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48751 cat <<\_ASBOX
48752 ## ------------------------------------ ##
48753 ## Report this to bug-autoconf@gnu.org. ##
48754 ## ------------------------------------ ##
48755 _ASBOX
48757 sed "s/^/$as_me: WARNING: /" >&2
48759 esac
48760 echo "$as_me:$LINENO: checking for $ac_header" >&5
48761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48763 echo $ECHO_N "(cached) $ECHO_C" >&6
48764 else
48765 eval "$as_ac_Header=$ac_header_preproc"
48767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48772 cat >>confdefs.h <<_ACEOF
48773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48774 _ACEOF
48778 done
48780 SECTION_FLAGS='-ffunction-sections -fdata-sections'
48783 # If we're not using GNU ld, then there's no point in even trying these
48784 # tests. Check for that first. We should have already tested for gld
48785 # by now (in libtool), but require it now just to be safe...
48786 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
48787 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
48791 # The name set by libtool depends on the version of libtool. Shame on us
48792 # for depending on an impl detail, but c'est la vie. Older versions used
48793 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
48794 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
48795 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
48796 # set (hence we're using an older libtool), then set it.
48797 if test x${with_gnu_ld+set} != xset; then
48798 if test x${ac_cv_prog_gnu_ld+set} != xset; then
48799 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
48800 with_gnu_ld=no
48801 else
48802 with_gnu_ld=$ac_cv_prog_gnu_ld
48806 # Start by getting the version number. I think the libtool test already
48807 # does some of this, but throws away the result.
48809 ldver=`$LD --version 2>/dev/null | head -1 | \
48810 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
48812 glibcxx_gnu_ld_version=`echo $ldver | \
48813 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
48815 # Set --gc-sections.
48816 if test "$with_gnu_ld" = "notbroken"; then
48817 # GNU ld it is! Joy and bunny rabbits!
48819 # All these tests are for C++; save the language and the compiler flags.
48820 # Need to do this so that g++ won't try to link in libstdc++
48821 ac_test_CFLAGS="${CFLAGS+set}"
48822 ac_save_CFLAGS="$CFLAGS"
48823 CFLAGS='-x c++ -Wl,--gc-sections'
48825 # Check for -Wl,--gc-sections
48826 # XXX This test is broken at the moment, as symbols required for linking
48827 # are now in libsupc++ (not built yet). In addition, this test has
48828 # cored on solaris in the past. In addition, --gc-sections doesn't
48829 # really work at the moment (keeps on discarding used sections, first
48830 # .eh_frame and now some of the glibc sections for iconv).
48831 # Bzzzzt. Thanks for playing, maybe next time.
48832 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
48833 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
48834 if test "$cross_compiling" = yes; then
48835 ac_sectionLDflags=yes
48836 else
48837 cat >conftest.$ac_ext <<_ACEOF
48838 #line $LINENO "configure"
48839 /* confdefs.h. */
48840 _ACEOF
48841 cat confdefs.h >>conftest.$ac_ext
48842 cat >>conftest.$ac_ext <<_ACEOF
48843 /* end confdefs.h. */
48845 int main(void)
48847 try { throw 1; }
48848 catch (...) { };
48849 return 0;
48852 _ACEOF
48853 rm -f conftest$ac_exeext
48854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48855 (eval $ac_link) 2>&5
48856 ac_status=$?
48857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48860 (eval $ac_try) 2>&5
48861 ac_status=$?
48862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48863 (exit $ac_status); }; }; then
48864 ac_sectionLDflags=yes
48865 else
48866 echo "$as_me: program exited with status $ac_status" >&5
48867 echo "$as_me: failed program was:" >&5
48868 sed 's/^/| /' conftest.$ac_ext >&5
48870 ( exit $ac_status )
48871 ac_sectionLDflags=no
48873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48875 if test "$ac_test_CFLAGS" = set; then
48876 CFLAGS="$ac_save_CFLAGS"
48877 else
48878 # this is the suspicious part
48879 CFLAGS=''
48881 if test "$ac_sectionLDflags" = "yes"; then
48882 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
48884 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
48885 echo "${ECHO_T}$ac_sectionLDflags" >&6
48888 # Set linker optimization flags.
48889 if test x"$with_gnu_ld" = x"yes"; then
48890 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
48898 echo "$as_me:$LINENO: checking for main in -lm" >&5
48899 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
48900 if test "${ac_cv_lib_m_main+set}" = set; then
48901 echo $ECHO_N "(cached) $ECHO_C" >&6
48902 else
48903 ac_check_lib_save_LIBS=$LIBS
48904 LIBS="-lm $LIBS"
48905 if test x$gcc_no_link = xyes; then
48906 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48907 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48908 { (exit 1); exit 1; }; }
48910 cat >conftest.$ac_ext <<_ACEOF
48911 #line $LINENO "configure"
48912 /* confdefs.h. */
48913 _ACEOF
48914 cat confdefs.h >>conftest.$ac_ext
48915 cat >>conftest.$ac_ext <<_ACEOF
48916 /* end confdefs.h. */
48920 main ()
48922 main ();
48924 return 0;
48926 _ACEOF
48927 rm -f conftest.$ac_objext conftest$ac_exeext
48928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48929 (eval $ac_link) 2>&5
48930 ac_status=$?
48931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48932 (exit $ac_status); } &&
48933 { ac_try='test -s conftest$ac_exeext'
48934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48935 (eval $ac_try) 2>&5
48936 ac_status=$?
48937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48938 (exit $ac_status); }; }; then
48939 ac_cv_lib_m_main=yes
48940 else
48941 echo "$as_me: failed program was:" >&5
48942 sed 's/^/| /' conftest.$ac_ext >&5
48944 ac_cv_lib_m_main=no
48946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48947 LIBS=$ac_check_lib_save_LIBS
48949 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
48950 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
48951 if test $ac_cv_lib_m_main = yes; then
48952 cat >>confdefs.h <<_ACEOF
48953 #define HAVE_LIBM 1
48954 _ACEOF
48956 LIBS="-lm $LIBS"
48962 for ac_func in nan copysignf
48964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48965 echo "$as_me:$LINENO: checking for $ac_func" >&5
48966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48967 if eval "test \"\${$as_ac_var+set}\" = set"; then
48968 echo $ECHO_N "(cached) $ECHO_C" >&6
48969 else
48970 if test x$gcc_no_link = xyes; then
48971 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48973 { (exit 1); exit 1; }; }
48975 cat >conftest.$ac_ext <<_ACEOF
48976 #line $LINENO "configure"
48977 /* confdefs.h. */
48978 _ACEOF
48979 cat confdefs.h >>conftest.$ac_ext
48980 cat >>conftest.$ac_ext <<_ACEOF
48981 /* end confdefs.h. */
48982 /* System header to define __stub macros and hopefully few prototypes,
48983 which can conflict with char $ac_func (); below.
48984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48985 <limits.h> exists even on freestanding compilers. */
48986 #ifdef __STDC__
48987 # include <limits.h>
48988 #else
48989 # include <assert.h>
48990 #endif
48991 /* Override any gcc2 internal prototype to avoid an error. */
48992 #ifdef __cplusplus
48993 extern "C"
48995 #endif
48996 /* We use char because int might match the return type of a gcc2
48997 builtin and then its argument prototype would still apply. */
48998 char $ac_func ();
48999 /* The GNU C library defines this for functions which it implements
49000 to always fail with ENOSYS. Some functions are actually named
49001 something starting with __ and the normal name is an alias. */
49002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49003 choke me
49004 #else
49005 char (*f) () = $ac_func;
49006 #endif
49007 #ifdef __cplusplus
49009 #endif
49012 main ()
49014 return f != $ac_func;
49016 return 0;
49018 _ACEOF
49019 rm -f conftest.$ac_objext conftest$ac_exeext
49020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49021 (eval $ac_link) 2>&5
49022 ac_status=$?
49023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49024 (exit $ac_status); } &&
49025 { ac_try='test -s conftest$ac_exeext'
49026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49027 (eval $ac_try) 2>&5
49028 ac_status=$?
49029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49030 (exit $ac_status); }; }; then
49031 eval "$as_ac_var=yes"
49032 else
49033 echo "$as_me: failed program was:" >&5
49034 sed 's/^/| /' conftest.$ac_ext >&5
49036 eval "$as_ac_var=no"
49038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49042 if test `eval echo '${'$as_ac_var'}'` = yes; then
49043 cat >>confdefs.h <<_ACEOF
49044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49045 _ACEOF
49047 else
49048 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
49050 done
49054 for ac_func in __signbit
49056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49057 echo "$as_me:$LINENO: checking for $ac_func" >&5
49058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49059 if eval "test \"\${$as_ac_var+set}\" = set"; then
49060 echo $ECHO_N "(cached) $ECHO_C" >&6
49061 else
49062 if test x$gcc_no_link = xyes; then
49063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49065 { (exit 1); exit 1; }; }
49067 cat >conftest.$ac_ext <<_ACEOF
49068 #line $LINENO "configure"
49069 /* confdefs.h. */
49070 _ACEOF
49071 cat confdefs.h >>conftest.$ac_ext
49072 cat >>conftest.$ac_ext <<_ACEOF
49073 /* end confdefs.h. */
49074 /* System header to define __stub macros and hopefully few prototypes,
49075 which can conflict with char $ac_func (); below.
49076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49077 <limits.h> exists even on freestanding compilers. */
49078 #ifdef __STDC__
49079 # include <limits.h>
49080 #else
49081 # include <assert.h>
49082 #endif
49083 /* Override any gcc2 internal prototype to avoid an error. */
49084 #ifdef __cplusplus
49085 extern "C"
49087 #endif
49088 /* We use char because int might match the return type of a gcc2
49089 builtin and then its argument prototype would still apply. */
49090 char $ac_func ();
49091 /* The GNU C library defines this for functions which it implements
49092 to always fail with ENOSYS. Some functions are actually named
49093 something starting with __ and the normal name is an alias. */
49094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49095 choke me
49096 #else
49097 char (*f) () = $ac_func;
49098 #endif
49099 #ifdef __cplusplus
49101 #endif
49104 main ()
49106 return f != $ac_func;
49108 return 0;
49110 _ACEOF
49111 rm -f conftest.$ac_objext conftest$ac_exeext
49112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49113 (eval $ac_link) 2>&5
49114 ac_status=$?
49115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49116 (exit $ac_status); } &&
49117 { ac_try='test -s conftest$ac_exeext'
49118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49119 (eval $ac_try) 2>&5
49120 ac_status=$?
49121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49122 (exit $ac_status); }; }; then
49123 eval "$as_ac_var=yes"
49124 else
49125 echo "$as_me: failed program was:" >&5
49126 sed 's/^/| /' conftest.$ac_ext >&5
49128 eval "$as_ac_var=no"
49130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49134 if test `eval echo '${'$as_ac_var'}'` = yes; then
49135 cat >>confdefs.h <<_ACEOF
49136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49137 _ACEOF
49139 else
49140 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
49142 done
49145 for ac_func in __signbitf
49147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49148 echo "$as_me:$LINENO: checking for $ac_func" >&5
49149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49150 if eval "test \"\${$as_ac_var+set}\" = set"; then
49151 echo $ECHO_N "(cached) $ECHO_C" >&6
49152 else
49153 if test x$gcc_no_link = xyes; then
49154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49156 { (exit 1); exit 1; }; }
49158 cat >conftest.$ac_ext <<_ACEOF
49159 #line $LINENO "configure"
49160 /* confdefs.h. */
49161 _ACEOF
49162 cat confdefs.h >>conftest.$ac_ext
49163 cat >>conftest.$ac_ext <<_ACEOF
49164 /* end confdefs.h. */
49165 /* System header to define __stub macros and hopefully few prototypes,
49166 which can conflict with char $ac_func (); below.
49167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49168 <limits.h> exists even on freestanding compilers. */
49169 #ifdef __STDC__
49170 # include <limits.h>
49171 #else
49172 # include <assert.h>
49173 #endif
49174 /* Override any gcc2 internal prototype to avoid an error. */
49175 #ifdef __cplusplus
49176 extern "C"
49178 #endif
49179 /* We use char because int might match the return type of a gcc2
49180 builtin and then its argument prototype would still apply. */
49181 char $ac_func ();
49182 /* The GNU C library defines this for functions which it implements
49183 to always fail with ENOSYS. Some functions are actually named
49184 something starting with __ and the normal name is an alias. */
49185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49186 choke me
49187 #else
49188 char (*f) () = $ac_func;
49189 #endif
49190 #ifdef __cplusplus
49192 #endif
49195 main ()
49197 return f != $ac_func;
49199 return 0;
49201 _ACEOF
49202 rm -f conftest.$ac_objext conftest$ac_exeext
49203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49204 (eval $ac_link) 2>&5
49205 ac_status=$?
49206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207 (exit $ac_status); } &&
49208 { ac_try='test -s conftest$ac_exeext'
49209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49210 (eval $ac_try) 2>&5
49211 ac_status=$?
49212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49213 (exit $ac_status); }; }; then
49214 eval "$as_ac_var=yes"
49215 else
49216 echo "$as_me: failed program was:" >&5
49217 sed 's/^/| /' conftest.$ac_ext >&5
49219 eval "$as_ac_var=no"
49221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49225 if test `eval echo '${'$as_ac_var'}'` = yes; then
49226 cat >>confdefs.h <<_ACEOF
49227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49228 _ACEOF
49230 else
49231 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
49233 done
49236 if test x$ac_cv_func_copysignl = x"yes"; then
49238 for ac_func in __signbitl
49240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49241 echo "$as_me:$LINENO: checking for $ac_func" >&5
49242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49243 if eval "test \"\${$as_ac_var+set}\" = set"; then
49244 echo $ECHO_N "(cached) $ECHO_C" >&6
49245 else
49246 if test x$gcc_no_link = xyes; then
49247 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49249 { (exit 1); exit 1; }; }
49251 cat >conftest.$ac_ext <<_ACEOF
49252 #line $LINENO "configure"
49253 /* confdefs.h. */
49254 _ACEOF
49255 cat confdefs.h >>conftest.$ac_ext
49256 cat >>conftest.$ac_ext <<_ACEOF
49257 /* end confdefs.h. */
49258 /* System header to define __stub macros and hopefully few prototypes,
49259 which can conflict with char $ac_func (); below.
49260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49261 <limits.h> exists even on freestanding compilers. */
49262 #ifdef __STDC__
49263 # include <limits.h>
49264 #else
49265 # include <assert.h>
49266 #endif
49267 /* Override any gcc2 internal prototype to avoid an error. */
49268 #ifdef __cplusplus
49269 extern "C"
49271 #endif
49272 /* We use char because int might match the return type of a gcc2
49273 builtin and then its argument prototype would still apply. */
49274 char $ac_func ();
49275 /* The GNU C library defines this for functions which it implements
49276 to always fail with ENOSYS. Some functions are actually named
49277 something starting with __ and the normal name is an alias. */
49278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49279 choke me
49280 #else
49281 char (*f) () = $ac_func;
49282 #endif
49283 #ifdef __cplusplus
49285 #endif
49288 main ()
49290 return f != $ac_func;
49292 return 0;
49294 _ACEOF
49295 rm -f conftest.$ac_objext conftest$ac_exeext
49296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49297 (eval $ac_link) 2>&5
49298 ac_status=$?
49299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49300 (exit $ac_status); } &&
49301 { ac_try='test -s conftest$ac_exeext'
49302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49303 (eval $ac_try) 2>&5
49304 ac_status=$?
49305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49306 (exit $ac_status); }; }; then
49307 eval "$as_ac_var=yes"
49308 else
49309 echo "$as_me: failed program was:" >&5
49310 sed 's/^/| /' conftest.$ac_ext >&5
49312 eval "$as_ac_var=no"
49314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49318 if test `eval echo '${'$as_ac_var'}'` = yes; then
49319 cat >>confdefs.h <<_ACEOF
49320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49321 _ACEOF
49323 else
49324 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
49326 done
49330 # XXX Review this. Nothing uses it.
49331 if test -n "$LIBMATHOBJS"; then
49332 need_libmath=yes
49337 # Test wchar.h for mbstate_t, which is needed for char_traits and
49338 # others even if wchar_t support is not on.
49339 echo "$as_me:$LINENO: checking for mbstate_t" >&5
49340 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
49341 cat >conftest.$ac_ext <<_ACEOF
49342 #line $LINENO "configure"
49343 /* confdefs.h. */
49344 _ACEOF
49345 cat confdefs.h >>conftest.$ac_ext
49346 cat >>conftest.$ac_ext <<_ACEOF
49347 /* end confdefs.h. */
49348 #include <wchar.h>
49350 main ()
49352 mbstate_t teststate;
49354 return 0;
49356 _ACEOF
49357 rm -f conftest.$ac_objext
49358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49359 (eval $ac_compile) 2>&5
49360 ac_status=$?
49361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49362 (exit $ac_status); } &&
49363 { ac_try='test -s conftest.$ac_objext'
49364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49365 (eval $ac_try) 2>&5
49366 ac_status=$?
49367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49368 (exit $ac_status); }; }; then
49369 have_mbstate_t=yes
49370 else
49371 echo "$as_me: failed program was:" >&5
49372 sed 's/^/| /' conftest.$ac_ext >&5
49374 have_mbstate_t=no
49376 rm -f conftest.$ac_objext conftest.$ac_ext
49377 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
49378 echo "${ECHO_T}$have_mbstate_t" >&6
49379 if test x"$have_mbstate_t" = xyes; then
49380 cat >>confdefs.h <<\_ACEOF
49381 #define HAVE_MBSTATE_T 1
49382 _ACEOF
49386 # Sanity check for existence of ISO C99 headers for extended encoding.
49388 for ac_header in wchar.h
49390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49392 echo "$as_me:$LINENO: checking for $ac_header" >&5
49393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49395 echo $ECHO_N "(cached) $ECHO_C" >&6
49397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49399 else
49400 # Is the header compilable?
49401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49403 cat >conftest.$ac_ext <<_ACEOF
49404 #line $LINENO "configure"
49405 /* confdefs.h. */
49406 _ACEOF
49407 cat confdefs.h >>conftest.$ac_ext
49408 cat >>conftest.$ac_ext <<_ACEOF
49409 /* end confdefs.h. */
49410 $ac_includes_default
49411 #include <$ac_header>
49412 _ACEOF
49413 rm -f conftest.$ac_objext
49414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49415 (eval $ac_compile) 2>&5
49416 ac_status=$?
49417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49418 (exit $ac_status); } &&
49419 { ac_try='test -s conftest.$ac_objext'
49420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49421 (eval $ac_try) 2>&5
49422 ac_status=$?
49423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49424 (exit $ac_status); }; }; then
49425 ac_header_compiler=yes
49426 else
49427 echo "$as_me: failed program was:" >&5
49428 sed 's/^/| /' conftest.$ac_ext >&5
49430 ac_header_compiler=no
49432 rm -f conftest.$ac_objext conftest.$ac_ext
49433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49434 echo "${ECHO_T}$ac_header_compiler" >&6
49436 # Is the header present?
49437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49439 cat >conftest.$ac_ext <<_ACEOF
49440 #line $LINENO "configure"
49441 /* confdefs.h. */
49442 _ACEOF
49443 cat confdefs.h >>conftest.$ac_ext
49444 cat >>conftest.$ac_ext <<_ACEOF
49445 /* end confdefs.h. */
49446 #include <$ac_header>
49447 _ACEOF
49448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49450 ac_status=$?
49451 grep -v '^ *+' conftest.er1 >conftest.err
49452 rm -f conftest.er1
49453 cat conftest.err >&5
49454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49455 (exit $ac_status); } >/dev/null; then
49456 if test -s conftest.err; then
49457 ac_cpp_err=$ac_c_preproc_warn_flag
49458 else
49459 ac_cpp_err=
49461 else
49462 ac_cpp_err=yes
49464 if test -z "$ac_cpp_err"; then
49465 ac_header_preproc=yes
49466 else
49467 echo "$as_me: failed program was:" >&5
49468 sed 's/^/| /' conftest.$ac_ext >&5
49470 ac_header_preproc=no
49472 rm -f conftest.err conftest.$ac_ext
49473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49474 echo "${ECHO_T}$ac_header_preproc" >&6
49476 # So? What about this header?
49477 case $ac_header_compiler:$ac_header_preproc in
49478 yes:no )
49479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49484 cat <<\_ASBOX
49485 ## ------------------------------------ ##
49486 ## Report this to bug-autoconf@gnu.org. ##
49487 ## ------------------------------------ ##
49488 _ASBOX
49490 sed "s/^/$as_me: WARNING: /" >&2
49492 no:yes )
49493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49500 cat <<\_ASBOX
49501 ## ------------------------------------ ##
49502 ## Report this to bug-autoconf@gnu.org. ##
49503 ## ------------------------------------ ##
49504 _ASBOX
49506 sed "s/^/$as_me: WARNING: /" >&2
49508 esac
49509 echo "$as_me:$LINENO: checking for $ac_header" >&5
49510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49512 echo $ECHO_N "(cached) $ECHO_C" >&6
49513 else
49514 eval "$as_ac_Header=$ac_header_preproc"
49516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49521 cat >>confdefs.h <<_ACEOF
49522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49523 _ACEOF
49524 ac_has_wchar_h=yes
49525 else
49526 ac_has_wchar_h=no
49529 done
49532 for ac_header in wctype.h
49534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49536 echo "$as_me:$LINENO: checking for $ac_header" >&5
49537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49539 echo $ECHO_N "(cached) $ECHO_C" >&6
49541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49543 else
49544 # Is the header compilable?
49545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49547 cat >conftest.$ac_ext <<_ACEOF
49548 #line $LINENO "configure"
49549 /* confdefs.h. */
49550 _ACEOF
49551 cat confdefs.h >>conftest.$ac_ext
49552 cat >>conftest.$ac_ext <<_ACEOF
49553 /* end confdefs.h. */
49554 $ac_includes_default
49555 #include <$ac_header>
49556 _ACEOF
49557 rm -f conftest.$ac_objext
49558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49559 (eval $ac_compile) 2>&5
49560 ac_status=$?
49561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49562 (exit $ac_status); } &&
49563 { ac_try='test -s conftest.$ac_objext'
49564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49565 (eval $ac_try) 2>&5
49566 ac_status=$?
49567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49568 (exit $ac_status); }; }; then
49569 ac_header_compiler=yes
49570 else
49571 echo "$as_me: failed program was:" >&5
49572 sed 's/^/| /' conftest.$ac_ext >&5
49574 ac_header_compiler=no
49576 rm -f conftest.$ac_objext conftest.$ac_ext
49577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49578 echo "${ECHO_T}$ac_header_compiler" >&6
49580 # Is the header present?
49581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49583 cat >conftest.$ac_ext <<_ACEOF
49584 #line $LINENO "configure"
49585 /* confdefs.h. */
49586 _ACEOF
49587 cat confdefs.h >>conftest.$ac_ext
49588 cat >>conftest.$ac_ext <<_ACEOF
49589 /* end confdefs.h. */
49590 #include <$ac_header>
49591 _ACEOF
49592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49594 ac_status=$?
49595 grep -v '^ *+' conftest.er1 >conftest.err
49596 rm -f conftest.er1
49597 cat conftest.err >&5
49598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49599 (exit $ac_status); } >/dev/null; then
49600 if test -s conftest.err; then
49601 ac_cpp_err=$ac_c_preproc_warn_flag
49602 else
49603 ac_cpp_err=
49605 else
49606 ac_cpp_err=yes
49608 if test -z "$ac_cpp_err"; then
49609 ac_header_preproc=yes
49610 else
49611 echo "$as_me: failed program was:" >&5
49612 sed 's/^/| /' conftest.$ac_ext >&5
49614 ac_header_preproc=no
49616 rm -f conftest.err conftest.$ac_ext
49617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49618 echo "${ECHO_T}$ac_header_preproc" >&6
49620 # So? What about this header?
49621 case $ac_header_compiler:$ac_header_preproc in
49622 yes:no )
49623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49628 cat <<\_ASBOX
49629 ## ------------------------------------ ##
49630 ## Report this to bug-autoconf@gnu.org. ##
49631 ## ------------------------------------ ##
49632 _ASBOX
49634 sed "s/^/$as_me: WARNING: /" >&2
49636 no:yes )
49637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49644 cat <<\_ASBOX
49645 ## ------------------------------------ ##
49646 ## Report this to bug-autoconf@gnu.org. ##
49647 ## ------------------------------------ ##
49648 _ASBOX
49650 sed "s/^/$as_me: WARNING: /" >&2
49652 esac
49653 echo "$as_me:$LINENO: checking for $ac_header" >&5
49654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49656 echo $ECHO_N "(cached) $ECHO_C" >&6
49657 else
49658 eval "$as_ac_Header=$ac_header_preproc"
49660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49665 cat >>confdefs.h <<_ACEOF
49666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49667 _ACEOF
49668 ac_has_wctype_h=yes
49669 else
49670 ac_has_wctype_h=no
49673 done
49676 # Only continue checking if the ISO C99 headers exist and support is on.
49677 if test x"$ac_has_wchar_h" = xyes &&
49678 test x"$ac_has_wctype_h" = xyes &&
49679 test x"$enable_c_mbchar" != xno; then
49681 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
49682 # numeric_limits can instantiate type_traits<wchar_t>
49683 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
49684 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
49685 cat >conftest.$ac_ext <<_ACEOF
49686 #line $LINENO "configure"
49687 /* confdefs.h. */
49688 _ACEOF
49689 cat confdefs.h >>conftest.$ac_ext
49690 cat >>conftest.$ac_ext <<_ACEOF
49691 /* end confdefs.h. */
49692 #include <wchar.h>
49694 main ()
49696 int i = WCHAR_MIN; int j = WCHAR_MAX;
49698 return 0;
49700 _ACEOF
49701 rm -f conftest.$ac_objext
49702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49703 (eval $ac_compile) 2>&5
49704 ac_status=$?
49705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49706 (exit $ac_status); } &&
49707 { ac_try='test -s conftest.$ac_objext'
49708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49709 (eval $ac_try) 2>&5
49710 ac_status=$?
49711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49712 (exit $ac_status); }; }; then
49713 has_wchar_minmax=yes
49714 else
49715 echo "$as_me: failed program was:" >&5
49716 sed 's/^/| /' conftest.$ac_ext >&5
49718 has_wchar_minmax=no
49720 rm -f conftest.$ac_objext conftest.$ac_ext
49721 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
49722 echo "${ECHO_T}$has_wchar_minmax" >&6
49724 # Test wchar.h for WEOF, which is what we use to determine whether
49725 # to specialize for char_traits<wchar_t> or not.
49726 echo "$as_me:$LINENO: checking for WEOF" >&5
49727 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
49728 cat >conftest.$ac_ext <<_ACEOF
49729 #line $LINENO "configure"
49730 /* confdefs.h. */
49731 _ACEOF
49732 cat confdefs.h >>conftest.$ac_ext
49733 cat >>conftest.$ac_ext <<_ACEOF
49734 /* end confdefs.h. */
49736 #include <wchar.h>
49737 #include <stddef.h>
49739 main ()
49741 wint_t i = WEOF;
49743 return 0;
49745 _ACEOF
49746 rm -f conftest.$ac_objext
49747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49748 (eval $ac_compile) 2>&5
49749 ac_status=$?
49750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49751 (exit $ac_status); } &&
49752 { ac_try='test -s conftest.$ac_objext'
49753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49754 (eval $ac_try) 2>&5
49755 ac_status=$?
49756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49757 (exit $ac_status); }; }; then
49758 has_weof=yes
49759 else
49760 echo "$as_me: failed program was:" >&5
49761 sed 's/^/| /' conftest.$ac_ext >&5
49763 has_weof=no
49765 rm -f conftest.$ac_objext conftest.$ac_ext
49766 echo "$as_me:$LINENO: result: $has_weof" >&5
49767 echo "${ECHO_T}$has_weof" >&6
49769 # Tests for wide character functions used in char_traits<wchar_t>.
49770 ac_wfuncs=yes
49777 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
49779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49780 echo "$as_me:$LINENO: checking for $ac_func" >&5
49781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49782 if eval "test \"\${$as_ac_var+set}\" = set"; then
49783 echo $ECHO_N "(cached) $ECHO_C" >&6
49784 else
49785 if test x$gcc_no_link = xyes; then
49786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49788 { (exit 1); exit 1; }; }
49790 cat >conftest.$ac_ext <<_ACEOF
49791 #line $LINENO "configure"
49792 /* confdefs.h. */
49793 _ACEOF
49794 cat confdefs.h >>conftest.$ac_ext
49795 cat >>conftest.$ac_ext <<_ACEOF
49796 /* end confdefs.h. */
49797 /* System header to define __stub macros and hopefully few prototypes,
49798 which can conflict with char $ac_func (); below.
49799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49800 <limits.h> exists even on freestanding compilers. */
49801 #ifdef __STDC__
49802 # include <limits.h>
49803 #else
49804 # include <assert.h>
49805 #endif
49806 /* Override any gcc2 internal prototype to avoid an error. */
49807 #ifdef __cplusplus
49808 extern "C"
49810 #endif
49811 /* We use char because int might match the return type of a gcc2
49812 builtin and then its argument prototype would still apply. */
49813 char $ac_func ();
49814 /* The GNU C library defines this for functions which it implements
49815 to always fail with ENOSYS. Some functions are actually named
49816 something starting with __ and the normal name is an alias. */
49817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49818 choke me
49819 #else
49820 char (*f) () = $ac_func;
49821 #endif
49822 #ifdef __cplusplus
49824 #endif
49827 main ()
49829 return f != $ac_func;
49831 return 0;
49833 _ACEOF
49834 rm -f conftest.$ac_objext conftest$ac_exeext
49835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49836 (eval $ac_link) 2>&5
49837 ac_status=$?
49838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49839 (exit $ac_status); } &&
49840 { ac_try='test -s conftest$ac_exeext'
49841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49842 (eval $ac_try) 2>&5
49843 ac_status=$?
49844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49845 (exit $ac_status); }; }; then
49846 eval "$as_ac_var=yes"
49847 else
49848 echo "$as_me: failed program was:" >&5
49849 sed 's/^/| /' conftest.$ac_ext >&5
49851 eval "$as_ac_var=no"
49853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49857 if test `eval echo '${'$as_ac_var'}'` = yes; then
49858 cat >>confdefs.h <<_ACEOF
49859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49860 _ACEOF
49862 else
49863 ac_wfuncs=no
49865 done
49868 # Checks for names injected into std:: by the c_std headers.
49919 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
49920 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
49921 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
49922 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
49923 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
49924 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
49926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49927 echo "$as_me:$LINENO: checking for $ac_func" >&5
49928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49929 if eval "test \"\${$as_ac_var+set}\" = set"; then
49930 echo $ECHO_N "(cached) $ECHO_C" >&6
49931 else
49932 if test x$gcc_no_link = xyes; then
49933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49935 { (exit 1); exit 1; }; }
49937 cat >conftest.$ac_ext <<_ACEOF
49938 #line $LINENO "configure"
49939 /* confdefs.h. */
49940 _ACEOF
49941 cat confdefs.h >>conftest.$ac_ext
49942 cat >>conftest.$ac_ext <<_ACEOF
49943 /* end confdefs.h. */
49944 /* System header to define __stub macros and hopefully few prototypes,
49945 which can conflict with char $ac_func (); below.
49946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49947 <limits.h> exists even on freestanding compilers. */
49948 #ifdef __STDC__
49949 # include <limits.h>
49950 #else
49951 # include <assert.h>
49952 #endif
49953 /* Override any gcc2 internal prototype to avoid an error. */
49954 #ifdef __cplusplus
49955 extern "C"
49957 #endif
49958 /* We use char because int might match the return type of a gcc2
49959 builtin and then its argument prototype would still apply. */
49960 char $ac_func ();
49961 /* The GNU C library defines this for functions which it implements
49962 to always fail with ENOSYS. Some functions are actually named
49963 something starting with __ and the normal name is an alias. */
49964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49965 choke me
49966 #else
49967 char (*f) () = $ac_func;
49968 #endif
49969 #ifdef __cplusplus
49971 #endif
49974 main ()
49976 return f != $ac_func;
49978 return 0;
49980 _ACEOF
49981 rm -f conftest.$ac_objext conftest$ac_exeext
49982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49983 (eval $ac_link) 2>&5
49984 ac_status=$?
49985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49986 (exit $ac_status); } &&
49987 { ac_try='test -s conftest$ac_exeext'
49988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49989 (eval $ac_try) 2>&5
49990 ac_status=$?
49991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49992 (exit $ac_status); }; }; then
49993 eval "$as_ac_var=yes"
49994 else
49995 echo "$as_me: failed program was:" >&5
49996 sed 's/^/| /' conftest.$ac_ext >&5
49998 eval "$as_ac_var=no"
50000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50004 if test `eval echo '${'$as_ac_var'}'` = yes; then
50005 cat >>confdefs.h <<_ACEOF
50006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50007 _ACEOF
50009 else
50010 ac_wfuncs=no
50012 done
50015 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
50016 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
50017 if test x"$has_weof" = xyes &&
50018 test x"$has_wchar_minmax" = xyes &&
50019 test x"$ac_wfuncs" = xyes;
50020 then
50021 ac_isoC99_wchar_t=yes
50022 else
50023 ac_isoC99_wchar_t=no
50025 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
50026 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
50028 # Use iconv for wchar_t to char conversions. As such, check for
50029 # X/Open Portability Guide, version 2 features (XPG2).
50030 if test "${ac_cv_header_iconv_h+set}" = set; then
50031 echo "$as_me:$LINENO: checking for iconv.h" >&5
50032 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50033 if test "${ac_cv_header_iconv_h+set}" = set; then
50034 echo $ECHO_N "(cached) $ECHO_C" >&6
50036 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50037 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50038 else
50039 # Is the header compilable?
50040 echo "$as_me:$LINENO: checking iconv.h usability" >&5
50041 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
50042 cat >conftest.$ac_ext <<_ACEOF
50043 #line $LINENO "configure"
50044 /* confdefs.h. */
50045 _ACEOF
50046 cat confdefs.h >>conftest.$ac_ext
50047 cat >>conftest.$ac_ext <<_ACEOF
50048 /* end confdefs.h. */
50049 $ac_includes_default
50050 #include <iconv.h>
50051 _ACEOF
50052 rm -f conftest.$ac_objext
50053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50054 (eval $ac_compile) 2>&5
50055 ac_status=$?
50056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50057 (exit $ac_status); } &&
50058 { ac_try='test -s conftest.$ac_objext'
50059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50060 (eval $ac_try) 2>&5
50061 ac_status=$?
50062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50063 (exit $ac_status); }; }; then
50064 ac_header_compiler=yes
50065 else
50066 echo "$as_me: failed program was:" >&5
50067 sed 's/^/| /' conftest.$ac_ext >&5
50069 ac_header_compiler=no
50071 rm -f conftest.$ac_objext conftest.$ac_ext
50072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50073 echo "${ECHO_T}$ac_header_compiler" >&6
50075 # Is the header present?
50076 echo "$as_me:$LINENO: checking iconv.h presence" >&5
50077 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
50078 cat >conftest.$ac_ext <<_ACEOF
50079 #line $LINENO "configure"
50080 /* confdefs.h. */
50081 _ACEOF
50082 cat confdefs.h >>conftest.$ac_ext
50083 cat >>conftest.$ac_ext <<_ACEOF
50084 /* end confdefs.h. */
50085 #include <iconv.h>
50086 _ACEOF
50087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50089 ac_status=$?
50090 grep -v '^ *+' conftest.er1 >conftest.err
50091 rm -f conftest.er1
50092 cat conftest.err >&5
50093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50094 (exit $ac_status); } >/dev/null; then
50095 if test -s conftest.err; then
50096 ac_cpp_err=$ac_c_preproc_warn_flag
50097 else
50098 ac_cpp_err=
50100 else
50101 ac_cpp_err=yes
50103 if test -z "$ac_cpp_err"; then
50104 ac_header_preproc=yes
50105 else
50106 echo "$as_me: failed program was:" >&5
50107 sed 's/^/| /' conftest.$ac_ext >&5
50109 ac_header_preproc=no
50111 rm -f conftest.err conftest.$ac_ext
50112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50113 echo "${ECHO_T}$ac_header_preproc" >&6
50115 # So? What about this header?
50116 case $ac_header_compiler:$ac_header_preproc in
50117 yes:no )
50118 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
50119 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50120 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50121 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50123 cat <<\_ASBOX
50124 ## ------------------------------------ ##
50125 ## Report this to bug-autoconf@gnu.org. ##
50126 ## ------------------------------------ ##
50127 _ASBOX
50129 sed "s/^/$as_me: WARNING: /" >&2
50131 no:yes )
50132 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
50133 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
50134 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
50135 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
50136 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50137 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50139 cat <<\_ASBOX
50140 ## ------------------------------------ ##
50141 ## Report this to bug-autoconf@gnu.org. ##
50142 ## ------------------------------------ ##
50143 _ASBOX
50145 sed "s/^/$as_me: WARNING: /" >&2
50147 esac
50148 echo "$as_me:$LINENO: checking for iconv.h" >&5
50149 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50150 if test "${ac_cv_header_iconv_h+set}" = set; then
50151 echo $ECHO_N "(cached) $ECHO_C" >&6
50152 else
50153 ac_cv_header_iconv_h=$ac_header_preproc
50155 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50156 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50159 if test $ac_cv_header_iconv_h = yes; then
50160 ac_has_iconv_h=yes
50161 else
50162 ac_has_iconv_h=no
50166 if test "${ac_cv_header_langinfo_h+set}" = set; then
50167 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50168 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50169 if test "${ac_cv_header_langinfo_h+set}" = set; then
50170 echo $ECHO_N "(cached) $ECHO_C" >&6
50172 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50173 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50174 else
50175 # Is the header compilable?
50176 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
50177 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
50178 cat >conftest.$ac_ext <<_ACEOF
50179 #line $LINENO "configure"
50180 /* confdefs.h. */
50181 _ACEOF
50182 cat confdefs.h >>conftest.$ac_ext
50183 cat >>conftest.$ac_ext <<_ACEOF
50184 /* end confdefs.h. */
50185 $ac_includes_default
50186 #include <langinfo.h>
50187 _ACEOF
50188 rm -f conftest.$ac_objext
50189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50190 (eval $ac_compile) 2>&5
50191 ac_status=$?
50192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50193 (exit $ac_status); } &&
50194 { ac_try='test -s conftest.$ac_objext'
50195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50196 (eval $ac_try) 2>&5
50197 ac_status=$?
50198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50199 (exit $ac_status); }; }; then
50200 ac_header_compiler=yes
50201 else
50202 echo "$as_me: failed program was:" >&5
50203 sed 's/^/| /' conftest.$ac_ext >&5
50205 ac_header_compiler=no
50207 rm -f conftest.$ac_objext conftest.$ac_ext
50208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50209 echo "${ECHO_T}$ac_header_compiler" >&6
50211 # Is the header present?
50212 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
50213 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
50214 cat >conftest.$ac_ext <<_ACEOF
50215 #line $LINENO "configure"
50216 /* confdefs.h. */
50217 _ACEOF
50218 cat confdefs.h >>conftest.$ac_ext
50219 cat >>conftest.$ac_ext <<_ACEOF
50220 /* end confdefs.h. */
50221 #include <langinfo.h>
50222 _ACEOF
50223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50225 ac_status=$?
50226 grep -v '^ *+' conftest.er1 >conftest.err
50227 rm -f conftest.er1
50228 cat conftest.err >&5
50229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50230 (exit $ac_status); } >/dev/null; then
50231 if test -s conftest.err; then
50232 ac_cpp_err=$ac_c_preproc_warn_flag
50233 else
50234 ac_cpp_err=
50236 else
50237 ac_cpp_err=yes
50239 if test -z "$ac_cpp_err"; then
50240 ac_header_preproc=yes
50241 else
50242 echo "$as_me: failed program was:" >&5
50243 sed 's/^/| /' conftest.$ac_ext >&5
50245 ac_header_preproc=no
50247 rm -f conftest.err conftest.$ac_ext
50248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50249 echo "${ECHO_T}$ac_header_preproc" >&6
50251 # So? What about this header?
50252 case $ac_header_compiler:$ac_header_preproc in
50253 yes:no )
50254 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
50255 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50256 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50257 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50259 cat <<\_ASBOX
50260 ## ------------------------------------ ##
50261 ## Report this to bug-autoconf@gnu.org. ##
50262 ## ------------------------------------ ##
50263 _ASBOX
50265 sed "s/^/$as_me: WARNING: /" >&2
50267 no:yes )
50268 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
50269 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
50270 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
50271 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
50272 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50273 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50275 cat <<\_ASBOX
50276 ## ------------------------------------ ##
50277 ## Report this to bug-autoconf@gnu.org. ##
50278 ## ------------------------------------ ##
50279 _ASBOX
50281 sed "s/^/$as_me: WARNING: /" >&2
50283 esac
50284 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50285 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50286 if test "${ac_cv_header_langinfo_h+set}" = set; then
50287 echo $ECHO_N "(cached) $ECHO_C" >&6
50288 else
50289 ac_cv_header_langinfo_h=$ac_header_preproc
50291 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50292 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50295 if test $ac_cv_header_langinfo_h = yes; then
50296 ac_has_langinfo_h=yes
50297 else
50298 ac_has_langinfo_h=no
50303 # Check for existence of libiconv.a providing XPG2 wchar_t support.
50304 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
50305 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
50306 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
50307 echo $ECHO_N "(cached) $ECHO_C" >&6
50308 else
50309 ac_check_lib_save_LIBS=$LIBS
50310 LIBS="-liconv $LIBS"
50311 if test x$gcc_no_link = xyes; then
50312 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50313 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50314 { (exit 1); exit 1; }; }
50316 cat >conftest.$ac_ext <<_ACEOF
50317 #line $LINENO "configure"
50318 /* confdefs.h. */
50319 _ACEOF
50320 cat confdefs.h >>conftest.$ac_ext
50321 cat >>conftest.$ac_ext <<_ACEOF
50322 /* end confdefs.h. */
50324 /* Override any gcc2 internal prototype to avoid an error. */
50325 #ifdef __cplusplus
50326 extern "C"
50327 #endif
50328 /* We use char because int might match the return type of a gcc2
50329 builtin and then its argument prototype would still apply. */
50330 char iconv ();
50332 main ()
50334 iconv ();
50336 return 0;
50338 _ACEOF
50339 rm -f conftest.$ac_objext conftest$ac_exeext
50340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50341 (eval $ac_link) 2>&5
50342 ac_status=$?
50343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50344 (exit $ac_status); } &&
50345 { ac_try='test -s conftest$ac_exeext'
50346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50347 (eval $ac_try) 2>&5
50348 ac_status=$?
50349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50350 (exit $ac_status); }; }; then
50351 ac_cv_lib_iconv_iconv=yes
50352 else
50353 echo "$as_me: failed program was:" >&5
50354 sed 's/^/| /' conftest.$ac_ext >&5
50356 ac_cv_lib_iconv_iconv=no
50358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50359 LIBS=$ac_check_lib_save_LIBS
50361 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
50362 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
50363 if test $ac_cv_lib_iconv_iconv = yes; then
50364 libiconv="-liconv"
50367 ac_save_LIBS="$LIBS"
50368 LIBS="$LIBS $libiconv"
50374 for ac_func in iconv_open iconv_close iconv nl_langinfo
50376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50377 echo "$as_me:$LINENO: checking for $ac_func" >&5
50378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50379 if eval "test \"\${$as_ac_var+set}\" = set"; then
50380 echo $ECHO_N "(cached) $ECHO_C" >&6
50381 else
50382 if test x$gcc_no_link = xyes; then
50383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50385 { (exit 1); exit 1; }; }
50387 cat >conftest.$ac_ext <<_ACEOF
50388 #line $LINENO "configure"
50389 /* confdefs.h. */
50390 _ACEOF
50391 cat confdefs.h >>conftest.$ac_ext
50392 cat >>conftest.$ac_ext <<_ACEOF
50393 /* end confdefs.h. */
50394 /* System header to define __stub macros and hopefully few prototypes,
50395 which can conflict with char $ac_func (); below.
50396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50397 <limits.h> exists even on freestanding compilers. */
50398 #ifdef __STDC__
50399 # include <limits.h>
50400 #else
50401 # include <assert.h>
50402 #endif
50403 /* Override any gcc2 internal prototype to avoid an error. */
50404 #ifdef __cplusplus
50405 extern "C"
50407 #endif
50408 /* We use char because int might match the return type of a gcc2
50409 builtin and then its argument prototype would still apply. */
50410 char $ac_func ();
50411 /* The GNU C library defines this for functions which it implements
50412 to always fail with ENOSYS. Some functions are actually named
50413 something starting with __ and the normal name is an alias. */
50414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50415 choke me
50416 #else
50417 char (*f) () = $ac_func;
50418 #endif
50419 #ifdef __cplusplus
50421 #endif
50424 main ()
50426 return f != $ac_func;
50428 return 0;
50430 _ACEOF
50431 rm -f conftest.$ac_objext conftest$ac_exeext
50432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50433 (eval $ac_link) 2>&5
50434 ac_status=$?
50435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50436 (exit $ac_status); } &&
50437 { ac_try='test -s conftest$ac_exeext'
50438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50439 (eval $ac_try) 2>&5
50440 ac_status=$?
50441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50442 (exit $ac_status); }; }; then
50443 eval "$as_ac_var=yes"
50444 else
50445 echo "$as_me: failed program was:" >&5
50446 sed 's/^/| /' conftest.$ac_ext >&5
50448 eval "$as_ac_var=no"
50450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50454 if test `eval echo '${'$as_ac_var'}'` = yes; then
50455 cat >>confdefs.h <<_ACEOF
50456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50457 _ACEOF
50458 ac_XPG2funcs=yes
50459 else
50460 ac_XPG2funcs=no
50462 done
50465 LIBS="$ac_save_LIBS"
50467 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
50468 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
50469 if test x"$ac_has_iconv_h" = xyes &&
50470 test x"$ac_has_langinfo_h" = xyes &&
50471 test x"$ac_XPG2funcs" = xyes;
50472 then
50473 ac_XPG2_wchar_t=yes
50474 else
50475 ac_XPG2_wchar_t=no
50477 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
50478 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
50480 # At the moment, only enable wchar_t specializations if all the
50481 # above support is present.
50482 if test x"$ac_isoC99_wchar_t" = xyes &&
50483 test x"$ac_XPG2_wchar_t" = xyes;
50484 then
50485 cat >>confdefs.h <<\_ACEOF
50486 #define _GLIBCXX_USE_WCHAR_T 1
50487 _ACEOF
50489 enable_wchar_t=yes
50492 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
50493 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
50494 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
50495 echo "${ECHO_T}$enable_wchar_t" >&6
50497 cat >>confdefs.h <<\_ACEOF
50498 #define HAVE_COPYSIGN 1
50499 _ACEOF
50501 cat >>confdefs.h <<\_ACEOF
50502 #define HAVE_COPYSIGNF 1
50503 _ACEOF
50505 cat >>confdefs.h <<\_ACEOF
50506 #define HAVE_FREXPF 1
50507 _ACEOF
50509 cat >>confdefs.h <<\_ACEOF
50510 #define HAVE_HYPOT 1
50511 _ACEOF
50513 case "$target" in
50514 *-hpux10*)
50515 cat >>confdefs.h <<\_ACEOF
50516 #define HAVE_FINITE 1
50517 _ACEOF
50519 cat >>confdefs.h <<\_ACEOF
50520 #define HAVE_FINITEF 1
50521 _ACEOF
50523 cat >>confdefs.h <<\_ACEOF
50524 #define HAVE_ISINF 1
50525 _ACEOF
50527 cat >>confdefs.h <<\_ACEOF
50528 #define HAVE_ISINFF 1
50529 _ACEOF
50531 cat >>confdefs.h <<\_ACEOF
50532 #define HAVE_ISNAN 1
50533 _ACEOF
50535 cat >>confdefs.h <<\_ACEOF
50536 #define HAVE_ISNANF 1
50537 _ACEOF
50540 esac
50542 *-linux*)
50543 #os_include_dir="os/gnu-linux"
50556 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
50557 machine/endian.h machine/param.h sys/machine.h sys/types.h \
50558 fp.h locale.h float.h inttypes.h
50560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50562 echo "$as_me:$LINENO: checking for $ac_header" >&5
50563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50565 echo $ECHO_N "(cached) $ECHO_C" >&6
50567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50569 else
50570 # Is the header compilable?
50571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50573 cat >conftest.$ac_ext <<_ACEOF
50574 #line $LINENO "configure"
50575 /* confdefs.h. */
50576 _ACEOF
50577 cat confdefs.h >>conftest.$ac_ext
50578 cat >>conftest.$ac_ext <<_ACEOF
50579 /* end confdefs.h. */
50580 $ac_includes_default
50581 #include <$ac_header>
50582 _ACEOF
50583 rm -f conftest.$ac_objext
50584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50585 (eval $ac_compile) 2>&5
50586 ac_status=$?
50587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50588 (exit $ac_status); } &&
50589 { ac_try='test -s conftest.$ac_objext'
50590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50591 (eval $ac_try) 2>&5
50592 ac_status=$?
50593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50594 (exit $ac_status); }; }; then
50595 ac_header_compiler=yes
50596 else
50597 echo "$as_me: failed program was:" >&5
50598 sed 's/^/| /' conftest.$ac_ext >&5
50600 ac_header_compiler=no
50602 rm -f conftest.$ac_objext conftest.$ac_ext
50603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50604 echo "${ECHO_T}$ac_header_compiler" >&6
50606 # Is the header present?
50607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50609 cat >conftest.$ac_ext <<_ACEOF
50610 #line $LINENO "configure"
50611 /* confdefs.h. */
50612 _ACEOF
50613 cat confdefs.h >>conftest.$ac_ext
50614 cat >>conftest.$ac_ext <<_ACEOF
50615 /* end confdefs.h. */
50616 #include <$ac_header>
50617 _ACEOF
50618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50620 ac_status=$?
50621 grep -v '^ *+' conftest.er1 >conftest.err
50622 rm -f conftest.er1
50623 cat conftest.err >&5
50624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50625 (exit $ac_status); } >/dev/null; then
50626 if test -s conftest.err; then
50627 ac_cpp_err=$ac_c_preproc_warn_flag
50628 else
50629 ac_cpp_err=
50631 else
50632 ac_cpp_err=yes
50634 if test -z "$ac_cpp_err"; then
50635 ac_header_preproc=yes
50636 else
50637 echo "$as_me: failed program was:" >&5
50638 sed 's/^/| /' conftest.$ac_ext >&5
50640 ac_header_preproc=no
50642 rm -f conftest.err conftest.$ac_ext
50643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50644 echo "${ECHO_T}$ac_header_preproc" >&6
50646 # So? What about this header?
50647 case $ac_header_compiler:$ac_header_preproc in
50648 yes:no )
50649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50654 cat <<\_ASBOX
50655 ## ------------------------------------ ##
50656 ## Report this to bug-autoconf@gnu.org. ##
50657 ## ------------------------------------ ##
50658 _ASBOX
50660 sed "s/^/$as_me: WARNING: /" >&2
50662 no:yes )
50663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50670 cat <<\_ASBOX
50671 ## ------------------------------------ ##
50672 ## Report this to bug-autoconf@gnu.org. ##
50673 ## ------------------------------------ ##
50674 _ASBOX
50676 sed "s/^/$as_me: WARNING: /" >&2
50678 esac
50679 echo "$as_me:$LINENO: checking for $ac_header" >&5
50680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50682 echo $ECHO_N "(cached) $ECHO_C" >&6
50683 else
50684 eval "$as_ac_Header=$ac_header_preproc"
50686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50691 cat >>confdefs.h <<_ACEOF
50692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50693 _ACEOF
50697 done
50699 SECTION_FLAGS='-ffunction-sections -fdata-sections'
50702 # If we're not using GNU ld, then there's no point in even trying these
50703 # tests. Check for that first. We should have already tested for gld
50704 # by now (in libtool), but require it now just to be safe...
50705 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
50706 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
50710 # The name set by libtool depends on the version of libtool. Shame on us
50711 # for depending on an impl detail, but c'est la vie. Older versions used
50712 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
50713 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
50714 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
50715 # set (hence we're using an older libtool), then set it.
50716 if test x${with_gnu_ld+set} != xset; then
50717 if test x${ac_cv_prog_gnu_ld+set} != xset; then
50718 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
50719 with_gnu_ld=no
50720 else
50721 with_gnu_ld=$ac_cv_prog_gnu_ld
50725 # Start by getting the version number. I think the libtool test already
50726 # does some of this, but throws away the result.
50728 ldver=`$LD --version 2>/dev/null | head -1 | \
50729 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
50731 glibcxx_gnu_ld_version=`echo $ldver | \
50732 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
50734 # Set --gc-sections.
50735 if test "$with_gnu_ld" = "notbroken"; then
50736 # GNU ld it is! Joy and bunny rabbits!
50738 # All these tests are for C++; save the language and the compiler flags.
50739 # Need to do this so that g++ won't try to link in libstdc++
50740 ac_test_CFLAGS="${CFLAGS+set}"
50741 ac_save_CFLAGS="$CFLAGS"
50742 CFLAGS='-x c++ -Wl,--gc-sections'
50744 # Check for -Wl,--gc-sections
50745 # XXX This test is broken at the moment, as symbols required for linking
50746 # are now in libsupc++ (not built yet). In addition, this test has
50747 # cored on solaris in the past. In addition, --gc-sections doesn't
50748 # really work at the moment (keeps on discarding used sections, first
50749 # .eh_frame and now some of the glibc sections for iconv).
50750 # Bzzzzt. Thanks for playing, maybe next time.
50751 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
50752 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
50753 if test "$cross_compiling" = yes; then
50754 ac_sectionLDflags=yes
50755 else
50756 cat >conftest.$ac_ext <<_ACEOF
50757 #line $LINENO "configure"
50758 /* confdefs.h. */
50759 _ACEOF
50760 cat confdefs.h >>conftest.$ac_ext
50761 cat >>conftest.$ac_ext <<_ACEOF
50762 /* end confdefs.h. */
50764 int main(void)
50766 try { throw 1; }
50767 catch (...) { };
50768 return 0;
50771 _ACEOF
50772 rm -f conftest$ac_exeext
50773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50774 (eval $ac_link) 2>&5
50775 ac_status=$?
50776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50779 (eval $ac_try) 2>&5
50780 ac_status=$?
50781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50782 (exit $ac_status); }; }; then
50783 ac_sectionLDflags=yes
50784 else
50785 echo "$as_me: program exited with status $ac_status" >&5
50786 echo "$as_me: failed program was:" >&5
50787 sed 's/^/| /' conftest.$ac_ext >&5
50789 ( exit $ac_status )
50790 ac_sectionLDflags=no
50792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50794 if test "$ac_test_CFLAGS" = set; then
50795 CFLAGS="$ac_save_CFLAGS"
50796 else
50797 # this is the suspicious part
50798 CFLAGS=''
50800 if test "$ac_sectionLDflags" = "yes"; then
50801 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
50803 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
50804 echo "${ECHO_T}$ac_sectionLDflags" >&6
50807 # Set linker optimization flags.
50808 if test x"$with_gnu_ld" = x"yes"; then
50809 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
50817 echo "$as_me:$LINENO: checking for main in -lm" >&5
50818 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50819 if test "${ac_cv_lib_m_main+set}" = set; then
50820 echo $ECHO_N "(cached) $ECHO_C" >&6
50821 else
50822 ac_check_lib_save_LIBS=$LIBS
50823 LIBS="-lm $LIBS"
50824 if test x$gcc_no_link = xyes; then
50825 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50826 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50827 { (exit 1); exit 1; }; }
50829 cat >conftest.$ac_ext <<_ACEOF
50830 #line $LINENO "configure"
50831 /* confdefs.h. */
50832 _ACEOF
50833 cat confdefs.h >>conftest.$ac_ext
50834 cat >>conftest.$ac_ext <<_ACEOF
50835 /* end confdefs.h. */
50839 main ()
50841 main ();
50843 return 0;
50845 _ACEOF
50846 rm -f conftest.$ac_objext conftest$ac_exeext
50847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50848 (eval $ac_link) 2>&5
50849 ac_status=$?
50850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50851 (exit $ac_status); } &&
50852 { ac_try='test -s conftest$ac_exeext'
50853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50854 (eval $ac_try) 2>&5
50855 ac_status=$?
50856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50857 (exit $ac_status); }; }; then
50858 ac_cv_lib_m_main=yes
50859 else
50860 echo "$as_me: failed program was:" >&5
50861 sed 's/^/| /' conftest.$ac_ext >&5
50863 ac_cv_lib_m_main=no
50865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50866 LIBS=$ac_check_lib_save_LIBS
50868 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50869 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50870 if test $ac_cv_lib_m_main = yes; then
50871 cat >>confdefs.h <<_ACEOF
50872 #define HAVE_LIBM 1
50873 _ACEOF
50875 LIBS="-lm $LIBS"
50881 for ac_func in nan copysignf
50883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50884 echo "$as_me:$LINENO: checking for $ac_func" >&5
50885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50886 if eval "test \"\${$as_ac_var+set}\" = set"; then
50887 echo $ECHO_N "(cached) $ECHO_C" >&6
50888 else
50889 if test x$gcc_no_link = xyes; then
50890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50892 { (exit 1); exit 1; }; }
50894 cat >conftest.$ac_ext <<_ACEOF
50895 #line $LINENO "configure"
50896 /* confdefs.h. */
50897 _ACEOF
50898 cat confdefs.h >>conftest.$ac_ext
50899 cat >>conftest.$ac_ext <<_ACEOF
50900 /* end confdefs.h. */
50901 /* System header to define __stub macros and hopefully few prototypes,
50902 which can conflict with char $ac_func (); below.
50903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50904 <limits.h> exists even on freestanding compilers. */
50905 #ifdef __STDC__
50906 # include <limits.h>
50907 #else
50908 # include <assert.h>
50909 #endif
50910 /* Override any gcc2 internal prototype to avoid an error. */
50911 #ifdef __cplusplus
50912 extern "C"
50914 #endif
50915 /* We use char because int might match the return type of a gcc2
50916 builtin and then its argument prototype would still apply. */
50917 char $ac_func ();
50918 /* The GNU C library defines this for functions which it implements
50919 to always fail with ENOSYS. Some functions are actually named
50920 something starting with __ and the normal name is an alias. */
50921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50922 choke me
50923 #else
50924 char (*f) () = $ac_func;
50925 #endif
50926 #ifdef __cplusplus
50928 #endif
50931 main ()
50933 return f != $ac_func;
50935 return 0;
50937 _ACEOF
50938 rm -f conftest.$ac_objext conftest$ac_exeext
50939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50940 (eval $ac_link) 2>&5
50941 ac_status=$?
50942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50943 (exit $ac_status); } &&
50944 { ac_try='test -s conftest$ac_exeext'
50945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50946 (eval $ac_try) 2>&5
50947 ac_status=$?
50948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50949 (exit $ac_status); }; }; then
50950 eval "$as_ac_var=yes"
50951 else
50952 echo "$as_me: failed program was:" >&5
50953 sed 's/^/| /' conftest.$ac_ext >&5
50955 eval "$as_ac_var=no"
50957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50961 if test `eval echo '${'$as_ac_var'}'` = yes; then
50962 cat >>confdefs.h <<_ACEOF
50963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50964 _ACEOF
50966 else
50967 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50969 done
50973 for ac_func in __signbit
50975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50976 echo "$as_me:$LINENO: checking for $ac_func" >&5
50977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50978 if eval "test \"\${$as_ac_var+set}\" = set"; then
50979 echo $ECHO_N "(cached) $ECHO_C" >&6
50980 else
50981 if test x$gcc_no_link = xyes; then
50982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50984 { (exit 1); exit 1; }; }
50986 cat >conftest.$ac_ext <<_ACEOF
50987 #line $LINENO "configure"
50988 /* confdefs.h. */
50989 _ACEOF
50990 cat confdefs.h >>conftest.$ac_ext
50991 cat >>conftest.$ac_ext <<_ACEOF
50992 /* end confdefs.h. */
50993 /* System header to define __stub macros and hopefully few prototypes,
50994 which can conflict with char $ac_func (); below.
50995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50996 <limits.h> exists even on freestanding compilers. */
50997 #ifdef __STDC__
50998 # include <limits.h>
50999 #else
51000 # include <assert.h>
51001 #endif
51002 /* Override any gcc2 internal prototype to avoid an error. */
51003 #ifdef __cplusplus
51004 extern "C"
51006 #endif
51007 /* We use char because int might match the return type of a gcc2
51008 builtin and then its argument prototype would still apply. */
51009 char $ac_func ();
51010 /* The GNU C library defines this for functions which it implements
51011 to always fail with ENOSYS. Some functions are actually named
51012 something starting with __ and the normal name is an alias. */
51013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51014 choke me
51015 #else
51016 char (*f) () = $ac_func;
51017 #endif
51018 #ifdef __cplusplus
51020 #endif
51023 main ()
51025 return f != $ac_func;
51027 return 0;
51029 _ACEOF
51030 rm -f conftest.$ac_objext conftest$ac_exeext
51031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51032 (eval $ac_link) 2>&5
51033 ac_status=$?
51034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51035 (exit $ac_status); } &&
51036 { ac_try='test -s conftest$ac_exeext'
51037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51038 (eval $ac_try) 2>&5
51039 ac_status=$?
51040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51041 (exit $ac_status); }; }; then
51042 eval "$as_ac_var=yes"
51043 else
51044 echo "$as_me: failed program was:" >&5
51045 sed 's/^/| /' conftest.$ac_ext >&5
51047 eval "$as_ac_var=no"
51049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51053 if test `eval echo '${'$as_ac_var'}'` = yes; then
51054 cat >>confdefs.h <<_ACEOF
51055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51056 _ACEOF
51058 else
51059 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
51061 done
51064 for ac_func in __signbitf
51066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51067 echo "$as_me:$LINENO: checking for $ac_func" >&5
51068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51069 if eval "test \"\${$as_ac_var+set}\" = set"; then
51070 echo $ECHO_N "(cached) $ECHO_C" >&6
51071 else
51072 if test x$gcc_no_link = xyes; then
51073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51075 { (exit 1); exit 1; }; }
51077 cat >conftest.$ac_ext <<_ACEOF
51078 #line $LINENO "configure"
51079 /* confdefs.h. */
51080 _ACEOF
51081 cat confdefs.h >>conftest.$ac_ext
51082 cat >>conftest.$ac_ext <<_ACEOF
51083 /* end confdefs.h. */
51084 /* System header to define __stub macros and hopefully few prototypes,
51085 which can conflict with char $ac_func (); below.
51086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51087 <limits.h> exists even on freestanding compilers. */
51088 #ifdef __STDC__
51089 # include <limits.h>
51090 #else
51091 # include <assert.h>
51092 #endif
51093 /* Override any gcc2 internal prototype to avoid an error. */
51094 #ifdef __cplusplus
51095 extern "C"
51097 #endif
51098 /* We use char because int might match the return type of a gcc2
51099 builtin and then its argument prototype would still apply. */
51100 char $ac_func ();
51101 /* The GNU C library defines this for functions which it implements
51102 to always fail with ENOSYS. Some functions are actually named
51103 something starting with __ and the normal name is an alias. */
51104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51105 choke me
51106 #else
51107 char (*f) () = $ac_func;
51108 #endif
51109 #ifdef __cplusplus
51111 #endif
51114 main ()
51116 return f != $ac_func;
51118 return 0;
51120 _ACEOF
51121 rm -f conftest.$ac_objext conftest$ac_exeext
51122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51123 (eval $ac_link) 2>&5
51124 ac_status=$?
51125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51126 (exit $ac_status); } &&
51127 { ac_try='test -s conftest$ac_exeext'
51128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51129 (eval $ac_try) 2>&5
51130 ac_status=$?
51131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51132 (exit $ac_status); }; }; then
51133 eval "$as_ac_var=yes"
51134 else
51135 echo "$as_me: failed program was:" >&5
51136 sed 's/^/| /' conftest.$ac_ext >&5
51138 eval "$as_ac_var=no"
51140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51144 if test `eval echo '${'$as_ac_var'}'` = yes; then
51145 cat >>confdefs.h <<_ACEOF
51146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51147 _ACEOF
51149 else
51150 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51152 done
51155 if test x$ac_cv_func_copysignl = x"yes"; then
51157 for ac_func in __signbitl
51159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51160 echo "$as_me:$LINENO: checking for $ac_func" >&5
51161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51162 if eval "test \"\${$as_ac_var+set}\" = set"; then
51163 echo $ECHO_N "(cached) $ECHO_C" >&6
51164 else
51165 if test x$gcc_no_link = xyes; then
51166 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51168 { (exit 1); exit 1; }; }
51170 cat >conftest.$ac_ext <<_ACEOF
51171 #line $LINENO "configure"
51172 /* confdefs.h. */
51173 _ACEOF
51174 cat confdefs.h >>conftest.$ac_ext
51175 cat >>conftest.$ac_ext <<_ACEOF
51176 /* end confdefs.h. */
51177 /* System header to define __stub macros and hopefully few prototypes,
51178 which can conflict with char $ac_func (); below.
51179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51180 <limits.h> exists even on freestanding compilers. */
51181 #ifdef __STDC__
51182 # include <limits.h>
51183 #else
51184 # include <assert.h>
51185 #endif
51186 /* Override any gcc2 internal prototype to avoid an error. */
51187 #ifdef __cplusplus
51188 extern "C"
51190 #endif
51191 /* We use char because int might match the return type of a gcc2
51192 builtin and then its argument prototype would still apply. */
51193 char $ac_func ();
51194 /* The GNU C library defines this for functions which it implements
51195 to always fail with ENOSYS. Some functions are actually named
51196 something starting with __ and the normal name is an alias. */
51197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51198 choke me
51199 #else
51200 char (*f) () = $ac_func;
51201 #endif
51202 #ifdef __cplusplus
51204 #endif
51207 main ()
51209 return f != $ac_func;
51211 return 0;
51213 _ACEOF
51214 rm -f conftest.$ac_objext conftest$ac_exeext
51215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51216 (eval $ac_link) 2>&5
51217 ac_status=$?
51218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51219 (exit $ac_status); } &&
51220 { ac_try='test -s conftest$ac_exeext'
51221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51222 (eval $ac_try) 2>&5
51223 ac_status=$?
51224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51225 (exit $ac_status); }; }; then
51226 eval "$as_ac_var=yes"
51227 else
51228 echo "$as_me: failed program was:" >&5
51229 sed 's/^/| /' conftest.$ac_ext >&5
51231 eval "$as_ac_var=no"
51233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51237 if test `eval echo '${'$as_ac_var'}'` = yes; then
51238 cat >>confdefs.h <<_ACEOF
51239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51240 _ACEOF
51242 else
51243 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51245 done
51249 # XXX Review this. Nothing uses it.
51250 if test -n "$LIBMATHOBJS"; then
51251 need_libmath=yes
51256 # Test wchar.h for mbstate_t, which is needed for char_traits and
51257 # others even if wchar_t support is not on.
51258 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51259 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51260 cat >conftest.$ac_ext <<_ACEOF
51261 #line $LINENO "configure"
51262 /* confdefs.h. */
51263 _ACEOF
51264 cat confdefs.h >>conftest.$ac_ext
51265 cat >>conftest.$ac_ext <<_ACEOF
51266 /* end confdefs.h. */
51267 #include <wchar.h>
51269 main ()
51271 mbstate_t teststate;
51273 return 0;
51275 _ACEOF
51276 rm -f conftest.$ac_objext
51277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51278 (eval $ac_compile) 2>&5
51279 ac_status=$?
51280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51281 (exit $ac_status); } &&
51282 { ac_try='test -s conftest.$ac_objext'
51283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51284 (eval $ac_try) 2>&5
51285 ac_status=$?
51286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51287 (exit $ac_status); }; }; then
51288 have_mbstate_t=yes
51289 else
51290 echo "$as_me: failed program was:" >&5
51291 sed 's/^/| /' conftest.$ac_ext >&5
51293 have_mbstate_t=no
51295 rm -f conftest.$ac_objext conftest.$ac_ext
51296 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51297 echo "${ECHO_T}$have_mbstate_t" >&6
51298 if test x"$have_mbstate_t" = xyes; then
51299 cat >>confdefs.h <<\_ACEOF
51300 #define HAVE_MBSTATE_T 1
51301 _ACEOF
51305 # Sanity check for existence of ISO C99 headers for extended encoding.
51307 for ac_header in wchar.h
51309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51311 echo "$as_me:$LINENO: checking for $ac_header" >&5
51312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51314 echo $ECHO_N "(cached) $ECHO_C" >&6
51316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51318 else
51319 # Is the header compilable?
51320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51322 cat >conftest.$ac_ext <<_ACEOF
51323 #line $LINENO "configure"
51324 /* confdefs.h. */
51325 _ACEOF
51326 cat confdefs.h >>conftest.$ac_ext
51327 cat >>conftest.$ac_ext <<_ACEOF
51328 /* end confdefs.h. */
51329 $ac_includes_default
51330 #include <$ac_header>
51331 _ACEOF
51332 rm -f conftest.$ac_objext
51333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51334 (eval $ac_compile) 2>&5
51335 ac_status=$?
51336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51337 (exit $ac_status); } &&
51338 { ac_try='test -s conftest.$ac_objext'
51339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51340 (eval $ac_try) 2>&5
51341 ac_status=$?
51342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51343 (exit $ac_status); }; }; then
51344 ac_header_compiler=yes
51345 else
51346 echo "$as_me: failed program was:" >&5
51347 sed 's/^/| /' conftest.$ac_ext >&5
51349 ac_header_compiler=no
51351 rm -f conftest.$ac_objext conftest.$ac_ext
51352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51353 echo "${ECHO_T}$ac_header_compiler" >&6
51355 # Is the header present?
51356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51358 cat >conftest.$ac_ext <<_ACEOF
51359 #line $LINENO "configure"
51360 /* confdefs.h. */
51361 _ACEOF
51362 cat confdefs.h >>conftest.$ac_ext
51363 cat >>conftest.$ac_ext <<_ACEOF
51364 /* end confdefs.h. */
51365 #include <$ac_header>
51366 _ACEOF
51367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51369 ac_status=$?
51370 grep -v '^ *+' conftest.er1 >conftest.err
51371 rm -f conftest.er1
51372 cat conftest.err >&5
51373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51374 (exit $ac_status); } >/dev/null; then
51375 if test -s conftest.err; then
51376 ac_cpp_err=$ac_c_preproc_warn_flag
51377 else
51378 ac_cpp_err=
51380 else
51381 ac_cpp_err=yes
51383 if test -z "$ac_cpp_err"; then
51384 ac_header_preproc=yes
51385 else
51386 echo "$as_me: failed program was:" >&5
51387 sed 's/^/| /' conftest.$ac_ext >&5
51389 ac_header_preproc=no
51391 rm -f conftest.err conftest.$ac_ext
51392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51393 echo "${ECHO_T}$ac_header_preproc" >&6
51395 # So? What about this header?
51396 case $ac_header_compiler:$ac_header_preproc in
51397 yes:no )
51398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51403 cat <<\_ASBOX
51404 ## ------------------------------------ ##
51405 ## Report this to bug-autoconf@gnu.org. ##
51406 ## ------------------------------------ ##
51407 _ASBOX
51409 sed "s/^/$as_me: WARNING: /" >&2
51411 no:yes )
51412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51419 cat <<\_ASBOX
51420 ## ------------------------------------ ##
51421 ## Report this to bug-autoconf@gnu.org. ##
51422 ## ------------------------------------ ##
51423 _ASBOX
51425 sed "s/^/$as_me: WARNING: /" >&2
51427 esac
51428 echo "$as_me:$LINENO: checking for $ac_header" >&5
51429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51431 echo $ECHO_N "(cached) $ECHO_C" >&6
51432 else
51433 eval "$as_ac_Header=$ac_header_preproc"
51435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51440 cat >>confdefs.h <<_ACEOF
51441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51442 _ACEOF
51443 ac_has_wchar_h=yes
51444 else
51445 ac_has_wchar_h=no
51448 done
51451 for ac_header in wctype.h
51453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51455 echo "$as_me:$LINENO: checking for $ac_header" >&5
51456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51458 echo $ECHO_N "(cached) $ECHO_C" >&6
51460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51462 else
51463 # Is the header compilable?
51464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51466 cat >conftest.$ac_ext <<_ACEOF
51467 #line $LINENO "configure"
51468 /* confdefs.h. */
51469 _ACEOF
51470 cat confdefs.h >>conftest.$ac_ext
51471 cat >>conftest.$ac_ext <<_ACEOF
51472 /* end confdefs.h. */
51473 $ac_includes_default
51474 #include <$ac_header>
51475 _ACEOF
51476 rm -f conftest.$ac_objext
51477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51478 (eval $ac_compile) 2>&5
51479 ac_status=$?
51480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51481 (exit $ac_status); } &&
51482 { ac_try='test -s conftest.$ac_objext'
51483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51484 (eval $ac_try) 2>&5
51485 ac_status=$?
51486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51487 (exit $ac_status); }; }; then
51488 ac_header_compiler=yes
51489 else
51490 echo "$as_me: failed program was:" >&5
51491 sed 's/^/| /' conftest.$ac_ext >&5
51493 ac_header_compiler=no
51495 rm -f conftest.$ac_objext conftest.$ac_ext
51496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51497 echo "${ECHO_T}$ac_header_compiler" >&6
51499 # Is the header present?
51500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51502 cat >conftest.$ac_ext <<_ACEOF
51503 #line $LINENO "configure"
51504 /* confdefs.h. */
51505 _ACEOF
51506 cat confdefs.h >>conftest.$ac_ext
51507 cat >>conftest.$ac_ext <<_ACEOF
51508 /* end confdefs.h. */
51509 #include <$ac_header>
51510 _ACEOF
51511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51513 ac_status=$?
51514 grep -v '^ *+' conftest.er1 >conftest.err
51515 rm -f conftest.er1
51516 cat conftest.err >&5
51517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51518 (exit $ac_status); } >/dev/null; then
51519 if test -s conftest.err; then
51520 ac_cpp_err=$ac_c_preproc_warn_flag
51521 else
51522 ac_cpp_err=
51524 else
51525 ac_cpp_err=yes
51527 if test -z "$ac_cpp_err"; then
51528 ac_header_preproc=yes
51529 else
51530 echo "$as_me: failed program was:" >&5
51531 sed 's/^/| /' conftest.$ac_ext >&5
51533 ac_header_preproc=no
51535 rm -f conftest.err conftest.$ac_ext
51536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51537 echo "${ECHO_T}$ac_header_preproc" >&6
51539 # So? What about this header?
51540 case $ac_header_compiler:$ac_header_preproc in
51541 yes:no )
51542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51547 cat <<\_ASBOX
51548 ## ------------------------------------ ##
51549 ## Report this to bug-autoconf@gnu.org. ##
51550 ## ------------------------------------ ##
51551 _ASBOX
51553 sed "s/^/$as_me: WARNING: /" >&2
51555 no:yes )
51556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51563 cat <<\_ASBOX
51564 ## ------------------------------------ ##
51565 ## Report this to bug-autoconf@gnu.org. ##
51566 ## ------------------------------------ ##
51567 _ASBOX
51569 sed "s/^/$as_me: WARNING: /" >&2
51571 esac
51572 echo "$as_me:$LINENO: checking for $ac_header" >&5
51573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51575 echo $ECHO_N "(cached) $ECHO_C" >&6
51576 else
51577 eval "$as_ac_Header=$ac_header_preproc"
51579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51584 cat >>confdefs.h <<_ACEOF
51585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51586 _ACEOF
51587 ac_has_wctype_h=yes
51588 else
51589 ac_has_wctype_h=no
51592 done
51595 # Only continue checking if the ISO C99 headers exist and support is on.
51596 if test x"$ac_has_wchar_h" = xyes &&
51597 test x"$ac_has_wctype_h" = xyes &&
51598 test x"$enable_c_mbchar" != xno; then
51600 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51601 # numeric_limits can instantiate type_traits<wchar_t>
51602 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51603 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51604 cat >conftest.$ac_ext <<_ACEOF
51605 #line $LINENO "configure"
51606 /* confdefs.h. */
51607 _ACEOF
51608 cat confdefs.h >>conftest.$ac_ext
51609 cat >>conftest.$ac_ext <<_ACEOF
51610 /* end confdefs.h. */
51611 #include <wchar.h>
51613 main ()
51615 int i = WCHAR_MIN; int j = WCHAR_MAX;
51617 return 0;
51619 _ACEOF
51620 rm -f conftest.$ac_objext
51621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51622 (eval $ac_compile) 2>&5
51623 ac_status=$?
51624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51625 (exit $ac_status); } &&
51626 { ac_try='test -s conftest.$ac_objext'
51627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51628 (eval $ac_try) 2>&5
51629 ac_status=$?
51630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51631 (exit $ac_status); }; }; then
51632 has_wchar_minmax=yes
51633 else
51634 echo "$as_me: failed program was:" >&5
51635 sed 's/^/| /' conftest.$ac_ext >&5
51637 has_wchar_minmax=no
51639 rm -f conftest.$ac_objext conftest.$ac_ext
51640 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51641 echo "${ECHO_T}$has_wchar_minmax" >&6
51643 # Test wchar.h for WEOF, which is what we use to determine whether
51644 # to specialize for char_traits<wchar_t> or not.
51645 echo "$as_me:$LINENO: checking for WEOF" >&5
51646 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51647 cat >conftest.$ac_ext <<_ACEOF
51648 #line $LINENO "configure"
51649 /* confdefs.h. */
51650 _ACEOF
51651 cat confdefs.h >>conftest.$ac_ext
51652 cat >>conftest.$ac_ext <<_ACEOF
51653 /* end confdefs.h. */
51655 #include <wchar.h>
51656 #include <stddef.h>
51658 main ()
51660 wint_t i = WEOF;
51662 return 0;
51664 _ACEOF
51665 rm -f conftest.$ac_objext
51666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51667 (eval $ac_compile) 2>&5
51668 ac_status=$?
51669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51670 (exit $ac_status); } &&
51671 { ac_try='test -s conftest.$ac_objext'
51672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51673 (eval $ac_try) 2>&5
51674 ac_status=$?
51675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51676 (exit $ac_status); }; }; then
51677 has_weof=yes
51678 else
51679 echo "$as_me: failed program was:" >&5
51680 sed 's/^/| /' conftest.$ac_ext >&5
51682 has_weof=no
51684 rm -f conftest.$ac_objext conftest.$ac_ext
51685 echo "$as_me:$LINENO: result: $has_weof" >&5
51686 echo "${ECHO_T}$has_weof" >&6
51688 # Tests for wide character functions used in char_traits<wchar_t>.
51689 ac_wfuncs=yes
51696 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51699 echo "$as_me:$LINENO: checking for $ac_func" >&5
51700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51701 if eval "test \"\${$as_ac_var+set}\" = set"; then
51702 echo $ECHO_N "(cached) $ECHO_C" >&6
51703 else
51704 if test x$gcc_no_link = xyes; then
51705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51707 { (exit 1); exit 1; }; }
51709 cat >conftest.$ac_ext <<_ACEOF
51710 #line $LINENO "configure"
51711 /* confdefs.h. */
51712 _ACEOF
51713 cat confdefs.h >>conftest.$ac_ext
51714 cat >>conftest.$ac_ext <<_ACEOF
51715 /* end confdefs.h. */
51716 /* System header to define __stub macros and hopefully few prototypes,
51717 which can conflict with char $ac_func (); below.
51718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51719 <limits.h> exists even on freestanding compilers. */
51720 #ifdef __STDC__
51721 # include <limits.h>
51722 #else
51723 # include <assert.h>
51724 #endif
51725 /* Override any gcc2 internal prototype to avoid an error. */
51726 #ifdef __cplusplus
51727 extern "C"
51729 #endif
51730 /* We use char because int might match the return type of a gcc2
51731 builtin and then its argument prototype would still apply. */
51732 char $ac_func ();
51733 /* The GNU C library defines this for functions which it implements
51734 to always fail with ENOSYS. Some functions are actually named
51735 something starting with __ and the normal name is an alias. */
51736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51737 choke me
51738 #else
51739 char (*f) () = $ac_func;
51740 #endif
51741 #ifdef __cplusplus
51743 #endif
51746 main ()
51748 return f != $ac_func;
51750 return 0;
51752 _ACEOF
51753 rm -f conftest.$ac_objext conftest$ac_exeext
51754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51755 (eval $ac_link) 2>&5
51756 ac_status=$?
51757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51758 (exit $ac_status); } &&
51759 { ac_try='test -s conftest$ac_exeext'
51760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51761 (eval $ac_try) 2>&5
51762 ac_status=$?
51763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51764 (exit $ac_status); }; }; then
51765 eval "$as_ac_var=yes"
51766 else
51767 echo "$as_me: failed program was:" >&5
51768 sed 's/^/| /' conftest.$ac_ext >&5
51770 eval "$as_ac_var=no"
51772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51776 if test `eval echo '${'$as_ac_var'}'` = yes; then
51777 cat >>confdefs.h <<_ACEOF
51778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51779 _ACEOF
51781 else
51782 ac_wfuncs=no
51784 done
51787 # Checks for names injected into std:: by the c_std headers.
51838 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51839 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
51840 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51841 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
51842 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51843 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51846 echo "$as_me:$LINENO: checking for $ac_func" >&5
51847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51848 if eval "test \"\${$as_ac_var+set}\" = set"; then
51849 echo $ECHO_N "(cached) $ECHO_C" >&6
51850 else
51851 if test x$gcc_no_link = xyes; then
51852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51854 { (exit 1); exit 1; }; }
51856 cat >conftest.$ac_ext <<_ACEOF
51857 #line $LINENO "configure"
51858 /* confdefs.h. */
51859 _ACEOF
51860 cat confdefs.h >>conftest.$ac_ext
51861 cat >>conftest.$ac_ext <<_ACEOF
51862 /* end confdefs.h. */
51863 /* System header to define __stub macros and hopefully few prototypes,
51864 which can conflict with char $ac_func (); below.
51865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51866 <limits.h> exists even on freestanding compilers. */
51867 #ifdef __STDC__
51868 # include <limits.h>
51869 #else
51870 # include <assert.h>
51871 #endif
51872 /* Override any gcc2 internal prototype to avoid an error. */
51873 #ifdef __cplusplus
51874 extern "C"
51876 #endif
51877 /* We use char because int might match the return type of a gcc2
51878 builtin and then its argument prototype would still apply. */
51879 char $ac_func ();
51880 /* The GNU C library defines this for functions which it implements
51881 to always fail with ENOSYS. Some functions are actually named
51882 something starting with __ and the normal name is an alias. */
51883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51884 choke me
51885 #else
51886 char (*f) () = $ac_func;
51887 #endif
51888 #ifdef __cplusplus
51890 #endif
51893 main ()
51895 return f != $ac_func;
51897 return 0;
51899 _ACEOF
51900 rm -f conftest.$ac_objext conftest$ac_exeext
51901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51902 (eval $ac_link) 2>&5
51903 ac_status=$?
51904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51905 (exit $ac_status); } &&
51906 { ac_try='test -s conftest$ac_exeext'
51907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51908 (eval $ac_try) 2>&5
51909 ac_status=$?
51910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51911 (exit $ac_status); }; }; then
51912 eval "$as_ac_var=yes"
51913 else
51914 echo "$as_me: failed program was:" >&5
51915 sed 's/^/| /' conftest.$ac_ext >&5
51917 eval "$as_ac_var=no"
51919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51923 if test `eval echo '${'$as_ac_var'}'` = yes; then
51924 cat >>confdefs.h <<_ACEOF
51925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51926 _ACEOF
51928 else
51929 ac_wfuncs=no
51931 done
51934 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51935 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51936 if test x"$has_weof" = xyes &&
51937 test x"$has_wchar_minmax" = xyes &&
51938 test x"$ac_wfuncs" = xyes;
51939 then
51940 ac_isoC99_wchar_t=yes
51941 else
51942 ac_isoC99_wchar_t=no
51944 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51945 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51947 # Use iconv for wchar_t to char conversions. As such, check for
51948 # X/Open Portability Guide, version 2 features (XPG2).
51949 if test "${ac_cv_header_iconv_h+set}" = set; then
51950 echo "$as_me:$LINENO: checking for iconv.h" >&5
51951 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51952 if test "${ac_cv_header_iconv_h+set}" = set; then
51953 echo $ECHO_N "(cached) $ECHO_C" >&6
51955 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51956 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51957 else
51958 # Is the header compilable?
51959 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51960 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51961 cat >conftest.$ac_ext <<_ACEOF
51962 #line $LINENO "configure"
51963 /* confdefs.h. */
51964 _ACEOF
51965 cat confdefs.h >>conftest.$ac_ext
51966 cat >>conftest.$ac_ext <<_ACEOF
51967 /* end confdefs.h. */
51968 $ac_includes_default
51969 #include <iconv.h>
51970 _ACEOF
51971 rm -f conftest.$ac_objext
51972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51973 (eval $ac_compile) 2>&5
51974 ac_status=$?
51975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51976 (exit $ac_status); } &&
51977 { ac_try='test -s conftest.$ac_objext'
51978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51979 (eval $ac_try) 2>&5
51980 ac_status=$?
51981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51982 (exit $ac_status); }; }; then
51983 ac_header_compiler=yes
51984 else
51985 echo "$as_me: failed program was:" >&5
51986 sed 's/^/| /' conftest.$ac_ext >&5
51988 ac_header_compiler=no
51990 rm -f conftest.$ac_objext conftest.$ac_ext
51991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51992 echo "${ECHO_T}$ac_header_compiler" >&6
51994 # Is the header present?
51995 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51996 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51997 cat >conftest.$ac_ext <<_ACEOF
51998 #line $LINENO "configure"
51999 /* confdefs.h. */
52000 _ACEOF
52001 cat confdefs.h >>conftest.$ac_ext
52002 cat >>conftest.$ac_ext <<_ACEOF
52003 /* end confdefs.h. */
52004 #include <iconv.h>
52005 _ACEOF
52006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52008 ac_status=$?
52009 grep -v '^ *+' conftest.er1 >conftest.err
52010 rm -f conftest.er1
52011 cat conftest.err >&5
52012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52013 (exit $ac_status); } >/dev/null; then
52014 if test -s conftest.err; then
52015 ac_cpp_err=$ac_c_preproc_warn_flag
52016 else
52017 ac_cpp_err=
52019 else
52020 ac_cpp_err=yes
52022 if test -z "$ac_cpp_err"; then
52023 ac_header_preproc=yes
52024 else
52025 echo "$as_me: failed program was:" >&5
52026 sed 's/^/| /' conftest.$ac_ext >&5
52028 ac_header_preproc=no
52030 rm -f conftest.err conftest.$ac_ext
52031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52032 echo "${ECHO_T}$ac_header_preproc" >&6
52034 # So? What about this header?
52035 case $ac_header_compiler:$ac_header_preproc in
52036 yes:no )
52037 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52038 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52039 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52040 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52042 cat <<\_ASBOX
52043 ## ------------------------------------ ##
52044 ## Report this to bug-autoconf@gnu.org. ##
52045 ## ------------------------------------ ##
52046 _ASBOX
52048 sed "s/^/$as_me: WARNING: /" >&2
52050 no:yes )
52051 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52052 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52053 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52054 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52055 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52056 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52058 cat <<\_ASBOX
52059 ## ------------------------------------ ##
52060 ## Report this to bug-autoconf@gnu.org. ##
52061 ## ------------------------------------ ##
52062 _ASBOX
52064 sed "s/^/$as_me: WARNING: /" >&2
52066 esac
52067 echo "$as_me:$LINENO: checking for iconv.h" >&5
52068 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52069 if test "${ac_cv_header_iconv_h+set}" = set; then
52070 echo $ECHO_N "(cached) $ECHO_C" >&6
52071 else
52072 ac_cv_header_iconv_h=$ac_header_preproc
52074 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52075 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52078 if test $ac_cv_header_iconv_h = yes; then
52079 ac_has_iconv_h=yes
52080 else
52081 ac_has_iconv_h=no
52085 if test "${ac_cv_header_langinfo_h+set}" = set; then
52086 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52087 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52088 if test "${ac_cv_header_langinfo_h+set}" = set; then
52089 echo $ECHO_N "(cached) $ECHO_C" >&6
52091 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52092 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52093 else
52094 # Is the header compilable?
52095 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52096 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52097 cat >conftest.$ac_ext <<_ACEOF
52098 #line $LINENO "configure"
52099 /* confdefs.h. */
52100 _ACEOF
52101 cat confdefs.h >>conftest.$ac_ext
52102 cat >>conftest.$ac_ext <<_ACEOF
52103 /* end confdefs.h. */
52104 $ac_includes_default
52105 #include <langinfo.h>
52106 _ACEOF
52107 rm -f conftest.$ac_objext
52108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52109 (eval $ac_compile) 2>&5
52110 ac_status=$?
52111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52112 (exit $ac_status); } &&
52113 { ac_try='test -s conftest.$ac_objext'
52114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52115 (eval $ac_try) 2>&5
52116 ac_status=$?
52117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52118 (exit $ac_status); }; }; then
52119 ac_header_compiler=yes
52120 else
52121 echo "$as_me: failed program was:" >&5
52122 sed 's/^/| /' conftest.$ac_ext >&5
52124 ac_header_compiler=no
52126 rm -f conftest.$ac_objext conftest.$ac_ext
52127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52128 echo "${ECHO_T}$ac_header_compiler" >&6
52130 # Is the header present?
52131 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52132 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52133 cat >conftest.$ac_ext <<_ACEOF
52134 #line $LINENO "configure"
52135 /* confdefs.h. */
52136 _ACEOF
52137 cat confdefs.h >>conftest.$ac_ext
52138 cat >>conftest.$ac_ext <<_ACEOF
52139 /* end confdefs.h. */
52140 #include <langinfo.h>
52141 _ACEOF
52142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52144 ac_status=$?
52145 grep -v '^ *+' conftest.er1 >conftest.err
52146 rm -f conftest.er1
52147 cat conftest.err >&5
52148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149 (exit $ac_status); } >/dev/null; then
52150 if test -s conftest.err; then
52151 ac_cpp_err=$ac_c_preproc_warn_flag
52152 else
52153 ac_cpp_err=
52155 else
52156 ac_cpp_err=yes
52158 if test -z "$ac_cpp_err"; then
52159 ac_header_preproc=yes
52160 else
52161 echo "$as_me: failed program was:" >&5
52162 sed 's/^/| /' conftest.$ac_ext >&5
52164 ac_header_preproc=no
52166 rm -f conftest.err conftest.$ac_ext
52167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52168 echo "${ECHO_T}$ac_header_preproc" >&6
52170 # So? What about this header?
52171 case $ac_header_compiler:$ac_header_preproc in
52172 yes:no )
52173 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52174 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52175 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52176 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52178 cat <<\_ASBOX
52179 ## ------------------------------------ ##
52180 ## Report this to bug-autoconf@gnu.org. ##
52181 ## ------------------------------------ ##
52182 _ASBOX
52184 sed "s/^/$as_me: WARNING: /" >&2
52186 no:yes )
52187 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52188 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52189 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52190 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52191 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52192 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52194 cat <<\_ASBOX
52195 ## ------------------------------------ ##
52196 ## Report this to bug-autoconf@gnu.org. ##
52197 ## ------------------------------------ ##
52198 _ASBOX
52200 sed "s/^/$as_me: WARNING: /" >&2
52202 esac
52203 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52204 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52205 if test "${ac_cv_header_langinfo_h+set}" = set; then
52206 echo $ECHO_N "(cached) $ECHO_C" >&6
52207 else
52208 ac_cv_header_langinfo_h=$ac_header_preproc
52210 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52211 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52214 if test $ac_cv_header_langinfo_h = yes; then
52215 ac_has_langinfo_h=yes
52216 else
52217 ac_has_langinfo_h=no
52222 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52223 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52224 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52225 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52226 echo $ECHO_N "(cached) $ECHO_C" >&6
52227 else
52228 ac_check_lib_save_LIBS=$LIBS
52229 LIBS="-liconv $LIBS"
52230 if test x$gcc_no_link = xyes; then
52231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52233 { (exit 1); exit 1; }; }
52235 cat >conftest.$ac_ext <<_ACEOF
52236 #line $LINENO "configure"
52237 /* confdefs.h. */
52238 _ACEOF
52239 cat confdefs.h >>conftest.$ac_ext
52240 cat >>conftest.$ac_ext <<_ACEOF
52241 /* end confdefs.h. */
52243 /* Override any gcc2 internal prototype to avoid an error. */
52244 #ifdef __cplusplus
52245 extern "C"
52246 #endif
52247 /* We use char because int might match the return type of a gcc2
52248 builtin and then its argument prototype would still apply. */
52249 char iconv ();
52251 main ()
52253 iconv ();
52255 return 0;
52257 _ACEOF
52258 rm -f conftest.$ac_objext conftest$ac_exeext
52259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52260 (eval $ac_link) 2>&5
52261 ac_status=$?
52262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52263 (exit $ac_status); } &&
52264 { ac_try='test -s conftest$ac_exeext'
52265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52266 (eval $ac_try) 2>&5
52267 ac_status=$?
52268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52269 (exit $ac_status); }; }; then
52270 ac_cv_lib_iconv_iconv=yes
52271 else
52272 echo "$as_me: failed program was:" >&5
52273 sed 's/^/| /' conftest.$ac_ext >&5
52275 ac_cv_lib_iconv_iconv=no
52277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52278 LIBS=$ac_check_lib_save_LIBS
52280 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52281 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52282 if test $ac_cv_lib_iconv_iconv = yes; then
52283 libiconv="-liconv"
52286 ac_save_LIBS="$LIBS"
52287 LIBS="$LIBS $libiconv"
52293 for ac_func in iconv_open iconv_close iconv nl_langinfo
52295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52296 echo "$as_me:$LINENO: checking for $ac_func" >&5
52297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52298 if eval "test \"\${$as_ac_var+set}\" = set"; then
52299 echo $ECHO_N "(cached) $ECHO_C" >&6
52300 else
52301 if test x$gcc_no_link = xyes; then
52302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52304 { (exit 1); exit 1; }; }
52306 cat >conftest.$ac_ext <<_ACEOF
52307 #line $LINENO "configure"
52308 /* confdefs.h. */
52309 _ACEOF
52310 cat confdefs.h >>conftest.$ac_ext
52311 cat >>conftest.$ac_ext <<_ACEOF
52312 /* end confdefs.h. */
52313 /* System header to define __stub macros and hopefully few prototypes,
52314 which can conflict with char $ac_func (); below.
52315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52316 <limits.h> exists even on freestanding compilers. */
52317 #ifdef __STDC__
52318 # include <limits.h>
52319 #else
52320 # include <assert.h>
52321 #endif
52322 /* Override any gcc2 internal prototype to avoid an error. */
52323 #ifdef __cplusplus
52324 extern "C"
52326 #endif
52327 /* We use char because int might match the return type of a gcc2
52328 builtin and then its argument prototype would still apply. */
52329 char $ac_func ();
52330 /* The GNU C library defines this for functions which it implements
52331 to always fail with ENOSYS. Some functions are actually named
52332 something starting with __ and the normal name is an alias. */
52333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52334 choke me
52335 #else
52336 char (*f) () = $ac_func;
52337 #endif
52338 #ifdef __cplusplus
52340 #endif
52343 main ()
52345 return f != $ac_func;
52347 return 0;
52349 _ACEOF
52350 rm -f conftest.$ac_objext conftest$ac_exeext
52351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52352 (eval $ac_link) 2>&5
52353 ac_status=$?
52354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52355 (exit $ac_status); } &&
52356 { ac_try='test -s conftest$ac_exeext'
52357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52358 (eval $ac_try) 2>&5
52359 ac_status=$?
52360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52361 (exit $ac_status); }; }; then
52362 eval "$as_ac_var=yes"
52363 else
52364 echo "$as_me: failed program was:" >&5
52365 sed 's/^/| /' conftest.$ac_ext >&5
52367 eval "$as_ac_var=no"
52369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52373 if test `eval echo '${'$as_ac_var'}'` = yes; then
52374 cat >>confdefs.h <<_ACEOF
52375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52376 _ACEOF
52377 ac_XPG2funcs=yes
52378 else
52379 ac_XPG2funcs=no
52381 done
52384 LIBS="$ac_save_LIBS"
52386 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52387 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52388 if test x"$ac_has_iconv_h" = xyes &&
52389 test x"$ac_has_langinfo_h" = xyes &&
52390 test x"$ac_XPG2funcs" = xyes;
52391 then
52392 ac_XPG2_wchar_t=yes
52393 else
52394 ac_XPG2_wchar_t=no
52396 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52397 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52399 # At the moment, only enable wchar_t specializations if all the
52400 # above support is present.
52401 if test x"$ac_isoC99_wchar_t" = xyes &&
52402 test x"$ac_XPG2_wchar_t" = xyes;
52403 then
52404 cat >>confdefs.h <<\_ACEOF
52405 #define _GLIBCXX_USE_WCHAR_T 1
52406 _ACEOF
52408 enable_wchar_t=yes
52411 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52412 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52413 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52414 echo "${ECHO_T}$enable_wchar_t" >&6
52416 cat >>confdefs.h <<\_ACEOF
52417 #define HAVE_COPYSIGN 1
52418 _ACEOF
52420 cat >>confdefs.h <<\_ACEOF
52421 #define HAVE_COPYSIGNF 1
52422 _ACEOF
52424 cat >>confdefs.h <<\_ACEOF
52425 #define HAVE_FINITE 1
52426 _ACEOF
52428 cat >>confdefs.h <<\_ACEOF
52429 #define HAVE_FINITEF 1
52430 _ACEOF
52432 cat >>confdefs.h <<\_ACEOF
52433 #define HAVE_FREXPF 1
52434 _ACEOF
52436 cat >>confdefs.h <<\_ACEOF
52437 #define HAVE_HYPOTF 1
52438 _ACEOF
52440 cat >>confdefs.h <<\_ACEOF
52441 #define HAVE_ISINF 1
52442 _ACEOF
52444 cat >>confdefs.h <<\_ACEOF
52445 #define HAVE_ISINFF 1
52446 _ACEOF
52448 cat >>confdefs.h <<\_ACEOF
52449 #define HAVE_ISNAN 1
52450 _ACEOF
52452 cat >>confdefs.h <<\_ACEOF
52453 #define HAVE_ISNANF 1
52454 _ACEOF
52456 cat >>confdefs.h <<\_ACEOF
52457 #define HAVE_SINCOS 1
52458 _ACEOF
52460 cat >>confdefs.h <<\_ACEOF
52461 #define HAVE_SINCOSF 1
52462 _ACEOF
52464 if test x"long_double_math_on_this_cpu" = x"yes"; then
52465 cat >>confdefs.h <<\_ACEOF
52466 #define HAVE_FINITEL 1
52467 _ACEOF
52469 cat >>confdefs.h <<\_ACEOF
52470 #define HAVE_HYPOTL 1
52471 _ACEOF
52473 cat >>confdefs.h <<\_ACEOF
52474 #define HAVE_ISINFL 1
52475 _ACEOF
52477 cat >>confdefs.h <<\_ACEOF
52478 #define HAVE_ISNANL 1
52479 _ACEOF
52483 *-mingw32*)
52484 #os_include_dir="os/mingw32"
52488 for ac_header in sys/types.h locale.h float.h
52490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52492 echo "$as_me:$LINENO: checking for $ac_header" >&5
52493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52495 echo $ECHO_N "(cached) $ECHO_C" >&6
52497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52499 else
52500 # Is the header compilable?
52501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52503 cat >conftest.$ac_ext <<_ACEOF
52504 #line $LINENO "configure"
52505 /* confdefs.h. */
52506 _ACEOF
52507 cat confdefs.h >>conftest.$ac_ext
52508 cat >>conftest.$ac_ext <<_ACEOF
52509 /* end confdefs.h. */
52510 $ac_includes_default
52511 #include <$ac_header>
52512 _ACEOF
52513 rm -f conftest.$ac_objext
52514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52515 (eval $ac_compile) 2>&5
52516 ac_status=$?
52517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52518 (exit $ac_status); } &&
52519 { ac_try='test -s conftest.$ac_objext'
52520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52521 (eval $ac_try) 2>&5
52522 ac_status=$?
52523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52524 (exit $ac_status); }; }; then
52525 ac_header_compiler=yes
52526 else
52527 echo "$as_me: failed program was:" >&5
52528 sed 's/^/| /' conftest.$ac_ext >&5
52530 ac_header_compiler=no
52532 rm -f conftest.$ac_objext conftest.$ac_ext
52533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52534 echo "${ECHO_T}$ac_header_compiler" >&6
52536 # Is the header present?
52537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52539 cat >conftest.$ac_ext <<_ACEOF
52540 #line $LINENO "configure"
52541 /* confdefs.h. */
52542 _ACEOF
52543 cat confdefs.h >>conftest.$ac_ext
52544 cat >>conftest.$ac_ext <<_ACEOF
52545 /* end confdefs.h. */
52546 #include <$ac_header>
52547 _ACEOF
52548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52550 ac_status=$?
52551 grep -v '^ *+' conftest.er1 >conftest.err
52552 rm -f conftest.er1
52553 cat conftest.err >&5
52554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52555 (exit $ac_status); } >/dev/null; then
52556 if test -s conftest.err; then
52557 ac_cpp_err=$ac_c_preproc_warn_flag
52558 else
52559 ac_cpp_err=
52561 else
52562 ac_cpp_err=yes
52564 if test -z "$ac_cpp_err"; then
52565 ac_header_preproc=yes
52566 else
52567 echo "$as_me: failed program was:" >&5
52568 sed 's/^/| /' conftest.$ac_ext >&5
52570 ac_header_preproc=no
52572 rm -f conftest.err conftest.$ac_ext
52573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52574 echo "${ECHO_T}$ac_header_preproc" >&6
52576 # So? What about this header?
52577 case $ac_header_compiler:$ac_header_preproc in
52578 yes:no )
52579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52584 cat <<\_ASBOX
52585 ## ------------------------------------ ##
52586 ## Report this to bug-autoconf@gnu.org. ##
52587 ## ------------------------------------ ##
52588 _ASBOX
52590 sed "s/^/$as_me: WARNING: /" >&2
52592 no:yes )
52593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52600 cat <<\_ASBOX
52601 ## ------------------------------------ ##
52602 ## Report this to bug-autoconf@gnu.org. ##
52603 ## ------------------------------------ ##
52604 _ASBOX
52606 sed "s/^/$as_me: WARNING: /" >&2
52608 esac
52609 echo "$as_me:$LINENO: checking for $ac_header" >&5
52610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52612 echo $ECHO_N "(cached) $ECHO_C" >&6
52613 else
52614 eval "$as_ac_Header=$ac_header_preproc"
52616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52621 cat >>confdefs.h <<_ACEOF
52622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52623 _ACEOF
52627 done
52630 # If we're not using GNU ld, then there's no point in even trying these
52631 # tests. Check for that first. We should have already tested for gld
52632 # by now (in libtool), but require it now just to be safe...
52633 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
52634 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
52638 # The name set by libtool depends on the version of libtool. Shame on us
52639 # for depending on an impl detail, but c'est la vie. Older versions used
52640 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
52641 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
52642 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
52643 # set (hence we're using an older libtool), then set it.
52644 if test x${with_gnu_ld+set} != xset; then
52645 if test x${ac_cv_prog_gnu_ld+set} != xset; then
52646 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
52647 with_gnu_ld=no
52648 else
52649 with_gnu_ld=$ac_cv_prog_gnu_ld
52653 # Start by getting the version number. I think the libtool test already
52654 # does some of this, but throws away the result.
52656 ldver=`$LD --version 2>/dev/null | head -1 | \
52657 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
52659 glibcxx_gnu_ld_version=`echo $ldver | \
52660 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
52662 # Set --gc-sections.
52663 if test "$with_gnu_ld" = "notbroken"; then
52664 # GNU ld it is! Joy and bunny rabbits!
52666 # All these tests are for C++; save the language and the compiler flags.
52667 # Need to do this so that g++ won't try to link in libstdc++
52668 ac_test_CFLAGS="${CFLAGS+set}"
52669 ac_save_CFLAGS="$CFLAGS"
52670 CFLAGS='-x c++ -Wl,--gc-sections'
52672 # Check for -Wl,--gc-sections
52673 # XXX This test is broken at the moment, as symbols required for linking
52674 # are now in libsupc++ (not built yet). In addition, this test has
52675 # cored on solaris in the past. In addition, --gc-sections doesn't
52676 # really work at the moment (keeps on discarding used sections, first
52677 # .eh_frame and now some of the glibc sections for iconv).
52678 # Bzzzzt. Thanks for playing, maybe next time.
52679 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
52680 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
52681 if test "$cross_compiling" = yes; then
52682 ac_sectionLDflags=yes
52683 else
52684 cat >conftest.$ac_ext <<_ACEOF
52685 #line $LINENO "configure"
52686 /* confdefs.h. */
52687 _ACEOF
52688 cat confdefs.h >>conftest.$ac_ext
52689 cat >>conftest.$ac_ext <<_ACEOF
52690 /* end confdefs.h. */
52692 int main(void)
52694 try { throw 1; }
52695 catch (...) { };
52696 return 0;
52699 _ACEOF
52700 rm -f conftest$ac_exeext
52701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52702 (eval $ac_link) 2>&5
52703 ac_status=$?
52704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52707 (eval $ac_try) 2>&5
52708 ac_status=$?
52709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52710 (exit $ac_status); }; }; then
52711 ac_sectionLDflags=yes
52712 else
52713 echo "$as_me: program exited with status $ac_status" >&5
52714 echo "$as_me: failed program was:" >&5
52715 sed 's/^/| /' conftest.$ac_ext >&5
52717 ( exit $ac_status )
52718 ac_sectionLDflags=no
52720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52722 if test "$ac_test_CFLAGS" = set; then
52723 CFLAGS="$ac_save_CFLAGS"
52724 else
52725 # this is the suspicious part
52726 CFLAGS=''
52728 if test "$ac_sectionLDflags" = "yes"; then
52729 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
52731 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
52732 echo "${ECHO_T}$ac_sectionLDflags" >&6
52735 # Set linker optimization flags.
52736 if test x"$with_gnu_ld" = x"yes"; then
52737 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
52745 echo "$as_me:$LINENO: checking for main in -lm" >&5
52746 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
52747 if test "${ac_cv_lib_m_main+set}" = set; then
52748 echo $ECHO_N "(cached) $ECHO_C" >&6
52749 else
52750 ac_check_lib_save_LIBS=$LIBS
52751 LIBS="-lm $LIBS"
52752 if test x$gcc_no_link = xyes; then
52753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52755 { (exit 1); exit 1; }; }
52757 cat >conftest.$ac_ext <<_ACEOF
52758 #line $LINENO "configure"
52759 /* confdefs.h. */
52760 _ACEOF
52761 cat confdefs.h >>conftest.$ac_ext
52762 cat >>conftest.$ac_ext <<_ACEOF
52763 /* end confdefs.h. */
52767 main ()
52769 main ();
52771 return 0;
52773 _ACEOF
52774 rm -f conftest.$ac_objext conftest$ac_exeext
52775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52776 (eval $ac_link) 2>&5
52777 ac_status=$?
52778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52779 (exit $ac_status); } &&
52780 { ac_try='test -s conftest$ac_exeext'
52781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52782 (eval $ac_try) 2>&5
52783 ac_status=$?
52784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52785 (exit $ac_status); }; }; then
52786 ac_cv_lib_m_main=yes
52787 else
52788 echo "$as_me: failed program was:" >&5
52789 sed 's/^/| /' conftest.$ac_ext >&5
52791 ac_cv_lib_m_main=no
52793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52794 LIBS=$ac_check_lib_save_LIBS
52796 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
52797 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
52798 if test $ac_cv_lib_m_main = yes; then
52799 cat >>confdefs.h <<_ACEOF
52800 #define HAVE_LIBM 1
52801 _ACEOF
52803 LIBS="-lm $LIBS"
52809 for ac_func in nan copysignf
52811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52812 echo "$as_me:$LINENO: checking for $ac_func" >&5
52813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52814 if eval "test \"\${$as_ac_var+set}\" = set"; then
52815 echo $ECHO_N "(cached) $ECHO_C" >&6
52816 else
52817 if test x$gcc_no_link = xyes; then
52818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52820 { (exit 1); exit 1; }; }
52822 cat >conftest.$ac_ext <<_ACEOF
52823 #line $LINENO "configure"
52824 /* confdefs.h. */
52825 _ACEOF
52826 cat confdefs.h >>conftest.$ac_ext
52827 cat >>conftest.$ac_ext <<_ACEOF
52828 /* end confdefs.h. */
52829 /* System header to define __stub macros and hopefully few prototypes,
52830 which can conflict with char $ac_func (); below.
52831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52832 <limits.h> exists even on freestanding compilers. */
52833 #ifdef __STDC__
52834 # include <limits.h>
52835 #else
52836 # include <assert.h>
52837 #endif
52838 /* Override any gcc2 internal prototype to avoid an error. */
52839 #ifdef __cplusplus
52840 extern "C"
52842 #endif
52843 /* We use char because int might match the return type of a gcc2
52844 builtin and then its argument prototype would still apply. */
52845 char $ac_func ();
52846 /* The GNU C library defines this for functions which it implements
52847 to always fail with ENOSYS. Some functions are actually named
52848 something starting with __ and the normal name is an alias. */
52849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52850 choke me
52851 #else
52852 char (*f) () = $ac_func;
52853 #endif
52854 #ifdef __cplusplus
52856 #endif
52859 main ()
52861 return f != $ac_func;
52863 return 0;
52865 _ACEOF
52866 rm -f conftest.$ac_objext conftest$ac_exeext
52867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52868 (eval $ac_link) 2>&5
52869 ac_status=$?
52870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52871 (exit $ac_status); } &&
52872 { ac_try='test -s conftest$ac_exeext'
52873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52874 (eval $ac_try) 2>&5
52875 ac_status=$?
52876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52877 (exit $ac_status); }; }; then
52878 eval "$as_ac_var=yes"
52879 else
52880 echo "$as_me: failed program was:" >&5
52881 sed 's/^/| /' conftest.$ac_ext >&5
52883 eval "$as_ac_var=no"
52885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52889 if test `eval echo '${'$as_ac_var'}'` = yes; then
52890 cat >>confdefs.h <<_ACEOF
52891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52892 _ACEOF
52894 else
52895 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
52897 done
52901 for ac_func in __signbit
52903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52904 echo "$as_me:$LINENO: checking for $ac_func" >&5
52905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52906 if eval "test \"\${$as_ac_var+set}\" = set"; then
52907 echo $ECHO_N "(cached) $ECHO_C" >&6
52908 else
52909 if test x$gcc_no_link = xyes; then
52910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52912 { (exit 1); exit 1; }; }
52914 cat >conftest.$ac_ext <<_ACEOF
52915 #line $LINENO "configure"
52916 /* confdefs.h. */
52917 _ACEOF
52918 cat confdefs.h >>conftest.$ac_ext
52919 cat >>conftest.$ac_ext <<_ACEOF
52920 /* end confdefs.h. */
52921 /* System header to define __stub macros and hopefully few prototypes,
52922 which can conflict with char $ac_func (); below.
52923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52924 <limits.h> exists even on freestanding compilers. */
52925 #ifdef __STDC__
52926 # include <limits.h>
52927 #else
52928 # include <assert.h>
52929 #endif
52930 /* Override any gcc2 internal prototype to avoid an error. */
52931 #ifdef __cplusplus
52932 extern "C"
52934 #endif
52935 /* We use char because int might match the return type of a gcc2
52936 builtin and then its argument prototype would still apply. */
52937 char $ac_func ();
52938 /* The GNU C library defines this for functions which it implements
52939 to always fail with ENOSYS. Some functions are actually named
52940 something starting with __ and the normal name is an alias. */
52941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52942 choke me
52943 #else
52944 char (*f) () = $ac_func;
52945 #endif
52946 #ifdef __cplusplus
52948 #endif
52951 main ()
52953 return f != $ac_func;
52955 return 0;
52957 _ACEOF
52958 rm -f conftest.$ac_objext conftest$ac_exeext
52959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52960 (eval $ac_link) 2>&5
52961 ac_status=$?
52962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52963 (exit $ac_status); } &&
52964 { ac_try='test -s conftest$ac_exeext'
52965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52966 (eval $ac_try) 2>&5
52967 ac_status=$?
52968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52969 (exit $ac_status); }; }; then
52970 eval "$as_ac_var=yes"
52971 else
52972 echo "$as_me: failed program was:" >&5
52973 sed 's/^/| /' conftest.$ac_ext >&5
52975 eval "$as_ac_var=no"
52977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52981 if test `eval echo '${'$as_ac_var'}'` = yes; then
52982 cat >>confdefs.h <<_ACEOF
52983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52984 _ACEOF
52986 else
52987 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
52989 done
52992 for ac_func in __signbitf
52994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52995 echo "$as_me:$LINENO: checking for $ac_func" >&5
52996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52997 if eval "test \"\${$as_ac_var+set}\" = set"; then
52998 echo $ECHO_N "(cached) $ECHO_C" >&6
52999 else
53000 if test x$gcc_no_link = xyes; then
53001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53003 { (exit 1); exit 1; }; }
53005 cat >conftest.$ac_ext <<_ACEOF
53006 #line $LINENO "configure"
53007 /* confdefs.h. */
53008 _ACEOF
53009 cat confdefs.h >>conftest.$ac_ext
53010 cat >>conftest.$ac_ext <<_ACEOF
53011 /* end confdefs.h. */
53012 /* System header to define __stub macros and hopefully few prototypes,
53013 which can conflict with char $ac_func (); below.
53014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53015 <limits.h> exists even on freestanding compilers. */
53016 #ifdef __STDC__
53017 # include <limits.h>
53018 #else
53019 # include <assert.h>
53020 #endif
53021 /* Override any gcc2 internal prototype to avoid an error. */
53022 #ifdef __cplusplus
53023 extern "C"
53025 #endif
53026 /* We use char because int might match the return type of a gcc2
53027 builtin and then its argument prototype would still apply. */
53028 char $ac_func ();
53029 /* The GNU C library defines this for functions which it implements
53030 to always fail with ENOSYS. Some functions are actually named
53031 something starting with __ and the normal name is an alias. */
53032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53033 choke me
53034 #else
53035 char (*f) () = $ac_func;
53036 #endif
53037 #ifdef __cplusplus
53039 #endif
53042 main ()
53044 return f != $ac_func;
53046 return 0;
53048 _ACEOF
53049 rm -f conftest.$ac_objext conftest$ac_exeext
53050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53051 (eval $ac_link) 2>&5
53052 ac_status=$?
53053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53054 (exit $ac_status); } &&
53055 { ac_try='test -s conftest$ac_exeext'
53056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53057 (eval $ac_try) 2>&5
53058 ac_status=$?
53059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53060 (exit $ac_status); }; }; then
53061 eval "$as_ac_var=yes"
53062 else
53063 echo "$as_me: failed program was:" >&5
53064 sed 's/^/| /' conftest.$ac_ext >&5
53066 eval "$as_ac_var=no"
53068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53072 if test `eval echo '${'$as_ac_var'}'` = yes; then
53073 cat >>confdefs.h <<_ACEOF
53074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53075 _ACEOF
53077 else
53078 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53080 done
53083 if test x$ac_cv_func_copysignl = x"yes"; then
53085 for ac_func in __signbitl
53087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53088 echo "$as_me:$LINENO: checking for $ac_func" >&5
53089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53090 if eval "test \"\${$as_ac_var+set}\" = set"; then
53091 echo $ECHO_N "(cached) $ECHO_C" >&6
53092 else
53093 if test x$gcc_no_link = xyes; then
53094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53096 { (exit 1); exit 1; }; }
53098 cat >conftest.$ac_ext <<_ACEOF
53099 #line $LINENO "configure"
53100 /* confdefs.h. */
53101 _ACEOF
53102 cat confdefs.h >>conftest.$ac_ext
53103 cat >>conftest.$ac_ext <<_ACEOF
53104 /* end confdefs.h. */
53105 /* System header to define __stub macros and hopefully few prototypes,
53106 which can conflict with char $ac_func (); below.
53107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53108 <limits.h> exists even on freestanding compilers. */
53109 #ifdef __STDC__
53110 # include <limits.h>
53111 #else
53112 # include <assert.h>
53113 #endif
53114 /* Override any gcc2 internal prototype to avoid an error. */
53115 #ifdef __cplusplus
53116 extern "C"
53118 #endif
53119 /* We use char because int might match the return type of a gcc2
53120 builtin and then its argument prototype would still apply. */
53121 char $ac_func ();
53122 /* The GNU C library defines this for functions which it implements
53123 to always fail with ENOSYS. Some functions are actually named
53124 something starting with __ and the normal name is an alias. */
53125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53126 choke me
53127 #else
53128 char (*f) () = $ac_func;
53129 #endif
53130 #ifdef __cplusplus
53132 #endif
53135 main ()
53137 return f != $ac_func;
53139 return 0;
53141 _ACEOF
53142 rm -f conftest.$ac_objext conftest$ac_exeext
53143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53144 (eval $ac_link) 2>&5
53145 ac_status=$?
53146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53147 (exit $ac_status); } &&
53148 { ac_try='test -s conftest$ac_exeext'
53149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53150 (eval $ac_try) 2>&5
53151 ac_status=$?
53152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53153 (exit $ac_status); }; }; then
53154 eval "$as_ac_var=yes"
53155 else
53156 echo "$as_me: failed program was:" >&5
53157 sed 's/^/| /' conftest.$ac_ext >&5
53159 eval "$as_ac_var=no"
53161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53165 if test `eval echo '${'$as_ac_var'}'` = yes; then
53166 cat >>confdefs.h <<_ACEOF
53167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53168 _ACEOF
53170 else
53171 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53173 done
53177 # XXX Review this. Nothing uses it.
53178 if test -n "$LIBMATHOBJS"; then
53179 need_libmath=yes
53184 # Test wchar.h for mbstate_t, which is needed for char_traits and
53185 # others even if wchar_t support is not on.
53186 echo "$as_me:$LINENO: checking for mbstate_t" >&5
53187 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
53188 cat >conftest.$ac_ext <<_ACEOF
53189 #line $LINENO "configure"
53190 /* confdefs.h. */
53191 _ACEOF
53192 cat confdefs.h >>conftest.$ac_ext
53193 cat >>conftest.$ac_ext <<_ACEOF
53194 /* end confdefs.h. */
53195 #include <wchar.h>
53197 main ()
53199 mbstate_t teststate;
53201 return 0;
53203 _ACEOF
53204 rm -f conftest.$ac_objext
53205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53206 (eval $ac_compile) 2>&5
53207 ac_status=$?
53208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53209 (exit $ac_status); } &&
53210 { ac_try='test -s conftest.$ac_objext'
53211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53212 (eval $ac_try) 2>&5
53213 ac_status=$?
53214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53215 (exit $ac_status); }; }; then
53216 have_mbstate_t=yes
53217 else
53218 echo "$as_me: failed program was:" >&5
53219 sed 's/^/| /' conftest.$ac_ext >&5
53221 have_mbstate_t=no
53223 rm -f conftest.$ac_objext conftest.$ac_ext
53224 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
53225 echo "${ECHO_T}$have_mbstate_t" >&6
53226 if test x"$have_mbstate_t" = xyes; then
53227 cat >>confdefs.h <<\_ACEOF
53228 #define HAVE_MBSTATE_T 1
53229 _ACEOF
53233 # Sanity check for existence of ISO C99 headers for extended encoding.
53235 for ac_header in wchar.h
53237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53239 echo "$as_me:$LINENO: checking for $ac_header" >&5
53240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53242 echo $ECHO_N "(cached) $ECHO_C" >&6
53244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53246 else
53247 # Is the header compilable?
53248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53250 cat >conftest.$ac_ext <<_ACEOF
53251 #line $LINENO "configure"
53252 /* confdefs.h. */
53253 _ACEOF
53254 cat confdefs.h >>conftest.$ac_ext
53255 cat >>conftest.$ac_ext <<_ACEOF
53256 /* end confdefs.h. */
53257 $ac_includes_default
53258 #include <$ac_header>
53259 _ACEOF
53260 rm -f conftest.$ac_objext
53261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53262 (eval $ac_compile) 2>&5
53263 ac_status=$?
53264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53265 (exit $ac_status); } &&
53266 { ac_try='test -s conftest.$ac_objext'
53267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53268 (eval $ac_try) 2>&5
53269 ac_status=$?
53270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53271 (exit $ac_status); }; }; then
53272 ac_header_compiler=yes
53273 else
53274 echo "$as_me: failed program was:" >&5
53275 sed 's/^/| /' conftest.$ac_ext >&5
53277 ac_header_compiler=no
53279 rm -f conftest.$ac_objext conftest.$ac_ext
53280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53281 echo "${ECHO_T}$ac_header_compiler" >&6
53283 # Is the header present?
53284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53286 cat >conftest.$ac_ext <<_ACEOF
53287 #line $LINENO "configure"
53288 /* confdefs.h. */
53289 _ACEOF
53290 cat confdefs.h >>conftest.$ac_ext
53291 cat >>conftest.$ac_ext <<_ACEOF
53292 /* end confdefs.h. */
53293 #include <$ac_header>
53294 _ACEOF
53295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53297 ac_status=$?
53298 grep -v '^ *+' conftest.er1 >conftest.err
53299 rm -f conftest.er1
53300 cat conftest.err >&5
53301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53302 (exit $ac_status); } >/dev/null; then
53303 if test -s conftest.err; then
53304 ac_cpp_err=$ac_c_preproc_warn_flag
53305 else
53306 ac_cpp_err=
53308 else
53309 ac_cpp_err=yes
53311 if test -z "$ac_cpp_err"; then
53312 ac_header_preproc=yes
53313 else
53314 echo "$as_me: failed program was:" >&5
53315 sed 's/^/| /' conftest.$ac_ext >&5
53317 ac_header_preproc=no
53319 rm -f conftest.err conftest.$ac_ext
53320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53321 echo "${ECHO_T}$ac_header_preproc" >&6
53323 # So? What about this header?
53324 case $ac_header_compiler:$ac_header_preproc in
53325 yes:no )
53326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53331 cat <<\_ASBOX
53332 ## ------------------------------------ ##
53333 ## Report this to bug-autoconf@gnu.org. ##
53334 ## ------------------------------------ ##
53335 _ASBOX
53337 sed "s/^/$as_me: WARNING: /" >&2
53339 no:yes )
53340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53347 cat <<\_ASBOX
53348 ## ------------------------------------ ##
53349 ## Report this to bug-autoconf@gnu.org. ##
53350 ## ------------------------------------ ##
53351 _ASBOX
53353 sed "s/^/$as_me: WARNING: /" >&2
53355 esac
53356 echo "$as_me:$LINENO: checking for $ac_header" >&5
53357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53359 echo $ECHO_N "(cached) $ECHO_C" >&6
53360 else
53361 eval "$as_ac_Header=$ac_header_preproc"
53363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53368 cat >>confdefs.h <<_ACEOF
53369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53370 _ACEOF
53371 ac_has_wchar_h=yes
53372 else
53373 ac_has_wchar_h=no
53376 done
53379 for ac_header in wctype.h
53381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53383 echo "$as_me:$LINENO: checking for $ac_header" >&5
53384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53386 echo $ECHO_N "(cached) $ECHO_C" >&6
53388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53390 else
53391 # Is the header compilable?
53392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53394 cat >conftest.$ac_ext <<_ACEOF
53395 #line $LINENO "configure"
53396 /* confdefs.h. */
53397 _ACEOF
53398 cat confdefs.h >>conftest.$ac_ext
53399 cat >>conftest.$ac_ext <<_ACEOF
53400 /* end confdefs.h. */
53401 $ac_includes_default
53402 #include <$ac_header>
53403 _ACEOF
53404 rm -f conftest.$ac_objext
53405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53406 (eval $ac_compile) 2>&5
53407 ac_status=$?
53408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53409 (exit $ac_status); } &&
53410 { ac_try='test -s conftest.$ac_objext'
53411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53412 (eval $ac_try) 2>&5
53413 ac_status=$?
53414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53415 (exit $ac_status); }; }; then
53416 ac_header_compiler=yes
53417 else
53418 echo "$as_me: failed program was:" >&5
53419 sed 's/^/| /' conftest.$ac_ext >&5
53421 ac_header_compiler=no
53423 rm -f conftest.$ac_objext conftest.$ac_ext
53424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53425 echo "${ECHO_T}$ac_header_compiler" >&6
53427 # Is the header present?
53428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53430 cat >conftest.$ac_ext <<_ACEOF
53431 #line $LINENO "configure"
53432 /* confdefs.h. */
53433 _ACEOF
53434 cat confdefs.h >>conftest.$ac_ext
53435 cat >>conftest.$ac_ext <<_ACEOF
53436 /* end confdefs.h. */
53437 #include <$ac_header>
53438 _ACEOF
53439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53441 ac_status=$?
53442 grep -v '^ *+' conftest.er1 >conftest.err
53443 rm -f conftest.er1
53444 cat conftest.err >&5
53445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53446 (exit $ac_status); } >/dev/null; then
53447 if test -s conftest.err; then
53448 ac_cpp_err=$ac_c_preproc_warn_flag
53449 else
53450 ac_cpp_err=
53452 else
53453 ac_cpp_err=yes
53455 if test -z "$ac_cpp_err"; then
53456 ac_header_preproc=yes
53457 else
53458 echo "$as_me: failed program was:" >&5
53459 sed 's/^/| /' conftest.$ac_ext >&5
53461 ac_header_preproc=no
53463 rm -f conftest.err conftest.$ac_ext
53464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53465 echo "${ECHO_T}$ac_header_preproc" >&6
53467 # So? What about this header?
53468 case $ac_header_compiler:$ac_header_preproc in
53469 yes:no )
53470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53475 cat <<\_ASBOX
53476 ## ------------------------------------ ##
53477 ## Report this to bug-autoconf@gnu.org. ##
53478 ## ------------------------------------ ##
53479 _ASBOX
53481 sed "s/^/$as_me: WARNING: /" >&2
53483 no:yes )
53484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53491 cat <<\_ASBOX
53492 ## ------------------------------------ ##
53493 ## Report this to bug-autoconf@gnu.org. ##
53494 ## ------------------------------------ ##
53495 _ASBOX
53497 sed "s/^/$as_me: WARNING: /" >&2
53499 esac
53500 echo "$as_me:$LINENO: checking for $ac_header" >&5
53501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53503 echo $ECHO_N "(cached) $ECHO_C" >&6
53504 else
53505 eval "$as_ac_Header=$ac_header_preproc"
53507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53512 cat >>confdefs.h <<_ACEOF
53513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53514 _ACEOF
53515 ac_has_wctype_h=yes
53516 else
53517 ac_has_wctype_h=no
53520 done
53523 # Only continue checking if the ISO C99 headers exist and support is on.
53524 if test x"$ac_has_wchar_h" = xyes &&
53525 test x"$ac_has_wctype_h" = xyes &&
53526 test x"$enable_c_mbchar" != xno; then
53528 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
53529 # numeric_limits can instantiate type_traits<wchar_t>
53530 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
53531 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
53532 cat >conftest.$ac_ext <<_ACEOF
53533 #line $LINENO "configure"
53534 /* confdefs.h. */
53535 _ACEOF
53536 cat confdefs.h >>conftest.$ac_ext
53537 cat >>conftest.$ac_ext <<_ACEOF
53538 /* end confdefs.h. */
53539 #include <wchar.h>
53541 main ()
53543 int i = WCHAR_MIN; int j = WCHAR_MAX;
53545 return 0;
53547 _ACEOF
53548 rm -f conftest.$ac_objext
53549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53550 (eval $ac_compile) 2>&5
53551 ac_status=$?
53552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53553 (exit $ac_status); } &&
53554 { ac_try='test -s conftest.$ac_objext'
53555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53556 (eval $ac_try) 2>&5
53557 ac_status=$?
53558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53559 (exit $ac_status); }; }; then
53560 has_wchar_minmax=yes
53561 else
53562 echo "$as_me: failed program was:" >&5
53563 sed 's/^/| /' conftest.$ac_ext >&5
53565 has_wchar_minmax=no
53567 rm -f conftest.$ac_objext conftest.$ac_ext
53568 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
53569 echo "${ECHO_T}$has_wchar_minmax" >&6
53571 # Test wchar.h for WEOF, which is what we use to determine whether
53572 # to specialize for char_traits<wchar_t> or not.
53573 echo "$as_me:$LINENO: checking for WEOF" >&5
53574 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
53575 cat >conftest.$ac_ext <<_ACEOF
53576 #line $LINENO "configure"
53577 /* confdefs.h. */
53578 _ACEOF
53579 cat confdefs.h >>conftest.$ac_ext
53580 cat >>conftest.$ac_ext <<_ACEOF
53581 /* end confdefs.h. */
53583 #include <wchar.h>
53584 #include <stddef.h>
53586 main ()
53588 wint_t i = WEOF;
53590 return 0;
53592 _ACEOF
53593 rm -f conftest.$ac_objext
53594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53595 (eval $ac_compile) 2>&5
53596 ac_status=$?
53597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53598 (exit $ac_status); } &&
53599 { ac_try='test -s conftest.$ac_objext'
53600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53601 (eval $ac_try) 2>&5
53602 ac_status=$?
53603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53604 (exit $ac_status); }; }; then
53605 has_weof=yes
53606 else
53607 echo "$as_me: failed program was:" >&5
53608 sed 's/^/| /' conftest.$ac_ext >&5
53610 has_weof=no
53612 rm -f conftest.$ac_objext conftest.$ac_ext
53613 echo "$as_me:$LINENO: result: $has_weof" >&5
53614 echo "${ECHO_T}$has_weof" >&6
53616 # Tests for wide character functions used in char_traits<wchar_t>.
53617 ac_wfuncs=yes
53624 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
53626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53627 echo "$as_me:$LINENO: checking for $ac_func" >&5
53628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53629 if eval "test \"\${$as_ac_var+set}\" = set"; then
53630 echo $ECHO_N "(cached) $ECHO_C" >&6
53631 else
53632 if test x$gcc_no_link = xyes; then
53633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53635 { (exit 1); exit 1; }; }
53637 cat >conftest.$ac_ext <<_ACEOF
53638 #line $LINENO "configure"
53639 /* confdefs.h. */
53640 _ACEOF
53641 cat confdefs.h >>conftest.$ac_ext
53642 cat >>conftest.$ac_ext <<_ACEOF
53643 /* end confdefs.h. */
53644 /* System header to define __stub macros and hopefully few prototypes,
53645 which can conflict with char $ac_func (); below.
53646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53647 <limits.h> exists even on freestanding compilers. */
53648 #ifdef __STDC__
53649 # include <limits.h>
53650 #else
53651 # include <assert.h>
53652 #endif
53653 /* Override any gcc2 internal prototype to avoid an error. */
53654 #ifdef __cplusplus
53655 extern "C"
53657 #endif
53658 /* We use char because int might match the return type of a gcc2
53659 builtin and then its argument prototype would still apply. */
53660 char $ac_func ();
53661 /* The GNU C library defines this for functions which it implements
53662 to always fail with ENOSYS. Some functions are actually named
53663 something starting with __ and the normal name is an alias. */
53664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53665 choke me
53666 #else
53667 char (*f) () = $ac_func;
53668 #endif
53669 #ifdef __cplusplus
53671 #endif
53674 main ()
53676 return f != $ac_func;
53678 return 0;
53680 _ACEOF
53681 rm -f conftest.$ac_objext conftest$ac_exeext
53682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53683 (eval $ac_link) 2>&5
53684 ac_status=$?
53685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53686 (exit $ac_status); } &&
53687 { ac_try='test -s conftest$ac_exeext'
53688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53689 (eval $ac_try) 2>&5
53690 ac_status=$?
53691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53692 (exit $ac_status); }; }; then
53693 eval "$as_ac_var=yes"
53694 else
53695 echo "$as_me: failed program was:" >&5
53696 sed 's/^/| /' conftest.$ac_ext >&5
53698 eval "$as_ac_var=no"
53700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53704 if test `eval echo '${'$as_ac_var'}'` = yes; then
53705 cat >>confdefs.h <<_ACEOF
53706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53707 _ACEOF
53709 else
53710 ac_wfuncs=no
53712 done
53715 # Checks for names injected into std:: by the c_std headers.
53766 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
53767 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
53768 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
53769 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
53770 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
53771 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
53773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53774 echo "$as_me:$LINENO: checking for $ac_func" >&5
53775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53776 if eval "test \"\${$as_ac_var+set}\" = set"; then
53777 echo $ECHO_N "(cached) $ECHO_C" >&6
53778 else
53779 if test x$gcc_no_link = xyes; then
53780 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53781 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53782 { (exit 1); exit 1; }; }
53784 cat >conftest.$ac_ext <<_ACEOF
53785 #line $LINENO "configure"
53786 /* confdefs.h. */
53787 _ACEOF
53788 cat confdefs.h >>conftest.$ac_ext
53789 cat >>conftest.$ac_ext <<_ACEOF
53790 /* end confdefs.h. */
53791 /* System header to define __stub macros and hopefully few prototypes,
53792 which can conflict with char $ac_func (); below.
53793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53794 <limits.h> exists even on freestanding compilers. */
53795 #ifdef __STDC__
53796 # include <limits.h>
53797 #else
53798 # include <assert.h>
53799 #endif
53800 /* Override any gcc2 internal prototype to avoid an error. */
53801 #ifdef __cplusplus
53802 extern "C"
53804 #endif
53805 /* We use char because int might match the return type of a gcc2
53806 builtin and then its argument prototype would still apply. */
53807 char $ac_func ();
53808 /* The GNU C library defines this for functions which it implements
53809 to always fail with ENOSYS. Some functions are actually named
53810 something starting with __ and the normal name is an alias. */
53811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53812 choke me
53813 #else
53814 char (*f) () = $ac_func;
53815 #endif
53816 #ifdef __cplusplus
53818 #endif
53821 main ()
53823 return f != $ac_func;
53825 return 0;
53827 _ACEOF
53828 rm -f conftest.$ac_objext conftest$ac_exeext
53829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53830 (eval $ac_link) 2>&5
53831 ac_status=$?
53832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53833 (exit $ac_status); } &&
53834 { ac_try='test -s conftest$ac_exeext'
53835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53836 (eval $ac_try) 2>&5
53837 ac_status=$?
53838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53839 (exit $ac_status); }; }; then
53840 eval "$as_ac_var=yes"
53841 else
53842 echo "$as_me: failed program was:" >&5
53843 sed 's/^/| /' conftest.$ac_ext >&5
53845 eval "$as_ac_var=no"
53847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53851 if test `eval echo '${'$as_ac_var'}'` = yes; then
53852 cat >>confdefs.h <<_ACEOF
53853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53854 _ACEOF
53856 else
53857 ac_wfuncs=no
53859 done
53862 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
53863 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
53864 if test x"$has_weof" = xyes &&
53865 test x"$has_wchar_minmax" = xyes &&
53866 test x"$ac_wfuncs" = xyes;
53867 then
53868 ac_isoC99_wchar_t=yes
53869 else
53870 ac_isoC99_wchar_t=no
53872 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
53873 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
53875 # Use iconv for wchar_t to char conversions. As such, check for
53876 # X/Open Portability Guide, version 2 features (XPG2).
53877 if test "${ac_cv_header_iconv_h+set}" = set; then
53878 echo "$as_me:$LINENO: checking for iconv.h" >&5
53879 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
53880 if test "${ac_cv_header_iconv_h+set}" = set; then
53881 echo $ECHO_N "(cached) $ECHO_C" >&6
53883 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
53884 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
53885 else
53886 # Is the header compilable?
53887 echo "$as_me:$LINENO: checking iconv.h usability" >&5
53888 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
53889 cat >conftest.$ac_ext <<_ACEOF
53890 #line $LINENO "configure"
53891 /* confdefs.h. */
53892 _ACEOF
53893 cat confdefs.h >>conftest.$ac_ext
53894 cat >>conftest.$ac_ext <<_ACEOF
53895 /* end confdefs.h. */
53896 $ac_includes_default
53897 #include <iconv.h>
53898 _ACEOF
53899 rm -f conftest.$ac_objext
53900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53901 (eval $ac_compile) 2>&5
53902 ac_status=$?
53903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53904 (exit $ac_status); } &&
53905 { ac_try='test -s conftest.$ac_objext'
53906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53907 (eval $ac_try) 2>&5
53908 ac_status=$?
53909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53910 (exit $ac_status); }; }; then
53911 ac_header_compiler=yes
53912 else
53913 echo "$as_me: failed program was:" >&5
53914 sed 's/^/| /' conftest.$ac_ext >&5
53916 ac_header_compiler=no
53918 rm -f conftest.$ac_objext conftest.$ac_ext
53919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53920 echo "${ECHO_T}$ac_header_compiler" >&6
53922 # Is the header present?
53923 echo "$as_me:$LINENO: checking iconv.h presence" >&5
53924 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
53925 cat >conftest.$ac_ext <<_ACEOF
53926 #line $LINENO "configure"
53927 /* confdefs.h. */
53928 _ACEOF
53929 cat confdefs.h >>conftest.$ac_ext
53930 cat >>conftest.$ac_ext <<_ACEOF
53931 /* end confdefs.h. */
53932 #include <iconv.h>
53933 _ACEOF
53934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53936 ac_status=$?
53937 grep -v '^ *+' conftest.er1 >conftest.err
53938 rm -f conftest.er1
53939 cat conftest.err >&5
53940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53941 (exit $ac_status); } >/dev/null; then
53942 if test -s conftest.err; then
53943 ac_cpp_err=$ac_c_preproc_warn_flag
53944 else
53945 ac_cpp_err=
53947 else
53948 ac_cpp_err=yes
53950 if test -z "$ac_cpp_err"; then
53951 ac_header_preproc=yes
53952 else
53953 echo "$as_me: failed program was:" >&5
53954 sed 's/^/| /' conftest.$ac_ext >&5
53956 ac_header_preproc=no
53958 rm -f conftest.err conftest.$ac_ext
53959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53960 echo "${ECHO_T}$ac_header_preproc" >&6
53962 # So? What about this header?
53963 case $ac_header_compiler:$ac_header_preproc in
53964 yes:no )
53965 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
53966 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53967 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
53968 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
53970 cat <<\_ASBOX
53971 ## ------------------------------------ ##
53972 ## Report this to bug-autoconf@gnu.org. ##
53973 ## ------------------------------------ ##
53974 _ASBOX
53976 sed "s/^/$as_me: WARNING: /" >&2
53978 no:yes )
53979 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
53980 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
53981 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
53982 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
53983 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
53984 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
53986 cat <<\_ASBOX
53987 ## ------------------------------------ ##
53988 ## Report this to bug-autoconf@gnu.org. ##
53989 ## ------------------------------------ ##
53990 _ASBOX
53992 sed "s/^/$as_me: WARNING: /" >&2
53994 esac
53995 echo "$as_me:$LINENO: checking for iconv.h" >&5
53996 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
53997 if test "${ac_cv_header_iconv_h+set}" = set; then
53998 echo $ECHO_N "(cached) $ECHO_C" >&6
53999 else
54000 ac_cv_header_iconv_h=$ac_header_preproc
54002 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54003 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54006 if test $ac_cv_header_iconv_h = yes; then
54007 ac_has_iconv_h=yes
54008 else
54009 ac_has_iconv_h=no
54013 if test "${ac_cv_header_langinfo_h+set}" = set; then
54014 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54015 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54016 if test "${ac_cv_header_langinfo_h+set}" = set; then
54017 echo $ECHO_N "(cached) $ECHO_C" >&6
54019 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54020 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54021 else
54022 # Is the header compilable?
54023 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
54024 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
54025 cat >conftest.$ac_ext <<_ACEOF
54026 #line $LINENO "configure"
54027 /* confdefs.h. */
54028 _ACEOF
54029 cat confdefs.h >>conftest.$ac_ext
54030 cat >>conftest.$ac_ext <<_ACEOF
54031 /* end confdefs.h. */
54032 $ac_includes_default
54033 #include <langinfo.h>
54034 _ACEOF
54035 rm -f conftest.$ac_objext
54036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54037 (eval $ac_compile) 2>&5
54038 ac_status=$?
54039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54040 (exit $ac_status); } &&
54041 { ac_try='test -s conftest.$ac_objext'
54042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54043 (eval $ac_try) 2>&5
54044 ac_status=$?
54045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54046 (exit $ac_status); }; }; then
54047 ac_header_compiler=yes
54048 else
54049 echo "$as_me: failed program was:" >&5
54050 sed 's/^/| /' conftest.$ac_ext >&5
54052 ac_header_compiler=no
54054 rm -f conftest.$ac_objext conftest.$ac_ext
54055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54056 echo "${ECHO_T}$ac_header_compiler" >&6
54058 # Is the header present?
54059 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
54060 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
54061 cat >conftest.$ac_ext <<_ACEOF
54062 #line $LINENO "configure"
54063 /* confdefs.h. */
54064 _ACEOF
54065 cat confdefs.h >>conftest.$ac_ext
54066 cat >>conftest.$ac_ext <<_ACEOF
54067 /* end confdefs.h. */
54068 #include <langinfo.h>
54069 _ACEOF
54070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54072 ac_status=$?
54073 grep -v '^ *+' conftest.er1 >conftest.err
54074 rm -f conftest.er1
54075 cat conftest.err >&5
54076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54077 (exit $ac_status); } >/dev/null; then
54078 if test -s conftest.err; then
54079 ac_cpp_err=$ac_c_preproc_warn_flag
54080 else
54081 ac_cpp_err=
54083 else
54084 ac_cpp_err=yes
54086 if test -z "$ac_cpp_err"; then
54087 ac_header_preproc=yes
54088 else
54089 echo "$as_me: failed program was:" >&5
54090 sed 's/^/| /' conftest.$ac_ext >&5
54092 ac_header_preproc=no
54094 rm -f conftest.err conftest.$ac_ext
54095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54096 echo "${ECHO_T}$ac_header_preproc" >&6
54098 # So? What about this header?
54099 case $ac_header_compiler:$ac_header_preproc in
54100 yes:no )
54101 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54102 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54103 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54104 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54106 cat <<\_ASBOX
54107 ## ------------------------------------ ##
54108 ## Report this to bug-autoconf@gnu.org. ##
54109 ## ------------------------------------ ##
54110 _ASBOX
54112 sed "s/^/$as_me: WARNING: /" >&2
54114 no:yes )
54115 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
54116 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
54117 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
54118 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
54119 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54120 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54122 cat <<\_ASBOX
54123 ## ------------------------------------ ##
54124 ## Report this to bug-autoconf@gnu.org. ##
54125 ## ------------------------------------ ##
54126 _ASBOX
54128 sed "s/^/$as_me: WARNING: /" >&2
54130 esac
54131 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54132 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54133 if test "${ac_cv_header_langinfo_h+set}" = set; then
54134 echo $ECHO_N "(cached) $ECHO_C" >&6
54135 else
54136 ac_cv_header_langinfo_h=$ac_header_preproc
54138 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54139 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54142 if test $ac_cv_header_langinfo_h = yes; then
54143 ac_has_langinfo_h=yes
54144 else
54145 ac_has_langinfo_h=no
54150 # Check for existence of libiconv.a providing XPG2 wchar_t support.
54151 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
54152 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
54153 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
54154 echo $ECHO_N "(cached) $ECHO_C" >&6
54155 else
54156 ac_check_lib_save_LIBS=$LIBS
54157 LIBS="-liconv $LIBS"
54158 if test x$gcc_no_link = xyes; then
54159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54161 { (exit 1); exit 1; }; }
54163 cat >conftest.$ac_ext <<_ACEOF
54164 #line $LINENO "configure"
54165 /* confdefs.h. */
54166 _ACEOF
54167 cat confdefs.h >>conftest.$ac_ext
54168 cat >>conftest.$ac_ext <<_ACEOF
54169 /* end confdefs.h. */
54171 /* Override any gcc2 internal prototype to avoid an error. */
54172 #ifdef __cplusplus
54173 extern "C"
54174 #endif
54175 /* We use char because int might match the return type of a gcc2
54176 builtin and then its argument prototype would still apply. */
54177 char iconv ();
54179 main ()
54181 iconv ();
54183 return 0;
54185 _ACEOF
54186 rm -f conftest.$ac_objext conftest$ac_exeext
54187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54188 (eval $ac_link) 2>&5
54189 ac_status=$?
54190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54191 (exit $ac_status); } &&
54192 { ac_try='test -s conftest$ac_exeext'
54193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54194 (eval $ac_try) 2>&5
54195 ac_status=$?
54196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54197 (exit $ac_status); }; }; then
54198 ac_cv_lib_iconv_iconv=yes
54199 else
54200 echo "$as_me: failed program was:" >&5
54201 sed 's/^/| /' conftest.$ac_ext >&5
54203 ac_cv_lib_iconv_iconv=no
54205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54206 LIBS=$ac_check_lib_save_LIBS
54208 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
54209 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
54210 if test $ac_cv_lib_iconv_iconv = yes; then
54211 libiconv="-liconv"
54214 ac_save_LIBS="$LIBS"
54215 LIBS="$LIBS $libiconv"
54221 for ac_func in iconv_open iconv_close iconv nl_langinfo
54223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54224 echo "$as_me:$LINENO: checking for $ac_func" >&5
54225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54226 if eval "test \"\${$as_ac_var+set}\" = set"; then
54227 echo $ECHO_N "(cached) $ECHO_C" >&6
54228 else
54229 if test x$gcc_no_link = xyes; then
54230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54232 { (exit 1); exit 1; }; }
54234 cat >conftest.$ac_ext <<_ACEOF
54235 #line $LINENO "configure"
54236 /* confdefs.h. */
54237 _ACEOF
54238 cat confdefs.h >>conftest.$ac_ext
54239 cat >>conftest.$ac_ext <<_ACEOF
54240 /* end confdefs.h. */
54241 /* System header to define __stub macros and hopefully few prototypes,
54242 which can conflict with char $ac_func (); below.
54243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54244 <limits.h> exists even on freestanding compilers. */
54245 #ifdef __STDC__
54246 # include <limits.h>
54247 #else
54248 # include <assert.h>
54249 #endif
54250 /* Override any gcc2 internal prototype to avoid an error. */
54251 #ifdef __cplusplus
54252 extern "C"
54254 #endif
54255 /* We use char because int might match the return type of a gcc2
54256 builtin and then its argument prototype would still apply. */
54257 char $ac_func ();
54258 /* The GNU C library defines this for functions which it implements
54259 to always fail with ENOSYS. Some functions are actually named
54260 something starting with __ and the normal name is an alias. */
54261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54262 choke me
54263 #else
54264 char (*f) () = $ac_func;
54265 #endif
54266 #ifdef __cplusplus
54268 #endif
54271 main ()
54273 return f != $ac_func;
54275 return 0;
54277 _ACEOF
54278 rm -f conftest.$ac_objext conftest$ac_exeext
54279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54280 (eval $ac_link) 2>&5
54281 ac_status=$?
54282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54283 (exit $ac_status); } &&
54284 { ac_try='test -s conftest$ac_exeext'
54285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54286 (eval $ac_try) 2>&5
54287 ac_status=$?
54288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54289 (exit $ac_status); }; }; then
54290 eval "$as_ac_var=yes"
54291 else
54292 echo "$as_me: failed program was:" >&5
54293 sed 's/^/| /' conftest.$ac_ext >&5
54295 eval "$as_ac_var=no"
54297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54301 if test `eval echo '${'$as_ac_var'}'` = yes; then
54302 cat >>confdefs.h <<_ACEOF
54303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54304 _ACEOF
54305 ac_XPG2funcs=yes
54306 else
54307 ac_XPG2funcs=no
54309 done
54312 LIBS="$ac_save_LIBS"
54314 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
54315 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
54316 if test x"$ac_has_iconv_h" = xyes &&
54317 test x"$ac_has_langinfo_h" = xyes &&
54318 test x"$ac_XPG2funcs" = xyes;
54319 then
54320 ac_XPG2_wchar_t=yes
54321 else
54322 ac_XPG2_wchar_t=no
54324 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
54325 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
54327 # At the moment, only enable wchar_t specializations if all the
54328 # above support is present.
54329 if test x"$ac_isoC99_wchar_t" = xyes &&
54330 test x"$ac_XPG2_wchar_t" = xyes;
54331 then
54332 cat >>confdefs.h <<\_ACEOF
54333 #define _GLIBCXX_USE_WCHAR_T 1
54334 _ACEOF
54336 enable_wchar_t=yes
54339 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
54340 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
54341 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
54342 echo "${ECHO_T}$enable_wchar_t" >&6
54345 *-netbsd*)
54346 #os_include_dir="os/bsd/netbsd"
54359 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
54360 machine/endian.h machine/param.h sys/machine.h sys/types.h \
54361 fp.h locale.h float.h inttypes.h
54363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54365 echo "$as_me:$LINENO: checking for $ac_header" >&5
54366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54368 echo $ECHO_N "(cached) $ECHO_C" >&6
54370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54372 else
54373 # Is the header compilable?
54374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54376 cat >conftest.$ac_ext <<_ACEOF
54377 #line $LINENO "configure"
54378 /* confdefs.h. */
54379 _ACEOF
54380 cat confdefs.h >>conftest.$ac_ext
54381 cat >>conftest.$ac_ext <<_ACEOF
54382 /* end confdefs.h. */
54383 $ac_includes_default
54384 #include <$ac_header>
54385 _ACEOF
54386 rm -f conftest.$ac_objext
54387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54388 (eval $ac_compile) 2>&5
54389 ac_status=$?
54390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54391 (exit $ac_status); } &&
54392 { ac_try='test -s conftest.$ac_objext'
54393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54394 (eval $ac_try) 2>&5
54395 ac_status=$?
54396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54397 (exit $ac_status); }; }; then
54398 ac_header_compiler=yes
54399 else
54400 echo "$as_me: failed program was:" >&5
54401 sed 's/^/| /' conftest.$ac_ext >&5
54403 ac_header_compiler=no
54405 rm -f conftest.$ac_objext conftest.$ac_ext
54406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54407 echo "${ECHO_T}$ac_header_compiler" >&6
54409 # Is the header present?
54410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54412 cat >conftest.$ac_ext <<_ACEOF
54413 #line $LINENO "configure"
54414 /* confdefs.h. */
54415 _ACEOF
54416 cat confdefs.h >>conftest.$ac_ext
54417 cat >>conftest.$ac_ext <<_ACEOF
54418 /* end confdefs.h. */
54419 #include <$ac_header>
54420 _ACEOF
54421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54423 ac_status=$?
54424 grep -v '^ *+' conftest.er1 >conftest.err
54425 rm -f conftest.er1
54426 cat conftest.err >&5
54427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54428 (exit $ac_status); } >/dev/null; then
54429 if test -s conftest.err; then
54430 ac_cpp_err=$ac_c_preproc_warn_flag
54431 else
54432 ac_cpp_err=
54434 else
54435 ac_cpp_err=yes
54437 if test -z "$ac_cpp_err"; then
54438 ac_header_preproc=yes
54439 else
54440 echo "$as_me: failed program was:" >&5
54441 sed 's/^/| /' conftest.$ac_ext >&5
54443 ac_header_preproc=no
54445 rm -f conftest.err conftest.$ac_ext
54446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54447 echo "${ECHO_T}$ac_header_preproc" >&6
54449 # So? What about this header?
54450 case $ac_header_compiler:$ac_header_preproc in
54451 yes:no )
54452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54457 cat <<\_ASBOX
54458 ## ------------------------------------ ##
54459 ## Report this to bug-autoconf@gnu.org. ##
54460 ## ------------------------------------ ##
54461 _ASBOX
54463 sed "s/^/$as_me: WARNING: /" >&2
54465 no:yes )
54466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54473 cat <<\_ASBOX
54474 ## ------------------------------------ ##
54475 ## Report this to bug-autoconf@gnu.org. ##
54476 ## ------------------------------------ ##
54477 _ASBOX
54479 sed "s/^/$as_me: WARNING: /" >&2
54481 esac
54482 echo "$as_me:$LINENO: checking for $ac_header" >&5
54483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54485 echo $ECHO_N "(cached) $ECHO_C" >&6
54486 else
54487 eval "$as_ac_Header=$ac_header_preproc"
54489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54494 cat >>confdefs.h <<_ACEOF
54495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54496 _ACEOF
54500 done
54502 SECTION_FLAGS='-ffunction-sections -fdata-sections'
54505 # If we're not using GNU ld, then there's no point in even trying these
54506 # tests. Check for that first. We should have already tested for gld
54507 # by now (in libtool), but require it now just to be safe...
54508 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
54509 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
54513 # The name set by libtool depends on the version of libtool. Shame on us
54514 # for depending on an impl detail, but c'est la vie. Older versions used
54515 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
54516 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
54517 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
54518 # set (hence we're using an older libtool), then set it.
54519 if test x${with_gnu_ld+set} != xset; then
54520 if test x${ac_cv_prog_gnu_ld+set} != xset; then
54521 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
54522 with_gnu_ld=no
54523 else
54524 with_gnu_ld=$ac_cv_prog_gnu_ld
54528 # Start by getting the version number. I think the libtool test already
54529 # does some of this, but throws away the result.
54531 ldver=`$LD --version 2>/dev/null | head -1 | \
54532 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
54534 glibcxx_gnu_ld_version=`echo $ldver | \
54535 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
54537 # Set --gc-sections.
54538 if test "$with_gnu_ld" = "notbroken"; then
54539 # GNU ld it is! Joy and bunny rabbits!
54541 # All these tests are for C++; save the language and the compiler flags.
54542 # Need to do this so that g++ won't try to link in libstdc++
54543 ac_test_CFLAGS="${CFLAGS+set}"
54544 ac_save_CFLAGS="$CFLAGS"
54545 CFLAGS='-x c++ -Wl,--gc-sections'
54547 # Check for -Wl,--gc-sections
54548 # XXX This test is broken at the moment, as symbols required for linking
54549 # are now in libsupc++ (not built yet). In addition, this test has
54550 # cored on solaris in the past. In addition, --gc-sections doesn't
54551 # really work at the moment (keeps on discarding used sections, first
54552 # .eh_frame and now some of the glibc sections for iconv).
54553 # Bzzzzt. Thanks for playing, maybe next time.
54554 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
54555 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
54556 if test "$cross_compiling" = yes; then
54557 ac_sectionLDflags=yes
54558 else
54559 cat >conftest.$ac_ext <<_ACEOF
54560 #line $LINENO "configure"
54561 /* confdefs.h. */
54562 _ACEOF
54563 cat confdefs.h >>conftest.$ac_ext
54564 cat >>conftest.$ac_ext <<_ACEOF
54565 /* end confdefs.h. */
54567 int main(void)
54569 try { throw 1; }
54570 catch (...) { };
54571 return 0;
54574 _ACEOF
54575 rm -f conftest$ac_exeext
54576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54577 (eval $ac_link) 2>&5
54578 ac_status=$?
54579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54582 (eval $ac_try) 2>&5
54583 ac_status=$?
54584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54585 (exit $ac_status); }; }; then
54586 ac_sectionLDflags=yes
54587 else
54588 echo "$as_me: program exited with status $ac_status" >&5
54589 echo "$as_me: failed program was:" >&5
54590 sed 's/^/| /' conftest.$ac_ext >&5
54592 ( exit $ac_status )
54593 ac_sectionLDflags=no
54595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54597 if test "$ac_test_CFLAGS" = set; then
54598 CFLAGS="$ac_save_CFLAGS"
54599 else
54600 # this is the suspicious part
54601 CFLAGS=''
54603 if test "$ac_sectionLDflags" = "yes"; then
54604 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
54606 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
54607 echo "${ECHO_T}$ac_sectionLDflags" >&6
54610 # Set linker optimization flags.
54611 if test x"$with_gnu_ld" = x"yes"; then
54612 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
54620 echo "$as_me:$LINENO: checking for main in -lm" >&5
54621 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
54622 if test "${ac_cv_lib_m_main+set}" = set; then
54623 echo $ECHO_N "(cached) $ECHO_C" >&6
54624 else
54625 ac_check_lib_save_LIBS=$LIBS
54626 LIBS="-lm $LIBS"
54627 if test x$gcc_no_link = xyes; then
54628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54630 { (exit 1); exit 1; }; }
54632 cat >conftest.$ac_ext <<_ACEOF
54633 #line $LINENO "configure"
54634 /* confdefs.h. */
54635 _ACEOF
54636 cat confdefs.h >>conftest.$ac_ext
54637 cat >>conftest.$ac_ext <<_ACEOF
54638 /* end confdefs.h. */
54642 main ()
54644 main ();
54646 return 0;
54648 _ACEOF
54649 rm -f conftest.$ac_objext conftest$ac_exeext
54650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54651 (eval $ac_link) 2>&5
54652 ac_status=$?
54653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54654 (exit $ac_status); } &&
54655 { ac_try='test -s conftest$ac_exeext'
54656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54657 (eval $ac_try) 2>&5
54658 ac_status=$?
54659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54660 (exit $ac_status); }; }; then
54661 ac_cv_lib_m_main=yes
54662 else
54663 echo "$as_me: failed program was:" >&5
54664 sed 's/^/| /' conftest.$ac_ext >&5
54666 ac_cv_lib_m_main=no
54668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54669 LIBS=$ac_check_lib_save_LIBS
54671 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
54672 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
54673 if test $ac_cv_lib_m_main = yes; then
54674 cat >>confdefs.h <<_ACEOF
54675 #define HAVE_LIBM 1
54676 _ACEOF
54678 LIBS="-lm $LIBS"
54684 for ac_func in nan copysignf
54686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54687 echo "$as_me:$LINENO: checking for $ac_func" >&5
54688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54689 if eval "test \"\${$as_ac_var+set}\" = set"; then
54690 echo $ECHO_N "(cached) $ECHO_C" >&6
54691 else
54692 if test x$gcc_no_link = xyes; then
54693 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54694 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54695 { (exit 1); exit 1; }; }
54697 cat >conftest.$ac_ext <<_ACEOF
54698 #line $LINENO "configure"
54699 /* confdefs.h. */
54700 _ACEOF
54701 cat confdefs.h >>conftest.$ac_ext
54702 cat >>conftest.$ac_ext <<_ACEOF
54703 /* end confdefs.h. */
54704 /* System header to define __stub macros and hopefully few prototypes,
54705 which can conflict with char $ac_func (); below.
54706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54707 <limits.h> exists even on freestanding compilers. */
54708 #ifdef __STDC__
54709 # include <limits.h>
54710 #else
54711 # include <assert.h>
54712 #endif
54713 /* Override any gcc2 internal prototype to avoid an error. */
54714 #ifdef __cplusplus
54715 extern "C"
54717 #endif
54718 /* We use char because int might match the return type of a gcc2
54719 builtin and then its argument prototype would still apply. */
54720 char $ac_func ();
54721 /* The GNU C library defines this for functions which it implements
54722 to always fail with ENOSYS. Some functions are actually named
54723 something starting with __ and the normal name is an alias. */
54724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54725 choke me
54726 #else
54727 char (*f) () = $ac_func;
54728 #endif
54729 #ifdef __cplusplus
54731 #endif
54734 main ()
54736 return f != $ac_func;
54738 return 0;
54740 _ACEOF
54741 rm -f conftest.$ac_objext conftest$ac_exeext
54742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54743 (eval $ac_link) 2>&5
54744 ac_status=$?
54745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54746 (exit $ac_status); } &&
54747 { ac_try='test -s conftest$ac_exeext'
54748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54749 (eval $ac_try) 2>&5
54750 ac_status=$?
54751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54752 (exit $ac_status); }; }; then
54753 eval "$as_ac_var=yes"
54754 else
54755 echo "$as_me: failed program was:" >&5
54756 sed 's/^/| /' conftest.$ac_ext >&5
54758 eval "$as_ac_var=no"
54760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54764 if test `eval echo '${'$as_ac_var'}'` = yes; then
54765 cat >>confdefs.h <<_ACEOF
54766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54767 _ACEOF
54769 else
54770 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
54772 done
54776 for ac_func in __signbit
54778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54779 echo "$as_me:$LINENO: checking for $ac_func" >&5
54780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54781 if eval "test \"\${$as_ac_var+set}\" = set"; then
54782 echo $ECHO_N "(cached) $ECHO_C" >&6
54783 else
54784 if test x$gcc_no_link = xyes; then
54785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54787 { (exit 1); exit 1; }; }
54789 cat >conftest.$ac_ext <<_ACEOF
54790 #line $LINENO "configure"
54791 /* confdefs.h. */
54792 _ACEOF
54793 cat confdefs.h >>conftest.$ac_ext
54794 cat >>conftest.$ac_ext <<_ACEOF
54795 /* end confdefs.h. */
54796 /* System header to define __stub macros and hopefully few prototypes,
54797 which can conflict with char $ac_func (); below.
54798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54799 <limits.h> exists even on freestanding compilers. */
54800 #ifdef __STDC__
54801 # include <limits.h>
54802 #else
54803 # include <assert.h>
54804 #endif
54805 /* Override any gcc2 internal prototype to avoid an error. */
54806 #ifdef __cplusplus
54807 extern "C"
54809 #endif
54810 /* We use char because int might match the return type of a gcc2
54811 builtin and then its argument prototype would still apply. */
54812 char $ac_func ();
54813 /* The GNU C library defines this for functions which it implements
54814 to always fail with ENOSYS. Some functions are actually named
54815 something starting with __ and the normal name is an alias. */
54816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54817 choke me
54818 #else
54819 char (*f) () = $ac_func;
54820 #endif
54821 #ifdef __cplusplus
54823 #endif
54826 main ()
54828 return f != $ac_func;
54830 return 0;
54832 _ACEOF
54833 rm -f conftest.$ac_objext conftest$ac_exeext
54834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54835 (eval $ac_link) 2>&5
54836 ac_status=$?
54837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54838 (exit $ac_status); } &&
54839 { ac_try='test -s conftest$ac_exeext'
54840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54841 (eval $ac_try) 2>&5
54842 ac_status=$?
54843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54844 (exit $ac_status); }; }; then
54845 eval "$as_ac_var=yes"
54846 else
54847 echo "$as_me: failed program was:" >&5
54848 sed 's/^/| /' conftest.$ac_ext >&5
54850 eval "$as_ac_var=no"
54852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54856 if test `eval echo '${'$as_ac_var'}'` = yes; then
54857 cat >>confdefs.h <<_ACEOF
54858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54859 _ACEOF
54861 else
54862 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54864 done
54867 for ac_func in __signbitf
54869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54870 echo "$as_me:$LINENO: checking for $ac_func" >&5
54871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54872 if eval "test \"\${$as_ac_var+set}\" = set"; then
54873 echo $ECHO_N "(cached) $ECHO_C" >&6
54874 else
54875 if test x$gcc_no_link = xyes; then
54876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54878 { (exit 1); exit 1; }; }
54880 cat >conftest.$ac_ext <<_ACEOF
54881 #line $LINENO "configure"
54882 /* confdefs.h. */
54883 _ACEOF
54884 cat confdefs.h >>conftest.$ac_ext
54885 cat >>conftest.$ac_ext <<_ACEOF
54886 /* end confdefs.h. */
54887 /* System header to define __stub macros and hopefully few prototypes,
54888 which can conflict with char $ac_func (); below.
54889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54890 <limits.h> exists even on freestanding compilers. */
54891 #ifdef __STDC__
54892 # include <limits.h>
54893 #else
54894 # include <assert.h>
54895 #endif
54896 /* Override any gcc2 internal prototype to avoid an error. */
54897 #ifdef __cplusplus
54898 extern "C"
54900 #endif
54901 /* We use char because int might match the return type of a gcc2
54902 builtin and then its argument prototype would still apply. */
54903 char $ac_func ();
54904 /* The GNU C library defines this for functions which it implements
54905 to always fail with ENOSYS. Some functions are actually named
54906 something starting with __ and the normal name is an alias. */
54907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54908 choke me
54909 #else
54910 char (*f) () = $ac_func;
54911 #endif
54912 #ifdef __cplusplus
54914 #endif
54917 main ()
54919 return f != $ac_func;
54921 return 0;
54923 _ACEOF
54924 rm -f conftest.$ac_objext conftest$ac_exeext
54925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54926 (eval $ac_link) 2>&5
54927 ac_status=$?
54928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54929 (exit $ac_status); } &&
54930 { ac_try='test -s conftest$ac_exeext'
54931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54932 (eval $ac_try) 2>&5
54933 ac_status=$?
54934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54935 (exit $ac_status); }; }; then
54936 eval "$as_ac_var=yes"
54937 else
54938 echo "$as_me: failed program was:" >&5
54939 sed 's/^/| /' conftest.$ac_ext >&5
54941 eval "$as_ac_var=no"
54943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54947 if test `eval echo '${'$as_ac_var'}'` = yes; then
54948 cat >>confdefs.h <<_ACEOF
54949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54950 _ACEOF
54952 else
54953 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54955 done
54958 if test x$ac_cv_func_copysignl = x"yes"; then
54960 for ac_func in __signbitl
54962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54963 echo "$as_me:$LINENO: checking for $ac_func" >&5
54964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54965 if eval "test \"\${$as_ac_var+set}\" = set"; then
54966 echo $ECHO_N "(cached) $ECHO_C" >&6
54967 else
54968 if test x$gcc_no_link = xyes; then
54969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54971 { (exit 1); exit 1; }; }
54973 cat >conftest.$ac_ext <<_ACEOF
54974 #line $LINENO "configure"
54975 /* confdefs.h. */
54976 _ACEOF
54977 cat confdefs.h >>conftest.$ac_ext
54978 cat >>conftest.$ac_ext <<_ACEOF
54979 /* end confdefs.h. */
54980 /* System header to define __stub macros and hopefully few prototypes,
54981 which can conflict with char $ac_func (); below.
54982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54983 <limits.h> exists even on freestanding compilers. */
54984 #ifdef __STDC__
54985 # include <limits.h>
54986 #else
54987 # include <assert.h>
54988 #endif
54989 /* Override any gcc2 internal prototype to avoid an error. */
54990 #ifdef __cplusplus
54991 extern "C"
54993 #endif
54994 /* We use char because int might match the return type of a gcc2
54995 builtin and then its argument prototype would still apply. */
54996 char $ac_func ();
54997 /* The GNU C library defines this for functions which it implements
54998 to always fail with ENOSYS. Some functions are actually named
54999 something starting with __ and the normal name is an alias. */
55000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55001 choke me
55002 #else
55003 char (*f) () = $ac_func;
55004 #endif
55005 #ifdef __cplusplus
55007 #endif
55010 main ()
55012 return f != $ac_func;
55014 return 0;
55016 _ACEOF
55017 rm -f conftest.$ac_objext conftest$ac_exeext
55018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55019 (eval $ac_link) 2>&5
55020 ac_status=$?
55021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55022 (exit $ac_status); } &&
55023 { ac_try='test -s conftest$ac_exeext'
55024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55025 (eval $ac_try) 2>&5
55026 ac_status=$?
55027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55028 (exit $ac_status); }; }; then
55029 eval "$as_ac_var=yes"
55030 else
55031 echo "$as_me: failed program was:" >&5
55032 sed 's/^/| /' conftest.$ac_ext >&5
55034 eval "$as_ac_var=no"
55036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55040 if test `eval echo '${'$as_ac_var'}'` = yes; then
55041 cat >>confdefs.h <<_ACEOF
55042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55043 _ACEOF
55045 else
55046 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
55048 done
55052 # XXX Review this. Nothing uses it.
55053 if test -n "$LIBMATHOBJS"; then
55054 need_libmath=yes
55059 # Test wchar.h for mbstate_t, which is needed for char_traits and
55060 # others even if wchar_t support is not on.
55061 echo "$as_me:$LINENO: checking for mbstate_t" >&5
55062 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
55063 cat >conftest.$ac_ext <<_ACEOF
55064 #line $LINENO "configure"
55065 /* confdefs.h. */
55066 _ACEOF
55067 cat confdefs.h >>conftest.$ac_ext
55068 cat >>conftest.$ac_ext <<_ACEOF
55069 /* end confdefs.h. */
55070 #include <wchar.h>
55072 main ()
55074 mbstate_t teststate;
55076 return 0;
55078 _ACEOF
55079 rm -f conftest.$ac_objext
55080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55081 (eval $ac_compile) 2>&5
55082 ac_status=$?
55083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55084 (exit $ac_status); } &&
55085 { ac_try='test -s conftest.$ac_objext'
55086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55087 (eval $ac_try) 2>&5
55088 ac_status=$?
55089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55090 (exit $ac_status); }; }; then
55091 have_mbstate_t=yes
55092 else
55093 echo "$as_me: failed program was:" >&5
55094 sed 's/^/| /' conftest.$ac_ext >&5
55096 have_mbstate_t=no
55098 rm -f conftest.$ac_objext conftest.$ac_ext
55099 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
55100 echo "${ECHO_T}$have_mbstate_t" >&6
55101 if test x"$have_mbstate_t" = xyes; then
55102 cat >>confdefs.h <<\_ACEOF
55103 #define HAVE_MBSTATE_T 1
55104 _ACEOF
55108 # Sanity check for existence of ISO C99 headers for extended encoding.
55110 for ac_header in wchar.h
55112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55114 echo "$as_me:$LINENO: checking for $ac_header" >&5
55115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55117 echo $ECHO_N "(cached) $ECHO_C" >&6
55119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55121 else
55122 # Is the header compilable?
55123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55125 cat >conftest.$ac_ext <<_ACEOF
55126 #line $LINENO "configure"
55127 /* confdefs.h. */
55128 _ACEOF
55129 cat confdefs.h >>conftest.$ac_ext
55130 cat >>conftest.$ac_ext <<_ACEOF
55131 /* end confdefs.h. */
55132 $ac_includes_default
55133 #include <$ac_header>
55134 _ACEOF
55135 rm -f conftest.$ac_objext
55136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55137 (eval $ac_compile) 2>&5
55138 ac_status=$?
55139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55140 (exit $ac_status); } &&
55141 { ac_try='test -s conftest.$ac_objext'
55142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55143 (eval $ac_try) 2>&5
55144 ac_status=$?
55145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55146 (exit $ac_status); }; }; then
55147 ac_header_compiler=yes
55148 else
55149 echo "$as_me: failed program was:" >&5
55150 sed 's/^/| /' conftest.$ac_ext >&5
55152 ac_header_compiler=no
55154 rm -f conftest.$ac_objext conftest.$ac_ext
55155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55156 echo "${ECHO_T}$ac_header_compiler" >&6
55158 # Is the header present?
55159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55161 cat >conftest.$ac_ext <<_ACEOF
55162 #line $LINENO "configure"
55163 /* confdefs.h. */
55164 _ACEOF
55165 cat confdefs.h >>conftest.$ac_ext
55166 cat >>conftest.$ac_ext <<_ACEOF
55167 /* end confdefs.h. */
55168 #include <$ac_header>
55169 _ACEOF
55170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55172 ac_status=$?
55173 grep -v '^ *+' conftest.er1 >conftest.err
55174 rm -f conftest.er1
55175 cat conftest.err >&5
55176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55177 (exit $ac_status); } >/dev/null; then
55178 if test -s conftest.err; then
55179 ac_cpp_err=$ac_c_preproc_warn_flag
55180 else
55181 ac_cpp_err=
55183 else
55184 ac_cpp_err=yes
55186 if test -z "$ac_cpp_err"; then
55187 ac_header_preproc=yes
55188 else
55189 echo "$as_me: failed program was:" >&5
55190 sed 's/^/| /' conftest.$ac_ext >&5
55192 ac_header_preproc=no
55194 rm -f conftest.err conftest.$ac_ext
55195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55196 echo "${ECHO_T}$ac_header_preproc" >&6
55198 # So? What about this header?
55199 case $ac_header_compiler:$ac_header_preproc in
55200 yes:no )
55201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55206 cat <<\_ASBOX
55207 ## ------------------------------------ ##
55208 ## Report this to bug-autoconf@gnu.org. ##
55209 ## ------------------------------------ ##
55210 _ASBOX
55212 sed "s/^/$as_me: WARNING: /" >&2
55214 no:yes )
55215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55222 cat <<\_ASBOX
55223 ## ------------------------------------ ##
55224 ## Report this to bug-autoconf@gnu.org. ##
55225 ## ------------------------------------ ##
55226 _ASBOX
55228 sed "s/^/$as_me: WARNING: /" >&2
55230 esac
55231 echo "$as_me:$LINENO: checking for $ac_header" >&5
55232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55234 echo $ECHO_N "(cached) $ECHO_C" >&6
55235 else
55236 eval "$as_ac_Header=$ac_header_preproc"
55238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55243 cat >>confdefs.h <<_ACEOF
55244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55245 _ACEOF
55246 ac_has_wchar_h=yes
55247 else
55248 ac_has_wchar_h=no
55251 done
55254 for ac_header in wctype.h
55256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55258 echo "$as_me:$LINENO: checking for $ac_header" >&5
55259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55261 echo $ECHO_N "(cached) $ECHO_C" >&6
55263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55265 else
55266 # Is the header compilable?
55267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55269 cat >conftest.$ac_ext <<_ACEOF
55270 #line $LINENO "configure"
55271 /* confdefs.h. */
55272 _ACEOF
55273 cat confdefs.h >>conftest.$ac_ext
55274 cat >>conftest.$ac_ext <<_ACEOF
55275 /* end confdefs.h. */
55276 $ac_includes_default
55277 #include <$ac_header>
55278 _ACEOF
55279 rm -f conftest.$ac_objext
55280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55281 (eval $ac_compile) 2>&5
55282 ac_status=$?
55283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55284 (exit $ac_status); } &&
55285 { ac_try='test -s conftest.$ac_objext'
55286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55287 (eval $ac_try) 2>&5
55288 ac_status=$?
55289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55290 (exit $ac_status); }; }; then
55291 ac_header_compiler=yes
55292 else
55293 echo "$as_me: failed program was:" >&5
55294 sed 's/^/| /' conftest.$ac_ext >&5
55296 ac_header_compiler=no
55298 rm -f conftest.$ac_objext conftest.$ac_ext
55299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55300 echo "${ECHO_T}$ac_header_compiler" >&6
55302 # Is the header present?
55303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55305 cat >conftest.$ac_ext <<_ACEOF
55306 #line $LINENO "configure"
55307 /* confdefs.h. */
55308 _ACEOF
55309 cat confdefs.h >>conftest.$ac_ext
55310 cat >>conftest.$ac_ext <<_ACEOF
55311 /* end confdefs.h. */
55312 #include <$ac_header>
55313 _ACEOF
55314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55316 ac_status=$?
55317 grep -v '^ *+' conftest.er1 >conftest.err
55318 rm -f conftest.er1
55319 cat conftest.err >&5
55320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55321 (exit $ac_status); } >/dev/null; then
55322 if test -s conftest.err; then
55323 ac_cpp_err=$ac_c_preproc_warn_flag
55324 else
55325 ac_cpp_err=
55327 else
55328 ac_cpp_err=yes
55330 if test -z "$ac_cpp_err"; then
55331 ac_header_preproc=yes
55332 else
55333 echo "$as_me: failed program was:" >&5
55334 sed 's/^/| /' conftest.$ac_ext >&5
55336 ac_header_preproc=no
55338 rm -f conftest.err conftest.$ac_ext
55339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55340 echo "${ECHO_T}$ac_header_preproc" >&6
55342 # So? What about this header?
55343 case $ac_header_compiler:$ac_header_preproc in
55344 yes:no )
55345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55350 cat <<\_ASBOX
55351 ## ------------------------------------ ##
55352 ## Report this to bug-autoconf@gnu.org. ##
55353 ## ------------------------------------ ##
55354 _ASBOX
55356 sed "s/^/$as_me: WARNING: /" >&2
55358 no:yes )
55359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55366 cat <<\_ASBOX
55367 ## ------------------------------------ ##
55368 ## Report this to bug-autoconf@gnu.org. ##
55369 ## ------------------------------------ ##
55370 _ASBOX
55372 sed "s/^/$as_me: WARNING: /" >&2
55374 esac
55375 echo "$as_me:$LINENO: checking for $ac_header" >&5
55376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55378 echo $ECHO_N "(cached) $ECHO_C" >&6
55379 else
55380 eval "$as_ac_Header=$ac_header_preproc"
55382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55387 cat >>confdefs.h <<_ACEOF
55388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55389 _ACEOF
55390 ac_has_wctype_h=yes
55391 else
55392 ac_has_wctype_h=no
55395 done
55398 # Only continue checking if the ISO C99 headers exist and support is on.
55399 if test x"$ac_has_wchar_h" = xyes &&
55400 test x"$ac_has_wctype_h" = xyes &&
55401 test x"$enable_c_mbchar" != xno; then
55403 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
55404 # numeric_limits can instantiate type_traits<wchar_t>
55405 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
55406 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
55407 cat >conftest.$ac_ext <<_ACEOF
55408 #line $LINENO "configure"
55409 /* confdefs.h. */
55410 _ACEOF
55411 cat confdefs.h >>conftest.$ac_ext
55412 cat >>conftest.$ac_ext <<_ACEOF
55413 /* end confdefs.h. */
55414 #include <wchar.h>
55416 main ()
55418 int i = WCHAR_MIN; int j = WCHAR_MAX;
55420 return 0;
55422 _ACEOF
55423 rm -f conftest.$ac_objext
55424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55425 (eval $ac_compile) 2>&5
55426 ac_status=$?
55427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55428 (exit $ac_status); } &&
55429 { ac_try='test -s conftest.$ac_objext'
55430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55431 (eval $ac_try) 2>&5
55432 ac_status=$?
55433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55434 (exit $ac_status); }; }; then
55435 has_wchar_minmax=yes
55436 else
55437 echo "$as_me: failed program was:" >&5
55438 sed 's/^/| /' conftest.$ac_ext >&5
55440 has_wchar_minmax=no
55442 rm -f conftest.$ac_objext conftest.$ac_ext
55443 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
55444 echo "${ECHO_T}$has_wchar_minmax" >&6
55446 # Test wchar.h for WEOF, which is what we use to determine whether
55447 # to specialize for char_traits<wchar_t> or not.
55448 echo "$as_me:$LINENO: checking for WEOF" >&5
55449 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
55450 cat >conftest.$ac_ext <<_ACEOF
55451 #line $LINENO "configure"
55452 /* confdefs.h. */
55453 _ACEOF
55454 cat confdefs.h >>conftest.$ac_ext
55455 cat >>conftest.$ac_ext <<_ACEOF
55456 /* end confdefs.h. */
55458 #include <wchar.h>
55459 #include <stddef.h>
55461 main ()
55463 wint_t i = WEOF;
55465 return 0;
55467 _ACEOF
55468 rm -f conftest.$ac_objext
55469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55470 (eval $ac_compile) 2>&5
55471 ac_status=$?
55472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55473 (exit $ac_status); } &&
55474 { ac_try='test -s conftest.$ac_objext'
55475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55476 (eval $ac_try) 2>&5
55477 ac_status=$?
55478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55479 (exit $ac_status); }; }; then
55480 has_weof=yes
55481 else
55482 echo "$as_me: failed program was:" >&5
55483 sed 's/^/| /' conftest.$ac_ext >&5
55485 has_weof=no
55487 rm -f conftest.$ac_objext conftest.$ac_ext
55488 echo "$as_me:$LINENO: result: $has_weof" >&5
55489 echo "${ECHO_T}$has_weof" >&6
55491 # Tests for wide character functions used in char_traits<wchar_t>.
55492 ac_wfuncs=yes
55499 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
55501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55502 echo "$as_me:$LINENO: checking for $ac_func" >&5
55503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55504 if eval "test \"\${$as_ac_var+set}\" = set"; then
55505 echo $ECHO_N "(cached) $ECHO_C" >&6
55506 else
55507 if test x$gcc_no_link = xyes; then
55508 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55510 { (exit 1); exit 1; }; }
55512 cat >conftest.$ac_ext <<_ACEOF
55513 #line $LINENO "configure"
55514 /* confdefs.h. */
55515 _ACEOF
55516 cat confdefs.h >>conftest.$ac_ext
55517 cat >>conftest.$ac_ext <<_ACEOF
55518 /* end confdefs.h. */
55519 /* System header to define __stub macros and hopefully few prototypes,
55520 which can conflict with char $ac_func (); below.
55521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55522 <limits.h> exists even on freestanding compilers. */
55523 #ifdef __STDC__
55524 # include <limits.h>
55525 #else
55526 # include <assert.h>
55527 #endif
55528 /* Override any gcc2 internal prototype to avoid an error. */
55529 #ifdef __cplusplus
55530 extern "C"
55532 #endif
55533 /* We use char because int might match the return type of a gcc2
55534 builtin and then its argument prototype would still apply. */
55535 char $ac_func ();
55536 /* The GNU C library defines this for functions which it implements
55537 to always fail with ENOSYS. Some functions are actually named
55538 something starting with __ and the normal name is an alias. */
55539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55540 choke me
55541 #else
55542 char (*f) () = $ac_func;
55543 #endif
55544 #ifdef __cplusplus
55546 #endif
55549 main ()
55551 return f != $ac_func;
55553 return 0;
55555 _ACEOF
55556 rm -f conftest.$ac_objext conftest$ac_exeext
55557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55558 (eval $ac_link) 2>&5
55559 ac_status=$?
55560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55561 (exit $ac_status); } &&
55562 { ac_try='test -s conftest$ac_exeext'
55563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55564 (eval $ac_try) 2>&5
55565 ac_status=$?
55566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55567 (exit $ac_status); }; }; then
55568 eval "$as_ac_var=yes"
55569 else
55570 echo "$as_me: failed program was:" >&5
55571 sed 's/^/| /' conftest.$ac_ext >&5
55573 eval "$as_ac_var=no"
55575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55579 if test `eval echo '${'$as_ac_var'}'` = yes; then
55580 cat >>confdefs.h <<_ACEOF
55581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55582 _ACEOF
55584 else
55585 ac_wfuncs=no
55587 done
55590 # Checks for names injected into std:: by the c_std headers.
55641 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
55642 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
55643 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
55644 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
55645 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
55646 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
55648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55649 echo "$as_me:$LINENO: checking for $ac_func" >&5
55650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55651 if eval "test \"\${$as_ac_var+set}\" = set"; then
55652 echo $ECHO_N "(cached) $ECHO_C" >&6
55653 else
55654 if test x$gcc_no_link = xyes; then
55655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55657 { (exit 1); exit 1; }; }
55659 cat >conftest.$ac_ext <<_ACEOF
55660 #line $LINENO "configure"
55661 /* confdefs.h. */
55662 _ACEOF
55663 cat confdefs.h >>conftest.$ac_ext
55664 cat >>conftest.$ac_ext <<_ACEOF
55665 /* end confdefs.h. */
55666 /* System header to define __stub macros and hopefully few prototypes,
55667 which can conflict with char $ac_func (); below.
55668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55669 <limits.h> exists even on freestanding compilers. */
55670 #ifdef __STDC__
55671 # include <limits.h>
55672 #else
55673 # include <assert.h>
55674 #endif
55675 /* Override any gcc2 internal prototype to avoid an error. */
55676 #ifdef __cplusplus
55677 extern "C"
55679 #endif
55680 /* We use char because int might match the return type of a gcc2
55681 builtin and then its argument prototype would still apply. */
55682 char $ac_func ();
55683 /* The GNU C library defines this for functions which it implements
55684 to always fail with ENOSYS. Some functions are actually named
55685 something starting with __ and the normal name is an alias. */
55686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55687 choke me
55688 #else
55689 char (*f) () = $ac_func;
55690 #endif
55691 #ifdef __cplusplus
55693 #endif
55696 main ()
55698 return f != $ac_func;
55700 return 0;
55702 _ACEOF
55703 rm -f conftest.$ac_objext conftest$ac_exeext
55704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55705 (eval $ac_link) 2>&5
55706 ac_status=$?
55707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55708 (exit $ac_status); } &&
55709 { ac_try='test -s conftest$ac_exeext'
55710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55711 (eval $ac_try) 2>&5
55712 ac_status=$?
55713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55714 (exit $ac_status); }; }; then
55715 eval "$as_ac_var=yes"
55716 else
55717 echo "$as_me: failed program was:" >&5
55718 sed 's/^/| /' conftest.$ac_ext >&5
55720 eval "$as_ac_var=no"
55722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55726 if test `eval echo '${'$as_ac_var'}'` = yes; then
55727 cat >>confdefs.h <<_ACEOF
55728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55729 _ACEOF
55731 else
55732 ac_wfuncs=no
55734 done
55737 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55738 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55739 if test x"$has_weof" = xyes &&
55740 test x"$has_wchar_minmax" = xyes &&
55741 test x"$ac_wfuncs" = xyes;
55742 then
55743 ac_isoC99_wchar_t=yes
55744 else
55745 ac_isoC99_wchar_t=no
55747 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55748 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55750 # Use iconv for wchar_t to char conversions. As such, check for
55751 # X/Open Portability Guide, version 2 features (XPG2).
55752 if test "${ac_cv_header_iconv_h+set}" = set; then
55753 echo "$as_me:$LINENO: checking for iconv.h" >&5
55754 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55755 if test "${ac_cv_header_iconv_h+set}" = set; then
55756 echo $ECHO_N "(cached) $ECHO_C" >&6
55758 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55759 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55760 else
55761 # Is the header compilable?
55762 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55763 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55764 cat >conftest.$ac_ext <<_ACEOF
55765 #line $LINENO "configure"
55766 /* confdefs.h. */
55767 _ACEOF
55768 cat confdefs.h >>conftest.$ac_ext
55769 cat >>conftest.$ac_ext <<_ACEOF
55770 /* end confdefs.h. */
55771 $ac_includes_default
55772 #include <iconv.h>
55773 _ACEOF
55774 rm -f conftest.$ac_objext
55775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55776 (eval $ac_compile) 2>&5
55777 ac_status=$?
55778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55779 (exit $ac_status); } &&
55780 { ac_try='test -s conftest.$ac_objext'
55781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55782 (eval $ac_try) 2>&5
55783 ac_status=$?
55784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55785 (exit $ac_status); }; }; then
55786 ac_header_compiler=yes
55787 else
55788 echo "$as_me: failed program was:" >&5
55789 sed 's/^/| /' conftest.$ac_ext >&5
55791 ac_header_compiler=no
55793 rm -f conftest.$ac_objext conftest.$ac_ext
55794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55795 echo "${ECHO_T}$ac_header_compiler" >&6
55797 # Is the header present?
55798 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55799 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55800 cat >conftest.$ac_ext <<_ACEOF
55801 #line $LINENO "configure"
55802 /* confdefs.h. */
55803 _ACEOF
55804 cat confdefs.h >>conftest.$ac_ext
55805 cat >>conftest.$ac_ext <<_ACEOF
55806 /* end confdefs.h. */
55807 #include <iconv.h>
55808 _ACEOF
55809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55811 ac_status=$?
55812 grep -v '^ *+' conftest.er1 >conftest.err
55813 rm -f conftest.er1
55814 cat conftest.err >&5
55815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55816 (exit $ac_status); } >/dev/null; then
55817 if test -s conftest.err; then
55818 ac_cpp_err=$ac_c_preproc_warn_flag
55819 else
55820 ac_cpp_err=
55822 else
55823 ac_cpp_err=yes
55825 if test -z "$ac_cpp_err"; then
55826 ac_header_preproc=yes
55827 else
55828 echo "$as_me: failed program was:" >&5
55829 sed 's/^/| /' conftest.$ac_ext >&5
55831 ac_header_preproc=no
55833 rm -f conftest.err conftest.$ac_ext
55834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55835 echo "${ECHO_T}$ac_header_preproc" >&6
55837 # So? What about this header?
55838 case $ac_header_compiler:$ac_header_preproc in
55839 yes:no )
55840 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55841 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55842 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55843 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55845 cat <<\_ASBOX
55846 ## ------------------------------------ ##
55847 ## Report this to bug-autoconf@gnu.org. ##
55848 ## ------------------------------------ ##
55849 _ASBOX
55851 sed "s/^/$as_me: WARNING: /" >&2
55853 no:yes )
55854 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55855 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55856 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55857 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55858 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55859 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55861 cat <<\_ASBOX
55862 ## ------------------------------------ ##
55863 ## Report this to bug-autoconf@gnu.org. ##
55864 ## ------------------------------------ ##
55865 _ASBOX
55867 sed "s/^/$as_me: WARNING: /" >&2
55869 esac
55870 echo "$as_me:$LINENO: checking for iconv.h" >&5
55871 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55872 if test "${ac_cv_header_iconv_h+set}" = set; then
55873 echo $ECHO_N "(cached) $ECHO_C" >&6
55874 else
55875 ac_cv_header_iconv_h=$ac_header_preproc
55877 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55878 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55881 if test $ac_cv_header_iconv_h = yes; then
55882 ac_has_iconv_h=yes
55883 else
55884 ac_has_iconv_h=no
55888 if test "${ac_cv_header_langinfo_h+set}" = set; then
55889 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55890 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55891 if test "${ac_cv_header_langinfo_h+set}" = set; then
55892 echo $ECHO_N "(cached) $ECHO_C" >&6
55894 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55895 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55896 else
55897 # Is the header compilable?
55898 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55899 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55900 cat >conftest.$ac_ext <<_ACEOF
55901 #line $LINENO "configure"
55902 /* confdefs.h. */
55903 _ACEOF
55904 cat confdefs.h >>conftest.$ac_ext
55905 cat >>conftest.$ac_ext <<_ACEOF
55906 /* end confdefs.h. */
55907 $ac_includes_default
55908 #include <langinfo.h>
55909 _ACEOF
55910 rm -f conftest.$ac_objext
55911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55912 (eval $ac_compile) 2>&5
55913 ac_status=$?
55914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55915 (exit $ac_status); } &&
55916 { ac_try='test -s conftest.$ac_objext'
55917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55918 (eval $ac_try) 2>&5
55919 ac_status=$?
55920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55921 (exit $ac_status); }; }; then
55922 ac_header_compiler=yes
55923 else
55924 echo "$as_me: failed program was:" >&5
55925 sed 's/^/| /' conftest.$ac_ext >&5
55927 ac_header_compiler=no
55929 rm -f conftest.$ac_objext conftest.$ac_ext
55930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55931 echo "${ECHO_T}$ac_header_compiler" >&6
55933 # Is the header present?
55934 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55935 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55936 cat >conftest.$ac_ext <<_ACEOF
55937 #line $LINENO "configure"
55938 /* confdefs.h. */
55939 _ACEOF
55940 cat confdefs.h >>conftest.$ac_ext
55941 cat >>conftest.$ac_ext <<_ACEOF
55942 /* end confdefs.h. */
55943 #include <langinfo.h>
55944 _ACEOF
55945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55947 ac_status=$?
55948 grep -v '^ *+' conftest.er1 >conftest.err
55949 rm -f conftest.er1
55950 cat conftest.err >&5
55951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55952 (exit $ac_status); } >/dev/null; then
55953 if test -s conftest.err; then
55954 ac_cpp_err=$ac_c_preproc_warn_flag
55955 else
55956 ac_cpp_err=
55958 else
55959 ac_cpp_err=yes
55961 if test -z "$ac_cpp_err"; then
55962 ac_header_preproc=yes
55963 else
55964 echo "$as_me: failed program was:" >&5
55965 sed 's/^/| /' conftest.$ac_ext >&5
55967 ac_header_preproc=no
55969 rm -f conftest.err conftest.$ac_ext
55970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55971 echo "${ECHO_T}$ac_header_preproc" >&6
55973 # So? What about this header?
55974 case $ac_header_compiler:$ac_header_preproc in
55975 yes:no )
55976 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55977 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55978 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55979 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55981 cat <<\_ASBOX
55982 ## ------------------------------------ ##
55983 ## Report this to bug-autoconf@gnu.org. ##
55984 ## ------------------------------------ ##
55985 _ASBOX
55987 sed "s/^/$as_me: WARNING: /" >&2
55989 no:yes )
55990 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55991 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55992 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55993 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55994 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55995 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55997 cat <<\_ASBOX
55998 ## ------------------------------------ ##
55999 ## Report this to bug-autoconf@gnu.org. ##
56000 ## ------------------------------------ ##
56001 _ASBOX
56003 sed "s/^/$as_me: WARNING: /" >&2
56005 esac
56006 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56007 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56008 if test "${ac_cv_header_langinfo_h+set}" = set; then
56009 echo $ECHO_N "(cached) $ECHO_C" >&6
56010 else
56011 ac_cv_header_langinfo_h=$ac_header_preproc
56013 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56014 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56017 if test $ac_cv_header_langinfo_h = yes; then
56018 ac_has_langinfo_h=yes
56019 else
56020 ac_has_langinfo_h=no
56025 # Check for existence of libiconv.a providing XPG2 wchar_t support.
56026 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
56027 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
56028 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
56029 echo $ECHO_N "(cached) $ECHO_C" >&6
56030 else
56031 ac_check_lib_save_LIBS=$LIBS
56032 LIBS="-liconv $LIBS"
56033 if test x$gcc_no_link = xyes; then
56034 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56036 { (exit 1); exit 1; }; }
56038 cat >conftest.$ac_ext <<_ACEOF
56039 #line $LINENO "configure"
56040 /* confdefs.h. */
56041 _ACEOF
56042 cat confdefs.h >>conftest.$ac_ext
56043 cat >>conftest.$ac_ext <<_ACEOF
56044 /* end confdefs.h. */
56046 /* Override any gcc2 internal prototype to avoid an error. */
56047 #ifdef __cplusplus
56048 extern "C"
56049 #endif
56050 /* We use char because int might match the return type of a gcc2
56051 builtin and then its argument prototype would still apply. */
56052 char iconv ();
56054 main ()
56056 iconv ();
56058 return 0;
56060 _ACEOF
56061 rm -f conftest.$ac_objext conftest$ac_exeext
56062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56063 (eval $ac_link) 2>&5
56064 ac_status=$?
56065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56066 (exit $ac_status); } &&
56067 { ac_try='test -s conftest$ac_exeext'
56068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56069 (eval $ac_try) 2>&5
56070 ac_status=$?
56071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56072 (exit $ac_status); }; }; then
56073 ac_cv_lib_iconv_iconv=yes
56074 else
56075 echo "$as_me: failed program was:" >&5
56076 sed 's/^/| /' conftest.$ac_ext >&5
56078 ac_cv_lib_iconv_iconv=no
56080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56081 LIBS=$ac_check_lib_save_LIBS
56083 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
56084 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
56085 if test $ac_cv_lib_iconv_iconv = yes; then
56086 libiconv="-liconv"
56089 ac_save_LIBS="$LIBS"
56090 LIBS="$LIBS $libiconv"
56096 for ac_func in iconv_open iconv_close iconv nl_langinfo
56098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56099 echo "$as_me:$LINENO: checking for $ac_func" >&5
56100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56101 if eval "test \"\${$as_ac_var+set}\" = set"; then
56102 echo $ECHO_N "(cached) $ECHO_C" >&6
56103 else
56104 if test x$gcc_no_link = xyes; then
56105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56107 { (exit 1); exit 1; }; }
56109 cat >conftest.$ac_ext <<_ACEOF
56110 #line $LINENO "configure"
56111 /* confdefs.h. */
56112 _ACEOF
56113 cat confdefs.h >>conftest.$ac_ext
56114 cat >>conftest.$ac_ext <<_ACEOF
56115 /* end confdefs.h. */
56116 /* System header to define __stub macros and hopefully few prototypes,
56117 which can conflict with char $ac_func (); below.
56118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56119 <limits.h> exists even on freestanding compilers. */
56120 #ifdef __STDC__
56121 # include <limits.h>
56122 #else
56123 # include <assert.h>
56124 #endif
56125 /* Override any gcc2 internal prototype to avoid an error. */
56126 #ifdef __cplusplus
56127 extern "C"
56129 #endif
56130 /* We use char because int might match the return type of a gcc2
56131 builtin and then its argument prototype would still apply. */
56132 char $ac_func ();
56133 /* The GNU C library defines this for functions which it implements
56134 to always fail with ENOSYS. Some functions are actually named
56135 something starting with __ and the normal name is an alias. */
56136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56137 choke me
56138 #else
56139 char (*f) () = $ac_func;
56140 #endif
56141 #ifdef __cplusplus
56143 #endif
56146 main ()
56148 return f != $ac_func;
56150 return 0;
56152 _ACEOF
56153 rm -f conftest.$ac_objext conftest$ac_exeext
56154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56155 (eval $ac_link) 2>&5
56156 ac_status=$?
56157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56158 (exit $ac_status); } &&
56159 { ac_try='test -s conftest$ac_exeext'
56160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56161 (eval $ac_try) 2>&5
56162 ac_status=$?
56163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56164 (exit $ac_status); }; }; then
56165 eval "$as_ac_var=yes"
56166 else
56167 echo "$as_me: failed program was:" >&5
56168 sed 's/^/| /' conftest.$ac_ext >&5
56170 eval "$as_ac_var=no"
56172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56176 if test `eval echo '${'$as_ac_var'}'` = yes; then
56177 cat >>confdefs.h <<_ACEOF
56178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56179 _ACEOF
56180 ac_XPG2funcs=yes
56181 else
56182 ac_XPG2funcs=no
56184 done
56187 LIBS="$ac_save_LIBS"
56189 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
56190 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
56191 if test x"$ac_has_iconv_h" = xyes &&
56192 test x"$ac_has_langinfo_h" = xyes &&
56193 test x"$ac_XPG2funcs" = xyes;
56194 then
56195 ac_XPG2_wchar_t=yes
56196 else
56197 ac_XPG2_wchar_t=no
56199 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
56200 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
56202 # At the moment, only enable wchar_t specializations if all the
56203 # above support is present.
56204 if test x"$ac_isoC99_wchar_t" = xyes &&
56205 test x"$ac_XPG2_wchar_t" = xyes;
56206 then
56207 cat >>confdefs.h <<\_ACEOF
56208 #define _GLIBCXX_USE_WCHAR_T 1
56209 _ACEOF
56211 enable_wchar_t=yes
56214 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
56215 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
56216 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
56217 echo "${ECHO_T}$enable_wchar_t" >&6
56219 cat >>confdefs.h <<\_ACEOF
56220 #define HAVE_COPYSIGN 1
56221 _ACEOF
56223 cat >>confdefs.h <<\_ACEOF
56224 #define HAVE_COPYSIGNF 1
56225 _ACEOF
56227 cat >>confdefs.h <<\_ACEOF
56228 #define HAVE_FINITEF 1
56229 _ACEOF
56231 cat >>confdefs.h <<\_ACEOF
56232 #define HAVE_FINITE 1
56233 _ACEOF
56235 cat >>confdefs.h <<\_ACEOF
56236 #define HAVE_FREXPF 1
56237 _ACEOF
56239 cat >>confdefs.h <<\_ACEOF
56240 #define HAVE_HYPOTF 1
56241 _ACEOF
56243 cat >>confdefs.h <<\_ACEOF
56244 #define HAVE_ISINF 1
56245 _ACEOF
56247 cat >>confdefs.h <<\_ACEOF
56248 #define HAVE_ISINFF 1
56249 _ACEOF
56251 cat >>confdefs.h <<\_ACEOF
56252 #define HAVE_ISNAN 1
56253 _ACEOF
56255 cat >>confdefs.h <<\_ACEOF
56256 #define HAVE_ISNANF 1
56257 _ACEOF
56259 if test x"long_double_math_on_this_cpu" = x"yes"; then
56260 cat >>confdefs.h <<\_ACEOF
56261 #define HAVE_FINITEL 1
56262 _ACEOF
56264 cat >>confdefs.h <<\_ACEOF
56265 #define HAVE_ISINFL 1
56266 _ACEOF
56268 cat >>confdefs.h <<\_ACEOF
56269 #define HAVE_ISNANL 1
56270 _ACEOF
56274 *-qnx6.1* | *-qnx6.2*)
56275 #os_include_dir="os/qnx/qnx6.1"
56276 SECTION_FLAGS='-ffunction-sections -fdata-sections'
56279 # If we're not using GNU ld, then there's no point in even trying these
56280 # tests. Check for that first. We should have already tested for gld
56281 # by now (in libtool), but require it now just to be safe...
56282 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
56283 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
56287 # The name set by libtool depends on the version of libtool. Shame on us
56288 # for depending on an impl detail, but c'est la vie. Older versions used
56289 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
56290 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
56291 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
56292 # set (hence we're using an older libtool), then set it.
56293 if test x${with_gnu_ld+set} != xset; then
56294 if test x${ac_cv_prog_gnu_ld+set} != xset; then
56295 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
56296 with_gnu_ld=no
56297 else
56298 with_gnu_ld=$ac_cv_prog_gnu_ld
56302 # Start by getting the version number. I think the libtool test already
56303 # does some of this, but throws away the result.
56305 ldver=`$LD --version 2>/dev/null | head -1 | \
56306 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56308 glibcxx_gnu_ld_version=`echo $ldver | \
56309 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56311 # Set --gc-sections.
56312 if test "$with_gnu_ld" = "notbroken"; then
56313 # GNU ld it is! Joy and bunny rabbits!
56315 # All these tests are for C++; save the language and the compiler flags.
56316 # Need to do this so that g++ won't try to link in libstdc++
56317 ac_test_CFLAGS="${CFLAGS+set}"
56318 ac_save_CFLAGS="$CFLAGS"
56319 CFLAGS='-x c++ -Wl,--gc-sections'
56321 # Check for -Wl,--gc-sections
56322 # XXX This test is broken at the moment, as symbols required for linking
56323 # are now in libsupc++ (not built yet). In addition, this test has
56324 # cored on solaris in the past. In addition, --gc-sections doesn't
56325 # really work at the moment (keeps on discarding used sections, first
56326 # .eh_frame and now some of the glibc sections for iconv).
56327 # Bzzzzt. Thanks for playing, maybe next time.
56328 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56329 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56330 if test "$cross_compiling" = yes; then
56331 ac_sectionLDflags=yes
56332 else
56333 cat >conftest.$ac_ext <<_ACEOF
56334 #line $LINENO "configure"
56335 /* confdefs.h. */
56336 _ACEOF
56337 cat confdefs.h >>conftest.$ac_ext
56338 cat >>conftest.$ac_ext <<_ACEOF
56339 /* end confdefs.h. */
56341 int main(void)
56343 try { throw 1; }
56344 catch (...) { };
56345 return 0;
56348 _ACEOF
56349 rm -f conftest$ac_exeext
56350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56351 (eval $ac_link) 2>&5
56352 ac_status=$?
56353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56356 (eval $ac_try) 2>&5
56357 ac_status=$?
56358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56359 (exit $ac_status); }; }; then
56360 ac_sectionLDflags=yes
56361 else
56362 echo "$as_me: program exited with status $ac_status" >&5
56363 echo "$as_me: failed program was:" >&5
56364 sed 's/^/| /' conftest.$ac_ext >&5
56366 ( exit $ac_status )
56367 ac_sectionLDflags=no
56369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56371 if test "$ac_test_CFLAGS" = set; then
56372 CFLAGS="$ac_save_CFLAGS"
56373 else
56374 # this is the suspicious part
56375 CFLAGS=''
56377 if test "$ac_sectionLDflags" = "yes"; then
56378 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56380 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56381 echo "${ECHO_T}$ac_sectionLDflags" >&6
56384 # Set linker optimization flags.
56385 if test x"$with_gnu_ld" = x"yes"; then
56386 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56394 echo "$as_me:$LINENO: checking for main in -lm" >&5
56395 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56396 if test "${ac_cv_lib_m_main+set}" = set; then
56397 echo $ECHO_N "(cached) $ECHO_C" >&6
56398 else
56399 ac_check_lib_save_LIBS=$LIBS
56400 LIBS="-lm $LIBS"
56401 if test x$gcc_no_link = xyes; then
56402 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56403 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56404 { (exit 1); exit 1; }; }
56406 cat >conftest.$ac_ext <<_ACEOF
56407 #line $LINENO "configure"
56408 /* confdefs.h. */
56409 _ACEOF
56410 cat confdefs.h >>conftest.$ac_ext
56411 cat >>conftest.$ac_ext <<_ACEOF
56412 /* end confdefs.h. */
56416 main ()
56418 main ();
56420 return 0;
56422 _ACEOF
56423 rm -f conftest.$ac_objext conftest$ac_exeext
56424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56425 (eval $ac_link) 2>&5
56426 ac_status=$?
56427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56428 (exit $ac_status); } &&
56429 { ac_try='test -s conftest$ac_exeext'
56430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56431 (eval $ac_try) 2>&5
56432 ac_status=$?
56433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56434 (exit $ac_status); }; }; then
56435 ac_cv_lib_m_main=yes
56436 else
56437 echo "$as_me: failed program was:" >&5
56438 sed 's/^/| /' conftest.$ac_ext >&5
56440 ac_cv_lib_m_main=no
56442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56443 LIBS=$ac_check_lib_save_LIBS
56445 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56446 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56447 if test $ac_cv_lib_m_main = yes; then
56448 cat >>confdefs.h <<_ACEOF
56449 #define HAVE_LIBM 1
56450 _ACEOF
56452 LIBS="-lm $LIBS"
56458 for ac_func in nan copysignf
56460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56461 echo "$as_me:$LINENO: checking for $ac_func" >&5
56462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56463 if eval "test \"\${$as_ac_var+set}\" = set"; then
56464 echo $ECHO_N "(cached) $ECHO_C" >&6
56465 else
56466 if test x$gcc_no_link = xyes; then
56467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56469 { (exit 1); exit 1; }; }
56471 cat >conftest.$ac_ext <<_ACEOF
56472 #line $LINENO "configure"
56473 /* confdefs.h. */
56474 _ACEOF
56475 cat confdefs.h >>conftest.$ac_ext
56476 cat >>conftest.$ac_ext <<_ACEOF
56477 /* end confdefs.h. */
56478 /* System header to define __stub macros and hopefully few prototypes,
56479 which can conflict with char $ac_func (); below.
56480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56481 <limits.h> exists even on freestanding compilers. */
56482 #ifdef __STDC__
56483 # include <limits.h>
56484 #else
56485 # include <assert.h>
56486 #endif
56487 /* Override any gcc2 internal prototype to avoid an error. */
56488 #ifdef __cplusplus
56489 extern "C"
56491 #endif
56492 /* We use char because int might match the return type of a gcc2
56493 builtin and then its argument prototype would still apply. */
56494 char $ac_func ();
56495 /* The GNU C library defines this for functions which it implements
56496 to always fail with ENOSYS. Some functions are actually named
56497 something starting with __ and the normal name is an alias. */
56498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56499 choke me
56500 #else
56501 char (*f) () = $ac_func;
56502 #endif
56503 #ifdef __cplusplus
56505 #endif
56508 main ()
56510 return f != $ac_func;
56512 return 0;
56514 _ACEOF
56515 rm -f conftest.$ac_objext conftest$ac_exeext
56516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56517 (eval $ac_link) 2>&5
56518 ac_status=$?
56519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56520 (exit $ac_status); } &&
56521 { ac_try='test -s conftest$ac_exeext'
56522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56523 (eval $ac_try) 2>&5
56524 ac_status=$?
56525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56526 (exit $ac_status); }; }; then
56527 eval "$as_ac_var=yes"
56528 else
56529 echo "$as_me: failed program was:" >&5
56530 sed 's/^/| /' conftest.$ac_ext >&5
56532 eval "$as_ac_var=no"
56534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56538 if test `eval echo '${'$as_ac_var'}'` = yes; then
56539 cat >>confdefs.h <<_ACEOF
56540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56541 _ACEOF
56543 else
56544 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56546 done
56550 for ac_func in __signbit
56552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56553 echo "$as_me:$LINENO: checking for $ac_func" >&5
56554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56555 if eval "test \"\${$as_ac_var+set}\" = set"; then
56556 echo $ECHO_N "(cached) $ECHO_C" >&6
56557 else
56558 if test x$gcc_no_link = xyes; then
56559 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56561 { (exit 1); exit 1; }; }
56563 cat >conftest.$ac_ext <<_ACEOF
56564 #line $LINENO "configure"
56565 /* confdefs.h. */
56566 _ACEOF
56567 cat confdefs.h >>conftest.$ac_ext
56568 cat >>conftest.$ac_ext <<_ACEOF
56569 /* end confdefs.h. */
56570 /* System header to define __stub macros and hopefully few prototypes,
56571 which can conflict with char $ac_func (); below.
56572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56573 <limits.h> exists even on freestanding compilers. */
56574 #ifdef __STDC__
56575 # include <limits.h>
56576 #else
56577 # include <assert.h>
56578 #endif
56579 /* Override any gcc2 internal prototype to avoid an error. */
56580 #ifdef __cplusplus
56581 extern "C"
56583 #endif
56584 /* We use char because int might match the return type of a gcc2
56585 builtin and then its argument prototype would still apply. */
56586 char $ac_func ();
56587 /* The GNU C library defines this for functions which it implements
56588 to always fail with ENOSYS. Some functions are actually named
56589 something starting with __ and the normal name is an alias. */
56590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56591 choke me
56592 #else
56593 char (*f) () = $ac_func;
56594 #endif
56595 #ifdef __cplusplus
56597 #endif
56600 main ()
56602 return f != $ac_func;
56604 return 0;
56606 _ACEOF
56607 rm -f conftest.$ac_objext conftest$ac_exeext
56608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56609 (eval $ac_link) 2>&5
56610 ac_status=$?
56611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56612 (exit $ac_status); } &&
56613 { ac_try='test -s conftest$ac_exeext'
56614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56615 (eval $ac_try) 2>&5
56616 ac_status=$?
56617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56618 (exit $ac_status); }; }; then
56619 eval "$as_ac_var=yes"
56620 else
56621 echo "$as_me: failed program was:" >&5
56622 sed 's/^/| /' conftest.$ac_ext >&5
56624 eval "$as_ac_var=no"
56626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56630 if test `eval echo '${'$as_ac_var'}'` = yes; then
56631 cat >>confdefs.h <<_ACEOF
56632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56633 _ACEOF
56635 else
56636 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56638 done
56641 for ac_func in __signbitf
56643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56644 echo "$as_me:$LINENO: checking for $ac_func" >&5
56645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56646 if eval "test \"\${$as_ac_var+set}\" = set"; then
56647 echo $ECHO_N "(cached) $ECHO_C" >&6
56648 else
56649 if test x$gcc_no_link = xyes; then
56650 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56652 { (exit 1); exit 1; }; }
56654 cat >conftest.$ac_ext <<_ACEOF
56655 #line $LINENO "configure"
56656 /* confdefs.h. */
56657 _ACEOF
56658 cat confdefs.h >>conftest.$ac_ext
56659 cat >>conftest.$ac_ext <<_ACEOF
56660 /* end confdefs.h. */
56661 /* System header to define __stub macros and hopefully few prototypes,
56662 which can conflict with char $ac_func (); below.
56663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56664 <limits.h> exists even on freestanding compilers. */
56665 #ifdef __STDC__
56666 # include <limits.h>
56667 #else
56668 # include <assert.h>
56669 #endif
56670 /* Override any gcc2 internal prototype to avoid an error. */
56671 #ifdef __cplusplus
56672 extern "C"
56674 #endif
56675 /* We use char because int might match the return type of a gcc2
56676 builtin and then its argument prototype would still apply. */
56677 char $ac_func ();
56678 /* The GNU C library defines this for functions which it implements
56679 to always fail with ENOSYS. Some functions are actually named
56680 something starting with __ and the normal name is an alias. */
56681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56682 choke me
56683 #else
56684 char (*f) () = $ac_func;
56685 #endif
56686 #ifdef __cplusplus
56688 #endif
56691 main ()
56693 return f != $ac_func;
56695 return 0;
56697 _ACEOF
56698 rm -f conftest.$ac_objext conftest$ac_exeext
56699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56700 (eval $ac_link) 2>&5
56701 ac_status=$?
56702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56703 (exit $ac_status); } &&
56704 { ac_try='test -s conftest$ac_exeext'
56705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56706 (eval $ac_try) 2>&5
56707 ac_status=$?
56708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56709 (exit $ac_status); }; }; then
56710 eval "$as_ac_var=yes"
56711 else
56712 echo "$as_me: failed program was:" >&5
56713 sed 's/^/| /' conftest.$ac_ext >&5
56715 eval "$as_ac_var=no"
56717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56721 if test `eval echo '${'$as_ac_var'}'` = yes; then
56722 cat >>confdefs.h <<_ACEOF
56723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56724 _ACEOF
56726 else
56727 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56729 done
56732 if test x$ac_cv_func_copysignl = x"yes"; then
56734 for ac_func in __signbitl
56736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56737 echo "$as_me:$LINENO: checking for $ac_func" >&5
56738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56739 if eval "test \"\${$as_ac_var+set}\" = set"; then
56740 echo $ECHO_N "(cached) $ECHO_C" >&6
56741 else
56742 if test x$gcc_no_link = xyes; then
56743 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56745 { (exit 1); exit 1; }; }
56747 cat >conftest.$ac_ext <<_ACEOF
56748 #line $LINENO "configure"
56749 /* confdefs.h. */
56750 _ACEOF
56751 cat confdefs.h >>conftest.$ac_ext
56752 cat >>conftest.$ac_ext <<_ACEOF
56753 /* end confdefs.h. */
56754 /* System header to define __stub macros and hopefully few prototypes,
56755 which can conflict with char $ac_func (); below.
56756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56757 <limits.h> exists even on freestanding compilers. */
56758 #ifdef __STDC__
56759 # include <limits.h>
56760 #else
56761 # include <assert.h>
56762 #endif
56763 /* Override any gcc2 internal prototype to avoid an error. */
56764 #ifdef __cplusplus
56765 extern "C"
56767 #endif
56768 /* We use char because int might match the return type of a gcc2
56769 builtin and then its argument prototype would still apply. */
56770 char $ac_func ();
56771 /* The GNU C library defines this for functions which it implements
56772 to always fail with ENOSYS. Some functions are actually named
56773 something starting with __ and the normal name is an alias. */
56774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56775 choke me
56776 #else
56777 char (*f) () = $ac_func;
56778 #endif
56779 #ifdef __cplusplus
56781 #endif
56784 main ()
56786 return f != $ac_func;
56788 return 0;
56790 _ACEOF
56791 rm -f conftest.$ac_objext conftest$ac_exeext
56792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56793 (eval $ac_link) 2>&5
56794 ac_status=$?
56795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56796 (exit $ac_status); } &&
56797 { ac_try='test -s conftest$ac_exeext'
56798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56799 (eval $ac_try) 2>&5
56800 ac_status=$?
56801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56802 (exit $ac_status); }; }; then
56803 eval "$as_ac_var=yes"
56804 else
56805 echo "$as_me: failed program was:" >&5
56806 sed 's/^/| /' conftest.$ac_ext >&5
56808 eval "$as_ac_var=no"
56810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56814 if test `eval echo '${'$as_ac_var'}'` = yes; then
56815 cat >>confdefs.h <<_ACEOF
56816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56817 _ACEOF
56819 else
56820 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56822 done
56826 # XXX Review this. Nothing uses it.
56827 if test -n "$LIBMATHOBJS"; then
56828 need_libmath=yes
56833 # Test wchar.h for mbstate_t, which is needed for char_traits and
56834 # others even if wchar_t support is not on.
56835 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56836 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56837 cat >conftest.$ac_ext <<_ACEOF
56838 #line $LINENO "configure"
56839 /* confdefs.h. */
56840 _ACEOF
56841 cat confdefs.h >>conftest.$ac_ext
56842 cat >>conftest.$ac_ext <<_ACEOF
56843 /* end confdefs.h. */
56844 #include <wchar.h>
56846 main ()
56848 mbstate_t teststate;
56850 return 0;
56852 _ACEOF
56853 rm -f conftest.$ac_objext
56854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56855 (eval $ac_compile) 2>&5
56856 ac_status=$?
56857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56858 (exit $ac_status); } &&
56859 { ac_try='test -s conftest.$ac_objext'
56860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56861 (eval $ac_try) 2>&5
56862 ac_status=$?
56863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56864 (exit $ac_status); }; }; then
56865 have_mbstate_t=yes
56866 else
56867 echo "$as_me: failed program was:" >&5
56868 sed 's/^/| /' conftest.$ac_ext >&5
56870 have_mbstate_t=no
56872 rm -f conftest.$ac_objext conftest.$ac_ext
56873 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56874 echo "${ECHO_T}$have_mbstate_t" >&6
56875 if test x"$have_mbstate_t" = xyes; then
56876 cat >>confdefs.h <<\_ACEOF
56877 #define HAVE_MBSTATE_T 1
56878 _ACEOF
56882 # Sanity check for existence of ISO C99 headers for extended encoding.
56884 for ac_header in wchar.h
56886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56888 echo "$as_me:$LINENO: checking for $ac_header" >&5
56889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56891 echo $ECHO_N "(cached) $ECHO_C" >&6
56893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56895 else
56896 # Is the header compilable?
56897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56899 cat >conftest.$ac_ext <<_ACEOF
56900 #line $LINENO "configure"
56901 /* confdefs.h. */
56902 _ACEOF
56903 cat confdefs.h >>conftest.$ac_ext
56904 cat >>conftest.$ac_ext <<_ACEOF
56905 /* end confdefs.h. */
56906 $ac_includes_default
56907 #include <$ac_header>
56908 _ACEOF
56909 rm -f conftest.$ac_objext
56910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56911 (eval $ac_compile) 2>&5
56912 ac_status=$?
56913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56914 (exit $ac_status); } &&
56915 { ac_try='test -s conftest.$ac_objext'
56916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56917 (eval $ac_try) 2>&5
56918 ac_status=$?
56919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56920 (exit $ac_status); }; }; then
56921 ac_header_compiler=yes
56922 else
56923 echo "$as_me: failed program was:" >&5
56924 sed 's/^/| /' conftest.$ac_ext >&5
56926 ac_header_compiler=no
56928 rm -f conftest.$ac_objext conftest.$ac_ext
56929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56930 echo "${ECHO_T}$ac_header_compiler" >&6
56932 # Is the header present?
56933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56935 cat >conftest.$ac_ext <<_ACEOF
56936 #line $LINENO "configure"
56937 /* confdefs.h. */
56938 _ACEOF
56939 cat confdefs.h >>conftest.$ac_ext
56940 cat >>conftest.$ac_ext <<_ACEOF
56941 /* end confdefs.h. */
56942 #include <$ac_header>
56943 _ACEOF
56944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56946 ac_status=$?
56947 grep -v '^ *+' conftest.er1 >conftest.err
56948 rm -f conftest.er1
56949 cat conftest.err >&5
56950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56951 (exit $ac_status); } >/dev/null; then
56952 if test -s conftest.err; then
56953 ac_cpp_err=$ac_c_preproc_warn_flag
56954 else
56955 ac_cpp_err=
56957 else
56958 ac_cpp_err=yes
56960 if test -z "$ac_cpp_err"; then
56961 ac_header_preproc=yes
56962 else
56963 echo "$as_me: failed program was:" >&5
56964 sed 's/^/| /' conftest.$ac_ext >&5
56966 ac_header_preproc=no
56968 rm -f conftest.err conftest.$ac_ext
56969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56970 echo "${ECHO_T}$ac_header_preproc" >&6
56972 # So? What about this header?
56973 case $ac_header_compiler:$ac_header_preproc in
56974 yes:no )
56975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56980 cat <<\_ASBOX
56981 ## ------------------------------------ ##
56982 ## Report this to bug-autoconf@gnu.org. ##
56983 ## ------------------------------------ ##
56984 _ASBOX
56986 sed "s/^/$as_me: WARNING: /" >&2
56988 no:yes )
56989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56996 cat <<\_ASBOX
56997 ## ------------------------------------ ##
56998 ## Report this to bug-autoconf@gnu.org. ##
56999 ## ------------------------------------ ##
57000 _ASBOX
57002 sed "s/^/$as_me: WARNING: /" >&2
57004 esac
57005 echo "$as_me:$LINENO: checking for $ac_header" >&5
57006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57008 echo $ECHO_N "(cached) $ECHO_C" >&6
57009 else
57010 eval "$as_ac_Header=$ac_header_preproc"
57012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57017 cat >>confdefs.h <<_ACEOF
57018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57019 _ACEOF
57020 ac_has_wchar_h=yes
57021 else
57022 ac_has_wchar_h=no
57025 done
57028 for ac_header in wctype.h
57030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57032 echo "$as_me:$LINENO: checking for $ac_header" >&5
57033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57035 echo $ECHO_N "(cached) $ECHO_C" >&6
57037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57039 else
57040 # Is the header compilable?
57041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57043 cat >conftest.$ac_ext <<_ACEOF
57044 #line $LINENO "configure"
57045 /* confdefs.h. */
57046 _ACEOF
57047 cat confdefs.h >>conftest.$ac_ext
57048 cat >>conftest.$ac_ext <<_ACEOF
57049 /* end confdefs.h. */
57050 $ac_includes_default
57051 #include <$ac_header>
57052 _ACEOF
57053 rm -f conftest.$ac_objext
57054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57055 (eval $ac_compile) 2>&5
57056 ac_status=$?
57057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57058 (exit $ac_status); } &&
57059 { ac_try='test -s conftest.$ac_objext'
57060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57061 (eval $ac_try) 2>&5
57062 ac_status=$?
57063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57064 (exit $ac_status); }; }; then
57065 ac_header_compiler=yes
57066 else
57067 echo "$as_me: failed program was:" >&5
57068 sed 's/^/| /' conftest.$ac_ext >&5
57070 ac_header_compiler=no
57072 rm -f conftest.$ac_objext conftest.$ac_ext
57073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57074 echo "${ECHO_T}$ac_header_compiler" >&6
57076 # Is the header present?
57077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57079 cat >conftest.$ac_ext <<_ACEOF
57080 #line $LINENO "configure"
57081 /* confdefs.h. */
57082 _ACEOF
57083 cat confdefs.h >>conftest.$ac_ext
57084 cat >>conftest.$ac_ext <<_ACEOF
57085 /* end confdefs.h. */
57086 #include <$ac_header>
57087 _ACEOF
57088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57090 ac_status=$?
57091 grep -v '^ *+' conftest.er1 >conftest.err
57092 rm -f conftest.er1
57093 cat conftest.err >&5
57094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57095 (exit $ac_status); } >/dev/null; then
57096 if test -s conftest.err; then
57097 ac_cpp_err=$ac_c_preproc_warn_flag
57098 else
57099 ac_cpp_err=
57101 else
57102 ac_cpp_err=yes
57104 if test -z "$ac_cpp_err"; then
57105 ac_header_preproc=yes
57106 else
57107 echo "$as_me: failed program was:" >&5
57108 sed 's/^/| /' conftest.$ac_ext >&5
57110 ac_header_preproc=no
57112 rm -f conftest.err conftest.$ac_ext
57113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57114 echo "${ECHO_T}$ac_header_preproc" >&6
57116 # So? What about this header?
57117 case $ac_header_compiler:$ac_header_preproc in
57118 yes:no )
57119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57124 cat <<\_ASBOX
57125 ## ------------------------------------ ##
57126 ## Report this to bug-autoconf@gnu.org. ##
57127 ## ------------------------------------ ##
57128 _ASBOX
57130 sed "s/^/$as_me: WARNING: /" >&2
57132 no:yes )
57133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57140 cat <<\_ASBOX
57141 ## ------------------------------------ ##
57142 ## Report this to bug-autoconf@gnu.org. ##
57143 ## ------------------------------------ ##
57144 _ASBOX
57146 sed "s/^/$as_me: WARNING: /" >&2
57148 esac
57149 echo "$as_me:$LINENO: checking for $ac_header" >&5
57150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57152 echo $ECHO_N "(cached) $ECHO_C" >&6
57153 else
57154 eval "$as_ac_Header=$ac_header_preproc"
57156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57161 cat >>confdefs.h <<_ACEOF
57162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57163 _ACEOF
57164 ac_has_wctype_h=yes
57165 else
57166 ac_has_wctype_h=no
57169 done
57172 # Only continue checking if the ISO C99 headers exist and support is on.
57173 if test x"$ac_has_wchar_h" = xyes &&
57174 test x"$ac_has_wctype_h" = xyes &&
57175 test x"$enable_c_mbchar" != xno; then
57177 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
57178 # numeric_limits can instantiate type_traits<wchar_t>
57179 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
57180 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
57181 cat >conftest.$ac_ext <<_ACEOF
57182 #line $LINENO "configure"
57183 /* confdefs.h. */
57184 _ACEOF
57185 cat confdefs.h >>conftest.$ac_ext
57186 cat >>conftest.$ac_ext <<_ACEOF
57187 /* end confdefs.h. */
57188 #include <wchar.h>
57190 main ()
57192 int i = WCHAR_MIN; int j = WCHAR_MAX;
57194 return 0;
57196 _ACEOF
57197 rm -f conftest.$ac_objext
57198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57199 (eval $ac_compile) 2>&5
57200 ac_status=$?
57201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57202 (exit $ac_status); } &&
57203 { ac_try='test -s conftest.$ac_objext'
57204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57205 (eval $ac_try) 2>&5
57206 ac_status=$?
57207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57208 (exit $ac_status); }; }; then
57209 has_wchar_minmax=yes
57210 else
57211 echo "$as_me: failed program was:" >&5
57212 sed 's/^/| /' conftest.$ac_ext >&5
57214 has_wchar_minmax=no
57216 rm -f conftest.$ac_objext conftest.$ac_ext
57217 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57218 echo "${ECHO_T}$has_wchar_minmax" >&6
57220 # Test wchar.h for WEOF, which is what we use to determine whether
57221 # to specialize for char_traits<wchar_t> or not.
57222 echo "$as_me:$LINENO: checking for WEOF" >&5
57223 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57224 cat >conftest.$ac_ext <<_ACEOF
57225 #line $LINENO "configure"
57226 /* confdefs.h. */
57227 _ACEOF
57228 cat confdefs.h >>conftest.$ac_ext
57229 cat >>conftest.$ac_ext <<_ACEOF
57230 /* end confdefs.h. */
57232 #include <wchar.h>
57233 #include <stddef.h>
57235 main ()
57237 wint_t i = WEOF;
57239 return 0;
57241 _ACEOF
57242 rm -f conftest.$ac_objext
57243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57244 (eval $ac_compile) 2>&5
57245 ac_status=$?
57246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57247 (exit $ac_status); } &&
57248 { ac_try='test -s conftest.$ac_objext'
57249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57250 (eval $ac_try) 2>&5
57251 ac_status=$?
57252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57253 (exit $ac_status); }; }; then
57254 has_weof=yes
57255 else
57256 echo "$as_me: failed program was:" >&5
57257 sed 's/^/| /' conftest.$ac_ext >&5
57259 has_weof=no
57261 rm -f conftest.$ac_objext conftest.$ac_ext
57262 echo "$as_me:$LINENO: result: $has_weof" >&5
57263 echo "${ECHO_T}$has_weof" >&6
57265 # Tests for wide character functions used in char_traits<wchar_t>.
57266 ac_wfuncs=yes
57273 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57276 echo "$as_me:$LINENO: checking for $ac_func" >&5
57277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57278 if eval "test \"\${$as_ac_var+set}\" = set"; then
57279 echo $ECHO_N "(cached) $ECHO_C" >&6
57280 else
57281 if test x$gcc_no_link = xyes; then
57282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57284 { (exit 1); exit 1; }; }
57286 cat >conftest.$ac_ext <<_ACEOF
57287 #line $LINENO "configure"
57288 /* confdefs.h. */
57289 _ACEOF
57290 cat confdefs.h >>conftest.$ac_ext
57291 cat >>conftest.$ac_ext <<_ACEOF
57292 /* end confdefs.h. */
57293 /* System header to define __stub macros and hopefully few prototypes,
57294 which can conflict with char $ac_func (); below.
57295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57296 <limits.h> exists even on freestanding compilers. */
57297 #ifdef __STDC__
57298 # include <limits.h>
57299 #else
57300 # include <assert.h>
57301 #endif
57302 /* Override any gcc2 internal prototype to avoid an error. */
57303 #ifdef __cplusplus
57304 extern "C"
57306 #endif
57307 /* We use char because int might match the return type of a gcc2
57308 builtin and then its argument prototype would still apply. */
57309 char $ac_func ();
57310 /* The GNU C library defines this for functions which it implements
57311 to always fail with ENOSYS. Some functions are actually named
57312 something starting with __ and the normal name is an alias. */
57313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57314 choke me
57315 #else
57316 char (*f) () = $ac_func;
57317 #endif
57318 #ifdef __cplusplus
57320 #endif
57323 main ()
57325 return f != $ac_func;
57327 return 0;
57329 _ACEOF
57330 rm -f conftest.$ac_objext conftest$ac_exeext
57331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57332 (eval $ac_link) 2>&5
57333 ac_status=$?
57334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57335 (exit $ac_status); } &&
57336 { ac_try='test -s conftest$ac_exeext'
57337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57338 (eval $ac_try) 2>&5
57339 ac_status=$?
57340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57341 (exit $ac_status); }; }; then
57342 eval "$as_ac_var=yes"
57343 else
57344 echo "$as_me: failed program was:" >&5
57345 sed 's/^/| /' conftest.$ac_ext >&5
57347 eval "$as_ac_var=no"
57349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57353 if test `eval echo '${'$as_ac_var'}'` = yes; then
57354 cat >>confdefs.h <<_ACEOF
57355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57356 _ACEOF
57358 else
57359 ac_wfuncs=no
57361 done
57364 # Checks for names injected into std:: by the c_std headers.
57415 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57416 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
57417 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57418 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
57419 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57420 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57423 echo "$as_me:$LINENO: checking for $ac_func" >&5
57424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57425 if eval "test \"\${$as_ac_var+set}\" = set"; then
57426 echo $ECHO_N "(cached) $ECHO_C" >&6
57427 else
57428 if test x$gcc_no_link = xyes; then
57429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57431 { (exit 1); exit 1; }; }
57433 cat >conftest.$ac_ext <<_ACEOF
57434 #line $LINENO "configure"
57435 /* confdefs.h. */
57436 _ACEOF
57437 cat confdefs.h >>conftest.$ac_ext
57438 cat >>conftest.$ac_ext <<_ACEOF
57439 /* end confdefs.h. */
57440 /* System header to define __stub macros and hopefully few prototypes,
57441 which can conflict with char $ac_func (); below.
57442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57443 <limits.h> exists even on freestanding compilers. */
57444 #ifdef __STDC__
57445 # include <limits.h>
57446 #else
57447 # include <assert.h>
57448 #endif
57449 /* Override any gcc2 internal prototype to avoid an error. */
57450 #ifdef __cplusplus
57451 extern "C"
57453 #endif
57454 /* We use char because int might match the return type of a gcc2
57455 builtin and then its argument prototype would still apply. */
57456 char $ac_func ();
57457 /* The GNU C library defines this for functions which it implements
57458 to always fail with ENOSYS. Some functions are actually named
57459 something starting with __ and the normal name is an alias. */
57460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57461 choke me
57462 #else
57463 char (*f) () = $ac_func;
57464 #endif
57465 #ifdef __cplusplus
57467 #endif
57470 main ()
57472 return f != $ac_func;
57474 return 0;
57476 _ACEOF
57477 rm -f conftest.$ac_objext conftest$ac_exeext
57478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57479 (eval $ac_link) 2>&5
57480 ac_status=$?
57481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57482 (exit $ac_status); } &&
57483 { ac_try='test -s conftest$ac_exeext'
57484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57485 (eval $ac_try) 2>&5
57486 ac_status=$?
57487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57488 (exit $ac_status); }; }; then
57489 eval "$as_ac_var=yes"
57490 else
57491 echo "$as_me: failed program was:" >&5
57492 sed 's/^/| /' conftest.$ac_ext >&5
57494 eval "$as_ac_var=no"
57496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57500 if test `eval echo '${'$as_ac_var'}'` = yes; then
57501 cat >>confdefs.h <<_ACEOF
57502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57503 _ACEOF
57505 else
57506 ac_wfuncs=no
57508 done
57511 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57512 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57513 if test x"$has_weof" = xyes &&
57514 test x"$has_wchar_minmax" = xyes &&
57515 test x"$ac_wfuncs" = xyes;
57516 then
57517 ac_isoC99_wchar_t=yes
57518 else
57519 ac_isoC99_wchar_t=no
57521 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57522 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57524 # Use iconv for wchar_t to char conversions. As such, check for
57525 # X/Open Portability Guide, version 2 features (XPG2).
57526 if test "${ac_cv_header_iconv_h+set}" = set; then
57527 echo "$as_me:$LINENO: checking for iconv.h" >&5
57528 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57529 if test "${ac_cv_header_iconv_h+set}" = set; then
57530 echo $ECHO_N "(cached) $ECHO_C" >&6
57532 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57533 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57534 else
57535 # Is the header compilable?
57536 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57537 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57538 cat >conftest.$ac_ext <<_ACEOF
57539 #line $LINENO "configure"
57540 /* confdefs.h. */
57541 _ACEOF
57542 cat confdefs.h >>conftest.$ac_ext
57543 cat >>conftest.$ac_ext <<_ACEOF
57544 /* end confdefs.h. */
57545 $ac_includes_default
57546 #include <iconv.h>
57547 _ACEOF
57548 rm -f conftest.$ac_objext
57549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57550 (eval $ac_compile) 2>&5
57551 ac_status=$?
57552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57553 (exit $ac_status); } &&
57554 { ac_try='test -s conftest.$ac_objext'
57555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57556 (eval $ac_try) 2>&5
57557 ac_status=$?
57558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57559 (exit $ac_status); }; }; then
57560 ac_header_compiler=yes
57561 else
57562 echo "$as_me: failed program was:" >&5
57563 sed 's/^/| /' conftest.$ac_ext >&5
57565 ac_header_compiler=no
57567 rm -f conftest.$ac_objext conftest.$ac_ext
57568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57569 echo "${ECHO_T}$ac_header_compiler" >&6
57571 # Is the header present?
57572 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57573 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57574 cat >conftest.$ac_ext <<_ACEOF
57575 #line $LINENO "configure"
57576 /* confdefs.h. */
57577 _ACEOF
57578 cat confdefs.h >>conftest.$ac_ext
57579 cat >>conftest.$ac_ext <<_ACEOF
57580 /* end confdefs.h. */
57581 #include <iconv.h>
57582 _ACEOF
57583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57585 ac_status=$?
57586 grep -v '^ *+' conftest.er1 >conftest.err
57587 rm -f conftest.er1
57588 cat conftest.err >&5
57589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57590 (exit $ac_status); } >/dev/null; then
57591 if test -s conftest.err; then
57592 ac_cpp_err=$ac_c_preproc_warn_flag
57593 else
57594 ac_cpp_err=
57596 else
57597 ac_cpp_err=yes
57599 if test -z "$ac_cpp_err"; then
57600 ac_header_preproc=yes
57601 else
57602 echo "$as_me: failed program was:" >&5
57603 sed 's/^/| /' conftest.$ac_ext >&5
57605 ac_header_preproc=no
57607 rm -f conftest.err conftest.$ac_ext
57608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57609 echo "${ECHO_T}$ac_header_preproc" >&6
57611 # So? What about this header?
57612 case $ac_header_compiler:$ac_header_preproc in
57613 yes:no )
57614 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57615 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57616 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57617 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57619 cat <<\_ASBOX
57620 ## ------------------------------------ ##
57621 ## Report this to bug-autoconf@gnu.org. ##
57622 ## ------------------------------------ ##
57623 _ASBOX
57625 sed "s/^/$as_me: WARNING: /" >&2
57627 no:yes )
57628 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57629 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57630 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57631 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57632 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57633 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57635 cat <<\_ASBOX
57636 ## ------------------------------------ ##
57637 ## Report this to bug-autoconf@gnu.org. ##
57638 ## ------------------------------------ ##
57639 _ASBOX
57641 sed "s/^/$as_me: WARNING: /" >&2
57643 esac
57644 echo "$as_me:$LINENO: checking for iconv.h" >&5
57645 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57646 if test "${ac_cv_header_iconv_h+set}" = set; then
57647 echo $ECHO_N "(cached) $ECHO_C" >&6
57648 else
57649 ac_cv_header_iconv_h=$ac_header_preproc
57651 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57652 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57655 if test $ac_cv_header_iconv_h = yes; then
57656 ac_has_iconv_h=yes
57657 else
57658 ac_has_iconv_h=no
57662 if test "${ac_cv_header_langinfo_h+set}" = set; then
57663 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57664 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57665 if test "${ac_cv_header_langinfo_h+set}" = set; then
57666 echo $ECHO_N "(cached) $ECHO_C" >&6
57668 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57669 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57670 else
57671 # Is the header compilable?
57672 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57673 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57674 cat >conftest.$ac_ext <<_ACEOF
57675 #line $LINENO "configure"
57676 /* confdefs.h. */
57677 _ACEOF
57678 cat confdefs.h >>conftest.$ac_ext
57679 cat >>conftest.$ac_ext <<_ACEOF
57680 /* end confdefs.h. */
57681 $ac_includes_default
57682 #include <langinfo.h>
57683 _ACEOF
57684 rm -f conftest.$ac_objext
57685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57686 (eval $ac_compile) 2>&5
57687 ac_status=$?
57688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57689 (exit $ac_status); } &&
57690 { ac_try='test -s conftest.$ac_objext'
57691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57692 (eval $ac_try) 2>&5
57693 ac_status=$?
57694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57695 (exit $ac_status); }; }; then
57696 ac_header_compiler=yes
57697 else
57698 echo "$as_me: failed program was:" >&5
57699 sed 's/^/| /' conftest.$ac_ext >&5
57701 ac_header_compiler=no
57703 rm -f conftest.$ac_objext conftest.$ac_ext
57704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57705 echo "${ECHO_T}$ac_header_compiler" >&6
57707 # Is the header present?
57708 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57709 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57710 cat >conftest.$ac_ext <<_ACEOF
57711 #line $LINENO "configure"
57712 /* confdefs.h. */
57713 _ACEOF
57714 cat confdefs.h >>conftest.$ac_ext
57715 cat >>conftest.$ac_ext <<_ACEOF
57716 /* end confdefs.h. */
57717 #include <langinfo.h>
57718 _ACEOF
57719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57721 ac_status=$?
57722 grep -v '^ *+' conftest.er1 >conftest.err
57723 rm -f conftest.er1
57724 cat conftest.err >&5
57725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57726 (exit $ac_status); } >/dev/null; then
57727 if test -s conftest.err; then
57728 ac_cpp_err=$ac_c_preproc_warn_flag
57729 else
57730 ac_cpp_err=
57732 else
57733 ac_cpp_err=yes
57735 if test -z "$ac_cpp_err"; then
57736 ac_header_preproc=yes
57737 else
57738 echo "$as_me: failed program was:" >&5
57739 sed 's/^/| /' conftest.$ac_ext >&5
57741 ac_header_preproc=no
57743 rm -f conftest.err conftest.$ac_ext
57744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57745 echo "${ECHO_T}$ac_header_preproc" >&6
57747 # So? What about this header?
57748 case $ac_header_compiler:$ac_header_preproc in
57749 yes:no )
57750 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57751 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57752 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57753 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57755 cat <<\_ASBOX
57756 ## ------------------------------------ ##
57757 ## Report this to bug-autoconf@gnu.org. ##
57758 ## ------------------------------------ ##
57759 _ASBOX
57761 sed "s/^/$as_me: WARNING: /" >&2
57763 no:yes )
57764 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57765 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57766 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57767 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57768 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57769 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57771 cat <<\_ASBOX
57772 ## ------------------------------------ ##
57773 ## Report this to bug-autoconf@gnu.org. ##
57774 ## ------------------------------------ ##
57775 _ASBOX
57777 sed "s/^/$as_me: WARNING: /" >&2
57779 esac
57780 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57781 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57782 if test "${ac_cv_header_langinfo_h+set}" = set; then
57783 echo $ECHO_N "(cached) $ECHO_C" >&6
57784 else
57785 ac_cv_header_langinfo_h=$ac_header_preproc
57787 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57788 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57791 if test $ac_cv_header_langinfo_h = yes; then
57792 ac_has_langinfo_h=yes
57793 else
57794 ac_has_langinfo_h=no
57799 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57800 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57801 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57802 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57803 echo $ECHO_N "(cached) $ECHO_C" >&6
57804 else
57805 ac_check_lib_save_LIBS=$LIBS
57806 LIBS="-liconv $LIBS"
57807 if test x$gcc_no_link = xyes; then
57808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57810 { (exit 1); exit 1; }; }
57812 cat >conftest.$ac_ext <<_ACEOF
57813 #line $LINENO "configure"
57814 /* confdefs.h. */
57815 _ACEOF
57816 cat confdefs.h >>conftest.$ac_ext
57817 cat >>conftest.$ac_ext <<_ACEOF
57818 /* end confdefs.h. */
57820 /* Override any gcc2 internal prototype to avoid an error. */
57821 #ifdef __cplusplus
57822 extern "C"
57823 #endif
57824 /* We use char because int might match the return type of a gcc2
57825 builtin and then its argument prototype would still apply. */
57826 char iconv ();
57828 main ()
57830 iconv ();
57832 return 0;
57834 _ACEOF
57835 rm -f conftest.$ac_objext conftest$ac_exeext
57836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57837 (eval $ac_link) 2>&5
57838 ac_status=$?
57839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57840 (exit $ac_status); } &&
57841 { ac_try='test -s conftest$ac_exeext'
57842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57843 (eval $ac_try) 2>&5
57844 ac_status=$?
57845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57846 (exit $ac_status); }; }; then
57847 ac_cv_lib_iconv_iconv=yes
57848 else
57849 echo "$as_me: failed program was:" >&5
57850 sed 's/^/| /' conftest.$ac_ext >&5
57852 ac_cv_lib_iconv_iconv=no
57854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57855 LIBS=$ac_check_lib_save_LIBS
57857 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57858 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57859 if test $ac_cv_lib_iconv_iconv = yes; then
57860 libiconv="-liconv"
57863 ac_save_LIBS="$LIBS"
57864 LIBS="$LIBS $libiconv"
57870 for ac_func in iconv_open iconv_close iconv nl_langinfo
57872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57873 echo "$as_me:$LINENO: checking for $ac_func" >&5
57874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57875 if eval "test \"\${$as_ac_var+set}\" = set"; then
57876 echo $ECHO_N "(cached) $ECHO_C" >&6
57877 else
57878 if test x$gcc_no_link = xyes; then
57879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57881 { (exit 1); exit 1; }; }
57883 cat >conftest.$ac_ext <<_ACEOF
57884 #line $LINENO "configure"
57885 /* confdefs.h. */
57886 _ACEOF
57887 cat confdefs.h >>conftest.$ac_ext
57888 cat >>conftest.$ac_ext <<_ACEOF
57889 /* end confdefs.h. */
57890 /* System header to define __stub macros and hopefully few prototypes,
57891 which can conflict with char $ac_func (); below.
57892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57893 <limits.h> exists even on freestanding compilers. */
57894 #ifdef __STDC__
57895 # include <limits.h>
57896 #else
57897 # include <assert.h>
57898 #endif
57899 /* Override any gcc2 internal prototype to avoid an error. */
57900 #ifdef __cplusplus
57901 extern "C"
57903 #endif
57904 /* We use char because int might match the return type of a gcc2
57905 builtin and then its argument prototype would still apply. */
57906 char $ac_func ();
57907 /* The GNU C library defines this for functions which it implements
57908 to always fail with ENOSYS. Some functions are actually named
57909 something starting with __ and the normal name is an alias. */
57910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57911 choke me
57912 #else
57913 char (*f) () = $ac_func;
57914 #endif
57915 #ifdef __cplusplus
57917 #endif
57920 main ()
57922 return f != $ac_func;
57924 return 0;
57926 _ACEOF
57927 rm -f conftest.$ac_objext conftest$ac_exeext
57928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57929 (eval $ac_link) 2>&5
57930 ac_status=$?
57931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57932 (exit $ac_status); } &&
57933 { ac_try='test -s conftest$ac_exeext'
57934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57935 (eval $ac_try) 2>&5
57936 ac_status=$?
57937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57938 (exit $ac_status); }; }; then
57939 eval "$as_ac_var=yes"
57940 else
57941 echo "$as_me: failed program was:" >&5
57942 sed 's/^/| /' conftest.$ac_ext >&5
57944 eval "$as_ac_var=no"
57946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57950 if test `eval echo '${'$as_ac_var'}'` = yes; then
57951 cat >>confdefs.h <<_ACEOF
57952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57953 _ACEOF
57954 ac_XPG2funcs=yes
57955 else
57956 ac_XPG2funcs=no
57958 done
57961 LIBS="$ac_save_LIBS"
57963 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57964 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57965 if test x"$ac_has_iconv_h" = xyes &&
57966 test x"$ac_has_langinfo_h" = xyes &&
57967 test x"$ac_XPG2funcs" = xyes;
57968 then
57969 ac_XPG2_wchar_t=yes
57970 else
57971 ac_XPG2_wchar_t=no
57973 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57974 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57976 # At the moment, only enable wchar_t specializations if all the
57977 # above support is present.
57978 if test x"$ac_isoC99_wchar_t" = xyes &&
57979 test x"$ac_XPG2_wchar_t" = xyes;
57980 then
57981 cat >>confdefs.h <<\_ACEOF
57982 #define _GLIBCXX_USE_WCHAR_T 1
57983 _ACEOF
57985 enable_wchar_t=yes
57988 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57989 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57990 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57991 echo "${ECHO_T}$enable_wchar_t" >&6
57993 cat >>confdefs.h <<\_ACEOF
57994 #define HAVE_COSF 1
57995 _ACEOF
57997 cat >>confdefs.h <<\_ACEOF
57998 #define HAVE_COSL 1
57999 _ACEOF
58001 cat >>confdefs.h <<\_ACEOF
58002 #define HAVE_COSHF 1
58003 _ACEOF
58005 cat >>confdefs.h <<\_ACEOF
58006 #define HAVE_COSHL 1
58007 _ACEOF
58009 cat >>confdefs.h <<\_ACEOF
58010 #define HAVE_LOGF 1
58011 _ACEOF
58013 cat >>confdefs.h <<\_ACEOF
58014 #define HAVE_LOGL 1
58015 _ACEOF
58017 cat >>confdefs.h <<\_ACEOF
58018 #define HAVE_LOG10F 1
58019 _ACEOF
58021 cat >>confdefs.h <<\_ACEOF
58022 #define HAVE_LOG10L 1
58023 _ACEOF
58025 cat >>confdefs.h <<\_ACEOF
58026 #define HAVE_SINF 1
58027 _ACEOF
58029 cat >>confdefs.h <<\_ACEOF
58030 #define HAVE_SINL 1
58031 _ACEOF
58033 cat >>confdefs.h <<\_ACEOF
58034 #define HAVE_SINHF 1
58035 _ACEOF
58037 cat >>confdefs.h <<\_ACEOF
58038 #define HAVE_SINHL 1
58039 _ACEOF
58042 *-solaris*)
58043 #case "$target" in
58044 # *-solaris2.5)
58045 # os_include_dir="os/solaris/solaris2.5"
58046 # ;;
58047 # *-solaris2.6)
58048 # os_include_dir="os/solaris/solaris2.6"
58049 # ;;
58050 # *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
58051 # os_include_dir="os/solaris/solaris2.7"
58052 # ;;
58053 #esac
58054 cat >>confdefs.h <<\_ACEOF
58055 #define HAVE_STRTOF 1
58056 _ACEOF
58058 cat >>confdefs.h <<\_ACEOF
58059 #define HAVE_STRTOLD 1
58060 _ACEOF
58062 cat >>confdefs.h <<\_ACEOF
58063 #define HAVE_MMAP 1
58064 _ACEOF
58066 cat >>confdefs.h <<\_ACEOF
58067 #define HAVE_COPYSIGN 1
58068 _ACEOF
58070 cat >>confdefs.h <<\_ACEOF
58071 #define HAVE_ISNAN 1
58072 _ACEOF
58074 cat >>confdefs.h <<\_ACEOF
58075 #define HAVE_ISNANF 1
58076 _ACEOF
58078 cat >>confdefs.h <<\_ACEOF
58079 #define HAVE_MODFF 1
58080 _ACEOF
58082 cat >>confdefs.h <<\_ACEOF
58083 #define HAVE_HYPOT 1
58084 _ACEOF
58087 *-windiss*)
58088 #os_include_dir="os/windiss"
58089 cat >>confdefs.h <<\_ACEOF
58090 #define HAVE_ACOSF 1
58091 _ACEOF
58093 cat >>confdefs.h <<\_ACEOF
58094 #define HAVE_ASINF 1
58095 _ACEOF
58097 cat >>confdefs.h <<\_ACEOF
58098 #define HAVE_ATAN2F 1
58099 _ACEOF
58101 cat >>confdefs.h <<\_ACEOF
58102 #define HAVE_ATANF 1
58103 _ACEOF
58105 cat >>confdefs.h <<\_ACEOF
58106 #define HAVE_CEILF 1
58107 _ACEOF
58109 cat >>confdefs.h <<\_ACEOF
58110 #define HAVE_COPYSIGN 1
58111 _ACEOF
58113 cat >>confdefs.h <<\_ACEOF
58114 #define HAVE_COPYSIGNF 1
58115 _ACEOF
58117 cat >>confdefs.h <<\_ACEOF
58118 #define HAVE_COSF 1
58119 _ACEOF
58121 cat >>confdefs.h <<\_ACEOF
58122 #define HAVE_COSHF 1
58123 _ACEOF
58125 cat >>confdefs.h <<\_ACEOF
58126 #define HAVE_EXPF 1
58127 _ACEOF
58129 cat >>confdefs.h <<\_ACEOF
58130 #define HAVE_FABSF 1
58131 _ACEOF
58133 cat >>confdefs.h <<\_ACEOF
58134 #define HAVE_FLOORF 1
58135 _ACEOF
58137 cat >>confdefs.h <<\_ACEOF
58138 #define HAVE_FMODF 1
58139 _ACEOF
58141 cat >>confdefs.h <<\_ACEOF
58142 #define HAVE_FREXPF 1
58143 _ACEOF
58145 cat >>confdefs.h <<\_ACEOF
58146 #define HAVE_LDEXPF 1
58147 _ACEOF
58149 cat >>confdefs.h <<\_ACEOF
58150 #define HAVE_LOG10F 1
58151 _ACEOF
58153 cat >>confdefs.h <<\_ACEOF
58154 #define HAVE_LOGF 1
58155 _ACEOF
58157 cat >>confdefs.h <<\_ACEOF
58158 #define HAVE_MODFF 1
58159 _ACEOF
58161 cat >>confdefs.h <<\_ACEOF
58162 #define HAVE_POWF 1
58163 _ACEOF
58165 cat >>confdefs.h <<\_ACEOF
58166 #define HAVE_SINF 1
58167 _ACEOF
58169 cat >>confdefs.h <<\_ACEOF
58170 #define HAVE_SINHF 1
58171 _ACEOF
58173 cat >>confdefs.h <<\_ACEOF
58174 #define HAVE_SQRTF 1
58175 _ACEOF
58177 cat >>confdefs.h <<\_ACEOF
58178 #define HAVE_TANF 1
58179 _ACEOF
58181 cat >>confdefs.h <<\_ACEOF
58182 #define HAVE_TANHF 1
58183 _ACEOF
58187 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
58188 echo "$as_me: error: No support for this host/target combination." >&2;}
58189 { (exit 1); exit 1; }; }
58191 esac
58196 # At some point, we should differentiate between architectures
58197 # like x86, which have long double versions, and alpha/powerpc/etc.,
58198 # which don't. For the time being, punt.
58199 if test x"long_double_math_on_this_cpu" = x"yes"; then
58200 cat >>confdefs.h <<\_ACEOF
58201 #define HAVE_ACOSL 1
58202 _ACEOF
58204 cat >>confdefs.h <<\_ACEOF
58205 #define HAVE_ASINL 1
58206 _ACEOF
58208 cat >>confdefs.h <<\_ACEOF
58209 #define HAVE_ATAN2L 1
58210 _ACEOF
58212 cat >>confdefs.h <<\_ACEOF
58213 #define HAVE_ATANL 1
58214 _ACEOF
58216 cat >>confdefs.h <<\_ACEOF
58217 #define HAVE_CEILL 1
58218 _ACEOF
58220 cat >>confdefs.h <<\_ACEOF
58221 #define HAVE_COPYSIGNL 1
58222 _ACEOF
58224 cat >>confdefs.h <<\_ACEOF
58225 #define HAVE_COSL 1
58226 _ACEOF
58228 cat >>confdefs.h <<\_ACEOF
58229 #define HAVE_COSHL 1
58230 _ACEOF
58232 cat >>confdefs.h <<\_ACEOF
58233 #define HAVE_EXPL 1
58234 _ACEOF
58236 cat >>confdefs.h <<\_ACEOF
58237 #define HAVE_FABSL 1
58238 _ACEOF
58240 cat >>confdefs.h <<\_ACEOF
58241 #define HAVE_FLOORL 1
58242 _ACEOF
58244 cat >>confdefs.h <<\_ACEOF
58245 #define HAVE_FMODL 1
58246 _ACEOF
58248 cat >>confdefs.h <<\_ACEOF
58249 #define HAVE_FREXPL 1
58250 _ACEOF
58252 cat >>confdefs.h <<\_ACEOF
58253 #define HAVE_LDEXPL 1
58254 _ACEOF
58256 cat >>confdefs.h <<\_ACEOF
58257 #define HAVE_LOG10L 1
58258 _ACEOF
58260 cat >>confdefs.h <<\_ACEOF
58261 #define HAVE_LOGL 1
58262 _ACEOF
58264 cat >>confdefs.h <<\_ACEOF
58265 #define HAVE_MODFL 1
58266 _ACEOF
58268 cat >>confdefs.h <<\_ACEOF
58269 #define HAVE_POWL 1
58270 _ACEOF
58272 cat >>confdefs.h <<\_ACEOF
58273 #define HAVE_SINCOSL 1
58274 _ACEOF
58276 cat >>confdefs.h <<\_ACEOF
58277 #define HAVE_SINL 1
58278 _ACEOF
58280 cat >>confdefs.h <<\_ACEOF
58281 #define HAVE_SINHL 1
58282 _ACEOF
58284 cat >>confdefs.h <<\_ACEOF
58285 #define HAVE_SQRTL 1
58286 _ACEOF
58288 cat >>confdefs.h <<\_ACEOF
58289 #define HAVE_TANL 1
58290 _ACEOF
58292 cat >>confdefs.h <<\_ACEOF
58293 #define HAVE_TANHL 1
58294 _ACEOF
58300 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
58303 # Check whether --enable-symvers or --disable-symvers was given.
58304 if test "${enable_symvers+set}" = set; then
58305 enableval="$enable_symvers"
58307 case "$enableval" in
58308 yes|no|gnu) ;;
58309 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
58310 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
58311 { (exit 1); exit 1; }; } ;;
58312 esac
58314 else
58315 enable_symvers=yes
58319 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
58320 # don't know enough about $LD to do tricks...
58322 # FIXME The following test is too strict, in theory.
58323 if test $enable_shared = no ||
58324 test "x$LD" = x ||
58325 test x$glibcxx_gnu_ld_version = x; then
58326 enable_symvers=no
58329 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
58330 if test $enable_symvers != no; then
58331 echo "$as_me:$LINENO: checking for shared libgcc" >&5
58332 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
58333 ac_save_CFLAGS="$CFLAGS"
58334 CFLAGS=' -lgcc_s'
58335 if test x$gcc_no_link = xyes; then
58336 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58338 { (exit 1); exit 1; }; }
58340 cat >conftest.$ac_ext <<_ACEOF
58341 #line $LINENO "configure"
58342 /* confdefs.h. */
58343 _ACEOF
58344 cat confdefs.h >>conftest.$ac_ext
58345 cat >>conftest.$ac_ext <<_ACEOF
58346 /* end confdefs.h. */
58349 main ()
58351 return 0;
58353 return 0;
58355 _ACEOF
58356 rm -f conftest.$ac_objext conftest$ac_exeext
58357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58358 (eval $ac_link) 2>&5
58359 ac_status=$?
58360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58361 (exit $ac_status); } &&
58362 { ac_try='test -s conftest$ac_exeext'
58363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58364 (eval $ac_try) 2>&5
58365 ac_status=$?
58366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58367 (exit $ac_status); }; }; then
58368 glibcxx_shared_libgcc=yes
58369 else
58370 echo "$as_me: failed program was:" >&5
58371 sed 's/^/| /' conftest.$ac_ext >&5
58373 glibcxx_shared_libgcc=no
58375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58376 CFLAGS="$ac_save_CFLAGS"
58377 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
58378 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
58381 # For GNU ld, we need at least this version. The format is described in
58382 # GLIBCXX_CHECK_LINKER_FEATURES above.
58383 glibcxx_min_gnu_ld_version=21400
58384 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
58386 # Check to see if unspecified "yes" value can win, given results above.
58387 # Change "yes" into either "no" or a style name.
58388 if test $enable_symvers = yes; then
58389 if test $with_gnu_ld = yes &&
58390 test $glibcxx_shared_libgcc = yes;
58391 then
58392 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
58393 enable_symvers=gnu
58394 else
58395 # The right tools, the right setup, but too old. Fallbacks?
58396 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
58397 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
58398 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
58399 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
58400 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
58401 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
58402 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
58403 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
58404 if test $glibcxx_gnu_ld_version -ge 21200 ; then
58405 # Globbing fix is present, proper block support is not.
58406 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58407 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58408 enable_symvers=no
58409 else
58410 # 2.11 or older.
58411 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58412 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58413 enable_symvers=no
58416 else
58417 # just fail for now
58418 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
58419 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
58420 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
58421 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
58422 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
58423 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
58424 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58425 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58426 enable_symvers=no
58430 # Everything parsed; figure out what file to use.
58431 case $enable_symvers in
58433 SYMVER_MAP=config/linker-map.dummy
58435 gnu)
58436 SYMVER_MAP=config/linker-map.gnu
58437 cat >>confdefs.h <<\_ACEOF
58438 #define _GLIBCXX_SYMVER 1
58439 _ACEOF
58442 esac
58447 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
58448 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
58451 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
58453 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
58454 # Do checks for memory limit functions.
58456 setrlimit_have_headers=yes
58460 for ac_header in unistd.h sys/time.h sys/resource.h
58462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58464 echo "$as_me:$LINENO: checking for $ac_header" >&5
58465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58467 echo $ECHO_N "(cached) $ECHO_C" >&6
58469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58471 else
58472 # Is the header compilable?
58473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58475 cat >conftest.$ac_ext <<_ACEOF
58476 #line $LINENO "configure"
58477 /* confdefs.h. */
58478 _ACEOF
58479 cat confdefs.h >>conftest.$ac_ext
58480 cat >>conftest.$ac_ext <<_ACEOF
58481 /* end confdefs.h. */
58482 $ac_includes_default
58483 #include <$ac_header>
58484 _ACEOF
58485 rm -f conftest.$ac_objext
58486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58487 (eval $ac_compile) 2>&5
58488 ac_status=$?
58489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58490 (exit $ac_status); } &&
58491 { ac_try='test -s conftest.$ac_objext'
58492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58493 (eval $ac_try) 2>&5
58494 ac_status=$?
58495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58496 (exit $ac_status); }; }; then
58497 ac_header_compiler=yes
58498 else
58499 echo "$as_me: failed program was:" >&5
58500 sed 's/^/| /' conftest.$ac_ext >&5
58502 ac_header_compiler=no
58504 rm -f conftest.$ac_objext conftest.$ac_ext
58505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58506 echo "${ECHO_T}$ac_header_compiler" >&6
58508 # Is the header present?
58509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58511 cat >conftest.$ac_ext <<_ACEOF
58512 #line $LINENO "configure"
58513 /* confdefs.h. */
58514 _ACEOF
58515 cat confdefs.h >>conftest.$ac_ext
58516 cat >>conftest.$ac_ext <<_ACEOF
58517 /* end confdefs.h. */
58518 #include <$ac_header>
58519 _ACEOF
58520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58522 ac_status=$?
58523 grep -v '^ *+' conftest.er1 >conftest.err
58524 rm -f conftest.er1
58525 cat conftest.err >&5
58526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58527 (exit $ac_status); } >/dev/null; then
58528 if test -s conftest.err; then
58529 ac_cpp_err=$ac_c_preproc_warn_flag
58530 else
58531 ac_cpp_err=
58533 else
58534 ac_cpp_err=yes
58536 if test -z "$ac_cpp_err"; then
58537 ac_header_preproc=yes
58538 else
58539 echo "$as_me: failed program was:" >&5
58540 sed 's/^/| /' conftest.$ac_ext >&5
58542 ac_header_preproc=no
58544 rm -f conftest.err conftest.$ac_ext
58545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58546 echo "${ECHO_T}$ac_header_preproc" >&6
58548 # So? What about this header?
58549 case $ac_header_compiler:$ac_header_preproc in
58550 yes:no )
58551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58556 cat <<\_ASBOX
58557 ## ------------------------------------ ##
58558 ## Report this to bug-autoconf@gnu.org. ##
58559 ## ------------------------------------ ##
58560 _ASBOX
58562 sed "s/^/$as_me: WARNING: /" >&2
58564 no:yes )
58565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58572 cat <<\_ASBOX
58573 ## ------------------------------------ ##
58574 ## Report this to bug-autoconf@gnu.org. ##
58575 ## ------------------------------------ ##
58576 _ASBOX
58578 sed "s/^/$as_me: WARNING: /" >&2
58580 esac
58581 echo "$as_me:$LINENO: checking for $ac_header" >&5
58582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58584 echo $ECHO_N "(cached) $ECHO_C" >&6
58585 else
58586 eval "$as_ac_Header=$ac_header_preproc"
58588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58593 cat >>confdefs.h <<_ACEOF
58594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58595 _ACEOF
58597 else
58598 setrlimit_have_headers=no
58601 done
58603 # If don't have the headers, then we can't run the tests now, and we
58604 # won't be seeing any of these during testsuite compilation.
58605 if test $setrlimit_have_headers = yes; then
58606 # Can't do these in a loop, else the resulting syntax is wrong.
58608 cat >conftest.$ac_ext <<_ACEOF
58609 #line $LINENO "configure"
58610 /* confdefs.h. */
58611 _ACEOF
58612 cat confdefs.h >>conftest.$ac_ext
58613 cat >>conftest.$ac_ext <<_ACEOF
58614 /* end confdefs.h. */
58615 #include <unistd.h>
58616 #include <sys/time.h>
58617 #include <sys/resource.h>
58620 main ()
58622 int f = RLIMIT_DATA ;
58624 return 0;
58626 _ACEOF
58627 rm -f conftest.$ac_objext
58628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58629 (eval $ac_compile) 2>&5
58630 ac_status=$?
58631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58632 (exit $ac_status); } &&
58633 { ac_try='test -s conftest.$ac_objext'
58634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58635 (eval $ac_try) 2>&5
58636 ac_status=$?
58637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58638 (exit $ac_status); }; }; then
58639 glibcxx_mresult=1
58640 else
58641 echo "$as_me: failed program was:" >&5
58642 sed 's/^/| /' conftest.$ac_ext >&5
58644 glibcxx_mresult=0
58646 rm -f conftest.$ac_objext conftest.$ac_ext
58648 cat >>confdefs.h <<_ACEOF
58649 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
58650 _ACEOF
58654 cat >conftest.$ac_ext <<_ACEOF
58655 #line $LINENO "configure"
58656 /* confdefs.h. */
58657 _ACEOF
58658 cat confdefs.h >>conftest.$ac_ext
58659 cat >>conftest.$ac_ext <<_ACEOF
58660 /* end confdefs.h. */
58661 #include <unistd.h>
58662 #include <sys/time.h>
58663 #include <sys/resource.h>
58666 main ()
58668 int f = RLIMIT_RSS ;
58670 return 0;
58672 _ACEOF
58673 rm -f conftest.$ac_objext
58674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58675 (eval $ac_compile) 2>&5
58676 ac_status=$?
58677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58678 (exit $ac_status); } &&
58679 { ac_try='test -s conftest.$ac_objext'
58680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58681 (eval $ac_try) 2>&5
58682 ac_status=$?
58683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58684 (exit $ac_status); }; }; then
58685 glibcxx_mresult=1
58686 else
58687 echo "$as_me: failed program was:" >&5
58688 sed 's/^/| /' conftest.$ac_ext >&5
58690 glibcxx_mresult=0
58692 rm -f conftest.$ac_objext conftest.$ac_ext
58694 cat >>confdefs.h <<_ACEOF
58695 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
58696 _ACEOF
58700 cat >conftest.$ac_ext <<_ACEOF
58701 #line $LINENO "configure"
58702 /* confdefs.h. */
58703 _ACEOF
58704 cat confdefs.h >>conftest.$ac_ext
58705 cat >>conftest.$ac_ext <<_ACEOF
58706 /* end confdefs.h. */
58707 #include <unistd.h>
58708 #include <sys/time.h>
58709 #include <sys/resource.h>
58712 main ()
58714 int f = RLIMIT_VMEM ;
58716 return 0;
58718 _ACEOF
58719 rm -f conftest.$ac_objext
58720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58721 (eval $ac_compile) 2>&5
58722 ac_status=$?
58723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58724 (exit $ac_status); } &&
58725 { ac_try='test -s conftest.$ac_objext'
58726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58727 (eval $ac_try) 2>&5
58728 ac_status=$?
58729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58730 (exit $ac_status); }; }; then
58731 glibcxx_mresult=1
58732 else
58733 echo "$as_me: failed program was:" >&5
58734 sed 's/^/| /' conftest.$ac_ext >&5
58736 glibcxx_mresult=0
58738 rm -f conftest.$ac_objext conftest.$ac_ext
58740 cat >>confdefs.h <<_ACEOF
58741 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
58742 _ACEOF
58746 cat >conftest.$ac_ext <<_ACEOF
58747 #line $LINENO "configure"
58748 /* confdefs.h. */
58749 _ACEOF
58750 cat confdefs.h >>conftest.$ac_ext
58751 cat >>conftest.$ac_ext <<_ACEOF
58752 /* end confdefs.h. */
58753 #include <unistd.h>
58754 #include <sys/time.h>
58755 #include <sys/resource.h>
58758 main ()
58760 int f = RLIMIT_AS ;
58762 return 0;
58764 _ACEOF
58765 rm -f conftest.$ac_objext
58766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58767 (eval $ac_compile) 2>&5
58768 ac_status=$?
58769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58770 (exit $ac_status); } &&
58771 { ac_try='test -s conftest.$ac_objext'
58772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58773 (eval $ac_try) 2>&5
58774 ac_status=$?
58775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58776 (exit $ac_status); }; }; then
58777 glibcxx_mresult=1
58778 else
58779 echo "$as_me: failed program was:" >&5
58780 sed 's/^/| /' conftest.$ac_ext >&5
58782 glibcxx_mresult=0
58784 rm -f conftest.$ac_objext conftest.$ac_ext
58786 cat >>confdefs.h <<_ACEOF
58787 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
58788 _ACEOF
58792 # Check for rlimit, setrlimit.
58793 if test "${ac_setrlimit+set}" = set; then
58794 echo $ECHO_N "(cached) $ECHO_C" >&6
58795 else
58797 cat >conftest.$ac_ext <<_ACEOF
58798 #line $LINENO "configure"
58799 /* confdefs.h. */
58800 _ACEOF
58801 cat confdefs.h >>conftest.$ac_ext
58802 cat >>conftest.$ac_ext <<_ACEOF
58803 /* end confdefs.h. */
58804 #include <unistd.h>
58805 #include <sys/time.h>
58806 #include <sys/resource.h>
58809 main ()
58811 struct rlimit r;
58812 setrlimit(0, &r);
58814 return 0;
58816 _ACEOF
58817 rm -f conftest.$ac_objext
58818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58819 (eval $ac_compile) 2>&5
58820 ac_status=$?
58821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58822 (exit $ac_status); } &&
58823 { ac_try='test -s conftest.$ac_objext'
58824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58825 (eval $ac_try) 2>&5
58826 ac_status=$?
58827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58828 (exit $ac_status); }; }; then
58829 ac_setrlimit=yes
58830 else
58831 echo "$as_me: failed program was:" >&5
58832 sed 's/^/| /' conftest.$ac_ext >&5
58834 ac_setrlimit=no
58836 rm -f conftest.$ac_objext conftest.$ac_ext
58842 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
58843 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
58844 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
58845 ac_mem_limits=yes
58846 cat >>confdefs.h <<\_ACEOF
58847 #define _GLIBCXX_MEM_LIMITS 1
58848 _ACEOF
58850 else
58851 ac_mem_limits=no
58853 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
58854 echo "${ECHO_T}$ac_mem_limits" >&6
58857 # Look for setenv, so that extended locale tests can be performed.
58859 echo "$as_me:$LINENO: checking for setenv declaration" >&5
58860 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
58861 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
58862 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
58863 echo $ECHO_N "(cached) $ECHO_C" >&6
58864 else
58868 ac_ext=cc
58869 ac_cpp='$CXXCPP $CPPFLAGS'
58870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
58874 cat >conftest.$ac_ext <<_ACEOF
58875 #line $LINENO "configure"
58876 /* confdefs.h. */
58877 _ACEOF
58878 cat confdefs.h >>conftest.$ac_ext
58879 cat >>conftest.$ac_ext <<_ACEOF
58880 /* end confdefs.h. */
58881 #include <stdlib.h>
58883 main ()
58885 setenv(0, 0, 0);
58887 return 0;
58889 _ACEOF
58890 rm -f conftest.$ac_objext
58891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58892 (eval $ac_compile) 2>&5
58893 ac_status=$?
58894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58895 (exit $ac_status); } &&
58896 { ac_try='test -s conftest.$ac_objext'
58897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58898 (eval $ac_try) 2>&5
58899 ac_status=$?
58900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58901 (exit $ac_status); }; }; then
58902 glibcxx_cv_func_setenv_use=yes
58903 else
58904 echo "$as_me: failed program was:" >&5
58905 sed 's/^/| /' conftest.$ac_ext >&5
58907 glibcxx_cv_func_setenv_use=no
58909 rm -f conftest.$ac_objext conftest.$ac_ext
58910 ac_ext=c
58911 ac_cpp='$CPP $CPPFLAGS'
58912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
58920 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
58921 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
58922 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
58924 for ac_func in setenv
58926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58927 echo "$as_me:$LINENO: checking for $ac_func" >&5
58928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58929 if eval "test \"\${$as_ac_var+set}\" = set"; then
58930 echo $ECHO_N "(cached) $ECHO_C" >&6
58931 else
58932 if test x$gcc_no_link = xyes; then
58933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58935 { (exit 1); exit 1; }; }
58937 cat >conftest.$ac_ext <<_ACEOF
58938 #line $LINENO "configure"
58939 /* confdefs.h. */
58940 _ACEOF
58941 cat confdefs.h >>conftest.$ac_ext
58942 cat >>conftest.$ac_ext <<_ACEOF
58943 /* end confdefs.h. */
58944 /* System header to define __stub macros and hopefully few prototypes,
58945 which can conflict with char $ac_func (); below.
58946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58947 <limits.h> exists even on freestanding compilers. */
58948 #ifdef __STDC__
58949 # include <limits.h>
58950 #else
58951 # include <assert.h>
58952 #endif
58953 /* Override any gcc2 internal prototype to avoid an error. */
58954 #ifdef __cplusplus
58955 extern "C"
58957 #endif
58958 /* We use char because int might match the return type of a gcc2
58959 builtin and then its argument prototype would still apply. */
58960 char $ac_func ();
58961 /* The GNU C library defines this for functions which it implements
58962 to always fail with ENOSYS. Some functions are actually named
58963 something starting with __ and the normal name is an alias. */
58964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58965 choke me
58966 #else
58967 char (*f) () = $ac_func;
58968 #endif
58969 #ifdef __cplusplus
58971 #endif
58974 main ()
58976 return f != $ac_func;
58978 return 0;
58980 _ACEOF
58981 rm -f conftest.$ac_objext conftest$ac_exeext
58982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58983 (eval $ac_link) 2>&5
58984 ac_status=$?
58985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58986 (exit $ac_status); } &&
58987 { ac_try='test -s conftest$ac_exeext'
58988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58989 (eval $ac_try) 2>&5
58990 ac_status=$?
58991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58992 (exit $ac_status); }; }; then
58993 eval "$as_ac_var=yes"
58994 else
58995 echo "$as_me: failed program was:" >&5
58996 sed 's/^/| /' conftest.$ac_ext >&5
58998 eval "$as_ac_var=no"
59000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59004 if test `eval echo '${'$as_ac_var'}'` = yes; then
59005 cat >>confdefs.h <<_ACEOF
59006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59007 _ACEOF
59010 done
59016 # Export file names for ABI checking.
59017 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
59020 # Determine if checking the ABI is desirable.
59021 if test $enable_symvers = no || test $is_hosted = no; then
59022 enable_abi_check=no
59023 else
59024 case "$host" in
59025 *-*-cygwin*)
59026 enable_abi_check=no ;;
59028 enable_abi_check=yes ;;
59029 esac
59036 # Propagate the target-specific source directories through the build chain.
59037 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
59038 # uses it, and it only gets used in this file.)
59039 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
59040 OS_INC_SRCDIR=config/${os_include_dir}
59041 FPOS_INC_SRCDIR=config/${fpos_include_dir}
59046 # Determine cross-compile flags and AM_CONDITIONALs.
59047 #AC_SUBST(GLIBCXX_IS_NATIVE)
59048 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
59049 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
59050 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
59053 if test $is_hosted = yes; then
59054 GLIBCXX_HOSTED_TRUE=
59055 GLIBCXX_HOSTED_FALSE='#'
59056 else
59057 GLIBCXX_HOSTED_TRUE='#'
59058 GLIBCXX_HOSTED_FALSE=
59064 if test $enable_libstdcxx_pch = yes; then
59065 GLIBCXX_BUILD_PCH_TRUE=
59066 GLIBCXX_BUILD_PCH_FALSE='#'
59067 else
59068 GLIBCXX_BUILD_PCH_TRUE='#'
59069 GLIBCXX_BUILD_PCH_FALSE=
59075 if test $enable_cheaders = c; then
59076 GLIBCXX_C_HEADERS_C_TRUE=
59077 GLIBCXX_C_HEADERS_C_FALSE='#'
59078 else
59079 GLIBCXX_C_HEADERS_C_TRUE='#'
59080 GLIBCXX_C_HEADERS_C_FALSE=
59086 if test $enable_cheaders = c_std; then
59087 GLIBCXX_C_HEADERS_C_STD_TRUE=
59088 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
59089 else
59090 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
59091 GLIBCXX_C_HEADERS_C_STD_FALSE=
59097 if test $c_compatibility = yes; then
59098 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
59099 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
59100 else
59101 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
59102 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
59108 if test $enable_libstdcxx_debug = yes; then
59109 GLIBCXX_BUILD_DEBUG_TRUE=
59110 GLIBCXX_BUILD_DEBUG_FALSE='#'
59111 else
59112 GLIBCXX_BUILD_DEBUG_TRUE='#'
59113 GLIBCXX_BUILD_DEBUG_FALSE=
59119 if test $enable_symvers != no; then
59120 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
59121 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
59122 else
59123 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
59124 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
59130 if test $enable_wchar_t = yes; then
59131 GLIBCXX_TEST_WCHAR_T_TRUE=
59132 GLIBCXX_TEST_WCHAR_T_FALSE='#'
59133 else
59134 GLIBCXX_TEST_WCHAR_T_TRUE='#'
59135 GLIBCXX_TEST_WCHAR_T_FALSE=
59141 if test $enable_abi_check = yes; then
59142 GLIBCXX_TEST_ABI_TRUE=
59143 GLIBCXX_TEST_ABI_FALSE='#'
59144 else
59145 GLIBCXX_TEST_ABI_TRUE='#'
59146 GLIBCXX_TEST_ABI_FALSE=
59152 cat >confcache <<\_ACEOF
59153 # This file is a shell script that caches the results of configure
59154 # tests run on this system so they can be shared between configure
59155 # scripts and configure runs, see configure's option --config-cache.
59156 # It is not useful on other systems. If it contains results you don't
59157 # want to keep, you may remove or edit it.
59159 # config.status only pays attention to the cache file if you give it
59160 # the --recheck option to rerun configure.
59162 # `ac_cv_env_foo' variables (set or unset) will be overridden when
59163 # loading this file, other *unset* `ac_cv_foo' will be assigned the
59164 # following values.
59166 _ACEOF
59168 # The following way of writing the cache mishandles newlines in values,
59169 # but we know of no workaround that is simple, portable, and efficient.
59170 # So, don't put newlines in cache variables' values.
59171 # Ultrix sh set writes to stderr and can't be redirected directly,
59172 # and sets the high bit in the cache file unless we assign to the vars.
59174 (set) 2>&1 |
59175 case `(ac_space=' '; set | grep ac_space) 2>&1` in
59176 *ac_space=\ *)
59177 # `set' does not quote correctly, so add quotes (double-quote
59178 # substitution turns \\\\ into \\, and sed turns \\ into \).
59179 sed -n \
59180 "s/'/'\\\\''/g;
59181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59184 # `set' quotes correctly as required by POSIX, so do not add quotes.
59185 sed -n \
59186 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59188 esac;
59190 sed '
59191 t clear
59192 : clear
59193 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59194 t end
59195 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59196 : end' >>confcache
59197 if diff $cache_file confcache >/dev/null 2>&1; then :; else
59198 if test -w $cache_file; then
59199 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59200 cat confcache >$cache_file
59201 else
59202 echo "not updating unwritable cache $cache_file"
59205 rm -f confcache
59207 if test ${multilib} = yes; then
59208 multilib_arg="--enable-multilib"
59209 else
59210 multilib_arg=
59213 # Export all the install information.
59215 glibcxx_toolexecdir=no
59216 glibcxx_toolexeclibdir=no
59217 glibcxx_prefixdir=$prefix
59219 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
59220 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
59222 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
59223 if test "${with_gxx_include_dir+set}" = set; then
59224 withval="$with_gxx_include_dir"
59225 case "$withval" in
59226 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
59227 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
59228 { (exit 1); exit 1; }; } ;;
59229 no) gxx_include_dir=no ;;
59230 *) gxx_include_dir=$withval ;;
59231 esac
59232 else
59233 gxx_include_dir=no
59235 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
59236 echo "${ECHO_T}$gxx_include_dir" >&6
59238 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
59239 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
59240 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
59241 if test "${enable_version_specific_runtime_libs+set}" = set; then
59242 enableval="$enable_version_specific_runtime_libs"
59243 case "$enableval" in
59244 yes) version_specific_libs=yes ;;
59245 no) version_specific_libs=no ;;
59246 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
59247 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
59248 { (exit 1); exit 1; }; };;
59249 esac
59250 else
59251 version_specific_libs=no
59253 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
59254 echo "${ECHO_T}$version_specific_libs" >&6
59256 # Default case for install directory for include files.
59257 if test $version_specific_libs = no && test $gxx_include_dir = no; then
59258 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
59261 # Version-specific runtime libs processing.
59262 if test $version_specific_libs = yes; then
59263 # Need the gcc compiler version to know where to install libraries
59264 # and header files if --enable-version-specific-runtime-libs option
59265 # is selected.
59266 if test x"$gxx_include_dir" = x"no"; then
59267 gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
59269 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
59270 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
59273 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
59274 # Install a library built with a cross compiler in tooldir, not libdir.
59275 if test x"$glibcxx_toolexecdir" = x"no"; then
59276 if test -n "$with_cross_host" &&
59277 test x"$with_cross_host" != x"no"; then
59278 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
59279 glibcxx_toolexeclibdir='${toolexecdir}/lib'
59280 else
59281 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
59282 glibcxx_toolexeclibdir='${libdir}'
59284 multi_os_directory=`$CXX -print-multi-os-directory`
59285 case $multi_os_directory in
59286 .) ;; # Avoid trailing /.
59287 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
59288 esac
59291 echo "$as_me:$LINENO: checking for install location" >&5
59292 echo $ECHO_N "checking for install location... $ECHO_C" >&6
59293 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
59294 echo "${ECHO_T}$gxx_include_dir" >&6
59302 # Export all the include and flag information to Makefiles.
59304 # Used for every C++ compile we perform.
59305 GLIBCXX_INCLUDES="\
59306 -I$glibcxx_builddir/include/$host_alias \
59307 -I$glibcxx_builddir/include \
59308 -I$glibcxx_srcdir/libsupc++"
59310 # For Canadian crosses, pick this up too.
59311 if test $CANADIAN = yes; then
59312 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
59315 # Stuff in the actual top level. Currently only used by libsupc++ to
59316 # get unwind* headers from the gcc dir.
59317 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
59318 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
59320 # Now, export this to all the little Makefiles....
59325 # Optimization flags that are probably a good idea for thrill-seekers. Just
59326 # uncomment the lines below and make, everything else is ready to go...
59327 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
59328 OPTIMIZE_CXXFLAGS=
59331 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
59335 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
59336 grep "enable shared" > /dev/null;
59337 then
59338 LIBSUPCXX_PICFLAGS=-prefer-pic
59339 else
59340 LIBSUPCXX_PICFLAGS=
59344 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
59346 ac_config_files="$ac_config_files scripts/check_survey"
59348 ac_config_files="$ac_config_files scripts/testsuite_flags"
59351 ac_config_commands="$ac_config_commands default"
59354 cat >confcache <<\_ACEOF
59355 # This file is a shell script that caches the results of configure
59356 # tests run on this system so they can be shared between configure
59357 # scripts and configure runs, see configure's option --config-cache.
59358 # It is not useful on other systems. If it contains results you don't
59359 # want to keep, you may remove or edit it.
59361 # config.status only pays attention to the cache file if you give it
59362 # the --recheck option to rerun configure.
59364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
59365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
59366 # following values.
59368 _ACEOF
59370 # The following way of writing the cache mishandles newlines in values,
59371 # but we know of no workaround that is simple, portable, and efficient.
59372 # So, don't put newlines in cache variables' values.
59373 # Ultrix sh set writes to stderr and can't be redirected directly,
59374 # and sets the high bit in the cache file unless we assign to the vars.
59376 (set) 2>&1 |
59377 case `(ac_space=' '; set | grep ac_space) 2>&1` in
59378 *ac_space=\ *)
59379 # `set' does not quote correctly, so add quotes (double-quote
59380 # substitution turns \\\\ into \\, and sed turns \\ into \).
59381 sed -n \
59382 "s/'/'\\\\''/g;
59383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59386 # `set' quotes correctly as required by POSIX, so do not add quotes.
59387 sed -n \
59388 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59390 esac;
59392 sed '
59393 t clear
59394 : clear
59395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59396 t end
59397 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59398 : end' >>confcache
59399 if diff $cache_file confcache >/dev/null 2>&1; then :; else
59400 if test -w $cache_file; then
59401 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59402 cat confcache >$cache_file
59403 else
59404 echo "not updating unwritable cache $cache_file"
59407 rm -f confcache
59409 test "x$prefix" = xNONE && prefix=$ac_default_prefix
59410 # Let make expand exec_prefix.
59411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
59413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
59414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
59415 # trailing colons and then remove the whole line if VPATH becomes empty
59416 # (actually we leave an empty line to preserve line numbers).
59417 if test "x$srcdir" = x.; then
59418 ac_vpsub='/^[ ]*VPATH[ ]*=/{
59419 s/:*\$(srcdir):*/:/;
59420 s/:*\${srcdir}:*/:/;
59421 s/:*@srcdir@:*/:/;
59422 s/^\([^=]*=[ ]*\):*/\1/;
59423 s/:*$//;
59424 s/^[^=]*=[ ]*$//;
59428 DEFS=-DHAVE_CONFIG_H
59430 ac_libobjs=
59431 ac_ltlibobjs=
59432 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
59433 # 1. Remove the extension, and $U if already installed.
59434 ac_i=`echo "$ac_i" |
59435 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
59436 # 2. Add them.
59437 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
59438 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
59439 done
59440 LIBOBJS=$ac_libobjs
59442 LTLIBOBJS=$ac_ltlibobjs
59445 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
59446 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
59447 Usually this means the macro was only invoked conditionally." >&5
59448 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
59449 Usually this means the macro was only invoked conditionally." >&2;}
59450 { (exit 1); exit 1; }; }
59452 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
59453 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
59454 Usually this means the macro was only invoked conditionally." >&5
59455 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
59456 Usually this means the macro was only invoked conditionally." >&2;}
59457 { (exit 1); exit 1; }; }
59459 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
59460 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
59461 Usually this means the macro was only invoked conditionally." >&5
59462 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
59463 Usually this means the macro was only invoked conditionally." >&2;}
59464 { (exit 1); exit 1; }; }
59466 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
59467 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
59468 Usually this means the macro was only invoked conditionally." >&5
59469 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
59470 Usually this means the macro was only invoked conditionally." >&2;}
59471 { (exit 1); exit 1; }; }
59473 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
59474 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
59475 Usually this means the macro was only invoked conditionally." >&5
59476 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
59477 Usually this means the macro was only invoked conditionally." >&2;}
59478 { (exit 1); exit 1; }; }
59480 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
59481 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
59482 Usually this means the macro was only invoked conditionally." >&5
59483 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
59484 Usually this means the macro was only invoked conditionally." >&2;}
59485 { (exit 1); exit 1; }; }
59487 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
59488 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
59489 Usually this means the macro was only invoked conditionally." >&5
59490 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
59491 Usually this means the macro was only invoked conditionally." >&2;}
59492 { (exit 1); exit 1; }; }
59494 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
59495 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
59496 Usually this means the macro was only invoked conditionally." >&5
59497 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
59498 Usually this means the macro was only invoked conditionally." >&2;}
59499 { (exit 1); exit 1; }; }
59501 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
59502 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
59503 Usually this means the macro was only invoked conditionally." >&5
59504 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
59505 Usually this means the macro was only invoked conditionally." >&2;}
59506 { (exit 1); exit 1; }; }
59508 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
59509 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
59510 Usually this means the macro was only invoked conditionally." >&5
59511 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
59512 Usually this means the macro was only invoked conditionally." >&2;}
59513 { (exit 1); exit 1; }; }
59516 : ${CONFIG_STATUS=./config.status}
59517 ac_clean_files_save=$ac_clean_files
59518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
59519 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
59520 echo "$as_me: creating $CONFIG_STATUS" >&6;}
59521 cat >$CONFIG_STATUS <<_ACEOF
59522 #! $SHELL
59523 # Generated by $as_me.
59524 # Run this file to recreate the current configuration.
59525 # Compiler output produced by configure, useful for debugging
59526 # configure, is in config.log if it exists.
59528 debug=false
59529 ac_cs_recheck=false
59530 ac_cs_silent=false
59531 SHELL=\${CONFIG_SHELL-$SHELL}
59532 _ACEOF
59534 cat >>$CONFIG_STATUS <<\_ACEOF
59535 ## --------------------- ##
59536 ## M4sh Initialization. ##
59537 ## --------------------- ##
59539 # Be Bourne compatible
59540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
59541 emulate sh
59542 NULLCMD=:
59543 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
59544 # is contrary to our usage. Disable this feature.
59545 alias -g '${1+"$@"}'='"$@"'
59546 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
59547 set -o posix
59550 # Support unset when possible.
59551 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
59552 as_unset=unset
59553 else
59554 as_unset=false
59558 # Work around bugs in pre-3.0 UWIN ksh.
59559 $as_unset ENV MAIL MAILPATH
59560 PS1='$ '
59561 PS2='> '
59562 PS4='+ '
59564 # NLS nuisances.
59565 for as_var in \
59566 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
59567 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
59568 LC_TELEPHONE LC_TIME
59570 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
59571 eval $as_var=C; export $as_var
59572 else
59573 $as_unset $as_var
59575 done
59577 # Required to use basename.
59578 if expr a : '\(a\)' >/dev/null 2>&1; then
59579 as_expr=expr
59580 else
59581 as_expr=false
59584 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59585 as_basename=basename
59586 else
59587 as_basename=false
59591 # Name of the executable.
59592 as_me=`$as_basename "$0" ||
59593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
59594 X"$0" : 'X\(//\)$' \| \
59595 X"$0" : 'X\(/\)$' \| \
59596 . : '\(.\)' 2>/dev/null ||
59597 echo X/"$0" |
59598 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
59599 /^X\/\(\/\/\)$/{ s//\1/; q; }
59600 /^X\/\(\/\).*/{ s//\1/; q; }
59601 s/.*/./; q'`
59604 # PATH needs CR, and LINENO needs CR and PATH.
59605 # Avoid depending upon Character Ranges.
59606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
59607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59609 as_cr_digits='0123456789'
59610 as_cr_alnum=$as_cr_Letters$as_cr_digits
59612 # The user is always right.
59613 if test "${PATH_SEPARATOR+set}" != set; then
59614 echo "#! /bin/sh" >conf$$.sh
59615 echo "exit 0" >>conf$$.sh
59616 chmod +x conf$$.sh
59617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59618 PATH_SEPARATOR=';'
59619 else
59620 PATH_SEPARATOR=:
59622 rm -f conf$$.sh
59626 as_lineno_1=$LINENO
59627 as_lineno_2=$LINENO
59628 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
59629 test "x$as_lineno_1" != "x$as_lineno_2" &&
59630 test "x$as_lineno_3" = "x$as_lineno_2" || {
59631 # Find who we are. Look in the path if we contain no path at all
59632 # relative or not.
59633 case $0 in
59634 *[\\/]* ) as_myself=$0 ;;
59635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59636 for as_dir in $PATH
59638 IFS=$as_save_IFS
59639 test -z "$as_dir" && as_dir=.
59640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
59641 done
59644 esac
59645 # We did not find ourselves, most probably we were run as `sh COMMAND'
59646 # in which case we are not to be found in the path.
59647 if test "x$as_myself" = x; then
59648 as_myself=$0
59650 if test ! -f "$as_myself"; then
59651 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
59652 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
59653 { (exit 1); exit 1; }; }
59655 case $CONFIG_SHELL in
59657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59658 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
59660 IFS=$as_save_IFS
59661 test -z "$as_dir" && as_dir=.
59662 for as_base in sh bash ksh sh5; do
59663 case $as_dir in
59665 if ("$as_dir/$as_base" -c '
59666 as_lineno_1=$LINENO
59667 as_lineno_2=$LINENO
59668 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
59669 test "x$as_lineno_1" != "x$as_lineno_2" &&
59670 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
59671 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
59672 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
59673 CONFIG_SHELL=$as_dir/$as_base
59674 export CONFIG_SHELL
59675 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
59676 fi;;
59677 esac
59678 done
59679 done
59681 esac
59683 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
59684 # uniformly replaced by the line number. The first 'sed' inserts a
59685 # line-number line before each line; the second 'sed' does the real
59686 # work. The second script uses 'N' to pair each line-number line
59687 # with the numbered line, and appends trailing '-' during
59688 # substitution so that $LINENO is not a special case at line end.
59689 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
59690 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
59691 sed '=' <$as_myself |
59692 sed '
59694 s,$,-,
59695 : loop
59696 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
59697 t loop
59698 s,-$,,
59699 s,^['$as_cr_digits']*\n,,
59700 ' >$as_me.lineno &&
59701 chmod +x $as_me.lineno ||
59702 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
59703 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
59704 { (exit 1); exit 1; }; }
59706 # Don't try to exec as it changes $[0], causing all sort of problems
59707 # (the dirname of $[0] is not the place where we might find the
59708 # original and so on. Autoconf is especially sensible to this).
59709 . ./$as_me.lineno
59710 # Exit status is that of the last command.
59711 exit
59715 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
59716 *c*,-n*) ECHO_N= ECHO_C='
59717 ' ECHO_T=' ' ;;
59718 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
59719 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
59720 esac
59722 if expr a : '\(a\)' >/dev/null 2>&1; then
59723 as_expr=expr
59724 else
59725 as_expr=false
59728 rm -f conf$$ conf$$.exe conf$$.file
59729 echo >conf$$.file
59730 if ln -s conf$$.file conf$$ 2>/dev/null; then
59731 # We could just check for DJGPP; but this test a) works b) is more generic
59732 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
59733 if test -f conf$$.exe; then
59734 # Don't use ln at all; we don't have any links
59735 as_ln_s='cp -p'
59736 else
59737 as_ln_s='ln -s'
59739 elif ln conf$$.file conf$$ 2>/dev/null; then
59740 as_ln_s=ln
59741 else
59742 as_ln_s='cp -p'
59744 rm -f conf$$ conf$$.exe conf$$.file
59746 if mkdir -p . 2>/dev/null; then
59747 as_mkdir_p=:
59748 else
59749 as_mkdir_p=false
59752 as_executable_p="test -f"
59754 # Sed expression to map a string onto a valid CPP name.
59755 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
59757 # Sed expression to map a string onto a valid variable name.
59758 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
59761 # IFS
59762 # We need space, tab and new line, in precisely that order.
59763 as_nl='
59765 IFS=" $as_nl"
59767 # CDPATH.
59768 $as_unset CDPATH
59770 exec 6>&1
59772 # Open the log real soon, to keep \$[0] and so on meaningful, and to
59773 # report actual input values of CONFIG_FILES etc. instead of their
59774 # values after options handling. Logging --version etc. is OK.
59775 exec 5>>config.log
59777 echo
59778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
59779 ## Running $as_me. ##
59780 _ASBOX
59781 } >&5
59782 cat >&5 <<_CSEOF
59784 This file was extended by package-unused $as_me version-unused, which was
59785 generated by GNU Autoconf 2.57. Invocation command line was
59787 CONFIG_FILES = $CONFIG_FILES
59788 CONFIG_HEADERS = $CONFIG_HEADERS
59789 CONFIG_LINKS = $CONFIG_LINKS
59790 CONFIG_COMMANDS = $CONFIG_COMMANDS
59791 $ $0 $@
59793 _CSEOF
59794 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
59795 echo >&5
59796 _ACEOF
59798 # Files that config.status was made for.
59799 if test -n "$ac_config_files"; then
59800 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
59803 if test -n "$ac_config_headers"; then
59804 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
59807 if test -n "$ac_config_links"; then
59808 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
59811 if test -n "$ac_config_commands"; then
59812 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
59815 cat >>$CONFIG_STATUS <<\_ACEOF
59817 ac_cs_usage="\
59818 \`$as_me' instantiates files from templates according to the
59819 current configuration.
59821 Usage: $0 [OPTIONS] [FILE]...
59823 -h, --help print this help, then exit
59824 -V, --version print version number, then exit
59825 -q, --quiet do not print progress messages
59826 -d, --debug don't remove temporary files
59827 --recheck update $as_me by reconfiguring in the same conditions
59828 --file=FILE[:TEMPLATE]
59829 instantiate the configuration file FILE
59830 --header=FILE[:TEMPLATE]
59831 instantiate the configuration header FILE
59833 Configuration files:
59834 $config_files
59836 Configuration headers:
59837 $config_headers
59839 Configuration commands:
59840 $config_commands
59842 Report bugs to <bug-autoconf@gnu.org>."
59843 _ACEOF
59845 cat >>$CONFIG_STATUS <<_ACEOF
59846 ac_cs_version="\\
59847 package-unused config.status version-unused
59848 configured by $0, generated by GNU Autoconf 2.57,
59849 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
59851 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
59852 Free Software Foundation, Inc.
59853 This config.status script is free software; the Free Software Foundation
59854 gives unlimited permission to copy, distribute and modify it."
59855 srcdir=$srcdir
59856 INSTALL="$INSTALL"
59857 _ACEOF
59859 cat >>$CONFIG_STATUS <<\_ACEOF
59860 # If no file are specified by the user, then we need to provide default
59861 # value. By we need to know if files were specified by the user.
59862 ac_need_defaults=:
59863 while test $# != 0
59865 case $1 in
59866 --*=*)
59867 ac_option=`expr "x$1" : 'x\([^=]*\)='`
59868 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
59869 ac_shift=:
59872 ac_option=$1
59873 ac_optarg=$2
59874 ac_shift=shift
59876 *) # This is not an option, so the user has probably given explicit
59877 # arguments.
59878 ac_option=$1
59879 ac_need_defaults=false;;
59880 esac
59882 case $ac_option in
59883 # Handling of the options.
59884 _ACEOF
59885 cat >>$CONFIG_STATUS <<\_ACEOF
59886 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
59887 ac_cs_recheck=: ;;
59888 --version | --vers* | -V )
59889 echo "$ac_cs_version"; exit 0 ;;
59890 --he | --h)
59891 # Conflict between --help and --header
59892 { { echo "$as_me:$LINENO: error: ambiguous option: $1
59893 Try \`$0 --help' for more information." >&5
59894 echo "$as_me: error: ambiguous option: $1
59895 Try \`$0 --help' for more information." >&2;}
59896 { (exit 1); exit 1; }; };;
59897 --help | --hel | -h )
59898 echo "$ac_cs_usage"; exit 0 ;;
59899 --debug | --d* | -d )
59900 debug=: ;;
59901 --file | --fil | --fi | --f )
59902 $ac_shift
59903 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
59904 ac_need_defaults=false;;
59905 --header | --heade | --head | --hea )
59906 $ac_shift
59907 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
59908 ac_need_defaults=false;;
59909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
59910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
59911 ac_cs_silent=: ;;
59913 # This is an error.
59914 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
59915 Try \`$0 --help' for more information." >&5
59916 echo "$as_me: error: unrecognized option: $1
59917 Try \`$0 --help' for more information." >&2;}
59918 { (exit 1); exit 1; }; } ;;
59920 *) ac_config_targets="$ac_config_targets $1" ;;
59922 esac
59923 shift
59924 done
59926 ac_configure_extra_args=
59928 if $ac_cs_silent; then
59929 exec 6>/dev/null
59930 ac_configure_extra_args="$ac_configure_extra_args --silent"
59933 _ACEOF
59934 cat >>$CONFIG_STATUS <<_ACEOF
59935 if \$ac_cs_recheck; then
59936 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
59937 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
59940 _ACEOF
59942 cat >>$CONFIG_STATUS <<_ACEOF
59944 # INIT-COMMANDS section.
59948 srcdir="$srcdir"
59949 host="$host"
59950 target="$target"
59951 with_multisubdir="$with_multisubdir"
59952 with_multisrctop="$with_multisrctop"
59953 with_target_subdir="$with_target_subdir"
59954 ac_configure_args="${multilib_arg} ${ac_configure_args}"
59955 multi_basedir="$multi_basedir"
59956 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
59957 CC="$CC"
59959 # Variables needed in config.status (file generation) which aren't already
59960 # passed by autoconf.
59961 SUBDIRS="$SUBDIRS"
59964 _ACEOF
59968 cat >>$CONFIG_STATUS <<\_ACEOF
59969 for ac_config_target in $ac_config_targets
59971 case "$ac_config_target" in
59972 # Handling of arguments.
59973 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
59974 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
59975 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
59976 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
59977 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
59978 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
59979 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
59980 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
59981 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
59982 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
59983 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
59984 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
59985 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
59986 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
59987 { (exit 1); exit 1; }; };;
59988 esac
59989 done
59991 # If the user did not use the arguments to specify the items to instantiate,
59992 # then the envvar interface is used. Set only those that are not.
59993 # We use the long form for the default assignment because of an extremely
59994 # bizarre bug on SunOS 4.1.3.
59995 if $ac_need_defaults; then
59996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
59997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
59998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
60001 # Have a temporary directory for convenience. Make it in the build tree
60002 # simply because there is no reason to put it here, and in addition,
60003 # creating and moving files from /tmp can sometimes cause problems.
60004 # Create a temporary directory, and hook for its removal unless debugging.
60005 $debug ||
60007 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
60008 trap '{ (exit 1); exit 1; }' 1 2 13 15
60011 # Create a (secure) tmp directory for tmp files.
60014 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
60015 test -n "$tmp" && test -d "$tmp"
60016 } ||
60018 tmp=./confstat$$-$RANDOM
60019 (umask 077 && mkdir $tmp)
60020 } ||
60022 echo "$me: cannot create a temporary directory in ." >&2
60023 { (exit 1); exit 1; }
60026 _ACEOF
60028 cat >>$CONFIG_STATUS <<_ACEOF
60031 # CONFIG_FILES section.
60034 # No need to generate the scripts if there are no CONFIG_FILES.
60035 # This happens for instance when ./config.status config.h
60036 if test -n "\$CONFIG_FILES"; then
60037 # Protect against being on the right side of a sed subst in config.status.
60038 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
60039 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
60040 s,@SHELL@,$SHELL,;t t
60041 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
60042 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
60043 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
60044 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
60045 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
60046 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
60047 s,@exec_prefix@,$exec_prefix,;t t
60048 s,@prefix@,$prefix,;t t
60049 s,@program_transform_name@,$program_transform_name,;t t
60050 s,@bindir@,$bindir,;t t
60051 s,@sbindir@,$sbindir,;t t
60052 s,@libexecdir@,$libexecdir,;t t
60053 s,@datadir@,$datadir,;t t
60054 s,@sysconfdir@,$sysconfdir,;t t
60055 s,@sharedstatedir@,$sharedstatedir,;t t
60056 s,@localstatedir@,$localstatedir,;t t
60057 s,@libdir@,$libdir,;t t
60058 s,@includedir@,$includedir,;t t
60059 s,@oldincludedir@,$oldincludedir,;t t
60060 s,@infodir@,$infodir,;t t
60061 s,@mandir@,$mandir,;t t
60062 s,@build_alias@,$build_alias,;t t
60063 s,@host_alias@,$host_alias,;t t
60064 s,@target_alias@,$target_alias,;t t
60065 s,@DEFS@,$DEFS,;t t
60066 s,@ECHO_C@,$ECHO_C,;t t
60067 s,@ECHO_N@,$ECHO_N,;t t
60068 s,@ECHO_T@,$ECHO_T,;t t
60069 s,@LIBS@,$LIBS,;t t
60070 s,@libtool_VERSION@,$libtool_VERSION,;t t
60071 s,@multi_basedir@,$multi_basedir,;t t
60072 s,@build@,$build,;t t
60073 s,@build_cpu@,$build_cpu,;t t
60074 s,@build_vendor@,$build_vendor,;t t
60075 s,@build_os@,$build_os,;t t
60076 s,@host@,$host,;t t
60077 s,@host_cpu@,$host_cpu,;t t
60078 s,@host_vendor@,$host_vendor,;t t
60079 s,@host_os@,$host_os,;t t
60080 s,@target@,$target,;t t
60081 s,@target_cpu@,$target_cpu,;t t
60082 s,@target_vendor@,$target_vendor,;t t
60083 s,@target_os@,$target_os,;t t
60084 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
60085 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
60086 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
60087 s,@CYGPATH_W@,$CYGPATH_W,;t t
60088 s,@PACKAGE@,$PACKAGE,;t t
60089 s,@VERSION@,$VERSION,;t t
60090 s,@ACLOCAL@,$ACLOCAL,;t t
60091 s,@AUTOCONF@,$AUTOCONF,;t t
60092 s,@AUTOMAKE@,$AUTOMAKE,;t t
60093 s,@AUTOHEADER@,$AUTOHEADER,;t t
60094 s,@MAKEINFO@,$MAKEINFO,;t t
60095 s,@AMTAR@,$AMTAR,;t t
60096 s,@install_sh@,$install_sh,;t t
60097 s,@STRIP@,$STRIP,;t t
60098 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
60099 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
60100 s,@AWK@,$AWK,;t t
60101 s,@SET_MAKE@,$SET_MAKE,;t t
60102 s,@am__leading_dot@,$am__leading_dot,;t t
60103 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
60104 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
60105 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
60106 s,@CC@,$CC,;t t
60107 s,@ac_ct_CC@,$ac_ct_CC,;t t
60108 s,@EXEEXT@,$EXEEXT,;t t
60109 s,@OBJEXT@,$OBJEXT,;t t
60110 s,@CXX@,$CXX,;t t
60111 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
60112 s,@CFLAGS@,$CFLAGS,;t t
60113 s,@CXXFLAGS@,$CXXFLAGS,;t t
60114 s,@LN_S@,$LN_S,;t t
60115 s,@AS@,$AS,;t t
60116 s,@ac_ct_AS@,$ac_ct_AS,;t t
60117 s,@AR@,$AR,;t t
60118 s,@ac_ct_AR@,$ac_ct_AR,;t t
60119 s,@RANLIB@,$RANLIB,;t t
60120 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
60121 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
60122 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
60123 s,@MAINT@,$MAINT,;t t
60124 s,@LIBTOOL@,$LIBTOOL,;t t
60125 s,@CXXCPP@,$CXXCPP,;t t
60126 s,@CPPFLAGS@,$CPPFLAGS,;t t
60127 s,@enable_shared@,$enable_shared,;t t
60128 s,@enable_static@,$enable_static,;t t
60129 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
60130 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
60131 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
60132 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
60133 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
60134 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
60135 s,@CSTDIO_H@,$CSTDIO_H,;t t
60136 s,@FPOS_H@,$FPOS_H,;t t
60137 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
60138 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
60139 s,@CPP@,$CPP,;t t
60140 s,@EGREP@,$EGREP,;t t
60141 s,@check_msgfmt@,$check_msgfmt,;t t
60142 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
60143 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
60144 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
60145 s,@USE_NLS@,$USE_NLS,;t t
60146 s,@CLOCALE_H@,$CLOCALE_H,;t t
60147 s,@CCODECVT_H@,$CCODECVT_H,;t t
60148 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
60149 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
60150 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
60151 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
60152 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
60153 s,@CMONEY_CC@,$CMONEY_CC,;t t
60154 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
60155 s,@CTIME_H@,$CTIME_H,;t t
60156 s,@CTIME_CC@,$CTIME_CC,;t t
60157 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
60158 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
60159 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
60160 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
60161 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
60162 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
60163 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
60164 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
60165 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
60166 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
60167 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
60168 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
60169 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
60170 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
60171 s,@WERROR@,$WERROR,;t t
60172 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
60173 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
60174 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
60175 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
60176 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
60177 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
60178 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
60179 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
60180 s,@baseline_dir@,$baseline_dir,;t t
60181 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
60182 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
60183 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
60184 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
60185 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
60186 s,@FPOS_INC_SRCDIR@,$FPOS_INC_SRCDIR,;t t
60187 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
60188 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
60189 s,@gxx_include_dir@,$gxx_include_dir,;t t
60190 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
60191 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
60192 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
60193 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
60194 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
60195 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
60196 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
60197 s,@LIBOBJS@,$LIBOBJS,;t t
60198 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
60199 CEOF
60201 _ACEOF
60203 cat >>$CONFIG_STATUS <<\_ACEOF
60204 # Split the substitutions into bite-sized pieces for seds with
60205 # small command number limits, like on Digital OSF/1 and HP-UX.
60206 ac_max_sed_lines=48
60207 ac_sed_frag=1 # Number of current file.
60208 ac_beg=1 # First line for current file.
60209 ac_end=$ac_max_sed_lines # Line after last line for current file.
60210 ac_more_lines=:
60211 ac_sed_cmds=
60212 while $ac_more_lines; do
60213 if test $ac_beg -gt 1; then
60214 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
60215 else
60216 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
60218 if test ! -s $tmp/subs.frag; then
60219 ac_more_lines=false
60220 else
60221 # The purpose of the label and of the branching condition is to
60222 # speed up the sed processing (if there are no `@' at all, there
60223 # is no need to browse any of the substitutions).
60224 # These are the two extra sed commands mentioned above.
60225 (echo ':t
60226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
60227 if test -z "$ac_sed_cmds"; then
60228 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
60229 else
60230 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
60232 ac_sed_frag=`expr $ac_sed_frag + 1`
60233 ac_beg=$ac_end
60234 ac_end=`expr $ac_end + $ac_max_sed_lines`
60236 done
60237 if test -z "$ac_sed_cmds"; then
60238 ac_sed_cmds=cat
60240 fi # test -n "$CONFIG_FILES"
60242 _ACEOF
60243 cat >>$CONFIG_STATUS <<\_ACEOF
60244 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
60245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
60246 case $ac_file in
60247 - | *:- | *:-:* ) # input from stdin
60248 cat >$tmp/stdin
60249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60253 * ) ac_file_in=$ac_file.in ;;
60254 esac
60256 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
60257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
60258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60259 X"$ac_file" : 'X\(//\)[^/]' \| \
60260 X"$ac_file" : 'X\(//\)$' \| \
60261 X"$ac_file" : 'X\(/\)' \| \
60262 . : '\(.\)' 2>/dev/null ||
60263 echo X"$ac_file" |
60264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60266 /^X\(\/\/\)$/{ s//\1/; q; }
60267 /^X\(\/\).*/{ s//\1/; q; }
60268 s/.*/./; q'`
60269 { if $as_mkdir_p; then
60270 mkdir -p "$ac_dir"
60271 else
60272 as_dir="$ac_dir"
60273 as_dirs=
60274 while test ! -d "$as_dir"; do
60275 as_dirs="$as_dir $as_dirs"
60276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
60277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60278 X"$as_dir" : 'X\(//\)[^/]' \| \
60279 X"$as_dir" : 'X\(//\)$' \| \
60280 X"$as_dir" : 'X\(/\)' \| \
60281 . : '\(.\)' 2>/dev/null ||
60282 echo X"$as_dir" |
60283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60285 /^X\(\/\/\)$/{ s//\1/; q; }
60286 /^X\(\/\).*/{ s//\1/; q; }
60287 s/.*/./; q'`
60288 done
60289 test ! -n "$as_dirs" || mkdir $as_dirs
60290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
60291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
60292 { (exit 1); exit 1; }; }; }
60294 ac_builddir=.
60296 if test "$ac_dir" != .; then
60297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
60298 # A "../" for each directory in $ac_dir_suffix.
60299 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
60300 else
60301 ac_dir_suffix= ac_top_builddir=
60304 case $srcdir in
60305 .) # No --srcdir option. We are building in place.
60306 ac_srcdir=.
60307 if test -z "$ac_top_builddir"; then
60308 ac_top_srcdir=.
60309 else
60310 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
60311 fi ;;
60312 [\\/]* | ?:[\\/]* ) # Absolute path.
60313 ac_srcdir=$srcdir$ac_dir_suffix;
60314 ac_top_srcdir=$srcdir ;;
60315 *) # Relative path.
60316 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
60317 ac_top_srcdir=$ac_top_builddir$srcdir ;;
60318 esac
60319 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
60320 # absolute.
60321 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
60322 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
60323 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
60324 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
60327 case $INSTALL in
60328 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60329 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
60330 esac
60332 if test x"$ac_file" != x-; then
60333 { echo "$as_me:$LINENO: creating $ac_file" >&5
60334 echo "$as_me: creating $ac_file" >&6;}
60335 rm -f "$ac_file"
60337 # Let's still pretend it is `configure' which instantiates (i.e., don't
60338 # use $as_me), people would be surprised to read:
60339 # /* config.h. Generated by config.status. */
60340 if test x"$ac_file" = x-; then
60341 configure_input=
60342 else
60343 configure_input="$ac_file. "
60345 configure_input=$configure_input"Generated from `echo $ac_file_in |
60346 sed 's,.*/,,'` by configure."
60348 # First look for the input files in the build tree, otherwise in the
60349 # src tree.
60350 ac_file_inputs=`IFS=:
60351 for f in $ac_file_in; do
60352 case $f in
60353 -) echo $tmp/stdin ;;
60354 [\\/$]*)
60355 # Absolute (can't be DOS-style, as IFS=:)
60356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60357 echo "$as_me: error: cannot find input file: $f" >&2;}
60358 { (exit 1); exit 1; }; }
60359 echo $f;;
60360 *) # Relative
60361 if test -f "$f"; then
60362 # Build tree
60363 echo $f
60364 elif test -f "$srcdir/$f"; then
60365 # Source tree
60366 echo $srcdir/$f
60367 else
60368 # /dev/null tree
60369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60370 echo "$as_me: error: cannot find input file: $f" >&2;}
60371 { (exit 1); exit 1; }; }
60372 fi;;
60373 esac
60374 done` || { (exit 1); exit 1; }
60375 _ACEOF
60376 cat >>$CONFIG_STATUS <<_ACEOF
60377 sed "$ac_vpsub
60378 $extrasub
60379 _ACEOF
60380 cat >>$CONFIG_STATUS <<\_ACEOF
60382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
60383 s,@configure_input@,$configure_input,;t t
60384 s,@srcdir@,$ac_srcdir,;t t
60385 s,@abs_srcdir@,$ac_abs_srcdir,;t t
60386 s,@top_srcdir@,$ac_top_srcdir,;t t
60387 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
60388 s,@builddir@,$ac_builddir,;t t
60389 s,@abs_builddir@,$ac_abs_builddir,;t t
60390 s,@top_builddir@,$ac_top_builddir,;t t
60391 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
60392 s,@INSTALL@,$ac_INSTALL,;t t
60393 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
60394 rm -f $tmp/stdin
60395 if test x"$ac_file" != x-; then
60396 mv $tmp/out $ac_file
60397 else
60398 cat $tmp/out
60399 rm -f $tmp/out
60402 # Run the commands associated with the file.
60403 case $ac_file in
60404 scripts/check_survey ) chmod +x scripts/check_survey ;;
60405 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
60406 esac
60407 done
60408 _ACEOF
60409 cat >>$CONFIG_STATUS <<\_ACEOF
60412 # CONFIG_HEADER section.
60415 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
60416 # NAME is the cpp macro being defined and VALUE is the value it is being given.
60418 # ac_d sets the value in "#define NAME VALUE" lines.
60419 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
60420 ac_dB='[ ].*$,\1#\2'
60421 ac_dC=' '
60422 ac_dD=',;t'
60423 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
60424 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
60425 ac_uB='$,\1#\2define\3'
60426 ac_uC=' '
60427 ac_uD=',;t'
60429 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
60430 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
60431 case $ac_file in
60432 - | *:- | *:-:* ) # input from stdin
60433 cat >$tmp/stdin
60434 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60435 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60436 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60438 * ) ac_file_in=$ac_file.in ;;
60439 esac
60441 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
60442 echo "$as_me: creating $ac_file" >&6;}
60444 # First look for the input files in the build tree, otherwise in the
60445 # src tree.
60446 ac_file_inputs=`IFS=:
60447 for f in $ac_file_in; do
60448 case $f in
60449 -) echo $tmp/stdin ;;
60450 [\\/$]*)
60451 # Absolute (can't be DOS-style, as IFS=:)
60452 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60453 echo "$as_me: error: cannot find input file: $f" >&2;}
60454 { (exit 1); exit 1; }; }
60455 echo $f;;
60456 *) # Relative
60457 if test -f "$f"; then
60458 # Build tree
60459 echo $f
60460 elif test -f "$srcdir/$f"; then
60461 # Source tree
60462 echo $srcdir/$f
60463 else
60464 # /dev/null tree
60465 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60466 echo "$as_me: error: cannot find input file: $f" >&2;}
60467 { (exit 1); exit 1; }; }
60468 fi;;
60469 esac
60470 done` || { (exit 1); exit 1; }
60471 # Remove the trailing spaces.
60472 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
60474 _ACEOF
60476 # Transform confdefs.h into two sed scripts, `conftest.defines' and
60477 # `conftest.undefs', that substitutes the proper values into
60478 # config.h.in to produce config.h. The first handles `#define'
60479 # templates, and the second `#undef' templates.
60480 # And first: Protect against being on the right side of a sed subst in
60481 # config.status. Protect against being in an unquoted here document
60482 # in config.status.
60483 rm -f conftest.defines conftest.undefs
60484 # Using a here document instead of a string reduces the quoting nightmare.
60485 # Putting comments in sed scripts is not portable.
60487 # `end' is used to avoid that the second main sed command (meant for
60488 # 0-ary CPP macros) applies to n-ary macro definitions.
60489 # See the Autoconf documentation for `clear'.
60490 cat >confdef2sed.sed <<\_ACEOF
60491 s/[\\&,]/\\&/g
60492 s,[\\$`],\\&,g
60493 t clear
60494 : clear
60495 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
60496 t end
60497 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
60498 : end
60499 _ACEOF
60500 # If some macros were called several times there might be several times
60501 # the same #defines, which is useless. Nevertheless, we may not want to
60502 # sort them, since we want the *last* AC-DEFINE to be honored.
60503 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
60504 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
60505 rm -f confdef2sed.sed
60507 # This sed command replaces #undef with comments. This is necessary, for
60508 # example, in the case of _POSIX_SOURCE, which is predefined and required
60509 # on some systems where configure will not decide to define it.
60510 cat >>conftest.undefs <<\_ACEOF
60511 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
60512 _ACEOF
60514 # Break up conftest.defines because some shells have a limit on the size
60515 # of here documents, and old seds have small limits too (100 cmds).
60516 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
60517 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
60518 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
60519 echo ' :' >>$CONFIG_STATUS
60520 rm -f conftest.tail
60521 while grep . conftest.defines >/dev/null
60523 # Write a limited-size here document to $tmp/defines.sed.
60524 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
60525 # Speed up: don't consider the non `#define' lines.
60526 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
60527 # Work around the forget-to-reset-the-flag bug.
60528 echo 't clr' >>$CONFIG_STATUS
60529 echo ': clr' >>$CONFIG_STATUS
60530 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
60531 echo 'CEOF
60532 sed -f $tmp/defines.sed $tmp/in >$tmp/out
60533 rm -f $tmp/in
60534 mv $tmp/out $tmp/in
60535 ' >>$CONFIG_STATUS
60536 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
60537 rm -f conftest.defines
60538 mv conftest.tail conftest.defines
60539 done
60540 rm -f conftest.defines
60541 echo ' fi # grep' >>$CONFIG_STATUS
60542 echo >>$CONFIG_STATUS
60544 # Break up conftest.undefs because some shells have a limit on the size
60545 # of here documents, and old seds have small limits too (100 cmds).
60546 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
60547 rm -f conftest.tail
60548 while grep . conftest.undefs >/dev/null
60550 # Write a limited-size here document to $tmp/undefs.sed.
60551 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
60552 # Speed up: don't consider the non `#undef'
60553 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
60554 # Work around the forget-to-reset-the-flag bug.
60555 echo 't clr' >>$CONFIG_STATUS
60556 echo ': clr' >>$CONFIG_STATUS
60557 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
60558 echo 'CEOF
60559 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
60560 rm -f $tmp/in
60561 mv $tmp/out $tmp/in
60562 ' >>$CONFIG_STATUS
60563 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
60564 rm -f conftest.undefs
60565 mv conftest.tail conftest.undefs
60566 done
60567 rm -f conftest.undefs
60569 cat >>$CONFIG_STATUS <<\_ACEOF
60570 # Let's still pretend it is `configure' which instantiates (i.e., don't
60571 # use $as_me), people would be surprised to read:
60572 # /* config.h. Generated by config.status. */
60573 if test x"$ac_file" = x-; then
60574 echo "/* Generated by configure. */" >$tmp/config.h
60575 else
60576 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
60578 cat $tmp/in >>$tmp/config.h
60579 rm -f $tmp/in
60580 if test x"$ac_file" != x-; then
60581 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
60582 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
60583 echo "$as_me: $ac_file is unchanged" >&6;}
60584 else
60585 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
60586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60587 X"$ac_file" : 'X\(//\)[^/]' \| \
60588 X"$ac_file" : 'X\(//\)$' \| \
60589 X"$ac_file" : 'X\(/\)' \| \
60590 . : '\(.\)' 2>/dev/null ||
60591 echo X"$ac_file" |
60592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60594 /^X\(\/\/\)$/{ s//\1/; q; }
60595 /^X\(\/\).*/{ s//\1/; q; }
60596 s/.*/./; q'`
60597 { if $as_mkdir_p; then
60598 mkdir -p "$ac_dir"
60599 else
60600 as_dir="$ac_dir"
60601 as_dirs=
60602 while test ! -d "$as_dir"; do
60603 as_dirs="$as_dir $as_dirs"
60604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
60605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60606 X"$as_dir" : 'X\(//\)[^/]' \| \
60607 X"$as_dir" : 'X\(//\)$' \| \
60608 X"$as_dir" : 'X\(/\)' \| \
60609 . : '\(.\)' 2>/dev/null ||
60610 echo X"$as_dir" |
60611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60613 /^X\(\/\/\)$/{ s//\1/; q; }
60614 /^X\(\/\).*/{ s//\1/; q; }
60615 s/.*/./; q'`
60616 done
60617 test ! -n "$as_dirs" || mkdir $as_dirs
60618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
60619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
60620 { (exit 1); exit 1; }; }; }
60622 rm -f $ac_file
60623 mv $tmp/config.h $ac_file
60625 else
60626 cat $tmp/config.h
60627 rm -f $tmp/config.h
60629 # Compute $ac_file's index in $config_headers.
60630 _am_stamp_count=1
60631 for _am_header in $config_headers :; do
60632 case $_am_header in
60633 $ac_file | $ac_file:* )
60634 break ;;
60636 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
60637 esac
60638 done
60639 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
60640 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60641 X$ac_file : 'X\(//\)[^/]' \| \
60642 X$ac_file : 'X\(//\)$' \| \
60643 X$ac_file : 'X\(/\)' \| \
60644 . : '\(.\)' 2>/dev/null ||
60645 echo X$ac_file |
60646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60648 /^X\(\/\/\)$/{ s//\1/; q; }
60649 /^X\(\/\).*/{ s//\1/; q; }
60650 s/.*/./; q'`/stamp-h$_am_stamp_count
60651 done
60652 _ACEOF
60653 cat >>$CONFIG_STATUS <<\_ACEOF
60656 # CONFIG_COMMANDS section.
60658 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
60659 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
60660 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
60661 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
60662 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60663 X"$ac_dest" : 'X\(//\)[^/]' \| \
60664 X"$ac_dest" : 'X\(//\)$' \| \
60665 X"$ac_dest" : 'X\(/\)' \| \
60666 . : '\(.\)' 2>/dev/null ||
60667 echo X"$ac_dest" |
60668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60670 /^X\(\/\/\)$/{ s//\1/; q; }
60671 /^X\(\/\).*/{ s//\1/; q; }
60672 s/.*/./; q'`
60673 ac_builddir=.
60675 if test "$ac_dir" != .; then
60676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
60677 # A "../" for each directory in $ac_dir_suffix.
60678 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
60679 else
60680 ac_dir_suffix= ac_top_builddir=
60683 case $srcdir in
60684 .) # No --srcdir option. We are building in place.
60685 ac_srcdir=.
60686 if test -z "$ac_top_builddir"; then
60687 ac_top_srcdir=.
60688 else
60689 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
60690 fi ;;
60691 [\\/]* | ?:[\\/]* ) # Absolute path.
60692 ac_srcdir=$srcdir$ac_dir_suffix;
60693 ac_top_srcdir=$srcdir ;;
60694 *) # Relative path.
60695 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
60696 ac_top_srcdir=$ac_top_builddir$srcdir ;;
60697 esac
60698 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
60699 # absolute.
60700 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
60701 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
60702 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
60703 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
60706 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
60707 echo "$as_me: executing $ac_dest commands" >&6;}
60708 case $ac_dest in
60709 default-1 )
60710 # Only add multilib support code if we just rebuilt the top-level
60711 # Makefile.
60712 case " $CONFIG_FILES " in
60713 *" Makefile "*)
60714 ac_file=Makefile . ${multi_basedir}/config-ml.in
60716 esac ;;
60717 default ) if test -n "$CONFIG_FILES"; then
60718 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
60719 # that multilib installs will end up installed in the correct place.
60720 # The testsuite needs it for multilib-aware ABI baseline files.
60721 # To work around this not being passed down from config-ml.in ->
60722 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
60723 # append it here. Only modify Makefiles that have just been created.
60725 # Also, get rid of this simulated-VPATH thing that automake does.
60726 cat > vpsed << \_EOF
60727 s!`test -f '$<' || echo '$(srcdir)/'`!!
60728 _EOF
60729 for i in $SUBDIRS; do
60730 case $CONFIG_FILES in
60731 *${i}/Makefile*)
60732 #echo "Adding MULTISUBDIR to $i/Makefile"
60733 sed -f vpsed $i/Makefile > tmp
60734 grep '^MULTISUBDIR =' Makefile >> tmp
60735 mv tmp $i/Makefile
60737 esac
60738 done
60739 rm vpsed
60741 (cd include && ${MAKE-make})
60743 esac
60744 done
60745 _ACEOF
60747 cat >>$CONFIG_STATUS <<\_ACEOF
60749 { (exit 0); exit 0; }
60750 _ACEOF
60751 chmod +x $CONFIG_STATUS
60752 ac_clean_files=$ac_clean_files_save
60755 # configure is writing to config.log, and then calls config.status.
60756 # config.status does its own redirection, appending to config.log.
60757 # Unfortunately, on DOS this fails, as config.log is still kept open
60758 # by configure, so config.status won't be able to write to it; its
60759 # output is simply discarded. So we exec the FD to /dev/null,
60760 # effectively closing config.log, so it can be properly (re)opened and
60761 # appended to by config.status. When coming back to configure, we
60762 # need to make the FD available again.
60763 if test "$no_create" != yes; then
60764 ac_cs_success=:
60765 ac_config_status_args=
60766 test "$silent" = yes &&
60767 ac_config_status_args="$ac_config_status_args --quiet"
60768 exec 5>/dev/null
60769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
60770 exec 5>>config.log
60771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
60772 # would make configure fail if this is the last instruction.
60773 $ac_cs_success || { (exit 1); exit 1; }